/*
 *             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{Plugin,Command,ContextPlugin,Editor,PendingActions,Context as Context$1,ElementApiMixin}from'ckeditor5';import{uid,CKEditorError,ObservableMixin,global as _0x59f9c1,isVisible,Rect,Collection,FocusTracker,KeystrokeHandler,first,logWarning,logError,toArray as toArray$1,EmitterMixin,scrollViewportToShowTarget,scrollAncestorsToShowTarget,ResizeObserver as _0x3ccca1,_isMotionReduced,getConstrainedViewportRect,DomEmitterMixin,diff as _0xbddab7,priorities,getEnvKeystrokeText,toUnit,keyCodes,diffToChanges,collectStylesheets,createElement,env,version as _0x10bf4c,ElementReplacer,formatHtml,insertToPriorityArray,getAncestors}from'ckeditor5';import{ToolbarView,ButtonView,View,SpinnerView,IconView,AutocompleteView,ListView,ListItemGroupView,ListItemView,ButtonLabelView,FocusCycler,createLabeledTextarea,Dialog,createDropdown,addMenuToDropdown,MenuBarMenuView,MenuBarMenuListItemButtonView,DialogViewPosition,MenuBarMenuListView,MenuBarMenuListItemView,DropdownButtonView,isViewWithFocusCycler,BodyCollection,BalloonPanelView,clickOutsideHandler,addListToDropdown,UIModel,submitHandler,LabeledFieldView,createLabeledInputText,FormHeaderView,HighlightedTextView,ViewCollection,FileDialogButtonView,InputTextView,SearchTextView,ListItemButtonView,ButtonLabelWithHighlightView,DropdownMenuPanelPositioningFunctions,BalloonToolbar,FormRowView,TextareaView,EditorUIView,InlineEditableUIView,EditorUI,focusChildOnDropdownOpen,ContextualBalloon,Notification,addKeyboardHandlingForGrid,CollapsibleView,createLabeledInputNumber,SplitButtonView,MenuBarMenuListItemFileDialogButtonView,filterGroupAndItemNames,LabelWithHighlightView,InputNumberView,LabelView,CssTransitionDisablerMixin,ToolbarSeparatorView,normalizeToolbarConfig,BoxedEditorUIView,StickyPanelView,normalizeColorOptions,ListSeparatorView}from'ckeditor5';import{IconCopy,IconCheck,IconError,IconSubmit,IconAIHistory,IconMagicWand,IconRobotPencil,IconMaximize,IconMinimize,IconNotification,IconCancel,IconShowChangesOn,IconShowChangesOff,IconDocument,IconBoxWithCross,IconBoxWithCheck,IconBoxWithMarker,IconInfo,IconLoupe,IconStop,IconAIChat,IconPlus,IconPin,IconThreeHorizontalDots,IconChevronDown,IconChevronUp,IconOutdated,IconEye,IconEyeCrossedOut,IconChevronRight,IconAIReview as _0x483bc0,IconAITranslate as IconAITranslate$1,IconCaseChange,IconUndo,IconPencil,IconRemoveComment,IconThreeVerticalDots,IconAddComment,IconCommentsArchive,IconTableOfContents,IconExportPdf,IconExportWord,IconFootnote,IconListStyleDecimal,IconListStyleDecimalLeadingZero,IconListStyleLowerRoman,IconListStyleUpperRoman,IconListStyleLowerLatin,IconListStyleUpperLatin,IconPaintRoller,IconImportWord,IconLineHeight,IconMultiLevelList,IconWarning,IconInsertMergeField,IconPreviewMergeFields,IconArrowDown,IconArrowUp,IconHistory,IconUser,IconQuote,IconBulletedList,IconCodeBlock,IconBrowseFiles as _0xe601c9,IconEmoji,IconHeading1,IconHeading2,IconHeading3,IconHeading4,IconHeading5,IconHeading6,IconHorizontalLine,IconHtml,IconIndent,IconTable,IconNumberedList,IconOutdent,IconParagraph,IconTodoList,IconPlay,IconSource,IconTemplateGeneric,IconTemplate,IconTrackChanges,IconOneDrive,IconGooglePhotos,IconGoogleDrive,IconFacebook,IconDropbox,IconUploadcareLink,IconUploadcareImageUpload,IconUploadcareImageEdit}from'ckeditor5';import{setHighlightHandling,toWidget,Widget,isWidget,toWidgetEditable,WidgetToolbarRepository,findOptimalInsertionRange,viewToModelPositionOutsideModelElement}from'ckeditor5';import{ViewDocumentDomEventData,ViewDataTransfer,ViewUpcastWriter,Matcher,InsertOperation,MoveOperation,ModelPosition,ModelRange,MarkerOperation,MergeOperation,SplitOperation,RenameOperation,AttributeOperation,ModelTreeWalker,ModelText,_DetachOperation,_insertIntoModelNodeList,_removeFromModelNodeList,transformOperationSets,ViewDowncastWriter,ModelDocumentFragment,disableViewPlaceholder,enableViewPlaceholder,MouseObserver,StylesMap,addMarginStylesRules,addPaddingStylesRules,PointerObserver,ClickObserver,isPercentageStyleValue,ViewDocument,ViewDomConverter,ModelLiveRange,History,NoOperation,RootAttributeOperation,OperationFactory,ViewContainerElement,ViewAttributeElement,ViewEmptyElement,ViewRawElement,ViewUIElement,ViewDocumentFragment,ViewText,ViewElement,ModelElement,ModelLivePosition}from'ckeditor5';import{ClipboardPipeline,ClipboardMarkersUtils,Clipboard}from'ckeditor5';import{Enter,ShiftEnter}from'ckeditor5';import{SelectAll}from'ckeditor5';import{Typing,Delete,Input}from'ckeditor5';import{Undo}from'ckeditor5';import{Paragraph}from'ckeditor5';import{PasteFromOfficeMSWordNormalizer,parsePasteOfficeHtml}from'ckeditor5';import{MarkdownGfmMdToHtml}from'ckeditor5';import{IconWeb,IconClose,IconDocument as IconDocument$1,IconSelection,IconFileUpload,IconLink,IconBulb,IconAI,IconPreviousArrow,IconCheck as _0x45bff4,IconDocumentOutline,IconPaperClip,IconBrowseFiles,IconDropdownArrow,IconAIChat as IconAIChat$1,IconAIReview,IconAITranslate,IconAIAskAI,IconThumbUp,IconThumbDown,IconCopy as _0x206295,IconShowChangesOff as _0x2570a7,IconShowChangesOn as _0x179ead,IconAIQuickActions,IconAIChatCommands,IconAIImproveWriting,IconAIContinueWriting,IconAIGrammarCheck,IconAIAdjustLength,IconAIChangeTone,IconAIOther,IconRefresh,IconNextArrow}from'ckeditor5';import{EmitterMixin as EmitterMixin$1,ObservableMixin as _0x51cb0b,priorities as priorities$1,global as _0x415241,Collection as Collection$1}from'ckeditor5';import{FileRepository}from'ckeditor5';const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';function normalizeCommandsConfig(_0x5f096e,_0x32b6ba){const _0x502e6b=(0x0,_0x32b6ba['t'])('Other');return _0x5f096e['length']?'groupId'in _0x5f096e[0x0]?_0x5f096e:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x502e6b,'order':0x1/0x0,'commands':_0x5f096e}]:[{'groupId':UNGROUPED_COMMANDS_GROUP_ID,'groupLabel':_0x502e6b,'order':0x1/0x0,'commands':[]}];}const DomDataTransfer$1=globalThis['DataTransfer'],VISUAL_SELECTION_MARKER_NAME='ai-ui';class AIAssistantEditing extends Plugin{static get['pluginName'](){return'AIAssistantEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4638a5}=this,_0x1eaffa=['ck-fake-ai-selection'];_0x4638a5['config']['get']('ai.assistant.useTheme')&&_0x1eaffa['push']('ck-ai-assistant-ui_theme'),_0x4638a5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':VISUAL_SELECTION_MARKER_NAME,'view':{'classes':_0x1eaffa,'priority':0xc}}),_0x4638a5['conversion']['for']('editingDowncast')['markerToElement']({'model':VISUAL_SELECTION_MARKER_NAME,'view':(_0x4bd234,{writer:_0x418fa8})=>{if(!_0x4bd234['markerRange']['isCollapsed'])return null;const _0x4725d=_0x418fa8['createUIElement']('span');return _0x418fa8['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x4725d),_0x4725d;}});}['afterInit'](){checkLicense$j(this);}['showFakeVisualSelection'](){const _0x1c9834=this['editor']['model'];_0x1c9834['change'](_0x5b7d70=>{const _0x1a3aec=_0x1c9834['document']['selection']['getRanges']();let _0x1b6c39=0x0;for(const _0x174b55 of _0x1a3aec){const _0x23d601=VISUAL_SELECTION_MARKER_NAME+':'+_0x1b6c39;if(_0x1c9834['markers']['has'](_0x23d601))_0x5b7d70['updateMarker'](_0x23d601,{'range':_0x174b55});else{if(_0x174b55['start']['isAtEnd']){const _0x4e707f=_0x174b55['start']['getLastMatchingPosition'](({item:_0x26b263})=>!_0x1c9834['schema']['isContent'](_0x26b263),{'boundaries':_0x174b55});_0x5b7d70['addMarker'](_0x23d601,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5b7d70['createRange'](_0x4e707f,_0x174b55['end'])});}else _0x5b7d70['addMarker'](_0x23d601,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x174b55});}_0x1b6c39++;}});}['hideFakeVisualSelection'](){const _0x52734f=this['editor']['model'],_0x1d734a=Array['from'](this['editor']['model']['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME));_0x1d734a['length']&&_0x52734f['change'](_0x6667c1=>{_0x1d734a['forEach'](_0x2ed59b=>{_0x6667c1['removeMarker'](_0x2ed59b);});});}['insertContent'](_0x40f592,_0x938037){const _0x102c9c=this['_getAISelection'](),_0x575518=_0x938037||_0x102c9c['getFirstRange']();this['editor']['model']['canEditAt'](_0x575518)&&this['editor']['model']['change'](_0x41450f=>{this['hideFakeVisualSelection'](),_0x938037||this['_resetContentOfSelectedTableCells'](_0x41450f,_0x102c9c),this['_pasteHTMLUsingClipboard']({'insertAt':_0x575518,'writer':_0x41450f,'html':_0x40f592});});}['insertContentBelow'](_0x2473df){const {model:_0x40e07c}=this['editor'],_0x41857a=this['_getAISelection']();_0x40e07c['change'](()=>{const _0x3c0cdd=this['_prepareTableInsertBelowPosition'](_0x2473df,_0x41857a)||this['_getDefaultInsertBelowPosition'](_0x41857a);this['insertContent'](_0x2473df,_0x3c0cdd);});}['_getAISelection'](){const _0x4f2067=this['editor']['model'],_0x257788=Array['from'](_0x4f2067['markers']['getMarkersGroup'](VISUAL_SELECTION_MARKER_NAME))['map'](_0x4bc08c=>_0x4bc08c['getRange']());return _0x4f2067['createSelection'](_0x257788);}['_pasteHTMLUsingClipboard']({writer:_0xb1167c,html:_0x49f1bf,insertAt:_0xffc786}){const {view:_0x4211a4}=this['editor']['editing'],_0x2db2cf=this['editor']['plugins']['get'](ClipboardPipeline),_0x5da133=new DomDataTransfer$1();_0x5da133['setData']('text/html',_0x49f1bf);const _0x20058e=new ClipboardEvent('paste',{'clipboardData':_0x5da133}),_0x1de7c6=new ViewDocumentDomEventData(_0x4211a4,_0x20058e,{'dataTransfer':new ViewDataTransfer(_0x5da133)});_0xb1167c['setSelection'](_0xffc786);const _0x1000ab=(_0x21b3f2,_0x1ce9e8)=>{_0x1ce9e8['resultRange']&&_0xb1167c['setSelection'](_0x1ce9e8['resultRange']);};_0x2db2cf['once']('contentInsertion',_0x1000ab,{'priority':'lowest'}),_0x4211a4['document']['fire']('paste',_0x1de7c6),_0x2db2cf['off']('contentInsertion',_0x1000ab);}['_getDefaultInsertBelowPosition'](_0x5cf156){const {model:_0x2603ec}=this['editor'],_0xfb1b54=Array['from'](_0x5cf156['getSelectedBlocks']());return _0xfb1b54['length']?_0x2603ec['createPositionAfter'](_0xfb1b54['pop']()):_0x5cf156['getLastPosition']();}['_prepareTableInsertBelowPosition'](_0xc044d3,_0x102897){const {model:_0x4bd1a7,plugins:_0x1b8a9f}=this['editor'];if(_0x1b8a9f['has']('TableUtils')){const _0x353afe=_0x1b8a9f['get']('TableUtils')['getSelectedTableCells'](_0x102897);if(_0x353afe['length']){const _0x2c7f01=this['_getTableRowCountFromContent'](_0xc044d3),_0x3a3d10=this['_createEmptyTableRows'](_0x353afe,_0x2c7f01);return _0x4bd1a7['createPositionAt'](_0x3a3d10,0x0);}}return null;}['_getTableRowCountFromContent'](_0x922e44){const _0x5dc6a1=this['editor']['plugins']['get']('TableUtils'),_0x119aca=this['editor']['data']['parse'](_0x922e44),_0x1dcce1=Array['from'](_0x119aca['getChildren']())['filter'](_0x3fb5f6=>_0x3fb5f6['is']('element','table'));let _0xb47053=0x0;return _0x1dcce1['forEach'](_0x1e2d65=>{_0xb47053+=_0x5dc6a1['getRows'](_0x1e2d65);}),_0xb47053;}['_createEmptyTableRows'](_0x5a22d2,_0x5f32cc){const _0x4fee6f=this['editor']['plugins']['get']('TableUtils'),_0xf930ac=_0x4fee6f['getRowIndexes'](_0x5a22d2),_0x41e647=_0x4fee6f['getColumnIndexes'](_0x5a22d2),_0x514603=_0xf930ac['last']+0x1,_0x47258e=_0x41e647['first'],_0x4166cc=_0x5a22d2[0x0]['findAncestor']('table');for(let _0x2eeee7=0x0;_0x2eeee7<_0x5f32cc;_0x2eeee7++)_0x4fee6f['insertRows'](_0x4166cc,{'at':_0x514603});return _0x4166cc['getChild'](_0x514603)['getChild'](_0x47258e);}['_resetContentOfSelectedTableCells'](_0x4c52f7,_0x587e4e){const {plugins:_0x387e4e}=this['editor'],{model:_0x5f1387}=_0x4c52f7;if(!_0x387e4e['has']('TableUtils'))return;_0x387e4e['get']('TableUtils')['getSelectedTableCells'](_0x587e4e)['length']&&_0x5f1387['deleteContent'](_0x587e4e);}}async function checkLicense$j(_0x3bee56){const _0x1bc9a4=_0x438338([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x5dc6d3=window[_0x438338([0x44,0x61,0x74,0x65])][_0x438338([0x6e,0x6f,0x77])](),_0x4a9bea=_0x3bee56[_0x438338([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2279e8=new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362ddb=>{_0x4a9bea[_0x438338([0x6f,0x6e,0x63,0x65])](_0x438338([0x72,0x65,0x61,0x64,0x79]),_0x362ddb);}),_0x3d46cb={[_0x438338([0x6b,0x74,0x79])]:_0x438338([0x45,0x43]),[_0x438338([0x75,0x73,0x65])]:_0x438338([0x73,0x69,0x67]),[_0x438338([0x63,0x72,0x76])]:_0x438338([0x50,0x2d,0x32,0x35,0x36]),[_0x438338([0x78])]:_0x438338([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x438338([0x79])]:_0x438338([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x438338([0x61,0x6c,0x67])]:_0x438338([0x45,0x53,0x32,0x35,0x36])},_0x32b80a=_0x4a9bea[_0x438338([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x438338([0x67,0x65,0x74])](_0x438338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x137776=await(async function(){let _0x727483,_0x545026=null,_0x23376c=null;try{if(_0x32b80a==_0x438338([0x47,0x50,0x4c]))return _0x438338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x727483=(function(){const _0x3fc0c5=_0x32b80a[_0x438338([0x73,0x70,0x6c,0x69,0x74])](_0x438338([0x2e]));if(0x3!=_0x3fc0c5[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x135d5b=_0x3fc0c5[0x1];return _0x247338(_0x135d5b);function _0x247338(_0x1e0406){const _0x2b8232=_0x4802e3(_0x1e0406);return _0x2b8232&&_0x567f5d()?_0x2b8232:null;function _0x567f5d(){const _0x1d2a72=_0x2b8232[_0x438338([0x6a,0x74,0x69])],_0x4077df=window[_0x438338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d2a72[_0x438338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d2a72[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50ea32={..._0x2b8232,[_0x438338([0x6a,0x74,0x69])]:_0x1d2a72[_0x438338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1d2a72[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50ea32[_0x438338([0x76,0x63])],_0x5926d9(_0x50ea32)==_0x4077df;}}}()),!_0x727483)return _0x438338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x727483[_0x438338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23376c=function(_0x1bd13d,_0x350458){return new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111cb9=>{if(_0x1b7bc1())return _0x111cb9(_0x438338([0x56,0x61,0x6c,0x69,0x64]));_0x2af014(),_0x4a9bea[_0x438338([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x438338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3fe10c=!0x1;const _0x47874d=uid();function _0x2d64d2(_0x7a1958){return!!_0x7a1958&&(typeof _0x7a1958===_0x438338([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7a1958===_0x438338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7a1958[_0x438338([0x74,0x68,0x65,0x6e])]===_0x438338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7a1958[_0x438338([0x63,0x61,0x74,0x63,0x68])]===_0x438338([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x596c3d(_0x44f76a){_0x22efbb(_0x44f76a)[_0x438338([0x74,0x68,0x65,0x6e])](_0x25f8ac=>{if(!_0x25f8ac||_0x25f8ac[_0x438338([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x438338([0x6f,0x6b]))return _0x438338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x99e003(_0x5926d9(_0x47874d+_0x350458))!=_0x25f8ac[_0x438338([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x438338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x438338([0x56,0x61,0x6c,0x69,0x64]);})[_0x438338([0x74,0x68,0x65,0x6e])](_0x1bc443=>(_0x55b594(),_0x1bc443),()=>{const _0x1c7d8f=_0x64362f();return null==_0x1c7d8f?(_0x55b594(),_0x438338([0x56,0x61,0x6c,0x69,0x64])):_0x438338(_0x5dc6d3-_0x1c7d8f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x438338([0x74,0x68,0x65,0x6e])](_0x111cb9)[_0x438338([0x63,0x61,0x74,0x63,0x68])](()=>{_0x111cb9(_0x438338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc22873=0x36ee80;function _0x55b594(){const _0x2b1447=_0x438338([0x6c,0x6c,0x63,0x74,0x2d])+_0x99e003(_0x5926d9(_0x1bd13d)),_0x5b6937=_0x513d21(_0x99e003(window[_0x438338([0x4d,0x61,0x74,0x68])][_0x438338([0x63,0x65,0x69,0x6c])](_0x5dc6d3/_0xc22873)));window[_0x438338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x438338([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b1447,_0x5b6937);}function _0x64362f(){const _0x43e45e=_0x438338([0x6c,0x6c,0x63,0x74,0x2d])+_0x99e003(_0x5926d9(_0x1bd13d)),_0x507066=window[_0x438338([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x438338([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43e45e);return _0x507066?window[_0x438338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513d21(_0x507066),0x10)*_0xc22873:null;}function _0x22efbb(_0x26eaa9){return new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f8e2,_0x1c2b15)=>{_0x26eaa9[_0x438338([0x74,0x68,0x65,0x6e])](_0x4f8e2,_0x1c2b15),window[_0x438338([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c2b15,0x1d4c0);});}}_0x4a9bea[_0x438338([0x6f,0x6e])](_0x438338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40133d,_0x47ada0)=>{if(_0x47ada0[0x0]!=_0x1bd13d)return _0x111cb9(_0x438338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x47ada0[0x1]={..._0x47ada0[0x1],[_0x438338([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47874d};},{[_0x438338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x438338([0x68,0x69,0x67,0x68])}),_0x4a9bea[_0x438338([0x6f,0x6e])](_0x438338([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17675e=>{_0x2d64d2(_0x17675e[_0x438338([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3fe10c=!0x0,_0x596c3d(_0x17675e[_0x438338([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x438338([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x438338([0x6c,0x6f,0x77])}),_0x2279e8[_0x438338([0x74,0x68,0x65,0x6e])](()=>{_0x3fe10c||_0x111cb9(_0x438338([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b7bc1(){return _0x4a9bea[_0x438338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x438338([0x76,0x69,0x65,0x77])][_0x438338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x438338([0x61,0x75,0x74,0x6f]);}function _0x2af014(){_0x4a9bea[_0x438338([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x438338([0x76,0x69,0x65,0x77])][_0x438338([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x438338([0x61,0x75,0x74,0x6f]);}}(_0x727483[_0x438338([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x727483[_0x438338([0x6a,0x74,0x69])]));const _0x239027=await(async function(){let _0x1c61de=!0x0;try{const _0x44dde7=_0x32b80a[_0x438338([0x73,0x70,0x6c,0x69,0x74])](_0x438338([0x2e])),[_0x17bfe3,_0x241ea6,_0x1f3706]=_0x44dde7;return _0x29a822(_0x17bfe3),await _0x4f898a(_0x17bfe3,_0x241ea6,_0x1f3706),_0x1c61de;}catch{return!0x1;}function _0x29a822(_0x1100fc){const _0x1f72ff=_0x4802e3(_0x1100fc);_0x1f72ff&&_0x1f72ff[_0x438338([0x61,0x6c,0x67])]==_0x438338([0x45,0x53,0x32,0x35,0x36])||(_0x1c61de=!0x1);}async function _0x4f898a(_0x17e78f,_0x3be7c4,_0x332bdb){const _0x48b423=window[_0x438338([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x438338([0x66,0x72,0x6f,0x6d])](_0x183279(_0x332bdb),_0x259847=>_0x259847[_0x438338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43a829=new window[(_0x438338([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x438338([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17e78f+_0x438338([0x2e])+_0x3be7c4),_0x3f6df3=window[_0x438338([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x438338([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f6df3)return;const _0x25bb1c=await _0x3f6df3[_0x438338([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x438338([0x6a,0x77,0x6b]),_0x3d46cb,{[_0x438338([0x6e,0x61,0x6d,0x65])]:_0x438338([0x45,0x43,0x44,0x53,0x41]),[_0x438338([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x438338([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x438338([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f6df3[_0x438338([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x438338([0x6e,0x61,0x6d,0x65])]:_0x438338([0x45,0x43,0x44,0x53,0x41]),[_0x438338([0x68,0x61,0x73,0x68])]:{[_0x438338([0x6e,0x61,0x6d,0x65])]:_0x438338([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25bb1c,_0x48b423,_0x43a829)||(_0x1c61de=!0x1);}}());return _0x239027?(function(){const _0x1cbdd0=_0x727483[_0x438338([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1cbdd0)return!0x1;if(_0x1cbdd0[_0x438338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438338([0x2a])))return!0x0;if(_0x1cbdd0[_0x438338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438338([0x41,0x49])))return!0x0;return!0x1;}())?(function(){const _0x3aa569=[_0x438338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x438338([0x74,0x72,0x69,0x61,0x6c])][_0x438338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x727483[_0x438338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dc6d3/0x3e8:0x69e02680;return _0x727483[_0x438338([0x65,0x78,0x70])]<_0x3aa569;}())?_0x438338([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x4b59d9=_0x727483[_0x438338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b59d9||0x0==_0x4b59d9[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x115f2c}=new URL(window[_0x438338([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b59d9[_0x438338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x115f2c))return!0x0;const _0x82975=_0x115f2c[_0x438338([0x73,0x70,0x6c,0x69,0x74])](_0x438338([0x2e]));return _0x4b59d9[_0x438338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x372e66=>_0x372e66[_0x438338([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x438338([0x2a])))[_0x438338([0x6d,0x61,0x70])](_0x4d5774=>_0x4d5774[_0x438338([0x73,0x70,0x6c,0x69,0x74])](_0x438338([0x2e])))[_0x438338([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34942c=>_0x34942c[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x82975[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x438338([0x6d,0x61,0x70])](_0x1f7d6d=>Array(_0x82975[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f7d6d[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x438338([0x66,0x69,0x6c,0x6c])](_0x1f7d6d[0x0]===_0x438338([0x2a])?_0x438338([0x2a]):'')[_0x438338([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f7d6d))[_0x438338([0x73,0x6f,0x6d,0x65])](_0x1bb20d=>_0x82975[_0x438338([0x65,0x76,0x65,0x72,0x79])]((_0x3970e5,_0x31d790)=>_0x1bb20d[_0x31d790]===_0x3970e5||_0x1bb20d[_0x31d790]===_0x438338([0x2a])));}())?(_0x727483[_0x438338([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x438338([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x545026=function(_0x3fd02c){const _0x37b771=new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34a059=>setTimeout(_0x34a059,0x93ecc)),_0x58994f=_0x2279e8[_0x438338([0x74,0x68,0x65,0x6e])](()=>new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3979e3=>{let _0x15a7ad=0x0;_0x4a9bea[_0x438338([0x6d,0x6f,0x64,0x65,0x6c])][_0x438338([0x6f,0x6e])](_0x438338([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c49eb,_0x16fc38)=>{_0x16fc38[0x0][_0x438338([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15a7ad++,0x5e8==_0x15a7ad&&(_0x3979e3(),_0x5c49eb[_0x438338([0x6f,0x66,0x66])]());});})),_0xc3fe70=[_0x37b771,_0x58994f];return window[_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x438338([0x72,0x61,0x63,0x65])](_0xc3fe70)[_0x438338([0x74,0x68,0x65,0x6e])](()=>_0x3fd02c);}(_0x438338([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x545026&&_0x23376c)return new window[(_0x438338([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d75b0,_0x316560)=>{_0x545026[_0x438338([0x74,0x68,0x65,0x6e])](_0x1d75b0,_0x316560),_0x23376c[_0x438338([0x74,0x68,0x65,0x6e])](_0x28d277=>{_0x28d277!=_0x438338([0x56,0x61,0x6c,0x69,0x64])&&_0x1d75b0(_0x28d277);},_0x316560);});return _0x545026||_0x23376c||_0x438338([0x56,0x61,0x6c,0x69,0x64]);}())):_0x438338([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x438338([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x438338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x438338([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x4802e3(_0x9f8c21){return _0x9f8c21[_0x438338([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x438338([0x65,0x79]))?JSON[_0x438338([0x70,0x61,0x72,0x73,0x65])](_0x183279(_0x9f8c21)):null;}function _0x183279(_0x1c861a){return window[_0x438338([0x61,0x74,0x6f,0x62])](_0x1c861a[_0x438338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x438338([0x2b]))[_0x438338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x438338([0x2f])));}function _0x5926d9(_0x4222be){let _0x3f3137=0x1505;function _0x161b6c(_0x4abc78){for(let _0x5ae95e=0x0;_0x5ae95e<_0x4abc78[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ae95e++){const _0x17fd08=_0x4abc78[_0x438338([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ae95e);_0x3f3137=(_0x3f3137<<0x5)+_0x3f3137+_0x17fd08,_0x3f3137&=_0x3f3137;}}return function _0x2aff50(_0x23696f){Array[_0x438338([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23696f)?_0x23696f[_0x438338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2aff50):_0x23696f&&typeof _0x23696f==_0x438338([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x438338([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23696f)[_0x438338([0x73,0x6f,0x72,0x74])]()[_0x438338([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x321774,_0x5f1407])=>{_0x161b6c(_0x321774),_0x2aff50(_0x5f1407);}):_0x161b6c(window[_0x438338([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23696f));}(_0x4222be),_0x3f3137>>>0x0;}function _0x99e003(_0x32d74d){return _0x32d74d[_0x438338([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x438338([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x438338([0x30]));}function _0x513d21(_0x25825c){return _0x25825c[_0x438338([0x73,0x70,0x6c,0x69,0x74])]('')[_0x438338([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x438338([0x6a,0x6f,0x69,0x6e])]('');}function _0x98d33e(){}function _0x438338(_0xa5c19a){return _0xa5c19a['map'](_0x273f23=>String['fromCharCode'](_0x273f23))['join']('');}!function(_0x4c3cb2){const _0x220e46=(function(){const _0xec67e0=window[_0x438338([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x438338([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x438338([0x6e,0x6f,0x77])]())[_0x438338([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x438338([0x2e]),'');let _0x251a5d=_0x438338([0x6e]);for(let _0x4902a1=0x0;_0x4902a1<_0xec67e0[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4902a1+=0x2){let _0x46e08a=window[_0x438338([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xec67e0[_0x438338([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4902a1,_0x4902a1+0x2));_0x46e08a>=_0x1bc9a4[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46e08a-=_0x1bc9a4[_0x438338([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x251a5d+=_0x1bc9a4[_0x46e08a];}return _0x251a5d;}());_0x4a9bea[_0x220e46]=_0x438338([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c3cb2,_0x4c3cb2!=_0x438338([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2279e8,_0x4a9bea[_0x438338([0x6d,0x6f,0x64,0x65,0x6c])][_0x438338([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x98d33e,_0x4a9bea[_0x438338([0x6d,0x6f,0x64,0x65,0x6c])][_0x438338([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x98d33e,_0x4a9bea[_0x438338([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x438338([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x137776);}class AIAdapter extends Plugin{static get['pluginName'](){return'AIAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){if(!this['textAdapter'])throw new CKEditorError('aiadapter-text-adapter-not-set',null);}}class AIRequestError extends Error{constructor(_0x1c757e){super(_0x1c757e),this['name']='AIRequestError';}}function getTranslation$j(_0x39d1d8,_0xd14e4d,_0x27e37f){const t=_0x39d1d8['t'];switch(_0xd14e4d){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',_0x27e37f);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x27e37f);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'},_0x27e37f);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 _0xd14e4d;}}class ShowAIAssistantCommand extends Command{['_commandDefinitions'];constructor(_0x4e6426,_0x55a25f){super(_0x4e6426),this['_commandDefinitions']=_0x55a25f,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x5989ed,_0x3d5ab3,_0x3969e1)=>{this['isEnabled']&&(this['enabledCommandsIds']=_getEnabledCommands(this['_commandDefinitions'],_0x3969e1));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x294fcd,_0x47999d,_0x5cdd63)=>{this['enabledCommandsIds']=_0x5cdd63?_getEnabledCommands(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x3203c1=this['editor']['model'];this['_hasContext']=_isContextAvailable(_0x3203c1);const _0x4efdb5=_0x3203c1['document']['selection'],_0x477dd8=this['editor']['config']['get']('ai.assistant.disabledElements');for(const _0x2d8be6 of _0x4efdb5['getRanges']())for(const _0x561de0 of _0x2d8be6['getItems']())if(_0x561de0['is']('element')&&_0x477dd8['includes'](_0x561de0['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x4bf23c='',_0x167bb4='',_0x4f998b='custom'){this['editor']['plugins']['get'](AIAssistantUI)['showUI'](_0x4bf23c,_0x167bb4,_0x4f998b);}}function _isContextAvailable(_0x21b0f7){const _0x43830b=_0x21b0f7['document']['selection'];return _0x43830b['isCollapsed']?0x0!==[..._0x43830b['getSelectedBlocks']()]['length']&&![..._0x43830b['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x21b0f7['hasContent'](_0x43830b['getFirstRange']());}function _getEnabledCommands(_0x369f1b,_0x3075ac){const _0x4a0744=new Set();for(const _0x4c8f13 of _0x369f1b['values']())(_0x3075ac||!0x1===_0x4c8f13['requiresContent'])&&_0x4a0744['add'](_0x4c8f13['id']);return Array['from'](_0x4a0744);}const MIN_RESPONSE_LENGTH_TO_FIRST_HTML=0x64,ALL_UNTIL_FIRST_HTML_REGEX=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');class AIAssistantController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['editor'];['textAdapter'];['view'];['_sanitizationContainer'];['_domParser'];['_xmlSerializer'];constructor(_0x58d0be,_0x5024a7,_0x30d68e){super(),this['editor']=_0x58d0be,this['textAdapter']=_0x5024a7,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x30d68e,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0xf48cfd,_0x2a0938,_0x5d92a1)=>{this['view']['value']=this['_sanitizeHTML'](_0x5d92a1);}),this['listenTo'](this['view'],'submitPrompt',(_0x58a0be,_0x1c5132)=>{const _0x2023a9=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x1c5132,_0x2023a9,'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:_0x4edacd,query:_0x5714e2,htmlContent:_0x161bba,label:_0xabfc64,mainActionLabel:_0x3d2798}){this['view']['prompt']=_0xabfc64,this['view']['mainAction']=_0x3d2798,this['initialContext']=_0x161bba,_0x5714e2&&(this['view']['isRendered']?this['_handleQuery'](_0x5714e2,_0x161bba,_0x4edacd,_0xabfc64):this['view']['once']('render',()=>{this['_handleQuery'](_0x5714e2,_0x161bba,_0x4edacd,_0xabfc64);}));}['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'](_0xac868b,_0x4c453b,_0x34764a,_0x332716){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x4c453b,this['previousQuery']=_0xac868b,this['previousLabel']=_0x332716||_0xac868b,this['previousActionId']=_0x34764a,new Promise(_0x4a8522=>{this['textAdapter']['makeRequest']({'query':_0xac868b,'context':_0x4c453b,'onData':_0x5256a8=>{this['currentResponse']=_0x5256a8,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x34764a})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x2a5cd3=>{_0x2a5cd3 instanceof AIRequestError?this['view']['handleError'](_0x2a5cd3['message']):this['view']['handleError'](),_0x4a8522();})['finally'](()=>{this['stopProcessing'](),_0x4a8522();});});}['_parseAndNormalizeContent'](_0xb50228,_0x1057e6=!0x1){const _0xf15a26=ALL_UNTIL_FIRST_HTML_REGEX['exec'](_0xb50228);_0xb50228=_0xf15a26?_0xb50228['substring'](_0xf15a26[0x1]['length']):_0xb50228['length']<MIN_RESPONSE_LENGTH_TO_FIRST_HTML&&!_0x1057e6?'':this['_stripMarkdownSyntax'](_0xb50228);const _0x2d1df0=this['_domParser']['parseFromString'](_0xb50228,'text/html');if(_0xf15a26){const _0x5b8da7=Array['from'](_0x2d1df0['body']['childNodes']);_0x5b8da7['reverse']();for(const _0x930c87 of _0x5b8da7){if(_0x930c87['nodeType']==Node['ELEMENT_NODE'])break;_0x930c87['remove']();}}const _0x3d3e80=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0x2d1df0['body']));this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x3d3e80);const _0x1f9047=this['editor']['config']['get']('ai.assistant.preserveComments'),_0x93dbf4=this['editor']['data']['toModel'](_0x3d3e80);return _0x1f9047||_0x93dbf4['markers']['clear'](),this['editor']['data']['stringify'](_0x93dbf4);}['_normalizeResponseHeadings'](_0xedc0a7){const _0x5d491d=new ViewUpcastWriter(this['editor']['editing']['view']['document']),_0x307720=new Matcher({'name':/^h[1-5]$/}),_0x5d691a=[];let _0x4b8ea7=!0x1;for(const _0x27cddc of _0xedc0a7)_0x27cddc['is']('element')&&_0x307720['match'](_0x27cddc)&&(_0x5d691a['push'](_0x27cddc),'h1'==_0x27cddc['name']&&(_0x4b8ea7=!0x0));if(_0x4b8ea7){for(const _0x57bf73 of _0x5d691a)_0x5d491d['rename']('h'+(parseInt(_0x57bf73['name'][0x1])+0x1),_0x57bf73);}}['_isH1TagSupportEnabled'](){const {data:_0x54c9c4,editing:_0x3ae56b}=this['editor'],_0x1d34d5=_0x54c9c4['htmlProcessor']['toView']('<h1></h1>'),_0x58447b=_0x54c9c4['toView'](_0x54c9c4['toModel'](_0x1d34d5));return!!_0x3ae56b['view']['domConverter']['viewToDom'](_0x58447b)['querySelector']('h1');}['_sanitizeHTML'](_0xa28713){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0xa28713),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x10ccca){const _0x5b9ec9=_0x10ccca['trim']();return _0x5b9ec9['startsWith']('```html')?_0x5b9ec9['endsWith']('```')?_0x5b9ec9['substring'](0x7,_0x5b9ec9['length']-0x3):_0x5b9ec9['substring'](0x7):_0x10ccca;}}const AIFormToolbarViewMainActionLabel={'REPLACE':'replace','INSERT':'insert'};class AIFormToolbarView extends ToolbarView{constructor(_0x3b3ba0){super(_0x3b3ba0),this['set']('isVisible',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x2e7282=>getTranslation$j(_0x3b3ba0,'AI_'+_0x2e7282['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](getTranslation$j(_0x3b3ba0,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](getTranslation$j(_0x3b3ba0,'Try\x20again')),this['stopButton']=this['_createButton'](getTranslation$j(_0x3b3ba0,'Stop'));const _0x177c0f=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x177c0f['if']('isVisible','ck-hidden',_0x34bf22=>!_0x34bf22)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x1c04a3,_0x4ed261){const _0x1b49bd=new ButtonView(this['locale']);return _0x1b49bd['set']({'label':_0x1c04a3,'class':_0x4ed261||'','isVisible':!0x0,'withText':!0x0}),_0x1b49bd;}}class AIFormContentArea extends View{['contentFieldView'];['copyButtonView'];constructor(_0x459818,_0x3ac6c3=''){super(_0x459818),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2993d0=this['bindTemplate'];this['contentFieldView']=new ContentFieldView(_0x459818,_0x3ac6c3),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x2993d0['if']('isVisible','ck-hidden',_0x1150f9=>!_0x1150f9)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x2993d0['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 _0x37db4b=!0x1;this['on']('change:value',(_0x9747c6,_0x228677,_0x42cd23)=>{const _0x4196c7=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x42cd23),this['isProcessing']&&_0x4196c7&&!_0x37db4b&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x22a9cf,_0x54e2f3,_0x4d01c3)=>{_0x37db4b=!0x1,_0x4d01c3?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x37db4b=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x37db4b=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x768f67=this['locale'],_0x148972=new ButtonView(this['locale']),_0x2ce01b='ck-ai-form__copy-button';return _0x148972['set']({'label':getTranslation$j(_0x768f67,'Copy'),'icon':IconCopy,'class':_0x2ce01b,'tooltip':!0x0}),_0x148972['bind']('isVisible')['to'](this,'value',_0x1e32e4=>!!_0x1e32e4),_0x148972['bind']('isEnabled')['to'](this,'isProcessing',_0x54dab9=>!_0x54dab9),_0x148972['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x148972['icon']=IconCheck,_0x148972['class']=_0x2ce01b+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x148972['icon']=IconCopy,_0x148972['class']=_0x2ce01b;},0x3e8);}),_0x148972;}['_copyHTMLToClipboard'](_0x51fcff){const {window:_0x268104,document:_0x2eb8df}=_0x59f9c1;if(_0x268104['ClipboardItem']){const {Blob:_0x224895,ClipboardItem:_0x50b91c}=_0x268104,_0x579157=[new _0x50b91c({'text/html':new _0x224895([_0x51fcff['innerHTML']],{'type':'text/html'}),'text/plain':new _0x224895([_0x51fcff['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0x579157);}else{const _0x151cec=_0x2eb8df['createElement']('div');_0x151cec['style']['position']='absolute',_0x151cec['style']['left']='-9999px',_0x151cec['innerHTML']='<span>[</span>'+_0x51fcff['innerHTML']+'<span>]</span>',_0x2eb8df['body']['appendChild'](_0x151cec);const _0x4e0731=_0x2eb8df['createRange']();_0x4e0731['setStartAfter'](_0x151cec['firstElementChild']),_0x4e0731['setEndBefore'](_0x151cec['lastElementChild']);const _0x424be8=_0x268104['getSelection']();_0x424be8['removeAllRanges'](),_0x424be8['addRange'](_0x4e0731),_0x2eb8df['execCommand']('copy'),_0x151cec['remove']();}}}class ContentFieldView extends View{constructor(_0x5031ee,_0x5f55a9=''){super(_0x5031ee),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x5f55a9,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x10ef17){this['element']['innerHTML']=_0x10ef17;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x26dcd8=new View(),_0xa1e021=this['locale'],_0x21060e=new SpinnerView();return _0x21060e['isVisible']=!0x0,_0x26dcd8['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x21060e,{'text':getTranslation$j(_0xa1e021,'AI\x20is\x20writing...')}]}),_0x26dcd8['render'](),_0x26dcd8;}}class AIFormErrorView extends View{constructor(_0x1e6a7c,_0x29cec9=''){super(_0x1e6a7c);const _0x264ad4=new IconView(),_0x33a6cd=this['bindTemplate'];this['set']('text',_0x29cec9),_0x264ad4['content']=IconError,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x264ad4,{'text':_0x33a6cd['to']('text')}]});}}class AIFormPromptView extends AutocompleteView{['submitButtonView'];['showHistoryButtonView'];constructor(_0x50ce46,_0x3b2b61){super(_0x50ce46,_0x3b2b61),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',(_0x474920,_0x256b68)=>{_0x474920['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x256b68());});}['_createSubmitButton'](){const _0x224601=new ButtonView(this['locale']),_0xde9cb2=this['locale'];return _0x224601['set']({'icon':IconSubmit,'label':getTranslation$j(_0xde9cb2,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x224601['on']('execute',()=>{this['submit']();}),_0x224601['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x3b3f61,_0x2e09ab)=>!_0x3b3f61&&_0x2e09ab),_0x224601;}['_createShowHistoryButton'](){const _0x1a44f7=new ButtonView(this['locale']),_0x1fdc58=this['resultsView'],_0x2d5a62=this['locale'];_0x1a44f7['set']({'label':getTranslation$j(_0x2d5a62,'History'),'withText':!0x1,'icon':IconAIHistory,'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x1a44f7['bind']('isOn')['to'](_0x1fdc58,'isVisible'),_0x1a44f7['bind']('isEnabled')['to'](this,'isEnabled'),_0x1a44f7['on']('execute',()=>{_0x1fdc58['isVisible']=!_0x1fdc58['isVisible'],_0x1fdc58['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x51b1d6=()=>{_0x59f9c1['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x3f6e47=new Rect(this['queryView']['fieldView']['element']),_0x5116fc=_0x3f6e47['width'],_0x166952='rtl'===_0x2d5a62['uiLanguageDirection']?'left':'right';_0x3f6e47['excludeScrollbarsAndBorders'](),_0x1a44f7['element']['style'][_0x166952]=_0x5116fc-_0x3f6e47['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x51b1d6),this['on']('render',_0x51b1d6),_0x1a44f7;}['submit'](){const _0x4a2293=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x4a2293);}['focus'](_0x3414d4){-0x1===_0x3414d4?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class AIHistoryListView extends ListView{['historyGroupView'];['clearHistoryButton'];constructor(_0x126eaf){super(_0x126eaf),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ListItemGroupView(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=getTranslation$j(_0x126eaf,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x343399=0x0;for(const _0x26ca8b of this['items'])_0x343399+=_0x26ca8b['items']['length'];return{'resultsCount':_0x343399,'totalItemsCount':_0x343399};}['_createClearHistoryButton'](){const _0x374ec2=this['locale'],_0x4f606a=new ButtonView(this['locale']);return _0x4f606a['set']({'label':'('+getTranslation$j(_0x374ec2,'Clear')+')','withText':!0x0}),_0x4f606a['on']('execute',()=>this['fire']('clearHistory')),_0x4f606a;}}function isUnsafeProperty(_0xec9c30){return'__proto__'===_0xec9c30;}function isDeepKey(_0x452427){switch(typeof _0x452427){case'number':case'symbol':return!0x1;case'string':return _0x452427['includes']('.')||_0x452427['includes']('[')||_0x452427['includes'](']');}}function toKey(_0x4c9f91){return'string'==typeof _0x4c9f91||'symbol'==typeof _0x4c9f91?_0x4c9f91:Object['is'](_0x4c9f91?.['valueOf']?.(),-0x0)?'-0':String(_0x4c9f91);}function toPath(_0x1d7139){const _0x23cbea=[],_0x44920f=_0x1d7139['length'];if(0x0===_0x44920f)return _0x23cbea;let _0x3de357=0x0,_0x48ac8b='',_0x4265d1='',_0x2e8f28=!0x1;for(0x2e===_0x1d7139['charCodeAt'](0x0)&&(_0x23cbea['push'](''),_0x3de357++);_0x3de357<_0x44920f;){const _0x28ee09=_0x1d7139[_0x3de357];_0x4265d1?'\x5c'===_0x28ee09&&_0x3de357+0x1<_0x44920f?(_0x3de357++,_0x48ac8b+=_0x1d7139[_0x3de357]):_0x28ee09===_0x4265d1?_0x4265d1='':_0x48ac8b+=_0x28ee09:_0x2e8f28?'\x22'===_0x28ee09||'\x27'===_0x28ee09?_0x4265d1=_0x28ee09:']'===_0x28ee09?(_0x2e8f28=!0x1,_0x23cbea['push'](_0x48ac8b),_0x48ac8b=''):_0x48ac8b+=_0x28ee09:'['===_0x28ee09?(_0x2e8f28=!0x0,_0x48ac8b&&(_0x23cbea['push'](_0x48ac8b),_0x48ac8b='')):'.'===_0x28ee09?_0x48ac8b&&(_0x23cbea['push'](_0x48ac8b),_0x48ac8b=''):_0x48ac8b+=_0x28ee09,_0x3de357++;}return _0x48ac8b&&_0x23cbea['push'](_0x48ac8b),_0x23cbea;}function get(_0x5dd9ea,_0x10d9a4,_0x46837e){if(null==_0x5dd9ea)return _0x46837e;switch(typeof _0x10d9a4){case'string':{if(isUnsafeProperty(_0x10d9a4))return _0x46837e;const _0x21cd5f=_0x5dd9ea[_0x10d9a4];return void 0x0===_0x21cd5f?isDeepKey(_0x10d9a4)?get(_0x5dd9ea,toPath(_0x10d9a4),_0x46837e):_0x46837e:_0x21cd5f;}case'number':case'symbol':{'number'==typeof _0x10d9a4&&(_0x10d9a4=toKey(_0x10d9a4));const _0x52c1cf=_0x5dd9ea[_0x10d9a4];return void 0x0===_0x52c1cf?_0x46837e:_0x52c1cf;}default:{if(Array['isArray'](_0x10d9a4))return getWithPath(_0x5dd9ea,_0x10d9a4,_0x46837e);if(isUnsafeProperty(_0x10d9a4=Object['is'](_0x10d9a4?.['valueOf'](),-0x0)?'-0':String(_0x10d9a4)))return _0x46837e;const _0x34e6db=_0x5dd9ea[_0x10d9a4];return void 0x0===_0x34e6db?_0x46837e:_0x34e6db;}}}function getWithPath(_0x10a223,_0x5ad14a,_0x30ec34){if(0x0===_0x5ad14a['length'])return _0x30ec34;let _0x1ff95e=_0x10a223;for(let _0x540ec3=0x0;_0x540ec3<_0x5ad14a['length'];_0x540ec3++){if(null==_0x1ff95e)return _0x30ec34;if(isUnsafeProperty(_0x5ad14a[_0x540ec3]))return _0x30ec34;_0x1ff95e=_0x1ff95e[_0x5ad14a[_0x540ec3]];}return void 0x0===_0x1ff95e?_0x30ec34:_0x1ff95e;}function isObject$3(_0x1447ce){return null!==_0x1447ce&&('object'==typeof _0x1447ce||'function'==typeof _0x1447ce);}function isPrimitive(_0x1d451d){return null==_0x1d451d||'object'!=typeof _0x1d451d&&'function'!=typeof _0x1d451d;}function eq(_0x3ba774,_0x2f5d79){return _0x3ba774===_0x2f5d79||Number['isNaN'](_0x3ba774)&&Number['isNaN'](_0x2f5d79);}function getSymbols(_0x3d31eb){return Object['getOwnPropertySymbols'](_0x3d31eb)['filter'](_0x193cfd=>Object['prototype']['propertyIsEnumerable']['call'](_0x3d31eb,_0x193cfd));}function getTag(_0x5ec44f){return null==_0x5ec44f?void 0x0===_0x5ec44f?'[object\x20Undefined]':'[object\x20Null]':Object['prototype']['toString']['call'](_0x5ec44f);}const regexpTag='[object\x20RegExp]',stringTag='[object\x20String]',numberTag='[object\x20Number]',booleanTag='[object\x20Boolean]',argumentsTag='[object\x20Arguments]',symbolTag='[object\x20Symbol]',dateTag='[object\x20Date]',mapTag='[object\x20Map]',setTag='[object\x20Set]',arrayTag='[object\x20Array]',functionTag='[object\x20Function]',arrayBufferTag='[object\x20ArrayBuffer]',objectTag='[object\x20Object]',errorTag='[object\x20Error]',dataViewTag='[object\x20DataView]',uint8ArrayTag='[object\x20Uint8Array]',uint8ClampedArrayTag='[object\x20Uint8ClampedArray]',uint16ArrayTag='[object\x20Uint16Array]',uint32ArrayTag='[object\x20Uint32Array]',bigUint64ArrayTag='[object\x20BigUint64Array]',int8ArrayTag='[object\x20Int8Array]',int16ArrayTag='[object\x20Int16Array]',int32ArrayTag='[object\x20Int32Array]',bigInt64ArrayTag='[object\x20BigInt64Array]',float32ArrayTag='[object\x20Float32Array]',float64ArrayTag='[object\x20Float64Array]';function isTypedArray(_0x512345){return ArrayBuffer['isView'](_0x512345)&&!(_0x512345 instanceof DataView);}function cloneDeepWith$1(_0x45f2ab,_0x28a417){return cloneDeepWithImpl(_0x45f2ab,void 0x0,_0x45f2ab,new Map(),_0x28a417);}function cloneDeepWithImpl(_0x5382e5,_0x22c8a8,_0x5f3621,_0x648f1a=new Map(),_0x373785=void 0x0){const _0x102ad0=_0x373785?.(_0x5382e5,_0x22c8a8,_0x5f3621,_0x648f1a);if(null!=_0x102ad0)return _0x102ad0;if(isPrimitive(_0x5382e5))return _0x5382e5;if(_0x648f1a['has'](_0x5382e5))return _0x648f1a['get'](_0x5382e5);if(Array['isArray'](_0x5382e5)){const _0x18ea61=new Array(_0x5382e5['length']);_0x648f1a['set'](_0x5382e5,_0x18ea61);for(let _0x4a8bf8=0x0;_0x4a8bf8<_0x5382e5['length'];_0x4a8bf8++)_0x18ea61[_0x4a8bf8]=cloneDeepWithImpl(_0x5382e5[_0x4a8bf8],_0x4a8bf8,_0x5f3621,_0x648f1a,_0x373785);return Object['hasOwn'](_0x5382e5,'index')&&(_0x18ea61['index']=_0x5382e5['index']),Object['hasOwn'](_0x5382e5,'input')&&(_0x18ea61['input']=_0x5382e5['input']),_0x18ea61;}if(_0x5382e5 instanceof Date)return new Date(_0x5382e5['getTime']());if(_0x5382e5 instanceof RegExp){const _0x4e314e=new RegExp(_0x5382e5['source'],_0x5382e5['flags']);return _0x4e314e['lastIndex']=_0x5382e5['lastIndex'],_0x4e314e;}if(_0x5382e5 instanceof Map){const _0x119e00=new Map();_0x648f1a['set'](_0x5382e5,_0x119e00);for(const [_0x304f12,_0x22470c]of _0x5382e5)_0x119e00['set'](_0x304f12,cloneDeepWithImpl(_0x22470c,_0x304f12,_0x5f3621,_0x648f1a,_0x373785));return _0x119e00;}if(_0x5382e5 instanceof Set){const _0x2f55ea=new Set();_0x648f1a['set'](_0x5382e5,_0x2f55ea);for(const _0x14e7ea of _0x5382e5)_0x2f55ea['add'](cloneDeepWithImpl(_0x14e7ea,void 0x0,_0x5f3621,_0x648f1a,_0x373785));return _0x2f55ea;}if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x5382e5))return _0x5382e5['subarray']();if(isTypedArray(_0x5382e5)){const _0x2ca540=new(Object['getPrototypeOf'](_0x5382e5))['constructor'](_0x5382e5['length']);_0x648f1a['set'](_0x5382e5,_0x2ca540);for(let _0x52bc7e=0x0;_0x52bc7e<_0x5382e5['length'];_0x52bc7e++)_0x2ca540[_0x52bc7e]=cloneDeepWithImpl(_0x5382e5[_0x52bc7e],_0x52bc7e,_0x5f3621,_0x648f1a,_0x373785);return _0x2ca540;}if(_0x5382e5 instanceof ArrayBuffer||'undefined'!=typeof SharedArrayBuffer&&_0x5382e5 instanceof SharedArrayBuffer)return _0x5382e5['slice'](0x0);if(_0x5382e5 instanceof DataView){const _0x25c87a=new DataView(_0x5382e5['buffer']['slice'](0x0),_0x5382e5['byteOffset'],_0x5382e5['byteLength']);return _0x648f1a['set'](_0x5382e5,_0x25c87a),copyProperties(_0x25c87a,_0x5382e5,_0x5f3621,_0x648f1a,_0x373785),_0x25c87a;}if('undefined'!=typeof File&&_0x5382e5 instanceof File){const _0x5c20d3=new File([_0x5382e5],_0x5382e5['name'],{'type':_0x5382e5['type']});return _0x648f1a['set'](_0x5382e5,_0x5c20d3),copyProperties(_0x5c20d3,_0x5382e5,_0x5f3621,_0x648f1a,_0x373785),_0x5c20d3;}if(_0x5382e5 instanceof Blob){const _0x4e2516=new Blob([_0x5382e5],{'type':_0x5382e5['type']});return _0x648f1a['set'](_0x5382e5,_0x4e2516),copyProperties(_0x4e2516,_0x5382e5,_0x5f3621,_0x648f1a,_0x373785),_0x4e2516;}if(_0x5382e5 instanceof Error){const _0x1413ec=new _0x5382e5['constructor']();return _0x648f1a['set'](_0x5382e5,_0x1413ec),_0x1413ec['message']=_0x5382e5['message'],_0x1413ec['name']=_0x5382e5['name'],_0x1413ec['stack']=_0x5382e5['stack'],_0x1413ec['cause']=_0x5382e5['cause'],copyProperties(_0x1413ec,_0x5382e5,_0x5f3621,_0x648f1a,_0x373785),_0x1413ec;}if('object'==typeof _0x5382e5&&isCloneableObject(_0x5382e5)){const _0x15b175=Object['create'](Object['getPrototypeOf'](_0x5382e5));return _0x648f1a['set'](_0x5382e5,_0x15b175),copyProperties(_0x15b175,_0x5382e5,_0x5f3621,_0x648f1a,_0x373785),_0x15b175;}return _0x5382e5;}function copyProperties(_0xf1b1bf,_0x1f3999,_0x5631fc=_0xf1b1bf,_0x2e7221,_0x117f73){const _0x36d3c5=[...Object['keys'](_0x1f3999),...getSymbols(_0x1f3999)];for(let _0x2ade42=0x0;_0x2ade42<_0x36d3c5['length'];_0x2ade42++){const _0x209c5f=_0x36d3c5[_0x2ade42],_0x4ddcb5=Object['getOwnPropertyDescriptor'](_0xf1b1bf,_0x209c5f);(null==_0x4ddcb5||_0x4ddcb5['writable'])&&(_0xf1b1bf[_0x209c5f]=cloneDeepWithImpl(_0x1f3999[_0x209c5f],_0x209c5f,_0x5631fc,_0x2e7221,_0x117f73));}}function isCloneableObject(_0x3e183e){switch(getTag(_0x3e183e)){case argumentsTag:case arrayTag:case arrayBufferTag:case dataViewTag:case booleanTag:case dateTag:case float32ArrayTag:case float64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case mapTag:case numberTag:case objectTag:case regexpTag:case setTag:case stringTag:case symbolTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:return!0x0;default:return!0x1;}}function cloneDeep$1(_0x2bb22b){return cloneDeepWithImpl(_0x2bb22b,void 0x0,_0x2bb22b,new Map(),void 0x0);}function cloneDeepWith(_0x558501,_0x3acf97){return cloneDeepWith$1(_0x558501,(_0x25210a,_0x1bebb2,_0x2cbe4c,_0x1398f6)=>{if('object'==typeof _0x558501)switch(Object['prototype']['toString']['call'](_0x558501)){case numberTag:case stringTag:case booleanTag:{const _0xdea34f=new _0x558501['constructor'](_0x558501?.['valueOf']());return copyProperties(_0xdea34f,_0x558501),_0xdea34f;}case argumentsTag:{const _0x26dd56={};return copyProperties(_0x26dd56,_0x558501),_0x26dd56['length']=_0x558501['length'],_0x26dd56[Symbol['iterator']]=_0x558501[Symbol['iterator']],_0x26dd56;}default:return;}});}function cloneDeep(_0x18e1f6){return cloneDeepWith(_0x18e1f6);}const IS_UNSIGNED_INTEGER=/^(?:0|[1-9]\d*)$/;function isIndex(_0x16198d,_0x338b47=Number['MAX_SAFE_INTEGER']){switch(typeof _0x16198d){case'number':return Number['isInteger'](_0x16198d)&&_0x16198d>=0x0&&_0x16198d<_0x338b47;case'symbol':return!0x1;case'string':return IS_UNSIGNED_INTEGER['test'](_0x16198d);}}function isObjectLike(_0x17f01c){return'object'==typeof _0x17f01c&&null!==_0x17f01c;}function isSymbol(_0x41f194){return'symbol'==typeof _0x41f194||_0x41f194 instanceof Symbol;}const regexIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,regexIsPlainProp=/^\w*$/;function isKey(_0x5a7339,_0x2abcfd){return!Array['isArray'](_0x5a7339)&&(!('number'!=typeof _0x5a7339&&'boolean'!=typeof _0x5a7339&&null!=_0x5a7339&&!isSymbol(_0x5a7339))||('string'==typeof _0x5a7339&&(regexIsPlainProp['test'](_0x5a7339)||!regexIsDeepProp['test'](_0x5a7339))||null!=_0x2abcfd&&Object['hasOwn'](_0x2abcfd,_0x5a7339)));}function unset(_0x461f21,_0x160f25){if(null==_0x461f21)return!0x0;switch(typeof _0x160f25){case'symbol':case'number':case'object':if(Array['isArray'](_0x160f25))return unsetWithPath(_0x461f21,_0x160f25);if('number'==typeof _0x160f25?_0x160f25=toKey(_0x160f25):'object'==typeof _0x160f25&&(_0x160f25=Object['is'](_0x160f25?.['valueOf'](),-0x0)?'-0':String(_0x160f25)),isUnsafeProperty(_0x160f25))return!0x1;if(void 0x0===_0x461f21?.[_0x160f25])return!0x0;try{return delete _0x461f21[_0x160f25],!0x0;}catch{return!0x1;}case'string':if(void 0x0===_0x461f21?.[_0x160f25]&&isDeepKey(_0x160f25))return unsetWithPath(_0x461f21,toPath(_0x160f25));if(isUnsafeProperty(_0x160f25))return!0x1;try{return delete _0x461f21[_0x160f25],!0x0;}catch{return!0x1;}}}function unsetWithPath(_0x237d16,_0x31bcaf){const _0x1892aa=get(_0x237d16,_0x31bcaf['slice'](0x0,-0x1),_0x237d16),_0x503374=_0x31bcaf[_0x31bcaf['length']-0x1];if(void 0x0===_0x1892aa?.[_0x503374])return!0x0;if(isUnsafeProperty(_0x503374))return!0x1;try{return delete _0x1892aa[_0x503374],!0x0;}catch{return!0x1;}}const assignValue=(_0x583791,_0xe904fd,_0x5560ec)=>{const _0x5d065e=_0x583791[_0xe904fd];Object['hasOwn'](_0x583791,_0xe904fd)&&eq(_0x5d065e,_0x5560ec)&&(void 0x0!==_0x5560ec||_0xe904fd in _0x583791)||(_0x583791[_0xe904fd]=_0x5560ec);};function updateWith(_0xc9f853,_0x167186,_0x314191,_0x466a52){if(null==_0xc9f853&&!isObject$3(_0xc9f853))return _0xc9f853;const _0xbdf28b=isKey(_0x167186,_0xc9f853)?[_0x167186]:Array['isArray'](_0x167186)?_0x167186:'string'==typeof _0x167186?toPath(_0x167186):[_0x167186];let _0x52d872=_0xc9f853;for(let _0x307d3f=0x0;_0x307d3f<_0xbdf28b['length']&&null!=_0x52d872;_0x307d3f++){const _0x3392ed=toKey(_0xbdf28b[_0x307d3f]);if(isUnsafeProperty(_0x3392ed))continue;let _0x35963d;if(_0x307d3f===_0xbdf28b['length']-0x1)_0x35963d=_0x314191(_0x52d872[_0x3392ed]);else{const _0x38360d=_0x52d872[_0x3392ed],_0x3f1845=_0x466a52?.(_0x38360d,_0x3392ed,_0xc9f853);_0x35963d=void 0x0!==_0x3f1845?_0x3f1845:isObject$3(_0x38360d)?_0x38360d:isIndex(_0xbdf28b[_0x307d3f+0x1])?[]:{};}assignValue(_0x52d872,_0x3392ed,_0x35963d),_0x52d872=_0x52d872[_0x3392ed];}return _0xc9f853;}function set(_0x53d743,_0x4a4d96,_0x387b92){return updateWith(_0x53d743,_0x4a4d96,()=>_0x387b92,()=>{});}function debounce$2(_0x356065,_0x4a2fb4,{signal:_0x45f5a8,edges:_0x8026b}={}){let _0x2f45f2,_0xd0af6c=null;const _0x1bee40=null!=_0x8026b&&_0x8026b['includes']('leading'),_0x40dfd4=null==_0x8026b||_0x8026b['includes']('trailing'),_0x301183=()=>{null!==_0xd0af6c&&(_0x356065['apply'](_0x2f45f2,_0xd0af6c),_0x2f45f2=void 0x0,_0xd0af6c=null);};let _0x397d83=null;const _0x3448de=()=>{null!=_0x397d83&&clearTimeout(_0x397d83),_0x397d83=setTimeout(()=>{_0x397d83=null,_0x40dfd4&&_0x301183(),_0x97db1();},_0x4a2fb4);},_0x23d01c=()=>{null!==_0x397d83&&(clearTimeout(_0x397d83),_0x397d83=null);},_0x97db1=()=>{_0x23d01c(),_0x2f45f2=void 0x0,_0xd0af6c=null;},_0x170e08=function(..._0x3c107d){if(_0x45f5a8?.['aborted'])return;_0x2f45f2=this,_0xd0af6c=_0x3c107d;const _0xa60051=null==_0x397d83;_0x3448de(),_0x1bee40&&_0xa60051&&_0x301183();};return _0x170e08['schedule']=_0x3448de,_0x170e08['cancel']=_0x97db1,_0x170e08['flush']=()=>{_0x23d01c(),_0x301183();},_0x45f5a8?.['addEventListener']('abort',_0x97db1,{'once':!0x0}),_0x170e08;}function debounce$1(_0xce6110,_0x14e9e1=0x0,_0x120a50={}){'object'!=typeof _0x120a50&&(_0x120a50={});const {leading:_0x392cf6=!0x1,trailing:_0xbf496e=!0x0,maxWait:_0x55c622}=_0x120a50,_0x31a540=Array(0x2);let _0x2682e4;_0x392cf6&&(_0x31a540[0x0]='leading'),_0xbf496e&&(_0x31a540[0x1]='trailing');let _0x43837d=null;const _0x4eaf5a=debounce$2(function(..._0x5941b9){_0x2682e4=_0xce6110['apply'](this,_0x5941b9),_0x43837d=null;},_0x14e9e1,{'edges':_0x31a540}),_0x246477=function(..._0x4e3d22){return null!=_0x55c622&&(null===_0x43837d&&(_0x43837d=Date['now']()),Date['now']()-_0x43837d>=_0x55c622)?(_0x2682e4=_0xce6110['apply'](this,_0x4e3d22),_0x43837d=Date['now'](),_0x4eaf5a['cancel'](),_0x4eaf5a['schedule'](),_0x2682e4):(_0x4eaf5a['apply'](this,_0x4e3d22),_0x2682e4);};return _0x246477['cancel']=_0x4eaf5a['cancel'],_0x246477['flush']=()=>(_0x4eaf5a['flush'](),_0x2682e4),_0x246477;}function throttle$1(_0x70449e,_0x124469=0x0,_0x56b541={}){'object'!=typeof _0x56b541&&(_0x56b541={});const {leading:_0x2d5aad=!0x0,trailing:_0x234058=!0x0}=_0x56b541;return debounce$1(_0x70449e,_0x124469,{'leading':_0x2d5aad,'trailing':_0x234058,'maxWait':_0x124469});}function toString$2(_0x46a48c){if(null==_0x46a48c)return'';if('string'==typeof _0x46a48c)return _0x46a48c;if(Array['isArray'](_0x46a48c))return _0x46a48c['map'](toString$2)['join'](',');const _0x5c5dec=String(_0x46a48c);return'0'===_0x5c5dec&&Object['is'](Number(_0x46a48c),-0x0)?'-0':_0x5c5dec;}function isPlainObject$1(_0x5d8b94){if(!_0x5d8b94||'object'!=typeof _0x5d8b94)return!0x1;const _0x4bc0c3=Object['getPrototypeOf'](_0x5d8b94);return!(null!==_0x4bc0c3&&_0x4bc0c3!==Object['prototype']&&null!==Object['getPrototypeOf'](_0x4bc0c3))&&'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5d8b94);}function isEqualWith(_0x6d18ca,_0xbbbe23,_0x438d81){return isEqualWithImpl(_0x6d18ca,_0xbbbe23,void 0x0,void 0x0,void 0x0,void 0x0,_0x438d81);}function isEqualWithImpl(_0x18a659,_0x140332,_0x2ab6f6,_0x1a6aaf,_0x498153,_0x4f5c8b,_0x2faef3){const _0x2a96ea=_0x2faef3(_0x18a659,_0x140332,_0x2ab6f6,_0x1a6aaf,_0x498153,_0x4f5c8b);if(void 0x0!==_0x2a96ea)return _0x2a96ea;if(typeof _0x18a659==typeof _0x140332)switch(typeof _0x18a659){case'bigint':case'string':case'boolean':case'symbol':case'undefined':case'function':return _0x18a659===_0x140332;case'number':return _0x18a659===_0x140332||Object['is'](_0x18a659,_0x140332);case'object':return areObjectsEqual(_0x18a659,_0x140332,_0x4f5c8b,_0x2faef3);}return areObjectsEqual(_0x18a659,_0x140332,_0x4f5c8b,_0x2faef3);}function areObjectsEqual(_0x1af38e,_0x41d91b,_0x3039a5,_0x39eccb){if(Object['is'](_0x1af38e,_0x41d91b))return!0x0;let _0x58a1fe=getTag(_0x1af38e),_0x100a30=getTag(_0x41d91b);if(_0x58a1fe===argumentsTag&&(_0x58a1fe=objectTag),_0x100a30===argumentsTag&&(_0x100a30=objectTag),_0x58a1fe!==_0x100a30)return!0x1;switch(_0x58a1fe){case stringTag:return _0x1af38e['toString']()===_0x41d91b['toString']();case numberTag:return eq(_0x1af38e['valueOf'](),_0x41d91b['valueOf']());case booleanTag:case dateTag:case symbolTag:return Object['is'](_0x1af38e['valueOf'](),_0x41d91b['valueOf']());case regexpTag:return _0x1af38e['source']===_0x41d91b['source']&&_0x1af38e['flags']===_0x41d91b['flags'];case functionTag:return _0x1af38e===_0x41d91b;}const _0x35fd61=(_0x3039a5=_0x3039a5??new Map())['get'](_0x1af38e),_0x5692c6=_0x3039a5['get'](_0x41d91b);if(null!=_0x35fd61&&null!=_0x5692c6)return _0x35fd61===_0x41d91b;_0x3039a5['set'](_0x1af38e,_0x41d91b),_0x3039a5['set'](_0x41d91b,_0x1af38e);try{switch(_0x58a1fe){case mapTag:if(_0x1af38e['size']!==_0x41d91b['size'])return!0x1;for(const [_0x41c5dd,_0x2b14fe]of _0x1af38e['entries']())if(!_0x41d91b['has'](_0x41c5dd)||!isEqualWithImpl(_0x2b14fe,_0x41d91b['get'](_0x41c5dd),_0x41c5dd,_0x1af38e,_0x41d91b,_0x3039a5,_0x39eccb))return!0x1;return!0x0;case setTag:{if(_0x1af38e['size']!==_0x41d91b['size'])return!0x1;const _0x53e476=Array['from'](_0x1af38e['values']()),_0x3a6401=Array['from'](_0x41d91b['values']());for(let _0x332b7b=0x0;_0x332b7b<_0x53e476['length'];_0x332b7b++){const _0xda604a=_0x53e476[_0x332b7b],_0xed97f4=_0x3a6401['findIndex'](_0x39700c=>isEqualWithImpl(_0xda604a,_0x39700c,void 0x0,_0x1af38e,_0x41d91b,_0x3039a5,_0x39eccb));if(-0x1===_0xed97f4)return!0x1;_0x3a6401['splice'](_0xed97f4,0x1);}return!0x0;}case arrayTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:case bigUint64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case bigInt64ArrayTag:case float32ArrayTag:case float64ArrayTag:if('undefined'!=typeof Buffer&&Buffer['isBuffer'](_0x1af38e)!==Buffer['isBuffer'](_0x41d91b))return!0x1;if(_0x1af38e['length']!==_0x41d91b['length'])return!0x1;for(let _0x59e381=0x0;_0x59e381<_0x1af38e['length'];_0x59e381++)if(!isEqualWithImpl(_0x1af38e[_0x59e381],_0x41d91b[_0x59e381],_0x59e381,_0x1af38e,_0x41d91b,_0x3039a5,_0x39eccb))return!0x1;return!0x0;case arrayBufferTag:return _0x1af38e['byteLength']===_0x41d91b['byteLength']&&areObjectsEqual(new Uint8Array(_0x1af38e),new Uint8Array(_0x41d91b),_0x3039a5,_0x39eccb);case dataViewTag:return _0x1af38e['byteLength']===_0x41d91b['byteLength']&&_0x1af38e['byteOffset']===_0x41d91b['byteOffset']&&areObjectsEqual(new Uint8Array(_0x1af38e),new Uint8Array(_0x41d91b),_0x3039a5,_0x39eccb);case errorTag:return _0x1af38e['name']===_0x41d91b['name']&&_0x1af38e['message']===_0x41d91b['message'];case objectTag:{if(!(areObjectsEqual(_0x1af38e['constructor'],_0x41d91b['constructor'],_0x3039a5,_0x39eccb)||isPlainObject$1(_0x1af38e)&&isPlainObject$1(_0x41d91b)))return!0x1;const _0x245d71=[...Object['keys'](_0x1af38e),...getSymbols(_0x1af38e)],_0x4f87d1=[...Object['keys'](_0x41d91b),...getSymbols(_0x41d91b)];if(_0x245d71['length']!==_0x4f87d1['length'])return!0x1;for(let _0x3f989d=0x0;_0x3f989d<_0x245d71['length'];_0x3f989d++){const _0xa113f=_0x245d71[_0x3f989d],_0x1b872a=_0x1af38e[_0xa113f];if(!Object['hasOwn'](_0x41d91b,_0xa113f))return!0x1;if(!isEqualWithImpl(_0x1b872a,_0x41d91b[_0xa113f],_0xa113f,_0x1af38e,_0x41d91b,_0x3039a5,_0x39eccb))return!0x1;}return!0x0;}default:return!0x1;}}finally{_0x3039a5['delete'](_0x1af38e),_0x3039a5['delete'](_0x41d91b);}}function noop$2(){}function isEqual(_0x24515c,_0x1c68cd){return isEqualWith(_0x24515c,_0x1c68cd,noop$2);}function isPlainObject(_0x51d1c6){if('object'!=typeof _0x51d1c6)return!0x1;if(null==_0x51d1c6)return!0x1;if(null===Object['getPrototypeOf'](_0x51d1c6))return!0x0;if('[object\x20Object]'!==Object['prototype']['toString']['call'](_0x51d1c6)){const _0x3882fe=_0x51d1c6[Symbol['toStringTag']];if(null==_0x3882fe)return!0x1;return!!Object['getOwnPropertyDescriptor'](_0x51d1c6,Symbol['toStringTag'])?.['writable']&&_0x51d1c6['toString']()==='[object\x20'+_0x3882fe+']';}let _0x34171f=_0x51d1c6;for(;null!==Object['getPrototypeOf'](_0x34171f);)_0x34171f=Object['getPrototypeOf'](_0x34171f);return Object['getPrototypeOf'](_0x51d1c6)===_0x34171f;}function omit(_0x3f00ff,..._0x54f977){if(null==_0x3f00ff)return{};const _0x33f02c=cloneDeep$1(_0x3f00ff);for(let _0x106c28=0x0;_0x106c28<_0x54f977['length'];_0x106c28++){let _0x18672d=_0x54f977[_0x106c28];switch(typeof _0x18672d){case'object':Array['isArray'](_0x18672d)||(_0x18672d=Array['from'](_0x18672d));for(let _0x20cb97=0x0;_0x20cb97<_0x18672d['length'];_0x20cb97++){unset(_0x33f02c,_0x18672d[_0x20cb97]);}break;case'string':case'symbol':case'number':unset(_0x33f02c,_0x18672d);}}return _0x33f02c;}function isElement$2(_0x235d9c){return isObjectLike(_0x235d9c)&&0x1===_0x235d9c['nodeType']&&!isPlainObject(_0x235d9c);}const htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','\x22':'&quot;','\x27':'&#39;'};function escape$1(_0x365e04){return _0x365e04['replace'](/[&<>"']/g,_0x364d3f=>htmlEscapes[_0x364d3f]);}function escape(_0x5700e9){return escape$1(toString$2(_0x5700e9));}function escapeRegExp$2(_0x275635){return _0x275635['replace'](/[\\^$.*+?()[\]{}|]/g,'\x5c$&');}function escapeRegExp$1(_0x11239a){return escapeRegExp$2(toString$2(_0x11239a));}const htmlUnescapes={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'\x22','&#39;':'\x27'};function unescape$2(_0x41ce6c){return _0x41ce6c['replace'](/&(?:amp|lt|gt|quot|#(0+)?39);/g,_0x11fb00=>htmlUnescapes[_0x11fb00]||'\x27');}function unescape$1(_0x37e3d4){return unescape$2(toString$2(_0x37e3d4));}class AIHistoryListItemView extends ListItemView{constructor(_0x54c10e){super();const _0x3bb420=new ButtonLabelView(),_0x27f1ea=new ButtonView(this['locale'],_0x3bb420);this['children']['add'](_0x27f1ea),_0x27f1ea['set']({'label':_0x54c10e['prompt'],'withText':!0x0}),_0x27f1ea['on']('execute',()=>{this['fire']('execute',{'value':unescape$1(_0x54c10e['prompt'])});});}}const SESSION_STORAGE_KEY='CKEditor/AIFormView/PromptHistory',MAX_HISTORY_LENGTH=0x14;class PromptHistory extends Collection{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x4b68e7,_0x2727a5)=>{const _0xc1bada=normalizePromptText(_0x2727a5['prompt']);for(const _0x769245 of this)if(_0x769245!=_0x2727a5&&normalizePromptText(_0x769245['prompt'])===_0xc1bada){this['remove'](_0x769245);break;}this['length']>MAX_HISTORY_LENGTH&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x54db8a=sessionStorage['getItem'](SESSION_STORAGE_KEY)||'[]';this['addMany'](JSON['parse'](_0x54db8a));}['_saveToSessionStorage'](){sessionStorage['setItem'](SESSION_STORAGE_KEY,JSON['stringify'](this['map'](_0x490df0=>_0x490df0)));}}function normalizePromptText(_0x1cc686){return _0x1cc686['toLowerCase']()['trim']();}class AIFormView extends View{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x50af32,_0x2d73b3,_0x31581f=''){super(_0x50af32),this['set']('isEnabled',!0x0),this['set']('isProcessing',!0x1),this['set']('prompt',''),this['set']('value',''),this['set']('isError',!0x1),this['set']('mainAction',AIFormToolbarViewMainActionLabel['REPLACE']),this['_promptHistory']=new PromptHistory(),this['errorView']=new AIFormErrorView(_0x50af32),this['contentArea']=new AIFormContentArea(_0x50af32,_0x31581f),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 FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection']([this['contentArea'],this['contentArea']['copyButtonView'],this['toolbar'],this['promptView']]),this['focusCycler']=new FocusCycler({'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 _0x533f9c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x2d73b3],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x533f9c['if']('isError','ck-hidden',_0x2e9b59=>!_0x2e9b59)]},'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'](_0x488fa0=0x1){-0x1===_0x488fa0?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 _0x56a505=this['locale'],_0x235e90=new AIFormPromptView(_0x56a505,{'queryView':{'label':getTranslation$j(_0x56a505,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':getTranslation$j(_0x56a505,'Empty\x20history'),'secondary':getTranslation$j(_0x56a505,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x235e90['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x118db1,_0x1c2e67)=>_0x118db1&&!_0x1c2e67),this['listenTo'](_0x235e90,'submit',(_0x276c28,_0x4bd004)=>{this['prompt']=_0x4bd004;const _0x33d728=escape(_0x4bd004);this['fire']('submitPrompt',_0x33d728),_0x4bd004['trim']()&&this['_promptHistory']['add']({'prompt':_0x33d728},0x0);},{'priority':'high'}),_0x235e90;}['_createHistoryView'](){const _0x42e0aa=new AIHistoryListView(this['locale']);return _0x42e0aa['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](AIHistoryListItemView),_0x42e0aa['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x42e0aa;}['_createToolbar'](){const _0x4086c9=new AIFormToolbarView(this['locale']);return _0x4086c9['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x4a3087,_0x3f5bf5,_0x749be8)=>_0x4a3087&&!_0x3f5bf5&&!!_0x749be8),_0x4086c9['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x4086c9['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x3718e1,_0x1f0964,_0x5c55f9)=>_0x3718e1&&!_0x1f0964&&!!_0x5c55f9),_0x4086c9['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x4086c9['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x146114,_0x556e27)=>_0x146114&&!_0x556e27),_0x4086c9['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x4086c9['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x4086c9['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x4086c9;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x6d9903=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=getTranslation$j(_0x6d9903,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x4990a6){const _0x7abd99=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x4990a6||getTranslation$j(_0x7abd99,'AI_ERROR_FAILED'),this['value']||(this['contentArea']['isVisible']=!0x1);}}const DomDataTransfer=globalThis['DataTransfer'];class AIAssistantUI extends Plugin{['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[ClipboardMarkersUtils,AIAssistantEditing,AIAdapter,Dialog];}constructor(_0x4c074d){super(_0x4c074d),_0x4c074d['config']['define']('ai.assistant.disabledElements',['media','rawHtml','tableOfContents']),_0x4c074d['config']['define']('ai.assistant.contentAreaCssClass',''),_0x4c074d['config']['define']('ai.assistant.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x4c074d['config']['get']('ai.assistant.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x2abe35}=this;this['_aiAdapter']=_0x2abe35['plugins']['get'](AIAdapter),this['_dialog']=_0x2abe35['plugins']['get'](Dialog),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0xff122c=new ShowAIAssistantCommand(_0x2abe35,Array['from'](this['_commandDefinitions']['values']()));_0x2abe35['commands']['add']('showAIAssistant',_0xff122c),_0x2abe35['ui']['componentFactory']['add']('aiCommands',_0x3f99b2=>{const _0x34bea8=createDropdown(_0x3f99b2);return _0x34bea8['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0x34bea8['buttonView']['set']({'label':getTranslation$j(_0x3f99b2,'AI\x20Commands'),'icon':IconMagicWand,'tooltip':!0x0}),_0x34bea8['on']('execute',_0x293b9d=>this['_onExecute'](_0x293b9d['source']['id'])),addMenuToDropdown(_0x34bea8,_0x2abe35['ui']['view']['body'],getMenuDropdownDefinition(_0x2abe35),{'ariaLabel':getTranslation$j(_0x3f99b2,'AI\x20Commands')}),_0x34bea8['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0xff122c['on']('change:enabledCommandsIds',_0x4568c6),_0x34bea8['menuView']['once']('render',_0x4568c6),_0x34bea8;function _0x4568c6(){_0x34bea8['isEnabled']=_0xff122c['enabledCommandsIds']['length']>0x0;for(const _0xb02052 of _0x34bea8['menuView']['buttons'])_0xb02052['isEnabled']=_0xff122c['enabledCommandsIds']['includes'](_0xb02052['id']);}}),_0x2abe35['ui']['componentFactory']['add']('menuBar:aiCommands',_0x4dd5a8=>{const _0x1ecbfa=new MenuBarMenuView(_0x4dd5a8);_0x1ecbfa['buttonView']['set']({'label':getTranslation$j(_0x4dd5a8,'AI\x20Commands'),'icon':IconMagicWand}),_0x1ecbfa['bind']('isEnabled')['to'](_0xff122c,'enabledCommandsIds',_0x565463=>_0x565463['length']>0x0);const _0x3876d4=normalizeCommandsConfig(_0x2abe35['config']['get']('ai.assistant.commands'),_0x4dd5a8);return this['_populateMenuBarMenu'](_0xff122c,_0x1ecbfa,_0x3876d4,_0x1528c4=>this['_onExecute'](_0x1528c4)),_0x1ecbfa;}),_0x2abe35['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x2fc9e7=this['_createAIAssistantUIButton'](ButtonView);return _0x2fc9e7['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x2fc9e7;}),_0x2abe35['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x1bc8f2=this['_createAIAssistantUIButton'](MenuBarMenuListItemButtonView);return _0x1bc8f2['set']({'role':'menuitemcheckbox'}),_0x1bc8f2;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x279505=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b71e8;for(const _0x3f621a in _0x279505){const _0x332fe5=_0x3f621a,_0x438568=_0x279505[_0x332fe5];if('aiLicenseKeyValid'==_0x438568||'aiLicenseKeyInvalid'==_0x438568||'aiLicenseKeyExpired'==_0x438568||'aiLicenseKeyDomainLimit'==_0x438568||'aiLicenseKeyNotAllowed'==_0x438568||'aiLicenseKeyEvaluationLimit'==_0x438568||'aiLicenseKeyUsageLimit'==_0x438568){delete _0x279505[_0x332fe5],_0x3b71e8=_0x438568,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x3b71e8&&_0x279505['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x3b71e8&&_0x279505['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x3b71e8&&_0x279505['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x3b71e8&&_0x279505['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x3b71e8&&_0x279505['_showLicenseError']('evaluationLimit'),'aiLicenseKeyUsageLimit'==_0x3b71e8&&_0x279505['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0xd0a24f='',_0x74ad1e='',_0x4e7c26='custom'){const _0x1c4cfd=this['editor'],_0x16d660=_0x1c4cfd['editing']['view'],_0x3de01c=_0x1c4cfd['plugins']['get'](AIAssistantEditing),_0x28aa38=_0x1c4cfd['plugins']['get'](ClipboardMarkersUtils);_0x3de01c['showFakeVisualSelection']();const _0x1984f6=new DomDataTransfer(),_0x16bebe=new ClipboardEvent('copy',{'clipboardData':_0x1984f6}),_0x12c01d=new ViewDataTransfer(_0x1984f6),_0x1091b2=new ViewDocumentDomEventData(_0x16d660,_0x16bebe,{'dataTransfer':_0x12c01d});_0x28aa38['_forceMarkersCopy']('comment',()=>{_0x16d660['document']['fire']('copy',_0x1091b2);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new AIAssistantController(_0x1c4cfd,this['_aiAdapter']['textAdapter'],this['_formView']));let _0x17f90a=_0x12c01d['getData']('text/html');const _0x1de0f7=_0x1c4cfd['model']['document']['selection'],_0x5b4345=Array['from'](_0x1de0f7['getRanges']());0x1===_0x5b4345['length']&&_0x5b4345[0x0]['isFlat']&&!_0x1de0f7['getSelectedElement']()&&''!==_0x17f90a['replace'](/&nbsp;/g,'')['trim']()&&(_0x17f90a='<p>'+_0x17f90a+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x4e7c26,'query':_0xd0a24f,'htmlContent':_0x17f90a,'label':_0x74ad1e,'mainActionLabel':AIFormToolbarViewMainActionLabel[_0x1c4cfd['model']['document']['selection']['isCollapsed']?'INSERT':'REPLACE']}),'aiAssistant'!==this['_dialog']['id']?this['_dialog']['show']({'id':'aiAssistant','icon':IconRobotPencil,'title':getTranslation$j(this['editor']['locale'],'AI\x20Assistant'),'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_SIDE'],'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_aiAssistantController']['reset'](),_0x3de01c['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x32077a=new Map(),_0x2d06e6=normalizeCommandsConfig(this['editor']['config']['get']('ai.assistant.commands'),this['editor']['locale']);for(const _0x22f329 of _0x2d06e6)for(const _0xf8eeaf of _0x22f329['commands'])_0x32077a['set'](_0xf8eeaf['id'],{..._0xf8eeaf,'groupId':_0x22f329['groupId'],'groupLabel':_0x22f329['groupLabel']||_0x22f329['groupId']});return _0x32077a;}['_createAIAssistantUIButton'](_0x2a99c3){const _0x14c600=this['editor'],_0x1e86f8=_0x14c600['commands']['get']('showAIAssistant'),_0x7ee6c4=new _0x2a99c3(_0x14c600['locale']);return _0x7ee6c4['set']({'label':getTranslation$j(_0x14c600['locale'],'AI\x20Assistant'),'icon':IconRobotPencil,'isToggleable':!0x0}),_0x7ee6c4['bind']('isEnabled')['to'](_0x1e86f8),_0x7ee6c4['bind']('isOn')['to'](this['_dialog'],'id',_0xc79636=>'aiAssistant'===_0xc79636),this['listenTo'](_0x7ee6c4,'execute',()=>{_0x7ee6c4['isOn']?this['hideUI']():_0x1e86f8['execute']();}),_0x7ee6c4;}['_initView'](){const _0x3b6014=this['editor']['plugins']['get'](AIAssistantEditing);this['_formView']=new AIFormView(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',()=>{_0x3b6014['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x3b6014['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x5da8bd,ui:{ariaLiveAnnouncer:_0x5396db}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x1324aa,_0x520cc3,_0x372651)=>{const _0xe0c8b1=this['_aiAssistantController']['currentContext'];_0x372651?_0x5396db['announce'](getTranslation$j(_0x5da8bd,'AI\x20is\x20writing')):_0xe0c8b1&&_0x5396db['announce'](getTranslation$j(_0x5da8bd,'Generated\x20content:\x20%0',_0xe0c8b1),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x52b4a4,_0x20265c,_0x234a5c)=>{if(_0x234a5c){const _0x3c807b=this['_formView']['errorView']['text'];_0x5396db['announce'](getTranslation$j(_0x5da8bd,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x3c807b));}});}['_onExecute'](_0xe42961){const _0x51dd66=this['_commandDefinitions']['get'](_0xe42961),_0x14252c=this['editor'],_0x56a643=_0x14252c['model']['document']['selection'],_0x41f42d=_0x14252c['commands']['get']('showAIAssistant'),_0x171a59=_0x14252c['plugins']['get'](AIAssistantEditing),_0x55c2b0=''+(_0x51dd66['groupId']!==UNGROUPED_COMMANDS_GROUP_ID?_0x51dd66['groupLabel']+':\x20':'')+_0x51dd66['label'];if(!0x1!==_0x51dd66['requiresContent']&&_0x56a643['isCollapsed']){const _0x4e9ad2=first(_0x56a643['getSelectedBlocks']())||_0x14252c['model']['schema']['getLimitElement'](_0x56a643);_0x14252c['model']['change'](_0x4f2273=>{_0x4f2273['setSelection'](_0x4e9ad2,'in');});}_0x171a59['showFakeVisualSelection'](),_0x41f42d['execute'](_0x51dd66['prompt'],_0x55c2b0,'command:'+_0xe42961);}['_populateMenuBarMenu'](_0x5f6e6f,_0x407e69,_0x59cb87,_0x38de12){const _0x3325ad=this['editor'],_0x26ccd6=_0x3325ad['locale'],_0x2f7ace=new MenuBarMenuListView(_0x26ccd6),_0x4cfb44=sortDefinitionsByOrder(_0x3325ad,_0x59cb87)['filter'](_0x38fd21=>_0x38fd21['commands']['length']);0x1===_0x4cfb44['length']?this['_getMenuBarGroupButtons']({'command':_0x5f6e6f,'commands':_0x4cfb44[0x0]['commands'],'parentMenuView':_0x407e69,'onExecute':_0x38de12})['forEach'](_0x4c09c4=>_0x2f7ace['items']['add'](_0x4c09c4)):_0x4cfb44['forEach'](({groupId:_0x31865d,groupLabel:_0x4eb004,commands:_0x13eaf4})=>{const _0x2623c4=new MenuBarMenuListItemView(_0x26ccd6,_0x407e69),_0x1775cb=new MenuBarMenuView(_0x26ccd6),_0xecf2f0=new MenuBarMenuListView(_0x26ccd6),_0x464011=this['_getMenuBarGroupButtons']({'command':_0x5f6e6f,'commands':_0x13eaf4,'parentMenuView':_0x1775cb,'onExecute':_0x38de12});_0x1775cb['buttonView']['set']({'label':_0x4eb004||_0x31865d}),_0x1775cb['delegate']('execute')['to'](_0x407e69),_0xecf2f0['items']['addMany'](_0x464011),_0x1775cb['panelView']['children']['add'](_0xecf2f0),_0x2623c4['children']['add'](_0x1775cb),_0x2f7ace['items']['add'](_0x2623c4);}),_0x407e69['panelView']['children']['add'](_0x2f7ace);}['_getMenuBarGroupButtons']({command:_0x43265d,commands:_0x570d03,parentMenuView:_0x3cab28,onExecute:_0x5c4894}){const _0x5ef5bb=this['editor'],_0x5cbe01=_0x5ef5bb['locale'];return sortDefinitionsByOrder(_0x5ef5bb,_0x570d03)['map'](_0x466477=>{const _0xa9a4c=new MenuBarMenuListItemView(_0x5cbe01,_0x3cab28),_0x421f2f=new MenuBarMenuListItemButtonView(_0x5cbe01);return _0x421f2f['set']({'label':_0x466477['label']}),_0x421f2f['delegate']('execute')['to'](_0x3cab28),_0x421f2f['on']('execute',()=>_0x5c4894(_0x466477['id'])),_0x421f2f['bind']('isEnabled')['to'](_0x43265d,'enabledCommandsIds',_0x30add8=>_0x30add8['includes'](_0x466477['id'])),_0xa9a4c['children']['add'](_0x421f2f),_0xa9a4c;});}}function getMenuDropdownDefinition(_0x60388c){const _0x2a1b73=normalizeCommandsConfig(_0x60388c['config']['get']('ai.assistant.commands'),_0x60388c['locale']),_0x2f18a3=sortDefinitionsByOrder(_0x60388c,_0x2a1b73)['filter'](_0x23e1ca=>_0x23e1ca['commands']['length']);return 0x1===_0x2f18a3['length']?sortDefinitionsByOrder(_0x60388c,_0x2f18a3[0x0]['commands'])['map'](_0x1a22d3=>({'id':_0x1a22d3['id'],'label':_0x1a22d3['label']})):_0x2f18a3['map'](_0x417a25=>{const {groupId:_0x329288,groupLabel:_0x49b42f,commands:_0x3e141f}=_0x417a25,_0x5e3f1a=sortDefinitionsByOrder(_0x60388c,_0x3e141f)['map'](_0x2a88d8=>({'id':_0x2a88d8['id'],'label':_0x2a88d8['label']}));return{'id':_0x329288,'menu':_0x49b42f||_0x329288,'children':_0x5e3f1a};});}function sortDefinitionsCallback(_0x135f65,_0x5f12d8){return void 0x0!==_0x135f65['order']&&void 0x0===_0x5f12d8['order']?0x1:void 0x0===_0x135f65['order']&&void 0x0!==_0x5f12d8['order']?-0x1:void 0x0!==_0x135f65['order']&&void 0x0!==_0x5f12d8['order']?_0x135f65['order']-_0x5f12d8['order']:0x0;}function sortDefinitionsByOrder(_0x212728,_0xdd981d){_0xdd981d['sort'](sortDefinitionsCallback);const _0x4b937c={},_0x55a751=[];for(const _0x2fb4a6 of _0xdd981d)if(void 0x0!==_0x2fb4a6['order']){if(_0x2fb4a6['order']in _0x4b937c)throw new CKEditorError('ai-commands-config-order-collision',_0x212728,{'conflictingDefinitions':[_0x2fb4a6,_0x4b937c[_0x2fb4a6['order']]]});_0x4b937c[_0x2fb4a6['order']]=_0x2fb4a6,_0x55a751['splice'](_0x2fb4a6['order'],0x0,_0x2fb4a6);}else _0x55a751['push'](_0x2fb4a6);return _0x55a751;}class AIAssistant extends Plugin{static get['requires'](){return[AIAssistantUI,AIAssistantEditing];}static get['pluginName'](){return'AIAssistant';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf23376){super(_0xf23376);const _0x54c150=_0xf23376['config'],_0x561c15=_0xf23376['locale'];_0x54c150['define']('ai.assistant.preserveComments',!0x0),_0x54c150['define']('ai.assistant.commands',getDefaultAICommands(_0x561c15)),_0x54c150['define']('ai.assistant.extraCommandGroups',[]),_0x54c150['define']('ai.assistant.removeCommands',[]);let _0x8cb31=normalizeCommandsConfig(_0x54c150['get']('ai.assistant.commands'),_0x561c15);const _0x5b05a3=_0x54c150['get']('ai.assistant.extraCommandGroups'),_0x29bbed=_0x54c150['get']('ai.assistant.removeCommands');_0x5b05a3['forEach'](_0x3ce5ed=>{const _0x106214=_0x8cb31['find'](_0xf0264c=>_0xf0264c['groupId']===_0x3ce5ed['groupId']);_0x106214?_0x106214['commands']=_0x106214['commands']['concat'](_0x3ce5ed['commands']):_0x8cb31['push'](_0x3ce5ed);}),_0x8cb31=_0x8cb31['filter'](_0x3beb05=>!_0x29bbed['includes'](_0x3beb05['groupId'])),_0x8cb31['forEach'](_0x49f544=>{_0x49f544['commands']=_0x49f544['commands']['filter'](_0x531d0a=>!_0x29bbed['includes'](_0x531d0a['id']));}),_0x54c150['set']('ai.assistant.commands',_0x8cb31);}}function getDefaultAICommands(_0x335c4d){return[{'groupId':'editOrReview','groupLabel':getTranslation$j(_0x335c4d,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':getTranslation$j(_0x335c4d,'Improve\x20writing'),'prompt':'Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.'},{'id':'makeShorter','label':getTranslation$j(_0x335c4d,'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':getTranslation$j(_0x335c4d,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':getTranslation$j(_0x335c4d,'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':getTranslation$j(_0x335c4d,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':getTranslation$j(_0x335c4d,'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':getTranslation$j(_0x335c4d,'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':getTranslation$j(_0x335c4d,'Change\x20tone'),'commands':[{'id':'professional','label':getTranslation$j(_0x335c4d,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':getTranslation$j(_0x335c4d,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':getTranslation$j(_0x335c4d,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':getTranslation$j(_0x335c4d,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':getTranslation$j(_0x335c4d,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':getTranslation$j(_0x335c4d,'Change\x20style'),'commands':[{'id':'business','label':getTranslation$j(_0x335c4d,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':getTranslation$j(_0x335c4d,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':getTranslation$j(_0x335c4d,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':getTranslation$j(_0x335c4d,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':getTranslation$j(_0x335c4d,'Translate'),'commands':[{'id':'translateEnglish','label':getTranslation$j(_0x335c4d,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':getTranslation$j(_0x335c4d,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':getTranslation$j(_0x335c4d,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':getTranslation$j(_0x335c4d,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':getTranslation$j(_0x335c4d,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':getTranslation$j(_0x335c4d,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':getTranslation$j(_0x335c4d,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':getTranslation$j(_0x335c4d,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}class AITextAdapter extends Plugin{['abortController'];static get['requires'](){return[AIAdapter];}constructor(_0x2dcbaa){super(_0x2dcbaa),this['abortController']=new AbortController();}['init'](){this['editor']['plugins']['get'](AIAdapter)['textAdapter']=this;}['abort'](){this['abortController']['signal']['aborted']||(this['abortController']['abort'](),this['abortController']=new AbortController());}async['makeRequest'](_0x283b3d){return this['sendRequest'](_0x283b3d)['catch'](_0x4c6669=>{if(_0x4c6669 instanceof AIRequestError)return Promise['reject'](_0x4c6669);if('AbortError'==_0x4c6669['name'])return Promise['resolve']();throw console['error'](_0x4c6669),new CKEditorError('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x99b39f,_0x5aea51){const _0xfd531f=this['editor']['locale'],_0x677261={'Content-Type':'application/json'};if('object'==typeof _0x99b39f)Object['assign'](_0x677261,_0x99b39f);else{if(_0x99b39f)try{const _0x3cc50c=await _0x99b39f(_0x5aea51);Object['assign'](_0x677261,_0x3cc50c);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0xfd531f,'AI_ERROR_GET_HEADERS')));}}return _0x677261;}async['_prepareRequestParameters'](_0x5cc509,_0x2308bd){const _0x4a0552=this['editor']['locale'];if('object'==typeof _0x5cc509)return _0x5cc509;try{return await _0x5cc509(_0x2308bd);}catch{return Promise['reject'](new AIRequestError(getTranslation$j(_0x4a0552,'AI_ERROR_GET_PARAMETERS')));}}}class OpenAITextAdapter extends AITextAdapter{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x7896ae){super(_0x7896ae),_0x7896ae['config']['define']('ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x7896ae['config']['get']('ai.assistant.adapter.openAI.requestParameters')||_0x7896ae['config']['define']('ai.assistant.adapter.openAI.requestParameters',{'model':'gpt-4o','temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x7896ae['config']['get']('ai.assistant.adapter.openAI.apiUrl'),this['_requestHeaders']=_0x7896ae['config']['get']('ai.assistant.adapter.openAI.requestHeaders')||{},this['_requestParameters']=_0x7896ae['config']['get']('ai.assistant.adapter.openAI.requestParameters');}async['sendRequest']({query:_0x469b9b,context:_0xfc8bb5,onData:_0x372abc,actionId:_0x297784}){const _0x5248d0=this['editor']['locale'],_0x4df0c7=await this['prepareMessages'](_0x469b9b,_0xfc8bb5,_0x297784),_0x56ad67=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x297784),_0x57b53c=await this['_prepareRequestParameters'](this['_requestParameters'],_0x297784),_0xbc9e46={'messages':_0x4df0c7,..._0x57b53c},_0x4e762d={'method':'POST','headers':_0x56ad67,'body':JSON['stringify'](_0xbc9e46),'signal':this['abortController']['signal']},_0xd69f19=await fetch(this['_apiUrl'],_0x4e762d);if(_0xd69f19['ok'])return _0x57b53c['stream']?await this['_readStreamableResponse'](_0xd69f19,_0x372abc):await this['_readStaticResponse'](_0xd69f19,_0x372abc),Promise['resolve']();{const _0x578843=await _0xd69f19['text']();return _0x578843['includes']('context_length_exceeded')?Promise['reject'](new AIRequestError(getTranslation$j(_0x5248d0,'AI_ERROR_CONTEXT_LENGTH'))):_0x578843['includes']('Moderation')?Promise['reject'](new AIRequestError(getTranslation$j(_0x5248d0,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x578843));}}async['prepareMessages'](_0x1f2e6c,_0x24c076,_0x3f79f8){let _0x21a5bf,_0x37583c;return _0x24c076?(_0x21a5bf='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.',_0x37583c='Instruction:\x0a'+_0x1f2e6c+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x24c076):(_0x21a5bf='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.',_0x37583c=_0x1f2e6c),[{'role':'system','content':_0x21a5bf},{'role':'user','content':_0x37583c}];}async['_readStreamableResponse'](_0x2ff337,_0x1c8285){const _0xa2a51b=_0x2ff337['body']['getReader'](),_0x50587a=new TextDecoder();let _0x3bfdd1='',_0xad78a7='',_0x38cbb2='',_0x2cc611=!0x1;for(;!_0x2cc611;){const {done:_0x437d4d,value:_0x34ffd3}=await _0xa2a51b['read'](),_0x1448cf=_0x3bfdd1+_0x50587a['decode'](_0x34ffd3);let _0x30de77='';_0x2cc611=_0x437d4d;try{_0x30de77=this['_cleanUpData'](_0x1448cf),_0x3bfdd1='';}catch{_0x3bfdd1=_0x1448cf;continue;}_0xad78a7+=_0x30de77,!_0x2cc611&&this['_isBufferIncomplete'](_0xad78a7)||_0xad78a7&&(_0x38cbb2+=_0xad78a7,_0xad78a7='',_0x1c8285(_0x38cbb2));}return Promise['resolve']();}async['_readStaticResponse'](_0x16ad19,_0x226859){return _0x226859((await _0x16ad19['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0xed1185){const _0x260dac=_0xed1185['split']('<')['length']!==_0xed1185['split']('>')['length'],_0x5c9ab3=_0xed1185['length']<0x1e;return _0x260dac&&_0x5c9ab3;}['_cleanUpData'](_0x261c78){return _0x261c78['split'](/\n(?![^{]*\})/g)['map'](_0x4a0cb1=>_0x4a0cb1['replace']('data:\x20',''))['filter'](_0x3457a9=>_0x3457a9&&_0x3457a9['length']>0x0&&'[DONE]'!==_0x3457a9)['map'](_0x35c738=>{const {choices:_0x37b0f7}=JSON['parse'](_0x35c738);if(_0x37b0f7[0x0]?.['delta']?.['content'])return _0x37b0f7[0x0]['delta']['content'];})['filter'](_0x4925a0=>_0x4925a0)['join']('');}}class AWSTextAdapter extends AITextAdapter{static get['pluginName'](){return'AWSTextAdapter';}['init'](){super['init'](),logWarning('ai-aws-adapter-not-supported');}async['sendRequest'](_0x126f70){throw logError('ai-aws-adapter-not-supported'),new AIRequestError(getTranslation$j(this['editor']['locale'],'AI_ERROR_AWS_NOT_SUPPORTED'));}}class TabButtonView extends ButtonView{constructor(_0x3485b8,_0x355f44={}){super(_0x3485b8),this['isToggleable']=!0x0,this['set']('side',_0x355f44['side']||'top');const _0x5ba44e=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-tab-button',...toArray$1(_0x355f44['class']||[]),_0x5ba44e['to']('side',_0x2b25cb=>'ck-tab-button_'+_0x2b25cb),_0x5ba44e['to']('class')]}});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class TabPanelView extends View{['children'];constructor(_0x395bb7,_0x5b02de={}){super(_0x395bb7);const _0x256b62=this['bindTemplate'];this['set']('isVisible',!0x1),this['set']('class',''),this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-tab-panel',...toArray$1(_0x5b02de['class']||[]),_0x256b62['to']('class'),_0x256b62['if']('isVisible','ck-hidden',_0x4ffc93=>!_0x4ffc93)]},'children':this['children']});}['show'](){this['set']('isVisible',!0x0);}['hide'](){this['set']('isVisible',!0x1);}}class AITabsView extends View{['buttonViews']=this['createCollection']();['panelViews']=this['createCollection']();['_tabs']=new Map();constructor(_0x382469,_0xfa1e46={}){super(_0x382469),this['set']('class',void 0x0),this['set']('activeTab',null),this['set']('side',_0xfa1e46['side']||'top'),this['set']('isMaximized',!0x1);const _0x25cc60=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-tabs',...toArray$1(_0xfa1e46['class']||[]),_0x25cc60['to']('side',_0x2dd1a0=>'ck-tabs_'+_0x2dd1a0),_0x25cc60['to']('class'),_0x25cc60['to']('isMaximized',_0x3222ba=>_0x3222ba?'ck-ai-tabs_maximized':'')],'tabindex':'0'},'children':[{'tag':'div','attributes':{'class':['ck','ck-tabs__buttons-container',_0x25cc60['to']('side',_0x4bd92f=>'ck-tabs__buttons-container_'+_0x4bd92f)]},'children':this['buttonViews']},{'tag':'div','attributes':{'class':['ck','ck-tabs__panels-container',_0x25cc60['to']('side',_0x94683e=>'ck-tabs__panels-container_'+_0x94683e)]},'children':this['panelViews']},...toArray$1(_0xfa1e46['children']||[])]});}['getTabIds'](){return[...this['_tabs']['keys']()];}['getTab'](_0xf13715){const _0x4cc4b8=this['_tabs']['get'](_0xf13715);return _0x4cc4b8||null;}['addTab'](_0x53a43c){const _0x2afeec=this['_setupButton']({'id':_0x53a43c['id'],'label':_0x53a43c['buttonLabel'],'icon':_0x53a43c['buttonIcon'],'order':_0x53a43c['order']}),_0x1fc4d8=new TabPanelView(this['locale']);return _0x1fc4d8['render'](),_0x53a43c['content']&&_0x1fc4d8['children']['add'](_0x53a43c['content']),this['panelViews']['add'](_0x1fc4d8),this['_tabs']['set'](_0x53a43c['id'],{'button':_0x2afeec,'panel':_0x1fc4d8,'order':void 0x0!==_0x53a43c['order']?_0x53a43c['order']:null}),this['fire']('addTab:'+_0x53a43c['id'],{'id':_0x53a43c['id'],'button':_0x2afeec,'panel':_0x1fc4d8}),null===this['activeTab']?this['activateTab'](_0x53a43c['id']):this['_hidePanel'](_0x53a43c['id']),{'button':_0x2afeec,'panel':_0x1fc4d8};}['activateTab'](_0x14c78f){if(null!==_0x14c78f&&!this['getTab'](_0x14c78f))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x14c78f});this['activeTab']!==_0x14c78f&&(this['activeTab']&&this['_hidePanel'](this['activeTab']),this['activeTab']=_0x14c78f,_0x14c78f&&this['_showPanel'](_0x14c78f),this['fire']('activateTab:'+_0x14c78f,_0x14c78f));}['showTab'](_0xaddbb3){if(!this['getTab'](_0xaddbb3))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0xaddbb3});this['_showPanel'](_0xaddbb3),this['_showButton'](_0xaddbb3),this['fire']('show:'+_0xaddbb3,_0xaddbb3);}['hideTab'](_0x371eff){if(!this['getTab'](_0x371eff))throw new CKEditorError('ui-tabsview-tab-not-found',{'tabs':this,'tabId':_0x371eff});const _0x299ebd=this['activeTab'];this['_hidePanel'](_0x371eff),this['_hideButton'](_0x371eff);const _0x3092d2=this['getTabIds']();_0x299ebd===_0x371eff&&_0x3092d2['length']>0x1&&this['activateTab'](_0x3092d2['find'](_0x50b661=>_0x50b661!==_0x371eff)),this['fire']('hide:'+_0x371eff,_0x371eff);}['_getPanel'](_0x279a0e){const _0x4d2fd8=this['_tabs']['get'](_0x279a0e);return _0x4d2fd8?_0x4d2fd8['panel']:null;}['_showPanel'](_0x237e98){null!==this['activeTab']&&this['activeTab']!==_0x237e98||this['_getPanel'](_0x237e98)['show']();}['_hidePanel'](_0x333fd1){const _0x12c361=this['_getPanel'](_0x333fd1);_0x12c361['isVisible']&&(this['activeTab']===_0x333fd1&&(this['activeTab']=null),_0x12c361['hide']());}['_getButton'](_0x25ac36){const _0xfcf768=this['_tabs']['get'](_0x25ac36);return _0xfcf768?_0xfcf768['button']:null;}['_showButton'](_0x33e5f3){this['_getButton'](_0x33e5f3)['show']();}['_hideButton'](_0x148080){this['_getButton'](_0x148080)['hide']();}['_setupButton'](_0x346907){const _0x33281b=new TabButtonView(this['locale'],{'side':this['side']}),_0x22b102=this['buttonViews'];if(_0x33281b['set']({'label':_0x346907['label'],'icon':_0x346907['icon'],'tooltip':!0x0,'withText':!0x0}),_0x33281b['bind']('isOn')['to'](this,'activeTab',_0x8214ad=>_0x8214ad===_0x346907['id']),_0x33281b['bind']('side')['to'](this,'side'),_0x346907['order']){const _0x3a8dbc=[...this['_tabs']]['reduce']((_0x460bf6,_0x2ded65)=>{const _0x3498cf=_0x2ded65[0x0],{order:_0x2e14db}=_0x2ded65[0x1];return!_0x2e14db||_0x2e14db>_0x346907['order']?_0x460bf6:_0x2e14db>=_0x460bf6['order']?{'id':_0x3498cf,'order':_0x2e14db}:_0x460bf6;},{'id':'','order':0x0}),_0x500c10=_0x22b102['getIndex'](this['_getButton'](_0x3a8dbc['id']));_0x22b102['add'](_0x33281b,_0x500c10+0x1);}else _0x22b102['add'](_0x33281b);return _0x33281b['on']('execute',()=>{this['activateTab'](_0x346907['id']);}),_0x33281b;}}const AI_TABS_VIEW_TYPES=['overlay','sidebar','custom'],AI_TABS_VIEW_SIDES=['left','right'];class AITabsMainView extends AITabsView{constructor(_0x548cf7,_0x212fd6={}){super(_0x548cf7,_0x212fd6),this['set']('type',_0x212fd6['type']||'sidebar'),this['set']('side',_0x212fd6['side']||'right'),this['set']('isVisible',_0x212fd6['visibleByDefault']??!0x0);const _0x5dac12=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-tabs',_0x5dac12['if']('type','ck-ai-tabs__overlay',_0x1192eb=>'overlay'===_0x1192eb),_0x5dac12['if']('type','ck-ai-tabs__sidebar',_0x30da5b=>'sidebar'===_0x30da5b),_0x5dac12['if']('isVisible','ck-hidden',_0x45ef85=>!_0x45ef85)]}}),this['buttonViews']['on']('add',(_0xaf1638,_0x2561ca)=>{_0x2561ca['set']('withText',!0x1);});}}class AITabs extends ContextPlugin{['view'];['container']=null;['showResizeButton']=!0x0;static get['pluginName'](){return'AITabs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36a55d){super(_0x36a55d);const _0x53fa8b=this['context']['config']['get']('ai.container');if(this['set']('side','right'),!_0x53fa8b)throw new CKEditorError('ai-tabs-configuration-not-found');if(void 0x0!==_0x53fa8b['showResizeButton']&&(this['showResizeButton']=_0x53fa8b['showResizeButton']),'sidebar'!==_0x53fa8b['type']&&'overlay'!==_0x53fa8b['type']||_0x53fa8b['side']&&(this['side']=_0x53fa8b['side']),'sidebar'===_0x53fa8b['type']){if(this['container']=_0x53fa8b['element'],this['set']('type','sidebar'),!this['container'])throw new CKEditorError('ai-tabs-sidebar-container-element-not-found');}else'overlay'===_0x53fa8b['type']?(this['container']=document['body'],this['set']('type','overlay')):(this['container']=null,this['set']('type','custom'));this['view']=new AITabsMainView(this['context']['locale'],{'side':this['side'],'type':this['type'],'visibleByDefault':void 0x0===_0x53fa8b['visibleByDefault']||_0x53fa8b['visibleByDefault']}),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 Editor&&this['context']['ui']['focusTracker']['add'](this['view']['element']);}['switchType'](_0x710bfd){if(_0x710bfd&&this['type']!==_0x710bfd){if(!AI_TABS_VIEW_TYPES['includes'](_0x710bfd))throw new CKEditorError('ai-tabs-unsupported-ui-type');this['type']=_0x710bfd;}}['switchSide'](_0x2939c6){if(_0x2939c6&&this['side']!==_0x2939c6){if(!AI_TABS_VIEW_SIDES['includes'](_0x2939c6))throw new CKEditorError('ai-tabs-unsupported-ui-side');this['side']=_0x2939c6;}}['resize'](){this['view']['isMaximized']=!this['view']['isMaximized'],this['fire']('resizedTabs',this['view']['isMaximized']);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['view']['element']&&this['view']['element']['remove']();}}class ParseError extends Error{constructor(_0x336e52,_0x25cc11){super(_0x336e52),this['name']='ParseError',this['type']=_0x25cc11['type'],this['field']=_0x25cc11['field'],this['value']=_0x25cc11['value'],this['line']=_0x25cc11['line'];}}function noop$1(_0x1bb4f2){}function createParser(_0x40e2c1){if('function'==typeof _0x40e2c1)throw new TypeError('`callbacks`\x20must\x20be\x20an\x20object,\x20got\x20a\x20function\x20instead.\x20Did\x20you\x20mean\x20`{onEvent:\x20fn}`?');const {onEvent:_0x512775=noop$1,onError:_0x5b6782=noop$1,onRetry:_0x20c923=noop$1,onComment:_0x9cf102}=_0x40e2c1;let _0x32fdf3,_0x3ae0b1='',_0x139658=!0x0,_0x46ebef='',_0xbeb9f0='';function _0x25fd67(_0xeef297){if(''===_0xeef297)return _0x46ebef['length']>0x0&&_0x512775({'id':_0x32fdf3,'event':_0xbeb9f0||void 0x0,'data':_0x46ebef['endsWith']('\x0a')?_0x46ebef['slice'](0x0,-0x1):_0x46ebef}),_0x32fdf3=void 0x0,_0x46ebef='',void(_0xbeb9f0='');if(_0xeef297['startsWith'](':'))return void(_0x9cf102&&_0x9cf102(_0xeef297['slice'](_0xeef297['startsWith'](':\x20')?0x2:0x1)));const _0x1f959a=_0xeef297['indexOf'](':');if(-0x1!==_0x1f959a){const _0x3bb99e=_0xeef297['slice'](0x0,_0x1f959a),_0x580de5='\x20'===_0xeef297[_0x1f959a+0x1]?0x2:0x1;return void _0x1a14a8(_0x3bb99e,_0xeef297['slice'](_0x1f959a+_0x580de5),_0xeef297);}_0x1a14a8(_0xeef297,'',_0xeef297);}function _0x1a14a8(_0xcb3731,_0x2a4f86,_0x291416){switch(_0xcb3731){case'event':_0xbeb9f0=_0x2a4f86;break;case'data':_0x46ebef=''+_0x46ebef+_0x2a4f86+'\x0a';break;case'id':_0x32fdf3=_0x2a4f86['includes']('\x00')?void 0x0:_0x2a4f86;break;case'retry':/^\d+$/['test'](_0x2a4f86)?_0x20c923(parseInt(_0x2a4f86,0xa)):_0x5b6782(new ParseError('Invalid\x20`retry`\x20value:\x20\x22'+_0x2a4f86+'\x22',{'type':'invalid-retry','value':_0x2a4f86,'line':_0x291416}));break;default:_0x5b6782(new ParseError('Unknown\x20field\x20\x22'+(_0xcb3731['length']>0x14?_0xcb3731['slice'](0x0,0x14)+'…':_0xcb3731)+'\x22',{'type':'unknown-field','field':_0xcb3731,'value':_0x2a4f86,'line':_0x291416}));}}return{'feed':function(_0x201d5e){const _0x5baf52=_0x139658?_0x201d5e['replace'](/^\xEF\xBB\xBF/,''):_0x201d5e,[_0x43795e,_0x2a444e]=splitLines(''+_0x3ae0b1+_0x5baf52);for(const _0x5f20d6 of _0x43795e)_0x25fd67(_0x5f20d6);_0x3ae0b1=_0x2a444e,_0x139658=!0x1;},'reset':function(_0x5aff2b={}){_0x3ae0b1&&_0x5aff2b['consume']&&_0x25fd67(_0x3ae0b1),_0x139658=!0x0,_0x32fdf3=void 0x0,_0x46ebef='',_0xbeb9f0='',_0x3ae0b1='';}};}function splitLines(_0x4bc158){const _0x424539=[];let _0x36d49e='',_0x3c6088=0x0;for(;_0x3c6088<_0x4bc158['length'];){const _0x487b94=_0x4bc158['indexOf']('\x0d',_0x3c6088),_0x809565=_0x4bc158['indexOf']('\x0a',_0x3c6088);let _0x532884=-0x1;if(-0x1!==_0x487b94&&-0x1!==_0x809565?_0x532884=Math['min'](_0x487b94,_0x809565):-0x1!==_0x487b94?_0x532884=_0x487b94:-0x1!==_0x809565&&(_0x532884=_0x809565),-0x1===_0x532884){_0x36d49e=_0x4bc158['slice'](_0x3c6088);break;}{const _0x51ec0d=_0x4bc158['slice'](_0x3c6088,_0x532884);_0x424539['push'](_0x51ec0d),_0x3c6088=_0x532884+0x1,'\x0d'===_0x4bc158[_0x3c6088-0x1]&&'\x0a'===_0x4bc158[_0x3c6088]&&_0x3c6088++;}}return[_0x424539,_0x36d49e];}const MODEL_COMPATIBILITY_VERSION='1';class AIConnector extends ContextPlugin{['_apiUrl'];['_token'];['_decoder'];static get['requires'](){return['CloudServices'];}static get['pluginName'](){return'AIConnector';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x387cd8){super(_0x387cd8),this['context']['config']['define']('ai.serviceUrl','https://ai.cke-cs.com/v1'),this['_apiUrl']=this['context']['config']['get']('ai.serviceUrl'),this['_token']=null,this['_decoder']=new TextDecoder();}['init'](){const _0x1f95fe=this['context']['plugins']['get']('CloudServices');if(!_0x1f95fe['token'])throw new CKEditorError('ai-missing-token',this);this['_token']=_0x1f95fe['token'];}['startConversation'](_0x302dc,_0x59a5c0){const _0x30c912=this['_sendApiRequest']('/conversations','POST',{'id':_0x302dc,'group':_0x59a5c0});return{'getConversation':async()=>(await _0x30c912['request'])['json'](),'abortController':_0x30c912['abortController']};}['queryAssistant']({message:_0x4d7bc0,conversationId:_0x49aff0,parts:_0x5e507f,capabilities:_0x4379d0,model:_0x31325c,attributes:_0x5bd1be}){const _0x4b1d9c={'prompt':_0x4d7bc0,'content':_0x5e507f,'model':_0x31325c,..._0x4379d0&&{'capabilities':_0x4379d0},..._0x5bd1be&&{'attributes':_0x5bd1be}},_0x151771=this['_sendApiRequest']('/conversations/'+_0x49aff0+'/messages','POST',_0x4b1d9c);return{'getStream':async()=>{const _0x1bcce5=(await _0x151771['request'])['body'];return this['_getStreamReader'](_0x1bcce5);},'abortController':_0x151771['abortController']};}['executeCustomAction']({content:_0x58a269,message:_0x5661d4,model:_0xe4e098,outputFormat:_0x1064f4}){const _0x4381d5={'content':[{'type':'text','content':_0x58a269}],'prompt':_0x5661d4,'model':_0xe4e098,'outputFormat':_0x1064f4},_0x36a48a=this['_sendApiRequest']('/actions/custom/calls','POST',_0x4381d5);return{'getStream':async()=>{const _0x147531=(await _0x36a48a['request'])['body'];return this['_getStreamReader'](_0x147531);},'abortController':_0x36a48a['abortController']};}['executeAction']({actionName:_0x4e0d65,content:_0x5570e2,args:_0x1c5402}){const _0x2d87bb={'content':[{'type':'text','content':_0x5570e2}],'args':_0x1c5402},_0x527bda=this['_sendApiRequest']('/actions/system/'+_0x4e0d65+'/calls','POST',_0x2d87bb);return{'getStream':async()=>{const _0x3dce15=(await _0x527bda['request'])['body'];return this['_getStreamReader'](_0x3dce15);},'abortController':_0x527bda['abortController']};}['uploadFile'](_0x383cfe,_0x3279df,_0x5604f2){const _0x3cc140=new FormData();_0x3cc140['append']('file',_0x3279df,_0x3279df['name']),_0x5604f2&&_0x3cc140['append']('attributes',JSON['stringify'](_0x5604f2));const _0x116dcc=this['_sendApiRequest']('/conversations/'+_0x383cfe+'/files','POST',_0x3cc140);return{'getId':async()=>(await _0x116dcc['request'])['json'](),'abortController':_0x116dcc['abortController']};}['fetchDocument'](_0x24a51f,_0x4d9fd2){const _0x106b54=this['_sendApiRequest']('/conversations/'+_0x24a51f+'/documents/'+_0x4d9fd2,'GET');return{'getDocument':async()=>(await _0x106b54['request'])['json'](),'abortController':_0x106b54['abortController']};}['uploadDocument'](_0x4ad0e1,_0x368a60,_0x103d36){const _0x366a25={'content':_0x368a60};_0x103d36&&(_0x366a25['attributes']=_0x103d36);const _0x2bf0f3=this['_sendApiRequest']('/conversations/'+_0x4ad0e1+'/documents','POST',_0x366a25);return{'getId':async()=>(await _0x2bf0f3['request'])['json'](),'abortController':_0x2bf0f3['abortController']};}['fetchConversations'](_0x5f251b,_0x1bba1d={}){const _0x5d420d=new URLSearchParams();_0x5d420d['append']('group',_0x5f251b),_0x5d420d['append']('excludeEmpty',!0x1!==_0x1bba1d['excludeEmpty']?'true':'false'),_0x5d420d['append']('limit',_0x1bba1d['limit']?_0x1bba1d['limit']['toString']():'100'),_0x5d420d['append']('sortBy',_0x1bba1d['sortBy']?_0x1bba1d['sortBy']:'createdAt'),_0x5d420d['append']('order',_0x1bba1d['order']?_0x1bba1d['order']:'desc');const _0x10b7cf=this['_sendApiRequest']('/conversations?'+_0x5d420d['toString'](),'GET');return{'getConversations':async()=>{const _0x2295f1=await _0x10b7cf['request'];return(await _0x2295f1['json']())['items'];},'abortController':_0x10b7cf['abortController']};}['deleteConversation'](_0x26d915){const _0x3ec8ae=this['_sendApiRequest']('/conversations/'+_0x26d915,'DELETE');return{'execute':async()=>{await _0x3ec8ae['request'];},'abortController':_0x3ec8ae['abortController']};}['updateConversation'](_0x5cc554,_0x328855){const _0x3c59b9=this['_sendApiRequest']('/conversations/'+_0x5cc554,'PATCH',_0x328855);return{'getResult':async()=>(await _0x3c59b9['request'],_0x328855),'abortController':_0x3c59b9['abortController']};}['fetchConversation'](_0x18bec5){const _0x2c4928=this['_sendApiRequest']('/conversations/'+_0x18bec5,'GET');return{'getConversation':async()=>(await _0x2c4928['request'])['json'](),'abortController':_0x2c4928['abortController']};}['fetchConversationMessages'](_0x53d16e){const _0x43771f=this['_sendApiRequest']('/conversations/'+_0x53d16e+'/messages','GET');return{'getMessages':async()=>{const _0x5a7fdc=await _0x43771f['request'];return(await _0x5a7fdc['json']())['items'];},'abortController':_0x43771f['abortController']};}['uploadUrl'](_0x335720,_0x1398d8,_0x163901){const _0x3b2114=this['_sendApiRequest']('/conversations/'+_0x335720+'/web-resources','POST',{'url':_0x1398d8,'attributes':_0x163901});return{'getId':async()=>(await _0x3b2114['request'])['json'](),'abortController':_0x3b2114['abortController']};}['getModels'](_0x2148e6='en'){const _0x3ee51a=new URLSearchParams();_0x3ee51a['append']('language',_0x2148e6);const _0x50eacc='/models/'+MODEL_COMPATIBILITY_VERSION+'?'+_0x3ee51a['toString'](),_0x46a8c5=this['_sendApiRequest'](_0x50eacc,'GET');return{'list':async()=>await(await _0x46a8c5['request'])['json'](),'abortController':_0x46a8c5['abortController']};}['deleteFile'](_0x224206,_0x2ebad8){const _0x3d87f4=this['_sendApiRequest']('/conversations/'+_0x224206+'/files/'+_0x2ebad8,'DELETE');return{'execute':async()=>{await _0x3d87f4['request'];},'abortController':_0x3d87f4['abortController']};}['deleteDocument'](_0x13039b,_0x49da88){const _0x42a4ba=this['_sendApiRequest']('/conversations/'+_0x13039b+'/documents/'+_0x49da88,'DELETE');return{'execute':async()=>{await _0x42a4ba['request'];},'abortController':_0x42a4ba['abortController']};}['deleteWebResource'](_0xd4542,_0x1be339){const _0x4e26c5=this['_sendApiRequest']('/conversations/'+_0xd4542+'/web-resources/'+_0x1be339,'DELETE');return{'execute':async()=>{await _0x4e26c5['request'];},'abortController':_0x4e26c5['abortController']};}['callSystemReview']({reviewName:_0x35becc,content:_0x213553,args:_0x59da78}){const _0x346981=this['_sendApiRequest']('/reviews/system/'+_0x35becc+'/calls','POST',{'content':[{'type':'text','content':_0x213553}],'args':_0x59da78});return{'getStream':async()=>{const _0x34fdaa=(await _0x346981['request'])['body'];return this['_getStreamReader'](_0x34fdaa);},'abortController':_0x346981['abortController']};}['callCustomReview']({content:_0x21aa75,prompt:_0x3a5dca,model:_0x3b8c16}){const _0x39193e=this['_sendApiRequest']('/reviews/custom/calls','POST',{'content':[{'type':'text','content':_0x21aa75}],'prompt':_0x3a5dca,'model':_0x3b8c16});return{'getStream':async()=>{const _0x45c976=(await _0x39193e['request'])['body'];return this['_getStreamReader'](_0x45c976);},'abortController':_0x39193e['abortController']};}['upsertAIChatRating'](_0x653bfa,_0x54f75f,_0x23f07f){const _0x25ea76=this['_sendApiRequest']('/conversations/'+_0x653bfa+'/messages/'+_0x54f75f+'/ratings','PUT',{'positiveCount':_0x23f07f['positiveCount'],'totalCount':_0x23f07f['totalCount'],'modificationId':_0x23f07f['modificationId']});return{'execute':async()=>{await _0x25ea76['request'];},'abortController':_0x25ea76['abortController']};}['upsertAIActionRating'](_0x293986,_0x271ee9,_0x27ddd0){const _0x3402f9=this['_sendApiRequest']('/actions/system/'+_0x293986+'/calls/'+_0x271ee9+'/ratings','PUT',{'positiveCount':_0x27ddd0['positiveCount'],'totalCount':_0x27ddd0['totalCount']});return{'execute':async()=>{await _0x3402f9['request'];},'abortController':_0x3402f9['abortController']};}['upsertCustomAIActionRating'](_0xaad346,_0x20c128){const _0x275515=this['_sendApiRequest']('/actions/custom/calls/'+_0xaad346+'/ratings','PUT',{'positiveCount':_0x20c128['positiveCount'],'totalCount':_0x20c128['totalCount']});return{'execute':async()=>{await _0x275515['request'];},'abortController':_0x275515['abortController']};}['upsertAIReviewRating'](_0x27ee77,_0x5d59c4,_0x3372ba,_0x4f30b8){const _0x11a1f3=this['_sendApiRequest']('/reviews/system/'+_0x27ee77+'/calls/'+_0x5d59c4+'/ratings','PUT',{'positiveCount':_0x3372ba['positiveCount'],'totalCount':_0x3372ba['totalCount'],'dataId':_0x4f30b8});return{'execute':async()=>{await _0x11a1f3['request'];},'abortController':_0x11a1f3['abortController']};}['upsertCustomAIReviewRating'](_0x386132,_0x324eb9,_0x15c6be){const _0x24cd3a=this['_sendApiRequest']('/reviews/custom/calls/'+_0x386132+'/ratings','PUT',{'positiveCount':_0x324eb9['positiveCount'],'totalCount':_0x324eb9['totalCount'],'dataId':_0x15c6be});return{'execute':async()=>{await _0x24cd3a['request'];},'abortController':_0x24cd3a['abortController']};}['_sendApiRequest'](_0x37a7ce,_0x8b9955,_0x4ffd97){const _0x25b91f=new AbortController(),_0xe01d55=_0x4ffd97 instanceof FormData,_0x56c2e0={'Authorization':'Bearer\x20'+this['_token']?.['value']};_0x4ffd97&&!_0xe01d55&&(_0x56c2e0['Content-Type']='application/json');const _0x3d61c7={'method':_0x8b9955,'headers':_0x56c2e0,'signal':_0x25b91f['signal']};_0x4ffd97&&(_0x3d61c7['body']=_0xe01d55?_0x4ffd97:JSON['stringify'](_0x4ffd97));const _0x21ae7d=fetch(''+this['_apiUrl']+_0x37a7ce,_0x3d61c7)['catch'](_0x2b589d=>{this['_handleError'](_0x2b589d);})['then'](_0x2f41bd=>_0x2f41bd['ok']?_0x2f41bd:_0x2f41bd['json']()['then'](_0x4273c8=>{throw{'url':this['_apiUrl'],'path':_0x37a7ce,'method':_0x8b9955,'body':_0x4ffd97,'status':(_0x2f41bd||{})['status'],'statusText':(_0x2f41bd||{})['statusText'],'code':_0x4273c8['code'],'message':_0x4273c8['message'],'traceId':_0x4273c8['traceId']};}));return{'request':_0x21ae7d,'abortController':_0x25b91f};}async*['_getStreamReader'](_0x596ee5){const _0x366132=[],_0x5719c6=_0x596ee5['getReader'](),_0x2e6867=createParser({'onError':_0x1898f6=>{this['_handleError'](_0x1898f6);},'onEvent':_0xf24fc2=>{_0xf24fc2['data']=JSON['parse'](_0xf24fc2['data']),_0x366132['push'](_0xf24fc2);}});try{let _0x4e5a16=!0x1;for(;!_0x4e5a16;){const {done:_0xd8a71d,value:_0x5688ab}=await _0x5719c6['read']();_0xd8a71d&&(_0x4e5a16=!0x0),_0x2e6867['feed'](this['_decoder']['decode'](_0x5688ab,{'stream':!0x0})),yield*_0x366132,_0x366132['length']=0x0;}}catch(_0x5aaab5){this['_handleError'](_0x5aaab5);}finally{_0x5719c6['releaseLock'](),_0x2e6867['reset']();}}['_handleError'](_0xabc64c){if(_0xabc64c instanceof CKEditorError)throw _0xabc64c;if(_0xabc64c instanceof Error&&'AbortError'===_0xabc64c['name'])throw new CKEditorError('ai-request-aborted',this,{'originalError':_0xabc64c});throw new CKEditorError('ai-request-failed',this,{'originalError':_0xabc64c});}}function getTranslation$i(_0x427ead,_0x2cb562,_0x300cd6){const t=_0x427ead['t'];switch(_0x2cb562){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'},_0x300cd6);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_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':'The\x20request\x20was\x20aborted.'});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.'},_0x300cd6);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.'},_0x300cd6);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_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_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.'},_0x300cd6);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'},_0x300cd6);case'AI_CHAT_SUGGESTION_ACTION_SUGGEST':return t({'id':'AI_CHAT_SUGGESTION_ACTION_SUGGEST','string':'Suggest'},_0x300cd6);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'},_0x300cd6);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.'},_0x300cd6);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.'},_0x300cd6);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.'},_0x300cd6);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.'},_0x300cd6);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'},_0x300cd6);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.'},_0x300cd6);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.'});case'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE','string':'This\x20conversation\x20is\x20loaded\x20from\x20chat\x20history\x20from\x20a\x20previous\x20session,\x20so\x20you\x20can’t\x20apply,\x20reject,\x20or\x20suggest\x20changes.'});case'AI_SUGGESTION_DISABLED_FEED_MESSAGE':return t({'id':'AI_SUGGESTION_DISABLED_FEED_MESSAGE','string':'Actions\x20aren’t\x20available\x20for\x20changes\x20from\x20a\x20previous\x20session.'});default:return _0x2cb562;}}function createResizeButton(_0xa5c4c1,_0x3d3a98){const _0x376d2a=new ButtonView(_0xa5c4c1),_0x51b47e=getTranslation$i(_0xa5c4c1,'AI_TABS_LABEL_MINIMIZE'),_0x41d17b=getTranslation$i(_0xa5c4c1,'AI_TABS_LABEL_MAXIMIZE');return _0x376d2a['set']({'withText':!0x1,'icon':IconMaximize,'tooltip':!0x0,'class':'ck-ai-tabs__resize\x20ck-ai-button-tertiary'}),_0x376d2a['bind']('label')['to'](_0x3d3a98,'isMaximized',_0x381334=>_0x381334?_0x51b47e:_0x41d17b),_0x376d2a['bind']('icon')['to'](_0x3d3a98,'isMaximized',_0x1aa103=>_0x1aa103?IconMinimize:IconMaximize),_0x376d2a['bind']('isOn')['to'](_0x3d3a98,'isMaximized'),_0x376d2a['on']('execute',()=>{_0x3d3a98['fire']('resizeTabs');}),_0x376d2a;}const htmlDecodeTree=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'](_0x509fa7=>_0x509fa7['charCodeAt'](0x0))),xmlDecodeTree=new Uint16Array('Ȁaglq\x09\x15\x18\x1bɭ\x0f\x00\x00\x12p;䀦os;䀧t;䀾t;䀼uot;䀢'['split']('')['map'](_0x302c57=>_0x302c57['charCodeAt'](0x0)));var _a$1;const decodeMap=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]]),fromCodePoint$1=null!==(_a$1=String['fromCodePoint'])&&void 0x0!==_a$1?_a$1:function(_0x21bebc){let _0x209504='';return _0x21bebc>0xffff&&(_0x21bebc-=0x10000,_0x209504+=String['fromCharCode'](_0x21bebc>>>0xa&0x3ff|0xd800),_0x21bebc=0xdc00|0x3ff&_0x21bebc),_0x209504+=String['fromCharCode'](_0x21bebc),_0x209504;};function replaceCodePoint(_0x4001f1){var _0x2ecc80;return _0x4001f1>=0xd800&&_0x4001f1<=0xdfff||_0x4001f1>0x10ffff?0xfffd:null!==(_0x2ecc80=decodeMap['get'](_0x4001f1))&&void 0x0!==_0x2ecc80?_0x2ecc80:_0x4001f1;}var CharCodes$1;!function(_0x59a077){_0x59a077[_0x59a077['NUM']=0x23]='NUM',_0x59a077[_0x59a077['SEMI']=0x3b]='SEMI',_0x59a077[_0x59a077['EQUALS']=0x3d]='EQUALS',_0x59a077[_0x59a077['ZERO']=0x30]='ZERO',_0x59a077[_0x59a077['NINE']=0x39]='NINE',_0x59a077[_0x59a077['LOWER_A']=0x61]='LOWER_A',_0x59a077[_0x59a077['LOWER_F']=0x66]='LOWER_F',_0x59a077[_0x59a077['LOWER_X']=0x78]='LOWER_X',_0x59a077[_0x59a077['LOWER_Z']=0x7a]='LOWER_Z',_0x59a077[_0x59a077['UPPER_A']=0x41]='UPPER_A',_0x59a077[_0x59a077['UPPER_F']=0x46]='UPPER_F',_0x59a077[_0x59a077['UPPER_Z']=0x5a]='UPPER_Z';}(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=0x20;var BinTrieFlags,EntityDecoderState,DecodingMode,CharCodes,State,QuoteType;function isNumber$1(_0xa5abbf){return _0xa5abbf>=CharCodes$1['ZERO']&&_0xa5abbf<=CharCodes$1['NINE'];}function isHexadecimalCharacter(_0xcc2550){return _0xcc2550>=CharCodes$1['UPPER_A']&&_0xcc2550<=CharCodes$1['UPPER_F']||_0xcc2550>=CharCodes$1['LOWER_A']&&_0xcc2550<=CharCodes$1['LOWER_F'];}function isAsciiAlphaNumeric(_0x46ca39){return _0x46ca39>=CharCodes$1['UPPER_A']&&_0x46ca39<=CharCodes$1['UPPER_Z']||_0x46ca39>=CharCodes$1['LOWER_A']&&_0x46ca39<=CharCodes$1['LOWER_Z']||isNumber$1(_0x46ca39);}function isEntityInAttributeInvalidEnd(_0x4ca4d2){return _0x4ca4d2===CharCodes$1['EQUALS']||isAsciiAlphaNumeric(_0x4ca4d2);}!function(_0x5c1081){_0x5c1081[_0x5c1081['VALUE_LENGTH']=0xc000]='VALUE_LENGTH',_0x5c1081[_0x5c1081['BRANCH_LENGTH']=0x3f80]='BRANCH_LENGTH',_0x5c1081[_0x5c1081['JUMP_TABLE']=0x7f]='JUMP_TABLE';}(BinTrieFlags||(BinTrieFlags={})),function(_0x518336){_0x518336[_0x518336['EntityStart']=0x0]='EntityStart',_0x518336[_0x518336['NumericStart']=0x1]='NumericStart',_0x518336[_0x518336['NumericDecimal']=0x2]='NumericDecimal',_0x518336[_0x518336['NumericHex']=0x3]='NumericHex',_0x518336[_0x518336['NamedEntity']=0x4]='NamedEntity';}(EntityDecoderState||(EntityDecoderState={})),function(_0x5bcfd0){_0x5bcfd0[_0x5bcfd0['Legacy']=0x0]='Legacy',_0x5bcfd0[_0x5bcfd0['Strict']=0x1]='Strict',_0x5bcfd0[_0x5bcfd0['Attribute']=0x2]='Attribute';}(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(_0x3e9fda,_0x2d668e,_0x2f97c1){this['decodeTree']=_0x3e9fda,this['emitCodePoint']=_0x2d668e,this['errors']=_0x2f97c1,this['state']=EntityDecoderState['EntityStart'],this['consumed']=0x1,this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['decodeMode']=DecodingMode['Strict'];}['startEntity'](_0x40ea0f){this['decodeMode']=_0x40ea0f,this['state']=EntityDecoderState['EntityStart'],this['result']=0x0,this['treeIndex']=0x0,this['excess']=0x1,this['consumed']=0x1;}['write'](_0x29c206,_0x55014c){switch(this['state']){case EntityDecoderState['EntityStart']:return _0x29c206['charCodeAt'](_0x55014c)===CharCodes$1['NUM']?(this['state']=EntityDecoderState['NumericStart'],this['consumed']+=0x1,this['stateNumericStart'](_0x29c206,_0x55014c+0x1)):(this['state']=EntityDecoderState['NamedEntity'],this['stateNamedEntity'](_0x29c206,_0x55014c));case EntityDecoderState['NumericStart']:return this['stateNumericStart'](_0x29c206,_0x55014c);case EntityDecoderState['NumericDecimal']:return this['stateNumericDecimal'](_0x29c206,_0x55014c);case EntityDecoderState['NumericHex']:return this['stateNumericHex'](_0x29c206,_0x55014c);case EntityDecoderState['NamedEntity']:return this['stateNamedEntity'](_0x29c206,_0x55014c);}}['stateNumericStart'](_0x4ba484,_0x36f0a2){return _0x36f0a2>=_0x4ba484['length']?-0x1:(_0x4ba484['charCodeAt'](_0x36f0a2)|TO_LOWER_BIT)===CharCodes$1['LOWER_X']?(this['state']=EntityDecoderState['NumericHex'],this['consumed']+=0x1,this['stateNumericHex'](_0x4ba484,_0x36f0a2+0x1)):(this['state']=EntityDecoderState['NumericDecimal'],this['stateNumericDecimal'](_0x4ba484,_0x36f0a2));}['addToNumericResult'](_0x54717f,_0x454499,_0x3a1642,_0x3501d8){if(_0x454499!==_0x3a1642){const _0x301b0e=_0x3a1642-_0x454499;this['result']=this['result']*Math['pow'](_0x3501d8,_0x301b0e)+Number['parseInt'](_0x54717f['substr'](_0x454499,_0x301b0e),_0x3501d8),this['consumed']+=_0x301b0e;}}['stateNumericHex'](_0x1faea1,_0x2bb63e){const _0x111cbd=_0x2bb63e;for(;_0x2bb63e<_0x1faea1['length'];){const _0x38df26=_0x1faea1['charCodeAt'](_0x2bb63e);if(!isNumber$1(_0x38df26)&&!isHexadecimalCharacter(_0x38df26))return this['addToNumericResult'](_0x1faea1,_0x111cbd,_0x2bb63e,0x10),this['emitNumericEntity'](_0x38df26,0x3);_0x2bb63e+=0x1;}return this['addToNumericResult'](_0x1faea1,_0x111cbd,_0x2bb63e,0x10),-0x1;}['stateNumericDecimal'](_0x4f34c4,_0xef9b86){const _0x34926a=_0xef9b86;for(;_0xef9b86<_0x4f34c4['length'];){const _0x12cf4b=_0x4f34c4['charCodeAt'](_0xef9b86);if(!isNumber$1(_0x12cf4b))return this['addToNumericResult'](_0x4f34c4,_0x34926a,_0xef9b86,0xa),this['emitNumericEntity'](_0x12cf4b,0x2);_0xef9b86+=0x1;}return this['addToNumericResult'](_0x4f34c4,_0x34926a,_0xef9b86,0xa),-0x1;}['emitNumericEntity'](_0x9d9027,_0x40cfb2){var _0x179966;if(this['consumed']<=_0x40cfb2)return null===(_0x179966=this['errors'])||void 0x0===_0x179966||_0x179966['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;if(_0x9d9027===CharCodes$1['SEMI'])this['consumed']+=0x1;else{if(this['decodeMode']===DecodingMode['Strict'])return 0x0;}return this['emitCodePoint'](replaceCodePoint(this['result']),this['consumed']),this['errors']&&(_0x9d9027!==CharCodes$1['SEMI']&&this['errors']['missingSemicolonAfterCharacterReference'](),this['errors']['validateNumericCharacterReference'](this['result'])),this['consumed'];}['stateNamedEntity'](_0x20aca7,_0x59b30d){const {decodeTree:_0x3741cd}=this;let _0x180698=_0x3741cd[this['treeIndex']],_0x5d9edc=(_0x180698&BinTrieFlags['VALUE_LENGTH'])>>0xe;for(;_0x59b30d<_0x20aca7['length'];_0x59b30d++,this['excess']++){const _0x4caf4d=_0x20aca7['charCodeAt'](_0x59b30d);if(this['treeIndex']=determineBranch(_0x3741cd,_0x180698,this['treeIndex']+Math['max'](0x1,_0x5d9edc),_0x4caf4d),this['treeIndex']<0x0)return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&(0x0===_0x5d9edc||isEntityInAttributeInvalidEnd(_0x4caf4d))?0x0:this['emitNotTerminatedNamedEntity']();if(_0x180698=_0x3741cd[this['treeIndex']],_0x5d9edc=(_0x180698&BinTrieFlags['VALUE_LENGTH'])>>0xe,0x0!==_0x5d9edc){if(_0x4caf4d===CharCodes$1['SEMI'])return this['emitNamedEntityData'](this['treeIndex'],_0x5d9edc,this['consumed']+this['excess']);this['decodeMode']!==DecodingMode['Strict']&&(this['result']=this['treeIndex'],this['consumed']+=this['excess'],this['excess']=0x0);}}return-0x1;}['emitNotTerminatedNamedEntity'](){var _0x5df500;const {result:_0x3cb505,decodeTree:_0x256286}=this,_0xe5f80b=(_0x256286[_0x3cb505]&BinTrieFlags['VALUE_LENGTH'])>>0xe;return this['emitNamedEntityData'](_0x3cb505,_0xe5f80b,this['consumed']),null===(_0x5df500=this['errors'])||void 0x0===_0x5df500||_0x5df500['missingSemicolonAfterCharacterReference'](),this['consumed'];}['emitNamedEntityData'](_0x3fcf5f,_0xddfeb9,_0x5d8564){const {decodeTree:_0x1cfb18}=this;return this['emitCodePoint'](0x1===_0xddfeb9?_0x1cfb18[_0x3fcf5f]&~BinTrieFlags['VALUE_LENGTH']:_0x1cfb18[_0x3fcf5f+0x1],_0x5d8564),0x3===_0xddfeb9&&this['emitCodePoint'](_0x1cfb18[_0x3fcf5f+0x2],_0x5d8564),_0x5d8564;}['end'](){var _0x41a2c7;switch(this['state']){case EntityDecoderState['NamedEntity']:return 0x0===this['result']||this['decodeMode']===DecodingMode['Attribute']&&this['result']!==this['treeIndex']?0x0:this['emitNotTerminatedNamedEntity']();case EntityDecoderState['NumericDecimal']:return this['emitNumericEntity'](0x0,0x2);case EntityDecoderState['NumericHex']:return this['emitNumericEntity'](0x0,0x3);case EntityDecoderState['NumericStart']:return null===(_0x41a2c7=this['errors'])||void 0x0===_0x41a2c7||_0x41a2c7['absenceOfDigitsInNumericCharacterReference'](this['consumed']),0x0;case EntityDecoderState['EntityStart']:return 0x0;}}}function determineBranch(_0x5dcd8a,_0x33b115,_0x34961,_0x154920){const _0x3a7696=(_0x33b115&BinTrieFlags['BRANCH_LENGTH'])>>0x7,_0xc419b3=_0x33b115&BinTrieFlags['JUMP_TABLE'];if(0x0===_0x3a7696)return 0x0!==_0xc419b3&&_0x154920===_0xc419b3?_0x34961:-0x1;if(_0xc419b3){const _0x3d38c5=_0x154920-_0xc419b3;return _0x3d38c5<0x0||_0x3d38c5>=_0x3a7696?-0x1:_0x5dcd8a[_0x34961+_0x3d38c5]-0x1;}let _0x1d15d8=_0x34961,_0x5a30be=_0x1d15d8+_0x3a7696-0x1;for(;_0x1d15d8<=_0x5a30be;){const _0x4cb9d6=_0x1d15d8+_0x5a30be>>>0x1,_0x20d89b=_0x5dcd8a[_0x4cb9d6];if(_0x20d89b<_0x154920)_0x1d15d8=_0x4cb9d6+0x1;else{if(!(_0x20d89b>_0x154920))return _0x5dcd8a[_0x4cb9d6+_0x3a7696];_0x5a30be=_0x4cb9d6-0x1;}}return-0x1;}function isWhitespace(_0x2c94dd){return _0x2c94dd===CharCodes['Space']||_0x2c94dd===CharCodes['NewLine']||_0x2c94dd===CharCodes['Tab']||_0x2c94dd===CharCodes['FormFeed']||_0x2c94dd===CharCodes['CarriageReturn'];}function isEndOfTagSection(_0x339e6f){return _0x339e6f===CharCodes['Slash']||_0x339e6f===CharCodes['Gt']||isWhitespace(_0x339e6f);}function isASCIIAlpha(_0x190d19){return _0x190d19>=CharCodes['LowerA']&&_0x190d19<=CharCodes['LowerZ']||_0x190d19>=CharCodes['UpperA']&&_0x190d19<=CharCodes['UpperZ'];}!function(_0x106ac2){_0x106ac2[_0x106ac2['Tab']=0x9]='Tab',_0x106ac2[_0x106ac2['NewLine']=0xa]='NewLine',_0x106ac2[_0x106ac2['FormFeed']=0xc]='FormFeed',_0x106ac2[_0x106ac2['CarriageReturn']=0xd]='CarriageReturn',_0x106ac2[_0x106ac2['Space']=0x20]='Space',_0x106ac2[_0x106ac2['ExclamationMark']=0x21]='ExclamationMark',_0x106ac2[_0x106ac2['Number']=0x23]='Number',_0x106ac2[_0x106ac2['Amp']=0x26]='Amp',_0x106ac2[_0x106ac2['SingleQuote']=0x27]='SingleQuote',_0x106ac2[_0x106ac2['DoubleQuote']=0x22]='DoubleQuote',_0x106ac2[_0x106ac2['Dash']=0x2d]='Dash',_0x106ac2[_0x106ac2['Slash']=0x2f]='Slash',_0x106ac2[_0x106ac2['Zero']=0x30]='Zero',_0x106ac2[_0x106ac2['Nine']=0x39]='Nine',_0x106ac2[_0x106ac2['Semi']=0x3b]='Semi',_0x106ac2[_0x106ac2['Lt']=0x3c]='Lt',_0x106ac2[_0x106ac2['Eq']=0x3d]='Eq',_0x106ac2[_0x106ac2['Gt']=0x3e]='Gt',_0x106ac2[_0x106ac2['Questionmark']=0x3f]='Questionmark',_0x106ac2[_0x106ac2['UpperA']=0x41]='UpperA',_0x106ac2[_0x106ac2['LowerA']=0x61]='LowerA',_0x106ac2[_0x106ac2['UpperF']=0x46]='UpperF',_0x106ac2[_0x106ac2['LowerF']=0x66]='LowerF',_0x106ac2[_0x106ac2['UpperZ']=0x5a]='UpperZ',_0x106ac2[_0x106ac2['LowerZ']=0x7a]='LowerZ',_0x106ac2[_0x106ac2['LowerX']=0x78]='LowerX',_0x106ac2[_0x106ac2['OpeningSquareBracket']=0x5b]='OpeningSquareBracket';}(CharCodes||(CharCodes={})),function(_0x8e2d4b){_0x8e2d4b[_0x8e2d4b['Text']=0x1]='Text',_0x8e2d4b[_0x8e2d4b['BeforeTagName']=0x2]='BeforeTagName',_0x8e2d4b[_0x8e2d4b['InTagName']=0x3]='InTagName',_0x8e2d4b[_0x8e2d4b['InSelfClosingTag']=0x4]='InSelfClosingTag',_0x8e2d4b[_0x8e2d4b['BeforeClosingTagName']=0x5]='BeforeClosingTagName',_0x8e2d4b[_0x8e2d4b['InClosingTagName']=0x6]='InClosingTagName',_0x8e2d4b[_0x8e2d4b['AfterClosingTagName']=0x7]='AfterClosingTagName',_0x8e2d4b[_0x8e2d4b['BeforeAttributeName']=0x8]='BeforeAttributeName',_0x8e2d4b[_0x8e2d4b['InAttributeName']=0x9]='InAttributeName',_0x8e2d4b[_0x8e2d4b['AfterAttributeName']=0xa]='AfterAttributeName',_0x8e2d4b[_0x8e2d4b['BeforeAttributeValue']=0xb]='BeforeAttributeValue',_0x8e2d4b[_0x8e2d4b['InAttributeValueDq']=0xc]='InAttributeValueDq',_0x8e2d4b[_0x8e2d4b['InAttributeValueSq']=0xd]='InAttributeValueSq',_0x8e2d4b[_0x8e2d4b['InAttributeValueNq']=0xe]='InAttributeValueNq',_0x8e2d4b[_0x8e2d4b['BeforeDeclaration']=0xf]='BeforeDeclaration',_0x8e2d4b[_0x8e2d4b['InDeclaration']=0x10]='InDeclaration',_0x8e2d4b[_0x8e2d4b['InProcessingInstruction']=0x11]='InProcessingInstruction',_0x8e2d4b[_0x8e2d4b['BeforeComment']=0x12]='BeforeComment',_0x8e2d4b[_0x8e2d4b['CDATASequence']=0x13]='CDATASequence',_0x8e2d4b[_0x8e2d4b['InSpecialComment']=0x14]='InSpecialComment',_0x8e2d4b[_0x8e2d4b['InCommentLike']=0x15]='InCommentLike',_0x8e2d4b[_0x8e2d4b['BeforeSpecialS']=0x16]='BeforeSpecialS',_0x8e2d4b[_0x8e2d4b['BeforeSpecialT']=0x17]='BeforeSpecialT',_0x8e2d4b[_0x8e2d4b['SpecialStartSequence']=0x18]='SpecialStartSequence',_0x8e2d4b[_0x8e2d4b['InSpecialTag']=0x19]='InSpecialTag',_0x8e2d4b[_0x8e2d4b['InEntity']=0x1a]='InEntity';}(State||(State={})),function(_0x420f1a){_0x420f1a[_0x420f1a['NoValue']=0x0]='NoValue',_0x420f1a[_0x420f1a['Unquoted']=0x1]='Unquoted',_0x420f1a[_0x420f1a['Single']=0x2]='Single',_0x420f1a[_0x420f1a['Double']=0x3]='Double';}(QuoteType||(QuoteType={}));const Sequences={'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])};class Tokenizer{constructor({xmlMode:_0x171446=!0x1,decodeEntities:_0x35d654=!0x0},_0x1e5dc8){this['cbs']=_0x1e5dc8,this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['entityStart']=0x0,this['baseState']=State['Text'],this['isSpecial']=!0x1,this['running']=!0x0,this['offset']=0x0,this['currentSequence']=void 0x0,this['sequenceIndex']=0x0,this['xmlMode']=_0x171446,this['decodeEntities']=_0x35d654,this['entityDecoder']=new EntityDecoder(_0x171446?xmlDecodeTree:htmlDecodeTree,(_0x4812fb,_0x43977e)=>this['emitCodePoint'](_0x4812fb,_0x43977e));}['reset'](){this['state']=State['Text'],this['buffer']='',this['sectionStart']=0x0,this['index']=0x0,this['baseState']=State['Text'],this['currentSequence']=void 0x0,this['running']=!0x0,this['offset']=0x0;}['write'](_0x35d113){this['offset']+=this['buffer']['length'],this['buffer']=_0x35d113,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'](_0x2161e9){_0x2161e9===CharCodes['Lt']||!this['decodeEntities']&&this['fastForwardTo'](CharCodes['Lt'])?(this['index']>this['sectionStart']&&this['cbs']['ontext'](this['sectionStart'],this['index']),this['state']=State['BeforeTagName'],this['sectionStart']=this['index']):this['decodeEntities']&&_0x2161e9===CharCodes['Amp']&&this['startEntity']();}['stateSpecialStartSequence'](_0x3ac33f){const _0x3c3abb=this['sequenceIndex']===this['currentSequence']['length'];if(_0x3c3abb?isEndOfTagSection(_0x3ac33f):(0x20|_0x3ac33f)===this['currentSequence'][this['sequenceIndex']]){if(!_0x3c3abb)return void this['sequenceIndex']++;}else this['isSpecial']=!0x1;this['sequenceIndex']=0x0,this['state']=State['InTagName'],this['stateInTagName'](_0x3ac33f);}['stateInSpecialTag'](_0x613e50){if(this['sequenceIndex']===this['currentSequence']['length']){if(_0x613e50===CharCodes['Gt']||isWhitespace(_0x613e50)){const _0x21b0a3=this['index']-this['currentSequence']['length'];if(this['sectionStart']<_0x21b0a3){const _0x71fb38=this['index'];this['index']=_0x21b0a3,this['cbs']['ontext'](this['sectionStart'],_0x21b0a3),this['index']=_0x71fb38;}return this['isSpecial']=!0x1,this['sectionStart']=_0x21b0a3+0x2,void this['stateInClosingTagName'](_0x613e50);}this['sequenceIndex']=0x0;}(0x20|_0x613e50)===this['currentSequence'][this['sequenceIndex']]?this['sequenceIndex']+=0x1:0x0===this['sequenceIndex']?this['currentSequence']===Sequences['TitleEnd']?this['decodeEntities']&&_0x613e50===CharCodes['Amp']&&this['startEntity']():this['fastForwardTo'](CharCodes['Lt'])&&(this['sequenceIndex']=0x1):this['sequenceIndex']=Number(_0x613e50===CharCodes['Lt']);}['stateCDATASequence'](_0x2a0a8b){_0x2a0a8b===Sequences['Cdata'][this['sequenceIndex']]?++this['sequenceIndex']===Sequences['Cdata']['length']&&(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CdataEnd'],this['sequenceIndex']=0x0,this['sectionStart']=this['index']+0x1):(this['sequenceIndex']=0x0,this['state']=State['InDeclaration'],this['stateInDeclaration'](_0x2a0a8b));}['fastForwardTo'](_0x123208){for(;++this['index']<this['buffer']['length']+this['offset'];)if(this['buffer']['charCodeAt'](this['index']-this['offset'])===_0x123208)return!0x0;return this['index']=this['buffer']['length']+this['offset']-0x1,!0x1;}['stateInCommentLike'](_0x59c90c){_0x59c90c===this['currentSequence'][this['sequenceIndex']]?++this['sequenceIndex']===this['currentSequence']['length']&&(this['currentSequence']===Sequences['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']=State['Text']):0x0===this['sequenceIndex']?this['fastForwardTo'](this['currentSequence'][0x0])&&(this['sequenceIndex']=0x1):_0x59c90c!==this['currentSequence'][this['sequenceIndex']-0x1]&&(this['sequenceIndex']=0x0);}['isTagStartChar'](_0x4fac19){return this['xmlMode']?!isEndOfTagSection(_0x4fac19):isASCIIAlpha(_0x4fac19);}['startSpecial'](_0x5aa717,_0xd6ee47){this['isSpecial']=!0x0,this['currentSequence']=_0x5aa717,this['sequenceIndex']=_0xd6ee47,this['state']=State['SpecialStartSequence'];}['stateBeforeTagName'](_0x58abc3){if(_0x58abc3===CharCodes['ExclamationMark'])this['state']=State['BeforeDeclaration'],this['sectionStart']=this['index']+0x1;else{if(_0x58abc3===CharCodes['Questionmark'])this['state']=State['InProcessingInstruction'],this['sectionStart']=this['index']+0x1;else{if(this['isTagStartChar'](_0x58abc3)){const _0x42abcd=0x20|_0x58abc3;this['sectionStart']=this['index'],this['xmlMode']?this['state']=State['InTagName']:_0x42abcd===Sequences['ScriptEnd'][0x2]?this['state']=State['BeforeSpecialS']:_0x42abcd===Sequences['TitleEnd'][0x2]||_0x42abcd===Sequences['XmpEnd'][0x2]?this['state']=State['BeforeSpecialT']:this['state']=State['InTagName'];}else _0x58abc3===CharCodes['Slash']?this['state']=State['BeforeClosingTagName']:(this['state']=State['Text'],this['stateText'](_0x58abc3));}}}['stateInTagName'](_0x5adf2f){isEndOfTagSection(_0x5adf2f)&&(this['cbs']['onopentagname'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x5adf2f));}['stateBeforeClosingTagName'](_0x36fcb4){isWhitespace(_0x36fcb4)||(_0x36fcb4===CharCodes['Gt']?this['state']=State['Text']:(this['state']=this['isTagStartChar'](_0x36fcb4)?State['InClosingTagName']:State['InSpecialComment'],this['sectionStart']=this['index']));}['stateInClosingTagName'](_0x5b1776){(_0x5b1776===CharCodes['Gt']||isWhitespace(_0x5b1776))&&(this['cbs']['onclosetag'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['state']=State['AfterClosingTagName'],this['stateAfterClosingTagName'](_0x5b1776));}['stateAfterClosingTagName'](_0x159441){(_0x159441===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeAttributeName'](_0x20a25a){_0x20a25a===CharCodes['Gt']?(this['cbs']['onopentagend'](this['index']),this['isSpecial']?(this['state']=State['InSpecialTag'],this['sequenceIndex']=0x0):this['state']=State['Text'],this['sectionStart']=this['index']+0x1):_0x20a25a===CharCodes['Slash']?this['state']=State['InSelfClosingTag']:isWhitespace(_0x20a25a)||(this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateInSelfClosingTag'](_0x27d4d8){_0x27d4d8===CharCodes['Gt']?(this['cbs']['onselfclosingtag'](this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1,this['isSpecial']=!0x1):isWhitespace(_0x27d4d8)||(this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x27d4d8));}['stateInAttributeName'](_0x38e2ef){(_0x38e2ef===CharCodes['Eq']||isEndOfTagSection(_0x38e2ef))&&(this['cbs']['onattribname'](this['sectionStart'],this['index']),this['sectionStart']=this['index'],this['state']=State['AfterAttributeName'],this['stateAfterAttributeName'](_0x38e2ef));}['stateAfterAttributeName'](_0x3e04f7){_0x3e04f7===CharCodes['Eq']?this['state']=State['BeforeAttributeValue']:_0x3e04f7===CharCodes['Slash']||_0x3e04f7===CharCodes['Gt']?(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['sectionStart']=-0x1,this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x3e04f7)):isWhitespace(_0x3e04f7)||(this['cbs']['onattribend'](QuoteType['NoValue'],this['sectionStart']),this['state']=State['InAttributeName'],this['sectionStart']=this['index']);}['stateBeforeAttributeValue'](_0x138a7a){_0x138a7a===CharCodes['DoubleQuote']?(this['state']=State['InAttributeValueDq'],this['sectionStart']=this['index']+0x1):_0x138a7a===CharCodes['SingleQuote']?(this['state']=State['InAttributeValueSq'],this['sectionStart']=this['index']+0x1):isWhitespace(_0x138a7a)||(this['sectionStart']=this['index'],this['state']=State['InAttributeValueNq'],this['stateInAttributeValueNoQuotes'](_0x138a7a));}['handleInAttributeValue'](_0x5aaed2,_0x19395e){_0x5aaed2===_0x19395e||!this['decodeEntities']&&this['fastForwardTo'](_0x19395e)?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](_0x19395e===CharCodes['DoubleQuote']?QuoteType['Double']:QuoteType['Single'],this['index']+0x1),this['state']=State['BeforeAttributeName']):this['decodeEntities']&&_0x5aaed2===CharCodes['Amp']&&this['startEntity']();}['stateInAttributeValueDoubleQuotes'](_0x1eee21){this['handleInAttributeValue'](_0x1eee21,CharCodes['DoubleQuote']);}['stateInAttributeValueSingleQuotes'](_0x586263){this['handleInAttributeValue'](_0x586263,CharCodes['SingleQuote']);}['stateInAttributeValueNoQuotes'](_0x10d44b){isWhitespace(_0x10d44b)||_0x10d44b===CharCodes['Gt']?(this['cbs']['onattribdata'](this['sectionStart'],this['index']),this['sectionStart']=-0x1,this['cbs']['onattribend'](QuoteType['Unquoted'],this['index']),this['state']=State['BeforeAttributeName'],this['stateBeforeAttributeName'](_0x10d44b)):this['decodeEntities']&&_0x10d44b===CharCodes['Amp']&&this['startEntity']();}['stateBeforeDeclaration'](_0x3dca5c){_0x3dca5c===CharCodes['OpeningSquareBracket']?(this['state']=State['CDATASequence'],this['sequenceIndex']=0x0):this['state']=_0x3dca5c===CharCodes['Dash']?State['BeforeComment']:State['InDeclaration'];}['stateInDeclaration'](_0xedbbf0){(_0xedbbf0===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['ondeclaration'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateInProcessingInstruction'](_0x368d9a){(_0x368d9a===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['onprocessinginstruction'](this['sectionStart'],this['index']),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeComment'](_0x2f4b20){_0x2f4b20===CharCodes['Dash']?(this['state']=State['InCommentLike'],this['currentSequence']=Sequences['CommentEnd'],this['sequenceIndex']=0x2,this['sectionStart']=this['index']+0x1):this['state']=State['InDeclaration'];}['stateInSpecialComment'](_0x20ad9a){(_0x20ad9a===CharCodes['Gt']||this['fastForwardTo'](CharCodes['Gt']))&&(this['cbs']['oncomment'](this['sectionStart'],this['index'],0x0),this['state']=State['Text'],this['sectionStart']=this['index']+0x1);}['stateBeforeSpecialS'](_0x2e66b6){const _0x2c1c4b=0x20|_0x2e66b6;_0x2c1c4b===Sequences['ScriptEnd'][0x3]?this['startSpecial'](Sequences['ScriptEnd'],0x4):_0x2c1c4b===Sequences['StyleEnd'][0x3]?this['startSpecial'](Sequences['StyleEnd'],0x4):(this['state']=State['InTagName'],this['stateInTagName'](_0x2e66b6));}['stateBeforeSpecialT'](_0x16111e){switch(0x20|_0x16111e){case Sequences['TitleEnd'][0x3]:this['startSpecial'](Sequences['TitleEnd'],0x4);break;case Sequences['TextareaEnd'][0x3]:this['startSpecial'](Sequences['TextareaEnd'],0x4);break;case Sequences['XmpEnd'][0x3]:this['startSpecial'](Sequences['XmpEnd'],0x4);break;default:this['state']=State['InTagName'],this['stateInTagName'](_0x16111e);}}['startEntity'](){this['baseState']=this['state'],this['state']=State['InEntity'],this['entityStart']=this['index'],this['entityDecoder']['startEntity'](this['xmlMode']?DecodingMode['Strict']:this['baseState']===State['Text']||this['baseState']===State['InSpecialTag']?DecodingMode['Legacy']:DecodingMode['Attribute']);}['stateInEntity'](){const _0x4069f7=this['entityDecoder']['write'](this['buffer'],this['index']-this['offset']);_0x4069f7>=0x0?(this['state']=this['baseState'],0x0===_0x4069f7&&(this['index']=this['entityStart'])):this['index']=this['offset']+this['buffer']['length']-0x1;}['cleanup'](){this['running']&&this['sectionStart']!==this['index']&&(this['state']===State['Text']||this['state']===State['InSpecialTag']&&0x0===this['sequenceIndex']?(this['cbs']['ontext'](this['sectionStart'],this['index']),this['sectionStart']=this['index']):this['state']!==State['InAttributeValueDq']&&this['state']!==State['InAttributeValueSq']&&this['state']!==State['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 _0x506e9c=this['buffer']['charCodeAt'](this['index']-this['offset']);switch(this['state']){case State['Text']:this['stateText'](_0x506e9c);break;case State['SpecialStartSequence']:this['stateSpecialStartSequence'](_0x506e9c);break;case State['InSpecialTag']:this['stateInSpecialTag'](_0x506e9c);break;case State['CDATASequence']:this['stateCDATASequence'](_0x506e9c);break;case State['InAttributeValueDq']:this['stateInAttributeValueDoubleQuotes'](_0x506e9c);break;case State['InAttributeName']:this['stateInAttributeName'](_0x506e9c);break;case State['InCommentLike']:this['stateInCommentLike'](_0x506e9c);break;case State['InSpecialComment']:this['stateInSpecialComment'](_0x506e9c);break;case State['BeforeAttributeName']:this['stateBeforeAttributeName'](_0x506e9c);break;case State['InTagName']:this['stateInTagName'](_0x506e9c);break;case State['InClosingTagName']:this['stateInClosingTagName'](_0x506e9c);break;case State['BeforeTagName']:this['stateBeforeTagName'](_0x506e9c);break;case State['AfterAttributeName']:this['stateAfterAttributeName'](_0x506e9c);break;case State['InAttributeValueSq']:this['stateInAttributeValueSingleQuotes'](_0x506e9c);break;case State['BeforeAttributeValue']:this['stateBeforeAttributeValue'](_0x506e9c);break;case State['BeforeClosingTagName']:this['stateBeforeClosingTagName'](_0x506e9c);break;case State['AfterClosingTagName']:this['stateAfterClosingTagName'](_0x506e9c);break;case State['BeforeSpecialS']:this['stateBeforeSpecialS'](_0x506e9c);break;case State['BeforeSpecialT']:this['stateBeforeSpecialT'](_0x506e9c);break;case State['InAttributeValueNq']:this['stateInAttributeValueNoQuotes'](_0x506e9c);break;case State['InSelfClosingTag']:this['stateInSelfClosingTag'](_0x506e9c);break;case State['InDeclaration']:this['stateInDeclaration'](_0x506e9c);break;case State['BeforeDeclaration']:this['stateBeforeDeclaration'](_0x506e9c);break;case State['BeforeComment']:this['stateBeforeComment'](_0x506e9c);break;case State['InProcessingInstruction']:this['stateInProcessingInstruction'](_0x506e9c);break;case State['InEntity']:this['stateInEntity']();}this['index']++;}this['cleanup']();}['finish'](){this['state']===State['InEntity']&&(this['entityDecoder']['end'](),this['state']=this['baseState']),this['handleTrailingData'](),this['cbs']['onend']();}['handleTrailingData'](){const _0x5a8e7a=this['buffer']['length']+this['offset'];this['sectionStart']>=_0x5a8e7a||(this['state']===State['InCommentLike']?this['currentSequence']===Sequences['CdataEnd']?this['cbs']['oncdata'](this['sectionStart'],_0x5a8e7a,0x0):this['cbs']['oncomment'](this['sectionStart'],_0x5a8e7a,0x0):this['state']===State['InTagName']||this['state']===State['BeforeAttributeName']||this['state']===State['BeforeAttributeValue']||this['state']===State['AfterAttributeName']||this['state']===State['InAttributeName']||this['state']===State['InAttributeValueSq']||this['state']===State['InAttributeValueDq']||this['state']===State['InAttributeValueNq']||this['state']===State['InClosingTagName']||this['cbs']['ontext'](this['sectionStart'],_0x5a8e7a));}['emitCodePoint'](_0xd5770c,_0xf267eb){this['baseState']!==State['Text']&&this['baseState']!==State['InSpecialTag']?(this['sectionStart']<this['entityStart']&&this['cbs']['onattribdata'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0xf267eb,this['index']=this['sectionStart']-0x1,this['cbs']['onattribentity'](_0xd5770c)):(this['sectionStart']<this['entityStart']&&this['cbs']['ontext'](this['sectionStart'],this['entityStart']),this['sectionStart']=this['entityStart']+_0xf267eb,this['index']=this['sectionStart']-0x1,this['cbs']['ontextentity'](_0xd5770c,this['sectionStart']));}}const formTags=new Set(['input','option','optgroup','select','button','datalist','textarea']),pTag=new Set(['p']),tableSectionTags=new Set(['thead','tbody']),ddtTags=new Set(['dd','dt']),rtpTags=new Set(['rt','rp']),openImpliesClose=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',pTag],['h1',pTag],['h2',pTag],['h3',pTag],['h4',pTag],['h5',pTag],['h6',pTag],['select',formTags],['input',formTags],['output',formTags],['button',formTags],['datalist',formTags],['textarea',formTags],['option',new Set(['option'])],['optgroup',new Set(['optgroup','option'])],['dd',ddtTags],['dt',ddtTags],['address',pTag],['article',pTag],['aside',pTag],['blockquote',pTag],['details',pTag],['div',pTag],['dl',pTag],['fieldset',pTag],['figcaption',pTag],['figure',pTag],['footer',pTag],['form',pTag],['header',pTag],['hr',pTag],['main',pTag],['nav',pTag],['ol',pTag],['pre',pTag],['section',pTag],['table',pTag],['ul',pTag],['rt',rtpTags],['rp',rtpTags],['tbody',tableSectionTags],['tfoot',tableSectionTags]]),voidElements=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']),foreignContextElements=new Set(['math','svg']),htmlIntegrationElements=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignobject','desc','title']),reNameEnd=/\s|\//;let Parser$1=class{constructor(_0x1d5939,_0x3487fa={}){var _0x459991,_0x416b4b,_0x369180,_0x479517,_0x8a4e9b,_0x1b3a4c;this['options']=_0x3487fa,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!=_0x1d5939?_0x1d5939:{},this['htmlMode']=!this['options']['xmlMode'],this['lowerCaseTagNames']=null!==(_0x459991=_0x3487fa['lowerCaseTags'])&&void 0x0!==_0x459991?_0x459991:this['htmlMode'],this['lowerCaseAttributeNames']=null!==(_0x416b4b=_0x3487fa['lowerCaseAttributeNames'])&&void 0x0!==_0x416b4b?_0x416b4b:this['htmlMode'],this['recognizeSelfClosing']=null!==(_0x369180=_0x3487fa['recognizeSelfClosing'])&&void 0x0!==_0x369180?_0x369180:!this['htmlMode'],this['tokenizer']=new(null!==(_0x479517=_0x3487fa['Tokenizer'])&&void 0x0!==_0x479517?_0x479517:Tokenizer)(this['options'],this),this['foreignContext']=[!this['htmlMode']],null===(_0x1b3a4c=(_0x8a4e9b=this['cbs'])['onparserinit'])||void 0x0===_0x1b3a4c||_0x1b3a4c['call'](_0x8a4e9b,this);}['ontext'](_0x419407,_0x2abe29){var _0x7a2aef,_0x1f188a;const _0x2dc439=this['getSlice'](_0x419407,_0x2abe29);this['endIndex']=_0x2abe29-0x1,null===(_0x1f188a=(_0x7a2aef=this['cbs'])['ontext'])||void 0x0===_0x1f188a||_0x1f188a['call'](_0x7a2aef,_0x2dc439),this['startIndex']=_0x2abe29;}['ontextentity'](_0x3a1db5,_0x2beb76){var _0x1b1229,_0x50eb3a;this['endIndex']=_0x2beb76-0x1,null===(_0x50eb3a=(_0x1b1229=this['cbs'])['ontext'])||void 0x0===_0x50eb3a||_0x50eb3a['call'](_0x1b1229,fromCodePoint$1(_0x3a1db5)),this['startIndex']=_0x2beb76;}['isVoidElement'](_0x25ccd2){return this['htmlMode']&&voidElements['has'](_0x25ccd2);}['onopentagname'](_0x484ce0,_0x2a102e){this['endIndex']=_0x2a102e;let _0x1a7142=this['getSlice'](_0x484ce0,_0x2a102e);this['lowerCaseTagNames']&&(_0x1a7142=_0x1a7142['toLowerCase']()),this['emitOpenTag'](_0x1a7142);}['emitOpenTag'](_0x3b7df9){var _0x20f377,_0x2fe5ba,_0x39d52a,_0x33fa8f;this['openTagStart']=this['startIndex'],this['tagname']=_0x3b7df9;const _0x4f88e9=this['htmlMode']&&openImpliesClose['get'](_0x3b7df9);if(_0x4f88e9)for(;this['stack']['length']>0x0&&_0x4f88e9['has'](this['stack'][0x0]);){const _0x54133e=this['stack']['shift']();null===(_0x2fe5ba=(_0x20f377=this['cbs'])['onclosetag'])||void 0x0===_0x2fe5ba||_0x2fe5ba['call'](_0x20f377,_0x54133e,!0x0);}this['isVoidElement'](_0x3b7df9)||(this['stack']['unshift'](_0x3b7df9),this['htmlMode']&&(foreignContextElements['has'](_0x3b7df9)?this['foreignContext']['unshift'](!0x0):htmlIntegrationElements['has'](_0x3b7df9)&&this['foreignContext']['unshift'](!0x1))),null===(_0x33fa8f=(_0x39d52a=this['cbs'])['onopentagname'])||void 0x0===_0x33fa8f||_0x33fa8f['call'](_0x39d52a,_0x3b7df9),this['cbs']['onopentag']&&(this['attribs']={});}['endOpenTag'](_0x361da3){var _0x31a969,_0x2c1a3e;this['startIndex']=this['openTagStart'],this['attribs']&&(null===(_0x2c1a3e=(_0x31a969=this['cbs'])['onopentag'])||void 0x0===_0x2c1a3e||_0x2c1a3e['call'](_0x31a969,this['tagname'],this['attribs'],_0x361da3),this['attribs']=null),this['cbs']['onclosetag']&&this['isVoidElement'](this['tagname'])&&this['cbs']['onclosetag'](this['tagname'],!0x0),this['tagname']='';}['onopentagend'](_0x16ff80){this['endIndex']=_0x16ff80,this['endOpenTag'](!0x1),this['startIndex']=_0x16ff80+0x1;}['onclosetag'](_0x3c77f3,_0x595535){var _0x23b0f1,_0x9eb2cf,_0x39f7de,_0x2d7710,_0x2b4c8d,_0x4120a6,_0x3bc0c6,_0x293f7b;this['endIndex']=_0x595535;let _0x2c035a=this['getSlice'](_0x3c77f3,_0x595535);if(this['lowerCaseTagNames']&&(_0x2c035a=_0x2c035a['toLowerCase']()),this['htmlMode']&&(foreignContextElements['has'](_0x2c035a)||htmlIntegrationElements['has'](_0x2c035a))&&this['foreignContext']['shift'](),this['isVoidElement'](_0x2c035a))this['htmlMode']&&'br'===_0x2c035a&&(null===(_0x2d7710=(_0x39f7de=this['cbs'])['onopentagname'])||void 0x0===_0x2d7710||_0x2d7710['call'](_0x39f7de,'br'),null===(_0x4120a6=(_0x2b4c8d=this['cbs'])['onopentag'])||void 0x0===_0x4120a6||_0x4120a6['call'](_0x2b4c8d,'br',{},!0x0),null===(_0x293f7b=(_0x3bc0c6=this['cbs'])['onclosetag'])||void 0x0===_0x293f7b||_0x293f7b['call'](_0x3bc0c6,'br',!0x1));else{const _0x4660b4=this['stack']['indexOf'](_0x2c035a);if(-0x1!==_0x4660b4)for(let _0x3b1f08=0x0;_0x3b1f08<=_0x4660b4;_0x3b1f08++){const _0x1a7af4=this['stack']['shift']();null===(_0x9eb2cf=(_0x23b0f1=this['cbs'])['onclosetag'])||void 0x0===_0x9eb2cf||_0x9eb2cf['call'](_0x23b0f1,_0x1a7af4,_0x3b1f08!==_0x4660b4);}else this['htmlMode']&&'p'===_0x2c035a&&(this['emitOpenTag']('p'),this['closeCurrentTag'](!0x0));}this['startIndex']=_0x595535+0x1;}['onselfclosingtag'](_0x226e47){this['endIndex']=_0x226e47,this['recognizeSelfClosing']||this['foreignContext'][0x0]?(this['closeCurrentTag'](!0x1),this['startIndex']=_0x226e47+0x1):this['onopentagend'](_0x226e47);}['closeCurrentTag'](_0x217f80){var _0x492b24,_0x26b116;const _0x2e9b54=this['tagname'];this['endOpenTag'](_0x217f80),this['stack'][0x0]===_0x2e9b54&&(null===(_0x26b116=(_0x492b24=this['cbs'])['onclosetag'])||void 0x0===_0x26b116||_0x26b116['call'](_0x492b24,_0x2e9b54,!_0x217f80),this['stack']['shift']());}['onattribname'](_0x5c4191,_0x20f3ba){this['startIndex']=_0x5c4191;const _0x5c1aba=this['getSlice'](_0x5c4191,_0x20f3ba);this['attribname']=this['lowerCaseAttributeNames']?_0x5c1aba['toLowerCase']():_0x5c1aba;}['onattribdata'](_0x5e4bf1,_0x215cfe){this['attribvalue']+=this['getSlice'](_0x5e4bf1,_0x215cfe);}['onattribentity'](_0x13e28c){this['attribvalue']+=fromCodePoint$1(_0x13e28c);}['onattribend'](_0x19b1df,_0x5b50a7){var _0x5c05a7,_0x4ec4f3;this['endIndex']=_0x5b50a7,null===(_0x4ec4f3=(_0x5c05a7=this['cbs'])['onattribute'])||void 0x0===_0x4ec4f3||_0x4ec4f3['call'](_0x5c05a7,this['attribname'],this['attribvalue'],_0x19b1df===QuoteType['Double']?'\x22':_0x19b1df===QuoteType['Single']?'\x27':_0x19b1df===QuoteType['NoValue']?void 0x0:null),this['attribs']&&!Object['prototype']['hasOwnProperty']['call'](this['attribs'],this['attribname'])&&(this['attribs'][this['attribname']]=this['attribvalue']),this['attribvalue']='';}['getInstructionName'](_0x2d53e2){const _0x3b550a=_0x2d53e2['search'](reNameEnd);let _0x39e4c9=_0x3b550a<0x0?_0x2d53e2:_0x2d53e2['substr'](0x0,_0x3b550a);return this['lowerCaseTagNames']&&(_0x39e4c9=_0x39e4c9['toLowerCase']()),_0x39e4c9;}['ondeclaration'](_0xe0ba9e,_0x160db4){this['endIndex']=_0x160db4;const _0x5bf379=this['getSlice'](_0xe0ba9e,_0x160db4);if(this['cbs']['onprocessinginstruction']){const _0x2b96e0=this['getInstructionName'](_0x5bf379);this['cbs']['onprocessinginstruction']('!'+_0x2b96e0,'!'+_0x5bf379);}this['startIndex']=_0x160db4+0x1;}['onprocessinginstruction'](_0x3e4261,_0x23f11a){this['endIndex']=_0x23f11a;const _0x12af60=this['getSlice'](_0x3e4261,_0x23f11a);if(this['cbs']['onprocessinginstruction']){const _0x3ffd02=this['getInstructionName'](_0x12af60);this['cbs']['onprocessinginstruction']('?'+_0x3ffd02,'?'+_0x12af60);}this['startIndex']=_0x23f11a+0x1;}['oncomment'](_0x464cd4,_0x487b0b,_0x5b85a5){var _0x26f15a,_0x46df99,_0x448890,_0x20168d;this['endIndex']=_0x487b0b,null===(_0x46df99=(_0x26f15a=this['cbs'])['oncomment'])||void 0x0===_0x46df99||_0x46df99['call'](_0x26f15a,this['getSlice'](_0x464cd4,_0x487b0b-_0x5b85a5)),null===(_0x20168d=(_0x448890=this['cbs'])['oncommentend'])||void 0x0===_0x20168d||_0x20168d['call'](_0x448890),this['startIndex']=_0x487b0b+0x1;}['oncdata'](_0x394a0e,_0x12194a,_0x45ea96){var _0x30f821,_0x1904e3,_0x13a807,_0x49b401,_0x3a67a5,_0x323b08,_0x3ea688,_0x2f7e1c,_0x4ad40f,_0x12e8f5;this['endIndex']=_0x12194a;const _0x10d803=this['getSlice'](_0x394a0e,_0x12194a-_0x45ea96);!this['htmlMode']||this['options']['recognizeCDATA']?(null===(_0x1904e3=(_0x30f821=this['cbs'])['oncdatastart'])||void 0x0===_0x1904e3||_0x1904e3['call'](_0x30f821),null===(_0x49b401=(_0x13a807=this['cbs'])['ontext'])||void 0x0===_0x49b401||_0x49b401['call'](_0x13a807,_0x10d803),null===(_0x323b08=(_0x3a67a5=this['cbs'])['oncdataend'])||void 0x0===_0x323b08||_0x323b08['call'](_0x3a67a5)):(null===(_0x2f7e1c=(_0x3ea688=this['cbs'])['oncomment'])||void 0x0===_0x2f7e1c||_0x2f7e1c['call'](_0x3ea688,'[CDATA['+_0x10d803+']]'),null===(_0x12e8f5=(_0x4ad40f=this['cbs'])['oncommentend'])||void 0x0===_0x12e8f5||_0x12e8f5['call'](_0x4ad40f)),this['startIndex']=_0x12194a+0x1;}['onend'](){var _0x6854af,_0x306ca3;if(this['cbs']['onclosetag']){this['endIndex']=this['startIndex'];for(let _0x5005fb=0x0;_0x5005fb<this['stack']['length'];_0x5005fb++)this['cbs']['onclosetag'](this['stack'][_0x5005fb],!0x0);}null===(_0x306ca3=(_0x6854af=this['cbs'])['onend'])||void 0x0===_0x306ca3||_0x306ca3['call'](_0x6854af);}['reset'](){var _0x52aa04,_0x9d2085,_0x5c24d6,_0x43af87;null===(_0x9d2085=(_0x52aa04=this['cbs'])['onreset'])||void 0x0===_0x9d2085||_0x9d2085['call'](_0x52aa04),this['tokenizer']['reset'](),this['tagname']='',this['attribname']='',this['attribs']=null,this['stack']['length']=0x0,this['startIndex']=0x0,this['endIndex']=0x0,null===(_0x43af87=(_0x5c24d6=this['cbs'])['onparserinit'])||void 0x0===_0x43af87||_0x43af87['call'](_0x5c24d6,this),this['buffers']['length']=0x0,this['foreignContext']['length']=0x0,this['foreignContext']['unshift'](!this['htmlMode']),this['bufferOffset']=0x0,this['writeIndex']=0x0,this['ended']=!0x1;}['parseComplete'](_0xdb5466){this['reset'](),this['end'](_0xdb5466);}['getSlice'](_0x1e3a00,_0x2aa759){for(;_0x1e3a00-this['bufferOffset']>=this['buffers'][0x0]['length'];)this['shiftBuffer']();let _0x1fa590=this['buffers'][0x0]['slice'](_0x1e3a00-this['bufferOffset'],_0x2aa759-this['bufferOffset']);for(;_0x2aa759-this['bufferOffset']>this['buffers'][0x0]['length'];)this['shiftBuffer'](),_0x1fa590+=this['buffers'][0x0]['slice'](0x0,_0x2aa759-this['bufferOffset']);return _0x1fa590;}['shiftBuffer'](){this['bufferOffset']+=this['buffers'][0x0]['length'],this['writeIndex']--,this['buffers']['shift']();}['write'](_0x4af53b){var _0x352804,_0x6699c1;this['ended']?null===(_0x6699c1=(_0x352804=this['cbs'])['onerror'])||void 0x0===_0x6699c1||_0x6699c1['call'](_0x352804,new Error('.write()\x20after\x20done!')):(this['buffers']['push'](_0x4af53b),this['tokenizer']['running']&&(this['tokenizer']['write'](_0x4af53b),this['writeIndex']++));}['end'](_0x1dcee1){var _0x59691d,_0x2bc5a8;this['ended']?null===(_0x2bc5a8=(_0x59691d=this['cbs'])['onerror'])||void 0x0===_0x2bc5a8||_0x2bc5a8['call'](_0x59691d,new Error('.end()\x20after\x20done!')):(_0x1dcee1&&this['write'](_0x1dcee1),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'](_0x5eae50){this['write'](_0x5eae50);}['done'](_0x503c9e){this['end'](_0x503c9e);}};var ElementType;function isTag$1(_0x22edad){return _0x22edad['type']===ElementType['Tag']||_0x22edad['type']===ElementType['Script']||_0x22edad['type']===ElementType['Style'];}!function(_0x4451c9){_0x4451c9['Root']='root',_0x4451c9['Text']='text',_0x4451c9['Directive']='directive',_0x4451c9['Comment']='comment',_0x4451c9['Script']='script',_0x4451c9['Style']='style',_0x4451c9['Tag']='tag',_0x4451c9['CDATA']='cdata',_0x4451c9['Doctype']='doctype';}(ElementType||(ElementType={}));const Root=ElementType['Root'],Text$2=ElementType['Text'],Directive=ElementType['Directive'],Comment$2=ElementType['Comment'],Script=ElementType['Script'],Style=ElementType['Style'],Tag$1=ElementType['Tag'],CDATA$1=ElementType['CDATA'],Doctype=ElementType['Doctype'];let Node$1=class{constructor(){this['parent']=null,this['prev']=null,this['next']=null,this['startIndex']=null,this['endIndex']=null;}get['parentNode'](){return this['parent'];}set['parentNode'](_0x2b5976){this['parent']=_0x2b5976;}get['previousSibling'](){return this['prev'];}set['previousSibling'](_0x5385d5){this['prev']=_0x5385d5;}get['nextSibling'](){return this['next'];}set['nextSibling'](_0x4a41e5){this['next']=_0x4a41e5;}['cloneNode'](_0x1fa418=!0x1){return cloneNode(this,_0x1fa418);}};class DataNode extends Node$1{constructor(_0x54338e){super(),this['data']=_0x54338e;}get['nodeValue'](){return this['data'];}set['nodeValue'](_0x513d28){this['data']=_0x513d28;}}let Text$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Text'];}get['nodeType'](){return 0x3;}},Comment$1=class extends DataNode{constructor(){super(...arguments),this['type']=ElementType['Comment'];}get['nodeType'](){return 0x8;}};class ProcessingInstruction extends DataNode{constructor(_0x23e767,_0x29c96c){super(_0x29c96c),this['name']=_0x23e767,this['type']=ElementType['Directive'];}get['nodeType'](){return 0x1;}}class NodeWithChildren extends Node$1{constructor(_0x30a3b2){super(),this['children']=_0x30a3b2;}get['firstChild'](){var _0x3973e6;return null!==(_0x3973e6=this['children'][0x0])&&void 0x0!==_0x3973e6?_0x3973e6:null;}get['lastChild'](){return this['children']['length']>0x0?this['children'][this['children']['length']-0x1]:null;}get['childNodes'](){return this['children'];}set['childNodes'](_0x535ede){this['children']=_0x535ede;}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['CDATA'];}get['nodeType'](){return 0x4;}}class Document extends NodeWithChildren{constructor(){super(...arguments),this['type']=ElementType['Root'];}get['nodeType'](){return 0x9;}}let Element$3=class extends NodeWithChildren{constructor(_0x1d523e,_0x5b1db6,_0x6a2a2a=[],_0x116922='script'===_0x1d523e?ElementType['Script']:'style'===_0x1d523e?ElementType['Style']:ElementType['Tag']){super(_0x6a2a2a),this['name']=_0x1d523e,this['attribs']=_0x5b1db6,this['type']=_0x116922;}get['nodeType'](){return 0x1;}get['tagName'](){return this['name'];}set['tagName'](_0x3bc6c1){this['name']=_0x3bc6c1;}get['attributes'](){return Object['keys'](this['attribs'])['map'](_0x36355a=>{var _0x26ffab,_0x555e42;return{'name':_0x36355a,'value':this['attribs'][_0x36355a],'namespace':null===(_0x26ffab=this['x-attribsNamespace'])||void 0x0===_0x26ffab?void 0x0:_0x26ffab[_0x36355a],'prefix':null===(_0x555e42=this['x-attribsPrefix'])||void 0x0===_0x555e42?void 0x0:_0x555e42[_0x36355a]};});}};function isTag(_0x28fd75){return isTag$1(_0x28fd75);}function isCDATA(_0x54cb36){return _0x54cb36['type']===ElementType['CDATA'];}function isText$1(_0x2b9f4d){return _0x2b9f4d['type']===ElementType['Text'];}function isComment(_0x176314){return _0x176314['type']===ElementType['Comment'];}function isDirective(_0xe5dc5d){return _0xe5dc5d['type']===ElementType['Directive'];}function isDocument(_0x4637cc){return _0x4637cc['type']===ElementType['Root'];}function hasChildren(_0x4a364c){return Object['prototype']['hasOwnProperty']['call'](_0x4a364c,'children');}function cloneNode(_0x556633,_0x635d10=!0x1){let _0x5b6def;if(isText$1(_0x556633))_0x5b6def=new Text$1(_0x556633['data']);else{if(isComment(_0x556633))_0x5b6def=new Comment$1(_0x556633['data']);else{if(isTag(_0x556633)){const _0x5767ae=_0x635d10?cloneChildren(_0x556633['children']):[],_0x38738e=new Element$3(_0x556633['name'],{..._0x556633['attribs']},_0x5767ae);_0x5767ae['forEach'](_0x5e4dc6=>_0x5e4dc6['parent']=_0x38738e),null!=_0x556633['namespace']&&(_0x38738e['namespace']=_0x556633['namespace']),_0x556633['x-attribsNamespace']&&(_0x38738e['x-attribsNamespace']={..._0x556633['x-attribsNamespace']}),_0x556633['x-attribsPrefix']&&(_0x38738e['x-attribsPrefix']={..._0x556633['x-attribsPrefix']}),_0x5b6def=_0x38738e;}else{if(isCDATA(_0x556633)){const _0x2fef45=_0x635d10?cloneChildren(_0x556633['children']):[],_0x5d75a5=new CDATA(_0x2fef45);_0x2fef45['forEach'](_0x2d15a4=>_0x2d15a4['parent']=_0x5d75a5),_0x5b6def=_0x5d75a5;}else{if(isDocument(_0x556633)){const _0x242547=_0x635d10?cloneChildren(_0x556633['children']):[],_0x5e61f7=new Document(_0x242547);_0x242547['forEach'](_0x2bfc07=>_0x2bfc07['parent']=_0x5e61f7),_0x556633['x-mode']&&(_0x5e61f7['x-mode']=_0x556633['x-mode']),_0x5b6def=_0x5e61f7;}else{if(!isDirective(_0x556633))throw new Error('Not\x20implemented\x20yet:\x20'+_0x556633['type']);{const _0x261276=new ProcessingInstruction(_0x556633['name'],_0x556633['data']);null!=_0x556633['x-name']&&(_0x261276['x-name']=_0x556633['x-name'],_0x261276['x-publicId']=_0x556633['x-publicId'],_0x261276['x-systemId']=_0x556633['x-systemId']),_0x5b6def=_0x261276;}}}}}}return _0x5b6def['startIndex']=_0x556633['startIndex'],_0x5b6def['endIndex']=_0x556633['endIndex'],null!=_0x556633['sourceCodeLocation']&&(_0x5b6def['sourceCodeLocation']=_0x556633['sourceCodeLocation']),_0x5b6def;}function cloneChildren(_0x297488){const _0x5ad6c6=_0x297488['map'](_0x4473a0=>cloneNode(_0x4473a0,!0x0));for(let _0x276b11=0x1;_0x276b11<_0x5ad6c6['length'];_0x276b11++)_0x5ad6c6[_0x276b11]['prev']=_0x5ad6c6[_0x276b11-0x1],_0x5ad6c6[_0x276b11-0x1]['next']=_0x5ad6c6[_0x276b11];return _0x5ad6c6;}const defaultOpts={'withStartIndices':!0x1,'withEndIndices':!0x1,'xmlMode':!0x1};class DomHandler{constructor(_0x5e48b9,_0xe6a6b5,_0x5721e7){this['dom']=[],this['root']=new Document(this['dom']),this['done']=!0x1,this['tagStack']=[this['root']],this['lastNode']=null,this['parser']=null,'function'==typeof _0xe6a6b5&&(_0x5721e7=_0xe6a6b5,_0xe6a6b5=defaultOpts),'object'==typeof _0x5e48b9&&(_0xe6a6b5=_0x5e48b9,_0x5e48b9=void 0x0),this['callback']=null!=_0x5e48b9?_0x5e48b9:null,this['options']=null!=_0xe6a6b5?_0xe6a6b5:defaultOpts,this['elementCB']=null!=_0x5721e7?_0x5721e7:null;}['onparserinit'](_0x261b4d){this['parser']=_0x261b4d;}['onreset'](){this['dom']=[],this['root']=new Document(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'](_0x5b10f0){this['handleCallback'](_0x5b10f0);}['onclosetag'](){this['lastNode']=null;const _0x28f0c4=this['tagStack']['pop']();this['options']['withEndIndices']&&(_0x28f0c4['endIndex']=this['parser']['endIndex']),this['elementCB']&&this['elementCB'](_0x28f0c4);}['onopentag'](_0x215a0d,_0xd95da8){const _0x157dad=this['options']['xmlMode']?ElementType['Tag']:void 0x0,_0x5179b8=new Element$3(_0x215a0d,_0xd95da8,void 0x0,_0x157dad);this['addNode'](_0x5179b8),this['tagStack']['push'](_0x5179b8);}['ontext'](_0x5c6a96){const {lastNode:_0x4791c6}=this;if(_0x4791c6&&_0x4791c6['type']===ElementType['Text'])_0x4791c6['data']+=_0x5c6a96,this['options']['withEndIndices']&&(_0x4791c6['endIndex']=this['parser']['endIndex']);else{const _0x33f105=new Text$1(_0x5c6a96);this['addNode'](_0x33f105),this['lastNode']=_0x33f105;}}['oncomment'](_0x5b47e7){if(this['lastNode']&&this['lastNode']['type']===ElementType['Comment'])return void(this['lastNode']['data']+=_0x5b47e7);const _0x4b91a3=new Comment$1(_0x5b47e7);this['addNode'](_0x4b91a3),this['lastNode']=_0x4b91a3;}['oncommentend'](){this['lastNode']=null;}['oncdatastart'](){const _0x1a4522=new Text$1(''),_0x78d818=new CDATA([_0x1a4522]);this['addNode'](_0x78d818),_0x1a4522['parent']=_0x78d818,this['lastNode']=_0x1a4522;}['oncdataend'](){this['lastNode']=null;}['onprocessinginstruction'](_0x24e047,_0x35fc7f){const _0x31a8ca=new ProcessingInstruction(_0x24e047,_0x35fc7f);this['addNode'](_0x31a8ca);}['handleCallback'](_0x342849){if('function'==typeof this['callback'])this['callback'](_0x342849,this['dom']);else{if(_0x342849)throw _0x342849;}}['addNode'](_0x156139){const _0x2ad3be=this['tagStack'][this['tagStack']['length']-0x1],_0x3fb642=_0x2ad3be['children'][_0x2ad3be['children']['length']-0x1];this['options']['withStartIndices']&&(_0x156139['startIndex']=this['parser']['startIndex']),this['options']['withEndIndices']&&(_0x156139['endIndex']=this['parser']['endIndex']),_0x2ad3be['children']['push'](_0x156139),_0x3fb642&&(_0x156139['prev']=_0x3fb642,_0x3fb642['next']=_0x156139),_0x156139['parent']=_0x2ad3be,this['lastNode']=null;}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0x27,'&apos;'],[0x3c,'&lt;'],[0x3e,'&gt;']]),getCodePoint=null!=String['prototype']['codePointAt']?(_0x47089e,_0x1dfbe5)=>_0x47089e['codePointAt'](_0x1dfbe5):(_0x14436c,_0xad58e)=>0xd800==(0xfc00&_0x14436c['charCodeAt'](_0xad58e))?0x400*(_0x14436c['charCodeAt'](_0xad58e)-0xd800)+_0x14436c['charCodeAt'](_0xad58e+0x1)-0xdc00+0x10000:_0x14436c['charCodeAt'](_0xad58e);function encodeXML(_0x249cd5){let _0x6d76e9,_0x233a7d='',_0x1581b9=0x0;for(;null!==(_0x6d76e9=xmlReplacer['exec'](_0x249cd5));){const _0x57dc97=_0x6d76e9['index'],_0x5e6e51=_0x249cd5['charCodeAt'](_0x57dc97),_0x341e7a=xmlCodeMap['get'](_0x5e6e51);void 0x0!==_0x341e7a?(_0x233a7d+=_0x249cd5['substring'](_0x1581b9,_0x57dc97)+_0x341e7a,_0x1581b9=_0x57dc97+0x1):(_0x233a7d+=_0x249cd5['substring'](_0x1581b9,_0x57dc97)+'&#x'+getCodePoint(_0x249cd5,_0x57dc97)['toString'](0x10)+';',_0x1581b9=xmlReplacer['lastIndex']+=Number(0xd800==(0xfc00&_0x5e6e51)));}return _0x233a7d+_0x249cd5['substr'](_0x1581b9);}function getEscaper(_0x1a85f7,_0x26132a){return function(_0x2b35df){let _0xd74099,_0x3a004a=0x0,_0xcfe3d5='';for(;_0xd74099=_0x1a85f7['exec'](_0x2b35df);)_0x3a004a!==_0xd74099['index']&&(_0xcfe3d5+=_0x2b35df['substring'](_0x3a004a,_0xd74099['index'])),_0xcfe3d5+=_0x26132a['get'](_0xd74099[0x0]['charCodeAt'](0x0)),_0x3a004a=_0xd74099['index']+0x1;return _0xcfe3d5+_0x2b35df['substring'](_0x3a004a);};}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[0x22,'&quot;'],[0x26,'&amp;'],[0xa0,'&nbsp;']])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[0x26,'&amp;'],[0x3c,'&lt;'],[0x3e,'&gt;'],[0xa0,'&nbsp;']])),elementNames=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'](_0x59441d=>[_0x59441d['toLowerCase'](),_0x59441d])),attributeNames=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'](_0x576d76=>[_0x576d76['toLowerCase'](),_0x576d76])),unencodedElements=new Set(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']);function replaceQuotes(_0x221c88){return _0x221c88['replace'](/"/g,'&quot;');}function formatAttributes(_0x447733,_0x1abf4a){var _0x36eb16;if(!_0x447733)return;const _0x14cf57=!0x1===(null!==(_0x36eb16=_0x1abf4a['encodeEntities'])&&void 0x0!==_0x36eb16?_0x36eb16:_0x1abf4a['decodeEntities'])?replaceQuotes:_0x1abf4a['xmlMode']||'utf8'!==_0x1abf4a['encodeEntities']?encodeXML:escapeAttribute;return Object['keys'](_0x447733)['map'](_0x2cbebe=>{var _0x2ba004,_0x149299;const _0x584881=null!==(_0x2ba004=_0x447733[_0x2cbebe])&&void 0x0!==_0x2ba004?_0x2ba004:'';return'foreign'===_0x1abf4a['xmlMode']&&(_0x2cbebe=null!==(_0x149299=attributeNames['get'](_0x2cbebe))&&void 0x0!==_0x149299?_0x149299:_0x2cbebe),_0x1abf4a['emptyAttrs']||_0x1abf4a['xmlMode']||''!==_0x584881?_0x2cbebe+'=\x22'+_0x14cf57(_0x584881)+'\x22':_0x2cbebe;})['join']('\x20');}const singleTag=new Set(['area','base','basefont','br','col','command','embed','frame','hr','img','input','isindex','keygen','link','meta','param','source','track','wbr']);function render(_0xbffa5a,_0x1f671b={}){const _0x2f6c88='length'in _0xbffa5a?_0xbffa5a:[_0xbffa5a];let _0x3d41fc='';for(let _0x1f3923=0x0;_0x1f3923<_0x2f6c88['length'];_0x1f3923++)_0x3d41fc+=renderNode(_0x2f6c88[_0x1f3923],_0x1f671b);return _0x3d41fc;}function renderNode(_0x4c37e7,_0xd2e83b){switch(_0x4c37e7['type']){case Root:return render(_0x4c37e7['children'],_0xd2e83b);case Doctype:case Directive:return renderDirective(_0x4c37e7);case Comment$2:return renderComment(_0x4c37e7);case CDATA$1:return renderCdata(_0x4c37e7);case Script:case Style:case Tag$1:return renderTag(_0x4c37e7,_0xd2e83b);case Text$2:return renderText(_0x4c37e7,_0xd2e83b);}}const foreignModeIntegrationPoints=new Set(['mi','mo','mn','ms','mtext','annotation-xml','foreignObject','desc','title']),foreignElements=new Set(['svg','math']);function renderTag(_0x324afe,_0x2d3043){var _0x40deaa;'foreign'===_0x2d3043['xmlMode']&&(_0x324afe['name']=null!==(_0x40deaa=elementNames['get'](_0x324afe['name']))&&void 0x0!==_0x40deaa?_0x40deaa:_0x324afe['name'],_0x324afe['parent']&&foreignModeIntegrationPoints['has'](_0x324afe['parent']['name'])&&(_0x2d3043={..._0x2d3043,'xmlMode':!0x1})),!_0x2d3043['xmlMode']&&foreignElements['has'](_0x324afe['name'])&&(_0x2d3043={..._0x2d3043,'xmlMode':'foreign'});let _0x211d1d='<'+_0x324afe['name'];const _0x1ab3bf=formatAttributes(_0x324afe['attribs'],_0x2d3043);return _0x1ab3bf&&(_0x211d1d+='\x20'+_0x1ab3bf),0x0===_0x324afe['children']['length']&&(_0x2d3043['xmlMode']?!0x1!==_0x2d3043['selfClosingTags']:_0x2d3043['selfClosingTags']&&singleTag['has'](_0x324afe['name']))?(_0x2d3043['xmlMode']||(_0x211d1d+='\x20'),_0x211d1d+='/>'):(_0x211d1d+='>',_0x324afe['children']['length']>0x0&&(_0x211d1d+=render(_0x324afe['children'],_0x2d3043)),!_0x2d3043['xmlMode']&&singleTag['has'](_0x324afe['name'])||(_0x211d1d+='</'+_0x324afe['name']+'>')),_0x211d1d;}function renderDirective(_0x2c1438){return'<'+_0x2c1438['data']+'>';}function renderText(_0x1c04b4,_0x12aeba){var _0x2f3a47;let _0x32876f=_0x1c04b4['data']||'';return!0x1===(null!==(_0x2f3a47=_0x12aeba['encodeEntities'])&&void 0x0!==_0x2f3a47?_0x2f3a47:_0x12aeba['decodeEntities'])||!_0x12aeba['xmlMode']&&_0x1c04b4['parent']&&unencodedElements['has'](_0x1c04b4['parent']['name'])||(_0x32876f=_0x12aeba['xmlMode']||'utf8'!==_0x12aeba['encodeEntities']?encodeXML(_0x32876f):escapeText(_0x32876f)),_0x32876f;}function renderCdata(_0x55914a){return'<![CDATA['+_0x55914a['children'][0x0]['data']+']]>';}function renderComment(_0x11a7e5){return'<!--'+_0x11a7e5['data']+'-->';}function textContent(_0x18764b){return Array['isArray'](_0x18764b)?_0x18764b['map'](textContent)['join'](''):hasChildren(_0x18764b)&&!isComment(_0x18764b)?textContent(_0x18764b['children']):isText$1(_0x18764b)?_0x18764b['data']:'';}function getChildren$1(_0x2f9275){return hasChildren(_0x2f9275)?_0x2f9275['children']:[];}function getParent(_0x2604d1){return _0x2604d1['parent']||null;}function removeElement(_0x115b09){if(_0x115b09['prev']&&(_0x115b09['prev']['next']=_0x115b09['next']),_0x115b09['next']&&(_0x115b09['next']['prev']=_0x115b09['prev']),_0x115b09['parent']){const _0xd64ba6=_0x115b09['parent']['children'],_0x48f8f8=_0xd64ba6['lastIndexOf'](_0x115b09);_0x48f8f8>=0x0&&_0xd64ba6['splice'](_0x48f8f8,0x1);}_0x115b09['next']=null,_0x115b09['prev']=null,_0x115b09['parent']=null;}function replaceElement(_0x4a8001,_0x56c274){const _0x48ca23=_0x56c274['prev']=_0x4a8001['prev'];_0x48ca23&&(_0x48ca23['next']=_0x56c274);const _0x49bbde=_0x56c274['next']=_0x4a8001['next'];_0x49bbde&&(_0x49bbde['prev']=_0x56c274);const _0x3302a6=_0x56c274['parent']=_0x4a8001['parent'];if(_0x3302a6){const _0x417ef1=_0x3302a6['children'];_0x417ef1[_0x417ef1['lastIndexOf'](_0x4a8001)]=_0x56c274,_0x4a8001['parent']=null;}}function appendChild(_0x45c758,_0x5c6d26){if(removeElement(_0x5c6d26),_0x5c6d26['next']=null,_0x5c6d26['parent']=_0x45c758,_0x45c758['children']['push'](_0x5c6d26)>0x1){const _0x159aa2=_0x45c758['children'][_0x45c758['children']['length']-0x2];_0x159aa2['next']=_0x5c6d26,_0x5c6d26['prev']=_0x159aa2;}else _0x5c6d26['prev']=null;}function append(_0x1688be,_0x2a2f9c){removeElement(_0x2a2f9c);const {parent:_0xf1dd94}=_0x1688be,_0x434324=_0x1688be['next'];if(_0x2a2f9c['next']=_0x434324,_0x2a2f9c['prev']=_0x1688be,_0x1688be['next']=_0x2a2f9c,_0x2a2f9c['parent']=_0xf1dd94,_0x434324){if(_0x434324['prev']=_0x2a2f9c,_0xf1dd94){const _0x2eb5a9=_0xf1dd94['children'];_0x2eb5a9['splice'](_0x2eb5a9['lastIndexOf'](_0x434324),0x0,_0x2a2f9c);}}else _0xf1dd94&&_0xf1dd94['children']['push'](_0x2a2f9c);}function prependChild(_0x2400c0,_0x4ad737){if(removeElement(_0x4ad737),_0x4ad737['parent']=_0x2400c0,_0x4ad737['prev']=null,0x1!==_0x2400c0['children']['unshift'](_0x4ad737)){const _0xbc6220=_0x2400c0['children'][0x1];_0xbc6220['prev']=_0x4ad737,_0x4ad737['next']=_0xbc6220;}else _0x4ad737['next']=null;}function prepend(_0x35e2bf,_0x397321){removeElement(_0x397321);const {parent:_0x2007ba}=_0x35e2bf;if(_0x2007ba){const _0x8be8c3=_0x2007ba['children'];_0x8be8c3['splice'](_0x8be8c3['indexOf'](_0x35e2bf),0x0,_0x397321);}_0x35e2bf['prev']&&(_0x35e2bf['prev']['next']=_0x397321),_0x397321['parent']=_0x2007ba,_0x397321['prev']=_0x35e2bf['prev'],_0x397321['next']=_0x35e2bf,_0x35e2bf['prev']=_0x397321;}function find$1(_0x53396c,_0x8f4c82,_0x396c90,_0x13ef72){const _0x20f08b=[],_0x46d209=[Array['isArray'](_0x8f4c82)?_0x8f4c82:[_0x8f4c82]],_0x5e0066=[0x0];for(;;){if(_0x5e0066[0x0]>=_0x46d209[0x0]['length']){if(0x1===_0x5e0066['length'])return _0x20f08b;_0x46d209['shift'](),_0x5e0066['shift']();continue;}const _0x571433=_0x46d209[0x0][_0x5e0066[0x0]++];if(_0x53396c(_0x571433)&&(_0x20f08b['push'](_0x571433),--_0x13ef72<=0x0))return _0x20f08b;hasChildren(_0x571433)&&_0x571433['children']['length']>0x0&&(_0x5e0066['unshift'](0x0),_0x46d209['unshift'](_0x571433['children']));}}function findOne(_0x47c0b1,_0x8ef4d,_0x32b56f=!0x0){const _0x582e86=Array['isArray'](_0x8ef4d)?_0x8ef4d:[_0x8ef4d];for(let _0x29ba83=0x0;_0x29ba83<_0x582e86['length'];_0x29ba83++){const _0x1500c5=_0x582e86[_0x29ba83];if(isTag(_0x1500c5)&&_0x47c0b1(_0x1500c5))return _0x1500c5;if(_0x32b56f&&hasChildren(_0x1500c5)&&_0x1500c5['children']['length']>0x0){const _0x36c759=findOne(_0x47c0b1,_0x1500c5['children'],!0x0);if(_0x36c759)return _0x36c759;}}return null;}function findAll(_0x11524f,_0x5c1222){const _0x1a5d02=[],_0xb44fa1=[Array['isArray'](_0x5c1222)?_0x5c1222:[_0x5c1222]],_0x2fd663=[0x0];for(;;){if(_0x2fd663[0x0]>=_0xb44fa1[0x0]['length']){if(0x1===_0xb44fa1['length'])return _0x1a5d02;_0xb44fa1['shift'](),_0x2fd663['shift']();continue;}const _0x155a56=_0xb44fa1[0x0][_0x2fd663[0x0]++];isTag(_0x155a56)&&_0x11524f(_0x155a56)&&_0x1a5d02['push'](_0x155a56),hasChildren(_0x155a56)&&_0x155a56['children']['length']>0x0&&(_0x2fd663['unshift'](0x0),_0xb44fa1['unshift'](_0x155a56['children']));}}function parseDocument(_0x3eda22,_0x59b405){const _0x3722d9=new DomHandler(void 0x0,_0x59b405);return new Parser$1(_0x3722d9,_0x59b405)['end'](_0x3eda22),_0x3722d9['root'];}function parse$2(_0x3c6f38){return parseDocument(_0x3c6f38);}function serialize(_0x41c083){return render(_0x41c083);}function findByAttribute(_0x502d8d,_0x184d62,_0x43730f){const _0x120b52=null!==_0x184d62?_0x73835c=>_0x73835c['attribs'][_0x502d8d]===_0x184d62:_0x570a83=>Boolean(_0x570a83['attribs'][_0x502d8d]);return findOne(_0x33899b=>isTag(_0x33899b)&&_0x120b52(_0x33899b),_0x43730f);}function findAllByAttribute(_0x38e78c,_0xb10bb9,_0xccf1d2){const _0x1e1f6e=null!==_0xb10bb9?_0x55d18d=>_0x55d18d['attribs'][_0x38e78c]===_0xb10bb9:_0x2840a5=>Boolean(_0x2840a5['attribs'][_0x38e78c]);return findAll(_0x29e9b8=>isTag(_0x29e9b8)&&_0x1e1f6e(_0x29e9b8),_0xccf1d2);}function findAllComments(_0x131dce){return find$1(_0x2bc11e=>isComment(_0x2bc11e),_0x131dce,!0x0,0x1/0x0);}function getAttribute(_0x42ecdd,_0x52b0e0){return _0x42ecdd&&isTag(_0x42ecdd)?_0x42ecdd['attribs'][_0x52b0e0]:null;}function setAttribute(_0x3e0ba4,_0x3e66b1,_0x3f9ca3){isTag(_0x3e0ba4)&&(null===_0x3f9ca3?delete _0x3e0ba4['attribs'][_0x3e66b1]:_0x3e0ba4['attribs'][_0x3e66b1]=_0x3f9ca3);}function insertElement(_0x36680e,_0x13dfdd,_0x346a32){const _0x8a744b=_0x13dfdd['cloneNode'](!0x0);'beforebegin'===_0x346a32?prepend(_0x36680e,_0x8a744b):'afterbegin'===_0x346a32?prependChild(_0x36680e,_0x8a744b):'beforeend'===_0x346a32?appendChild(_0x36680e,_0x8a744b):'afterend'===_0x346a32&&append(_0x36680e,_0x8a744b);}function moveElement(_0xd8fc40,_0xe7a07){removeElement(_0xd8fc40),replaceElement(_0xe7a07,_0xd8fc40);}function clone$2(_0x10d49b){return _0x10d49b['cloneNode'](!0x0);}function getParents(_0x43f106){const _0x574e06=[];let _0x5257=_0x43f106;for(;_0x5257;)_0x5257=getParent(_0x5257),_0x5257&&_0x574e06['push'](_0x5257);return _0x574e06;}function normalizeHTML(_0x1dafbc){return _0x1dafbc['replace'](/^\s+/gm,'')['replace'](/\s+$/gm,'')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/>\s*</g,'><');}function areNodesSame(_0x2f6376,_0x50773f){return normalizeHTML(serialize(_0x2f6376))===normalizeHTML(serialize(_0x50773f));}function getNodeNestingLevel(_0x2da1f9){let _0x24b358=0x0;for(;_0x2da1f9['parentNode'];)_0x2da1f9=_0x2da1f9['parentNode'],_0x24b358++;return _0x24b358;}function removeElementsAfter(_0x2723ee){const _0x2bb6e3=[];let _0x51ba81=_0x2723ee['nextSibling'];for(;_0x51ba81;)_0x2bb6e3['push'](_0x51ba81),_0x51ba81=_0x51ba81['nextSibling'];_0x2bb6e3['forEach'](_0x287d0b=>{removeElement(_0x287d0b);});}class AIResponseParser extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_m2html'];constructor(){super(),this['_m2html']=new MarkdownGfmMdToHtml();}['convertMarkdownToHTML'](_0x105cc2){const _0x3022d1=this['_m2html']['parse'](_0x105cc2);return this['parseAndNormalizeHTML'](_0x3022d1);}['parseAndNormalizeHTML'](_0x4dfba9){return this['_parseHTML'](_0x4dfba9);}['_parseHTML'](_0x1c7704){const _0x1d411f=parse$2('<dummy>'+_0x1c7704['replace'](/^\t+/gm,'\x20')['replace'](/\n*/g,'')['replace'](/\s+/g,'\x20')['replace'](/<[^>]*?$/g,'')+'</dummy>');return _0x1d411f['children']=_0x1d411f['children'][0x0]['children'],_0x1d411f;}}class AIResponseApplier extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_generateUid'];['_touchedNodesState']={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};['_existingDataIds']=new Set();constructor(_0x56e72f){super(),this['_generateUid']=_0x56e72f||uid;}['merge'](_0x4b12a5,_0x355380,_0x122058){const _0x275230=clone$2(_0x4b12a5);if(0x0===_0x355380['childNodes']['length']){const _0x4f7ddf=[];return findAllByAttribute('data-id','new-element',_0x275230)['forEach'](_0x12221c=>{const _0x496522=this['_generateUid']();setAttribute(_0x12221c,'data-id',_0x496522),_0x4f7ddf['push'](_0x496522);}),this['_removeSpecialComments'](_0x275230),{'parsedContent':_0x275230,'newNodeIds':_0x4f7ddf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x122058&&_0x122058['markUnstableElements']&&this['_markLastTagElementUnstable'](_0x275230),this['_touchedNodesState']['newIds']=[],this['_touchedNodesState']['modifiedIds']=[],this['_touchedNodesState']['removedIds']=[],this['_touchedNodesState']['invalidIds']=[],this['_touchedNodesState']['lastTouchedId']=null,this['_existingDataIds']=new Set(findAllByAttribute('data-id',null,_0x355380)['map'](_0x236f10=>getAttribute(_0x236f10,'data-id'))['filter'](_0x3d65cf=>!!_0x3d65cf));let _0x2c4bdc=-0x1,_0x4c8387=!0x1;const _0x1a0f60=_0x275230['childNodes'],_0xebd6e5=Array['from'](_0x1a0f60)['filter'](_0x3bbc91=>!(0x3===_0x3bbc91['nodeType']&&''===serialize(_0x3bbc91)['trim']())),_0x57916e=_0xebd6e5['length'];for(let _0x56edd2=0x0;_0x56edd2<_0x57916e;_0x56edd2++){const _0x1a5325=_0xebd6e5[_0x56edd2],_0xbfed2c=_0xebd6e5[_0x56edd2+0x1];if(this['_isNewNode'](_0x1a5325)){if(-0x1===_0x2c4bdc&&(_0x2c4bdc=_0x56edd2),this['_markWrappedElements'](_0x1a5325),!this['_isNewNode'](_0xbfed2c)){const [_0x14c9b5,_0x5871fc]=this['_findReferenceNode'](_0x1a5325,_0x4c8387,_0x355380);if(_0x14c9b5){const _0x5469b0=Array['from'](_0xebd6e5)['slice'](_0x2c4bdc,_0x56edd2+0x1);this['_insertNodes'](_0x14c9b5,_0x5469b0,_0x5871fc),_0x2c4bdc=-0x1;}}}else{if(this['_isExistingContentComment'](_0x1a5325))_0x4c8387=!0x0;else{if(this['_isExistingNode'](_0x1a5325)){const _0x1d865f=getAttribute(_0x1a5325,'data-id');if(_0x1d865f&&this['_existingDataIds']['has'](_0x1d865f)){const _0x178354=findByAttribute('data-id',_0x1d865f,_0x355380);this['_replaceNode'](_0x178354,_0x1a5325);}if(this['_touchedNodesState']['removedIds']['includes'](_0x1d865f)){const _0x5c8094=this['_touchedNodesState']['removedIds']['indexOf'](_0x1d865f);this['_touchedNodesState']['removedIds']['splice'](_0x5c8094,0x1);}}else{if(this['_isDelNode'](_0x1a5325)){const _0x3397ac=getAttribute(_0x1a5325,'data-id');this['_touchedNodesState']['modifiedIds']['includes'](_0x3397ac)||this['_storeDeletedElementIds'](_0x1a5325);}}}}}for(const _0x29cb78 of this['_touchedNodesState']['removedIds']){const _0x5f2d9b=findByAttribute('data-id',_0x29cb78,_0x355380);if(_0x5f2d9b){if(_0x122058&&_0x122058['replaceRemovedWith']){this['_touchedNodesState']['lastTouchedId']=_0x29cb78;const _0x3bd5f8=_0x122058['replaceRemovedWith']['cloneNode'](!0x0);setAttribute(_0x3bd5f8,'data-id',_0x29cb78),setAttribute(_0x3bd5f8,'data-removed','true'),replaceElement(_0x5f2d9b,_0x3bd5f8);}else removeElement(_0x5f2d9b);}}if(findAllByAttribute('data-wrapped-id',null,_0x355380)['forEach'](_0x51d4b9=>{const _0x20e5ef=findByAttribute('data-id',getAttribute(_0x51d4b9,'data-wrapped-id'),_0x355380);_0x20e5ef&&moveElement(_0x20e5ef,_0x51d4b9);}),findAllByAttribute('data-id','new-element',_0x355380)['forEach'](_0x3277f6=>{const _0x151f47=this['_getUid'](_0x3277f6);setAttribute(_0x3277f6,'data-id',_0x151f47),this['_touchedNodesState']['newIds']['push'](_0x151f47);}),this['_removeSpecialComments'](_0x355380),_0x122058&&_0x122058['markUnstableElements']&&this['_markUnstableElements'](_0x355380,_0x122058['markUnstableElementsDepth']||0x0),_0x122058&&_0x122058['cutAfterLastChange']&&this['_touchedNodesState']['lastTouchedId']){let _0x406a44=findByAttribute('data-id',this['_touchedNodesState']['lastTouchedId'],_0x355380);for(;_0x406a44;)removeElementsAfter(_0x406a44),_0x406a44=_0x406a44['parentNode'];}return{'parsedContent':_0x355380,'newNodeIds':this['_touchedNodesState']['newIds'],'modifiedNodeIds':this['_touchedNodesState']['modifiedIds'],'removedNodeIds':this['_touchedNodesState']['removedIds']};}['_insertNodes'](_0x1bd58a,_0x136bd6,_0x4109fd){for(const _0x31c068 of _0x136bd6){const _0x1ff60f=this['_getUid'](_0x31c068);setAttribute(_0x31c068,'data-id',_0x1ff60f),this['_touchedNodesState']['newIds']['push'](_0x1ff60f),this['_touchedNodesState']['lastTouchedId']=_0x1ff60f;}const _0x10af21='afterbegin'===_0x4109fd||'afterend'===_0x4109fd?_0x136bd6['reverse']():_0x136bd6;for(const _0x127f45 of _0x10af21)insertElement(_0x1bd58a,_0x127f45,_0x4109fd);}['_replaceNode'](_0x4d5144,_0x3f2e05){if(!_0x4d5144)return;if(areNodesSame(_0x4d5144,_0x3f2e05))return;const _0x5dd93b=this['_getUid'](_0x4d5144);setAttribute(_0x3f2e05,'data-id',_0x5dd93b),this['_touchedNodesState']['modifiedIds']['push'](_0x5dd93b),this['_touchedNodesState']['lastTouchedId']=_0x5dd93b,replaceElement(_0x4d5144,_0x3f2e05['cloneNode'](!0x0));}['_findReferenceNode'](_0x1d73d5,_0x296a32,_0x114609){const _0x5d05d1=this['_findPrevElementWithDataId'](_0x1d73d5,!0x1);if(_0x5d05d1){const _0x1e7c7a=this['_getNodeDataId'](_0x5d05d1),_0x11834b=findByAttribute('data-id',_0x1e7c7a,_0x114609);if(_0x11834b)return[_0x11834b,'afterend'];this['_touchedNodesState']['invalidIds']['push'](_0x1e7c7a);}const _0x59eb74=this['_findNextElementWithDataId'](_0x1d73d5,!0x1);if(_0x59eb74){const _0x87d744=this['_getNodeDataId'](_0x59eb74),_0x39f98b=findByAttribute('data-id',_0x87d744,_0x114609);if(_0x39f98b)return[_0x39f98b,'beforebegin'];this['_touchedNodesState']['invalidIds']['push'](_0x87d744);}return _0x296a32?_0x1d73d5['nextSibling']?this['_findFallbackReferenceNode'](_0x1d73d5,_0x114609):[_0x114609['childNodes'][_0x114609['childNodes']['length']-0x1],'afterend']:[_0x114609['childNodes'][0x0],'beforebegin'];}['_findFallbackReferenceNode'](_0x217905,_0xc5b8c4){const _0x2878ad=[],_0x3f79c1=this['_findPrevElementWithDataId'](_0x217905,!0x0);if(_0x3f79c1){const _0x480821=findByAttribute('data-id',this['_getNodeDataId'](_0x3f79c1),_0xc5b8c4);_0x480821&&_0x2878ad['push']([_0x480821,'afterend']);}const _0x17eef2=this['_findNextElementWithDataId'](_0x217905,!0x0);if(_0x17eef2){const _0x8cb074=findByAttribute('data-id',this['_getNodeDataId'](_0x17eef2),_0xc5b8c4);_0x8cb074&&_0x2878ad['push']([_0x8cb074,'beforebegin']);}if(_0x2878ad['length']>0x1)return getNodeNestingLevel(_0x2878ad[0x0][0x0])<=getNodeNestingLevel(_0x2878ad[0x1][0x0])?_0x2878ad[0x0]:_0x2878ad[0x1];return 0x1===_0x2878ad['length']?_0x2878ad[0x0]:[_0xc5b8c4['lastChild'],'afterend'];}['_findNextElementWithDataId'](_0x10f9f9,_0x2db3c7){let _0xb9e1a7=_0x10f9f9['nextSibling'],_0x349747=null,_0x244e93=!0x1;for(;_0xb9e1a7;){if(isComment(_0xb9e1a7)){if(this['_isDelNode'](_0xb9e1a7)&&(_0x349747=_0xb9e1a7),this['_isExistingContentComment'](_0xb9e1a7)&&_0x2db3c7&&!_0x244e93){_0x244e93=!0x0,_0xb9e1a7=_0xb9e1a7['nextSibling'];continue;}break;}const _0x2d3300=getAttribute(_0xb9e1a7,'data-id');if(_0x2d3300&&'new-element'!==_0x2d3300&&this['_existingDataIds']['has'](_0x2d3300)){_0x349747=_0xb9e1a7;break;}_0xb9e1a7=_0xb9e1a7['nextSibling'];}return _0x349747;}['_findPrevElementWithDataId'](_0x4c2517,_0x3b1d20){let _0x1f2d96=_0x4c2517['previousSibling'],_0x1fc363=null,_0x4bd2e7=!0x1;for(;_0x1f2d96;){if(isComment(_0x1f2d96)){if(this['_isDelNode'](_0x1f2d96)&&(_0x1fc363=_0x1f2d96),this['_isExistingContentComment'](_0x1f2d96)&&_0x3b1d20&&!_0x4bd2e7){_0x4bd2e7=!0x0,_0x1f2d96=_0x1f2d96['previousSibling'];continue;}break;}const _0x448b89=getAttribute(_0x1f2d96,'data-id');if(_0x448b89&&'new-element'!==_0x448b89&&this['_existingDataIds']['has'](_0x448b89)){_0x1fc363=_0x1f2d96;break;}_0x1f2d96=_0x1f2d96['previousSibling'];}return _0x1fc363;}['_markWrappedElements'](_0x474579){isTag(_0x474579)&&findAllByAttribute('data-id',null,_0x474579)['forEach'](_0x2f8352=>{this['_isExistingNode'](_0x2f8352)&&!this['_hasWrappedParent'](_0x2f8352)&&(setAttribute(_0x2f8352,'data-wrapped-id',getAttribute(_0x2f8352,'data-id')),setAttribute(_0x2f8352,'data-id',null));});}['_getNodeDataId'](_0x26362d){if(!_0x26362d)return null;if(isTag(_0x26362d))return getAttribute(_0x26362d,'data-id');if(isComment(_0x26362d)){const _0x11d591=serialize(_0x26362d)['match'](/removed[\s*-]data-id="([^"]+)"/);if(_0x11d591&&_0x11d591[0x1])return _0x11d591[0x1];}return null;}['_storeDeletedElementIds'](_0x54a1dc){if(isComment(_0x54a1dc)){const _0x1c5e60=serialize(_0x54a1dc)['match'](/removed[\s*-]data-id="([^"]+)"/);_0x1c5e60&&_0x1c5e60[0x1]&&this['_touchedNodesState']['removedIds']['push'](_0x1c5e60[0x1]);}}['_getUid'](_0x3b25ae){return this['_isExistingNode'](_0x3b25ae)?getAttribute(_0x3b25ae,'data-id'):this['_generateUid']();}['_removeSpecialComments'](_0x151a68){findAllComments(_0x151a68)['filter'](_0x461995=>this['_isDelNode'](_0x461995)||this['_isExistingContentComment'](_0x461995))['forEach'](_0x14340a=>{removeElement(_0x14340a);});}['_markLastTagElementUnstable'](_0x48c8d1){const _0xd9d0de=_0x48c8d1['childNodes'],_0x2bff60=_0xd9d0de[_0xd9d0de['length']-0x1];_0x2bff60&&isTag(_0x2bff60)&&setAttribute(_0x2bff60,'data-unstable','true');}['_markUnstableElements'](_0x5a510a,_0x2d6fda){const _0x4a5b53=findByAttribute('data-unstable','true',_0x5a510a);if(!_0x4a5b53)return;const _0xc5fb6a=getParents(_0x4a5b53)['slice'](0x0,-0x1),_0x3e2397=_0xc5fb6a['length'];let _0x15183f=_0x4a5b53;if(_0x3e2397>_0x2d6fda){let _0x3ebfe7=_0x3e2397,_0x3cde08=null;for(;_0x3ebfe7>_0x2d6fda&&_0x3ebfe7>=0x0;)_0x3ebfe7--,_0x3cde08=_0xc5fb6a[_0x3ebfe7];_0x3cde08&&(_0x15183f=_0x3cde08,setAttribute(_0x4a5b53,'data-unstable',null),setAttribute(_0x3cde08,'data-unstable','true'));}else{if(_0x3e2397<_0x2d6fda){let _0x416157=_0x3e2397,_0x42d46b=_0x4a5b53;for(;_0x416157<_0x2d6fda;){const _0x54e64c=_0x42d46b['childNodes']['filter'](_0x3debca=>isTag(_0x3debca));if(0x0===_0x54e64c['length'])break;_0x416157++,_0x42d46b=_0x54e64c[_0x54e64c['length']-0x1];}_0x42d46b&&(_0x15183f=_0x42d46b,setAttribute(_0x4a5b53,'data-unstable',null),setAttribute(_0x42d46b,'data-unstable','true'));}}let _0x472a57=_0x15183f;for(;_0x472a57;){for(;_0x472a57['nextSibling'];)_0x472a57=_0x472a57['nextSibling'],isTag(_0x472a57)&&setAttribute(_0x472a57,'data-unstable','true');_0x472a57=_0x472a57['parentNode'];}}['_isNewNode'](_0x207f93){return Boolean('new-element'===getAttribute(_0x207f93,'data-id'));}['_isExistingNode'](_0x3d36db){return Boolean((getAttribute(_0x3d36db,'data-id')||'')['length']>0x0&&'new-element'!==getAttribute(_0x3d36db,'data-id'));}['_isDelNode'](_0x2d11b9){return!!_0x2d11b9&&Boolean(isComment(_0x2d11b9)&&serialize(_0x2d11b9)['match'](/removed[\s*-]data-id="[^"]+"/));}['_hasWrappedParent'](_0x595bbd){let _0x3602b1=_0x595bbd['parentNode'];for(;_0x3602b1;){if(getAttribute(_0x3602b1,'data-wrapped-id'))return!0x0;_0x3602b1=_0x3602b1['parentNode'];}return!0x1;}['_isExistingContentComment'](_0x436bdc){return Boolean(isComment(_0x436bdc)&&serialize(_0x436bdc)['match'](/\s*existing[\s*-](content|document)\s*/g));}}class Permissions extends ContextPlugin{static get['pluginName'](){return'Permissions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['setPermissions'](_0x59e95d,_0x42515c){let _0x244caa;if(_0x42515c||(_0x42515c=this['context']['config']['get']('collaboration.channelId')),this['context']['config']['get']('collaboration.channelId')==_0x42515c?_0x244caa=this['context']:'editors'in this['context']&&this['context']['editors']&&(_0x244caa=this['context']['editors']['find'](_0x349468=>_0x349468['config']['get']('collaboration.channelId')==_0x42515c)),!_0x244caa)throw new CKEditorError('permissions-set-permissions-invalid-channel-id',null);const _0x2f581d=_0x244caa['plugins'],_0x1d4a67=_0x2f581d['has']('CommentsRepository')?_0x2f581d['get']('CommentsRepository'):void 0x0,_0x586c26=_0x2f581d['has']('CommentsOnly')&&_0x2f581d['get']('CommentsOnly'),_0x2059ed=_0x59e95d['includes']('document:write'),_0x509f45=_0x59e95d['includes']('comment:modify_all'),_0x4550ef=_0x59e95d['includes']('comment:admin'),_0x54e1df=_0x59e95d['includes']('comment:write'),_0x30b3e6=_0x54e1df||_0x4550ef,_0x1946a7=_0x30b3e6||_0x509f45,_0x251f97=_0x2059ed||_0x30b3e6;(_0x586c26&&(_0x586c26['isEnabled']=!_0x2059ed&&_0x1946a7),_0x244caa instanceof Editor)&&(!(_0x2059ed||_0x1946a7&&_0x1d4a67)?_0x244caa['enableReadOnlyMode']('no-permissions'):_0x244caa['disableReadOnlyMode']('no-permissions'));if(_0x1d4a67){_0x1d4a67['setPermissions']({'admin':_0x4550ef,'modifyAll':_0x509f45,'write':_0x54e1df,'resolve':_0x251f97},_0x42515c);const _0x4cb0f2=_0x244caa instanceof Editor&&_0x244caa['commands']['get']('addCommentThread');_0x4cb0f2&&(_0x30b3e6?_0x4cb0f2['clearForceDisabled']('noPermissions'):_0x4cb0f2['forceDisabled']('noPermissions'));}}}function getTranslation$h(_0x30e45c,_0x1256a8){const t=_0x30e45c['t'];switch(_0x1256a8){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'';}}class Users extends ContextPlugin{['users'];['_lastColor'];['_myId'];['_locale'];static get['pluginName'](){return'Users';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Permissions];}constructor(_0x3f31f9){super(_0x3f31f9),this['context']['config']['define']('users.anonymousUserId','anonymous-user'),this['context']['config']['define']('users.colorsCount',0x8),this['users']=new Collection(),this['_locale']=_0x3f31f9['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:_0x198f4a,name:_0xa8587,..._0x3855ec}){if(!_0x198f4a||'string'!=typeof _0x198f4a)throw new CKEditorError('users-add-invalid-id');if(this['users']['has'](_0x198f4a))throw new CKEditorError('users-add-duplicated-id',null,{'id':_0x198f4a});const _0x8a6e51=this['context']['config']['get']('users.getInitialsCallback'),_0x53af4e={..._0x3855ec,'id':_0x198f4a,'name':normalizeName(this['_locale'],_0xa8587),'color':this['_getNextColor']()};_0x53af4e['name']=normalizeName(this['_locale'],_0x53af4e['name']);const _0x1530ef=new User$1(_0x53af4e,_0x8a6e51);return this['users']['add'](_0x1530ef),_0x1530ef;}['getUser'](_0xa5f3b0){return this['users']['get'](_0xa5f3b0);}['useAnonymousUser'](){const _0x23a4ec=this['context']['config']['get']('users.anonymousUserId');this['_myId']||this['defineMe'](_0x23a4ec);}['defineMe'](_0x4aeecd){if(this['_myId'])throw new CKEditorError('users-me-already-defined',null);const _0x32a1e4=this['getUser'](_0x4aeecd);if(!_0x32a1e4)throw new CKEditorError('users-me-missing-user',null);this['_myId']=_0x4aeecd,_0x32a1e4['_isMe']=!0x0;}['getOperationAuthor'](){return this['me'];}['_getNextColor'](){const _0x377951=this['context']['config']['get']('users.colorsCount');return this['_lastColor']>=_0x377951&&(this['_lastColor']=0x0),new CollaborationUserColor(this['_lastColor']++);}['_addAnonymousUser'](){const _0x3c324a=this['context']['config']['get']('users.anonymousUserId');this['addUser']({'id':_0x3c324a,'name':getTranslation$h(this['_locale'],'Anonymous')})['_isAnonymous']=!0x0;}}let User$1=class{['id'];['color'];['name'];['initials'];['avatar'];['_isMe'];['_isAnonymous'];constructor(_0x45bd5b,_0x27fd51){this['id']=_0x45bd5b['id'],this['color']=_0x45bd5b['color'],this['name']=_0x45bd5b['name'],this['initials']=_0x27fd51?_0x27fd51(this['name']):this['_computeInitials'](),this['avatar']=_0x45bd5b['avatar'],this['_isAnonymous']=!0x1,this['_isMe']=!0x1;}get['isAnonymous'](){return this['_isAnonymous'];}get['isMe'](){return this['_isMe'];}['_computeInitials'](){const _0x47d757=this['name']['split']('\x20')['filter'](_0x3b3bb9=>/^[\p{Letter}]/u['test'](_0x3b3bb9));return 0x1===_0x47d757['length']?this['_getInitial'](_0x47d757[0x0]):0x0===_0x47d757['length']?this['_getInitial'](this['name']):this['_getInitial'](_0x47d757[0x0])+this['_getInitial'](_0x47d757[_0x47d757['length']-0x1]);}['_getInitial'](_0x319895){return String['fromCodePoint'](_0x319895['codePointAt'](0x0))['toUpperCase']();}};function normalizeName(_0x13a3e6,_0x2e0b08=''){return''==(_0x2e0b08=_0x2e0b08['trim']())?getTranslation$h(_0x13a3e6,'Anonymous'):_0x2e0b08;}class CollaborationUserColor{['_id'];constructor(_0x3759f7){this['_id']=_0x3759f7;}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'];}}class UserView extends View{['name'];['notificationView'];constructor(_0x5deeee,_0x236307,_0x48cde4){super(_0x5deeee),this['name']=_0x236307['name'],this['notificationView']=null;const _0x5cf7e1=['ck','ck-user'],_0x5c88eb=['ck','ck-user__img'];if(_0x236307['isAnonymous']&&_0x5c88eb['push']('ck-user__anonymous'),!_0x236307['isAnonymous']&&_0x236307['isMe']&&_0x5cf7e1['push']('ck-user_me'),_0x236307['avatar']&&_0x5c88eb['push']('ck-user__avatar'),_0x48cde4){const _0x4f8341=new IconView();_0x4f8341['extendTemplate']({'attributes':{'class':['ck-user__icon']}}),_0x4f8341['content']=IconNotification,this['notificationView']={'tag':'div','attributes':{'class':['ck','ck-user__notification'],'data-cke-tooltip-position':'n','data-cke-tooltip-text':_0x48cde4},'children':[_0x4f8341]};}const _0x1803e0=[{'tag':'div','attributes':{'class':_0x5c88eb,'style':{'background-image':_0x236307['avatar']?'url(\x27'+_0x236307['avatar']+'\x27)':''}}},{'tag':'div','attributes':{'class':_0x236307['avatar']?'ck\x20ck-user__name\x20ck-user__name--hidden':'ck\x20ck-user__name','aria-label':_0x236307['name']},'children':[{'text':_0x236307['initials']}]}];this['notificationView']&&_0x1803e0['push'](this['notificationView']),this['setTemplate']({'tag':'div','attributes':{'class':_0x5cf7e1,'data-user-id':_0x236307['id']},'children':_0x1803e0});}}class AriaDescriptionView extends View{['id'];constructor(_0x533367,_0x457c07){super(_0x533367),this['id']='ck-aria-description-'+uid(),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-aria-description'],'id':this['id']},'children':[{'text':_0x457c07}]});}}class LateFocusButtonView extends ButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}class LateFocusDropdownButtonView extends DropdownButtonView{['render'](){super['render'](),delayFocusUntilMouseup(this);}}function delayFocusUntilMouseup(_0x4f74e0){_0x4f74e0['listenTo'](_0x4f74e0['element'],'mousedown',(_0xc5e214,_0x2da252)=>{_0x2da252['stopPropagation'](),_0x2da252['preventDefault']();}),_0x4f74e0['listenTo'](_0x4f74e0['element'],'mouseup',()=>{_0x4f74e0['element']['focus']();});}function splitSuggestionMarkerName(_0x126153){const _0x374642=_0x126153['split'](':');return{'group':_0x374642[0x0],'type':_0x374642[0x1],'subType':_0x374642['length']>=0x5?_0x374642[0x2]:null,'id':_0x374642['length']<0x5?_0x374642[0x2]:_0x374642[0x3],'authorId':_0x374642['length']<0x5?_0x374642[0x3]:_0x374642[0x4],'markerCount':0x6==_0x374642['length']?_0x374642[0x5]:null};}function fixElementSuggestionRange(_0x1ba8a2,_0x17fb35){const _0x43cab6=_0x1ba8a2['end']['nodeBefore'];if(_0x43cab6&&_0x43cab6['is']('element')&&_0x17fb35['schema']['isBlock'](_0x43cab6)&&!_0x17fb35['schema']['isObject'](_0x43cab6)){const _0x239fa0=_0x17fb35['createPositionAt'](_0x43cab6,'end');return _0x17fb35['createRange'](_0x1ba8a2['start'],_0x239fa0);}return _0x1ba8a2;}class SuggestionsConversionAlignment extends Plugin{['afterInit'](){const _0x4e3926=this['editor'];if(!_0x4e3926['plugins']['has']('AlignmentEditing'))return;_0x4e3926['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('alignment');}}const basicStylesPlugins$1=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class SuggestionsConversionBasicStyles extends Plugin{['afterInit'](){const _0x4e7fd2=this['editor'],_0x5a3efc=_0x4e7fd2['plugins']['get']('SuggestionsConversion');for(const _0x5d4d6e of basicStylesPlugins$1){if(!_0x4e7fd2['plugins']['has'](_0x5d4d6e))continue;const _0x383bbb=_0x5d4d6e['slice'](0x0,-0x7)['toLowerCase']();_0x5a3efc['registerInlineAttribute'](_0x383bbb);}}}class SuggestionsConversionBookmark extends Plugin{['afterInit'](){const _0x393bd6=this['editor'],_0x1d210a=_0x393bd6['plugins']['get']('SuggestionsConversion');_0x393bd6['plugins']['has']('BookmarkEditing')&&_0x1d210a['registerBlockAttribute']('bookmarkId');}}const fontPlugins$1=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class SuggestionsConversionFont extends Plugin{['afterInit'](){const _0x2015e0=this['editor']['plugins']['get']('SuggestionsConversion');for(const {pluginName:_0x477da0,commandName:_0x3b4748}of fontPlugins$1)this['editor']['plugins']['has'](_0x477da0)&&_0x2015e0['registerInlineAttribute'](_0x3b4748);}}class SuggestionsConversionFootnotes extends Plugin{['afterInit'](){const {editor:_0x346baf}=this;if(!_0x346baf['plugins']['has']('FootnotesPropertiesEditing'))return;const _0x3f6fda=_0x346baf['plugins']['get']('SuggestionsConversion');_0x3f6fda['registerBlockAttribute']('footnotesListStyle'),_0x3f6fda['registerBlockAttribute']('footnotesListStart');}}class SuggestionsConversionHighlight extends Plugin{['afterInit'](){const _0x37088d=this['editor'];if(!_0x37088d['plugins']['has']('HighlightEditing'))return;_0x37088d['plugins']['get']('SuggestionsConversion')['registerInlineAttribute']('highlight');}}class SuggestionsConversionHtmlEmbed extends Plugin{['afterInit'](){const _0x454d04=this['editor'];if(!_0x454d04['plugins']['has']('HtmlEmbed'))return;_0x454d04['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('value');}}class SuggestionsConversionImage extends Plugin{['afterInit'](){const _0x5d03ff=this['editor'];if(!_0x5d03ff['plugins']['has']('ImageEditing'))return;const _0x1ec395=_0x5d03ff['plugins']['get']('SuggestionsConversion');_0x1ec395['registerBlockAttribute']('src'),_0x5d03ff['plugins']['has']('ImageResize')&&_0x1ec395['registerBlockAttribute']('resizedWidth'),_0x5d03ff['plugins']['has']('ImageTextAlternativeEditing')&&_0x1ec395['registerBlockAttribute']('alt'),_0x5d03ff['plugins']['has']('PictureEditing')&&_0x1ec395['registerBlockAttribute']('sources'),_0x5d03ff['plugins']['has']('ImageSizeAttributes')&&(_0x1ec395['registerBlockAttribute']('width'),_0x1ec395['registerBlockAttribute']('height'));}}class SuggestionsConversionIndent extends Plugin{['afterInit'](){const _0x1728ba=this['editor'],_0x1230a1=_0x1728ba['plugins']['get']('SuggestionsConversion');_0x1728ba['plugins']['has']('IndentBlock')&&(_0x1230a1['registerBlockAttribute']('blockIndent'),_0x1728ba['plugins']['has']('ListEditing')&&(_0x1230a1['registerBlockAttribute']('blockIndentList'),_0x1230a1['registerBlockAttribute']('blockIndentListItem')));}}class SuggestionsConversionLineHeight extends Plugin{['afterInit'](){const _0x2bbab1=this['editor'];if(!_0x2bbab1['plugins']['has']('LineHeight'))return;_0x2bbab1['plugins']['get']('SuggestionsConversion')['registerBlockAttribute']('lineHeight');}}class SuggestionsConversionLink extends Plugin{['afterInit'](){const _0x18f821=this['editor'];if(!_0x18f821['plugins']['has']('LinkEditing'))return;const _0x14949a=_0x18f821['plugins']['get']('SuggestionsConversion'),_0x3e7f03=_0x18f821['commands']['get']('link');_0x14949a['registerInlineAttribute']('linkHref');for(const _0x150d34 of _0x3e7f03['manualDecorators'])_0x14949a['registerInlineAttribute'](_0x150d34['id']);}}class SuggestionsConversionList extends Plugin{['afterInit'](){const _0x9a1732=this['editor'];if(!_0x9a1732['plugins']['has']('ListEditing'))return;const _0x200d31=_0x9a1732['plugins']['get']('SuggestionsConversion'),_0x16ffb2=_0x9a1732['plugins']['has']('TodoListEditing');_0x200d31['registerBlockAttribute']('listItemId'),_0x200d31['registerBlockAttribute']('listType'),_0x200d31['registerBlockAttribute']('listIndent'),_0x16ffb2&&_0x200d31['registerBlockAttribute']('todoListChecked');}}class SuggestionsConversionListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24a734=this['editor']['config']['get']('list.properties'),_0x49c535=this['editor']['plugins']['get']('SuggestionsConversion');_0x24a734['styles']&&_0x49c535['registerBlockAttribute']('listStyle'),_0x24a734['reversed']&&_0x49c535['registerBlockAttribute']('listReversed'),_0x24a734['startIndex']&&_0x49c535['registerBlockAttribute']('listStart');}}class SuggestionsConversionMultiLevelList extends Plugin{['afterInit'](){const _0x165429=this['editor'],_0x48c070=_0x165429['plugins']['get']('SuggestionsConversion');_0x165429['plugins']['has']('MultiLevelList')&&_0x48c070['registerBlockAttribute']('listMarkerStyle');}}class SuggestionsConversionStylesDropdown extends Plugin{['afterInit'](){const _0x434ec8=this['editor'];if(!_0x434ec8['plugins']['has']('Style')||!_0x434ec8['plugins']['has']('DataSchema')||!_0x434ec8['config']['get']('style.definitions'))return;const _0xeb42be=_0x434ec8['plugins']['get']('SuggestionsConversion'),_0x1906f3=_0x434ec8['config']['get']('style.definitions'),_0x116be5=_0x434ec8['plugins']['get']('GeneralHtmlSupport'),_0x2e5272=_0x434ec8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x434ec8['plugins']['get']('DataSchema'),_0x1906f3),_0xcb5fe2=new Set();for(const _0x185fab of _0x2e5272['block']){const _0x24678e=_0x116be5['getGhsAttributeNameForElement'](_0x185fab['element']);_0xcb5fe2['add'](_0x24678e);}const _0x4f9916=new Set();for(const _0x468f70 of _0x2e5272['inline']){const _0x194acd=_0x116be5['getGhsAttributeNameForElement'](_0x468f70['element']);_0x4f9916['add'](_0x194acd);for(const _0x164f4a of _0x468f70['ghsAttributes'])_0x4f9916['add'](_0x164f4a);}for(const _0x39e495 of _0xcb5fe2)_0xeb42be['registerBlockAttribute'](_0x39e495);for(const _0x98a2db of _0x4f9916)_0xeb42be['registerInlineAttribute'](_0x98a2db);}}class SuggestionsConversionTableHeadings extends Plugin{['afterInit'](){const _0x3cb8f5=this['editor'];if(!_0x3cb8f5['plugins']['has']('TableEditing'))return;const _0x1a40e1=_0x3cb8f5['plugins']['get']('SuggestionsConversion');_0x1a40e1['registerBlockAttribute']('headingRows'),_0x1a40e1['registerBlockAttribute']('headingColumns');}}class SuggestionsConversionTableProperties extends Plugin{['afterInit'](){const {plugins:_0x36baea}=this['editor'];if(!_0x36baea['has']('TablePropertiesEditing'))return;const _0x5da811=_0x36baea['get']('SuggestionsConversion'),_0x47f0c5=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'];for(const _0x8247e of _0x47f0c5)_0x5da811['registerBlockAttribute'](_0x8247e);}}class SuggestionsConversionTableLayout extends Plugin{['afterInit'](){const _0x2368f8=this['editor'],_0x116b6c=_0x2368f8['plugins']['get']('SuggestionsConversion');_0x2368f8['plugins']['has']('TableLayout')&&_0x116b6c['registerBlockAttribute']('tableType');}}class SuggestionsConversionUploadcare extends Plugin{['afterInit'](){const _0x800baa=this['editor'],_0x3156a5=this['editor']['plugins']['get']('SuggestionsConversion');_0x800baa['plugins']['has']('Uploadcare')&&_0x800baa['plugins']['has']('UploadcareImageEdit')&&_0x3156a5['registerBlockAttribute']('uploadcareImageId');}}class SuggestionsConversionShiftEnter extends Plugin{['afterInit'](){const _0x51baa7=this['editor'];if(!_0x51baa7['plugins']['has']('ShiftEnter'))return;const _0x2850e9=_0x51baa7['plugins']['get']('SuggestionsConversion'),_0x351d4e=(_0x26a356,_0x285ab1,_0x2bff2f,_0x1b7620)=>{if(_0x1b7620&&!_0x2bff2f['options']['showSuggestionHighlights'])return;if(!_0x2bff2f['consumable']['test'](_0x285ab1['markerRange'],_0x26a356['name']))return;const _0x143c07=_0x51baa7['model'];for(const _0x2df8a9 of _0x285ab1['markerRange']['getItems']()){if(!_0x2df8a9['is']('element','softBreak'))continue;const _0x3cfef9='deletion'==_0x285ab1['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x282251,authorId:_0x3fe602}=splitSuggestionMarkerName(_0x285ab1['markerName']),_0xa35f67=_0x2bff2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cfef9,'data-suggestion':_0x282251,'data-author-id':_0x3fe602}),_0x13cb76=_0x2bff2f['mapper']['toViewPosition'](_0x143c07['createPositionBefore'](_0x2df8a9));!_0x1b7620&&_0x2850e9['_activeMarkers']['includes'](_0x285ab1['markerName'])&&_0x2bff2f['writer']['addClass']('ck-suggestion-marker--active',_0xa35f67),_0x2bff2f['writer']['insert'](_0x13cb76,_0xa35f67),_0x2bff2f['mapper']['bindElementToMarker'](_0xa35f67,_0x285ab1['markerName']);}};_0x51baa7['editing']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29ea03,_0x500c8e,_0x340a9e)=>{_0x351d4e(_0x29ea03,_0x500c8e,_0x340a9e,!0x1);},{'priority':'high'}),_0x51baa7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4530aa,_0x48626e,_0x24c6e0)=>{_0x351d4e(_0x4530aa,_0x48626e,_0x24c6e0,!0x0);},{'priority':'high'});}}class SuggestionsConversionMediaEmbed extends Plugin{['afterInit'](){const _0x1ff99c=this['editor'];_0x1ff99c['plugins']['has']('MediaEmbedEditing')&&(_0x1ff99c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2fff99,{writer:_0x1ebc8b,options:_0x8e2558})=>{if(_0x8e2558['showSuggestionHighlights'])return _0x1ebc8b['createEmptyElement']('div');},'converterPriority':'high'}),_0x1ff99c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x13b57c,_0x5db2e3,_0x5be1a8)=>{_0x5be1a8['options']['showSuggestionHighlights']&&_0x13b57c['stop']();},{'priority':'high'}));}}class SuggestionsConversionTable extends Plugin{['afterInit'](){const _0x166b33=this['editor'];if(!_0x166b33['plugins']['has']('Table'))return;_0x166b33['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d979d,_0x3f38c5,_0x1bb80b)=>{((_0x42d102,_0x17a4c0,_0x50362c)=>{if(!_0x50362c['options']['showSuggestionHighlights'])return;const _0x42a4ea=_0x17a4c0['item'];if(!_0x42a4ea||!_0x42a4ea['is']('element','tableCell'))return;const _0x5346c4=_0x50362c['mapper']['toViewElement'](_0x42a4ea);if(_0x5346c4){const {id:_0x9c1c3d,authorId:_0x1e67f7}=splitSuggestionMarkerName(_0x17a4c0['markerName']);setHighlightHandling(_0x5346c4,_0x50362c['writer'],(_0x2e3dda,_0x4e79e8,_0x3f9d32)=>{_0x3f9d32['addClass'](toArray$1(_0x4e79e8['classes']),_0x2e3dda),_0x3f9d32['setAttribute']('data-suggestion-id',_0x9c1c3d,_0x2e3dda),_0x3f9d32['setAttribute']('data-author-id',_0x1e67f7,_0x2e3dda);});}})(0x0,_0x3f38c5,_0x1bb80b);},{'priority':'highest'});}}class SuggestionsConversionHorizontalLine extends Plugin{['afterInit'](){const _0x32e501=this['editor'];_0x32e501['plugins']['has']('HorizontalLineEditing')&&_0x32e501['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4a1c67,{writer:_0x53972c,options:_0xd7245f})=>{if(!_0xd7245f['showSuggestionHighlights'])return null;const _0x32b4fc=_0x53972c['createContainerElement']('div'),_0x43497e=_0x53972c['createEmptyElement']('hr');return _0x53972c['addClass']('ck-horizontal-line',_0x32b4fc),_0x53972c['insert'](_0x53972c['createPositionAt'](_0x32b4fc,0x0),_0x43497e),_0x32b4fc;},'converterPriority':'high'});}}class SuggestionsConversionTableCellProperties extends Plugin{['afterInit'](){const {plugins:_0x500562,model:_0x5bca2f}=this['editor'];if(!_0x500562['has']('TableCellPropertiesEditing'))return;const _0x324970=_0x500562['get']('SuggestionsConversion'),_0x1d3e04=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];for(const _0x56fb27 of _0x1d3e04)_0x324970['registerBlockAttribute'](_0x56fb27);_0x5bca2f['schema']['checkAttribute']('tableCell','tableCellType')&&_0x324970['registerBlockAttribute']('tableCellType');}}class SuggestionsConversion extends Plugin{['_activeMarkers']=[];['_blockAttributeKeys']=new Set(['$elementName']);['_inlineAttributeKeys']=new Set();static get['pluginName'](){return'SuggestionsConversion';}static get['requires'](){return[SuggestionsConversionAlignment,SuggestionsConversionBasicStyles,SuggestionsConversionBookmark,SuggestionsConversionFont,SuggestionsConversionFootnotes,SuggestionsConversionHighlight,SuggestionsConversionHorizontalLine,SuggestionsConversionHtmlEmbed,SuggestionsConversionImage,SuggestionsConversionIndent,SuggestionsConversionLineHeight,SuggestionsConversionLink,SuggestionsConversionList,SuggestionsConversionListProperties,SuggestionsConversionMediaEmbed,SuggestionsConversionMultiLevelList,SuggestionsConversionShiftEnter,SuggestionsConversionStylesDropdown,SuggestionsConversionTable,SuggestionsConversionTableHeadings,SuggestionsConversionTableLayout,SuggestionsConversionTableCellProperties,SuggestionsConversionTableProperties,SuggestionsConversionUploadcare];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x75093b=this['editor'],_0x35c59e=(_0xe77e4b,_0x5f1c2b,_0x13b578)=>{const {id:_0x8d6067,authorId:_0x10d6a9,type:_0x2ffdfe,subType:_0x1d8dcf}=splitSuggestionMarkerName(_0xe77e4b['markerName']),_0x1b421d=['ck-suggestion-marker',this['_getClassName'](_0x2ffdfe,_0x1d8dcf)];let _0x18e7e5=0xbb8;return!_0x13b578&&(this['_activeMarkers']['includes'](_0xe77e4b['markerName'])&&(_0x1b421d['push']('ck-suggestion-marker--active'),_0x18e7e5=0xbc2)),('deletion'==_0x2ffdfe&&(_0x18e7e5+=0x5),{'classes':_0x1b421d,'attributes':{'data-suggestion':_0x8d6067,'data-author-id':_0x10d6a9},'priority':_0x18e7e5});};_0x75093b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xeca27d,_0x214beb)=>_0x35c59e(_0xeca27d,0x0,!0x1)}),_0x75093b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3524bd,_0x1fd902)=>_0x35c59e(_0x3524bd,0x0,!0x0)}),_0x75093b['conversion']['for']('dataDowncast')['add'](_0x42399d=>{_0x42399d['on']('addMarker:suggestion',(_0x3b0f75,_0x1ba11d,_0x7992c4)=>{if(!_0x7992c4['options']['showSuggestionHighlights'])return;const _0x46c484=_0x1ba11d['item'];if(!_0x46c484)return;const _0x2a2cf4=_0x7992c4['mapper']['toViewElement'](_0x46c484);_0x75093b['model']['schema']['isObject'](_0x46c484)&&_0x2a2cf4&&!_0x2a2cf4['getCustomProperty']('widget')&&_0x2a2cf4['is']('containerElement')&&toWidget(_0x2a2cf4,_0x7992c4['writer']);},{'priority':'high'});});const _0xf9f4f1=(_0x3487be,_0x7792d9,_0x726f43,_0x1f947b,_0x1805f7)=>{if(_0x1f947b&&!_0x726f43['options']['showSuggestionHighlights'])return;if(!_0x7792d9['item'])return;const {id:_0x2b2559,authorId:_0x358fc2,subType:_0x541461}=splitSuggestionMarkerName(_0x7792d9['markerName']);if(_0x1805f7){const _0x5eddf9=_0x541461['split']('|')[0x0];if(!this['isBlockAttribute'](_0x5eddf9))return;}if(_0x7792d9['item']['is']('selection'))return void _0x726f43['consumable']['consume'](_0x7792d9['item'],_0x3487be['name']);const _0x3ce8de=_0x726f43['mapper']['toViewElement'](_0x7792d9['item']);if(_0x7792d9['item']['is']('element')&&_0x75093b['model']['schema']['isBlock'](_0x7792d9['item'])&&!_0x3ce8de['getCustomProperty']('addHighlight')){_0x726f43['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ce8de),_0x726f43['writer']['setAttribute']('data-suggestion',_0x2b2559,_0x3ce8de),_0x726f43['writer']['setAttribute']('data-author-id',_0x358fc2,_0x3ce8de),_0x726f43['mapper']['bindElementToMarker'](_0x3ce8de,_0x7792d9['markerName']),_0x1f947b||(this['_activeMarkers']['includes'](_0x7792d9['markerName'])?_0x726f43['writer']['addClass']('ck-suggestion-marker--active',_0x3ce8de):_0x726f43['writer']['removeClass']('ck-suggestion-marker--active',_0x3ce8de));for(const _0x477378 of _0x75093b['model']['createRangeIn'](_0x7792d9['item'])['getItems']())_0x726f43['consumable']['consume'](_0x477378,_0x3487be['name']);_0x726f43['consumable']['consume'](_0x7792d9['item'],_0x3487be['name']);}},_0x2b5422=(_0x4f2cf0,_0x32b663,_0x31fc8c,_0x48c7a3)=>{const _0x58421f=_0x31fc8c['mapper']['markerNameToElements'](_0x32b663['markerName']);if(_0x58421f){if(_0x48c7a3){const {subType:_0x1168e5}=splitSuggestionMarkerName(_0x32b663['markerName']),_0x24a36d=_0x1168e5['split']('|')[0x0];if(!this['isBlockAttribute'](_0x24a36d))return;}for(const _0x48a9a3 of _0x58421f)_0x48a9a3['getCustomProperty']('addHighlight')||(_0x31fc8c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48a9a3),_0x31fc8c['writer']['removeAttribute']('data-suggestion',_0x48a9a3),_0x31fc8c['writer']['removeAttribute']('data-author-id',_0x48a9a3),_0x31fc8c['mapper']['unbindElementFromMarkerName'](_0x48a9a3,_0x32b663['markerName']));}};_0x75093b['conversion']['for']('editingDowncast')['add'](_0x47c665=>{_0x47c665['on']('addMarker:suggestion:formatBlock',(_0x59bd37,_0x4c436e,_0x23f704)=>{_0xf9f4f1(_0x59bd37,_0x4c436e,_0x23f704,!0x1,!0x1);},{'priority':'high'});}),_0x75093b['conversion']['for']('editingDowncast')['add'](_0x358f3c=>{_0x358f3c['on']('addMarker:suggestion:attribute',(_0x3a6cda,_0x9c2943,_0x266a29)=>{_0xf9f4f1(_0x3a6cda,_0x9c2943,_0x266a29,!0x1,!0x0);},{'priority':'high'});}),_0x75093b['conversion']['for']('editingDowncast')['add'](_0x36b325=>{_0x36b325['on']('removeMarker:suggestion:formatBlock',(_0x339bd9,_0x25c6d7,_0x49800)=>{_0x2b5422(0x0,_0x25c6d7,_0x49800,!0x1);},{'priority':'high'});}),_0x75093b['conversion']['for']('editingDowncast')['add'](_0x271bcd=>{_0x271bcd['on']('removeMarker:suggestion:attribute',(_0x49abb7,_0x10c6d6,_0x49b5db)=>{_0x2b5422(0x0,_0x10c6d6,_0x49b5db,!0x0);},{'priority':'high'});}),_0x75093b['conversion']['for']('dataDowncast')['add'](_0x12bec1=>{_0x12bec1['on']('addMarker:suggestion:formatBlock',(_0x446572,_0xc69423,_0x46172d)=>{_0xf9f4f1(_0x446572,_0xc69423,_0x46172d,!0x0,!0x1);},{'priority':'highest'});}),_0x75093b['conversion']['for']('dataDowncast')['add'](_0x41e483=>{_0x41e483['on']('addMarker:suggestion:attribute',(_0x3f70f8,_0x1a1e4c,_0x13905b)=>{_0xf9f4f1(_0x3f70f8,_0x1a1e4c,_0x13905b,!0x0,!0x0);},{'priority':'highest'});}),_0x75093b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x613ff1,_0x5490ac)=>{if(_0x5490ac['options']['showSuggestionHighlights']){const {id:_0x2d0d18,authorId:_0x2a09b5}=splitSuggestionMarkerName(_0x613ff1);return _0x613ff1['includes'](':split')||_0x613ff1['includes'](':merge')?{'group':'suggestion','name':_0x613ff1['substr'](0xb),'attributes':{'data-suggestion':_0x2d0d18,'data-author-id':_0x2a09b5}}:null;}return{'group':'suggestion','name':_0x613ff1['substr'](0xb)};}});const _0x1530ac=(_0x254be1,_0x3579a8,_0x114dbd,_0x575e69,_0x5bd6d8)=>{if(_0x575e69&&!_0x114dbd['options']['showSuggestionHighlights'])return;if(!_0x114dbd['consumable']['test'](_0x3579a8['markerRange'],_0x254be1['name']))return;const _0x5ee1cd=this['_activeMarkers'],_0x4ad9dd=_0x3579a8['markerRange']['getWalker'](),_0x346418=_0x3579a8['markerRange']['start'],_0x2ed16f=_0x75093b['model']['schema'];let _0x492870=null,_0x36c8d3=null,_0x1ce7b1=!0x1,_0x3bcdc8=!0x1;for(const _0x5b6d71 of _0x4ad9dd){const _0x18b457=_0x5b6d71['item'];_0x1ce7b1=_0x1ce7b1||_0x2ed16f['isContent'](_0x18b457);const _0x49c71e=_0x114dbd['mapper']['toViewElement'](_0x18b457);if(_0x49c71e&&_0x49c71e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b6d71['type']&&(_0x2ed16f['isBlock'](_0x18b457)&&!_0x2ed16f['isLimit'](_0x18b457)&&(_0x18b457['nextSibling']||_0x346418['isAtEnd']?_0x492870&&_0x492870['parent']==_0x18b457||(_0x492870=_0x18b457,_0x3363b9(_0x5b6d71['previousPosition']),_0x3bcdc8=!0x0):_0x36c8d3=_0x36c8d3||_0x5b6d71['previousPosition']));}function _0x3363b9(_0x54cd7c){const {id:_0x2265ad,authorId:_0x1be436}=splitSuggestionMarkerName(_0x3579a8['markerName']),_0x25ca8f=_0x114dbd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bd6d8,'data-suggestion':_0x2265ad,'data-author-id':_0x1be436}),_0x1550f2=_0x114dbd['mapper']['toViewPosition'](_0x54cd7c);!_0x575e69&&_0x5ee1cd['includes'](_0x3579a8['markerName'])&&_0x114dbd['writer']['addClass']('ck-suggestion-marker--active',_0x25ca8f),_0x114dbd['writer']['insert'](_0x1550f2,_0x25ca8f),_0x114dbd['mapper']['bindElementToMarker'](_0x25ca8f,_0x3579a8['markerName']);}_0x1ce7b1||_0x3bcdc8||!_0x36c8d3||_0x3363b9(_0x36c8d3);};_0x75093b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55175a,_0xf2661c,_0x53994f)=>{_0x1530ac(_0x55175a,_0xf2661c,_0x53994f,!0x1,'merge');},{'priority':'high'}),_0x75093b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xdcf1e9,_0x3bd36d,_0x209126)=>{_0x1530ac(_0xdcf1e9,_0x3bd36d,_0x209126,!0x0,'merge');},{'priority':'high'}),_0x75093b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xe2cf8e,_0xdc9a01,_0x429c2e)=>{_0x1530ac(_0xe2cf8e,_0xdc9a01,_0x429c2e,!0x1,'split');},{'priority':'high'}),_0x75093b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1dd33d,_0x341481,_0x335727)=>{_0x1530ac(_0x1dd33d,_0x341481,_0x335727,!0x0,'split');},{'priority':'high'}),_0x75093b['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x232ebb,_0x16f34d,_0x12e307)=>{((_0x3df42e,_0x4f23d8,_0x4d8887)=>{const _0x61c2e6=_0x4d8887['mapper']['markerNameToElements'](_0x4f23d8['markerName']);if(_0x61c2e6){for(const _0x5e30e0 of _0x61c2e6)(_0x5e30e0['hasClass']('ck-suggestion-marker-split')||_0x5e30e0['hasClass']('ck-suggestion-marker-merge'))&&(_0x4d8887['mapper']['unbindElementFromMarkerName'](_0x5e30e0,_0x4f23d8['markerName']),_0x4d8887['writer']['remove'](_0x5e30e0));}})(0x0,_0x16f34d,_0x12e307);},{'priority':'high'});const _0x33fd06=(_0x5505fa,_0x277e94,_0x206b2a,_0x101407)=>{if(_0x101407&&!_0x206b2a['options']['showSuggestionHighlights'])return;const _0x105934=_0x277e94['markerRange']['start'],_0x65f168=_0x277e94['markerRange']['end'],_0x4610b0=_0x75093b['model']['schema'];if(!_0x105934['isTouching'](_0x65f168)||!_0x105934['nodeAfter'])return;const _0x7b792e=_0x105934['nodeAfter'];if(_0x4610b0['isBlock'](_0x7b792e)&&!_0x4610b0['isLimit'](_0x7b792e)&&_0x4610b0['checkChild'](_0x7b792e,'$text')){if(!_0x206b2a['consumable']['consume'](_0x277e94['markerRange'],_0x5505fa['name']))return;const {id:_0xbfd996,authorId:_0x221d98}=splitSuggestionMarkerName(_0x277e94['markerName']),_0x48a3e0=_0x206b2a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xbfd996,'data-author-id':_0x221d98}),_0x582bf3=_0x206b2a['mapper']['toViewPosition'](_0x65f168);!_0x101407&&this['_activeMarkers']['includes'](_0x277e94['markerName'])&&_0x206b2a['writer']['addClass']('ck-suggestion-marker--active',_0x48a3e0),_0x206b2a['writer']['insert'](_0x582bf3,_0x48a3e0),_0x206b2a['mapper']['bindElementToMarker'](_0x48a3e0,_0x277e94['markerName']);}};_0x75093b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb3a5bc,_0x1de959,_0x451ac8)=>{_0x33fd06(_0xb3a5bc,_0x1de959,_0x451ac8,!0x1);},{'priority':'high'}),_0x75093b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2aba42,_0x2a2f07,_0x155ea5)=>{_0x33fd06(_0x2aba42,_0x2a2f07,_0x155ea5,!0x0);},{'priority':'high'});}['afterInit'](){this['editor']['plugins']['has']('TrackChangesEditing')&&this['listenTo'](this['editor']['plugins']['get']('TrackChangesEditing'),'change:activeMarkers',(_0x299c61,_0x1fa4c1,_0x3acb0f)=>{this['_activeMarkers']=_0x3acb0f['slice']();},{'priority':'highest'});}['registerBlockAttribute'](_0x26f784){this['_blockAttributeKeys']['add'](_0x26f784);}['registerInlineAttribute'](_0x1cf387){this['_inlineAttributeKeys']['add'](_0x1cf387);}['isBlockAttribute'](_0x4f1e37){return this['_blockAttributeKeys']['has'](_0x4f1e37);}['isInlineAttribute'](_0x15ff53){return this['_inlineAttributeKeys']['has'](_0x15ff53);}['isRegisteredAttribute'](_0x2f5335){return this['isInlineAttribute'](_0x2f5335)||this['isBlockAttribute'](_0x2f5335);}['_getClassName'](_0x5b6672,_0x5dbe29){if('attribute'!=_0x5b6672)return'ck-suggestion-marker-'+_0x5b6672;const _0xb501af=_0x5dbe29['split']('|')[0x0];return this['isBlockAttribute'](_0xb501af)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';}}class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(_0x4d99b4){super('Invalid\x20DateTime:\x20'+_0x4d99b4['toMessage']());}}class InvalidIntervalError extends LuxonError{constructor(_0x21c7c5){super('Invalid\x20Interval:\x20'+_0x21c7c5['toMessage']());}}class InvalidDurationError extends LuxonError{constructor(_0x2e091a){super('Invalid\x20Duration:\x20'+_0x2e091a['toMessage']());}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(_0x4de908){super('Invalid\x20unit\x20'+_0x4de908);}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super('Zone\x20is\x20an\x20abstract\x20class');}}const n='numeric',s$1='short',l$1='long',DATE_SHORT={'year':n,'month':n,'day':n},DATE_MED={'year':n,'month':s$1,'day':n},DATE_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1},DATE_FULL={'year':n,'month':l$1,'day':n},DATE_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1},TIME_SIMPLE={'hour':n,'minute':n},TIME_WITH_SECONDS={'hour':n,'minute':n,'second':n},TIME_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':s$1},TIME_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'timeZoneName':l$1},TIME_24_SIMPLE={'hour':n,'minute':n,'hourCycle':'h23'},TIME_24_WITH_SECONDS={'hour':n,'minute':n,'second':n,'hourCycle':'h23'},TIME_24_WITH_SHORT_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':s$1},TIME_24_WITH_LONG_OFFSET={'hour':n,'minute':n,'second':n,'hourCycle':'h23','timeZoneName':l$1},DATETIME_SHORT={'year':n,'month':n,'day':n,'hour':n,'minute':n},DATETIME_SHORT_WITH_SECONDS={'year':n,'month':n,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED={'year':n,'month':s$1,'day':n,'hour':n,'minute':n},DATETIME_MED_WITH_SECONDS={'year':n,'month':s$1,'day':n,'hour':n,'minute':n,'second':n},DATETIME_MED_WITH_WEEKDAY={'year':n,'month':s$1,'day':n,'weekday':s$1,'hour':n,'minute':n},DATETIME_FULL={'year':n,'month':l$1,'day':n,'hour':n,'minute':n,'timeZoneName':s$1},DATETIME_FULL_WITH_SECONDS={'year':n,'month':l$1,'day':n,'hour':n,'minute':n,'second':n,'timeZoneName':s$1},DATETIME_HUGE={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'timeZoneName':l$1},DATETIME_HUGE_WITH_SECONDS={'year':n,'month':l$1,'day':n,'weekday':l$1,'hour':n,'minute':n,'second':n,'timeZoneName':l$1};class Zone{get['type'](){throw new ZoneIsAbstractError();}get['name'](){throw new ZoneIsAbstractError();}get['ianaName'](){return this['name'];}get['isUniversal'](){throw new ZoneIsAbstractError();}['offsetName'](_0x38c97b,_0x14736a){throw new ZoneIsAbstractError();}['formatOffset'](_0x3cb820,_0x364ec8){throw new ZoneIsAbstractError();}['offset'](_0x25a167){throw new ZoneIsAbstractError();}['equals'](_0x4ebba0){throw new ZoneIsAbstractError();}get['isValid'](){throw new ZoneIsAbstractError();}}let singleton$1=null;class SystemZone extends Zone{static get['instance'](){return null===singleton$1&&(singleton$1=new SystemZone()),singleton$1;}get['type'](){return'system';}get['name'](){return new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x3c1be4,{format:_0x3be06a,locale:_0x485549}){return parseZoneInfo(_0x3c1be4,_0x3be06a,_0x485549);}['formatOffset'](_0x1578f1,_0xbf0dd9){return formatOffset(this['offset'](_0x1578f1),_0xbf0dd9);}['offset'](_0x8d5665){return-new Date(_0x8d5665)['getTimezoneOffset']();}['equals'](_0x2a03e7){return'system'===_0x2a03e7['type'];}get['isValid'](){return!0x0;}}const dtfCache=new Map();function makeDTF(_0xc1d70f){let _0x3f104c=dtfCache['get'](_0xc1d70f);return void 0x0===_0x3f104c&&(_0x3f104c=new Intl['DateTimeFormat']('en-US',{'hour12':!0x1,'timeZone':_0xc1d70f,'year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit','second':'2-digit','era':'short'}),dtfCache['set'](_0xc1d70f,_0x3f104c)),_0x3f104c;}const typeToPos={'year':0x0,'month':0x1,'day':0x2,'era':0x3,'hour':0x4,'minute':0x5,'second':0x6};function hackyOffset(_0x304d8c,_0x3e7cde){const _0x27d7c4=_0x304d8c['format'](_0x3e7cde)['replace'](/\u200E/g,''),_0x455e17=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/['exec'](_0x27d7c4),[,_0xfa6b15,_0x572e34,_0x3e7414,_0x4c542e,_0x1b9740,_0x1a9969,_0x2fd77f]=_0x455e17;return[_0x3e7414,_0xfa6b15,_0x572e34,_0x4c542e,_0x1b9740,_0x1a9969,_0x2fd77f];}function partsOffset(_0x14c4f3,_0x297e66){const _0x26e8db=_0x14c4f3['formatToParts'](_0x297e66),_0x49ab32=[];for(let _0x15a3b5=0x0;_0x15a3b5<_0x26e8db['length'];_0x15a3b5++){const {type:_0x1dba19,value:_0x2a4c1b}=_0x26e8db[_0x15a3b5],_0x1a2d84=typeToPos[_0x1dba19];'era'===_0x1dba19?_0x49ab32[_0x1a2d84]=_0x2a4c1b:isUndefined(_0x1a2d84)||(_0x49ab32[_0x1a2d84]=parseInt(_0x2a4c1b,0xa));}return _0x49ab32;}const ianaZoneCache=new Map();class IANAZone extends Zone{static['create'](_0x562b99){let _0x843b4f=ianaZoneCache['get'](_0x562b99);return void 0x0===_0x843b4f&&ianaZoneCache['set'](_0x562b99,_0x843b4f=new IANAZone(_0x562b99)),_0x843b4f;}static['resetCache'](){ianaZoneCache['clear'](),dtfCache['clear']();}static['isValidSpecifier'](_0x3b2de4){return this['isValidZone'](_0x3b2de4);}static['isValidZone'](_0x4ff9a1){if(!_0x4ff9a1)return!0x1;try{return new Intl['DateTimeFormat']('en-US',{'timeZone':_0x4ff9a1})['format'](),!0x0;}catch(_0xc12672){return!0x1;}}constructor(_0x232089){super(),this['zoneName']=_0x232089,this['valid']=IANAZone['isValidZone'](_0x232089);}get['type'](){return'iana';}get['name'](){return this['zoneName'];}get['isUniversal'](){return!0x1;}['offsetName'](_0x48694d,{format:_0x262b2d,locale:_0x20882d}){return parseZoneInfo(_0x48694d,_0x262b2d,_0x20882d,this['name']);}['formatOffset'](_0x140940,_0x28e17e){return formatOffset(this['offset'](_0x140940),_0x28e17e);}['offset'](_0x1775b4){if(!this['valid'])return NaN;const _0xc487dc=new Date(_0x1775b4);if(isNaN(_0xc487dc))return NaN;const _0x304ec7=makeDTF(this['name']);let [_0x320f47,_0x10ecc0,_0xf9099,_0x350840,_0xba0b9,_0x6e3323,_0x349607]=_0x304ec7['formatToParts']?partsOffset(_0x304ec7,_0xc487dc):hackyOffset(_0x304ec7,_0xc487dc);'BC'===_0x350840&&(_0x320f47=0x1-Math['abs'](_0x320f47));let _0x348fee=+_0xc487dc;const _0x22fbb0=_0x348fee%0x3e8;return _0x348fee-=_0x22fbb0>=0x0?_0x22fbb0:0x3e8+_0x22fbb0,(objToLocalTS({'year':_0x320f47,'month':_0x10ecc0,'day':_0xf9099,'hour':0x18===_0xba0b9?0x0:_0xba0b9,'minute':_0x6e3323,'second':_0x349607,'millisecond':0x0})-_0x348fee)/0xea60;}['equals'](_0x254947){return'iana'===_0x254947['type']&&_0x254947['name']===this['name'];}get['isValid'](){return this['valid'];}}let intlLFCache={};function getCachedLF(_0x451bec,_0x495c27={}){const _0xed3aa1=JSON['stringify']([_0x451bec,_0x495c27]);let _0x278949=intlLFCache[_0xed3aa1];return _0x278949||(_0x278949=new Intl['ListFormat'](_0x451bec,_0x495c27),intlLFCache[_0xed3aa1]=_0x278949),_0x278949;}const intlDTCache=new Map();function getCachedDTF(_0x925f3a,_0x3011a7={}){const _0x5a47cb=JSON['stringify']([_0x925f3a,_0x3011a7]);let _0x37b490=intlDTCache['get'](_0x5a47cb);return void 0x0===_0x37b490&&(_0x37b490=new Intl['DateTimeFormat'](_0x925f3a,_0x3011a7),intlDTCache['set'](_0x5a47cb,_0x37b490)),_0x37b490;}const intlNumCache=new Map();function getCachedINF(_0x53e86d,_0x5d58c9={}){const _0x34d2ca=JSON['stringify']([_0x53e86d,_0x5d58c9]);let _0x38ac58=intlNumCache['get'](_0x34d2ca);return void 0x0===_0x38ac58&&(_0x38ac58=new Intl['NumberFormat'](_0x53e86d,_0x5d58c9),intlNumCache['set'](_0x34d2ca,_0x38ac58)),_0x38ac58;}const intlRelCache=new Map();function getCachedRTF(_0x482637,_0x2c1dd3={}){const {base:_0x3681ab,..._0x401189}=_0x2c1dd3,_0xb2d9cc=JSON['stringify']([_0x482637,_0x401189]);let _0x35e43e=intlRelCache['get'](_0xb2d9cc);return void 0x0===_0x35e43e&&(_0x35e43e=new Intl['RelativeTimeFormat'](_0x482637,_0x2c1dd3),intlRelCache['set'](_0xb2d9cc,_0x35e43e)),_0x35e43e;}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl['DateTimeFormat']()['resolvedOptions']()['locale'],sysLocaleCache);}const intlResolvedOptionsCache=new Map();function getCachedIntResolvedOptions(_0x110586){let _0x438fc2=intlResolvedOptionsCache['get'](_0x110586);return void 0x0===_0x438fc2&&(_0x438fc2=new Intl['DateTimeFormat'](_0x110586)['resolvedOptions'](),intlResolvedOptionsCache['set'](_0x110586,_0x438fc2)),_0x438fc2;}const weekInfoCache=new Map();function getCachedWeekInfo(_0x51162b){let _0x58ecfd=weekInfoCache['get'](_0x51162b);if(!_0x58ecfd){const _0xa12f72=new Intl['Locale'](_0x51162b);_0x58ecfd='getWeekInfo'in _0xa12f72?_0xa12f72['getWeekInfo']():_0xa12f72['weekInfo'],'minimalDays'in _0x58ecfd||(_0x58ecfd={...fallbackWeekSettings,..._0x58ecfd}),weekInfoCache['set'](_0x51162b,_0x58ecfd);}return _0x58ecfd;}function parseLocaleString(_0x71fea1){const _0x78e23e=_0x71fea1['indexOf']('-x-');-0x1!==_0x78e23e&&(_0x71fea1=_0x71fea1['substring'](0x0,_0x78e23e));const _0x515725=_0x71fea1['indexOf']('-u-');if(-0x1===_0x515725)return[_0x71fea1];{let _0x55e6a0,_0x4c33d7;try{_0x55e6a0=getCachedDTF(_0x71fea1)['resolvedOptions'](),_0x4c33d7=_0x71fea1;}catch(_0x4e70b8){const _0x9419a2=_0x71fea1['substring'](0x0,_0x515725);_0x55e6a0=getCachedDTF(_0x9419a2)['resolvedOptions'](),_0x4c33d7=_0x9419a2;}const {numberingSystem:_0x13a6e5,calendar:_0x578111}=_0x55e6a0;return[_0x4c33d7,_0x13a6e5,_0x578111];}}function intlConfigString(_0x45ed9c,_0xcceda0,_0x10d28d){return _0x10d28d||_0xcceda0?(_0x45ed9c['includes']('-u-')||(_0x45ed9c+='-u'),_0x10d28d&&(_0x45ed9c+='-ca-'+_0x10d28d),_0xcceda0&&(_0x45ed9c+='-nu-'+_0xcceda0),_0x45ed9c):_0x45ed9c;}function mapMonths(_0x13741c){const _0x5419a0=[];for(let _0x16d689=0x1;_0x16d689<=0xc;_0x16d689++){const _0x2cfbc5=DateTime['utc'](0x7d9,_0x16d689,0x1);_0x5419a0['push'](_0x13741c(_0x2cfbc5));}return _0x5419a0;}function mapWeekdays(_0x282fec){const _0x5b91db=[];for(let _0x2d1c7e=0x1;_0x2d1c7e<=0x7;_0x2d1c7e++){const _0xc03eb=DateTime['utc'](0x7e0,0xb,0xd+_0x2d1c7e);_0x5b91db['push'](_0x282fec(_0xc03eb));}return _0x5b91db;}function listStuff(_0x427949,_0x5bb468,_0x10cefd,_0x2625ab){const _0x3d9eef=_0x427949['listingMode']();return'error'===_0x3d9eef?null:'en'===_0x3d9eef?_0x10cefd(_0x5bb468):_0x2625ab(_0x5bb468);}function supportsFastNumbers(_0x454ddb){return(!_0x454ddb['numberingSystem']||'latn'===_0x454ddb['numberingSystem'])&&('latn'===_0x454ddb['numberingSystem']||!_0x454ddb['locale']||_0x454ddb['locale']['startsWith']('en')||'latn'===getCachedIntResolvedOptions(_0x454ddb['locale'])['numberingSystem']);}class PolyNumberFormatter{constructor(_0x5bf6a4,_0x11cfe3,_0xe42574){this['padTo']=_0xe42574['padTo']||0x0,this['floor']=_0xe42574['floor']||!0x1;const {padTo:_0x164b06,floor:_0x277085,..._0x25c111}=_0xe42574;if(!_0x11cfe3||Object['keys'](_0x25c111)['length']>0x0){const _0x1aadfc={'useGrouping':!0x1,..._0xe42574};_0xe42574['padTo']>0x0&&(_0x1aadfc['minimumIntegerDigits']=_0xe42574['padTo']),this['inf']=getCachedINF(_0x5bf6a4,_0x1aadfc);}}['format'](_0x174919){if(this['inf']){const _0x59a134=this['floor']?Math['floor'](_0x174919):_0x174919;return this['inf']['format'](_0x59a134);}return padStart(this['floor']?Math['floor'](_0x174919):roundTo(_0x174919,0x3),this['padTo']);}}class PolyDateFormatter{constructor(_0x39edf3,_0x2eeaea,_0x5cb4aa){let _0x417f88;if(this['opts']=_0x5cb4aa,this['originalZone']=void 0x0,this['opts']['timeZone'])this['dt']=_0x39edf3;else{if('fixed'===_0x39edf3['zone']['type']){const _0xff39a6=_0x39edf3['offset']/0x3c*-0x1,_0x21cdb2=_0xff39a6>=0x0?'Etc/GMT+'+_0xff39a6:'Etc/GMT'+_0xff39a6;0x0!==_0x39edf3['offset']&&IANAZone['create'](_0x21cdb2)['valid']?(_0x417f88=_0x21cdb2,this['dt']=_0x39edf3):(_0x417f88='UTC',this['dt']=0x0===_0x39edf3['offset']?_0x39edf3:_0x39edf3['setZone']('UTC')['plus']({'minutes':_0x39edf3['offset']}),this['originalZone']=_0x39edf3['zone']);}else'system'===_0x39edf3['zone']['type']?this['dt']=_0x39edf3:'iana'===_0x39edf3['zone']['type']?(this['dt']=_0x39edf3,_0x417f88=_0x39edf3['zone']['name']):(_0x417f88='UTC',this['dt']=_0x39edf3['setZone']('UTC')['plus']({'minutes':_0x39edf3['offset']}),this['originalZone']=_0x39edf3['zone']);}const _0x1c4a57={...this['opts']};_0x1c4a57['timeZone']=_0x1c4a57['timeZone']||_0x417f88,this['dtf']=getCachedDTF(_0x2eeaea,_0x1c4a57);}['format'](){return this['originalZone']?this['formatToParts']()['map'](({value:_0x33397c})=>_0x33397c)['join'](''):this['dtf']['format'](this['dt']['toJSDate']());}['formatToParts'](){const _0x48be3a=this['dtf']['formatToParts'](this['dt']['toJSDate']());return this['originalZone']?_0x48be3a['map'](_0x1bd53d=>{if('timeZoneName'===_0x1bd53d['type']){const _0x5bdee0=this['originalZone']['offsetName'](this['dt']['ts'],{'locale':this['dt']['locale'],'format':this['opts']['timeZoneName']});return{..._0x1bd53d,'value':_0x5bdee0};}return _0x1bd53d;}):_0x48be3a;}['resolvedOptions'](){return this['dtf']['resolvedOptions']();}}class PolyRelFormatter{constructor(_0x5d6496,_0x20add3,_0x42cbbb){this['opts']={'style':'long',..._0x42cbbb},!_0x20add3&&hasRelative()&&(this['rtf']=getCachedRTF(_0x5d6496,_0x42cbbb));}['format'](_0x1769ef,_0x363524){return this['rtf']?this['rtf']['format'](_0x1769ef,_0x363524):formatRelativeTime(_0x363524,_0x1769ef,this['opts']['numeric'],'long'!==this['opts']['style']);}['formatToParts'](_0x240d09,_0x4b4a06){return this['rtf']?this['rtf']['formatToParts'](_0x240d09,_0x4b4a06):[];}}const fallbackWeekSettings={'firstDay':0x1,'minimalDays':0x4,'weekend':[0x6,0x7]};class Locale{static['fromOpts'](_0x32c201){return Locale['create'](_0x32c201['locale'],_0x32c201['numberingSystem'],_0x32c201['outputCalendar'],_0x32c201['weekSettings'],_0x32c201['defaultToEN']);}static['create'](_0x2829fd,_0x424fcc,_0x2c89c9,_0x2a523a,_0x49624e=!0x1){const _0x2479b2=_0x2829fd||Settings['defaultLocale'],_0x303874=_0x2479b2||(_0x49624e?'en-US':systemLocale()),_0x4800c5=_0x424fcc||Settings['defaultNumberingSystem'],_0x2feff2=_0x2c89c9||Settings['defaultOutputCalendar'],_0x42ad34=validateWeekSettings(_0x2a523a)||Settings['defaultWeekSettings'];return new Locale(_0x303874,_0x4800c5,_0x2feff2,_0x42ad34,_0x2479b2);}static['resetCache'](){sysLocaleCache=null,intlDTCache['clear'](),intlNumCache['clear'](),intlRelCache['clear'](),intlResolvedOptionsCache['clear'](),weekInfoCache['clear']();}static['fromObject']({locale:_0x2f21ff,numberingSystem:_0x49a504,outputCalendar:_0x154d0e,weekSettings:_0x233bd0}={}){return Locale['create'](_0x2f21ff,_0x49a504,_0x154d0e,_0x233bd0);}constructor(_0x4f6f73,_0x222d55,_0x4b6649,_0x507919,_0x5d6b87){const [_0x1f745c,_0x2085e1,_0x3a28ae]=parseLocaleString(_0x4f6f73);this['locale']=_0x1f745c,this['numberingSystem']=_0x222d55||_0x2085e1||null,this['outputCalendar']=_0x4b6649||_0x3a28ae||null,this['weekSettings']=_0x507919,this['intl']=intlConfigString(this['locale'],this['numberingSystem'],this['outputCalendar']),this['weekdaysCache']={'format':{},'standalone':{}},this['monthsCache']={'format':{},'standalone':{}},this['meridiemCache']=null,this['eraCache']={},this['specifiedLocale']=_0x5d6b87,this['fastNumbersCached']=null;}get['fastNumbers'](){return null==this['fastNumbersCached']&&(this['fastNumbersCached']=supportsFastNumbers(this)),this['fastNumbersCached'];}['listingMode'](){const _0x12a797=this['isEnglish'](),_0x36f2ec=!(null!==this['numberingSystem']&&'latn'!==this['numberingSystem']||null!==this['outputCalendar']&&'gregory'!==this['outputCalendar']);return _0x12a797&&_0x36f2ec?'en':'intl';}['clone'](_0x4c0958){return _0x4c0958&&0x0!==Object['getOwnPropertyNames'](_0x4c0958)['length']?Locale['create'](_0x4c0958['locale']||this['specifiedLocale'],_0x4c0958['numberingSystem']||this['numberingSystem'],_0x4c0958['outputCalendar']||this['outputCalendar'],validateWeekSettings(_0x4c0958['weekSettings'])||this['weekSettings'],_0x4c0958['defaultToEN']||!0x1):this;}['redefaultToEN'](_0x5ac9f9={}){return this['clone']({..._0x5ac9f9,'defaultToEN':!0x0});}['redefaultToSystem'](_0x188b5c={}){return this['clone']({..._0x188b5c,'defaultToEN':!0x1});}['months'](_0x42bc09,_0x4becac=!0x1){return listStuff(this,_0x42bc09,months,()=>{const _0x50846a=_0x4becac?{'month':_0x42bc09,'day':'numeric'}:{'month':_0x42bc09},_0x2086cb=_0x4becac?'format':'standalone';return this['monthsCache'][_0x2086cb][_0x42bc09]||(this['monthsCache'][_0x2086cb][_0x42bc09]=mapMonths(_0x206bbc=>this['extract'](_0x206bbc,_0x50846a,'month'))),this['monthsCache'][_0x2086cb][_0x42bc09];});}['weekdays'](_0x213dd5,_0x1a4b9e=!0x1){return listStuff(this,_0x213dd5,weekdays,()=>{const _0x195364=_0x1a4b9e?{'weekday':_0x213dd5,'year':'numeric','month':'long','day':'numeric'}:{'weekday':_0x213dd5},_0x5564bd=_0x1a4b9e?'format':'standalone';return this['weekdaysCache'][_0x5564bd][_0x213dd5]||(this['weekdaysCache'][_0x5564bd][_0x213dd5]=mapWeekdays(_0x1c46b3=>this['extract'](_0x1c46b3,_0x195364,'weekday'))),this['weekdaysCache'][_0x5564bd][_0x213dd5];});}['meridiems'](){return listStuff(this,void 0x0,()=>meridiems,()=>{if(!this['meridiemCache']){const _0x3ae13a={'hour':'numeric','hourCycle':'h12'};this['meridiemCache']=[DateTime['utc'](0x7e0,0xb,0xd,0x9),DateTime['utc'](0x7e0,0xb,0xd,0x13)]['map'](_0x1be5d3=>this['extract'](_0x1be5d3,_0x3ae13a,'dayperiod'));}return this['meridiemCache'];});}['eras'](_0x610a57){return listStuff(this,_0x610a57,eras,()=>{const _0x1500f0={'era':_0x610a57};return this['eraCache'][_0x610a57]||(this['eraCache'][_0x610a57]=[DateTime['utc'](-0x28,0x1,0x1),DateTime['utc'](0x7e1,0x1,0x1)]['map'](_0x24aaa6=>this['extract'](_0x24aaa6,_0x1500f0,'era'))),this['eraCache'][_0x610a57];});}['extract'](_0xadcf1b,_0x4b980b,_0x1572ba){const _0x15c100=this['dtFormatter'](_0xadcf1b,_0x4b980b)['formatToParts']()['find'](_0x399fe0=>_0x399fe0['type']['toLowerCase']()===_0x1572ba);return _0x15c100?_0x15c100['value']:null;}['numberFormatter'](_0x2a8e83={}){return new PolyNumberFormatter(this['intl'],_0x2a8e83['forceSimple']||this['fastNumbers'],_0x2a8e83);}['dtFormatter'](_0x1e8f4a,_0x536ec0={}){return new PolyDateFormatter(_0x1e8f4a,this['intl'],_0x536ec0);}['relFormatter'](_0x39f6ac={}){return new PolyRelFormatter(this['intl'],this['isEnglish'](),_0x39f6ac);}['listFormatter'](_0x3408f2={}){return getCachedLF(this['intl'],_0x3408f2);}['isEnglish'](){return'en'===this['locale']||'en-us'===this['locale']['toLowerCase']()||getCachedIntResolvedOptions(this['intl'])['locale']['startsWith']('en-us');}['getWeekSettings'](){return this['weekSettings']?this['weekSettings']:hasLocaleWeekInfo()?getCachedWeekInfo(this['locale']):fallbackWeekSettings;}['getStartOfWeek'](){return this['getWeekSettings']()['firstDay'];}['getMinDaysInFirstWeek'](){return this['getWeekSettings']()['minimalDays'];}['getWeekendDays'](){return this['getWeekSettings']()['weekend'];}['equals'](_0xaebc88){return this['locale']===_0xaebc88['locale']&&this['numberingSystem']===_0xaebc88['numberingSystem']&&this['outputCalendar']===_0xaebc88['outputCalendar'];}['toString'](){return'Locale('+this['locale']+',\x20'+this['numberingSystem']+',\x20'+this['outputCalendar']+')';}}let singleton=null;class FixedOffsetZone extends Zone{static get['utcInstance'](){return null===singleton&&(singleton=new FixedOffsetZone(0x0)),singleton;}static['instance'](_0x7dd36a){return 0x0===_0x7dd36a?FixedOffsetZone['utcInstance']:new FixedOffsetZone(_0x7dd36a);}static['parseSpecifier'](_0x152973){if(_0x152973){const _0x54b4c3=_0x152973['match'](/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(_0x54b4c3)return new FixedOffsetZone(signedOffset(_0x54b4c3[0x1],_0x54b4c3[0x2]));}return null;}constructor(_0x57f803){super(),this['fixed']=_0x57f803;}get['type'](){return'fixed';}get['name'](){return 0x0===this['fixed']?'UTC':'UTC'+formatOffset(this['fixed'],'narrow');}get['ianaName'](){return 0x0===this['fixed']?'Etc/UTC':'Etc/GMT'+formatOffset(-this['fixed'],'narrow');}['offsetName'](){return this['name'];}['formatOffset'](_0x42b1d9,_0x355f08){return formatOffset(this['fixed'],_0x355f08);}get['isUniversal'](){return!0x0;}['offset'](){return this['fixed'];}['equals'](_0x17b947){return'fixed'===_0x17b947['type']&&_0x17b947['fixed']===this['fixed'];}get['isValid'](){return!0x0;}}class InvalidZone extends Zone{constructor(_0x50b016){super(),this['zoneName']=_0x50b016;}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 normalizeZone(_0x36028d,_0x32b88f){if(isUndefined(_0x36028d)||null===_0x36028d)return _0x32b88f;if(_0x36028d instanceof Zone)return _0x36028d;if(isString(_0x36028d)){const _0x2e068d=_0x36028d['toLowerCase']();return'default'===_0x2e068d?_0x32b88f:'local'===_0x2e068d||'system'===_0x2e068d?SystemZone['instance']:'utc'===_0x2e068d||'gmt'===_0x2e068d?FixedOffsetZone['utcInstance']:FixedOffsetZone['parseSpecifier'](_0x2e068d)||IANAZone['create'](_0x36028d);}return isNumber(_0x36028d)?FixedOffsetZone['instance'](_0x36028d):'object'==typeof _0x36028d&&'offset'in _0x36028d&&'function'==typeof _0x36028d['offset']?_0x36028d:new InvalidZone(_0x36028d);}const numberingSystems={'arab':'[٠-٩]','arabext':'[۰-۹]','bali':'[᭐-᭙]','beng':'[০-৯]','deva':'[०-९]','fullwide':'[０-９]','gujr':'[૦-૯]','hanidec':'[〇|一|二|三|四|五|六|七|八|九]','khmr':'[០-៩]','knda':'[೦-೯]','laoo':'[໐-໙]','limb':'[᥆-᥏]','mlym':'[൦-൯]','mong':'[᠐-᠙]','mymr':'[၀-၉]','orya':'[୦-୯]','tamldec':'[௦-௯]','telu':'[౦-౯]','thai':'[๐-๙]','tibt':'[༠-༩]','latn':'\x5cd'},numberingSystemsUTF16={'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]},hanidecChars=numberingSystems['hanidec']['replace'](/[\[|\]]/g,'')['split']('');function parseDigits(_0x1d445d){let _0x3c2b43=parseInt(_0x1d445d,0xa);if(isNaN(_0x3c2b43)){_0x3c2b43='';for(let _0x430950=0x0;_0x430950<_0x1d445d['length'];_0x430950++){const _0x360d19=_0x1d445d['charCodeAt'](_0x430950);if(-0x1!==_0x1d445d[_0x430950]['search'](numberingSystems['hanidec']))_0x3c2b43+=hanidecChars['indexOf'](_0x1d445d[_0x430950]);else for(const _0x543e8b in numberingSystemsUTF16){const [_0x16014d,_0x4ec98b]=numberingSystemsUTF16[_0x543e8b];_0x360d19>=_0x16014d&&_0x360d19<=_0x4ec98b&&(_0x3c2b43+=_0x360d19-_0x16014d);}}return parseInt(_0x3c2b43,0xa);}return _0x3c2b43;}const digitRegexCache=new Map();function resetDigitRegexCache(){digitRegexCache['clear']();}function digitRegex({numberingSystem:_0xe0613c},_0x2993a9=''){const _0x7aab81=_0xe0613c||'latn';let _0x495a5d=digitRegexCache['get'](_0x7aab81);void 0x0===_0x495a5d&&(_0x495a5d=new Map(),digitRegexCache['set'](_0x7aab81,_0x495a5d));let _0x55982e=_0x495a5d['get'](_0x2993a9);return void 0x0===_0x55982e&&(_0x55982e=new RegExp(''+numberingSystems[_0x7aab81]+_0x2993a9),_0x495a5d['set'](_0x2993a9,_0x55982e)),_0x55982e;}let now=()=>Date['now'](),defaultZone='system',defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=0x3c,throwOnInvalid,defaultWeekSettings=null;class Settings{static get['now'](){return now;}static set['now'](_0x10e9fd){now=_0x10e9fd;}static set['defaultZone'](_0x2c7782){defaultZone=_0x2c7782;}static get['defaultZone'](){return normalizeZone(defaultZone,SystemZone['instance']);}static get['defaultLocale'](){return defaultLocale;}static set['defaultLocale'](_0x1ee313){defaultLocale=_0x1ee313;}static get['defaultNumberingSystem'](){return defaultNumberingSystem;}static set['defaultNumberingSystem'](_0x327648){defaultNumberingSystem=_0x327648;}static get['defaultOutputCalendar'](){return defaultOutputCalendar;}static set['defaultOutputCalendar'](_0x4dd388){defaultOutputCalendar=_0x4dd388;}static get['defaultWeekSettings'](){return defaultWeekSettings;}static set['defaultWeekSettings'](_0x6177ea){defaultWeekSettings=validateWeekSettings(_0x6177ea);}static get['twoDigitCutoffYear'](){return twoDigitCutoffYear;}static set['twoDigitCutoffYear'](_0x5ae834){twoDigitCutoffYear=_0x5ae834%0x64;}static get['throwOnInvalid'](){return throwOnInvalid;}static set['throwOnInvalid'](t){throwOnInvalid=t;}static['resetCaches'](){Locale['resetCache'](),IANAZone['resetCache'](),DateTime['resetCache'](),resetDigitRegexCache();}}class Invalid{constructor(_0x4e7bd6,_0x47600c){this['reason']=_0x4e7bd6,this['explanation']=_0x47600c;}['toMessage'](){return this['explanation']?this['reason']+':\x20'+this['explanation']:this['reason'];}}const nonLeapLadder=[0x0,0x1f,0x3b,0x5a,0x78,0x97,0xb5,0xd4,0xf3,0x111,0x130,0x14e],leapLadder=[0x0,0x1f,0x3c,0x5b,0x79,0x98,0xb6,0xd5,0xf4,0x112,0x131,0x14f];function unitOutOfRange(_0x2a40b0,_0x588164){return new Invalid('unit\x20out\x20of\x20range','you\x20specified\x20'+_0x588164+'\x20(of\x20type\x20'+typeof _0x588164+')\x20as\x20a\x20'+_0x2a40b0+',\x20which\x20is\x20invalid');}function dayOfWeek(_0x1cad1e,_0x25abb2,_0x6dc876){const _0x1ae5a4=new Date(Date['UTC'](_0x1cad1e,_0x25abb2-0x1,_0x6dc876));_0x1cad1e<0x64&&_0x1cad1e>=0x0&&_0x1ae5a4['setUTCFullYear'](_0x1ae5a4['getUTCFullYear']()-0x76c);const _0x2a1b3b=_0x1ae5a4['getUTCDay']();return 0x0===_0x2a1b3b?0x7:_0x2a1b3b;}function computeOrdinal(_0x1381cc,_0x8fb927,_0x5daadc){return _0x5daadc+(isLeapYear(_0x1381cc)?leapLadder:nonLeapLadder)[_0x8fb927-0x1];}function uncomputeOrdinal(_0x1effa8,_0x55fce4){const _0x6a83af=isLeapYear(_0x1effa8)?leapLadder:nonLeapLadder,_0x394c1a=_0x6a83af['findIndex'](_0x1446a9=>_0x1446a9<_0x55fce4);return{'month':_0x394c1a+0x1,'day':_0x55fce4-_0x6a83af[_0x394c1a]};}function isoWeekdayToLocal(_0x406a9c,_0x2bff66){return(_0x406a9c-_0x2bff66+0x7)%0x7+0x1;}function gregorianToWeek(_0x5222dd,_0x454cb0=0x4,_0x409ec9=0x1){const {year:_0x4d2956,month:_0x4d6b2e,day:_0xa6e790}=_0x5222dd,_0x239155=computeOrdinal(_0x4d2956,_0x4d6b2e,_0xa6e790),_0x34730e=isoWeekdayToLocal(dayOfWeek(_0x4d2956,_0x4d6b2e,_0xa6e790),_0x409ec9);let _0x52f63f,_0x44bb63=Math['floor']((_0x239155-_0x34730e+0xe-_0x454cb0)/0x7);return _0x44bb63<0x1?(_0x52f63f=_0x4d2956-0x1,_0x44bb63=weeksInWeekYear(_0x52f63f,_0x454cb0,_0x409ec9)):_0x44bb63>weeksInWeekYear(_0x4d2956,_0x454cb0,_0x409ec9)?(_0x52f63f=_0x4d2956+0x1,_0x44bb63=0x1):_0x52f63f=_0x4d2956,{'weekYear':_0x52f63f,'weekNumber':_0x44bb63,'weekday':_0x34730e,...timeObject(_0x5222dd)};}function weekToGregorian(_0x19bf34,_0x47d948=0x4,_0x8230c0=0x1){const {weekYear:_0x29b146,weekNumber:_0x5459aa,weekday:_0x3be3f3}=_0x19bf34,_0x383c92=isoWeekdayToLocal(dayOfWeek(_0x29b146,0x1,_0x47d948),_0x8230c0),_0x37b553=daysInYear(_0x29b146);let _0x15ae10,_0x28cf9b=0x7*_0x5459aa+_0x3be3f3-_0x383c92-0x7+_0x47d948;_0x28cf9b<0x1?(_0x15ae10=_0x29b146-0x1,_0x28cf9b+=daysInYear(_0x15ae10)):_0x28cf9b>_0x37b553?(_0x15ae10=_0x29b146+0x1,_0x28cf9b-=daysInYear(_0x29b146)):_0x15ae10=_0x29b146;const {month:_0x279d49,day:_0x5d9e37}=uncomputeOrdinal(_0x15ae10,_0x28cf9b);return{'year':_0x15ae10,'month':_0x279d49,'day':_0x5d9e37,...timeObject(_0x19bf34)};}function gregorianToOrdinal(_0x5bb253){const {year:_0x2f82dd,month:_0x267304,day:_0x407336}=_0x5bb253;return{'year':_0x2f82dd,'ordinal':computeOrdinal(_0x2f82dd,_0x267304,_0x407336),...timeObject(_0x5bb253)};}function ordinalToGregorian(_0x503fc5){const {year:_0x3f234c,ordinal:_0x522c83}=_0x503fc5,{month:_0x3ea25f,day:_0x4d0cf9}=uncomputeOrdinal(_0x3f234c,_0x522c83);return{'year':_0x3f234c,'month':_0x3ea25f,'day':_0x4d0cf9,...timeObject(_0x503fc5)};}function usesLocalWeekValues(_0x5d2da0,_0x4e396e){if(!isUndefined(_0x5d2da0['localWeekday'])||!isUndefined(_0x5d2da0['localWeekNumber'])||!isUndefined(_0x5d2da0['localWeekYear'])){if(!isUndefined(_0x5d2da0['weekday'])||!isUndefined(_0x5d2da0['weekNumber'])||!isUndefined(_0x5d2da0['weekYear']))throw new ConflictingSpecificationError('Cannot\x20mix\x20locale-based\x20week\x20fields\x20with\x20ISO-based\x20week\x20fields');return isUndefined(_0x5d2da0['localWeekday'])||(_0x5d2da0['weekday']=_0x5d2da0['localWeekday']),isUndefined(_0x5d2da0['localWeekNumber'])||(_0x5d2da0['weekNumber']=_0x5d2da0['localWeekNumber']),isUndefined(_0x5d2da0['localWeekYear'])||(_0x5d2da0['weekYear']=_0x5d2da0['localWeekYear']),delete _0x5d2da0['localWeekday'],delete _0x5d2da0['localWeekNumber'],delete _0x5d2da0['localWeekYear'],{'minDaysInFirstWeek':_0x4e396e['getMinDaysInFirstWeek'](),'startOfWeek':_0x4e396e['getStartOfWeek']()};}return{'minDaysInFirstWeek':0x4,'startOfWeek':0x1};}function hasInvalidWeekData(_0x26693d,_0x5664d6=0x4,_0x463b55=0x1){const _0x388f74=isInteger$1(_0x26693d['weekYear']),_0x5abb39=integerBetween(_0x26693d['weekNumber'],0x1,weeksInWeekYear(_0x26693d['weekYear'],_0x5664d6,_0x463b55)),_0x926352=integerBetween(_0x26693d['weekday'],0x1,0x7);return _0x388f74?_0x5abb39?!_0x926352&&unitOutOfRange('weekday',_0x26693d['weekday']):unitOutOfRange('week',_0x26693d['weekNumber']):unitOutOfRange('weekYear',_0x26693d['weekYear']);}function hasInvalidOrdinalData(_0x2d111a){const _0x552807=isInteger$1(_0x2d111a['year']),_0x249005=integerBetween(_0x2d111a['ordinal'],0x1,daysInYear(_0x2d111a['year']));return _0x552807?!_0x249005&&unitOutOfRange('ordinal',_0x2d111a['ordinal']):unitOutOfRange('year',_0x2d111a['year']);}function hasInvalidGregorianData(_0x6d0f){const _0x48ac01=isInteger$1(_0x6d0f['year']),_0x511434=integerBetween(_0x6d0f['month'],0x1,0xc),_0x5bee15=integerBetween(_0x6d0f['day'],0x1,daysInMonth(_0x6d0f['year'],_0x6d0f['month']));return _0x48ac01?_0x511434?!_0x5bee15&&unitOutOfRange('day',_0x6d0f['day']):unitOutOfRange('month',_0x6d0f['month']):unitOutOfRange('year',_0x6d0f['year']);}function hasInvalidTimeData(_0x6b7c53){const {hour:_0x3b5df9,minute:_0x4247e2,second:_0x5680b9,millisecond:_0x5e0fa}=_0x6b7c53,_0x2d98bc=integerBetween(_0x3b5df9,0x0,0x17)||0x18===_0x3b5df9&&0x0===_0x4247e2&&0x0===_0x5680b9&&0x0===_0x5e0fa,_0x3396b1=integerBetween(_0x4247e2,0x0,0x3b),_0x4a2ed7=integerBetween(_0x5680b9,0x0,0x3b),_0x35dd50=integerBetween(_0x5e0fa,0x0,0x3e7);return _0x2d98bc?_0x3396b1?_0x4a2ed7?!_0x35dd50&&unitOutOfRange('millisecond',_0x5e0fa):unitOutOfRange('second',_0x5680b9):unitOutOfRange('minute',_0x4247e2):unitOutOfRange('hour',_0x3b5df9);}function isUndefined(_0x4b0a8d){return void 0x0===_0x4b0a8d;}function isNumber(_0x387834){return'number'==typeof _0x387834;}function isInteger$1(_0x4974ae){return'number'==typeof _0x4974ae&&_0x4974ae%0x1==0x0;}function isString(_0x2bd30a){return'string'==typeof _0x2bd30a;}function isDate(_0x5168b8){return'[object\x20Date]'===Object['prototype']['toString']['call'](_0x5168b8);}function hasRelative(){try{return'undefined'!=typeof Intl&&!!Intl['RelativeTimeFormat'];}catch(_0x3f6a95){return!0x1;}}function hasLocaleWeekInfo(){try{return'undefined'!=typeof Intl&&!!Intl['Locale']&&('weekInfo'in Intl['Locale']['prototype']||'getWeekInfo'in Intl['Locale']['prototype']);}catch(_0x1ff09f){return!0x1;}}function maybeArray(_0xae20e3){return Array['isArray'](_0xae20e3)?_0xae20e3:[_0xae20e3];}function bestBy(_0x5b6a53,_0x434893,_0x317e0e){if(0x0!==_0x5b6a53['length'])return _0x5b6a53['reduce']((_0x5f8400,_0x32a559)=>{const _0xd0fc6f=[_0x434893(_0x32a559),_0x32a559];return _0x5f8400&&_0x317e0e(_0x5f8400[0x0],_0xd0fc6f[0x0])===_0x5f8400[0x0]?_0x5f8400:_0xd0fc6f;},null)[0x1];}function pick$2(_0x210500,_0x716439){return _0x716439['reduce']((_0x2bd580,_0x2d8f98)=>(_0x2bd580[_0x2d8f98]=_0x210500[_0x2d8f98],_0x2bd580),{});}function hasOwnProperty(_0x54e205,_0x36e9d4){return Object['prototype']['hasOwnProperty']['call'](_0x54e205,_0x36e9d4);}function validateWeekSettings(_0x6ac147){if(null==_0x6ac147)return null;if('object'!=typeof _0x6ac147)throw new InvalidArgumentError('Week\x20settings\x20must\x20be\x20an\x20object');if(!integerBetween(_0x6ac147['firstDay'],0x1,0x7)||!integerBetween(_0x6ac147['minimalDays'],0x1,0x7)||!Array['isArray'](_0x6ac147['weekend'])||_0x6ac147['weekend']['some'](_0x50f885=>!integerBetween(_0x50f885,0x1,0x7)))throw new InvalidArgumentError('Invalid\x20week\x20settings');return{'firstDay':_0x6ac147['firstDay'],'minimalDays':_0x6ac147['minimalDays'],'weekend':Array['from'](_0x6ac147['weekend'])};}function integerBetween(_0x1977d7,_0x749035,_0x1bb1c7){return isInteger$1(_0x1977d7)&&_0x1977d7>=_0x749035&&_0x1977d7<=_0x1bb1c7;}function floorMod(_0x147dac,_0x125ffd){return _0x147dac-_0x125ffd*Math['floor'](_0x147dac/_0x125ffd);}function padStart(_0x37a7d6,_0x44b163=0x2){let _0x1c4c62;return _0x1c4c62=_0x37a7d6<0x0?'-'+(''+-_0x37a7d6)['padStart'](_0x44b163,'0'):(''+_0x37a7d6)['padStart'](_0x44b163,'0'),_0x1c4c62;}function parseInteger(_0x2e28ad){return isUndefined(_0x2e28ad)||null===_0x2e28ad||''===_0x2e28ad?void 0x0:parseInt(_0x2e28ad,0xa);}function parseFloating(_0x205ee9){return isUndefined(_0x205ee9)||null===_0x205ee9||''===_0x205ee9?void 0x0:parseFloat(_0x205ee9);}function parseMillis(_0x298999){if(!isUndefined(_0x298999)&&null!==_0x298999&&''!==_0x298999){const _0x266a5b=0x3e8*parseFloat('0.'+_0x298999);return Math['floor'](_0x266a5b);}}function roundTo(_0x27c4f9,_0x34ff44,_0x1a577d=!0x1){const _0x5f3e01=0xa**_0x34ff44;return(_0x1a577d?Math['trunc']:Math['round'])(_0x27c4f9*_0x5f3e01)/_0x5f3e01;}function isLeapYear(_0x36e41b){return _0x36e41b%0x4==0x0&&(_0x36e41b%0x64!=0x0||_0x36e41b%0x190==0x0);}function daysInYear(_0x1591be){return isLeapYear(_0x1591be)?0x16e:0x16d;}function daysInMonth(_0x56bf42,_0x36a249){const _0x324070=floorMod(_0x36a249-0x1,0xc)+0x1;return 0x2===_0x324070?isLeapYear(_0x56bf42+(_0x36a249-_0x324070)/0xc)?0x1d:0x1c:[0x1f,null,0x1f,0x1e,0x1f,0x1e,0x1f,0x1f,0x1e,0x1f,0x1e,0x1f][_0x324070-0x1];}function objToLocalTS(_0x209f5e){let _0x4266c0=Date['UTC'](_0x209f5e['year'],_0x209f5e['month']-0x1,_0x209f5e['day'],_0x209f5e['hour'],_0x209f5e['minute'],_0x209f5e['second'],_0x209f5e['millisecond']);return _0x209f5e['year']<0x64&&_0x209f5e['year']>=0x0&&(_0x4266c0=new Date(_0x4266c0),_0x4266c0['setUTCFullYear'](_0x209f5e['year'],_0x209f5e['month']-0x1,_0x209f5e['day'])),+_0x4266c0;}function firstWeekOffset(_0x380fe7,_0x2fa30,_0x2689f5){return-isoWeekdayToLocal(dayOfWeek(_0x380fe7,0x1,_0x2fa30),_0x2689f5)+_0x2fa30-0x1;}function weeksInWeekYear(_0x1c72d6,_0x340d13=0x4,_0x1e331e=0x1){const _0x14c4db=firstWeekOffset(_0x1c72d6,_0x340d13,_0x1e331e),_0x107e61=firstWeekOffset(_0x1c72d6+0x1,_0x340d13,_0x1e331e);return(daysInYear(_0x1c72d6)-_0x14c4db+_0x107e61)/0x7;}function untruncateYear(_0x471a08){return _0x471a08>0x63?_0x471a08:_0x471a08>Settings['twoDigitCutoffYear']?0x76c+_0x471a08:0x7d0+_0x471a08;}function parseZoneInfo(_0x2cf6d3,_0x5652e7,_0x39787b,_0xceb384=null){const _0x4e79ba=new Date(_0x2cf6d3),_0x336982={'hourCycle':'h23','year':'numeric','month':'2-digit','day':'2-digit','hour':'2-digit','minute':'2-digit'};_0xceb384&&(_0x336982['timeZone']=_0xceb384);const _0x3d3f94={'timeZoneName':_0x5652e7,..._0x336982},_0x4ddb37=new Intl['DateTimeFormat'](_0x39787b,_0x3d3f94)['formatToParts'](_0x4e79ba)['find'](_0x31edaf=>'timezonename'===_0x31edaf['type']['toLowerCase']());return _0x4ddb37?_0x4ddb37['value']:null;}function signedOffset(_0x105ed1,_0x2d509d){let _0x8d2bfd=parseInt(_0x105ed1,0xa);Number['isNaN'](_0x8d2bfd)&&(_0x8d2bfd=0x0);const _0xb4a2e4=parseInt(_0x2d509d,0xa)||0x0;return 0x3c*_0x8d2bfd+(_0x8d2bfd<0x0||Object['is'](_0x8d2bfd,-0x0)?-_0xb4a2e4:_0xb4a2e4);}function asNumber$1(_0x1ad7ad){const _0x2453d4=Number(_0x1ad7ad);if('boolean'==typeof _0x1ad7ad||''===_0x1ad7ad||Number['isNaN'](_0x2453d4))throw new InvalidArgumentError('Invalid\x20unit\x20value\x20'+_0x1ad7ad);return _0x2453d4;}function normalizeObject(_0x3d6043,_0x35cc25){const _0x150581={};for(const _0x23a31f in _0x3d6043)if(hasOwnProperty(_0x3d6043,_0x23a31f)){const _0x5529aa=_0x3d6043[_0x23a31f];if(null==_0x5529aa)continue;_0x150581[_0x35cc25(_0x23a31f)]=asNumber$1(_0x5529aa);}return _0x150581;}function formatOffset(_0x1a9064,_0x21dcf8){const _0x3c5c58=Math['trunc'](Math['abs'](_0x1a9064/0x3c)),_0xa69087=Math['trunc'](Math['abs'](_0x1a9064%0x3c)),_0xb1a298=_0x1a9064>=0x0?'+':'-';switch(_0x21dcf8){case'short':return''+_0xb1a298+padStart(_0x3c5c58,0x2)+':'+padStart(_0xa69087,0x2);case'narrow':return''+_0xb1a298+_0x3c5c58+(_0xa69087>0x0?':'+_0xa69087:'');case'techie':return''+_0xb1a298+padStart(_0x3c5c58,0x2)+padStart(_0xa69087,0x2);default:throw new RangeError('Value\x20format\x20'+_0x21dcf8+'\x20is\x20out\x20of\x20range\x20for\x20property\x20format');}}function timeObject(_0xda780e){return pick$2(_0xda780e,['hour','minute','second','millisecond']);}const monthsLong=['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],monthsNarrow=['J','F','M','A','M','J','J','A','S','O','N','D'];function months(_0x3914f1){switch(_0x3914f1){case'narrow':return[...monthsNarrow];case'short':return[...monthsShort];case'long':return[...monthsLong];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 weekdaysLong=['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'],weekdaysShort=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],weekdaysNarrow=['M','T','W','T','F','S','S'];function weekdays(_0x38f9b9){switch(_0x38f9b9){case'narrow':return[...weekdaysNarrow];case'short':return[...weekdaysShort];case'long':return[...weekdaysLong];case'numeric':return['1','2','3','4','5','6','7'];default:return null;}}const meridiems=['AM','PM'],erasLong=['Before\x20Christ','Anno\x20Domini'],erasShort=['BC','AD'],erasNarrow=['B','A'];function eras(_0x15f708){switch(_0x15f708){case'narrow':return[...erasNarrow];case'short':return[...erasShort];case'long':return[...erasLong];default:return null;}}function meridiemForDateTime(_0x5141b0){return meridiems[_0x5141b0['hour']<0xc?0x0:0x1];}function weekdayForDateTime(_0x369687,_0x515a76){return weekdays(_0x515a76)[_0x369687['weekday']-0x1];}function monthForDateTime(_0xe19e57,_0x58a14c){return months(_0x58a14c)[_0xe19e57['month']-0x1];}function eraForDateTime(_0x3bfd58,_0x1784e5){return eras(_0x1784e5)[_0x3bfd58['year']<0x0?0x0:0x1];}function formatRelativeTime(_0x5d9c72,_0x51f2e5,_0x332f48='always',_0x432f8c=!0x1){const _0x459086={'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.']},_0xc363a3=-0x1===['hours','minutes','seconds']['indexOf'](_0x5d9c72);if('auto'===_0x332f48&&_0xc363a3){const _0x308b7e='days'===_0x5d9c72;switch(_0x51f2e5){case 0x1:return _0x308b7e?'tomorrow':'next\x20'+_0x459086[_0x5d9c72][0x0];case-0x1:return _0x308b7e?'yesterday':'last\x20'+_0x459086[_0x5d9c72][0x0];case 0x0:return _0x308b7e?'today':'this\x20'+_0x459086[_0x5d9c72][0x0];}}const _0x10a8c5=Object['is'](_0x51f2e5,-0x0)||_0x51f2e5<0x0,_0x4e1a42=Math['abs'](_0x51f2e5),_0x17b214=0x1===_0x4e1a42,_0x4c5c5b=_0x459086[_0x5d9c72],_0x146564=_0x432f8c?_0x17b214?_0x4c5c5b[0x1]:_0x4c5c5b[0x2]||_0x4c5c5b[0x1]:_0x17b214?_0x459086[_0x5d9c72][0x0]:_0x5d9c72;return _0x10a8c5?_0x4e1a42+'\x20'+_0x146564+'\x20ago':'in\x20'+_0x4e1a42+'\x20'+_0x146564;}function stringifyTokens(_0x43cb10,_0x3cf48c){let _0x457c60='';for(const _0x403369 of _0x43cb10)_0x403369['literal']?_0x457c60+=_0x403369['val']:_0x457c60+=_0x3cf48c(_0x403369['val']);return _0x457c60;}const macroTokenToFormatOpts={'D':DATE_SHORT,'DD':DATE_MED,'DDD':DATE_FULL,'DDDD':DATE_HUGE,'t':TIME_SIMPLE,'tt':TIME_WITH_SECONDS,'ttt':TIME_WITH_SHORT_OFFSET,'tttt':TIME_WITH_LONG_OFFSET,'T':TIME_24_SIMPLE,'TT':TIME_24_WITH_SECONDS,'TTT':TIME_24_WITH_SHORT_OFFSET,'TTTT':TIME_24_WITH_LONG_OFFSET,'f':DATETIME_SHORT,'ff':DATETIME_MED,'fff':DATETIME_FULL,'ffff':DATETIME_HUGE,'F':DATETIME_SHORT_WITH_SECONDS,'FF':DATETIME_MED_WITH_SECONDS,'FFF':DATETIME_FULL_WITH_SECONDS,'FFFF':DATETIME_HUGE_WITH_SECONDS};class Formatter{static['create'](_0x5cb8f8,_0x595fc4={}){return new Formatter(_0x5cb8f8,_0x595fc4);}static['parseFormat'](_0x3d54f6){let _0x15ce6b=null,_0x5230fc='',_0x3ef87d=!0x1;const _0x67678f=[];for(let _0x568086=0x0;_0x568086<_0x3d54f6['length'];_0x568086++){const _0x47a892=_0x3d54f6['charAt'](_0x568086);'\x27'===_0x47a892?(_0x5230fc['length']>0x0&&_0x67678f['push']({'literal':_0x3ef87d||/^\s+$/['test'](_0x5230fc),'val':_0x5230fc}),_0x15ce6b=null,_0x5230fc='',_0x3ef87d=!_0x3ef87d):_0x3ef87d||_0x47a892===_0x15ce6b?_0x5230fc+=_0x47a892:(_0x5230fc['length']>0x0&&_0x67678f['push']({'literal':/^\s+$/['test'](_0x5230fc),'val':_0x5230fc}),_0x5230fc=_0x47a892,_0x15ce6b=_0x47a892);}return _0x5230fc['length']>0x0&&_0x67678f['push']({'literal':_0x3ef87d||/^\s+$/['test'](_0x5230fc),'val':_0x5230fc}),_0x67678f;}static['macroTokenToFormatOpts'](_0x43e47d){return macroTokenToFormatOpts[_0x43e47d];}constructor(_0x27cea2,_0x11eb9c){this['opts']=_0x11eb9c,this['loc']=_0x27cea2,this['systemLoc']=null;}['formatWithSystemDefault'](_0x2dd1b7,_0x4cb4b6){return null===this['systemLoc']&&(this['systemLoc']=this['loc']['redefaultToSystem']()),this['systemLoc']['dtFormatter'](_0x2dd1b7,{...this['opts'],..._0x4cb4b6})['format']();}['dtFormatter'](_0x351518,_0x3ed064={}){return this['loc']['dtFormatter'](_0x351518,{...this['opts'],..._0x3ed064});}['formatDateTime'](_0x4ac5ed,_0x510d08){return this['dtFormatter'](_0x4ac5ed,_0x510d08)['format']();}['formatDateTimeParts'](_0x7635cd,_0x415c39){return this['dtFormatter'](_0x7635cd,_0x415c39)['formatToParts']();}['formatInterval'](_0x3eb96a,_0x5ae3a6){return this['dtFormatter'](_0x3eb96a['start'],_0x5ae3a6)['dtf']['formatRange'](_0x3eb96a['start']['toJSDate'](),_0x3eb96a['end']['toJSDate']());}['resolvedOptions'](_0x126b68,_0x5c5f37){return this['dtFormatter'](_0x126b68,_0x5c5f37)['resolvedOptions']();}['num'](_0x4be3ea,_0x2c0ebb=0x0){if(this['opts']['forceSimple'])return padStart(_0x4be3ea,_0x2c0ebb);const _0x56c085={...this['opts']};return _0x2c0ebb>0x0&&(_0x56c085['padTo']=_0x2c0ebb),this['loc']['numberFormatter'](_0x56c085)['format'](_0x4be3ea);}['formatDateTimeFromString'](_0x43da43,_0x49ea3d){const _0x1f2836='en'===this['loc']['listingMode'](),_0x4f3ffc=this['loc']['outputCalendar']&&'gregory'!==this['loc']['outputCalendar'],_0x39fb9f=(_0x20b0b5,_0x42ea74)=>this['loc']['extract'](_0x43da43,_0x20b0b5,_0x42ea74),_0x159709=_0xca479c=>_0x43da43['isOffsetFixed']&&0x0===_0x43da43['offset']&&_0xca479c['allowZ']?'Z':_0x43da43['isValid']?_0x43da43['zone']['formatOffset'](_0x43da43['ts'],_0xca479c['format']):'',_0x268ed2=(_0x1408b3,_0x3c459b)=>_0x1f2836?monthForDateTime(_0x43da43,_0x1408b3):_0x39fb9f(_0x3c459b?{'month':_0x1408b3}:{'month':_0x1408b3,'day':'numeric'},'month'),_0x4ff6ea=(_0x58af20,_0x15d203)=>_0x1f2836?weekdayForDateTime(_0x43da43,_0x58af20):_0x39fb9f(_0x15d203?{'weekday':_0x58af20}:{'weekday':_0x58af20,'month':'long','day':'numeric'},'weekday'),_0x1ecc18=_0x3b4c11=>{const _0xdeb42c=Formatter['macroTokenToFormatOpts'](_0x3b4c11);return _0xdeb42c?this['formatWithSystemDefault'](_0x43da43,_0xdeb42c):_0x3b4c11;},_0x52126e=_0x49d4f9=>_0x1f2836?eraForDateTime(_0x43da43,_0x49d4f9):_0x39fb9f({'era':_0x49d4f9},'era');return stringifyTokens(Formatter['parseFormat'](_0x49ea3d),_0x5baf60=>{switch(_0x5baf60){case'S':return this['num'](_0x43da43['millisecond']);case'u':case'SSS':return this['num'](_0x43da43['millisecond'],0x3);case's':return this['num'](_0x43da43['second']);case'ss':return this['num'](_0x43da43['second'],0x2);case'uu':return this['num'](Math['floor'](_0x43da43['millisecond']/0xa),0x2);case'uuu':return this['num'](Math['floor'](_0x43da43['millisecond']/0x64));case'm':return this['num'](_0x43da43['minute']);case'mm':return this['num'](_0x43da43['minute'],0x2);case'h':return this['num'](_0x43da43['hour']%0xc==0x0?0xc:_0x43da43['hour']%0xc);case'hh':return this['num'](_0x43da43['hour']%0xc==0x0?0xc:_0x43da43['hour']%0xc,0x2);case'H':return this['num'](_0x43da43['hour']);case'HH':return this['num'](_0x43da43['hour'],0x2);case'Z':return _0x159709({'format':'narrow','allowZ':this['opts']['allowZ']});case'ZZ':return _0x159709({'format':'short','allowZ':this['opts']['allowZ']});case'ZZZ':return _0x159709({'format':'techie','allowZ':this['opts']['allowZ']});case'ZZZZ':return _0x43da43['zone']['offsetName'](_0x43da43['ts'],{'format':'short','locale':this['loc']['locale']});case'ZZZZZ':return _0x43da43['zone']['offsetName'](_0x43da43['ts'],{'format':'long','locale':this['loc']['locale']});case'z':return _0x43da43['zoneName'];case'a':return _0x1f2836?meridiemForDateTime(_0x43da43):_0x39fb9f({'hour':'numeric','hourCycle':'h12'},'dayperiod');case'd':return _0x4f3ffc?_0x39fb9f({'day':'numeric'},'day'):this['num'](_0x43da43['day']);case'dd':return _0x4f3ffc?_0x39fb9f({'day':'2-digit'},'day'):this['num'](_0x43da43['day'],0x2);case'c':case'E':return this['num'](_0x43da43['weekday']);case'ccc':return _0x4ff6ea('short',!0x0);case'cccc':return _0x4ff6ea('long',!0x0);case'ccccc':return _0x4ff6ea('narrow',!0x0);case'EEE':return _0x4ff6ea('short',!0x1);case'EEEE':return _0x4ff6ea('long',!0x1);case'EEEEE':return _0x4ff6ea('narrow',!0x1);case'L':return _0x4f3ffc?_0x39fb9f({'month':'numeric','day':'numeric'},'month'):this['num'](_0x43da43['month']);case'LL':return _0x4f3ffc?_0x39fb9f({'month':'2-digit','day':'numeric'},'month'):this['num'](_0x43da43['month'],0x2);case'LLL':return _0x268ed2('short',!0x0);case'LLLL':return _0x268ed2('long',!0x0);case'LLLLL':return _0x268ed2('narrow',!0x0);case'M':return _0x4f3ffc?_0x39fb9f({'month':'numeric'},'month'):this['num'](_0x43da43['month']);case'MM':return _0x4f3ffc?_0x39fb9f({'month':'2-digit'},'month'):this['num'](_0x43da43['month'],0x2);case'MMM':return _0x268ed2('short',!0x1);case'MMMM':return _0x268ed2('long',!0x1);case'MMMMM':return _0x268ed2('narrow',!0x1);case'y':return _0x4f3ffc?_0x39fb9f({'year':'numeric'},'year'):this['num'](_0x43da43['year']);case'yy':return _0x4f3ffc?_0x39fb9f({'year':'2-digit'},'year'):this['num'](_0x43da43['year']['toString']()['slice'](-0x2),0x2);case'yyyy':return _0x4f3ffc?_0x39fb9f({'year':'numeric'},'year'):this['num'](_0x43da43['year'],0x4);case'yyyyyy':return _0x4f3ffc?_0x39fb9f({'year':'numeric'},'year'):this['num'](_0x43da43['year'],0x6);case'G':return _0x52126e('short');case'GG':return _0x52126e('long');case'GGGGG':return _0x52126e('narrow');case'kk':return this['num'](_0x43da43['weekYear']['toString']()['slice'](-0x2),0x2);case'kkkk':return this['num'](_0x43da43['weekYear'],0x4);case'W':return this['num'](_0x43da43['weekNumber']);case'WW':return this['num'](_0x43da43['weekNumber'],0x2);case'n':return this['num'](_0x43da43['localWeekNumber']);case'nn':return this['num'](_0x43da43['localWeekNumber'],0x2);case'ii':return this['num'](_0x43da43['localWeekYear']['toString']()['slice'](-0x2),0x2);case'iiii':return this['num'](_0x43da43['localWeekYear'],0x4);case'o':return this['num'](_0x43da43['ordinal']);case'ooo':return this['num'](_0x43da43['ordinal'],0x3);case'q':return this['num'](_0x43da43['quarter']);case'qq':return this['num'](_0x43da43['quarter'],0x2);case'X':return this['num'](Math['floor'](_0x43da43['ts']/0x3e8));case'x':return this['num'](_0x43da43['ts']);default:return _0x1ecc18(_0x5baf60);}});}['formatDurationFromString'](_0x568ef2,_0x5f47c4){const _0x21d781=_0x2aa91b=>{switch(_0x2aa91b[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;}},_0x440e8e=Formatter['parseFormat'](_0x5f47c4),_0x523621=_0x440e8e['reduce']((_0x5f5909,{literal:_0x394410,val:_0x5a7b07})=>_0x394410?_0x5f5909:_0x5f5909['concat'](_0x5a7b07),[]),_0x574042=_0x568ef2['shiftTo'](..._0x523621['map'](_0x21d781)['filter'](t=>t));return stringifyTokens(_0x440e8e,(_0x54c66c=>_0x323194=>{const _0x47ea21=_0x21d781(_0x323194);return _0x47ea21?this['num'](_0x54c66c['get'](_0x47ea21),_0x323194['length']):_0x323194;})(_0x574042));}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(..._0x1d26d3){const _0x39c79b=_0x1d26d3['reduce']((_0x1e8d5f,_0x3defed)=>_0x1e8d5f+_0x3defed['source'],'');return RegExp('^'+_0x39c79b+'$');}function combineExtractors(..._0x21f05a){return _0x3a7be2=>_0x21f05a['reduce'](([_0x108a82,_0x5cfb96,_0x35d4b8],_0x363a1f)=>{const [_0x5940b5,_0x39f896,_0x1369f7]=_0x363a1f(_0x3a7be2,_0x35d4b8);return[{..._0x108a82,..._0x5940b5},_0x39f896||_0x5cfb96,_0x1369f7];},[{},null,0x1])['slice'](0x0,0x2);}function parse$1(_0x3303ff,..._0x2e4017){if(null==_0x3303ff)return[null,null];for(const [_0x346f13,_0x4fc8c4]of _0x2e4017){const _0x19acfc=_0x346f13['exec'](_0x3303ff);if(_0x19acfc)return _0x4fc8c4(_0x19acfc);}return[null,null];}function simpleParse(..._0x371071){return(_0x2ac9fb,_0x5db31d)=>{const _0x5e4912={};let _0x2e491e;for(_0x2e491e=0x0;_0x2e491e<_0x371071['length'];_0x2e491e++)_0x5e4912[_0x371071[_0x2e491e]]=parseInteger(_0x2ac9fb[_0x5db31d+_0x2e491e]);return[_0x5e4912,null,_0x5db31d+_0x2e491e];};}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone='(?:'+offsetRegex['source']+'?(?:\x5c[('+ianaRegex['source']+')\x5c])?)?',isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(''+isoTimeBaseRegex['source']+isoExtendedZone),isoTimeExtensionRegex=RegExp('(?:T'+isoTimeRegex['source']+')?'),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse('weekYear','weekNumber','weekDay'),extractISOOrdinalData=simpleParse('year','ordinal'),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(isoTimeBaseRegex['source']+'\x20?(?:'+offsetRegex['source']+'|('+ianaRegex['source']+'))?'),sqlTimeExtensionRegex=RegExp('(?:\x20'+sqlTimeRegex['source']+')?');function int(_0x4ea0c7,_0xa85d1c,_0x2fd4e7){const _0x4c95ab=_0x4ea0c7[_0xa85d1c];return isUndefined(_0x4c95ab)?_0x2fd4e7:parseInteger(_0x4c95ab);}function extractISOYmd(_0x45b4e,_0x1fb3f3){return[{'year':int(_0x45b4e,_0x1fb3f3),'month':int(_0x45b4e,_0x1fb3f3+0x1,0x1),'day':int(_0x45b4e,_0x1fb3f3+0x2,0x1)},null,_0x1fb3f3+0x3];}function extractISOTime(_0x58fd1d,_0x42fde1){return[{'hours':int(_0x58fd1d,_0x42fde1,0x0),'minutes':int(_0x58fd1d,_0x42fde1+0x1,0x0),'seconds':int(_0x58fd1d,_0x42fde1+0x2,0x0),'milliseconds':parseMillis(_0x58fd1d[_0x42fde1+0x3])},null,_0x42fde1+0x4];}function extractISOOffset(_0x33cdc6,_0x3060f6){const _0x12c616=!_0x33cdc6[_0x3060f6]&&!_0x33cdc6[_0x3060f6+0x1],_0x41df26=signedOffset(_0x33cdc6[_0x3060f6+0x1],_0x33cdc6[_0x3060f6+0x2]);return[{},_0x12c616?null:FixedOffsetZone['instance'](_0x41df26),_0x3060f6+0x3];}function extractIANAZone(_0x3bcb79,_0x4c95ad){return[{},_0x3bcb79[_0x4c95ad]?IANAZone['create'](_0x3bcb79[_0x4c95ad]):null,_0x4c95ad+0x1];}const isoTimeOnly=RegExp('^T?'+isoTimeBaseRegex['source']+'$'),isoDuration=/^-?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 extractISODuration(_0x34fa89){const [_0x3a963d,_0x57d0af,_0x12c3c4,_0x23c4a0,_0xf3def4,_0x161d83,_0x16a896,_0x1ce877,_0x2de232]=_0x34fa89,_0x4f62fa='-'===_0x3a963d[0x0],_0x1c6cae=_0x1ce877&&'-'===_0x1ce877[0x0],_0x163b2c=(_0x13eefc,_0x554959=!0x1)=>void 0x0!==_0x13eefc&&(_0x554959||_0x13eefc&&_0x4f62fa)?-_0x13eefc:_0x13eefc;return[{'years':_0x163b2c(parseFloating(_0x57d0af)),'months':_0x163b2c(parseFloating(_0x12c3c4)),'weeks':_0x163b2c(parseFloating(_0x23c4a0)),'days':_0x163b2c(parseFloating(_0xf3def4)),'hours':_0x163b2c(parseFloating(_0x161d83)),'minutes':_0x163b2c(parseFloating(_0x16a896)),'seconds':_0x163b2c(parseFloating(_0x1ce877),'-0'===_0x1ce877),'milliseconds':_0x163b2c(parseMillis(_0x2de232),_0x1c6cae)}];}const obsOffsets={'GMT':0x0,'EDT':-0xf0,'EST':-0x12c,'CDT':-0x12c,'CST':-0x168,'MDT':-0x168,'MST':-0x1a4,'PDT':-0x1a4,'PST':-0x1e0};function fromStrings(_0x7ff029,_0x1ee964,_0x3e093a,_0x5663ab,_0x34a967,_0x325844,_0x56b35f){const _0x1ca7b4={'year':0x2===_0x1ee964['length']?untruncateYear(parseInteger(_0x1ee964)):parseInteger(_0x1ee964),'month':monthsShort['indexOf'](_0x3e093a)+0x1,'day':parseInteger(_0x5663ab),'hour':parseInteger(_0x34a967),'minute':parseInteger(_0x325844)};return _0x56b35f&&(_0x1ca7b4['second']=parseInteger(_0x56b35f)),_0x7ff029&&(_0x1ca7b4['weekday']=_0x7ff029['length']>0x3?weekdaysLong['indexOf'](_0x7ff029)+0x1:weekdaysShort['indexOf'](_0x7ff029)+0x1),_0x1ca7b4;}const rfc2822=/^(?:(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 extractRFC2822(_0x3c71ac){const [,_0x2621f0,_0x4a3481,_0x1e2a3b,_0x1208b1,_0x1d03ab,_0x3fe7c9,_0x164443,_0x18d903,_0x44ffa2,_0x104156,_0x1e8c73]=_0x3c71ac,_0x6c2598=fromStrings(_0x2621f0,_0x1208b1,_0x1e2a3b,_0x4a3481,_0x1d03ab,_0x3fe7c9,_0x164443);let _0x12c163;return _0x12c163=_0x18d903?obsOffsets[_0x18d903]:_0x44ffa2?0x0:signedOffset(_0x104156,_0x1e8c73),[_0x6c2598,new FixedOffsetZone(_0x12c163)];}function preprocessRFC2822(_0x580c0d){return _0x580c0d['replace'](/\([^()]*\)|[\n\t]/g,'\x20')['replace'](/(\s\s+)/g,'\x20')['trim']();}const rfc1123=/^(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$/,rfc850=/^(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$/,ascii=/^(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 extractRFC1123Or850(_0x3658c9){const [,_0x23a530,_0x199e5d,_0x10b31c,_0x372659,_0x278515,_0x1e85ab,_0x3b3351]=_0x3658c9;return[fromStrings(_0x23a530,_0x372659,_0x10b31c,_0x199e5d,_0x278515,_0x1e85ab,_0x3b3351),FixedOffsetZone['utcInstance']];}function extractASCII(_0x467782){const [,_0xca4cdb,_0x37861f,_0x3b3a85,_0x533727,_0x5486ac,_0x166048,_0x181652]=_0x467782;return[fromStrings(_0xca4cdb,_0x181652,_0x37861f,_0x3b3a85,_0x533727,_0x5486ac,_0x166048),FixedOffsetZone['utcInstance']];}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(_0x3e4e92){return parse$1(_0x3e4e92,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset]);}function parseRFC2822Date(_0x998c65){return parse$1(preprocessRFC2822(_0x998c65),[rfc2822,extractRFC2822]);}function parseHTTPDate(_0x502614){return parse$1(_0x502614,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII]);}function parseISODuration(_0x23c000){return parse$1(_0x23c000,[isoDuration,extractISODuration]);}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(_0x31062a){return parse$1(_0x31062a,[isoTimeOnly,extractISOTimeOnly]);}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(_0x511e6b){return parse$1(_0x511e6b,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone]);}const INVALID$2='Invalid\x20Duration',lowOrderMatrix={'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}},casualMatrix={'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},...lowOrderMatrix},daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix={'years':{'quarters':0x4,'months':0xc,'weeks':daysInYearAccurate/0x7,'days':daysInYearAccurate,'hours':0x18*daysInYearAccurate,'minutes':0x18*daysInYearAccurate*0x3c,'seconds':0x18*daysInYearAccurate*0x3c*0x3c,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8},'quarters':{'months':0x3,'weeks':daysInYearAccurate/0x1c,'days':daysInYearAccurate/0x4,'hours':0x18*daysInYearAccurate/0x4,'minutes':0x18*daysInYearAccurate*0x3c/0x4,'seconds':0x18*daysInYearAccurate*0x3c*0x3c/0x4,'milliseconds':0x18*daysInYearAccurate*0x3c*0x3c*0x3e8/0x4},'months':{'weeks':daysInMonthAccurate/0x7,'days':daysInMonthAccurate,'hours':0x18*daysInMonthAccurate,'minutes':0x18*daysInMonthAccurate*0x3c,'seconds':0x18*daysInMonthAccurate*0x3c*0x3c,'milliseconds':0x18*daysInMonthAccurate*0x3c*0x3c*0x3e8},...lowOrderMatrix},orderedUnits$1=['years','quarters','months','weeks','days','hours','minutes','seconds','milliseconds'],reverseUnits=orderedUnits$1['slice'](0x0)['reverse']();function clone$1(_0x3c48dc,_0x27541b,_0x3bf6e6=!0x1){const _0x5523b0={'values':_0x3bf6e6?_0x27541b['values']:{..._0x3c48dc['values'],..._0x27541b['values']||{}},'loc':_0x3c48dc['loc']['clone'](_0x27541b['loc']),'conversionAccuracy':_0x27541b['conversionAccuracy']||_0x3c48dc['conversionAccuracy'],'matrix':_0x27541b['matrix']||_0x3c48dc['matrix']};return new Duration(_0x5523b0);}function durationToMillis(_0x30af05,_0x2d7135){let _0x26dd53=_0x2d7135['milliseconds']??0x0;for(const _0x226101 of reverseUnits['slice'](0x1))_0x2d7135[_0x226101]&&(_0x26dd53+=_0x2d7135[_0x226101]*_0x30af05[_0x226101]['milliseconds']);return _0x26dd53;}function normalizeValues(_0x552304,_0x1e5ee6){const _0x463376=durationToMillis(_0x552304,_0x1e5ee6)<0x0?-0x1:0x1;orderedUnits$1['reduceRight']((_0x4dd909,_0x27bd11)=>{if(isUndefined(_0x1e5ee6[_0x27bd11]))return _0x4dd909;if(_0x4dd909){const _0x4c9aa0=_0x1e5ee6[_0x4dd909]*_0x463376,_0x3ee982=_0x552304[_0x27bd11][_0x4dd909],_0x58c7e8=Math['floor'](_0x4c9aa0/_0x3ee982);_0x1e5ee6[_0x27bd11]+=_0x58c7e8*_0x463376,_0x1e5ee6[_0x4dd909]-=_0x58c7e8*_0x3ee982*_0x463376;}return _0x27bd11;},null),orderedUnits$1['reduce']((_0x20172d,_0x1c4fcb)=>{if(isUndefined(_0x1e5ee6[_0x1c4fcb]))return _0x20172d;if(_0x20172d){const _0x3b7744=_0x1e5ee6[_0x20172d]%0x1;_0x1e5ee6[_0x20172d]-=_0x3b7744,_0x1e5ee6[_0x1c4fcb]+=_0x3b7744*_0x552304[_0x20172d][_0x1c4fcb];}return _0x1c4fcb;},null);}function removeZeroes(_0x516173){const _0x202291={};for(const [_0x5084b7,_0x3ecad8]of Object['entries'](_0x516173))0x0!==_0x3ecad8&&(_0x202291[_0x5084b7]=_0x3ecad8);return _0x202291;}class Duration{constructor(_0x4daac6){const _0x50f2e8='longterm'===_0x4daac6['conversionAccuracy']||!0x1;let _0x4f1a07=_0x50f2e8?accurateMatrix:casualMatrix;_0x4daac6['matrix']&&(_0x4f1a07=_0x4daac6['matrix']),this['values']=_0x4daac6['values'],this['loc']=_0x4daac6['loc']||Locale['create'](),this['conversionAccuracy']=_0x50f2e8?'longterm':'casual',this['invalid']=_0x4daac6['invalid']||null,this['matrix']=_0x4f1a07,this['isLuxonDuration']=!0x0;}static['fromMillis'](_0x246246,_0x721341){return Duration['fromObject']({'milliseconds':_0x246246},_0x721341);}static['fromObject'](_0x89322f,_0x5dd0cf={}){if(null==_0x89322f||'object'!=typeof _0x89322f)throw new InvalidArgumentError('Duration.fromObject:\x20argument\x20expected\x20to\x20be\x20an\x20object,\x20got\x20'+(null===_0x89322f?'null':typeof _0x89322f));return new Duration({'values':normalizeObject(_0x89322f,Duration['normalizeUnit']),'loc':Locale['fromObject'](_0x5dd0cf),'conversionAccuracy':_0x5dd0cf['conversionAccuracy'],'matrix':_0x5dd0cf['matrix']});}static['fromDurationLike'](_0xc4686c){if(isNumber(_0xc4686c))return Duration['fromMillis'](_0xc4686c);if(Duration['isDuration'](_0xc4686c))return _0xc4686c;if('object'==typeof _0xc4686c)return Duration['fromObject'](_0xc4686c);throw new InvalidArgumentError('Unknown\x20duration\x20argument\x20'+_0xc4686c+'\x20of\x20type\x20'+typeof _0xc4686c);}static['fromISO'](_0x103afb,_0x3fe78f){const [_0x21ec2a]=parseISODuration(_0x103afb);return _0x21ec2a?Duration['fromObject'](_0x21ec2a,_0x3fe78f):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0x103afb+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['fromISOTime'](_0xd71d7d,_0x3a1770){const [_0x54247c]=parseISOTimeOnly(_0xd71d7d);return _0x54247c?Duration['fromObject'](_0x54247c,_0x3a1770):Duration['invalid']('unparsable','the\x20input\x20\x22'+_0xd71d7d+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['invalid'](_0x39cf7b,_0x3e68cc=null){if(!_0x39cf7b)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Duration\x20is\x20invalid');const _0x2a69c3=_0x39cf7b instanceof Invalid?_0x39cf7b:new Invalid(_0x39cf7b,_0x3e68cc);if(Settings['throwOnInvalid'])throw new InvalidDurationError(_0x2a69c3);return new Duration({'invalid':_0x2a69c3});}static['normalizeUnit'](_0xe70a65){const _0x1254cb={'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'}[_0xe70a65?_0xe70a65['toLowerCase']():_0xe70a65];if(!_0x1254cb)throw new InvalidUnitError(_0xe70a65);return _0x1254cb;}static['isDuration'](_0x3371a3){return _0x3371a3&&_0x3371a3['isLuxonDuration']||!0x1;}get['locale'](){return this['isValid']?this['loc']['locale']:null;}get['numberingSystem'](){return this['isValid']?this['loc']['numberingSystem']:null;}['toFormat'](_0x516cb1,_0x3d30ff={}){const _0x1f408a={..._0x3d30ff,'floor':!0x1!==_0x3d30ff['round']&&!0x1!==_0x3d30ff['floor']};return this['isValid']?Formatter['create'](this['loc'],_0x1f408a)['formatDurationFromString'](this,_0x516cb1):INVALID$2;}['toHuman'](_0x39f797={}){if(!this['isValid'])return INVALID$2;const _0x2dbe43=orderedUnits$1['map'](_0x44e797=>{const _0x5e5159=this['values'][_0x44e797];return isUndefined(_0x5e5159)?null:this['loc']['numberFormatter']({'style':'unit','unitDisplay':'long',..._0x39f797,'unit':_0x44e797['slice'](0x0,-0x1)})['format'](_0x5e5159);})['filter'](_0x5eb714=>_0x5eb714);return this['loc']['listFormatter']({'type':'conjunction','style':_0x39f797['listStyle']||'narrow',..._0x39f797})['format'](_0x2dbe43);}['toObject'](){return this['isValid']?{...this['values']}:{};}['toISO'](){if(!this['isValid'])return null;let _0xe45df2='P';return 0x0!==this['years']&&(_0xe45df2+=this['years']+'Y'),0x0===this['months']&&0x0===this['quarters']||(_0xe45df2+=this['months']+0x3*this['quarters']+'M'),0x0!==this['weeks']&&(_0xe45df2+=this['weeks']+'W'),0x0!==this['days']&&(_0xe45df2+=this['days']+'D'),0x0===this['hours']&&0x0===this['minutes']&&0x0===this['seconds']&&0x0===this['milliseconds']||(_0xe45df2+='T'),0x0!==this['hours']&&(_0xe45df2+=this['hours']+'H'),0x0!==this['minutes']&&(_0xe45df2+=this['minutes']+'M'),0x0===this['seconds']&&0x0===this['milliseconds']||(_0xe45df2+=roundTo(this['seconds']+this['milliseconds']/0x3e8,0x3)+'S'),'P'===_0xe45df2&&(_0xe45df2+='T0S'),_0xe45df2;}['toISOTime'](_0x4be76b={}){if(!this['isValid'])return null;const _0x210ac0=this['toMillis']();if(_0x210ac0<0x0||_0x210ac0>=0x5265c00)return null;return _0x4be76b={'suppressMilliseconds':!0x1,'suppressSeconds':!0x1,'includePrefix':!0x1,'format':'extended',..._0x4be76b,'includeOffset':!0x1},DateTime['fromMillis'](_0x210ac0,{'zone':'UTC'})['toISOTime'](_0x4be76b);}['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']?durationToMillis(this['matrix'],this['values']):NaN;}['valueOf'](){return this['toMillis']();}['plus'](_0x3c8d9a){if(!this['isValid'])return this;const _0x2a02a3=Duration['fromDurationLike'](_0x3c8d9a),_0x4e0994={};for(const _0x36d06f of orderedUnits$1)(hasOwnProperty(_0x2a02a3['values'],_0x36d06f)||hasOwnProperty(this['values'],_0x36d06f))&&(_0x4e0994[_0x36d06f]=_0x2a02a3['get'](_0x36d06f)+this['get'](_0x36d06f));return clone$1(this,{'values':_0x4e0994},!0x0);}['minus'](_0x3495d9){if(!this['isValid'])return this;const _0xeb0afe=Duration['fromDurationLike'](_0x3495d9);return this['plus'](_0xeb0afe['negate']());}['mapUnits'](_0x312a6b){if(!this['isValid'])return this;const _0x67fa94={};for(const _0x2af7bf of Object['keys'](this['values']))_0x67fa94[_0x2af7bf]=asNumber$1(_0x312a6b(this['values'][_0x2af7bf],_0x2af7bf));return clone$1(this,{'values':_0x67fa94},!0x0);}['get'](_0x5ab8c0){return this[Duration['normalizeUnit'](_0x5ab8c0)];}['set'](_0x44f869){if(!this['isValid'])return this;return clone$1(this,{'values':{...this['values'],...normalizeObject(_0x44f869,Duration['normalizeUnit'])}});}['reconfigure']({locale:_0x33b379,numberingSystem:_0x162716,conversionAccuracy:_0x54f8e1,matrix:_0x451cdc}={}){return clone$1(this,{'loc':this['loc']['clone']({'locale':_0x33b379,'numberingSystem':_0x162716}),'matrix':_0x451cdc,'conversionAccuracy':_0x54f8e1});}['as'](_0xbd8b8){return this['isValid']?this['shiftTo'](_0xbd8b8)['get'](_0xbd8b8):NaN;}['normalize'](){if(!this['isValid'])return this;const _0x333b1f=this['toObject']();return normalizeValues(this['matrix'],_0x333b1f),clone$1(this,{'values':_0x333b1f},!0x0);}['rescale'](){if(!this['isValid'])return this;return clone$1(this,{'values':removeZeroes(this['normalize']()['shiftToAll']()['toObject']())},!0x0);}['shiftTo'](..._0x262b1a){if(!this['isValid'])return this;if(0x0===_0x262b1a['length'])return this;_0x262b1a=_0x262b1a['map'](_0x877417=>Duration['normalizeUnit'](_0x877417));const _0x4472d6={},_0x50558f={},_0x57e7ae=this['toObject']();let _0x12b9b4;for(const _0x30c3a3 of orderedUnits$1)if(_0x262b1a['indexOf'](_0x30c3a3)>=0x0){_0x12b9b4=_0x30c3a3;let _0x208058=0x0;for(const _0x376b9c in _0x50558f)_0x208058+=this['matrix'][_0x376b9c][_0x30c3a3]*_0x50558f[_0x376b9c],_0x50558f[_0x376b9c]=0x0;isNumber(_0x57e7ae[_0x30c3a3])&&(_0x208058+=_0x57e7ae[_0x30c3a3]);const _0x186923=Math['trunc'](_0x208058);_0x4472d6[_0x30c3a3]=_0x186923,_0x50558f[_0x30c3a3]=(0x3e8*_0x208058-0x3e8*_0x186923)/0x3e8;}else isNumber(_0x57e7ae[_0x30c3a3])&&(_0x50558f[_0x30c3a3]=_0x57e7ae[_0x30c3a3]);for(const _0x573796 in _0x50558f)0x0!==_0x50558f[_0x573796]&&(_0x4472d6[_0x12b9b4]+=_0x573796===_0x12b9b4?_0x50558f[_0x573796]:_0x50558f[_0x573796]/this['matrix'][_0x12b9b4][_0x573796]);return normalizeValues(this['matrix'],_0x4472d6),clone$1(this,{'values':_0x4472d6},!0x0);}['shiftToAll'](){return this['isValid']?this['shiftTo']('years','months','weeks','days','hours','minutes','seconds','milliseconds'):this;}['negate'](){if(!this['isValid'])return this;const _0x4f5922={};for(const _0x58c3eb of Object['keys'](this['values']))_0x4f5922[_0x58c3eb]=0x0===this['values'][_0x58c3eb]?0x0:-this['values'][_0x58c3eb];return clone$1(this,{'values':_0x4f5922},!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'](_0x5441fe){if(!this['isValid']||!_0x5441fe['isValid'])return!0x1;if(!this['loc']['equals'](_0x5441fe['loc']))return!0x1;function _0x2f7608(_0x4d010a,_0x5d1394){return void 0x0===_0x4d010a||0x0===_0x4d010a?void 0x0===_0x5d1394||0x0===_0x5d1394:_0x4d010a===_0x5d1394;}for(const _0x2d4d59 of orderedUnits$1)if(!_0x2f7608(this['values'][_0x2d4d59],_0x5441fe['values'][_0x2d4d59]))return!0x1;return!0x0;}}const INVALID$1='Invalid\x20Interval';function validateStartEnd(_0x623a73,_0x4a49ad){return _0x623a73&&_0x623a73['isValid']?_0x4a49ad&&_0x4a49ad['isValid']?_0x4a49ad<_0x623a73?Interval['invalid']('end\x20before\x20start','The\x20end\x20of\x20an\x20interval\x20must\x20be\x20after\x20its\x20start,\x20but\x20you\x20had\x20start='+_0x623a73['toISO']()+'\x20and\x20end='+_0x4a49ad['toISO']()):null:Interval['invalid']('missing\x20or\x20invalid\x20end'):Interval['invalid']('missing\x20or\x20invalid\x20start');}class Interval{constructor(_0x562823){this['s']=_0x562823['start'],this['e']=_0x562823['end'],this['invalid']=_0x562823['invalid']||null,this['isLuxonInterval']=!0x0;}static['invalid'](_0x5bde2c,_0x4865de=null){if(!_0x5bde2c)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20Interval\x20is\x20invalid');const _0x1903aa=_0x5bde2c instanceof Invalid?_0x5bde2c:new Invalid(_0x5bde2c,_0x4865de);if(Settings['throwOnInvalid'])throw new InvalidIntervalError(_0x1903aa);return new Interval({'invalid':_0x1903aa});}static['fromDateTimes'](_0x1b2c33,_0x46e74c){const _0x19cce1=friendlyDateTime(_0x1b2c33),_0x5edb0f=friendlyDateTime(_0x46e74c),_0x383776=validateStartEnd(_0x19cce1,_0x5edb0f);return null==_0x383776?new Interval({'start':_0x19cce1,'end':_0x5edb0f}):_0x383776;}static['after'](_0x330638,_0x12314b){const _0x2f891b=Duration['fromDurationLike'](_0x12314b),_0x4dc8b0=friendlyDateTime(_0x330638);return Interval['fromDateTimes'](_0x4dc8b0,_0x4dc8b0['plus'](_0x2f891b));}static['before'](_0x9cb84a,_0x14cd8c){const _0x2e44ac=Duration['fromDurationLike'](_0x14cd8c),_0x3c8515=friendlyDateTime(_0x9cb84a);return Interval['fromDateTimes'](_0x3c8515['minus'](_0x2e44ac),_0x3c8515);}static['fromISO'](_0x2e0845,_0x1c1fcc){const [_0x51f0ec,_0x212195]=(_0x2e0845||'')['split']('/',0x2);if(_0x51f0ec&&_0x212195){let _0x5d93a3,_0x38edc9,_0x359fed,_0x492597;try{_0x5d93a3=DateTime['fromISO'](_0x51f0ec,_0x1c1fcc),_0x38edc9=_0x5d93a3['isValid'];}catch(_0x17f8c1){_0x38edc9=!0x1;}try{_0x359fed=DateTime['fromISO'](_0x212195,_0x1c1fcc),_0x492597=_0x359fed['isValid'];}catch(_0x102773){_0x492597=!0x1;}if(_0x38edc9&&_0x492597)return Interval['fromDateTimes'](_0x5d93a3,_0x359fed);if(_0x38edc9){const _0x45e6e1=Duration['fromISO'](_0x212195,_0x1c1fcc);if(_0x45e6e1['isValid'])return Interval['after'](_0x5d93a3,_0x45e6e1);}else{if(_0x492597){const _0x3a8628=Duration['fromISO'](_0x51f0ec,_0x1c1fcc);if(_0x3a8628['isValid'])return Interval['before'](_0x359fed,_0x3a8628);}}}return Interval['invalid']('unparsable','the\x20input\x20\x22'+_0x2e0845+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20ISO\x208601');}static['isInterval'](_0x112c62){return _0x112c62&&_0x112c62['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'](_0x1c58fd='milliseconds'){return this['isValid']?this['toDuration'](_0x1c58fd)['get'](_0x1c58fd):NaN;}['count'](_0x492971='milliseconds',_0x2ec97a){if(!this['isValid'])return NaN;const _0x2c0f7a=this['start']['startOf'](_0x492971,_0x2ec97a);let _0x48beda;return _0x48beda=_0x2ec97a?.['useLocaleWeeks']?this['end']['reconfigure']({'locale':_0x2c0f7a['locale']}):this['end'],_0x48beda=_0x48beda['startOf'](_0x492971,_0x2ec97a),Math['floor'](_0x48beda['diff'](_0x2c0f7a,_0x492971)['get'](_0x492971))+(_0x48beda['valueOf']()!==this['end']['valueOf']());}['hasSame'](_0x19b680){return!!this['isValid']&&(this['isEmpty']()||this['e']['minus'](0x1)['hasSame'](this['s'],_0x19b680));}['isEmpty'](){return this['s']['valueOf']()===this['e']['valueOf']();}['isAfter'](_0x49ed13){return!!this['isValid']&&this['s']>_0x49ed13;}['isBefore'](_0x416fc6){return!!this['isValid']&&this['e']<=_0x416fc6;}['contains'](_0x141726){return!!this['isValid']&&(this['s']<=_0x141726&&this['e']>_0x141726);}['set']({start:_0x4049e3,end:_0x538185}={}){return this['isValid']?Interval['fromDateTimes'](_0x4049e3||this['s'],_0x538185||this['e']):this;}['splitAt'](..._0x503469){if(!this['isValid'])return[];const _0xc7a76d=_0x503469['map'](friendlyDateTime)['filter'](_0x1aca62=>this['contains'](_0x1aca62))['sort']((_0x4747c6,_0x91dcf7)=>_0x4747c6['toMillis']()-_0x91dcf7['toMillis']()),_0x42e1c9=[];let {s:_0xc8b0f4}=this,_0x59274e=0x0;for(;_0xc8b0f4<this['e'];){const _0x137418=_0xc7a76d[_0x59274e]||this['e'],_0x1c5f10=+_0x137418>+this['e']?this['e']:_0x137418;_0x42e1c9['push'](Interval['fromDateTimes'](_0xc8b0f4,_0x1c5f10)),_0xc8b0f4=_0x1c5f10,_0x59274e+=0x1;}return _0x42e1c9;}['splitBy'](_0x457451){const _0x32e0e2=Duration['fromDurationLike'](_0x457451);if(!this['isValid']||!_0x32e0e2['isValid']||0x0===_0x32e0e2['as']('milliseconds'))return[];let _0x562157,{s:_0x139553}=this,_0x5b9b29=0x1;const _0x410799=[];for(;_0x139553<this['e'];){const _0xa586a4=this['start']['plus'](_0x32e0e2['mapUnits'](_0x377287=>_0x377287*_0x5b9b29));_0x562157=+_0xa586a4>+this['e']?this['e']:_0xa586a4,_0x410799['push'](Interval['fromDateTimes'](_0x139553,_0x562157)),_0x139553=_0x562157,_0x5b9b29+=0x1;}return _0x410799;}['divideEqually'](_0x23506c){return this['isValid']?this['splitBy'](this['length']()/_0x23506c)['slice'](0x0,_0x23506c):[];}['overlaps'](_0x27fa01){return this['e']>_0x27fa01['s']&&this['s']<_0x27fa01['e'];}['abutsStart'](_0x2c5f43){return!!this['isValid']&&+this['e']===+_0x2c5f43['s'];}['abutsEnd'](_0x2f5e23){return!!this['isValid']&&+_0x2f5e23['e']===+this['s'];}['engulfs'](_0x1494cc){return!!this['isValid']&&(this['s']<=_0x1494cc['s']&&this['e']>=_0x1494cc['e']);}['equals'](_0x101526){return!(!this['isValid']||!_0x101526['isValid'])&&(this['s']['equals'](_0x101526['s'])&&this['e']['equals'](_0x101526['e']));}['intersection'](_0x5509e3){if(!this['isValid'])return this;const _0x20aee1=this['s']>_0x5509e3['s']?this['s']:_0x5509e3['s'],_0x458e16=this['e']<_0x5509e3['e']?this['e']:_0x5509e3['e'];return _0x20aee1>=_0x458e16?null:Interval['fromDateTimes'](_0x20aee1,_0x458e16);}['union'](_0xd70c77){if(!this['isValid'])return this;const _0x44b182=this['s']<_0xd70c77['s']?this['s']:_0xd70c77['s'],_0x589a1f=this['e']>_0xd70c77['e']?this['e']:_0xd70c77['e'];return Interval['fromDateTimes'](_0x44b182,_0x589a1f);}static['merge'](_0xc245ac){const [_0x52e57c,_0x1d8240]=_0xc245ac['sort']((_0x229e51,_0x4aff50)=>_0x229e51['s']-_0x4aff50['s'])['reduce'](([_0x500139,_0xb1a19e],_0x3e6c2b)=>_0xb1a19e?_0xb1a19e['overlaps'](_0x3e6c2b)||_0xb1a19e['abutsStart'](_0x3e6c2b)?[_0x500139,_0xb1a19e['union'](_0x3e6c2b)]:[_0x500139['concat']([_0xb1a19e]),_0x3e6c2b]:[_0x500139,_0x3e6c2b],[[],null]);return _0x1d8240&&_0x52e57c['push'](_0x1d8240),_0x52e57c;}static['xor'](_0x137eda){let _0x3fccd6=null,_0x1fed91=0x0;const _0xaf6540=[],_0x150502=_0x137eda['map'](_0x1774a0=>[{'time':_0x1774a0['s'],'type':'s'},{'time':_0x1774a0['e'],'type':'e'}]),_0x47630f=Array['prototype']['concat'](..._0x150502)['sort']((_0xf35f97,_0x3ca62c)=>_0xf35f97['time']-_0x3ca62c['time']);for(const _0x3b2a65 of _0x47630f)_0x1fed91+='s'===_0x3b2a65['type']?0x1:-0x1,0x1===_0x1fed91?_0x3fccd6=_0x3b2a65['time']:(_0x3fccd6&&+_0x3fccd6!==+_0x3b2a65['time']&&_0xaf6540['push'](Interval['fromDateTimes'](_0x3fccd6,_0x3b2a65['time'])),_0x3fccd6=null);return Interval['merge'](_0xaf6540);}['difference'](..._0x4c57ef){return Interval['xor']([this]['concat'](_0x4c57ef))['map'](_0x5ee8f5=>this['intersection'](_0x5ee8f5))['filter'](_0x465e7f=>_0x465e7f&&!_0x465e7f['isEmpty']());}['toString'](){return this['isValid']?'['+this['s']['toISO']()+'\x20–\x20'+this['e']['toISO']()+')':INVALID$1;}[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'](_0x4112a2=DATE_SHORT,_0x261a6b={}){return this['isValid']?Formatter['create'](this['s']['loc']['clone'](_0x261a6b),_0x4112a2)['formatInterval'](this):INVALID$1;}['toISO'](_0x90ee7c){return this['isValid']?this['s']['toISO'](_0x90ee7c)+'/'+this['e']['toISO'](_0x90ee7c):INVALID$1;}['toISODate'](){return this['isValid']?this['s']['toISODate']()+'/'+this['e']['toISODate']():INVALID$1;}['toISOTime'](_0x198943){return this['isValid']?this['s']['toISOTime'](_0x198943)+'/'+this['e']['toISOTime'](_0x198943):INVALID$1;}['toFormat'](_0x5ec210,{separator:_0x439507='\x20–\x20'}={}){return this['isValid']?''+this['s']['toFormat'](_0x5ec210)+_0x439507+this['e']['toFormat'](_0x5ec210):INVALID$1;}['toDuration'](_0xd7e6a2,_0x3b8528){return this['isValid']?this['e']['diff'](this['s'],_0xd7e6a2,_0x3b8528):Duration['invalid'](this['invalidReason']);}['mapEndpoints'](_0x348229){return Interval['fromDateTimes'](_0x348229(this['s']),_0x348229(this['e']));}}class Info{static['hasDST'](_0x41bf5a=Settings['defaultZone']){const _0x314e2b=DateTime['now']()['setZone'](_0x41bf5a)['set']({'month':0xc});return!_0x41bf5a['isUniversal']&&_0x314e2b['offset']!==_0x314e2b['set']({'month':0x6})['offset'];}static['isValidIANAZone'](_0x496479){return IANAZone['isValidZone'](_0x496479);}static['normalizeZone'](_0x5a45f6){return normalizeZone(_0x5a45f6,Settings['defaultZone']);}static['getStartOfWeek']({locale:_0x266831=null,locObj:_0x371da4=null}={}){return(_0x371da4||Locale['create'](_0x266831))['getStartOfWeek']();}static['getMinimumDaysInFirstWeek']({locale:_0x469cad=null,locObj:_0x2dd1dc=null}={}){return(_0x2dd1dc||Locale['create'](_0x469cad))['getMinDaysInFirstWeek']();}static['getWeekendWeekdays']({locale:_0xbabe7a=null,locObj:_0x237bf6=null}={}){return(_0x237bf6||Locale['create'](_0xbabe7a))['getWeekendDays']()['slice']();}static['months'](_0x3c193d='long',{locale:_0x5f39b5=null,numberingSystem:_0xb29acf=null,locObj:_0xdf3b3e=null,outputCalendar:_0x3afb03='gregory'}={}){return(_0xdf3b3e||Locale['create'](_0x5f39b5,_0xb29acf,_0x3afb03))['months'](_0x3c193d);}static['monthsFormat'](_0x1a1eab='long',{locale:_0x5f57b8=null,numberingSystem:_0x42a23d=null,locObj:_0x19a1ac=null,outputCalendar:_0x3b04f4='gregory'}={}){return(_0x19a1ac||Locale['create'](_0x5f57b8,_0x42a23d,_0x3b04f4))['months'](_0x1a1eab,!0x0);}static['weekdays'](_0xd56934='long',{locale:_0x3cc074=null,numberingSystem:_0x3697fe=null,locObj:_0x5b4edd=null}={}){return(_0x5b4edd||Locale['create'](_0x3cc074,_0x3697fe,null))['weekdays'](_0xd56934);}static['weekdaysFormat'](_0x2162cb='long',{locale:_0x44d77e=null,numberingSystem:_0x431f25=null,locObj:_0x28886d=null}={}){return(_0x28886d||Locale['create'](_0x44d77e,_0x431f25,null))['weekdays'](_0x2162cb,!0x0);}static['meridiems']({locale:_0x3aaf91=null}={}){return Locale['create'](_0x3aaf91)['meridiems']();}static['eras'](_0x386d4e='short',{locale:_0x41a58d=null}={}){return Locale['create'](_0x41a58d,null,'gregory')['eras'](_0x386d4e);}static['features'](){return{'relative':hasRelative(),'localeWeek':hasLocaleWeekInfo()};}}function dayDiff(_0x18d236,_0x5355c1){const _0x5b4bf6=_0x1a5400=>_0x1a5400['toUTC'](0x0,{'keepLocalTime':!0x0})['startOf']('day')['valueOf'](),_0x1d231c=_0x5b4bf6(_0x5355c1)-_0x5b4bf6(_0x18d236);return Math['floor'](Duration['fromMillis'](_0x1d231c)['as']('days'));}function highOrderDiffs(_0x269d48,_0x20c8cc,_0x5a0bbb){const _0x23fafb=[['years',(_0x10bf51,_0x56be60)=>_0x56be60['year']-_0x10bf51['year']],['quarters',(_0x318328,_0x1517f6)=>_0x1517f6['quarter']-_0x318328['quarter']+0x4*(_0x1517f6['year']-_0x318328['year'])],['months',(_0x182010,_0xcad481)=>_0xcad481['month']-_0x182010['month']+0xc*(_0xcad481['year']-_0x182010['year'])],['weeks',(_0x4f8600,_0x4dfc47)=>{const _0x107178=dayDiff(_0x4f8600,_0x4dfc47);return(_0x107178-_0x107178%0x7)/0x7;}],['days',dayDiff]],_0x5247f1={},_0x10cbf9=_0x269d48;let _0xbeb2e4,_0x328b2e;for(const [_0x48f8f4,_0xc5179f]of _0x23fafb)_0x5a0bbb['indexOf'](_0x48f8f4)>=0x0&&(_0xbeb2e4=_0x48f8f4,_0x5247f1[_0x48f8f4]=_0xc5179f(_0x269d48,_0x20c8cc),_0x328b2e=_0x10cbf9['plus'](_0x5247f1),_0x328b2e>_0x20c8cc?(_0x5247f1[_0x48f8f4]--,(_0x269d48=_0x10cbf9['plus'](_0x5247f1))>_0x20c8cc&&(_0x328b2e=_0x269d48,_0x5247f1[_0x48f8f4]--,_0x269d48=_0x10cbf9['plus'](_0x5247f1))):_0x269d48=_0x328b2e);return[_0x269d48,_0x5247f1,_0x328b2e,_0xbeb2e4];}function diff(_0x77fdc2,_0x402167,_0x3950f5,_0x4eaff9){let [_0x2c735e,_0x42b8d6,_0x5f46b7,_0x2693c2]=highOrderDiffs(_0x77fdc2,_0x402167,_0x3950f5);const _0x2bf0aa=_0x402167-_0x2c735e,_0x5d6eb9=_0x3950f5['filter'](_0x569426=>['hours','minutes','seconds','milliseconds']['indexOf'](_0x569426)>=0x0);0x0===_0x5d6eb9['length']&&(_0x5f46b7<_0x402167&&(_0x5f46b7=_0x2c735e['plus']({[_0x2693c2]:0x1})),_0x5f46b7!==_0x2c735e&&(_0x42b8d6[_0x2693c2]=(_0x42b8d6[_0x2693c2]||0x0)+_0x2bf0aa/(_0x5f46b7-_0x2c735e)));const _0xf08608=Duration['fromObject'](_0x42b8d6,_0x4eaff9);return _0x5d6eb9['length']>0x0?Duration['fromMillis'](_0x2bf0aa,_0x4eaff9)['shiftTo'](..._0x5d6eb9)['plus'](_0xf08608):_0xf08608;}const MISSING_FTP='missing\x20Intl.DateTimeFormat.formatToParts\x20support';function intUnit(_0x3922fe,_0x28053b=_0x585575=>_0x585575){return{'regex':_0x3922fe,'deser':([_0x4dd6a2])=>_0x28053b(parseDigits(_0x4dd6a2))};}const NBSP=String['fromCharCode'](0xa0),spaceOrNBSP='[\x20'+NBSP+']',spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,'g');function fixListRegex(_0x37f69f){return _0x37f69f['replace'](/\./g,'\x5c.?')['replace'](spaceOrNBSPRegExp,spaceOrNBSP);}function stripInsensitivities(_0xf9fde1){return _0xf9fde1['replace'](/\./g,'')['replace'](spaceOrNBSPRegExp,'\x20')['toLowerCase']();}function oneOf(_0x69b022,_0x4653fb){return null===_0x69b022?null:{'regex':RegExp(_0x69b022['map'](fixListRegex)['join']('|')),'deser':([_0x373e3a])=>_0x69b022['findIndex'](_0x201c31=>stripInsensitivities(_0x373e3a)===stripInsensitivities(_0x201c31))+_0x4653fb};}function offset(_0x235de4,_0x403e23){return{'regex':_0x235de4,'deser':([,_0x486eb7,_0xcdb471])=>signedOffset(_0x486eb7,_0xcdb471),'groups':_0x403e23};}function simple(_0x52a3c6){return{'regex':_0x52a3c6,'deser':([_0x183c45])=>_0x183c45};}function escapeToken(_0x14e1f3){return _0x14e1f3['replace'](/[\-\[\]{}()*+?.,\\\^$|#\s]/g,'\x5c$&');}function unitForToken(_0x5b10c4,_0x4a3a82){const _0x4f8c65=digitRegex(_0x4a3a82),_0x13d284=digitRegex(_0x4a3a82,'{2}'),_0x4cb0d6=digitRegex(_0x4a3a82,'{3}'),_0x42cd95=digitRegex(_0x4a3a82,'{4}'),_0x416bae=digitRegex(_0x4a3a82,'{6}'),_0x12b95d=digitRegex(_0x4a3a82,'{1,2}'),_0x6b08d4=digitRegex(_0x4a3a82,'{1,3}'),_0x289135=digitRegex(_0x4a3a82,'{1,6}'),_0x1e43e0=digitRegex(_0x4a3a82,'{1,9}'),_0x4ac5c6=digitRegex(_0x4a3a82,'{2,4}'),_0x25e6b3=digitRegex(_0x4a3a82,'{4,6}'),_0x3270cd=t=>({'regex':RegExp(escapeToken(t['val'])),'deser':([_0x34cf92])=>_0x34cf92,'literal':!0x0}),_0x6779ad=(t=>{if(_0x5b10c4['literal'])return _0x3270cd(t);switch(t['val']){case'G':return oneOf(_0x4a3a82['eras']('short'),0x0);case'GG':return oneOf(_0x4a3a82['eras']('long'),0x0);case'y':return intUnit(_0x289135);case'yy':case'kk':return intUnit(_0x4ac5c6,untruncateYear);case'yyyy':case'kkkk':return intUnit(_0x42cd95);case'yyyyy':return intUnit(_0x25e6b3);case'yyyyyy':return intUnit(_0x416bae);case'M':case'L':case'd':case'H':case'h':case'm':case'q':case's':case'W':return intUnit(_0x12b95d);case'MM':case'LL':case'dd':case'HH':case'hh':case'mm':case'qq':case'ss':case'WW':return intUnit(_0x13d284);case'MMM':return oneOf(_0x4a3a82['months']('short',!0x0),0x1);case'MMMM':return oneOf(_0x4a3a82['months']('long',!0x0),0x1);case'LLL':return oneOf(_0x4a3a82['months']('short',!0x1),0x1);case'LLLL':return oneOf(_0x4a3a82['months']('long',!0x1),0x1);case'o':case'S':return intUnit(_0x6b08d4);case'ooo':case'SSS':return intUnit(_0x4cb0d6);case'u':return simple(_0x1e43e0);case'uu':return simple(_0x12b95d);case'uuu':case'E':case'c':return intUnit(_0x4f8c65);case'a':return oneOf(_0x4a3a82['meridiems'](),0x0);case'EEE':return oneOf(_0x4a3a82['weekdays']('short',!0x1),0x1);case'EEEE':return oneOf(_0x4a3a82['weekdays']('long',!0x1),0x1);case'ccc':return oneOf(_0x4a3a82['weekdays']('short',!0x0),0x1);case'cccc':return oneOf(_0x4a3a82['weekdays']('long',!0x0),0x1);case'Z':case'ZZ':return offset(new RegExp('([+-]'+_0x12b95d['source']+')(?::('+_0x13d284['source']+'))?'),0x2);case'ZZZ':return offset(new RegExp('([+-]'+_0x12b95d['source']+')('+_0x13d284['source']+')?'),0x2);case'z':return simple(/[a-z_+-/]{1,256}?/i);case'\x20':return simple(/[^\S\n\r]/);default:return _0x3270cd(t);}})(_0x5b10c4)||{'invalidReason':MISSING_FTP};return _0x6779ad['token']=_0x5b10c4,_0x6779ad;}const partTypeStyleToTokenVal={'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'}};function tokenForPart(_0x4092ff,_0x15d45a,_0x422816){const {type:_0x40debf,value:_0x3d7b82}=_0x4092ff;if('literal'===_0x40debf){const _0xfa92=/^\s+$/['test'](_0x3d7b82);return{'literal':!_0xfa92,'val':_0xfa92?'\x20':_0x3d7b82};}const _0x45534c=_0x15d45a[_0x40debf];let _0x451eb4=_0x40debf;'hour'===_0x40debf&&(_0x451eb4=null!=_0x15d45a['hour12']?_0x15d45a['hour12']?'hour12':'hour24':null!=_0x15d45a['hourCycle']?'h11'===_0x15d45a['hourCycle']||'h12'===_0x15d45a['hourCycle']?'hour12':'hour24':_0x422816['hour12']?'hour12':'hour24');let _0x2b1e9e=partTypeStyleToTokenVal[_0x451eb4];if('object'==typeof _0x2b1e9e&&(_0x2b1e9e=_0x2b1e9e[_0x45534c]),_0x2b1e9e)return{'literal':!0x1,'val':_0x2b1e9e};}function buildRegex(_0x47c3e9){const _0x15d290=_0x47c3e9['map'](_0x87fe75=>_0x87fe75['regex'])['reduce']((_0xee192e,_0x53aee7)=>_0xee192e+'('+_0x53aee7['source']+')','');return['^'+_0x15d290+'$',_0x47c3e9];}function match(_0x15bc9a,_0x45e894,_0x3d1edc){const _0x2bbc3a=_0x15bc9a['match'](_0x45e894);if(_0x2bbc3a){const _0x1aa11f={};let _0x40a0a6=0x1;for(const _0x10d7eb in _0x3d1edc)if(hasOwnProperty(_0x3d1edc,_0x10d7eb)){const _0xfce8dc=_0x3d1edc[_0x10d7eb],_0x3795f6=_0xfce8dc['groups']?_0xfce8dc['groups']+0x1:0x1;!_0xfce8dc['literal']&&_0xfce8dc['token']&&(_0x1aa11f[_0xfce8dc['token']['val'][0x0]]=_0xfce8dc['deser'](_0x2bbc3a['slice'](_0x40a0a6,_0x40a0a6+_0x3795f6))),_0x40a0a6+=_0x3795f6;}return[_0x2bbc3a,_0x1aa11f];}return[_0x2bbc3a,{}];}function dateTimeFromMatches(_0x5b3299){let _0x1fb8e3,_0x628241=null;isUndefined(_0x5b3299['z'])||(_0x628241=IANAZone['create'](_0x5b3299['z'])),isUndefined(_0x5b3299['Z'])||(_0x628241||(_0x628241=new FixedOffsetZone(_0x5b3299['Z'])),_0x1fb8e3=_0x5b3299['Z']),isUndefined(_0x5b3299['q'])||(_0x5b3299['M']=0x3*(_0x5b3299['q']-0x1)+0x1),isUndefined(_0x5b3299['h'])||(_0x5b3299['h']<0xc&&0x1===_0x5b3299['a']?_0x5b3299['h']+=0xc:0xc===_0x5b3299['h']&&0x0===_0x5b3299['a']&&(_0x5b3299['h']=0x0)),0x0===_0x5b3299['G']&&_0x5b3299['y']&&(_0x5b3299['y']=-_0x5b3299['y']),isUndefined(_0x5b3299['u'])||(_0x5b3299['S']=parseMillis(_0x5b3299['u']));const _0x3f60ae=Object['keys'](_0x5b3299)['reduce']((_0x319a6e,_0x1a4562)=>{const _0x27dab2=(_0x4fe80b=>{switch(_0x4fe80b){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;}})(_0x1a4562);return _0x27dab2&&(_0x319a6e[_0x27dab2]=_0x5b3299[_0x1a4562]),_0x319a6e;},{});return[_0x3f60ae,_0x628241,_0x1fb8e3];}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime['fromMillis'](0x16a2e5618e3)),dummyDateTimeCache;}function maybeExpandMacroToken(_0x6bc6c,_0x383bf1){if(_0x6bc6c['literal'])return _0x6bc6c;const _0x10ddb7=formatOptsToTokens(Formatter['macroTokenToFormatOpts'](_0x6bc6c['val']),_0x383bf1);return null==_0x10ddb7||_0x10ddb7['includes'](void 0x0)?_0x6bc6c:_0x10ddb7;}function expandMacroTokens(_0x2a0c01,_0x487646){return Array['prototype']['concat'](..._0x2a0c01['map'](t=>maybeExpandMacroToken(t,_0x487646)));}class TokenParser{constructor(_0x2f5228,_0x193302){if(this['locale']=_0x2f5228,this['format']=_0x193302,this['tokens']=expandMacroTokens(Formatter['parseFormat'](_0x193302),_0x2f5228),this['units']=this['tokens']['map'](t=>unitForToken(t,_0x2f5228)),this['disqualifyingUnit']=this['units']['find'](t=>t['invalidReason']),!this['disqualifyingUnit']){const [_0x111fff,_0x1c24e3]=buildRegex(this['units']);this['regex']=RegExp(_0x111fff,'i'),this['handlers']=_0x1c24e3;}}['explainFromTokens'](_0x289430){if(this['isValid']){const [_0x3fc6c0,_0x375b10]=match(_0x289430,this['regex'],this['handlers']),[_0x3d631d,_0x5f5680,_0x5990dc]=_0x375b10?dateTimeFromMatches(_0x375b10):[null,null,void 0x0];if(hasOwnProperty(_0x375b10,'a')&&hasOwnProperty(_0x375b10,'H'))throw new ConflictingSpecificationError('Can\x27t\x20include\x20meridiem\x20when\x20specifying\x2024-hour\x20format');return{'input':_0x289430,'tokens':this['tokens'],'regex':this['regex'],'rawMatches':_0x3fc6c0,'matches':_0x375b10,'result':_0x3d631d,'zone':_0x5f5680,'specificOffset':_0x5990dc};}return{'input':_0x289430,'tokens':this['tokens'],'invalidReason':this['invalidReason']};}get['isValid'](){return!this['disqualifyingUnit'];}get['invalidReason'](){return this['disqualifyingUnit']?this['disqualifyingUnit']['invalidReason']:null;}}function explainFromTokens(_0x48efb7,_0x2616e1,_0x473d9d){return new TokenParser(_0x48efb7,_0x473d9d)['explainFromTokens'](_0x2616e1);}function parseFromTokens(_0x231813,_0x3fda67,_0x2f3930){const {result:_0x36bbb0,zone:_0x52112b,specificOffset:_0x49ad54,invalidReason:_0x292381}=explainFromTokens(_0x231813,_0x3fda67,_0x2f3930);return[_0x36bbb0,_0x52112b,_0x49ad54,_0x292381];}function formatOptsToTokens(_0x2fc00c,_0x229ca7){if(!_0x2fc00c)return null;const _0x575556=Formatter['create'](_0x229ca7,_0x2fc00c)['dtFormatter'](getDummyDateTime()),_0xcc7494=_0x575556['formatToParts'](),_0x5d921c=_0x575556['resolvedOptions']();return _0xcc7494['map'](_0x556248=>tokenForPart(_0x556248,_0x2fc00c,_0x5d921c));}const INVALID='Invalid\x20DateTime',MAX_DATE=0x1eb208c2dc0000;function unsupportedZone(_0xf187d6){return new Invalid('unsupported\x20zone','the\x20zone\x20\x22'+_0xf187d6['name']+'\x22\x20is\x20not\x20supported');}function possiblyCachedWeekData(_0x4ebae4){return null===_0x4ebae4['weekData']&&(_0x4ebae4['weekData']=gregorianToWeek(_0x4ebae4['c'])),_0x4ebae4['weekData'];}function possiblyCachedLocalWeekData(_0x43db8a){return null===_0x43db8a['localWeekData']&&(_0x43db8a['localWeekData']=gregorianToWeek(_0x43db8a['c'],_0x43db8a['loc']['getMinDaysInFirstWeek'](),_0x43db8a['loc']['getStartOfWeek']())),_0x43db8a['localWeekData'];}function clone(_0xbe5d92,_0x3d750c){const _0x863420={'ts':_0xbe5d92['ts'],'zone':_0xbe5d92['zone'],'c':_0xbe5d92['c'],'o':_0xbe5d92['o'],'loc':_0xbe5d92['loc'],'invalid':_0xbe5d92['invalid']};return new DateTime({..._0x863420,..._0x3d750c,'old':_0x863420});}function fixOffset(_0x366ffe,_0x389e42,_0x959cb7){let _0x313872=_0x366ffe-0x3c*_0x389e42*0x3e8;const _0x2fadd0=_0x959cb7['offset'](_0x313872);if(_0x389e42===_0x2fadd0)return[_0x313872,_0x389e42];_0x313872-=0x3c*(_0x2fadd0-_0x389e42)*0x3e8;const _0x1091e9=_0x959cb7['offset'](_0x313872);return _0x2fadd0===_0x1091e9?[_0x313872,_0x2fadd0]:[_0x366ffe-0x3c*Math['min'](_0x2fadd0,_0x1091e9)*0x3e8,Math['max'](_0x2fadd0,_0x1091e9)];}function tsToObj(_0x1f6d49,_0x56a1a3){const _0x41142a=new Date(_0x1f6d49+=0x3c*_0x56a1a3*0x3e8);return{'year':_0x41142a['getUTCFullYear'](),'month':_0x41142a['getUTCMonth']()+0x1,'day':_0x41142a['getUTCDate'](),'hour':_0x41142a['getUTCHours'](),'minute':_0x41142a['getUTCMinutes'](),'second':_0x41142a['getUTCSeconds'](),'millisecond':_0x41142a['getUTCMilliseconds']()};}function objToTS(_0x481b30,_0x55d613,_0x15be25){return fixOffset(objToLocalTS(_0x481b30),_0x55d613,_0x15be25);}function adjustTime(_0x30f106,_0x1dd3bd){const _0x5a7927=_0x30f106['o'],_0x36ad72=_0x30f106['c']['year']+Math['trunc'](_0x1dd3bd['years']),_0x914b6c=_0x30f106['c']['month']+Math['trunc'](_0x1dd3bd['months'])+0x3*Math['trunc'](_0x1dd3bd['quarters']),_0x35f078={..._0x30f106['c'],'year':_0x36ad72,'month':_0x914b6c,'day':Math['min'](_0x30f106['c']['day'],daysInMonth(_0x36ad72,_0x914b6c))+Math['trunc'](_0x1dd3bd['days'])+0x7*Math['trunc'](_0x1dd3bd['weeks'])},_0x58a1f9=Duration['fromObject']({'years':_0x1dd3bd['years']-Math['trunc'](_0x1dd3bd['years']),'quarters':_0x1dd3bd['quarters']-Math['trunc'](_0x1dd3bd['quarters']),'months':_0x1dd3bd['months']-Math['trunc'](_0x1dd3bd['months']),'weeks':_0x1dd3bd['weeks']-Math['trunc'](_0x1dd3bd['weeks']),'days':_0x1dd3bd['days']-Math['trunc'](_0x1dd3bd['days']),'hours':_0x1dd3bd['hours'],'minutes':_0x1dd3bd['minutes'],'seconds':_0x1dd3bd['seconds'],'milliseconds':_0x1dd3bd['milliseconds']})['as']('milliseconds'),_0xb39393=objToLocalTS(_0x35f078);let [_0x3cfd99,_0x42405f]=fixOffset(_0xb39393,_0x5a7927,_0x30f106['zone']);return 0x0!==_0x58a1f9&&(_0x3cfd99+=_0x58a1f9,_0x42405f=_0x30f106['zone']['offset'](_0x3cfd99)),{'ts':_0x3cfd99,'o':_0x42405f};}function parseDataToDateTime(_0x456866,_0x2e89c0,_0x41bf27,_0x1c5dc8,_0x194229,_0x2c39c2){const {setZone:_0xb78422,zone:_0x37dc76}=_0x41bf27;if(_0x456866&&0x0!==Object['keys'](_0x456866)['length']||_0x2e89c0){const _0x33a1c4=_0x2e89c0||_0x37dc76,_0x51ddaf=DateTime['fromObject'](_0x456866,{..._0x41bf27,'zone':_0x33a1c4,'specificOffset':_0x2c39c2});return _0xb78422?_0x51ddaf:_0x51ddaf['setZone'](_0x37dc76);}return DateTime['invalid'](new Invalid('unparsable','the\x20input\x20\x22'+_0x194229+'\x22\x20can\x27t\x20be\x20parsed\x20as\x20'+_0x1c5dc8));}function toTechFormat(_0x425ced,_0x10d62f,_0x5431ee=!0x0){return _0x425ced['isValid']?Formatter['create'](Locale['create']('en-US'),{'allowZ':_0x5431ee,'forceSimple':!0x0})['formatDateTimeFromString'](_0x425ced,_0x10d62f):null;}function toISODate(_0x33c07c,_0x3be3ac){const _0x2f72ff=_0x33c07c['c']['year']>0x270f||_0x33c07c['c']['year']<0x0;let _0x2df8a4='';return _0x2f72ff&&_0x33c07c['c']['year']>=0x0&&(_0x2df8a4+='+'),_0x2df8a4+=padStart(_0x33c07c['c']['year'],_0x2f72ff?0x6:0x4),_0x3be3ac?(_0x2df8a4+='-',_0x2df8a4+=padStart(_0x33c07c['c']['month']),_0x2df8a4+='-',_0x2df8a4+=padStart(_0x33c07c['c']['day'])):(_0x2df8a4+=padStart(_0x33c07c['c']['month']),_0x2df8a4+=padStart(_0x33c07c['c']['day'])),_0x2df8a4;}function toISOTime(_0x1e1e25,_0x27931a,_0x2ce27,_0x54acdc,_0x2e8feb,_0x5d3678){let _0x2995c4=padStart(_0x1e1e25['c']['hour']);return _0x27931a?(_0x2995c4+=':',_0x2995c4+=padStart(_0x1e1e25['c']['minute']),0x0===_0x1e1e25['c']['millisecond']&&0x0===_0x1e1e25['c']['second']&&_0x2ce27||(_0x2995c4+=':')):_0x2995c4+=padStart(_0x1e1e25['c']['minute']),0x0===_0x1e1e25['c']['millisecond']&&0x0===_0x1e1e25['c']['second']&&_0x2ce27||(_0x2995c4+=padStart(_0x1e1e25['c']['second']),0x0===_0x1e1e25['c']['millisecond']&&_0x54acdc||(_0x2995c4+='.',_0x2995c4+=padStart(_0x1e1e25['c']['millisecond'],0x3))),_0x2e8feb&&(_0x1e1e25['isOffsetFixed']&&0x0===_0x1e1e25['offset']&&!_0x5d3678?_0x2995c4+='Z':_0x1e1e25['o']<0x0?(_0x2995c4+='-',_0x2995c4+=padStart(Math['trunc'](-_0x1e1e25['o']/0x3c)),_0x2995c4+=':',_0x2995c4+=padStart(Math['trunc'](-_0x1e1e25['o']%0x3c))):(_0x2995c4+='+',_0x2995c4+=padStart(Math['trunc'](_0x1e1e25['o']/0x3c)),_0x2995c4+=':',_0x2995c4+=padStart(Math['trunc'](_0x1e1e25['o']%0x3c)))),_0x5d3678&&(_0x2995c4+='['+_0x1e1e25['zone']['ianaName']+']'),_0x2995c4;}const defaultUnitValues={'month':0x1,'day':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultWeekUnitValues={'weekNumber':0x1,'weekday':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},defaultOrdinalUnitValues={'ordinal':0x1,'hour':0x0,'minute':0x0,'second':0x0,'millisecond':0x0},orderedUnits=['year','month','day','hour','minute','second','millisecond'],orderedWeekUnits=['weekYear','weekNumber','weekday','hour','minute','second','millisecond'],orderedOrdinalUnits=['year','ordinal','hour','minute','second','millisecond'];function normalizeUnit(_0x3b7a5b){const _0x289d04={'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'}[_0x3b7a5b['toLowerCase']()];if(!_0x289d04)throw new InvalidUnitError(_0x3b7a5b);return _0x289d04;}function normalizeUnitWithLocalWeeks(_0x1f5b5f){switch(_0x1f5b5f['toLowerCase']()){case'localweekday':case'localweekdays':return'localWeekday';case'localweeknumber':case'localweeknumbers':return'localWeekNumber';case'localweekyear':case'localweekyears':return'localWeekYear';default:return normalizeUnit(_0x1f5b5f);}}function guessOffsetForZone(_0x26c499){if(void 0x0===zoneOffsetTs&&(zoneOffsetTs=Settings['now']()),'iana'!==_0x26c499['type'])return _0x26c499['offset'](zoneOffsetTs);const _0x3e6069=_0x26c499['name'];let _0x2bba54=zoneOffsetGuessCache['get'](_0x3e6069);return void 0x0===_0x2bba54&&(_0x2bba54=_0x26c499['offset'](zoneOffsetTs),zoneOffsetGuessCache['set'](_0x3e6069,_0x2bba54)),_0x2bba54;}function quickDT(_0x2535fd,_0x451707){const _0x4e4a6a=normalizeZone(_0x451707['zone'],Settings['defaultZone']);if(!_0x4e4a6a['isValid'])return DateTime['invalid'](unsupportedZone(_0x4e4a6a));const _0x276f45=Locale['fromObject'](_0x451707);let _0x38107b,_0x5cc9ba;if(isUndefined(_0x2535fd['year']))_0x38107b=Settings['now']();else{for(const _0x219a14 of orderedUnits)isUndefined(_0x2535fd[_0x219a14])&&(_0x2535fd[_0x219a14]=defaultUnitValues[_0x219a14]);const _0x48a078=hasInvalidGregorianData(_0x2535fd)||hasInvalidTimeData(_0x2535fd);if(_0x48a078)return DateTime['invalid'](_0x48a078);const _0x4e4918=guessOffsetForZone(_0x4e4a6a);[_0x38107b,_0x5cc9ba]=objToTS(_0x2535fd,_0x4e4918,_0x4e4a6a);}return new DateTime({'ts':_0x38107b,'zone':_0x4e4a6a,'loc':_0x276f45,'o':_0x5cc9ba});}function diffRelative(_0x56efeb,_0x5b4540,_0x29bcdf){const _0x11eb31=!!isUndefined(_0x29bcdf['round'])||_0x29bcdf['round'],_0x3eb1ed=(_0x318820,_0x3a06cf)=>{return _0x318820=roundTo(_0x318820,_0x11eb31||_0x29bcdf['calendary']?0x0:0x2,!0x0),_0x5b4540['loc']['clone'](_0x29bcdf)['relFormatter'](_0x29bcdf)['format'](_0x318820,_0x3a06cf);},_0x5e104b=_0x30e866=>_0x29bcdf['calendary']?_0x5b4540['hasSame'](_0x56efeb,_0x30e866)?0x0:_0x5b4540['startOf'](_0x30e866)['diff'](_0x56efeb['startOf'](_0x30e866),_0x30e866)['get'](_0x30e866):_0x5b4540['diff'](_0x56efeb,_0x30e866)['get'](_0x30e866);if(_0x29bcdf['unit'])return _0x3eb1ed(_0x5e104b(_0x29bcdf['unit']),_0x29bcdf['unit']);for(const _0x1d27c4 of _0x29bcdf['units']){const _0x57d51b=_0x5e104b(_0x1d27c4);if(Math['abs'](_0x57d51b)>=0x1)return _0x3eb1ed(_0x57d51b,_0x1d27c4);}return _0x3eb1ed(_0x56efeb>_0x5b4540?-0x0:0x0,_0x29bcdf['units'][_0x29bcdf['units']['length']-0x1]);}function lastOpts(_0x34f324){let _0x4fef12,_0x458325={};return _0x34f324['length']>0x0&&'object'==typeof _0x34f324[_0x34f324['length']-0x1]?(_0x458325=_0x34f324[_0x34f324['length']-0x1],_0x4fef12=Array['from'](_0x34f324)['slice'](0x0,_0x34f324['length']-0x1)):_0x4fef12=Array['from'](_0x34f324),[_0x458325,_0x4fef12];}let zoneOffsetTs;const zoneOffsetGuessCache=new Map();class DateTime{constructor(_0x4011e8){const _0x43ea6d=_0x4011e8['zone']||Settings['defaultZone'];let _0x219e02=_0x4011e8['invalid']||(Number['isNaN'](_0x4011e8['ts'])?new Invalid('invalid\x20input'):null)||(_0x43ea6d['isValid']?null:unsupportedZone(_0x43ea6d));this['ts']=isUndefined(_0x4011e8['ts'])?Settings['now']():_0x4011e8['ts'];let _0x28beb4=null,_0x39d3e0=null;if(!_0x219e02){if(_0x4011e8['old']&&_0x4011e8['old']['ts']===this['ts']&&_0x4011e8['old']['zone']['equals'](_0x43ea6d))[_0x28beb4,_0x39d3e0]=[_0x4011e8['old']['c'],_0x4011e8['old']['o']];else{const _0x1b6bb7=isNumber(_0x4011e8['o'])&&!_0x4011e8['old']?_0x4011e8['o']:_0x43ea6d['offset'](this['ts']);_0x28beb4=tsToObj(this['ts'],_0x1b6bb7),_0x219e02=Number['isNaN'](_0x28beb4['year'])?new Invalid('invalid\x20input'):null,_0x28beb4=_0x219e02?null:_0x28beb4,_0x39d3e0=_0x219e02?null:_0x1b6bb7;}}this['_zone']=_0x43ea6d,this['loc']=_0x4011e8['loc']||Locale['create'](),this['invalid']=_0x219e02,this['weekData']=null,this['localWeekData']=null,this['c']=_0x28beb4,this['o']=_0x39d3e0,this['isLuxonDateTime']=!0x0;}static['now'](){return new DateTime({});}static['local'](){const [_0x1affa1,_0x1689b6]=lastOpts(arguments),[_0x2eca5a,_0x57d7d1,_0x414536,_0x45cf7e,_0x45c875,_0x491121,_0x13ab96]=_0x1689b6;return quickDT({'year':_0x2eca5a,'month':_0x57d7d1,'day':_0x414536,'hour':_0x45cf7e,'minute':_0x45c875,'second':_0x491121,'millisecond':_0x13ab96},_0x1affa1);}static['utc'](){const [_0x242b91,_0x2e1069]=lastOpts(arguments),[_0x207e12,_0x449a03,_0x1bafe5,_0x2e3e57,_0x586366,_0x4ab47f,_0x30d465]=_0x2e1069;return _0x242b91['zone']=FixedOffsetZone['utcInstance'],quickDT({'year':_0x207e12,'month':_0x449a03,'day':_0x1bafe5,'hour':_0x2e3e57,'minute':_0x586366,'second':_0x4ab47f,'millisecond':_0x30d465},_0x242b91);}static['fromJSDate'](_0x59f232,_0x28c168={}){const _0x487302=isDate(_0x59f232)?_0x59f232['valueOf']():NaN;if(Number['isNaN'](_0x487302))return DateTime['invalid']('invalid\x20input');const _0x5901ab=normalizeZone(_0x28c168['zone'],Settings['defaultZone']);return _0x5901ab['isValid']?new DateTime({'ts':_0x487302,'zone':_0x5901ab,'loc':Locale['fromObject'](_0x28c168)}):DateTime['invalid'](unsupportedZone(_0x5901ab));}static['fromMillis'](_0x13749d,_0x39ec45={}){if(isNumber(_0x13749d))return _0x13749d<-MAX_DATE||_0x13749d>MAX_DATE?DateTime['invalid']('Timestamp\x20out\x20of\x20range'):new DateTime({'ts':_0x13749d,'zone':normalizeZone(_0x39ec45['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x39ec45)});throw new InvalidArgumentError('fromMillis\x20requires\x20a\x20numerical\x20input,\x20but\x20received\x20a\x20'+typeof _0x13749d+'\x20with\x20value\x20'+_0x13749d);}static['fromSeconds'](_0x47b7da,_0x56d119={}){if(isNumber(_0x47b7da))return new DateTime({'ts':0x3e8*_0x47b7da,'zone':normalizeZone(_0x56d119['zone'],Settings['defaultZone']),'loc':Locale['fromObject'](_0x56d119)});throw new InvalidArgumentError('fromSeconds\x20requires\x20a\x20numerical\x20input');}static['fromObject'](_0x15d693,_0x539ff6={}){_0x15d693=_0x15d693||{};const _0x54b601=normalizeZone(_0x539ff6['zone'],Settings['defaultZone']);if(!_0x54b601['isValid'])return DateTime['invalid'](unsupportedZone(_0x54b601));const _0x5df4c9=Locale['fromObject'](_0x539ff6),_0x26da13=normalizeObject(_0x15d693,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x3504c0,startOfWeek:_0xfe1afb}=usesLocalWeekValues(_0x26da13,_0x5df4c9),_0x53a880=Settings['now'](),_0x106c5f=isUndefined(_0x539ff6['specificOffset'])?_0x54b601['offset'](_0x53a880):_0x539ff6['specificOffset'],_0x344c48=!isUndefined(_0x26da13['ordinal']),_0x714a23=!isUndefined(_0x26da13['year']),_0x3b092f=!isUndefined(_0x26da13['month'])||!isUndefined(_0x26da13['day']),_0x2de43d=_0x714a23||_0x3b092f,_0x556788=_0x26da13['weekYear']||_0x26da13['weekNumber'];if((_0x2de43d||_0x344c48)&&_0x556788)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x3b092f&&_0x344c48)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');const _0x335cab=_0x556788||_0x26da13['weekday']&&!_0x2de43d;let _0x4596ca,_0x1f724b,_0x498726=tsToObj(_0x53a880,_0x106c5f);_0x335cab?(_0x4596ca=orderedWeekUnits,_0x1f724b=defaultWeekUnitValues,_0x498726=gregorianToWeek(_0x498726,_0x3504c0,_0xfe1afb)):_0x344c48?(_0x4596ca=orderedOrdinalUnits,_0x1f724b=defaultOrdinalUnitValues,_0x498726=gregorianToOrdinal(_0x498726)):(_0x4596ca=orderedUnits,_0x1f724b=defaultUnitValues);let _0x2ee61c=!0x1;for(const _0x14ad31 of _0x4596ca){isUndefined(_0x26da13[_0x14ad31])?_0x26da13[_0x14ad31]=_0x2ee61c?_0x1f724b[_0x14ad31]:_0x498726[_0x14ad31]:_0x2ee61c=!0x0;}const _0x3781e5=(_0x335cab?hasInvalidWeekData(_0x26da13,_0x3504c0,_0xfe1afb):_0x344c48?hasInvalidOrdinalData(_0x26da13):hasInvalidGregorianData(_0x26da13))||hasInvalidTimeData(_0x26da13);if(_0x3781e5)return DateTime['invalid'](_0x3781e5);const _0x33a6ef=_0x335cab?weekToGregorian(_0x26da13,_0x3504c0,_0xfe1afb):_0x344c48?ordinalToGregorian(_0x26da13):_0x26da13,[_0x327d84,_0x226123]=objToTS(_0x33a6ef,_0x106c5f,_0x54b601),_0x4bbc1c=new DateTime({'ts':_0x327d84,'zone':_0x54b601,'o':_0x226123,'loc':_0x5df4c9});return _0x26da13['weekday']&&_0x2de43d&&_0x15d693['weekday']!==_0x4bbc1c['weekday']?DateTime['invalid']('mismatched\x20weekday','you\x20can\x27t\x20specify\x20both\x20a\x20weekday\x20of\x20'+_0x26da13['weekday']+'\x20and\x20a\x20date\x20of\x20'+_0x4bbc1c['toISO']()):_0x4bbc1c['isValid']?_0x4bbc1c:DateTime['invalid'](_0x4bbc1c['invalid']);}static['fromISO'](_0x5a9ebc,_0x20cea8={}){const [_0x57720e,_0x50ac0b]=parseISODate(_0x5a9ebc);return parseDataToDateTime(_0x57720e,_0x50ac0b,_0x20cea8,'ISO\x208601',_0x5a9ebc);}static['fromRFC2822'](_0x7b7dbb,_0x507e60={}){const [_0x5696a1,_0x5a12fc]=parseRFC2822Date(_0x7b7dbb);return parseDataToDateTime(_0x5696a1,_0x5a12fc,_0x507e60,'RFC\x202822',_0x7b7dbb);}static['fromHTTP'](_0x599631,_0x209086={}){const [_0x5c6550,_0x49876c]=parseHTTPDate(_0x599631);return parseDataToDateTime(_0x5c6550,_0x49876c,_0x209086,'HTTP',_0x209086);}static['fromFormat'](_0x1bc6f6,_0x1806c4,_0x79c707={}){if(isUndefined(_0x1bc6f6)||isUndefined(_0x1806c4))throw new InvalidArgumentError('fromFormat\x20requires\x20an\x20input\x20string\x20and\x20a\x20format');const {locale:_0xbaa29b=null,numberingSystem:_0x2cc6eb=null}=_0x79c707,_0x3e5cd6=Locale['fromOpts']({'locale':_0xbaa29b,'numberingSystem':_0x2cc6eb,'defaultToEN':!0x0}),[_0x561191,_0x1dd0ee,_0x4b2d23,_0x338d7c]=parseFromTokens(_0x3e5cd6,_0x1bc6f6,_0x1806c4);return _0x338d7c?DateTime['invalid'](_0x338d7c):parseDataToDateTime(_0x561191,_0x1dd0ee,_0x79c707,'format\x20'+_0x1806c4,_0x1bc6f6,_0x4b2d23);}static['fromString'](_0x36d92e,_0x57ca5e,_0x31ab7e={}){return DateTime['fromFormat'](_0x36d92e,_0x57ca5e,_0x31ab7e);}static['fromSQL'](_0x2c96e0,_0x27e483={}){const [_0x143024,_0x474c1f]=parseSQL(_0x2c96e0);return parseDataToDateTime(_0x143024,_0x474c1f,_0x27e483,'SQL',_0x2c96e0);}static['invalid'](_0x9188de,_0x206c02=null){if(!_0x9188de)throw new InvalidArgumentError('need\x20to\x20specify\x20a\x20reason\x20the\x20DateTime\x20is\x20invalid');const _0x135ae7=_0x9188de instanceof Invalid?_0x9188de:new Invalid(_0x9188de,_0x206c02);if(Settings['throwOnInvalid'])throw new InvalidDateTimeError(_0x135ae7);return new DateTime({'invalid':_0x135ae7});}static['isDateTime'](_0x4807ff){return _0x4807ff&&_0x4807ff['isLuxonDateTime']||!0x1;}static['parseFormatForOpts'](_0x4812e2,_0x48a443={}){const _0x27e560=formatOptsToTokens(_0x4812e2,Locale['fromObject'](_0x48a443));return _0x27e560?_0x27e560['map'](t=>t?t['val']:null)['join'](''):null;}static['expandFormat'](_0x2d4c6e,_0x1bd19d={}){return expandMacroTokens(Formatter['parseFormat'](_0x2d4c6e),Locale['fromObject'](_0x1bd19d))['map'](t=>t['val'])['join']('');}static['resetCache'](){zoneOffsetTs=void 0x0,zoneOffsetGuessCache['clear']();}['get'](_0x3c8682){return this[_0x3c8682];}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']?possiblyCachedWeekData(this)['weekYear']:NaN;}get['weekNumber'](){return this['isValid']?possiblyCachedWeekData(this)['weekNumber']:NaN;}get['weekday'](){return this['isValid']?possiblyCachedWeekData(this)['weekday']:NaN;}get['isWeekend'](){return this['isValid']&&this['loc']['getWeekendDays']()['includes'](this['weekday']);}get['localWeekday'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekday']:NaN;}get['localWeekNumber'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekNumber']:NaN;}get['localWeekYear'](){return this['isValid']?possiblyCachedLocalWeekData(this)['weekYear']:NaN;}get['ordinal'](){return this['isValid']?gregorianToOrdinal(this['c'])['ordinal']:NaN;}get['monthShort'](){return this['isValid']?Info['months']('short',{'locObj':this['loc']})[this['month']-0x1]:null;}get['monthLong'](){return this['isValid']?Info['months']('long',{'locObj':this['loc']})[this['month']-0x1]:null;}get['weekdayShort'](){return this['isValid']?Info['weekdays']('short',{'locObj':this['loc']})[this['weekday']-0x1]:null;}get['weekdayLong'](){return this['isValid']?Info['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 _0x4800f=0x5265c00,_0x23b02e=0xea60,_0x1c2838=objToLocalTS(this['c']),_0x46edb9=this['zone']['offset'](_0x1c2838-_0x4800f),_0x5687fb=this['zone']['offset'](_0x1c2838+_0x4800f),_0x3b1beb=this['zone']['offset'](_0x1c2838-_0x46edb9*_0x23b02e),_0x130743=this['zone']['offset'](_0x1c2838-_0x5687fb*_0x23b02e);if(_0x3b1beb===_0x130743)return[this];const _0x379cb2=_0x1c2838-_0x3b1beb*_0x23b02e,_0x349541=_0x1c2838-_0x130743*_0x23b02e,_0x45d590=tsToObj(_0x379cb2,_0x3b1beb),_0x204888=tsToObj(_0x349541,_0x130743);return _0x45d590['hour']===_0x204888['hour']&&_0x45d590['minute']===_0x204888['minute']&&_0x45d590['second']===_0x204888['second']&&_0x45d590['millisecond']===_0x204888['millisecond']?[clone(this,{'ts':_0x379cb2}),clone(this,{'ts':_0x349541})]:[this];}get['isInLeapYear'](){return isLeapYear(this['year']);}get['daysInMonth'](){return daysInMonth(this['year'],this['month']);}get['daysInYear'](){return this['isValid']?daysInYear(this['year']):NaN;}get['weeksInWeekYear'](){return this['isValid']?weeksInWeekYear(this['weekYear']):NaN;}get['weeksInLocalWeekYear'](){return this['isValid']?weeksInWeekYear(this['localWeekYear'],this['loc']['getMinDaysInFirstWeek'](),this['loc']['getStartOfWeek']()):NaN;}['resolvedLocaleOptions'](_0x30f594={}){const {locale:_0x5c93c8,numberingSystem:_0x220897,calendar:_0xa50f42}=Formatter['create'](this['loc']['clone'](_0x30f594),_0x30f594)['resolvedOptions'](this);return{'locale':_0x5c93c8,'numberingSystem':_0x220897,'outputCalendar':_0xa50f42};}['toUTC'](_0x1ce8a8=0x0,_0x4e26d7={}){return this['setZone'](FixedOffsetZone['instance'](_0x1ce8a8),_0x4e26d7);}['toLocal'](){return this['setZone'](Settings['defaultZone']);}['setZone'](_0xb20dd4,{keepLocalTime:_0x418064=!0x1,keepCalendarTime:_0x18aad8=!0x1}={}){if((_0xb20dd4=normalizeZone(_0xb20dd4,Settings['defaultZone']))['equals'](this['zone']))return this;if(_0xb20dd4['isValid']){let _0x2c36bc=this['ts'];if(_0x418064||_0x18aad8){const _0x2c52ed=_0xb20dd4['offset'](this['ts']),_0x575258=this['toObject']();[_0x2c36bc]=objToTS(_0x575258,_0x2c52ed,_0xb20dd4);}return clone(this,{'ts':_0x2c36bc,'zone':_0xb20dd4});}return DateTime['invalid'](unsupportedZone(_0xb20dd4));}['reconfigure']({locale:_0x485494,numberingSystem:_0x72d1f4,outputCalendar:_0x5765c8}={}){return clone(this,{'loc':this['loc']['clone']({'locale':_0x485494,'numberingSystem':_0x72d1f4,'outputCalendar':_0x5765c8})});}['setLocale'](_0x5552af){return this['reconfigure']({'locale':_0x5552af});}['set'](_0xe7fef0){if(!this['isValid'])return this;const _0x1be891=normalizeObject(_0xe7fef0,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:_0x551c4b,startOfWeek:_0x5aa6aa}=usesLocalWeekValues(_0x1be891,this['loc']),_0x2419df=!isUndefined(_0x1be891['weekYear'])||!isUndefined(_0x1be891['weekNumber'])||!isUndefined(_0x1be891['weekday']),_0x31fa3a=!isUndefined(_0x1be891['ordinal']),_0x4b10ff=!isUndefined(_0x1be891['year']),_0x86ec1b=!isUndefined(_0x1be891['month'])||!isUndefined(_0x1be891['day']),_0x200483=_0x4b10ff||_0x86ec1b,_0x45b2de=_0x1be891['weekYear']||_0x1be891['weekNumber'];if((_0x200483||_0x31fa3a)&&_0x45b2de)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20weekYear/weekNumber\x20units\x20with\x20year/month/day\x20or\x20ordinals');if(_0x86ec1b&&_0x31fa3a)throw new ConflictingSpecificationError('Can\x27t\x20mix\x20ordinal\x20dates\x20with\x20month/day');let _0x220fa1;_0x2419df?_0x220fa1=weekToGregorian({...gregorianToWeek(this['c'],_0x551c4b,_0x5aa6aa),..._0x1be891},_0x551c4b,_0x5aa6aa):isUndefined(_0x1be891['ordinal'])?(_0x220fa1={...this['toObject'](),..._0x1be891},isUndefined(_0x1be891['day'])&&(_0x220fa1['day']=Math['min'](daysInMonth(_0x220fa1['year'],_0x220fa1['month']),_0x220fa1['day']))):_0x220fa1=ordinalToGregorian({...gregorianToOrdinal(this['c']),..._0x1be891});const [_0x22788a,_0x18880b]=objToTS(_0x220fa1,this['o'],this['zone']);return clone(this,{'ts':_0x22788a,'o':_0x18880b});}['plus'](_0x41deb0){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x41deb0)));}['minus'](_0x41d6d9){if(!this['isValid'])return this;return clone(this,adjustTime(this,Duration['fromDurationLike'](_0x41d6d9)['negate']()));}['startOf'](_0x5d56c8,{useLocaleWeeks:_0x20befc=!0x1}={}){if(!this['isValid'])return this;const _0x2c865d={},_0x331bca=Duration['normalizeUnit'](_0x5d56c8);switch(_0x331bca){case'years':_0x2c865d['month']=0x1;case'quarters':case'months':_0x2c865d['day']=0x1;case'weeks':case'days':_0x2c865d['hour']=0x0;case'hours':_0x2c865d['minute']=0x0;case'minutes':_0x2c865d['second']=0x0;case'seconds':_0x2c865d['millisecond']=0x0;}if('weeks'===_0x331bca){if(_0x20befc){const _0x7b4132=this['loc']['getStartOfWeek'](),{weekday:_0xda6d98}=this;_0xda6d98<_0x7b4132&&(_0x2c865d['weekNumber']=this['weekNumber']-0x1),_0x2c865d['weekday']=_0x7b4132;}else _0x2c865d['weekday']=0x1;}if('quarters'===_0x331bca){const _0xec79da=Math['ceil'](this['month']/0x3);_0x2c865d['month']=0x3*(_0xec79da-0x1)+0x1;}return this['set'](_0x2c865d);}['endOf'](_0x3358b8,_0xa983ad){return this['isValid']?this['plus']({[_0x3358b8]:0x1})['startOf'](_0x3358b8,_0xa983ad)['minus'](0x1):this;}['toFormat'](_0x2d8393,_0x55948b={}){return this['isValid']?Formatter['create'](this['loc']['redefaultToEN'](_0x55948b))['formatDateTimeFromString'](this,_0x2d8393):INVALID;}['toLocaleString'](_0x562d3d=DATE_SHORT,_0x17731f={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x17731f),_0x562d3d)['formatDateTime'](this):INVALID;}['toLocaleParts'](_0x517cde={}){return this['isValid']?Formatter['create'](this['loc']['clone'](_0x517cde),_0x517cde)['formatDateTimeParts'](this):[];}['toISO']({format:_0x2ad512='extended',suppressSeconds:_0x24f5bd=!0x1,suppressMilliseconds:_0x8c4efb=!0x1,includeOffset:_0x40541b=!0x0,extendedZone:_0x45ee37=!0x1}={}){if(!this['isValid'])return null;const _0x2629d8='extended'===_0x2ad512;let _0x3366a9=toISODate(this,_0x2629d8);return _0x3366a9+='T',_0x3366a9+=toISOTime(this,_0x2629d8,_0x24f5bd,_0x8c4efb,_0x40541b,_0x45ee37),_0x3366a9;}['toISODate']({format:_0x3b81e5='extended'}={}){return this['isValid']?toISODate(this,'extended'===_0x3b81e5):null;}['toISOWeekDate'](){return toTechFormat(this,'kkkk-\x27W\x27WW-c');}['toISOTime']({suppressMilliseconds:_0x526f03=!0x1,suppressSeconds:_0x4e98df=!0x1,includeOffset:_0x1c7696=!0x0,includePrefix:_0x19c01c=!0x1,extendedZone:_0x226b51=!0x1,format:_0x209fe4='extended'}={}){if(!this['isValid'])return null;return(_0x19c01c?'T':'')+toISOTime(this,'extended'===_0x209fe4,_0x4e98df,_0x526f03,_0x1c7696,_0x226b51);}['toRFC2822'](){return toTechFormat(this,'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20ZZZ',!0x1);}['toHTTP'](){return toTechFormat(this['toUTC'](),'EEE,\x20dd\x20LLL\x20yyyy\x20HH:mm:ss\x20\x27GMT\x27');}['toSQLDate'](){return this['isValid']?toISODate(this,!0x0):null;}['toSQLTime']({includeOffset:_0x5637a3=!0x0,includeZone:_0x219c06=!0x1,includeOffsetSpace:_0x5d06b5=!0x0}={}){let _0x24b655='HH:mm:ss.SSS';return(_0x219c06||_0x5637a3)&&(_0x5d06b5&&(_0x24b655+='\x20'),_0x219c06?_0x24b655+='z':_0x5637a3&&(_0x24b655+='ZZ')),toTechFormat(this,_0x24b655,!0x0);}['toSQL'](_0x1d258b={}){return this['isValid']?this['toSQLDate']()+'\x20'+this['toSQLTime'](_0x1d258b):null;}['toString'](){return this['isValid']?this['toISO']():INVALID;}[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'](_0x5b2339={}){if(!this['isValid'])return{};const _0x56cb1d={...this['c']};return _0x5b2339['includeConfig']&&(_0x56cb1d['outputCalendar']=this['outputCalendar'],_0x56cb1d['numberingSystem']=this['loc']['numberingSystem'],_0x56cb1d['locale']=this['loc']['locale']),_0x56cb1d;}['toJSDate'](){return new Date(this['isValid']?this['ts']:NaN);}['diff'](_0x5a1ec4,_0x1ef4e9='milliseconds',_0x2842cd={}){if(!this['isValid']||!_0x5a1ec4['isValid'])return Duration['invalid']('created\x20by\x20diffing\x20an\x20invalid\x20DateTime');const _0x8b1cca={'locale':this['locale'],'numberingSystem':this['numberingSystem'],..._0x2842cd},_0x493bc=maybeArray(_0x1ef4e9)['map'](Duration['normalizeUnit']),_0x228cbf=_0x5a1ec4['valueOf']()>this['valueOf'](),_0x13e9e7=diff(_0x228cbf?this:_0x5a1ec4,_0x228cbf?_0x5a1ec4:this,_0x493bc,_0x8b1cca);return _0x228cbf?_0x13e9e7['negate']():_0x13e9e7;}['diffNow'](_0x274665='milliseconds',_0x58592a={}){return this['diff'](DateTime['now'](),_0x274665,_0x58592a);}['until'](_0x34be63){return this['isValid']?Interval['fromDateTimes'](this,_0x34be63):this;}['hasSame'](_0x466e96,_0x26ef0d,_0x3f6b02){if(!this['isValid'])return!0x1;const _0x212c16=_0x466e96['valueOf'](),_0x52cd90=this['setZone'](_0x466e96['zone'],{'keepLocalTime':!0x0});return _0x52cd90['startOf'](_0x26ef0d,_0x3f6b02)<=_0x212c16&&_0x212c16<=_0x52cd90['endOf'](_0x26ef0d,_0x3f6b02);}['equals'](_0x46a90f){return this['isValid']&&_0x46a90f['isValid']&&this['valueOf']()===_0x46a90f['valueOf']()&&this['zone']['equals'](_0x46a90f['zone'])&&this['loc']['equals'](_0x46a90f['loc']);}['toRelative'](_0x151e97={}){if(!this['isValid'])return null;const _0x5cdfd2=_0x151e97['base']||DateTime['fromObject']({},{'zone':this['zone']}),_0x3201cc=_0x151e97['padding']?this<_0x5cdfd2?-_0x151e97['padding']:_0x151e97['padding']:0x0;let _0x1bb2d6=['years','months','days','hours','minutes','seconds'],_0x16e333=_0x151e97['unit'];return Array['isArray'](_0x151e97['unit'])&&(_0x1bb2d6=_0x151e97['unit'],_0x16e333=void 0x0),diffRelative(_0x5cdfd2,this['plus'](_0x3201cc),{..._0x151e97,'numeric':'always','units':_0x1bb2d6,'unit':_0x16e333});}['toRelativeCalendar'](_0x442530={}){return this['isValid']?diffRelative(_0x442530['base']||DateTime['fromObject']({},{'zone':this['zone']}),this,{..._0x442530,'numeric':'auto','units':['years','months','days'],'calendary':!0x0}):null;}static['min'](..._0x34197d){if(!_0x34197d['every'](DateTime['isDateTime']))throw new InvalidArgumentError('min\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x34197d,_0x33b212=>_0x33b212['valueOf'](),Math['min']);}static['max'](..._0x24df6a){if(!_0x24df6a['every'](DateTime['isDateTime']))throw new InvalidArgumentError('max\x20requires\x20all\x20arguments\x20be\x20DateTimes');return bestBy(_0x24df6a,_0x3b0eff=>_0x3b0eff['valueOf'](),Math['max']);}static['fromFormatExplain'](_0x4dab44,_0x2bbf77,_0x2845a0={}){const {locale:_0x1b9208=null,numberingSystem:_0x55e7db=null}=_0x2845a0;return explainFromTokens(Locale['fromOpts']({'locale':_0x1b9208,'numberingSystem':_0x55e7db,'defaultToEN':!0x0}),_0x4dab44,_0x2bbf77);}static['fromStringExplain'](_0x262718,_0x3b85d9,_0x18971c={}){return DateTime['fromFormatExplain'](_0x262718,_0x3b85d9,_0x18971c);}static['buildFormatParser'](_0x5397b7,_0x5d3528={}){const {locale:_0x291d25=null,numberingSystem:_0x39cd10=null}=_0x5d3528,_0x2946f4=Locale['fromOpts']({'locale':_0x291d25,'numberingSystem':_0x39cd10,'defaultToEN':!0x0});return new TokenParser(_0x2946f4,_0x5397b7);}static['fromFormatParser'](_0x4f5737,_0x4801ed,_0x13afee={}){if(isUndefined(_0x4f5737)||isUndefined(_0x4801ed))throw new InvalidArgumentError('fromFormatParser\x20requires\x20an\x20input\x20string\x20and\x20a\x20format\x20parser');const {locale:_0x5bd23c=null,numberingSystem:_0x446a13=null}=_0x13afee,_0x413007=Locale['fromOpts']({'locale':_0x5bd23c,'numberingSystem':_0x446a13,'defaultToEN':!0x0});if(!_0x413007['equals'](_0x4801ed['locale']))throw new InvalidArgumentError('fromFormatParser\x20called\x20with\x20a\x20locale\x20of\x20'+_0x413007+',\x20but\x20the\x20format\x20parser\x20was\x20created\x20for\x20'+_0x4801ed['locale']);const {result:_0x22c9eb,zone:_0x3f59a8,specificOffset:_0x291052,invalidReason:_0xa23cef}=_0x4801ed['explainFromTokens'](_0x4f5737);return _0xa23cef?DateTime['invalid'](_0xa23cef):parseDataToDateTime(_0x22c9eb,_0x3f59a8,_0x13afee,'format\x20'+_0x4801ed['format'],_0x4f5737,_0x291052);}static get['DATE_SHORT'](){return DATE_SHORT;}static get['DATE_MED'](){return DATE_MED;}static get['DATE_MED_WITH_WEEKDAY'](){return DATE_MED_WITH_WEEKDAY;}static get['DATE_FULL'](){return DATE_FULL;}static get['DATE_HUGE'](){return DATE_HUGE;}static get['TIME_SIMPLE'](){return TIME_SIMPLE;}static get['TIME_WITH_SECONDS'](){return TIME_WITH_SECONDS;}static get['TIME_WITH_SHORT_OFFSET'](){return TIME_WITH_SHORT_OFFSET;}static get['TIME_WITH_LONG_OFFSET'](){return TIME_WITH_LONG_OFFSET;}static get['TIME_24_SIMPLE'](){return TIME_24_SIMPLE;}static get['TIME_24_WITH_SECONDS'](){return TIME_24_WITH_SECONDS;}static get['TIME_24_WITH_SHORT_OFFSET'](){return TIME_24_WITH_SHORT_OFFSET;}static get['TIME_24_WITH_LONG_OFFSET'](){return TIME_24_WITH_LONG_OFFSET;}static get['DATETIME_SHORT'](){return DATETIME_SHORT;}static get['DATETIME_SHORT_WITH_SECONDS'](){return DATETIME_SHORT_WITH_SECONDS;}static get['DATETIME_MED'](){return DATETIME_MED;}static get['DATETIME_MED_WITH_SECONDS'](){return DATETIME_MED_WITH_SECONDS;}static get['DATETIME_MED_WITH_WEEKDAY'](){return DATETIME_MED_WITH_WEEKDAY;}static get['DATETIME_FULL'](){return DATETIME_FULL;}static get['DATETIME_FULL_WITH_SECONDS'](){return DATETIME_FULL_WITH_SECONDS;}static get['DATETIME_HUGE'](){return DATETIME_HUGE;}static get['DATETIME_HUGE_WITH_SECONDS'](){return DATETIME_HUGE_WITH_SECONDS;}}function friendlyDateTime(_0x356fb0){if(DateTime['isDateTime'](_0x356fb0))return _0x356fb0;if(_0x356fb0&&_0x356fb0['valueOf']&&isNumber(_0x356fb0['valueOf']()))return DateTime['fromJSDate'](_0x356fb0);if(_0x356fb0&&'object'==typeof _0x356fb0)return DateTime['fromObject'](_0x356fb0);throw new InvalidArgumentError('Unknown\x20datetime\x20argument:\x20'+_0x356fb0+',\x20of\x20type\x20'+typeof _0x356fb0);}function getDateTimeFormatter(_0x57d618={},_0x1b627f){if(void 0x0!==_0x57d618['dateTimeFormat']&&'function'!=typeof _0x57d618['dateTimeFormat'])throw new CKEditorError('invalid-date-time-format');return _0x468ecf=>{const _0x4c4506='string'==typeof _0x468ecf?DateTime['fromISO'](_0x468ecf):DateTime['fromJSDate'](_0x468ecf),_0x342947=DateTime['now'](),_0x453094=Math['floor'](_0x342947['diff'](_0x4c4506,'days')['days']);return _0x57d618['dateTimeFormat']?_0x57d618['dateTimeFormat'](_0x4c4506['toJSDate'](),_0x1b627f&&_0x1b627f['t']?_0x1b627f['t']:void 0x0):0x0===_0x453094?_0x1b627f?getTranslation$h(_0x1b627f,'Today')+'\x20'+_0x4c4506['toFormat']('hh:mma'):_0x4c4506['toFormat']('\x27Today\x27\x20hh:mma'):0x1===_0x453094?_0x1b627f?getTranslation$h(_0x1b627f,'Yesterday')+'\x20'+_0x4c4506['toFormat']('hh:mma'):_0x4c4506['toFormat']('\x27Yesterday\x27\x20hh:mma'):_0x453094<0x7?_0x1b627f?getTranslation$h(_0x1b627f,'Last')+'\x20'+getTranslation$h(_0x1b627f,_0x4c4506['toFormat']('EEEE'))+'\x20'+_0x4c4506['toFormat']('hh:mma'):_0x4c4506['toFormat']('\x27Last\x27\x20EEEE\x20hh:mma'):_0x4c4506['toFormat']('LL-dd-yyyy\x20hh:mma');};}function getMarkerDomElement(_0x53f96f,_0x599d3f){const _0x1c08fb=_0x53f96f['mapper']['markerNameToElements'](_0x599d3f['name']);if(!_0x1c08fb)return null;const _0x1129e5=first(_0x1c08fb['values']());return _0x53f96f['view']['domConverter']['mapViewToDom'](_0x1129e5)||null;}function getAllMarkersDomElementsSorted(_0x2ed23d,_0x4314fd){if(0x0===_0x4314fd['length'])return null;const _0x39f7d2=[],_0x51bbac=_0x2ed23d['view']['domConverter'];for(const _0x5d6567 of _0x4314fd){const _0x23b464=_0x2ed23d['mapper']['markerNameToElements'](_0x5d6567['name']);if(!_0x23b464)continue;const _0x178d5d=Array['from'](_0x23b464)['map'](_0x4f61f4=>_0x51bbac['mapViewToDom'](_0x4f61f4))['filter'](_0x27d22e=>!!_0x27d22e);_0x39f7d2['push'](..._0x178d5d);}if(0x0===_0x39f7d2['length'])return null;const _0x45284d=[];for(const _0x77083c of _0x39f7d2){const _0x51a655=_0x77083c['getClientRects']()['item'](0x0);_0x51a655&&_0x45284d['push']({'x':_0x51a655['x'],'y':_0x51a655['y'],'domElement':_0x77083c});}return 0x0===_0x45284d['length']?null:(_0x45284d['sort']((_0x5b9cd2,_0xb9e1ee)=>_0x5b9cd2['y']-_0xb9e1ee['y']||_0x5b9cd2['x']-_0xb9e1ee['x']),_0x45284d['map'](_0x5c982f=>_0x5c982f['domElement']));}function trimHtml(_0x28f7e2,{limit:_0x3a3316,suffix:_0x2a8f75='...'}){const _0x596b45=[];let _0x129aa2=0x0;const _0x28fd31=_0x28f7e2['replace'](/</g,'\x0a<')['replace'](/>/g,'>\x0a')['replace'](/^\n/g,'')['replace'](/\n$/g,'')['split']('\x0a');for(let _0x198afa=0x0;_0x198afa<_0x28fd31['length'];_0x198afa++){let _0x499ddd=_0x28fd31[_0x198afa];const _0x4aff56=splitCharactersToArray(_0x499ddd);if(_0x499ddd['startsWith']('<')){if(_0x129aa2>=_0x3a3316){const _0x5e8d63=_0x499ddd['match'](/[a-zA-Z]+/);if(!_0x5e8d63){_0x28fd31[_0x198afa]='';continue;}const _0x177673=_0x5e8d63[0x0];_0x499ddd['startsWith']('</')?(_0x596b45['length']&&(_0x499ddd=''),_0x596b45['pop']()):(_0x596b45['push'](_0x177673),_0x499ddd='');}}else{if(_0x129aa2>=_0x3a3316)_0x499ddd='';else{if(_0x129aa2+_0x4aff56['length']>=_0x3a3316){let _0x309926=_0x3a3316-_0x129aa2;if('\x20'===_0x4aff56[_0x309926-0x1])_0x309926--;else{const _0x4f5a2a=_0x4aff56['slice'](_0x309926)['indexOf']('\x20');-0x1!==_0x4f5a2a?_0x309926+=_0x4f5a2a:_0x309926=_0x499ddd['length'];}_0x499ddd=_0x4aff56['slice'](0x0,_0x309926)['join']('')+_0x2a8f75,_0x129aa2=_0x3a3316;}else _0x129aa2+=_0x4aff56['length'];}}_0x28fd31[_0x198afa]=_0x499ddd;}return _0x28fd31['join']('\x0a')['replace'](/\n/g,'');}function splitCharactersToArray(_0x594c6e){const _0x4fc705=[];for(let _0x1d3e4b=0x0;_0x1d3e4b<_0x594c6e['length'];_0x1d3e4b++){const _0x18dc88=_0x594c6e['substring'](_0x1d3e4b)['match'](/^&[a-z0-9#]+;/);if(_0x18dc88){const _0xe9c64b=_0x18dc88[0x0];_0x4fc705['push'](_0xe9c64b),_0x1d3e4b+=_0xe9c64b['length']-0x1;}else _0x4fc705['push'](_0x594c6e[_0x1d3e4b]);}return _0x4fc705;}class ConfirmView extends View{['submitView'];['cancelView'];['focusTracker'];['keystrokes'];['focusCycler'];['focusables'];constructor(_0x38d1e8){super(_0x38d1e8);const _0x543a9e=this['bindTemplate'];this['set']('message',getTranslation$h(_0x38d1e8,'Are\x20you\x20sure?')),this['submitView']=this['_createButtonView'](_0x38d1e8,getTranslation$h(_0x38d1e8,'Yes'),IconCheck,'submit'),this['cancelView']=this['_createButtonView'](_0x38d1e8,getTranslation$h(_0x38d1e8,'No'),IconCancel,'cancel'),this['focusables']=this['createCollection']([this['submitView'],this['cancelView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'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':_0x543a9e['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'](_0x48057d,_0x3a3539,_0x2ddd66,_0x2a9744){const _0x1db625=new ButtonView(_0x48057d);return _0x1db625['label']=_0x3a3539,_0x1db625['icon']=_0x2ddd66,_0x1db625['extendTemplate']({'attributes':{'class':'ck-confirm-view-'+_0x2a9744}}),_0x1db625['on']('execute',()=>this['fire'](_0x2a9744)),_0x1db625;}['_setupKeyboardNavigation'](){this['focusables']['forEach'](_0x9cb592=>{this['keystrokes']['listenTo'](_0x9cb592['element']),this['focusTracker']['add'](_0x9cb592['element']);}),this['keystrokes']['set']('esc',(_0x2c22ef,_0x2037f7)=>{this['fire']('cancel'),_0x2037f7();});}}function ConfirmMixin(_0x5624f2){return class extends _0x5624f2{['showConfirm'](_0xf85328,_0x2c4bc4){return this['confirmView']=new ConfirmView(this['locale']),this['confirmView']['render'](),this['confirmView']['message']=_0xf85328,this['confirmView']['once']('cancel',()=>{this['_removeConfirm']();}),this['confirmView']['once']('submit',()=>{this['_removeConfirm']();}),_0x2c4bc4['appendChild'](this['confirmView']['element']),_0x2c4bc4['classList']['add']('ck-confirm-view-active'),this['registerChild'](this['confirmView']),this['confirmView']['focus'](),this['set']('isConfirm',!0x0),this['on']('change:isConfirm',(_0x50c0d8,_0x3034b0,_0x2e4f18)=>{_0x2e4f18||_0x2c4bc4['classList']['remove']('ck-confirm-view-active');}),new Promise(_0x47225e=>this['confirmView']['on']('submit',_0x47225e));}['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 hashObject(_0x368963){let _0x37a0d9=0x0,_0x45f5ab=0x0;for(const _0x3b6913 of objectToNumberGenerator(_0x368963))_0x37a0d9=(_0x37a0d9<<0x5)-_0x37a0d9+_0x3b6913,_0x37a0d9&=_0x37a0d9,[_0x37a0d9,_0x45f5ab]=[_0x45f5ab,_0x37a0d9];return toString$1(_0x37a0d9)+toString$1(_0x45f5ab);}function*toNumberGenerator(_0x58a864){null==_0x58a864||null==_0x58a864?yield 0x12b9b0a1:0x0===_0x58a864||!0x1===_0x58a864?yield 0x0:0x1===_0x58a864||0x1==_0x58a864?yield 0x1:Array['isArray'](_0x58a864)?yield*arrayToNumberGenerator(_0x58a864):'object'==typeof _0x58a864?yield*objectToNumberGenerator(_0x58a864):'string'==typeof _0x58a864?yield*stringToNumberGenerator(_0x58a864):'number'==typeof _0x58a864&&(yield _0x58a864);}function*objectToNumberGenerator(_0x17f739){if(yield charCode('{'),_0x17f739){const _0x7712ca=Object['keys'](_0x17f739)['sort']();for(const _0x2f406b of _0x7712ca){yield*stringToNumberGenerator(_0x2f406b),yield charCode(':');const _0x1ad2da=_0x17f739[_0x2f406b];yield*toNumberGenerator(_0x1ad2da);}}yield charCode('}');}function*arrayToNumberGenerator(_0x4b4c37){for(const _0x3f6fc1 of _0x4b4c37)yield*toNumberGenerator(_0x3f6fc1);}function*stringToNumberGenerator(_0x33ef25){yield charCode('\x22');for(const _0x3d4496 of _0x33ef25)yield charCode(_0x3d4496);yield charCode('\x22');}function charCode(_0x2f5640){return _0x2f5640['charCodeAt'](0x0);}function toString$1(_0x546424){return(_0x546424*=Math['sign'](_0x546424))['toString'](0x24);}const blackListedConfigOptions=['initialData','context','toolbar','rootsAttributes'],blackListedPlugins$2=['WebSocketGateway','RevisionTracker','Autosave','WordCount','DocumentOutline','WProofreader'];function skipRtcPlugins(_0x178a94,_0x4c290f,_0x371bcb,_0x3c93f7=[]){const _0xea895c='string'==typeof _0x178a94?_0x371bcb['get'](_0x178a94)['constructor']:_0x178a94['prototype']['constructor'];if(_0x4c290f['has'](_0xea895c))return _0x4c290f['get'](_0xea895c);_0x4c290f['set'](_0xea895c,!0x0);const _0x189c24=[...blackListedPlugins$2,..._0x3c93f7]['map'](_0x1e4191=>{if(_0x371bcb['has'](_0x1e4191))return _0x371bcb['get'](_0x1e4191)['constructor'];})['filter'](_0x1ab3e2=>_0x1ab3e2);if(_0xea895c&&_0x189c24['includes'](_0xea895c))return _0x4c290f['set'](_0xea895c,!0x1),!0x1;if(!_0xea895c['requires'])return _0x4c290f['set'](_0xea895c,!0x0),!0x0;const _0xe820f3=_0xea895c['requires']['every'](_0x138e3d=>skipRtcPlugins(_0x138e3d,_0x4c290f,_0x371bcb,_0x3c93f7));return _0x4c290f['set'](_0xea895c,_0xe820f3),_0xe820f3;}function sanitizeEditorConfig(_0x82c46a,_0x250fd4){const _0x11cc96={};for(const _0x46dd60 of _0x82c46a['config']['names']())blackListedConfigOptions['includes'](_0x46dd60)||(_0x11cc96[_0x46dd60]=_0x82c46a['config']['get'](_0x46dd60));const _0xb59a71=_0x11cc96['plugins']||[],_0x47fe1a=_0x82c46a['constructor']['builtinPlugins']||[],_0x39def9=_0xb59a71['length']?_0xb59a71:_0x47fe1a,_0x4632bb=_0x11cc96['extraPlugins']||[];delete _0x11cc96['extraPlugins'];const _0x4b6948=_0x11cc96['removePlugins']||[];delete _0x11cc96['removePlugins'];const _0x5b01b3=_0x82c46a['_context']['config']['get']('plugins')||[],_0x2337a0=_0x39def9['concat'](_0x4632bb)['concat'](_0x5b01b3)['map'](_0x4aabb0=>'string'==typeof _0x4aabb0?_0x47fe1a['find'](_0x3b2a66=>_0x3b2a66['pluginName']==_0x4aabb0):_0x4aabb0)['filter'](_0x151875=>!_0x4b6948['includes'](_0x151875)&&!_0x4b6948['includes'](_0x151875['pluginName'])),_0x1dc4a1=Array['from'](new Set(_0x2337a0)),_0x237d7a=new Map();return _0x11cc96['plugins']=_0x1dc4a1['filter'](_0x2f9588=>skipRtcPlugins(_0x2f9588,_0x237d7a,_0x82c46a['plugins'],_0x250fd4)),_0x11cc96;}function surroundingMarkersDetector(_0x109c6a,_0x3550b1){const _0x492dcd=[];_0x109c6a['document']['selection']['on']('change:range',()=>{const _0x742dc=getSurroundingMarkers(_0x109c6a,_0x109c6a['document']['selection']['focus']),_0xab0975=[],_0x47f34d=[],_0x167fee=[];for(const _0x2fef67 of _0x492dcd)_0x742dc['includes'](_0x2fef67)||_0xab0975['push'](_0x2fef67);for(const _0x290d20 of _0x742dc)_0x492dcd['includes'](_0x290d20)||_0x47f34d['push'](_0x290d20),_0x167fee['push'](_0x290d20);(_0xab0975['length']||_0x47f34d['length'])&&_0x3550b1({'left':_0xab0975,'entered':_0x47f34d}),_0x492dcd['length']=0x0,_0x492dcd['push'](..._0x167fee);});}function getSurroundingMarkers(_0x139061,_0x527695){const _0x3ba576=[];for(const _0x55b140 of _0x139061['markers']){const _0x1aa68d=_0x55b140['getRange']();(_0x1aa68d['containsPosition'](_0x527695)||_0x1aa68d['start']['isEqual'](_0x527695)||_0x1aa68d['end']['isEqual'](_0x527695))&&_0x3ba576['push'](_0x55b140);}return _0x3ba576;}const FOCUS_ANNOTATION_KEYSTROKE='Ctrl+Shift+E';function setupThreadKeyboardNavigation(_0x1865eb,_0x2c04c9){const _0x2e7f36=_0x1865eb['element'];_0x1865eb['keystrokes']['listenTo'](_0x2e7f36);for(const _0x2d5fd0 of _0x2c04c9)addViewToFocusCyclerNavigation(_0x1865eb,_0x2d5fd0);_0x2c04c9['on']('change',(_0x546b61,_0x27c6c7)=>{for(const _0x2330da of _0x27c6c7['removed'])removeViewFromFocusCyclerNavigation(_0x1865eb,_0x2330da);for(const _0x56ea4d of Array['from'](_0x27c6c7['added'])['reverse']())addViewToFocusCyclerNavigation(_0x1865eb,_0x56ea4d);}),_0x1865eb['keystrokes']['set']('enter',(_0x3f02ea,_0x256b61)=>{_0x2e7f36===_0x3f02ea['target']&&(_0x1865eb['focusCycler']['focusFirst'](),_0x256b61());},{'filter':_0x1e6f92=>_0x1e6f92['target']===_0x2e7f36}),_0x1865eb['keystrokes']['set']('esc',(_0x3b8c38,_0x2ca1ca)=>{_0x2e7f36!==_0x3b8c38['target']?_0x1865eb['focus']():_0x1865eb['fire']('escape'),_0x2ca1ca();}),_0x1865eb['keystrokes']['set']('arrowdown',(_0x6f04a5,_0x5c9b64)=>{_0x2e7f36===_0x6f04a5['target']&&(_0x1865eb['fire']('arrowdown'),_0x5c9b64());}),_0x1865eb['keystrokes']['set']('arrowup',(_0x20ccf1,_0x2376bf)=>{_0x2e7f36===_0x20ccf1['target']&&(_0x1865eb['fire']('arrowup'),_0x2376bf());});}function addViewToFocusCyclerNavigation(_0x3362b2,_0x13a398){_0x13a398['isRendered']&&(_0x3362b2['focusTracker']['add'](_0x13a398['element']),_0x3362b2['keystrokes']['listenTo'](_0x13a398['element']),isViewWithFocusCycler(_0x13a398)&&areFocusCyclerActionsCompatible(_0x3362b2['focusCycler'],_0x13a398['focusCycler'])&&_0x3362b2['focusCycler']['chain'](_0x13a398['focusCycler']));}function removeViewFromFocusCyclerNavigation(_0x51a8c,_0x325b81){_0x51a8c['focusTracker']['remove'](_0x325b81['element']),_0x51a8c['keystrokes']['stopListening'](_0x325b81['element']),isViewWithFocusCycler(_0x325b81)&&_0x51a8c['focusCycler']['unchain'](_0x325b81['focusCycler']);}function areFocusCyclerActionsCompatible(_0x560dcc,_0x3f68c3){const _0xc098b6=_0x560dcc['actions'],_0x18e6e8=_0x3f68c3['actions'];for(const _0xb8cfb7 of Object['keys'](_0xc098b6))if(_0xb8cfb7 in _0x18e6e8&&_0xc098b6[_0xb8cfb7]!==_0x18e6e8[_0xb8cfb7])return!0x1;return!0x0;}class Diff{['diff'](_0x173830,_0x22f2f5,_0x2407a6={}){let _0x181e6f;'function'==typeof _0x2407a6?(_0x181e6f=_0x2407a6,_0x2407a6={}):'callback'in _0x2407a6&&(_0x181e6f=_0x2407a6['callback']);const _0x3baefb=this['castInput'](_0x173830,_0x2407a6),_0x302a99=this['castInput'](_0x22f2f5,_0x2407a6),_0x4dfe66=this['removeEmpty'](this['tokenize'](_0x3baefb,_0x2407a6)),_0x129a25=this['removeEmpty'](this['tokenize'](_0x302a99,_0x2407a6));return this['diffWithOptionsObj'](_0x4dfe66,_0x129a25,_0x2407a6,_0x181e6f);}['diffWithOptionsObj'](_0x41eac8,_0x1750ba,_0x1c9f1e,_0x1b9a86){var _0x1fa701;const _0x4ae344=_0x265a59=>(_0x265a59=this['postProcess'](_0x265a59,_0x1c9f1e),_0x1b9a86?void setTimeout(function(){_0x1b9a86(_0x265a59);},0x0):_0x265a59),_0x1daa68=_0x1750ba['length'],_0x5e1587=_0x41eac8['length'];let _0xeda3ea=0x1,_0xb63b9a=_0x1daa68+_0x5e1587;null!=_0x1c9f1e['maxEditLength']&&(_0xb63b9a=Math['min'](_0xb63b9a,_0x1c9f1e['maxEditLength']));const _0x39e27b=null!==(_0x1fa701=_0x1c9f1e['timeout'])&&void 0x0!==_0x1fa701?_0x1fa701:0x1/0x0,_0x42ff62=Date['now']()+_0x39e27b,_0x37d230=[{'oldPos':-0x1,'lastComponent':void 0x0}];let _0x417ea3=this['extractCommon'](_0x37d230[0x0],_0x1750ba,_0x41eac8,0x0,_0x1c9f1e);if(_0x37d230[0x0]['oldPos']+0x1>=_0x5e1587&&_0x417ea3+0x1>=_0x1daa68)return _0x4ae344(this['buildValues'](_0x37d230[0x0]['lastComponent'],_0x1750ba,_0x41eac8));let _0x5f367e=-0x1/0x0,_0x3ca2cc=0x1/0x0;const _0x131d85=()=>{for(let _0x27ff5a=Math['max'](_0x5f367e,-_0xeda3ea);_0x27ff5a<=Math['min'](_0x3ca2cc,_0xeda3ea);_0x27ff5a+=0x2){let _0xcbed63;const _0x504a93=_0x37d230[_0x27ff5a-0x1],_0x4cd2d5=_0x37d230[_0x27ff5a+0x1];_0x504a93&&(_0x37d230[_0x27ff5a-0x1]=void 0x0);let _0x4888c8=!0x1;if(_0x4cd2d5){const _0x2742fe=_0x4cd2d5['oldPos']-_0x27ff5a;_0x4888c8=_0x4cd2d5&&0x0<=_0x2742fe&&_0x2742fe<_0x1daa68;}const _0x29a219=_0x504a93&&_0x504a93['oldPos']+0x1<_0x5e1587;if(_0x4888c8||_0x29a219){if(_0xcbed63=!_0x29a219||_0x4888c8&&_0x504a93['oldPos']<_0x4cd2d5['oldPos']?this['addToPath'](_0x4cd2d5,!0x0,!0x1,0x0,_0x1c9f1e):this['addToPath'](_0x504a93,!0x1,!0x0,0x1,_0x1c9f1e),_0x417ea3=this['extractCommon'](_0xcbed63,_0x1750ba,_0x41eac8,_0x27ff5a,_0x1c9f1e),_0xcbed63['oldPos']+0x1>=_0x5e1587&&_0x417ea3+0x1>=_0x1daa68)return _0x4ae344(this['buildValues'](_0xcbed63['lastComponent'],_0x1750ba,_0x41eac8))||!0x0;_0x37d230[_0x27ff5a]=_0xcbed63,_0xcbed63['oldPos']+0x1>=_0x5e1587&&(_0x3ca2cc=Math['min'](_0x3ca2cc,_0x27ff5a-0x1)),_0x417ea3+0x1>=_0x1daa68&&(_0x5f367e=Math['max'](_0x5f367e,_0x27ff5a+0x1));}else _0x37d230[_0x27ff5a]=void 0x0;}_0xeda3ea++;};if(_0x1b9a86)!function _0x22c8e9(){setTimeout(function(){if(_0xeda3ea>_0xb63b9a||Date['now']()>_0x42ff62)return _0x1b9a86(void 0x0);_0x131d85()||_0x22c8e9();},0x0);}();else for(;_0xeda3ea<=_0xb63b9a&&Date['now']()<=_0x42ff62;){const _0x11821f=_0x131d85();if(_0x11821f)return _0x11821f;}}['addToPath'](_0x3cf947,_0x3910a1,_0x4670bf,_0x1bf342,_0x30a822){const _0x53c7d2=_0x3cf947['lastComponent'];return _0x53c7d2&&!_0x30a822['oneChangePerToken']&&_0x53c7d2['added']===_0x3910a1&&_0x53c7d2['removed']===_0x4670bf?{'oldPos':_0x3cf947['oldPos']+_0x1bf342,'lastComponent':{'count':_0x53c7d2['count']+0x1,'added':_0x3910a1,'removed':_0x4670bf,'previousComponent':_0x53c7d2['previousComponent']}}:{'oldPos':_0x3cf947['oldPos']+_0x1bf342,'lastComponent':{'count':0x1,'added':_0x3910a1,'removed':_0x4670bf,'previousComponent':_0x53c7d2}};}['extractCommon'](_0x3a7ff7,_0x1b8b44,_0x5d27f2,_0x4ceb7a,_0x39fb88){const _0x3d85b4=_0x1b8b44['length'],_0x118437=_0x5d27f2['length'];let _0xacb941=_0x3a7ff7['oldPos'],_0x5c0d46=_0xacb941-_0x4ceb7a,_0xf636b1=0x0;for(;_0x5c0d46+0x1<_0x3d85b4&&_0xacb941+0x1<_0x118437&&this['equals'](_0x5d27f2[_0xacb941+0x1],_0x1b8b44[_0x5c0d46+0x1],_0x39fb88);)_0x5c0d46++,_0xacb941++,_0xf636b1++,_0x39fb88['oneChangePerToken']&&(_0x3a7ff7['lastComponent']={'count':0x1,'previousComponent':_0x3a7ff7['lastComponent'],'added':!0x1,'removed':!0x1});return _0xf636b1&&!_0x39fb88['oneChangePerToken']&&(_0x3a7ff7['lastComponent']={'count':_0xf636b1,'previousComponent':_0x3a7ff7['lastComponent'],'added':!0x1,'removed':!0x1}),_0x3a7ff7['oldPos']=_0xacb941,_0x5c0d46;}['equals'](_0x371a63,_0x340b0f,_0x3085cd){return _0x3085cd['comparator']?_0x3085cd['comparator'](_0x371a63,_0x340b0f):_0x371a63===_0x340b0f||!!_0x3085cd['ignoreCase']&&_0x371a63['toLowerCase']()===_0x340b0f['toLowerCase']();}['removeEmpty'](_0x514b10){const _0x162ca1=[];for(let _0x4a27da=0x0;_0x4a27da<_0x514b10['length'];_0x4a27da++)_0x514b10[_0x4a27da]&&_0x162ca1['push'](_0x514b10[_0x4a27da]);return _0x162ca1;}['castInput'](_0x45ed6b,_0x3792ec){return _0x45ed6b;}['tokenize'](_0x2a3d4b,_0x58edc4){return Array['from'](_0x2a3d4b);}['join'](_0x526f07){return _0x526f07['join']('');}['postProcess'](_0x1bcb6a,_0x58347a){return _0x1bcb6a;}get['useLongestToken'](){return!0x1;}['buildValues'](_0x35aa0e,_0x536f37,_0x33ffe4){const _0x40a141=[];let _0x18a5a6;for(;_0x35aa0e;)_0x40a141['push'](_0x35aa0e),_0x18a5a6=_0x35aa0e['previousComponent'],delete _0x35aa0e['previousComponent'],_0x35aa0e=_0x18a5a6;_0x40a141['reverse']();const _0x5ca440=_0x40a141['length'];let _0x7e5308=0x0,_0x5cb5a1=0x0,_0x5e0418=0x0;for(;_0x7e5308<_0x5ca440;_0x7e5308++){const _0x56bb78=_0x40a141[_0x7e5308];if(_0x56bb78['removed'])_0x56bb78['value']=this['join'](_0x33ffe4['slice'](_0x5e0418,_0x5e0418+_0x56bb78['count'])),_0x5e0418+=_0x56bb78['count'];else{if(!_0x56bb78['added']&&this['useLongestToken']){let _0x32ff0c=_0x536f37['slice'](_0x5cb5a1,_0x5cb5a1+_0x56bb78['count']);_0x32ff0c=_0x32ff0c['map'](function(_0xc2b87a,_0x436fbc){const _0x17d13c=_0x33ffe4[_0x5e0418+_0x436fbc];return _0x17d13c['length']>_0xc2b87a['length']?_0x17d13c:_0xc2b87a;}),_0x56bb78['value']=this['join'](_0x32ff0c);}else _0x56bb78['value']=this['join'](_0x536f37['slice'](_0x5cb5a1,_0x5cb5a1+_0x56bb78['count']));_0x5cb5a1+=_0x56bb78['count'],_0x56bb78['added']||(_0x5e0418+=_0x56bb78['count']);}}return _0x40a141;}}class ArrayDiff extends Diff{['tokenize'](_0x21390e){return _0x21390e['slice']();}['join'](_0x5b5b6c){return _0x5b5b6c;}['removeEmpty'](_0x52fd7c){return _0x52fd7c;}}const arrayDiff=new ArrayDiff();function diffArrays(_0x26a192,_0x4e9076,_0x4d1069){return arrayDiff['diff'](_0x26a192,_0x4e9076,_0x4d1069);}const DATA_ID_MODEL_ATTRIBUTE='$elementId',DATA_ID_VIEW_ATTRIBUTE='data-id';class DocumentCompare extends ContextPlugin{static get['pluginName'](){return'DocumentCompare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x5cd1f4,_0x122834)=>{_0x122834['on']('ready',()=>{this['_integrateEditor'](_0x122834);});});}get['editor'](){if(this['context']instanceof Editor)return this['context'];{const _0x14b298=this['context']['editors']['first'];if(!_0x14b298)throw new CKEditorError('documentcompare-no-editor',this);return _0x14b298;}}['getDiff'](_0x4f85e8,_0x36e621,_0x7d72dd={'anchor':'main','markDeletions':!0x1}){let _0x15c1e4,_0x17f7e5;const _0x5186b3=this['editor'];if('string'==typeof _0x7d72dd['anchor']){const _0x51efa0=_0x5186b3['model']['document']['getRoot'](_0x7d72dd['anchor']);if(!_0x51efa0)throw new CKEditorError('documentcompare-compare-no-root',this,{'anchor':_0x7d72dd['anchor']});_0x15c1e4=_0x51efa0,_0x17f7e5=_0x5186b3['model']['createPositionAt'](_0x51efa0,0x0);}else _0x15c1e4=_0x7d72dd['anchor']['clone'](),_0x17f7e5=_0x7d72dd['anchor']['clone']();const _0x33cbea=_0x5186b3['data']['parse'](_0x4f85e8,_0x15c1e4),_0x1cbe43=_0x5186b3['data']['parse'](_0x36e621,_0x15c1e4);return new DocumentDiff(_0x33cbea,_0x1cbe43,_0x5186b3,{'anchor':_0x17f7e5,'markDeletions':_0x7d72dd['markDeletions']});}['isMarkedRemoveOperation'](_0x137d91){return'marker'==_0x137d91['type']&&_0x137d91['name']['startsWith']('$markedRemove');}['_integrateEditor'](_0x982f3f){_0x982f3f['conversion']['for']('upcast')['add'](_0x4f247f=>{_0x4f247f['on']('element',(_0x283ab4,_0x483fcc,_0x8f8183)=>{if(_0x483fcc['modelRange'])for(const _0x479b17 of _0x483fcc['modelRange']['getItems']({'shallow':!0x0})){if(_0x479b17['is']('$textProxy'))continue;const _0x7bd450=_0x483fcc['viewItem']['getAttribute'](DATA_ID_VIEW_ATTRIBUTE);_0x7bd450&&_0x8f8183['writer']['setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x7bd450,_0x479b17);}},{'priority':'lowest'});}),_0x982f3f['model']['schema']['addAttributeCheck'](()=>!0x0,DATA_ID_MODEL_ATTRIBUTE);}}class DocumentDiff{['_editor'];['_diffItems']=[];['_operationsData']=[];['_markDeletions'];['_anchor'];['_path']=[0x0];['_parents']=[];constructor(_0x6efa4d,_0x3ebd46,_0x23fbb0,_0x200ddb){this['_editor']=_0x23fbb0,this['_markDeletions']=!!_0x200ddb['markDeletions'],this['_anchor']=_0x200ddb['anchor'];const _0x5ef305=this['_tokenizeModel'](_0x6efa4d),_0x3631e4=this['_tokenizeModel'](_0x3ebd46);this['_diffItems']=this['_diffModelTokens'](_0x5ef305,_0x3631e4),this['_calculateOperationsData'](),this['_markDeletions']||this['_calculateMarkersOperationsData'](_0x6efa4d['markers'],_0x3ebd46['markers']);}['getOperationsData'](){return this['_operationsData'];}['getOperations'](){const _0x402fd3=this['_editor']['model']['document'],_0xf3a947=[];let _0x27ed76=_0x402fd3['version'];for(const _0x18804d of this['_operationsData'])switch(_0x18804d['type']){case'attribute':{const _0x1ce270=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']),_0x207e60=_0x1ce270['getShiftedBy'](_0x18804d['howMany']),_0x3a9550=new ModelRange(_0x1ce270,_0x207e60),_0x2ee465=JSON['parse'](_0x18804d['oldValue']),_0x3fb2ab=JSON['parse'](_0x18804d['newValue']);_0xf3a947['push'](new AttributeOperation(_0x3a9550,_0x18804d['key'],_0x2ee465,_0x3fb2ab,_0x27ed76++));break;}case'insert':{const _0x232f4c=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']),_0x324940=this['_makeModelFromTokens'](_0x18804d['tokens']);_0xf3a947['push'](new InsertOperation(_0x232f4c,_0x324940,_0x27ed76++));break;}case'remove':{const _0x3d8e93=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']),_0x1756ec=new ModelPosition(_0x402fd3['graveyard'],[0x0]);_0xf3a947['push'](new MoveOperation(_0x3d8e93,_0x18804d['howMany'],_0x1756ec,_0x27ed76++));break;}case'rename':{const _0x4f0745=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']);_0xf3a947['push'](new RenameOperation(_0x4f0745,_0x18804d['oldName'],_0x18804d['newName'],_0x27ed76++));break;}case'split':{const _0x5f00c7=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']),_0x1b1b45=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['path']['slice'](0x0,-0x1));_0x1b1b45['offset']++,_0xf3a947['push'](new SplitOperation(_0x5f00c7,Number['NEGATIVE_INFINITY'],_0x1b1b45,null,_0x27ed76++));break;}case'merge':{const _0x269250=_0x18804d['path']['slice'](),_0x134eb3=_0x269250['slice'](0x0,-0x1);_0x134eb3[_0x134eb3['length']-0x1]++,_0x134eb3['push'](0x0);const _0x2062d4=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x134eb3),_0x5e5655=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x269250),_0x1b46cc=new ModelPosition(_0x402fd3['graveyard'],[0x0]);_0xf3a947['push'](new MergeOperation(_0x2062d4,Number['NEGATIVE_INFINITY'],_0x5e5655,_0x1b46cc,_0x27ed76++));break;}case'marker':case'markedRemove':{let _0x34b05a=null;if(_0x18804d['range']){const _0x1f6f84=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['range']['start']),_0x5be4ef=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['range']['end']);_0x34b05a=new ModelRange(_0x1f6f84,_0x5be4ef);}const _0x42a63c='marker'==_0x18804d['type']?_0x18804d['name']:'$markedRemove:'+uid();_0xf3a947['push'](new MarkerOperation(_0x42a63c,null,_0x34b05a,_0x402fd3['model']['markers'],!0x0,_0x27ed76++));break;}case'unwrap':{const _0x10844f=_0x18804d['path']['slice']();_0x10844f['push'](0x0);const _0xd1dab7=_0x18804d['path']['slice'](),_0x294021=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x10844f),_0x50e885=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0xd1dab7),_0x18fe23=new ModelPosition(_0x402fd3['graveyard'],[0x0]);_0xf3a947['push'](new MoveOperation(_0x294021,_0x18804d['howMany'],_0x50e885,_0x27ed76++)),_0xf3a947['push'](new MoveOperation(_0x50e885['getShiftedBy'](_0x18804d['howMany']),0x1,_0x18fe23,_0x27ed76++));break;}case'wrap':{const _0x501d33=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['range']['start']),_0xd5540b=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x18804d['range']['end']),_0x4d428d=_0x18804d['token']['element']['_clone'](!0x1),_0x4051a2=_0x18804d['range']['end']['slice']();_0x4051a2['push'](0x0);const _0x3e6612=this['_getPositionFromAnchorAndPath'](this['_anchor'],_0x4051a2);_0xf3a947['push'](new InsertOperation(_0xd5540b,_0x4d428d,_0x27ed76++)),_0xf3a947['push'](new MoveOperation(_0x501d33,_0xd5540b['offset']-_0x501d33['offset'],_0x3e6612,_0x27ed76++));break;}}return _0xf3a947;}['_tokenizeModel'](_0x6d2a1a){const _0x4ea4de=[],_0x39f404=ModelRange['_createIn'](_0x6d2a1a),_0x342088=new ModelTreeWalker({'boundaries':_0x39f404});let _0x5a7cd1='',_0x38b58d=null;const _0x3260b9=[''],_0x4a8b86=new Map();for(const _0x47868b of _0x342088)if('elementStart'==_0x47868b['type']||'elementEnd'==_0x47868b['type']){let _0x534c9d=_0x3260b9[0x0];''!==_0x5a7cd1&&(_0x4ea4de['push'](...this['_makeTokensFromTextByWords'](_0x5a7cd1,_0x38b58d,_0x534c9d)),_0x5a7cd1='');const _0xc970e3=_0x47868b['item'];let _0x5e100e;_0xc970e3['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)?_0x5e100e=_0xc970e3['getAttribute'](DATA_ID_MODEL_ATTRIBUTE):'elementStart'==_0x47868b['type']?(_0x5e100e=makeUidForElement(_0xc970e3),_0x4a8b86['set'](_0xc970e3,_0x5e100e)):_0x5e100e=_0x4a8b86['get'](_0xc970e3);const _0x7e9f29=this['_getElementCategory'](_0xc970e3);'solid'==_0x7e9f29&&('elementStart'==_0x47868b['type']?(_0x534c9d=_0x5e100e,_0x3260b9['unshift'](_0x534c9d)):_0x3260b9['shift']());const _0x56f06a={'type':'element','element':_0xc970e3,'elementId':_0x5e100e,'category':_0x7e9f29,'isStart':'elementStart'==_0x47868b['type'],'limitId':_0x534c9d};_0x4ea4de['push'](_0x56f06a);}else''==_0x5a7cd1&&(_0x38b58d=_0x47868b['previousPosition']['clone']()),_0x5a7cd1+=_0x47868b['item']['data'];return''!==_0x5a7cd1&&_0x4ea4de['push'](...this['_makeTokensFromTextByWords'](_0x5a7cd1,_0x38b58d,_0x3260b9[0x0])),_0x4ea4de;}['_makeTokensFromTextByWords'](_0x4ebd42,_0x2697e3,_0x49f744){const _0xb2a607=_0x4ebd42['matchAll'](/(\s)/g),_0x5814d6=Array['from'](_0xb2a607)['map'](_0x282c6c=>_0x282c6c['index']);_0x5814d6['push'](_0x4ebd42['length']),0x0==_0x5814d6[0x0]&&_0x5814d6['shift']();const _0xb0c312=[],_0x551584=_0x2697e3['parent'];let _0x24189e=0x0,_0x403c93=_0x2697e3['offset'];for(let _0x4c3b57=0x0;_0x4c3b57<_0x5814d6['length'];_0x4c3b57++)_0xb0c312['push']({'type':'text','data':_0x4ebd42['slice'](_0x24189e,_0x5814d6[_0x4c3b57]),'parent':_0x551584,'offset':_0x403c93,'limitId':_0x49f744}),_0x24189e=_0x5814d6[_0x4c3b57],_0x403c93=_0x2697e3['offset']+_0x5814d6[_0x4c3b57];return _0xb0c312;}['_getElementCategory'](_0x34e7dd){const _0x2acf46=this['_editor']['model']['schema'];return _0x2acf46['isLimit'](_0x34e7dd)||_0x2acf46['isContent'](_0x34e7dd)||_0x2acf46['isInline'](_0x34e7dd)?'solid':_0x2acf46['isBlock'](_0x34e7dd)?'block':'container';}['_diffModelTokens'](_0x47fe5a,_0x3417e1){const _0x232aa3=diffArrays(_0x47fe5a,_0x3417e1,{'comparator':compareModelTokens});this['_handleUnclosedBlockOpeningTags'](_0x232aa3);const _0x1fcb4e=_0x232aa3['flatMap'](_0x3568d8=>{const _0x4cb1ed=_0x3568d8['added']?'added':_0x3568d8['removed']?'removed':'unchanged';return _0x3568d8['value']['map'](_0xdc5f8=>({'token':_0xdc5f8,'change':_0x4cb1ed}));});let _0x3ff2b1=0x0;for(const _0x1b4552 of _0x1fcb4e)'added'!=_0x1b4552['change']&&('unchanged'==_0x1b4552['change']&&(_0x1b4552['before']=_0x47fe5a[_0x3ff2b1]),_0x3ff2b1++);return _0x1fcb4e;}['_handleUnclosedBlockOpeningTags'](_0x434f7f){for(let _0x27f153=0x0;_0x27f153<_0x434f7f['length']-0x1;_0x27f153++)if(_0x434f7f[_0x27f153]['removed']&&_0x434f7f[_0x27f153+0x1]['added']){const _0x107abf=this['_findUnclosedBlockOpeningToken'](_0x434f7f[_0x27f153]['value']);if(null!==_0x107abf){const _0x10ed09=this['_findUnclosedBlockOpeningToken'](_0x434f7f[_0x27f153+0x1]['value']),_0x23dffa=_0x434f7f[_0x27f153]['value']['splice'](_0x107abf),_0x3d07ae=_0x434f7f[_0x27f153+0x1]['value']['splice'](_0x10ed09),_0x44634d=[_0x3d07ae['shift']()];_0x23dffa['shift']();const _0x4fcf3e={'value':_0x23dffa,'removed':!0x0},_0x4ea3d6={'value':_0x3d07ae,'added':!0x0},_0x1c9670={'value':_0x44634d};_0x434f7f['splice'](_0x27f153+0x2,0x0,_0x1c9670,_0x4fcf3e,_0x4ea3d6);}}}['_findUnclosedBlockOpeningToken'](_0x29733b){let _0x31fcd5=0x0,_0x45f339=-0x1;for(let _0x31b2ac=0x0;_0x31b2ac<_0x29733b['length'];_0x31b2ac++){const _0x3923ab=_0x29733b[_0x31b2ac];'element'==_0x3923ab['type']&&'block'==_0x3923ab['category']&&(_0x31fcd5+=_0x3923ab['isStart']?0x1:-0x1,_0x3923ab['isStart']&&(_0x45f339=_0x31b2ac));}return 0x0===_0x31fcd5?null:_0x45f339;}['_calculateOperationsData'](){this['_handleUnwraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x4c9b13=0x0;_0x4c9b13<this['_diffItems']['length'];_0x4c9b13++){const _0x5a2f03=this['_diffItems'][_0x4c9b13]['change'],_0x38774a=[];_0x38774a['push'](this['_diffItems'][_0x4c9b13]);let _0x16d2c2=_0x4c9b13+0x1;for(;this['_diffItems'][_0x16d2c2]&&this['_diffItems'][_0x16d2c2]['change']==_0x5a2f03;)_0x38774a['push'](this['_diffItems'][_0x16d2c2]),_0x16d2c2++,_0x4c9b13++;const _0x441ee3=_0x38774a['map'](_0x3cc604=>_0x3cc604['token']);if('unchanged'==_0x5a2f03)_0x38774a['map'](_0x519d00=>_0x519d00['before'])['forEach'](_0x4ee4fc=>this['_traverseOverItem'](_0x4ee4fc));else{if('removed'==_0x5a2f03){if(this['_markDeletions']){const _0x5f16b9=this['_path']['slice']();_0x441ee3['forEach'](_0x1737ec=>this['_traverseOverItem'](_0x1737ec));const _0x1880c0=this['_path']['slice']();this['_operationsData']['push']({'type':'markedRemove','range':{'start':_0x5f16b9,'end':_0x1880c0}});}else this['_handleChanged'](_0x441ee3,!0x0,this['_path']['slice']());}else{const _0x1c08a7=_0x441ee3['filter'](_0x2d0cd2=>'element'!=_0x2d0cd2['type']||'container'!=_0x2d0cd2['category']);this['_handleChanged'](_0x1c08a7,!0x1,this['_path']);}}}this['_handleWraps'](),this['_path']=[0x0],this['_parents']=[];for(let _0x5ba11c=0x0;_0x5ba11c<this['_diffItems']['length'];_0x5ba11c++){const _0x3d178a=this['_diffItems'][_0x5ba11c]['change'],_0x14c82a=[];_0x14c82a['push'](this['_diffItems'][_0x5ba11c]);let _0x4257b3=_0x5ba11c+0x1;for(;this['_diffItems'][_0x4257b3]&&this['_diffItems'][_0x4257b3]['change']==_0x3d178a;)_0x14c82a['push'](this['_diffItems'][_0x4257b3]),_0x4257b3++,_0x5ba11c++;const _0x267488=_0x14c82a['map'](_0x55fa5b=>_0x55fa5b['token']);if('unchanged'==_0x3d178a){const _0x2ea6e3=_0x14c82a['map'](_0x34dbc4=>_0x34dbc4['before']);this['_handleUnchanged'](_0x2ea6e3,_0x267488);}else('removed'!=_0x3d178a||this['_markDeletions'])&&_0x267488['forEach'](_0x242ae7=>{this['_traverseOverItem'](_0x242ae7);});}}['_calculateMarkersOperationsData'](_0x148064,_0x3b50d5){const _0x7904e8={};for(const [_0xd3fe79]of _0x148064)_0x7904e8[_0xd3fe79]=null;for(const [_0x55f106,_0xd69f95]of _0x3b50d5)_0x7904e8[_0x55f106]=_0xd69f95;const _0x2d489a=Object['entries'](_0x7904e8)['map'](([_0x4531c7,_0x2d279a])=>({'type':'marker','name':_0x4531c7,'range':_0x2d279a?{'start':_0x2d279a['start']['path']['slice'](),'end':_0x2d279a['end']['path']['slice']()}:null}));this['_operationsData']['push'](..._0x2d489a);}['_handleUnwraps'](){const _0x366d61=new Map(),_0x12caf1=[],_0x303819=[0x0];let _0x5ea52f=this['_diffItems']['length']+0x1;for(let _0x12d34c=this['_diffItems']['length']-0x1;_0x12d34c>=0x0;_0x12d34c--){const {token:_0xa5b49d,before:_0x4ffd5f,change:_0x21d44e}=this['_diffItems'][_0x12d34c];if('removed'!=_0x21d44e&&(_0x5ea52f=_0x12d34c),'element'!=_0xa5b49d['type']||'container'!=_0xa5b49d['category']||'added'==_0x21d44e)continue;const _0x4f8ebd=_0x4ffd5f?_0x4ffd5f['element']:_0xa5b49d['element'];if(_0xa5b49d['isStart']){const _0x536e13=_0x366d61['get'](_0x4f8ebd),_0x297bf1=this['_diffItems'][_0x536e13];('removed'==_0x21d44e||'removed'==_0x297bf1['change'])&&_0x5ea52f<_0x536e13&&(this['_operationsData']['push']({'type':'unwrap','path':_0x4f8ebd['getPath'](),'howMany':_0x4f8ebd['maxOffset']+_0x303819[0x0]}),_0x303819['shift'](),_0x303819[0x0]+=_0x4f8ebd['maxOffset']-0x1,_0x12caf1['push'](_0x12d34c),_0x12caf1['push'](_0x536e13));}else _0x366d61['set'](_0x4f8ebd,_0x12d34c),_0x303819['unshift'](0x0);}_0x12caf1['sort']((_0x3f5a7d,_0x4fc759)=>_0x4fc759-_0x3f5a7d),_0x12caf1['forEach'](_0x24b574=>{const _0x52aded=this['_diffItems'][_0x24b574];'removed'==_0x52aded['change']?this['_diffItems']['splice'](_0x24b574,0x1):(_0x52aded['change']='added',delete _0x52aded['before']);});}['_handleWraps'](){this['_path']=[0x0],this['_parents']=[];const _0x5b6c28=[];for(let _0x1eb204=0x0;_0x1eb204<this['_diffItems']['length'];_0x1eb204++){const {change:_0x1c7af6,token:_0x59b7d2}=this['_diffItems'][_0x1eb204];if('added'==_0x1c7af6&&'element'==_0x59b7d2['type']&&'container'==_0x59b7d2['category']){if(_0x59b7d2['isStart'])_0x5b6c28['push'](this['_path']['slice']());else{if(!_0x59b7d2['isStart']){const _0x3b345b=_0x5b6c28['pop']();this['_operationsData']['push']({'type':'wrap','range':{'start':_0x3b345b,'end':this['_path']['slice']()},'token':_0x59b7d2}),this['_path'][this['_path']['length']-0x1]=_0x3b345b[this['_path']['length']-0x1]+0x1;}}}else('removed'!=_0x1c7af6||this['_markDeletions'])&&this['_traverseOverItem'](_0x59b7d2);}}['_handleUnchanged'](_0x516f54,_0x4b7b02){for(let _0x5b987a=0x0;_0x5b987a<_0x516f54['length'];_0x5b987a++){const _0x4a0351=_0x516f54[_0x5b987a];if('element'==_0x4a0351['type']&&_0x4a0351['isStart']){const _0x16f32b=_0x4b7b02[_0x5b987a];'block'==_0x4a0351['category']&&this['_handleElementRename'](_0x4a0351['element'],_0x16f32b['element'],this['_path']),this['_handleElementAttributeChanges'](_0x4a0351['element'],_0x16f32b['element'],this['_path']),this['_path']['push'](0x0),this['_parents']['push'](_0x16f32b);}else{if('element'!=_0x4a0351['type']||_0x4a0351['isStart']){if('text'==_0x4a0351['type']){const _0x175712=this['_path']['slice'](),_0x5ce2fd=[],_0x4bc2b3=[];for(;_0x516f54[_0x5b987a]&&'text'==_0x516f54[_0x5b987a]['type'];)_0x5ce2fd['push'](_0x516f54[_0x5b987a]),_0x4bc2b3['push'](_0x4b7b02[_0x5b987a]),this['_path'][this['_path']['length']-0x1]+=_0x516f54[_0x5b987a]['data']['length'],_0x5b987a++;_0x5b987a--,this['_handleTextAttributeChanges'](_0x5ce2fd,_0x4bc2b3,_0x175712);}}else this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']();}}}['_handleChanged'](_0x4432e5,_0x464fe1,_0x2fe312){const _0xef32d6=[],_0x5e4951=[],_0xafbd7e=_0x2fe312['slice']();for(let _0x25defd=0x0;_0x25defd<_0x4432e5['length'];_0x25defd++){const _0x37c722=_0x4432e5[_0x25defd],_0x3f8c51=_0x2fe312['slice']();if('element'!=_0x37c722['type']||_0x37c722['isStart'])'element'==_0x37c722['type']&&_0x37c722['isStart']?(_0x2fe312['push'](0x0),_0x464fe1||this['_parents']['push'](_0x37c722),_0x5e4951['push']({'before':_0x3f8c51,'after':_0x2fe312['slice'](),'index':_0x25defd})):_0x2fe312[_0x2fe312['length']-0x1]+=_0x37c722['data']['length'];else{let _0xffd07e;_0x2fe312['pop'](),_0x2fe312[_0x2fe312['length']-0x1]++,_0xffd07e=_0x464fe1?this['_parents'][this['_parents']['length']-0x1]:this['_parents']['pop'](),_0x5e4951['length']?_0x5e4951['pop']():_0xef32d6['push']({'before':_0x3f8c51,'after':_0x2fe312['slice'](),'index':_0x25defd,'related':_0xffd07e});}}if(_0x5e4951['length']!==_0xef32d6['length'])throw new CKEditorError('model-diff-incorrect-matching-and-closing-tags',null,{'tokens':_0x4432e5,'isRemove':_0x464fe1});const _0x1c3eec=[{'after':_0xafbd7e['slice'](),'index':-0x1},..._0xef32d6,..._0x5e4951,{'before':_0x2fe312['slice'](),'index':_0x4432e5['length']}];if(_0x464fe1){for(let _0x5e724a=_0x1c3eec['length']-0x1;_0x5e724a>=0x1;_0x5e724a--){const _0x52a328=_0x1c3eec[_0x5e724a-0x1]['after'],_0x3c943b=_0x1c3eec[_0x5e724a]['before'],_0x156170=_0x3c943b[_0x3c943b['length']-0x1]-_0x52a328[_0x52a328['length']-0x1];_0x156170&&(this['_operationsData']['push']({'type':'remove','path':_0x52a328,'howMany':_0x156170}),_0x3c943b[_0x3c943b['length']-0x1]-=_0x156170);}for(const {before:_0x49503a}of _0xef32d6)this['_operationsData']['push']({'type':'merge','path':_0x49503a});}else for(let _0x4f29a9=0x0;_0x4f29a9<_0x1c3eec['length']-0x1;_0x4f29a9++){const _0x1567a8=_0x1c3eec[_0x4f29a9]['after'],_0x61c86c=_0x1c3eec[_0x4f29a9+0x1]['before'],_0x9e7ca4=_0x1c3eec[_0x4f29a9]['index']+0x1,_0x1cddad=_0x1c3eec[_0x4f29a9+0x1]['index'];if(_0x9e7ca4!==_0x1cddad&&this['_operationsData']['push']({'type':'insert','path':_0x1567a8,'tokens':_0x4432e5['slice'](_0x9e7ca4,_0x1cddad)}),_0x4f29a9<_0xef32d6['length']){this['_operationsData']['push']({'type':'split','path':_0x61c86c});const _0x5509c1=_0x4432e5[_0x5e4951[_0x5e4951['length']-0x1-_0x4f29a9]['index']],_0x42e0cd=_0xef32d6[_0x4f29a9]['after'],_0x40be43=_0xef32d6[_0x4f29a9]['related']['element'];this['_handleElementRename'](_0x40be43,_0x5509c1['element'],_0x42e0cd),this['_handleElementAttributeChanges'](_0x40be43,_0x5509c1['element'],_0x42e0cd);}}}['_traverseOverItem'](_0x3d7305){'element'==_0x3d7305['type']&&_0x3d7305['isStart']?(this['_path']['push'](0x0),this['_parents']['push'](_0x3d7305)):'element'!=_0x3d7305['type']||_0x3d7305['isStart']?'text'==_0x3d7305['type']&&(this['_path'][this['_path']['length']-0x1]+=_0x3d7305['data']['length']):(this['_path']['pop'](),this['_path'][this['_path']['length']-0x1]++,this['_parents']['pop']());}['_handleElementRename'](_0x17bcf0,_0x3998ac,_0x3ca26b){_0x17bcf0['name']!=_0x3998ac['name']&&this['_operationsData']['push']({'type':'rename','path':_0x3ca26b['slice'](),'oldName':_0x17bcf0['name'],'newName':_0x3998ac['name']});}['_handleElementAttributeChanges'](_0x2303bc,_0x4673a8,_0x2a8674){const _0xfe23d0=this['_getAttributeChanges'](_0x2303bc['getAttributes'](),_0x4673a8['getAttributes']());for(const _0x49fb39 in _0xfe23d0){const {oldValue:_0x4c71a5,newValue:_0x5ae4b0}=_0xfe23d0[_0x49fb39];this['_operationsData']['push']({'type':'attribute','path':_0x2a8674['slice'](),'howMany':0x1,'key':_0x49fb39,'oldValue':_0x4c71a5,'newValue':_0x5ae4b0});}}['_handleTextAttributeChanges'](_0x32f6e1,_0x3b866f,_0x1eae55){const _0x1c83f3=this['_operationsData'],_0x267334=_0x32f6e1[0x0]['parent'],_0x2fec23=_0x32f6e1[0x0]['offset'],_0x4f3884=_0x3b866f[0x0]['parent'],_0x583eda=_0x3b866f[0x0]['offset'],_0x11f7ec=_0x32f6e1['reduce']((_0x5c094a,_0xae87ce)=>_0x5c094a+_0xae87ce['data']['length'],0x0),_0x568c83=this['_getAttrsForOffsets'](_0x267334,_0x2fec23,_0x11f7ec),_0x2c950b=this['_getAttrsForOffsets'](_0x4f3884,_0x583eda,_0x11f7ec),_0xb019a2={};for(let _0x3a7cd6=0x0;_0x3a7cd6<_0x11f7ec;_0x3a7cd6++){const _0x8abaf0=_0x568c83[_0x2fec23+_0x3a7cd6],_0x35b0d0=_0x2c950b[_0x583eda+_0x3a7cd6],_0x4eccb6=this['_getAttributeChanges'](_0x8abaf0,_0x35b0d0);for(const _0x2c8067 in _0xb019a2)_0x4eccb6[_0x2c8067]||_0x22728c(_0x2c8067);for(const _0xe19db9 in _0x4eccb6){const {oldValue:_0x554647,newValue:_0x28dc23}=_0x4eccb6[_0xe19db9],_0x423fb7=_0xb019a2[_0xe19db9];_0x423fb7?_0x423fb7['oldValue']==_0x554647&&_0x423fb7['newValue']==_0x28dc23?_0x423fb7['length']++:(_0x22728c(_0xe19db9),_0xb019a2[_0xe19db9]={'oldValue':_0x554647,'newValue':_0x28dc23,'start':_0x3a7cd6,'length':0x1}):_0xb019a2[_0xe19db9]={'oldValue':_0x554647,'newValue':_0x28dc23,'start':_0x3a7cd6,'length':0x1};}}for(const _0xa9b52f in _0xb019a2)_0x22728c(_0xa9b52f);function _0x22728c(_0x3074f1){const _0x2a0dae=_0xb019a2[_0x3074f1],_0x36c528=_0x1eae55['slice']();_0x36c528[_0x36c528['length']-0x1]+=_0x2a0dae['start'],_0x1c83f3['push']({'type':'attribute','path':_0x36c528,'howMany':_0x2a0dae['length'],'key':_0x3074f1,'oldValue':_0x2a0dae['oldValue'],'newValue':_0x2a0dae['newValue']}),delete _0xb019a2[_0x3074f1];}}['_getAttributeChanges'](_0x4fd160,_0x2f1bc1){const _0x26d7c6={};for(const [_0x50ae21,_0x25ff2c]of _0x4fd160)_0x26d7c6[_0x50ae21]={'oldValue':JSON['stringify'](_0x25ff2c),'newValue':'null'};for(const [_0x329d82,_0xe5219b]of _0x2f1bc1){const _0x1a571a=JSON['stringify'](_0xe5219b);_0x26d7c6[_0x329d82]?_0x26d7c6[_0x329d82]['oldValue']==_0x1a571a?delete _0x26d7c6[_0x329d82]:_0x26d7c6[_0x329d82]['newValue']=_0x1a571a:_0x26d7c6[_0x329d82]={'oldValue':'null','newValue':_0x1a571a};}return delete _0x26d7c6[DATA_ID_MODEL_ATTRIBUTE],_0x26d7c6;}['_getAttrsForOffsets'](_0x2f7eb2,_0x4ae6a5,_0x76cdd2){const _0x17c3df=new Array(_0x4ae6a5+_0x76cdd2);let _0x3e1913=_0x2f7eb2['getChildAtOffset'](_0x4ae6a5),_0x2d86ab=_0x3e1913['startOffset'];for(;_0x3e1913&&_0x2d86ab<_0x4ae6a5+_0x76cdd2;){const _0x42af4e=Array['from'](_0x3e1913['getAttributes']());_0x17c3df['fill'](_0x42af4e,_0x2d86ab,_0x2d86ab+_0x3e1913['offsetSize']),_0x2d86ab+=_0x3e1913['offsetSize'],_0x3e1913=_0x3e1913['nextSibling'];}return _0x17c3df;}['_getPositionFromAnchorAndPath'](_0x9a1292,_0x549eff){const _0x209ec0=[..._0x9a1292['path']['slice'](0x0,-0x1),_0x9a1292['offset']+_0x549eff[0x0],..._0x549eff['slice'](0x1)];return new ModelPosition(_0x9a1292['root'],_0x209ec0);}['_makeModelFromTokens'](_0x19fa74){const _0x5045c9=[];let _0x1d0d30=null;for(const _0x5bd710 of _0x19fa74)if('element'!=_0x5bd710['type']||_0x5bd710['isStart']||_0x1d0d30!=_0x5bd710['element']){if(!_0x1d0d30){if('text'==_0x5bd710['type']){const _0x47c463=ModelPosition['_createAt'](_0x5bd710['parent'],_0x5bd710['offset']),_0xc6b818=ModelRange['_createFromPositionAndShift'](_0x47c463,_0x5bd710['data']['length']),_0x4a3e07=Array['from'](_0xc6b818['getItems']())['map'](_0x460b17=>new ModelText(_0x460b17['data'],_0x460b17['getAttributes']()));_0x5045c9['push'](..._0x4a3e07);}else{_0x1d0d30=_0x5bd710['element'];const _0x3a9b23=_0x5bd710['element']['_clone'](!0x0);_0x3a9b23['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);for(const _0x271f3d of this['_editor']['model']['createRangeIn'](_0x3a9b23)['getItems']())_0x271f3d['is']('element')&&_0x271f3d['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x5045c9['push'](_0x3a9b23);}}}else _0x1d0d30=null;return _0x5045c9;}}function compareModelTokens(_0x3f7628,_0x45b562){return _0x3f7628['type']===_0x45b562['type']&&(_0x3f7628['limitId']===_0x45b562['limitId']&&('text'==_0x3f7628['type']?_0x3f7628['data']==_0x45b562['data']:compareModelElementTokens(_0x3f7628,_0x45b562)));}function compareModelElementTokens(_0x435ebc,_0x16138b){return _0x435ebc['isStart']==_0x16138b['isStart']&&((!_0x435ebc['isStart']||_0x435ebc['elementId']==_0x16138b['elementId'])&&(_0x435ebc['category']==_0x16138b['category']&&('block'==_0x435ebc['category']||('container'!=_0x435ebc['category']||_0x435ebc['elementId']==_0x16138b['elementId'])&&_0x435ebc['element']['name']==_0x16138b['element']['name'])));}function makeUidForElement(_0x107c9b){return hashObject({'name':_0x107c9b['name'],...Object['fromEntries'](_0x107c9b['getAttributes']())});}function getSuggestionPartsFromReply({editor:_0x459cc4,changeGroups:_0x2d1828,documentContextContent:_0x800332,showDiff:_0x4afdf4,trimUnchanged:_0xb7cbe1=!0x0}){return _0x2d1828['map'](_0x27d103=>{const _0x26fe5d=new Document([]),_0xa6bbf5=new Document([]);for(const _0x3fc5b9 of _0x27d103['changes'])if(_0x4afdf4&&'removed'==_0x3fc5b9['type']||_0xa6bbf5['children']['push'](_0x3fc5b9['node']['cloneNode'](!0x0)),'new'!=_0x3fc5b9['type']&&(_0x4afdf4||'removed'!=_0x3fc5b9['type'])){const _0x5b305a=findOne(_0x2ba4e1=>getAttribute(_0x2ba4e1,'data-id')==_0x3fc5b9['id'],_0x800332,!0x0);_0x5b305a&&_0x26fe5d['children']['push'](_0x5b305a['cloneNode'](!0x0));}const {content:_0x1ae061,hasChanges:_0x24e98a}=passThroughEditorDataPipeline(_0x459cc4,_0x26fe5d,_0xa6bbf5,_0x4afdf4,_0xb7cbe1);return{'type':_0x27d103['changes'][0x0]['type'],'index':_0x27d103['index'],'content':_0x1ae061,'hasChanges':_0x24e98a};});}function passThroughEditorDataPipeline(_0x517a56,_0x6132f,_0x5177c2,_0x2ce11f,_0x1b16a7=!0x0){const _0x58dd5f=_0x517a56['plugins']['get']('DocumentCompare'),_0x53b27e=serialize(_0x6132f),_0x4505ef=serialize(_0x5177c2),_0x4612b6=_0x517a56['data']['parse'](_0x53b27e,'$root'),_0x22fadf=_0x517a56['model']['createPositionAt'](_0x4612b6,0x0),_0x3fbebd=_0x58dd5f['getDiff'](_0x53b27e,_0x4505ef,{'anchor':_0x22fadf,'markDeletions':_0x2ce11f})['getOperations']();if(0x0==_0x3fbebd['length'])return{'content':_0x6132f['cloneNode'](!0x0),'hasChanges':!0x1};if(_0x2ce11f?applyOperationsAndDiffMarkers(_0x3fbebd,_0x4612b6,_0x517a56):_0x517a56['model']['change'](_0x4444ff=>{for(const _0x15f0a3 of _0x3fbebd)if('remove'==_0x15f0a3['type']){const _0x1ad958=_0x15f0a3['sourcePosition'],_0x3622f1=_0x15f0a3['howMany'],_0x421158=new _DetachOperation(_0x1ad958,_0x3622f1);_0x4444ff['batch']['addOperation'](_0x421158),_0x517a56['model']['applyOperation'](_0x421158);}else{if('marker'==_0x15f0a3['type']){const _0x441334=_0x15f0a3['name'],_0x3044e7=_0x15f0a3['newRange'];null!==_0x3044e7?_0x4612b6['markers']['set'](_0x441334,_0x3044e7):_0x4612b6['markers']['delete'](_0x441334);}else _0x15f0a3['baseVersion']=null,_0x15f0a3['isDocumentOperation']=!0x1,_0x4444ff['batch']['addOperation'](_0x15f0a3),_0x517a56['model']['applyOperation'](_0x15f0a3);}}),_0x1b16a7){const _0x4a0bef=getMinimalSelection(_0x517a56,_0x3fbebd,_0x4612b6);expandSelectionWithContext(_0x517a56['model'],_0x4a0bef),shrinkFragmentToSelection(_0x517a56['model'],_0x4a0bef);}return{'content':parse$2(_0x517a56['data']['stringify'](_0x4612b6,{'showSuggestionHighlights':!0x0})),'hasChanges':!0x0};}function applyOperationsAndDiffMarkers(_0x146ad2,_0x3c96a4,_0x32474a){if(0x0==_0x146ad2['length'])return;const _0x5762ae=_0x32474a['plugins']['get']('DocumentCompare'),_0x351cd6=_0x32474a['plugins']['get']('SuggestionsConversion');_0x32474a['model']['change'](_0x1716af=>{const _0x31d02e=new Set();for(let _0x3c6522=0x0;_0x3c6522<_0x146ad2['length'];_0x3c6522++){const _0x103156=_0x146ad2[_0x3c6522];if(_0x103156['baseVersion']=null,_0x103156['isDocumentOperation']=!0x1,_0x5762ae['isMarkedRemoveOperation'](_0x103156)){const _0x331934=fixElementSuggestionRange(_0x103156['newRange'],_0x32474a['model']),_0x421377='suggestion:deletion:'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x421377,_0x331934);}else switch(_0x103156['type']){case'rename':{if(_0x103156['oldName']==_0x103156['newName'])break;_0x1716af['batch']['addOperation'](_0x103156),_0x32474a['model']['applyOperation'](_0x103156);const _0x33e31c='$elementName',_0x3cc385=_0x103156['position'],_0x60b205=_0x32474a['model']['createRange'](_0x3cc385,_0x32474a['model']['createPositionAt'](_0x3cc385['nodeAfter'],'end')),_0x4bef85='suggestion:attribute:'+_0x33e31c+':'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x4bef85,_0x60b205);break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{if(_0x103156['oldValue']==_0x103156['newValue'])break;_0x1716af['batch']['addOperation'](_0x103156),_0x32474a['model']['applyOperation'](_0x103156);const _0x40348b=_0x103156['key'];if(!_0x351cd6['isRegisteredAttribute'](_0x40348b))break;const _0x19f245=fixElementSuggestionRange(_0x103156['range'],_0x32474a['model']),_0x13a799='suggestion:attribute:'+_0x40348b+':'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x13a799,_0x19f245);break;}case'insert':{_0x1716af['batch']['addOperation'](_0x103156),_0x32474a['model']['applyOperation'](_0x103156);if(_0x146ad2[_0x3c6522+0x1]&&'move'==_0x146ad2[_0x3c6522+0x1]['type']){transformMarkers(_0x3c96a4,_0x103156);break;}const _0x3d7444=_0x103156['position'],_0x5340ad=_0x103156['howMany'],_0x477b46=fixElementSuggestionRange(_0x32474a['model']['createRange'](_0x3d7444,_0x3d7444['getShiftedBy'](_0x5340ad)),_0x32474a['model']),_0x14bf1a='suggestion:insertion:'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x14bf1a,_0x477b46);break;}case'split':{_0x1716af['batch']['addOperation'](_0x103156),_0x32474a['model']['applyOperation'](_0x103156);const _0x3b398f=_0x103156['splitPosition'],_0x5cb92e=_0x103156['moveTargetPosition'],_0x52964b=_0x32474a['model']['createRange'](_0x3b398f,_0x5cb92e),_0x249ae4='suggestion:insertion:'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x249ae4,_0x52964b);break;}case'move':{_0x1716af['batch']['addOperation'](_0x103156),_0x32474a['model']['applyOperation'](_0x103156),_0x146ad2[_0x3c6522-0x1]&&'insert'==_0x146ad2[_0x3c6522-0x1]['type']&&transformMarkers(_0x3c96a4,_0x103156);const _0x29843c=_0x103156['getMovedRangeStart'](),_0x4e6488=_0x103156['howMany'];for(let _0x52f572=0x0;_0x52f572<_0x4e6488;_0x52f572++){const _0x512a72=_0x29843c['getShiftedBy'](_0x52f572)['nodeAfter'];_0x31d02e['add'](_0x512a72);}break;}case'remove':{const _0x232ea8=_0x103156['sourcePosition'],_0x4ca590=_0x103156['howMany'],_0x128425=new _DetachOperation(_0x232ea8,_0x4ca590);_0x1716af['batch']['addOperation'](_0x128425),_0x32474a['model']['applyOperation'](_0x128425);break;}}}for(const _0x129114 of _0x31d02e){const _0x44ef73=_0x32474a['model']['createRangeOn'](_0x129114),_0x100428='suggestion:formatBlock:$fakeWrap:'+uid()+':$aiSuggestion';_0x3c96a4['markers']['set'](_0x100428,fixElementSuggestionRange(_0x44ef73,_0x32474a['model']));}});}function transformMarkers(_0x5f3b12,_0x3788be){for(const [_0xdcb31f,_0x4fa242]of _0x5f3b12['markers']){const _0x4cf3d5=ModelRange['_createFromRanges'](_0x4fa242['getTransformedByOperation'](_0x3788be));_0x5f3b12['markers']['set'](_0xdcb31f,_0x4cf3d5);}}function getMinimalSelection(_0x53f9b4,_0x249d90,_0x17e97f){const _0x17664a=_0x53f9b4['plugins']['get']('DocumentCompare');let _0x1ae058=_0x53f9b4['model']['createPositionAt'](_0x17e97f,Number['POSITIVE_INFINITY']),_0x1ab8fc=_0x53f9b4['model']['createPositionAt'](_0x17e97f,0x0);for(const _0x2085ef of _0x249d90){let _0x57d5f4,_0x534137;if(_0x17664a['isMarkedRemoveOperation'](_0x2085ef))_0x57d5f4=_0x2085ef['newRange']['start'],_0x534137=_0x2085ef['newRange']['end'];else switch(_0x1ae058=_0x1ae058['getTransformedByOperation'](_0x2085ef),_0x1ab8fc=_0x1ab8fc['getTransformedByOperation'](_0x2085ef),_0x2085ef['type']){case'rename':_0x57d5f4=_0x2085ef['position'],_0x534137=_0x57d5f4['getShiftedBy'](0x1);break;case'addAttribute':case'removeAttribute':case'changeAttribute':_0x57d5f4=_0x2085ef['range']['start'],_0x534137=_0x2085ef['range']['end'];break;case'insert':_0x57d5f4=_0x2085ef['position'],_0x534137=_0x57d5f4['getShiftedBy'](_0x2085ef['howMany']);break;case'split':_0x57d5f4=_0x2085ef['splitPosition'],_0x534137=_0x2085ef['moveTargetPosition'];break;case'merge':{const _0x5737e3=_0x2085ef['targetPosition']['path']['slice'](0x0,-0x1);_0x57d5f4=_0x53f9b4['model']['createPositionFromPath'](_0x17e97f,_0x5737e3),_0x534137=_0x57d5f4['getShiftedBy'](0x1);break;}case'remove':{const _0x582fe6=_0x2085ef['howMany'],_0x3a6a5f=_0x2085ef['sourcePosition']['_getTransformedByInsertion'](_0x2085ef['targetPosition'],_0x582fe6),_0x43f12e=_0x2085ef['getMovedRangeStart']();'remove'==_0x2085ef['type']?(_0x57d5f4=_0x3a6a5f,_0x534137=_0x3a6a5f):(_0x57d5f4=_0x43f12e,_0x534137=_0x43f12e['getShiftedBy'](_0x582fe6));break;}}_0x57d5f4&&_0x57d5f4['isBefore'](_0x1ae058)&&(_0x1ae058=_0x57d5f4['clone'](),_0x1ae058['stickiness']='toNone'),_0x534137&&_0x534137['isAfter'](_0x1ab8fc)&&(_0x1ab8fc=_0x534137['clone'](),_0x1ab8fc['stickiness']='toNone');}return _0x53f9b4['model']['createSelection'](_0x53f9b4['model']['createRange'](_0x1ae058,_0x1ab8fc));}function expandSelectionWithContext(_0x86f549,_0xff85f2){expandSelection(_0x86f549,_0xff85f2,'forward');const _0x22c9b2=_0xff85f2['getFirstRange']();_0xff85f2['setTo']([]),_0xff85f2['setTo'](_0x22c9b2,{'backward':!0x0}),expandSelection(_0x86f549,_0xff85f2,'backward');}function expandSelection(_0x3990f9,_0x3381c5,_0x1af7ce){let _0x5b5071=0x14;for(;_0x5b5071;){_0x3990f9['modifySelection'](_0x3381c5,{'unit':'word','direction':_0x1af7ce}),_0x5b5071--;const _0x33b571=_0x3381c5['focus']['forward'==_0x1af7ce?'nodeBefore':'nodeAfter'];if(_0x33b571&&_0x33b571['is']('element')&&_0x3990f9['schema']['isBlock'](_0x33b571)&&_0x3990f9['schema']['isObject'](_0x33b571))break;}}function shrinkFragmentToSelection(_0x245efa,_0x41ae49){const _0xb80688=_0x41ae49['getFirstRange']()['start'];let _0x495df0=_0x41ae49['getFirstRange']()['end'];const _0x59d833=_0xb80688['root'];(_0x495df0['textNode']||_0x495df0['nodeAfter']&&_0x495df0['nodeAfter']['is']('$text'))&&(_insertIntoModelNodeList(_0x495df0,'...'),_0x495df0=_0x495df0['getShiftedBy'](0x3)),(_0xb80688['textNode']||_0xb80688['nodeBefore']&&_0xb80688['nodeBefore']['is']('$text'))&&(_insertIntoModelNodeList(_0xb80688,'...'),_transformMarkersByInsertion(_0x59d833,_0xb80688,0x3),_0xb80688['parent']==_0x495df0['parent']&&(_0x495df0=_0x495df0['getShiftedBy'](0x3)));const _0x103f8c=_0x245efa['createRange'](_0x245efa['createPositionAt'](_0x59d833,0x0),_0xb80688),_0x37d568=_0x245efa['createRange'](_0x495df0,_0x245efa['createPositionAt'](_0x59d833,'end')),_0xd53f7f=[..._0x103f8c['getMinimalFlatRanges'](),..._0x37d568['getMinimalFlatRanges']()];_0xd53f7f['reverse']();for(const _0x1a3e26 of _0xd53f7f)_removeFromModelNodeList(_0x1a3e26),_transformMarkersByDeletion(_0x59d833,_0x1a3e26);}function _transformMarkersByDeletion(_0x1cdf12,_0x269c26){for(const [_0x17bfff,_0x3b6240]of _0x1cdf12['markers']){const _0x4cf69e=_0x3b6240['_getTransformedByDeletion'](_0x269c26['start'],_0x269c26['end']['offset']-_0x269c26['start']['offset']);null!=_0x4cf69e?_0x1cdf12['markers']['set'](_0x17bfff,_0x4cf69e):_0x1cdf12['markers']['delete'](_0x17bfff);}}function _transformMarkersByInsertion(_0x2354f0,_0x5521a0,_0x131811){for(let [_0x1b242a,_0x2e99ad]of _0x2354f0['markers']){const _0x4e4b95=_0x2e99ad['_getTransformedByInsertion'](_0x5521a0,_0x131811,!0x1);_0x2e99ad=_0x4e4b95[0x0],_0x2354f0['markers']['set'](_0x1b242a,_0x2e99ad);}}class AIReply extends ObservableMixin(){['id'];['interactionId'];['type'];['sources']=[];['parsedContent']=new Document([]);['parsedMergedContent']=new Document([]);['changeGroups']=[];['areActionsDisabled']=!0x1;['documentContextContent'];['aiResponseParser'];['aiResponseApplier'];['editor'];['cachedSuggestionContentParts']={'withDiff':[],'withoutDiff':[]};constructor({type:_0x3ceb0e,content:_0x2a6141='',isDone:_0x5cfe66=!0x1,interactionId:_0x478d0a,areActionsDisabled:_0x3cb65c,documentContextContent:_0x1b5ccb,editor:_0x344dc7,id:_0x1c0b93}){super(),this['id']=_0x1c0b93||uid(),this['interactionId']=_0x478d0a,this['type']=_0x3ceb0e,this['areActionsDisabled']=!!_0x3cb65c,this['editor']=_0x344dc7,this['aiResponseParser']=new AIResponseParser(),this['aiResponseApplier']=new AIResponseApplier(),this['documentContextContent']=parse$2(_0x1b5ccb||''),this['set']('isDone',_0x5cfe66),this['on']('change:content',()=>{this['onContentChange']();}),this['set']('content',_0x2a6141);}['appendContent'](_0x454e5b){this['set']('content',this['content']+_0x454e5b);}['done'](){this['isDone']||(this['set']('isDone',!0x0),this['onContentChange']());}['destroy'](){this['stopListening']();}['setChangeGroupState'](_0x35a5ac,_0x478b52){this['changeGroups'][_0x35a5ac]['state']=_0x478b52,this['fire']('replyChangeGroupStateUpdated',{'reply':this,'index':_0x35a5ac,'state':_0x478b52});}['getContentParts']({showDiff:_0x5e39e8,groupIndex:_0xba8b02}){if(!this['editor'])throw new CKEditorError('ai-get-editor-from-context-no-editor',null,{'aiReply':this});const _0x20a51a=this['_getCachedContentParts'](_0x5e39e8,_0xba8b02);if(_0x20a51a)return _0x20a51a;let _0x5a82de=[];if(void 0x0===_0xba8b02)_0x5a82de=this['changeGroups'];else{const _0x3ca1e5=this['changeGroups']['find'](({index:_0x5a54e5})=>_0x5a54e5===_0xba8b02);if(!_0x3ca1e5)throw new CKEditorError('ai-reply-get-content-parts-group-not-found',null,{'aiReply':this,'groupIndex':_0xba8b02});_0x5a82de=[_0x3ca1e5];}const _0x330f09=getSuggestionPartsFromReply({'editor':this['editor'],'showDiff':_0x5e39e8,'changeGroups':_0x5a82de,'documentContextContent':this['documentContextContent']});return this['_setCachedContentParts'](_0x5e39e8,_0x330f09),_0x330f09;}['_getCachedContentParts'](_0x376b62,_0x500382){const _0x215aca=_0x376b62?'withDiff':'withoutDiff';if(!this['cachedSuggestionContentParts'][_0x215aca]['length'])return null;const _0x889f8c=this['cachedSuggestionContentParts'][_0x215aca];if(void 0x0===_0x500382)return _0x889f8c['length']>0x0&&_0x889f8c['length']!==this['changeGroups']['length']?(this['_setCachedContentParts'](_0x376b62,null),null):cloneDeep$1(_0x889f8c);{const _0x543cfa=_0x889f8c['find'](({index:_0x267098})=>_0x267098===_0x500382);if(_0x543cfa)return[cloneDeep$1(_0x543cfa)];}return null;}['_setCachedContentParts'](_0x4cf66d,_0x33bcf0){const _0x1bb582=_0x4cf66d?'withDiff':'withoutDiff';_0x33bcf0?_0x33bcf0['forEach'](_0x1502a2=>{const _0x2131e4=this['cachedSuggestionContentParts'][_0x1bb582],_0x336acc=_0x2131e4['find'](({index:_0x558b2d})=>_0x558b2d===_0x1502a2['index']);if(_0x336acc){const _0x2bcb10=_0x2131e4['indexOf'](_0x336acc);_0x2131e4['splice'](_0x2bcb10,0x1,_0x1502a2);}else _0x2131e4['push'](_0x1502a2);}):this['cachedSuggestionContentParts'][_0x1bb582]['length']=0x0;}['onContentChange'](){if('modification'===this['type']){this['parsedContent']=this['aiResponseParser']['parseAndNormalizeHTML'](this['content']);const _0x176f88=this['changeGroups'];this['updateChangeGroups']();const _0x3541d5=this['_getDifferentChangeGroups'](_0x176f88,this['changeGroups']);(_0x3541d5['length']||this['isDone'])&&(this['fire']('replyContentUpdated',this,_0x3541d5),this['cachedSuggestionContentParts']['withDiff']['length']=this['cachedSuggestionContentParts']['withoutDiff']['length']=0x0);}else this['parsedContent']=this['aiResponseParser']['convertMarkdownToHTML'](this['content']),this['fire']('replyContentUpdated',this);}['_getDifferentChangeGroups'](_0xb05670,_0x19822e){const _0x47994a=[];for(const _0x28b3b4 of _0x19822e){const _0x4fcffc=_0xb05670[_0x28b3b4['index']];_0x4fcffc?_0x4fcffc['changes']['length']!==_0x28b3b4['changes']['length']?_0x47994a['push'](_0x28b3b4):_0x4fcffc['changes']['forEach']((_0x1cbd38,_0xdd1e68)=>{const _0x2f5092=_0x28b3b4['changes'][_0xdd1e68];_0x1cbd38['id']!==_0x2f5092['id']&&_0x47994a['push'](_0x28b3b4);}):_0x47994a['push'](_0x28b3b4);}return _0x47994a;}['updateChangeGroups'](){const _0x26812d=new Element$3('p',{},[new Element$3('span',{'style':'color:\x20#808080;\x20font-style:\x20italic'},[new Text$1(getTranslation$i(this['editor']['locale'],'AI_SUGGESTION_CONTENT_PART_REMOVED'))])]),_0x2b43b4=this['aiResponseApplier']['merge'](this['parsedContent'],this['documentContextContent']['cloneNode'](!0x0),{'markUnstableElements':!this['isDone'],'replaceRemovedWith':_0x26812d,'cutAfterLastChange':!this['isDone']});if(!_0x2b43b4['modifiedNodeIds']['length']&&!this['isDone'])return;this['parsedMergedContent']=_0x2b43b4['parsedContent'];let _0x41cf72=[];if(findAll(_0x1611a7=>{const _0x4269e7=getAttribute(_0x1611a7,'data-id');if(!_0x4269e7||!_0x28a760(_0x4269e7))return!0x1;const _0x3d3768=[_0x1611a7,...getParents(_0x1611a7)]['at'](-0x2);if(_0x1611a7!=_0x3d3768){const _0x1933f5=getAttribute(_0x3d3768,'data-id');_0x28a760(_0x1933f5)||(_0x41cf72['push']({'node':_0x3d3768,'id':_0x1933f5,'type':'modified'}),_0x2b43b4['modifiedNodeIds']['push'](_0x1933f5));}else _0x2b43b4['modifiedNodeIds']['includes'](_0x4269e7)?_0x41cf72['push']({'node':_0x1611a7,'type':'modified','id':_0x4269e7}):_0x2b43b4['newNodeIds']['includes'](_0x4269e7)?_0x41cf72['push']({'node':_0x1611a7,'type':'new','id':_0x4269e7,'anchorId':getAttribute(_0x1611a7['previousSibling'],'data-id')}):_0x41cf72['push']({'node':_0x1611a7,'type':'removed','id':_0x4269e7});return!0x0;},this['parsedMergedContent']),_0x41cf72=_0x41cf72['filter'](({node:_0x4d30a6})=>[...getParents(_0x4d30a6),_0x4d30a6]['every'](_0x3752b9=>!getAttribute(_0x3752b9,'data-unstable'))),0x0==_0x41cf72['length'])return;const _0x509a98=[[_0x41cf72[0x0]]];for(let _0x39e142=0x1;_0x39e142<_0x41cf72['length'];_0x39e142++){const _0x9860e5=_0x509a98[_0x509a98['length']-0x1],_0x333c6e=_0x9860e5[_0x9860e5['length']-0x1];_0x41cf72[_0x39e142]['node']['previousSibling']==_0x333c6e['node']&&'modified'!=_0x41cf72[_0x39e142]['type']&&'modified'!=_0x333c6e['type']?_0x9860e5['push'](_0x41cf72[_0x39e142]):_0x509a98['push']([_0x41cf72[_0x39e142]]);}for(const _0x319a3a of _0x509a98){const _0xa1d6c0=_0x319a3a[0x0],_0x15528a=_0x319a3a[_0x319a3a['length']-0x1],_0x1b0e16=_0x2e1c4b(_0xa1d6c0['node']['previousSibling']);_0x1b0e16&&_0x319a3a['unshift'](_0x1b0e16);const _0x4f4666=_0x2e1c4b(_0x15528a['node']['nextSibling']);_0x4f4666&&_0x319a3a['push'](_0x4f4666);}function _0x28a760(_0x5e053e){return _0x2b43b4['modifiedNodeIds']['includes'](_0x5e053e)||_0x2b43b4['newNodeIds']['includes'](_0x5e053e)||_0x2b43b4['removedNodeIds']['includes'](_0x5e053e);}function _0x2e1c4b(_0x54a685){if(_0x54a685&&getAttribute(_0x54a685,'data-id')&&!getAttribute(_0x54a685,'data-unstable')){const _0x29149d=getAttribute(_0x54a685,'data-id');if(!_0x28a760(_0x29149d))return{'node':_0x54a685,'type':'context','id':_0x29149d};}return null;}this['changeGroups']=_0x509a98['map']((_0x5067c8,_0x27d790)=>({'changes':_0x5067c8,'state':'pending','index':_0x27d790}));}}const AI_MODEL_EVENT_NAMES=['interactionCreated','interactionStarted','interactionStopped','interactionFinished','interactionDestroyed','replyCreated','replyContentUpdated','replyChangeGroupStateUpdated','setConversationTitle','webSearchStarted','webSearchFinished','reasoningStarted','reasoningFinished','toolDataReceived','error'];class AIInteraction extends EmitterMixin(){['id'];['replies']=[];['currentReply'];['messageId'];['actionCallId'];['currentRequest'];['connector'];['isStopped']=!0x1;['isDestroyed']=!0x1;['editor'];['_isReasoning']=!0x1;['_isWebSearching']=!0x1;constructor({connector:_0x329e95,editor:_0x25ed69}){super(),this['id']=uid(),this['connector']=_0x329e95,this['isStopped']=!0x0,this['editor']=_0x25ed69;}async['start'](){const _0x2a46a5=[];let _0x55202d,_0x10067d,_0xec0d4f;this['isStopped']=!0x1;try{this['currentRequest']=await this['sendRequest'](),this['fire']('interactionStarted',this);const _0x57ffbe=await this['currentRequest']['getStream']();for await(const _0x55890d of _0x57ffbe){if(this['isStopped'])return;if('error'==_0x55890d['event'])return void this['fire']('error',{'error':new CKEditorError('ai-chat-interaction-error',this)});switch(_0x55890d['event']){case'message-metadata':this['messageId']=_0x55890d['data']['messageId'];break;case'action-metadata':this['actionCallId']=_0x55890d['data']['callId'];break;case'conversation-title':this['setConversationTitle'](_0x55890d['data']['conversationTitle'],!0x0);break;case'source':_0x2a46a5['push'](_0x55890d['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'](),_0x55202d='modification-delta'==_0x55890d['event']?'modification':'text',_0x10067d='modification-delta'==_0x55890d['event']?_0x55890d['data']['id']:void 0x0,this['currentReply']&&this['currentReply']['type']!=_0x55202d&&(this['currentReply']['done'](),this['currentReply']=void 0x0),this['currentReply']||(this['currentReply']=this['createReply']({'type':_0x55202d,'interactionId':this['id'],'id':_0x10067d}),'modification'==_0x55202d&&(this['currentReply']['sources']=_0x2a46a5['splice'](0x0))),this['currentReply']['appendContent'](_0x55890d['data']['textDelta']);break;case'mcp-tool-result':_0xec0d4f=JSON['parse'](_0x55890d['data']['result']),this['_handleToolResultData']({'toolName':_0x55890d['data']['toolName'],'data':_0xec0d4f['data'],'attributes':_0xec0d4f['attributes']});break;case'mcp-tool-notification':this['_handleToolNotificationData']({'toolName':_0x55890d['data']['toolName'],'data':_0x55890d['data']['data']});}}}finally{this['isStopped']||(this['currentReply']&&_0x2a46a5['length']>0x0&&(this['currentReply']['sources']=_0x2a46a5['splice'](0x0)),this['_finalizeInteraction'](),this['fire']('interactionFinished',this));}}['stop'](){this['isStopped']||(this['_finalizeInteraction'](),this['fire']('interactionStopped',this));}['getReply'](_0x4476df){return this['replies']['find'](_0x6f0cb5=>_0x6f0cb5['id']===_0x4476df);}['destroy'](){this['isDestroyed']||(this['stop'](),this['replies']['forEach'](_0x16a082=>_0x16a082['destroy']()),this['replies']=[],this['isDestroyed']=!0x0,this['fire']('interactionDestroyed',this),this['stopListening']());}['createReply'](_0x229813){const _0x53d564=new AIReply({'editor':this['editor'],'documentContextContent':this['getDocumentContext']()?.['content'],..._0x229813});return this['replies']['push'](_0x53d564),_0x53d564['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0x53d564),_0x53d564;}['setConversationTitle'](_0x2b0523,_0x4d8dbe=!0x1){this['fire']('setConversationTitle',_0x2b0523,_0x4d8dbe);}['resetWebSearchState'](){this['_isWebSearching']&&(this['_isWebSearching']=!0x1,this['fire']('webSearchFinished',this));}['resetReasoningState'](){this['_isReasoning']&&(this['_isReasoning']=!0x1,this['fire']('reasoningFinished',this));}['_handleToolResultData'](_0x4cebc6){this['fire']('toolDataReceived',{'type':'result','toolName':_0x4cebc6['toolName'],'data':structuredClone(_0x4cebc6['data']||{}),'attributes':structuredClone(_0x4cebc6['attributes']||{})},this);}['_handleToolNotificationData'](_0x2a2b77){this['fire']('toolDataReceived',{'type':'notification','toolName':_0x2a2b77['toolName'],'data':structuredClone(_0x2a2b77['data'])},this);}['_finalizeInteraction'](){this['isStopped']=!0x0,this['currentRequest']&&this['currentRequest']['abortController']['abort'](),this['currentReply']&&this['currentReply']['done'](),this['currentRequest']=this['currentReply']=void 0x0;}}var AIContextItemType=function(_0x4756e7){return _0x4756e7['TOOL']='mcp-tool-context',_0x4756e7['FILE']='file',_0x4756e7['DOCUMENT']='document',_0x4756e7['URL']='web-resource',_0x4756e7['TEXT']='text',_0x4756e7['SELECTION']='selection',_0x4756e7;}({}),AIContextTextResourceType=function(_0x168197){return _0x168197['TEXT']='text',_0x168197['MARKDOWN']='markdown',_0x168197['HTML']='html',_0x168197;}({});const errorsMap=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']]),AI_CONTEXT_MODEL_EVENT_NAMES=['contextItemAdded','contextItemRemoved','contextItemLoadingEnded','contextSent','error','addContextOptionsChanged','sourceResourcesLoaded','resourceStateChanged','uploadProgressChanged'];class AIChatContext extends ObservableMixin(){['_connector'];['_config'];['_ownerId'];constructor({connector:_0x527181,config:_0x11ff72,ownerId:_0x118899}){super(),this['_connector']=_0x527181,this['_config']=_0x11ff72,this['_ownerId']=_0x118899;}['init'](){this['_pendingContextItems']=new Map(),this['_conversationContextItems']=new Map(),this['_ongoingUploads']=new Map(),this['_ongoingUploadOperations']=new Map(),this['_setAddContextOptionsDefaultState']();}['getPendingContextItems'](){return this['_pendingContextItems'];}async['populateFromMessage'](_0x34dba0){const _0x4f626c=await this['_createContextItemFromContent'](_0x34dba0);return this['_addToConversationContextItem'](_0x4f626c),'current-document'===_0x4f626c['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x4f626c;}async['_createContextItemFromContent'](_0x5aa4a3){if(_0x5aa4a3['type']===AIContextItemType['DOCUMENT']){const _0x1acaf4=await this['_connector']['fetchDocument'](this['_ownerId'],_0x5aa4a3['id'])['getDocument']();return{'id':'current-document','uiId':'current-document','label':'Current\x20document','type':_0x5aa4a3['type'],'content':_0x1acaf4['content'],'hidden':this['_conversationContextItems']['has']('current-document'),'version':_0x1acaf4['attributes']?.['version'],'sessionId':_0x1acaf4['attributes']?.['sessionId']};}if(_0x5aa4a3['type']===AIContextItemType['TOOL'])return{'id':_0x5aa4a3['id'],'uiId':_0x5aa4a3['id'],'label':_0x5aa4a3['data']?.['label']||_0x5aa4a3['id'],'type':AIContextItemType['TOOL'],'mcpServerName':_0x5aa4a3['mcpServerName'],'toolName':_0x5aa4a3['toolName'],'data':_0x5aa4a3['data']||{}};return{'id':_0x5aa4a3['id'],'uiId':_0x5aa4a3['id'],'label':_0x5aa4a3['attributes']?.['label']||_0x5aa4a3['name']||_0x5aa4a3['url']||_0x5aa4a3['id'],'type':_0x5aa4a3['type'],..._0x5aa4a3?.['attributes']?.['resourceId']?{'resourceId':_0x5aa4a3['attributes']?.['resourceId']}:{}};}['getSentContextItems'](){return new Map(this['_conversationContextItems']);}['removeFromContext'](_0x5b9926){const _0x277f4a=this['_pendingContextItems']['get'](_0x5b9926);_0x277f4a?.['isReadOnly']||this['_removeContextItem'](_0x5b9926);}['clearPendingContextItems'](){if(0x0===this['_pendingContextItems']['size'])return;for(const _0x1b77d0 of this['_pendingContextItems']['values']())this['_removeContextItem'](_0x1b77d0['uiId']);const _0x1d2b3d=this['_conversationContextItems']['get']('current-document')||this['_pendingContextItems']['get']('current-document');_0x1d2b3d&&this['_addContextItem']({..._0x1d2b3d,'isReadOnly':!0x0,'hidden':!0x0});}['addToConversationContext'](_0x221ed8){for(const _0x5ba565 of _0x221ed8['values']())this['_addToConversationContextItem'](_0x5ba565);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'](_0x552697){return Array['from'](_0x552697['values']())['map'](_0x23b4b3=>this['_mapContextItemToRequestData'](_0x23b4b3))['filter'](_0x2760a=>null!==_0x2760a);}async['addFilesToContext'](_0x155f5e,_0x3f661a,_0x1d4093=AIContextItemType['FILE']){const _0x334be8='files-'+uid();this['_startUploadOperation'](_0x334be8);try{await Promise['all'](_0x155f5e['map'](async _0x3ac209=>{const _0x9dc636='file-'+uid(),_0xecf091=escape(_0x3ac209['name']);try{this['_addContextItem']({'type':_0x1d4093,'label':_0x3f661a?.['label']||_0xecf091,'uiId':_0x9dc636,'resourceId':_0x3f661a?.['resourceId']},!0x0);const _0x921d1b=this['_connector']['uploadFile'](this['_ownerId'],_0x3ac209,_0x3f661a);this['_ongoingUploads']['set'](_0x9dc636,_0x921d1b['abortController']);const {id:_0x459d36}=await _0x921d1b['getId']();this['_ongoingUploads']['delete'](_0x9dc636),this['_finishContextItemLoading']({'type':_0x1d4093,'id':_0x459d36,'label':_0x3f661a?.['label']||_0xecf091,'uiId':_0x9dc636,'resourceId':_0x3f661a?.['resourceId']},!0x1);}catch(_0x2fc91f){this['_ongoingUploads']['delete'](_0x9dc636);if(!(_0x2fc91f instanceof CKEditorError&&_0x2fc91f['message']['startsWith']('ai-request-aborted'))){const _0x4a91f2=errorsMap['get'](_0x2fc91f['code'])||'ai-chat-file-upload-failed',_0xce3eb5=new CKEditorError(_0x4a91f2,null,{'fileName':_0xecf091,..._0x2fc91f});_0xce3eb5['stack']=_0x2fc91f['stack'],this['fire']('error',{'error':_0xce3eb5});}this['_removeContextItem'](_0x9dc636);}}));}finally{this['_finishUploadOperation'](_0x334be8);}}['addCurrentDocumentToContext'](_0x469dde){if(this['isCurrentDocumentInContext']()||!this['_addContextOptionsState']['document']['enabled'])return;const _0x4f6021={'type':AIContextItemType['DOCUMENT'],'uiId':'current-document','label':_0x469dde,'isReadOnly':this['_conversationContextItems']['has']('current-document'),'hidden':this['_conversationContextItems']['has']('current-document')};this['_addContextItem'](_0x4f6021);}async['updateCurrentDocument'](_0x19e325,_0x9b483f,_0x5b2698,_0x5b5a23){const _0x19311b=this['_pendingContextItems']['get']('current-document');if(_0x19311b&&_0x19e325){_0x19311b['selection']=_0x5b5a23?_0x5b5a23['map'](_0x3902a4=>({'start':_0x3902a4['start'],'end':_0x3902a4['end']})):[];try{if(_0x19311b['version']===_0x9b483f)return;const {id:_0x647ef4}=await this['_connector']['uploadDocument'](this['_ownerId'],_0x19e325,{'version':_0x9b483f,'sessionId':_0x5b2698})['getId']();_0x19311b['id']=_0x647ef4,_0x19311b['content']=_0x19e325,_0x19311b['version']=_0x9b483f,_0x19311b['sessionId']=_0x5b2698;}catch(_0x2e5a23){const _0x4858d0=new CKEditorError('ai-chat-document-upload-failed',null);_0x4858d0['stack']=_0x2e5a23['stack'],this['fire']('error',{'error':_0x4858d0});}}}['addSelectionToContext'](_0x4b8a40){this['_addContextItem']({'type':AIContextItemType['SELECTION'],'label':_0x4b8a40,'uiId':'selection','content':_0x4b8a40});}['removeSelectionFromContext'](){this['_removeContextItem']('selection');}async['addUrlToContext'](_0x37f71d,_0x506486){const _0x5f294a='url-'+uid();this['_startUploadOperation'](_0x5f294a);const _0x161fe0='url-'+uid();try{this['_addContextItem']({'type':AIContextItemType['URL'],'label':_0x506486?.['label']||_0x37f71d,'uiId':_0x161fe0,'resourceId':_0x506486?.['resourceId']},!0x0);const _0x269515=this['_connector']['uploadUrl'](this['_ownerId'],_0x37f71d,_0x506486);this['_ongoingUploads']['set'](_0x161fe0,_0x269515['abortController']);const {id:_0x4b8d02}=await _0x269515['getId']();this['_ongoingUploads']['delete'](_0x161fe0),this['_finishContextItemLoading']({'type':AIContextItemType['URL'],'id':_0x4b8d02,'label':_0x506486?.['label']||_0x37f71d,'uiId':_0x161fe0,'resourceId':_0x506486?.['resourceId']},!0x1);}catch(_0x2d2c05){this['_ongoingUploads']['delete'](_0x161fe0),(_0x2d2c05['message']['startsWith']('ai-request-aborted')||this['fire']('error',{'error':new CKEditorError('ai-chat-url-upload-failed',this,{'url':_0x37f71d,'originalError':_0x2d2c05}),'url':_0x37f71d}),this['_removeContextItem'](_0x161fe0));}finally{this['_finishUploadOperation'](_0x5f294a);}}['addToolItemToContext'](_0x1c93e5){_0x1c93e5['id']=_0x1c93e5['id']??uid()['substring'](0x0,0x15),this['_pendingContextItems']['set'](_0x1c93e5['uiId'],_0x1c93e5),this['fire']('contextItemAdded',{'contextItem':_0x1c93e5,'isLoading':!0x1});}async['loadSourceResources'](_0x789606,_0x125193,_0x2833f9){const _0x7e503a=this['_addContextOptionsState']['sources']['find'](_0x1f8cf4=>_0x1f8cf4['id']===_0x789606);if(!_0x7e503a)return this['fire']('error',{'error':new CKEditorError('ai-chat-source-not-found',this,{'sourceId':_0x789606}),'sourceId':_0x789606}),[];try{const _0x26183a=(await _0x7e503a['getResources'](_0x125193))['map'](_0x2ac465=>{const _0x28dc8a=this['_isResourceInContext'](_0x2ac465['id']);return{..._0x2ac465,'isInContext':_0x28dc8a};});return _0x7e503a['resources']=_0x26183a,this['fire']('sourceResourcesLoaded',{'sourceId':_0x789606,'source':_0x7e503a,'resources':_0x26183a,'uid':_0x2833f9}),_0x26183a;}catch(_0x387bb0){return this['fire']('error',{'error':new CKEditorError('ai-chat-source-resources-load-failed',this,{'sourceId':_0x789606,'originalError':_0x387bb0}),'sourceId':_0x789606,'sourceLabel':_0x7e503a['label']}),[];}}async['addResourceToContext'](_0x387aea,_0x57dd9e){if(this['_isResourceInContext'](_0x57dd9e['id']))return;let _0x224e18=_0x57dd9e['data'];if(!_0x224e18&&_0x387aea['getData'])try{_0x224e18=await _0x387aea['getData'](_0x57dd9e['id']);}catch(_0x446425){return void this['fire']('error',{'error':new CKEditorError('ai-chat-resource-load-failed',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id'],'originalError':_0x446425}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});}if(_0x224e18)switch(_0x57dd9e['type']){case AIContextItemType['URL']:if('string'!=typeof _0x224e18)return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id'],'expectedType':'string','actualType':typeof _0x224e18}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});await this['addUrlToContext'](_0x224e18,{'label':_0x57dd9e['label'],'resourceId':_0x57dd9e['id']});break;case AIContextItemType['FILE']:if(!(_0x224e18 instanceof File))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id'],'expectedType':'File','actualType':typeof _0x224e18}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});await this['addFilesToContext']([_0x224e18],{'label':_0x57dd9e['label'],'resourceId':_0x57dd9e['id']});break;case AIContextItemType['TEXT']:if('object'!=typeof _0x224e18||!('content'in _0x224e18)||!('type'in _0x224e18))return void this['fire']('error',{'error':new CKEditorError('ai-chat-context-invalid-data',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id'],'expectedType':'object\x20with\x20content\x20and\x20type\x20properties','actualType':typeof _0x224e18}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});_0x224e18=AIChatContext['_convertTextResourceToFile'](_0x224e18,_0x57dd9e['label']),await this['addFilesToContext']([_0x224e18],{'label':_0x57dd9e['label'],'resourceId':_0x57dd9e['id']},AIContextItemType['TEXT']);break;case AIContextItemType['TOOL']:break;default:this['fire']('error',{'error':new CKEditorError('ai-chat-context-unsupported-type',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id'],'resourceType':_0x57dd9e['type']}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});}else this['fire']('error',{'error':new CKEditorError('ai-chat-resource-no-data',this,{'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']}),'resourceId':_0x57dd9e['id'],'sourceId':_0x387aea['id']});}static['_convertTextResourceToFile'](_0x583b25,_0x48a146){switch(_0x583b25['type']){case AIContextTextResourceType['MARKDOWN']:return new File([_0x583b25['content']],_0x48a146,{'type':'text/markdown'});case AIContextTextResourceType['HTML']:return new File([_0x583b25['content']],_0x48a146,{'type':'text/html'});default:return new File([_0x583b25['content']],_0x48a146,{'type':'text/plain'});}}static['_mapContextItemToRequestData'](_0x46fd17){switch(_0x46fd17['type']){case AIContextItemType['FILE']:return{'type':AIContextItemType['FILE'],'id':_0x46fd17['id']};case AIContextItemType['URL']:return{'type':AIContextItemType['URL'],'id':_0x46fd17['id']};case AIContextItemType['DOCUMENT']:return{'type':AIContextItemType['DOCUMENT'],'id':_0x46fd17['id'],..._0x46fd17['selection']?.['length']&&{'selection':_0x46fd17['selection']}};case AIContextItemType['TEXT']:return{'type':AIContextItemType['FILE'],'id':_0x46fd17['id']};case AIContextItemType['TOOL']:{const _0x30ed08=_0x46fd17;return{'type':AIContextItemType['TOOL'],'mcpServerName':_0x30ed08['mcpServerName'],'toolName':_0x30ed08['toolName'],'data':_0x30ed08['data'],'id':_0x30ed08['id']};}default:return null;}}['_addContextItem'](_0x1d3e8a,_0x502018=!0x1){if(this['_pendingContextItems']['set'](_0x1d3e8a['uiId'],_0x1d3e8a),_0x1d3e8a['hidden']||this['fire']('contextItemAdded',{'contextItem':_0x1d3e8a,'isLoading':_0x502018}),'current-document'===_0x1d3e8a['uiId']&&this['_toggleAddCurrentDocumentOptionVisibility'](),_0x1d3e8a['resourceId']){const _0x44d80e=this['_findSourceIdsByResourceId'](_0x1d3e8a['resourceId']);_0x44d80e&&_0x44d80e['forEach'](_0x2bd3d1=>{this['_updateResourceInContextState'](_0x2bd3d1,_0x1d3e8a['resourceId'],!0x0);});}}['_removeContextItem'](_0xbe2127){const _0xdce51d=this['_pendingContextItems']['get'](_0xbe2127),_0xb702ff=this['_ongoingUploads']['get'](_0xbe2127);if(_0xb702ff&&(_0xb702ff['abort'](),this['_ongoingUploads']['delete'](_0xbe2127)),_0xdce51d?.['resourceId']){const _0x1b82b3=this['_findSourceIdsByResourceId'](_0xdce51d['resourceId']);_0x1b82b3&&_0x1b82b3['forEach'](_0x3f30c8=>{this['_updateResourceInContextState'](_0x3f30c8,_0xdce51d['resourceId'],!0x1);});}this['_pendingContextItems']['delete'](_0xbe2127),this['fire']('contextItemRemoved',{'uiId':_0xbe2127,'type':_0xdce51d?.['type']}),'current-document'===_0xbe2127&&this['_toggleAddCurrentDocumentOptionVisibility']();}['_finishContextItemLoading'](_0x2d1c42,_0x53c2a2){if(this['_pendingContextItems']['has'](_0x2d1c42['uiId'])&&(this['_pendingContextItems']['set'](_0x2d1c42['uiId'],_0x2d1c42),this['fire']('contextItemLoadingEnded',{'contextItem':_0x2d1c42,'isLoading':_0x53c2a2}),_0x2d1c42['resourceId'])){const _0x1cfbf8=this['_findSourceIdsByResourceId'](_0x2d1c42['resourceId']);_0x1cfbf8&&_0x1cfbf8['forEach'](_0x567588=>{this['_updateResourceInContextState'](_0x567588,_0x2d1c42['resourceId'],!0x0);});}}['_addToConversationContextItem'](_0x4367c3){this['_conversationContextItems']['set'](_0x4367c3['uiId'],_0x4367c3);}['_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'](_0x17e7a6=>({..._0x17e7a6,'enabled':!0x0}))??[]},this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_getCustomSourcesInitialState'](){return this['_config']?.['sources']?.['map'](_0x53e201=>({..._0x53e201,'resources':[]}))??[];}['_toggleAddCurrentDocumentOptionVisibility'](){const _0x1cae71=this['isCurrentDocumentInContext']()||this['isCurrentDocumentInConversation']();this['_addContextOptionsState']['document']['isHidden']=_0x1cae71,this['fire']('addContextOptionsChanged',{'options':this['_addContextOptionsState']});}['_isResourceInContext'](_0x2c3c88){for(const _0x181e18 of this['_pendingContextItems']['values']())if(_0x181e18['resourceId']===_0x2c3c88)return!0x0;for(const _0x174189 of this['_conversationContextItems']['values']())if(_0x174189['resourceId']===_0x2c3c88)return!0x0;return!0x1;}['_findSourceIdsByResourceId'](_0x3bf43b){const _0x79c2d5=[];for(const _0x5e82e2 of this['_addContextOptionsState']['sources']){_0x5e82e2['resources']['find'](_0xcb0e1d=>_0xcb0e1d['id']===_0x3bf43b)&&_0x79c2d5['push'](_0x5e82e2['id']);}return 0x0===_0x79c2d5['length']?null:_0x79c2d5;}['_updateResourceInContextState'](_0x117d05,_0x48c15f,_0x19a6b6){const _0x1e5db0=this['_addContextOptionsState']['sources']['find'](_0x23596c=>_0x23596c['id']===_0x117d05);if(!_0x1e5db0)return;const _0x385727=_0x1e5db0['resources']['find'](_0xc09eb9=>_0xc09eb9['id']===_0x48c15f);_0x385727&&(_0x385727['isInContext']=_0x19a6b6,this['fire']('resourceStateChanged',{'sourceId':_0x117d05,'resourceId':_0x48c15f,'isInContext':_0x19a6b6}));}['_startUploadOperation'](_0x2afbab){this['_ongoingUploadOperations']['set'](_0x2afbab,!0x0),this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x0});}['_finishUploadOperation'](_0x1ba579){this['_ongoingUploadOperations']['delete'](_0x1ba579),0x0===this['_ongoingUploadOperations']['size']&&this['fire']('uploadProgressChanged',{'isUploadInProgress':!0x1});}}const CAPABILITIES_MODEL_EVENT_NAMES=['capabilitiesUpdated'];class AICapabilities extends EmitterMixin(){['_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'](_0x399a04){const _0x2f1e1f={};return _0x399a04&&_0x399a04['isWebSearchEnabled']&&(_0x2f1e1f['webSearch']={}),_0x399a04&&_0x399a04['isReasoningEnabled']&&(_0x2f1e1f['reasoning']={}),_0x2f1e1f;}['toggleWebSearch'](){this['setWebSearch'](!this['_isWebSearchEnabled']);}['toggleReasoning'](){this['setReasoning'](!this['_isReasoningEnabled']);}['setWebSearch'](_0x288383){_0x288383!==this['_isWebSearchEnabled']&&(this['_isWebSearchEnabled']=_0x288383,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}['setReasoning'](_0x1f9ea1){_0x1f9ea1!==this['_isReasoningEnabled']&&(this['_isReasoningEnabled']=_0x1f9ea1,this['fire']('capabilitiesUpdated',this['getCapabilitiesConfig']()));}}class AIChatInteraction extends AIInteraction{['userMessage'];['conversationId'];['contextItems']=new Map();['model'];['attributes'];constructor(_0x4a79c4){super(_0x4a79c4),this['conversationId']=_0x4a79c4['conversationId'],this['contextItems']=_0x4a79c4['contextItems'],this['capabilities']=_0x4a79c4['capabilities'],this['userMessage']=_0x4a79c4['userMessage'],this['model']=_0x4a79c4['model'],this['attributes']=_0x4a79c4['attributes'];}async['sendRequest'](){return this['connector']['queryAssistant']({'message':this['userMessage'],'conversationId':this['conversationId'],'parts':AIChatContext['mapContextItemsToRequestData'](this['contextItems']),'capabilities':AICapabilities['getCapabilitiesRequestData'](this['capabilities']),'model':this['model'],'attributes':this['attributes']});}['getDocumentContext'](){return this['contextItems']['get']('current-document');}}class AIChatConversation extends EmitterMixin(){['id'];['isStarted']=!0x1;['isFromHistory'];['interactions']=[];['currentInteraction'];['selectedModel'];['connector'];['options'];constructor(_0x26633a){super(),this['options']=_0x26633a,this['connector']=_0x26633a['connector'],this['chatModels']=_0x26633a['chatModels'],this['id']=_0x26633a['conversationId'],this['isFromHistory']=_0x26633a['isFromHistory'];}async['init'](_0x5a3ae7){try{this['chatContext']=new AIChatContext({'connector':this['connector'],'config':_0x5a3ae7,'ownerId':this['id']}),this['chatContext']['delegate'](...AI_CONTEXT_MODEL_EVENT_NAMES)['to'](this),this['chatContext']['init'](),this['chatCapabilities']=new AICapabilities(),this['chatCapabilities']['delegate'](...CAPABILITIES_MODEL_EVENT_NAMES)['to'](this),this['chatCapabilities']['init']();const _0x2295bd=await this['chatModels']['getAvailableModels']();this['fire']('conversationInitialized',{'availableModels':_0x2295bd});const _0x25df72=await this['chatModels']['getModel'](this['options']['selectedModelId']);_0x25df72&&await this['setModel'](_0x25df72);}catch(_0x4e9486){const _0x22657c=new CKEditorError('ai-chat-conversation-init-failed',null,{'message':_0x4e9486['message']||_0x4e9486});_0x22657c['stack']=_0x4e9486['stack'],this['fire']('error',{'error':_0x22657c});}}async['start'](){if(this['isStarted'])throw new CKEditorError('ai-chat-conversation-already-started',null,{'conversation':this});if(!this['selectedModel'])throw new CKEditorError('ai-chat-conversation-start-no-model-selected',null,{'conversation':this});try{const {id:_0x3ee141}=await this['connector']['startConversation'](this['id'],this['options']['group'])['getConversation']();this['id']=_0x3ee141,this['isStarted']=!0x0,this['fire']('conversationStarted',{'conversationId':this['id'],'selectedModel':this['selectedModel']});}catch(_0x45c5cc){const _0x5d7b2b=new CKEditorError('ai-chat-conversation-start-failed',null,{'message':_0x45c5cc['message'],'conversationId':this['id']});throw _0x5d7b2b['stack']=_0x45c5cc['stack'],this['fire']('error',{'error':_0x5d7b2b}),_0x5d7b2b;}}async['load'](_0x3acb98,_0x3c0855){try{const _0x13d6b5=await this['connector']['fetchConversation'](_0x3acb98)['getConversation'](),_0x3b089e=await this['connector']['fetchConversationMessages'](_0x3acb98)['getMessages'](),_0x1d44f3=_0x3b089e[0x0]['model'];this['isStarted']=!0x0,this['id']=_0x13d6b5['id'],'title'in _0x13d6b5?this['fire']('setConversationTitle',_0x13d6b5['title'],!0x0):this['fire']('setConversationTitle','',!0x0);const _0x3fd9b2=(await this['chatModels']['getAll']())['find'](_0x66379e=>_0x66379e['id']['toLowerCase']()===_0x1d44f3['toLowerCase']());return this['selectedModel']=_0x3fd9b2,this['fire']('modelSelected',{'selectedModel':_0x3fd9b2,'isDisabled':!0x0}),await this['_processMessagesToInteractions'](_0x3b089e,_0x3c0855,_0x1d44f3),this['currentInteraction']=void 0x0,this;}catch(_0x5ba44f){const _0x906d25=new CKEditorError('ai-chat-conversation-init-from-id-failed',null,{'message':_0x5ba44f['message'],'conversationId':_0x3acb98});throw _0x906d25['stack']=_0x5ba44f['stack'],this['fire']('error',{'error':_0x906d25}),_0x906d25;}}async['_processMessagesToInteractions'](_0x28bb70,_0x312ff5,_0x477407){let _0x27a2fe;for(const _0xdba07e of _0x28bb70)if('user'===_0xdba07e['role']){const _0x29bb1e=await this['_extractContextItems'](_0xdba07e),_0x20a4a1={'isReasoningEnabled':Object['hasOwn'](_0xdba07e['capabilities'],'reasoning'),'isWebSearchEnabled':Object['hasOwn'](_0xdba07e['capabilities'],'webSearch')};_0x27a2fe=this['createInteraction']({'userMessage':_0xdba07e['prompt'],'contextItems':_0x29bb1e,'capabilities':_0x20a4a1,'modelId':_0x477407,'attributes':_0xdba07e['attributes']}),this['currentInteraction']=_0x27a2fe,this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}else{if('assistant'===_0xdba07e['role']&&_0x27a2fe){const _0x28f2a5=[];for(const _0x26722d of _0xdba07e['content'])switch(_0x26722d['type']){case'text':case'modification':{const _0x318922=_0x27a2fe['getDocumentContext']()?.['sessionId']!==_0x312ff5;_0x27a2fe['currentReply']=_0x27a2fe['createReply']({'type':_0x26722d['type'],'isDone':!0x0,'interactionId':_0x27a2fe['id'],'areActionsDisabled':_0x318922}),_0x27a2fe['currentReply']['appendContent'](_0x26722d['content']),_0x28f2a5['length']>0x0&&(_0x27a2fe['currentReply']['sources']=_0x28f2a5['splice'](0x0));break;}case'url':_0x28f2a5['push'](_0x26722d);break;case'mcp-tool-result':{const {data:_0xdb02d4,attributes:_0x1d55a4}=JSON['parse'](_0x26722d['content']);_0x27a2fe['_handleToolResultData']({'toolName':_0x26722d['toolName'],'data':_0xdb02d4,'attributes':_0x1d55a4});break;}}}}}async['_extractContextItems'](_0x3acb00){const _0x83bd3a=new Map();if(!_0x3acb00['content'])return _0x83bd3a;for(const _0x2c0a56 of _0x3acb00['content']){const _0x51e73c=await this['chatContext']['populateFromMessage'](_0x2c0a56);_0x51e73c&&_0x83bd3a['set'](_0x51e73c['id'],_0x51e73c);}return _0x83bd3a;}async['handleUserInteraction']({userMessage:_0x457470,attributes:_0x2f148f}){if(!this['isStarted'])throw new CKEditorError('ai-chat-handle-user-conversation-not-initialized',null,{'conversation':this});if(this['currentInteraction'])throw new CKEditorError('ai-chat-handle-user-interaction-already-in-progress',null,{'conversation':this});try{const _0xfc3adf=this['chatContext']['getPendingContextItems'](),_0x22c9f6=this['chatCapabilities']['getCapabilitiesConfig'](),_0x4e4a8f=this['selectedModel']['id'];this['currentInteraction']=this['createInteraction']({'userMessage':_0x457470,'contextItems':_0xfc3adf,'capabilities':_0x22c9f6,'modelId':_0x4e4a8f,'attributes':_0x2f148f}),await this['currentInteraction']['start'](),this['chatContext']['addToConversationContext'](this['currentInteraction']['contextItems']);}catch(_0x4e4c8d){if(_0x4e4c8d instanceof CKEditorError)this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':_0x4e4c8d});else{const _0x4b4d41=errorsMap['get'](_0x4e4c8d['code'])||'ai-chat-handle-user-interaction-start-failed';this['fire']('error',{'interactionId':this['currentInteraction']?this['currentInteraction']['id']:void 0x0,'error':new CKEditorError(_0x4b4d41,null,{'error':_0x4e4c8d})});}}finally{this['currentInteraction']?.['stop'](),this['currentInteraction']=void 0x0;}}['createInteraction']({userMessage:_0x4d3786,contextItems:_0x2485fc,capabilities:_0x3c65b4,modelId:_0x2fbf9e,attributes:_0x33c62b}){const _0x12b1f5=new AIChatInteraction({'userMessage':_0x4d3786,'contextItems':_0x2485fc,'capabilities':_0x3c65b4,'conversationId':this['id'],'connector':this['connector'],'editor':this['options']['getEditor']&&this['options']['getEditor'](),'model':_0x2fbf9e,'attributes':_0x33c62b});return _0x12b1f5['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['interactions']['push'](_0x12b1f5),this['fire']('interactionCreated',_0x12b1f5),_0x12b1f5;}['getInteraction'](_0x542334){return this['interactions']['find'](_0x417ba2=>_0x417ba2['id']===_0x542334);}['removeInteraction'](_0x296511){const _0x16cca3=this['getInteraction'](_0x296511);_0x16cca3&&(_0x16cca3['destroy'](),this['interactions']['splice'](this['interactions']['indexOf'](_0x16cca3),0x1));}get['lastInteraction'](){return this['interactions'][this['interactions']['length']-0x1];}['addCurrentDocumentToContext'](_0x2c7004){this['chatContext']['addCurrentDocumentToContext'](_0x2c7004);}async['updateCurrentDocumentInContext']({content:_0x2a9460,version:_0x182cac,sessionId:_0x131b31,selections:_0x36e5b3}){await this['chatContext']['updateCurrentDocument'](_0x2a9460,_0x182cac,_0x131b31,_0x36e5b3);}['getCurrentDocumentContext'](){return this['currentInteraction']?.['getDocumentContext']()?.['content']||'';}['addSelectionToContext'](_0x68fca6){this['chatContext']['addSelectionToContext'](_0x68fca6);}['removeSelectionFromContext'](){this['chatContext']['removeSelectionFromContext']();}['addFilesToContext'](_0x2d7ce5){this['chatContext']['addFilesToContext'](_0x2d7ce5);}['addUrlToContext'](_0x30a9aa){this['chatContext']['addUrlToContext'](_0x30a9aa);}['addToolItemToContext'](_0x26cb8a){this['chatContext']['addToolItemToContext'](_0x26cb8a);}['addResourceToContext'](_0x192855,_0x2367e8){this['chatContext']['addResourceToContext'](_0x192855,_0x2367e8);}['loadSourceResources'](_0x1762d6,_0x80fa51,_0x4d52d6){return this['chatContext']['loadSourceResources'](_0x1762d6,_0x80fa51,_0x4d52d6);}['removeFromContext'](_0x1dd5c8){this['chatContext']['removeFromContext'](_0x1dd5c8);}['setWebSearch'](_0x4df614){this['chatCapabilities']['setWebSearch'](_0x4df614);}['toggleWebSearch'](){this['chatCapabilities']['toggleWebSearch']();}['setReasoning'](_0x386e4d){this['chatCapabilities']['setReasoning'](_0x386e4d);}['toggleReasoning'](){this['chatCapabilities']['toggleReasoning']();}['isCurrentDocumentInContext'](){return this['chatContext']['isCurrentDocumentInContext']();}['isCurrentDocumentInConversation'](){return this['chatContext']['isCurrentDocumentInConversation']();}['isSelectionInContext'](){return this['chatContext']['isSelectionInContext']();}async['setModel'](_0x5e5edf){_0x5e5edf?!0x1===await this['chatModels']['isAvailable'](_0x5e5edf)&&(logWarning('ai-chat-conversation-set-model-not-available',{'conversation':this,'model':_0x5e5edf}),_0x5e5edf=(await this['chatModels']['getAvailableModels']())[0x0]):(logWarning('ai-chat-conversation-set-model-null',{'conversation':this}),_0x5e5edf=(await this['chatModels']['getAvailableModels']())[0x0]),_0x5e5edf['id']!==this['selectedModel']?.['id']&&(this['selectedModel']=_0x5e5edf,this['chatCapabilities']['reset'](),this['fire']('modelSelected',{'selectedModel':_0x5e5edf}));}}class AIModels extends EmitterMixin(){['_connector'];['_config'];['_locale'];['_modelList']=[];['_modelsRequest']=null;constructor({connector:_0x321c8b,config:_0x4ba6b4,locale:_0x3a75e3}){super(),this['_connector']=_0x321c8b,this['_config']=_0x4ba6b4,this['_locale']=_0x3a75e3;}get['_availableModels'](){return this['_config']?.['displayedModels'];}get['_defaultModelId'](){return this['_config']?.['defaultModelId'];}async['getAll'](){return this['_modelsRequest']||(this['_modelsRequest']=this['_retrieveModels']()),this['_modelsRequest'];}async['getAvailableModels'](){const _0x4c159d=await this['getAll']();let _0x3f5773;return _0x3f5773=this['_availableModels']?this['_filterModels'](_0x4c159d,this['_availableModels']):_0x4c159d['filter'](_0x3b411d=>_0x3b411d['recommended']),_0x3f5773;}async['getModel'](_0xf850b5){const _0xab3475=await this['getAll']();if(!_0xab3475['length'])return null;if(_0xf850b5){const _0x795f37=this['_getModelById'](_0xab3475,_0xf850b5);if(_0x795f37)return _0x795f37;logWarning('ai-chat-model-id-unrecognized',{'modelId':_0xf850b5,'fallBackModelId':this['_defaultModelId']});}return this['getDefault']();}async['getDefault'](){const _0x506d79=await this['getAvailableModels']();if(!_0x506d79['length'])return null;if(this['_defaultModelId']){const _0x52363b=this['_getModelById'](_0x506d79,this['_defaultModelId']);if(_0x52363b)return _0x52363b;logWarning('ai-chat-default-model-id-unrecognized',{'defaultModelId':this['_defaultModelId'],'fallBackModelId':_0x506d79[0x0]['id']});}return _0x506d79[0x0];}async['isAvailable'](_0x36419c){return(await this['getAvailableModels']())['some'](_0x1878d2=>_0x1878d2['name']===_0x36419c['name']&&_0x1878d2['provider']===_0x36419c['provider']);}async['_retrieveModels'](){if(!this['_modelList']['length'])try{const _0x162890=this['_locale']['uiLanguage']||'en',_0x250909=this['_connector']['getModels'](_0x162890),_0x331d46=await _0x250909['list']();this['_modelList']=_0x331d46['items']['map'](_0x1eb10e=>isAutoModel(_0x1eb10e)?{..._0x1eb10e,'name':getTranslation$i(this['_locale'],'AI_MODEL_NAME_AUTO')}:_0x1eb10e);}catch(_0x298c2a){throw logError('ai-models-unable-to-retrieve',{'error':_0x298c2a}),_0x298c2a;}return[...this['_modelList']];}['_filterModels'](_0x21fba1,_0x30d77c){let _0x396a8c;if(_0x30d77c){_0x396a8c=[];const _0xf5c6e1=new Set(),_0xe619fe='string'==typeof _0x30d77c?[_0x30d77c['toLocaleLowerCase']()]:_0x30d77c['map'](_0x5cf801=>_0x5cf801['toLocaleLowerCase']());for(const _0x59740a of _0xe619fe)for(const _0xd64f63 of _0x21fba1)!_0xf5c6e1['has'](_0xd64f63['id'])&&this['_isMatchingFilter'](_0xd64f63,_0x59740a)&&(_0x396a8c['push'](_0xd64f63),_0xf5c6e1['add'](_0xd64f63['id']));}else _0x396a8c=_0x21fba1;return _0x396a8c;}['_isMatchingFilter'](_0x17ffbf,_0x19161b){const _0x46eb0c=_0x17ffbf['id']['toLocaleLowerCase'](),_0x1003aa=_0x17ffbf['name']['toLocaleLowerCase'](),_0x1bab65=_0x17ffbf['provider']['toLocaleLowerCase']();return _0x46eb0c===_0x19161b||_0x1003aa===_0x19161b||isAutoModel(_0x17ffbf)&&'auto'===_0x19161b||_0x1bab65===_0x19161b||_0x46eb0c['startsWith'](_0x19161b);}['_getModelById'](_0x33e56e,_0x3a1a4c){return _0x33e56e['find'](_0x56cbf4=>isAutoModel(_0x56cbf4)&&'auto'===_0x3a1a4c?_0x56cbf4:_0x56cbf4['id']===_0x3a1a4c)||null;}}function isAutoModel(_0x54dfdc){return _0x54dfdc['id']['startsWith']('agent');}function getEditorFromContext(_0x1e2f9b){if(_0x1e2f9b instanceof Editor)return _0x1e2f9b;if(_0x1e2f9b?.['editors']&&_0x1e2f9b['editors']['get'](0x0))return _0x1e2f9b['editors']['length']>0x1&&console['warn']('AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.'),_0x1e2f9b['editors']['get'](0x0);throw new CKEditorError('ai-get-editor-from-context-no-editor');}function getOperationsFromReply({editor:_0x5a0ecf,interaction:_0x4ecef8,reply:_0x406da0,groups:_0x263240,transform:_0x38a007,documentCompare:_0x5b0f52,documentCompareOptions:_0x989728}){const _0x43ec71=_0x4ecef8['getDocumentContext']();if(!_0x43ec71)return[];const _0x4f1f7c=_0x43ec71['content'],_0x308a51=_0x43ec71['version'],_0x22f214=_0x406da0['documentContextContent']['cloneNode'](!0x0);for(const {changes:_0x4982ed}of _0x263240){const _0xdd06e5=_0x4982ed['filter'](_0x35b554=>'new'!=_0x35b554['type'])['map'](_0x22a05a=>findByAttribute('data-id',_0x22a05a['id'],_0x22f214)),_0x2a7a41=_0x4982ed['filter'](_0x1d152b=>'removed'!=_0x1d152b['type'])['map'](_0x146a00=>_0x146a00['node']['cloneNode'](!0x0));let _0x131dde=null;if(_0xdd06e5['length']){_0x131dde=_0xdd06e5[0x0]['previousSibling'];for(let _0x3acd46=0x0;_0x3acd46<_0xdd06e5['length'];_0x3acd46++)removeElement(_0xdd06e5[_0x3acd46]);}if(_0x2a7a41['length']){_0x131dde||(_0x4982ed[0x0]['anchorId']?_0x131dde=findByAttribute('data-id',_0x4982ed[0x0]['anchorId'],_0x22f214):(_0x131dde=_0x2a7a41['shift'](),prependChild(_0x22f214,_0x131dde)));for(let _0x18f01e=0x0;_0x18f01e<_0x2a7a41['length'];_0x18f01e++)append(_0x131dde,_0x2a7a41[_0x18f01e]),_0x131dde=_0x2a7a41[_0x18f01e];}}const _0x90cfe8=serialize(_0x22f214),_0x5d3ae4=_0x5b0f52['getDiff'](_0x4f1f7c,_0x90cfe8,_0x989728)['getOperations']();if(_0x38a007){const _0x352756=_0x5a0ecf['model']['document']['history']['getOperations'](_0x308a51),_0x57fceb={'document':_0x5a0ecf['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1};return transformOperationSets(_0x5d3ae4,_0x352756,_0x57fceb)['operationsA'];}return _0x5d3ae4;}function fixMarkerOperationOldRange(_0x1f7d65,_0xfc2f2){if('marker'!=_0xfc2f2['type'])return;const _0x2badd2=_0x1f7d65['model']['markers']['get'](_0xfc2f2['name']);_0x2badd2&&(_0xfc2f2['oldRange']=_0x2badd2['getRange']());}class AIChatController extends ContextPlugin{['_aiEditing'];['_aiConnector'];['_aiChatUi'];['_aiChatModels'];['_aiChatBalloon'];['_batchToChanges']=new Map();['_currentPreviewedChangeGroup']=null;['_bodyCollection'];static get['requires'](){return[AIConnector,DocumentCompare];}static get['pluginName'](){return'AIChatController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['context']['plugins']['get']('AIConnector'),this['_aiChatUi']=this['context']['plugins']['get']('AIChatUI'),this['_aiEditing']=this['context']['plugins']['get']('AIEditing'),this['_aiChatModels']=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});const _0x3372c7=this['context']['plugins']['get']('AITabs');this['listenTo'](this['_aiChatUi'],'startConversation',()=>{this['_startConversationSafely']();}),this['listenTo'](this['_aiChatUi'],'sendUserMessage',(_0x1d94fd,_0x5893e6)=>{this['_handleUIUserMessage']({'userMessage':_0x5893e6});}),this['listenTo'](_0x3372c7,'resizedTabs',(_0x191853,_0x5d0f7e)=>{this['_setIsMaximized'](_0x5d0f7e);}),this['listenTo'](this['_aiChatUi'],'resizeTabs',()=>{_0x3372c7['resize']();}),this['listenTo'](this['_aiChatUi'],'abortPromptStream',async()=>{await this['_stopLastInteraction'](),await this['_flushLastInteractionUI'](),this['removeSelectionFromChatContext']();}),this['listenTo'](this['_aiChatUi'],'addDocumentToContext',()=>{this['addCurrentDocumentToChatContext']();}),this['listenTo'](this['_aiChatUi'],'addFileToContext',(_0x5d68fc,_0x2d4380)=>{this['activeConversation']?.['addFilesToContext'](Array['from'](_0x2d4380));}),this['listenTo'](this['_aiChatUi'],'addUrlToContext',(_0x210e72,_0x3e495c)=>{this['activeConversation']?.['addUrlToContext'](_0x3e495c);}),this['listenTo'](this['_aiChatUi'],'executeCustomItemCallback',(_0x172bc5,_0x30f4fd)=>{_0x30f4fd['callback'](this['context']);}),this['listenTo'](this['_aiChatUi'],'addResourceToContext',(_0x1a48a7,_0x5949a9)=>{this['activeConversation']?.['addResourceToContext'](_0x5949a9['source'],_0x5949a9['resource']);}),this['listenTo'](this['_aiChatUi'],'removeContextItem',(_0x565070,_0x42e445)=>{this['_removeFromContext'](_0x42e445);}),this['listenTo'](this['_aiChatUi'],'loadSourceResources',(_0x4fe13b,_0x24b6cf)=>{this['activeConversation']?.['loadSourceResources'](_0x24b6cf['sourceId'],_0x24b6cf['query'],_0x24b6cf['uid']);}),this['listenTo'](this['_aiChatUi'],'toggleWebSearch',()=>{this['_toggleWebSearch']();}),this['listenTo'](this['_aiChatUi'],'toggleReasoning',()=>{this['_toggleReasoning']();}),this['listenTo'](this['_aiChatUi'],'selectModel',(_0x56951f,_0x4f9659)=>{this['activeConversation']?.['setModel'](_0x4f9659);}),this['listenTo'](this['_aiChatUi'],'like',(_0x3ae968,{replyId:_0x39a8ed})=>{console['log']('Liked\x20response',_0x39a8ed);}),this['listenTo'](this['_aiChatUi'],'dislike',(_0x5f2660,{replyId:_0x2430d2})=>{console['log']('Disliked\x20response',_0x2430d2);}),this['listenTo'](this['_aiChatUi'],'insertSuggestion',(_0x5ca30c,_0x504b4f)=>{this['_insertSuggestion'](_0x504b4f);}),this['listenTo'](this['_aiChatUi'],'showChangeInText',(_0x4f5abf,{replyId:_0x2155df,partIndex:_0x543e28})=>{this['_aiChatBalloonShowDiff']=this['_aiChatUi']['showDiff'],this['_openBalloonFor'](_0x2155df,_0x543e28);}),this['listenTo'](this['_aiChatUi'],'mouseOverSuggestion',(_0x2be7d8,{replyId:_0x2d4bec,partIndex:_0x471fff})=>{const _0x510168=this['_getDocumentRangeForReplyChanges'](_0x2d4bec,_0x471fff);_0x510168&&'$graveyard'!=_0x510168['range']['root']['rootName']&&this['_aiEditing']['showFakeVisualSelection']([_0x510168['range']],'ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'mouseLeaveSuggestion',()=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['listenTo'](this['_aiChatUi'],'applySuggestion',(_0x1bbb60,_0x4cc52a)=>{this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over'),this['_applySuggestion'](_0x4cc52a);}),this['listenTo'](this['_aiChatUi'],'toggleSuggestionDisplayMode',async(_0x41ce78,{replyId:_0x1065e2,showDiff:_0x156236})=>{const {reply:_0x60d63d}=this['getInteractionAndReplyById'](_0x1065e2),_0x5c0048=_0x60d63d['getContentParts']({'showDiff':_0x156236});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x60d63d['id'],'parts':_0x5c0048,'renderingStrategy':'static'});}),this['listenTo'](this['_aiChatUi'],'rejectSuggestion',(_0x49f1ef,{replyId:_0x557504,partIndex:_0x24caf7})=>{this['_rejectSuggestion']({'replyId':_0x557504,'partIndex':_0x24caf7}),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['context']['plugins']['has']('AIChatBalloon')&&(this['_aiChatBalloon']=this['context']['plugins']['get']('AIChatBalloon'),this['set']('_aiChatBalloonShowDiff',!0x1),this['_aiChatBalloon']['bind']('showDiff')['to'](this,'_aiChatBalloonShowDiff'),this['listenTo'](this['_aiChatBalloon'],'toggleSuggestionDisplayMode',()=>{const {replyId:_0x2291d8,partIndex:_0x16a4bd}=this['_currentPreviewedChangeGroup'];this['_aiChatBalloonShowDiff']=!this['_aiChatBalloonShowDiff'];const {reply:_0x41be72}=this['getInteractionAndReplyById'](_0x2291d8),_0x3e6790=_0x41be72['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff'],'groupIndex':_0x16a4bd});this['_aiChatBalloon']['updateContent']({'part':_0x3e6790[0x0],'renderingStrategy':'static','keepErrors':!0x0});}),this['listenTo'](this['_aiChatBalloon'],'applySuggestion',()=>{const {replyId:_0x239f00,partIndex:_0x187cc8}=this['_currentPreviewedChangeGroup'];this['_applySuggestion']({'replyId':_0x239f00,'partIndex':_0x187cc8}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'insertSuggestion',()=>{const {replyId:_0xc0ba1d,partIndex:_0xbd152d}=this['_currentPreviewedChangeGroup'];this['_insertSuggestion']({'replyId':_0xc0ba1d,'partIndex':_0xbd152d}),this['_aiChatBalloon']['setState']('accepted');}),this['listenTo'](this['_aiChatBalloon'],'rejectSuggestion',()=>{const {replyId:_0x1a255d,partIndex:_0xd107f9}=this['_currentPreviewedChangeGroup'];this['_rejectSuggestion']({'replyId':_0x1a255d,'partIndex':_0xd107f9}),this['_aiChatBalloon']['setState']('rejected');}),this['listenTo'](this['_aiChatBalloon'],'showNext',()=>{const {replyId:_0x4b9a93,partIndex:_0x2c5e54}=this['_currentPreviewedChangeGroup'],_0x1c69e5=this['_getPresentableSiblingContentPartIndex'](_0x4b9a93,_0x2c5e54,'next');null!==_0x1c69e5&&this['_openBalloonFor'](_0x4b9a93,_0x1c69e5);}),this['listenTo'](this['_aiChatBalloon'],'showPrevious',()=>{const {replyId:_0x1766f2,partIndex:_0xddc286}=this['_currentPreviewedChangeGroup'],_0x1a5639=this['_getPresentableSiblingContentPartIndex'](_0x1766f2,_0xddc286,'previous');null!==_0x1a5639&&this['_openBalloonFor'](_0x1766f2,_0x1a5639);}),this['listenTo'](this['_aiChatBalloon'],'dialogClosed',(_0x11536a,{id:_0x2e61e3})=>{if('aiChatBalloon'!==_0x2e61e3)return;const {replyId:_0x43f881,partIndex:_0x2d7170}=this['_currentPreviewedChangeGroup'];this['_currentPreviewedChangeGroup']=null,this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x43f881,'index':_0x2d7170,'isActive':!0x1});}));}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x322a43,_0x2d96b5)=>{_0x2d96b5['on']('ready',()=>{this['_integrateEditor'](_0x2d96b5);});});const _0x468763=this['context']['config']['get']('ai.chat.initialConversation');let _0x3e0965=_0x468763;if('lastCreated'!=_0x468763||(_0x3e0965=await this['_getLastCreatedConversationId'](),_0x3e0965))return'new'==_0x3e0965?this['_startConversationSafely']():this['loadConversation'](_0x3e0965);}async['destroy'](){return await this['_stopLastInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_insertSuggestion'](_0x1ffebf){const _0x51a454=getEditorFromContext(this['context']);if(!_0x51a454['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x3bd794=this['context']['plugins']['get']('DocumentCompare'),{reply:_0x4413ed,interaction:_0x156572}=this['getInteractionAndReplyById'](_0x1ffebf['replyId']),_0x35261b=this['_getDocumentRangeForReplyChanges'](_0x1ffebf['replyId'],_0x1ffebf['partIndex']),_0x15ceb2=void 0x0!==_0x1ffebf['partIndex']?[_0x4413ed['changeGroups'][_0x1ffebf['partIndex']]]:_0x4413ed['changeGroups']['filter'](_0x9a27fc=>'pending'==_0x9a27fc['state']),_0x4f8f76=_0x15ceb2['map'](_0x821261=>_0x4413ed['changeGroups']['indexOf'](_0x821261));if(!_0x35261b||'$graveyard'==_0x35261b['range']['root']['rootName'])return void _0x4f8f76['forEach'](_0x50dc06=>_0x4413ed['setChangeGroupState'](_0x50dc06,'outdated'));_0x4f8f76['forEach'](_0x398343=>_0x4413ed['setChangeGroupState'](_0x398343,'accepted'));const _0x12862e=getOperationsFromReply({'editor':_0x51a454,'reply':_0x4413ed,'interaction':_0x156572,'groups':_0x15ceb2,'transform':!0x0,'documentCompare':_0x3bd794,'documentCompareOptions':{'anchor':'main','markDeletions':!0x0}});let _0x5b597d;_0x35261b&&this['_scrollToSuggestionRange'](_0x35261b['range']),_0x51a454['model']['change'](_0x59e434=>{_0x5b597d=_0x59e434['batch'],_0x51a454['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x12862e),this['_aiEditing']['hideFakeVisualSelection']('ai-chat-controller-mouse-over');}),this['_batchToChanges']['set'](_0x5b597d,{'interactionId':_0x156572['id'],'replyId':_0x4413ed['id'],'indexes':_0x4f8f76['slice']()}),this['_updateRatings'](_0x4413ed);}['_applySuggestion'](_0x4e152c){const _0x4db955=getEditorFromContext(this['context']),_0x1f5151=this['context']['plugins']['get'](DocumentCompare),{reply:_0x38fa3c,interaction:_0x27a752}=this['getInteractionAndReplyById'](_0x4e152c['replyId']),_0xcd896c=this['_getDocumentRangeForReplyChanges'](_0x4e152c['replyId'],_0x4e152c['partIndex']),_0x465474=void 0x0!==_0x4e152c['partIndex']?[_0x38fa3c['changeGroups'][_0x4e152c['partIndex']]]:_0x38fa3c['changeGroups']['filter'](_0x5a4d10=>'pending'==_0x5a4d10['state']),_0x1f1203=_0x465474['map'](_0x4220df=>_0x38fa3c['changeGroups']['indexOf'](_0x4220df));if(!_0xcd896c||'$graveyard'==_0xcd896c['range']['root']['rootName'])return void _0x1f1203['forEach'](_0x3df668=>_0x38fa3c['setChangeGroupState'](_0x3df668,'outdated'));_0x1f1203['forEach'](_0x4577f9=>_0x38fa3c['setChangeGroupState'](_0x4577f9,'accepted'));const _0x4d6b77=getOperationsFromReply({'editor':_0x4db955,'reply':_0x38fa3c,'interaction':_0x27a752,'groups':_0x465474,'transform':!0x0,'documentCompare':_0x1f5151,'documentCompareOptions':{'anchor':'main','markDeletions':!0x1}});let _0x5e583b;_0xcd896c&&this['_scrollToSuggestionRange'](_0xcd896c['range']),_0x4db955['model']['change'](_0x4aa58e=>{_0x5e583b=_0x4aa58e['batch'];for(const _0x342251 of _0x4d6b77)_0x342251['baseVersion']=_0x4db955['model']['document']['version'],fixMarkerOperationOldRange(_0x4db955,_0x342251),_0x4aa58e['batch']['addOperation'](_0x342251),_0x4db955['model']['applyOperation'](_0x342251);}),this['_batchToChanges']['set'](_0x5e583b,{'interactionId':_0x27a752['id'],'replyId':_0x38fa3c['id'],'indexes':_0x1f1203['slice']()}),this['_updateRatings'](_0x38fa3c);}['_rejectSuggestion'](_0x9d98bb){const {reply:_0x21eb9d}=this['getInteractionAndReplyById'](_0x9d98bb['replyId']);_0x21eb9d['setChangeGroupState'](_0x9d98bb['partIndex'],'rejected');}['_openBalloonFor'](_0x97c8df,_0x13aa30){if(!this['_aiChatBalloon'])return;const {reply:_0x48396a}=this['getInteractionAndReplyById'](_0x97c8df),_0x5bb5f9=_0x48396a['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});let _0xe811db,_0x15a8ff;if(void 0x0!==_0x13aa30?(_0x15a8ff=_0x5bb5f9['find'](_0xcb7464=>_0xcb7464['index']==_0x13aa30),_0xe811db=_0x15a8ff?.['index']):(_0x15a8ff=_0x5bb5f9[0x0],_0xe811db=_0x15a8ff['index']),this['_currentPreviewedChangeGroup']?.['replyId']==_0x97c8df&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0xe811db)return;const _0x563016=this['_getUserPresentableContentPartDocumentRange'](_0x97c8df,_0x48396a,_0x15a8ff);if(!_0x563016)return void this['_aiChatBalloon']['close']();this['_currentPreviewedChangeGroup']={'replyId':_0x97c8df,'partIndex':_0xe811db},this['_scrollToSuggestionRange'](_0x563016,!0x0);const _0x2c85bb=this['_getPresentableSiblingContentPartIndex'](_0x97c8df,_0xe811db,'next');this['_aiChatBalloon']['updateContent']({'part':_0x15a8ff,'renderingStrategy':'static'}),this['_aiChatBalloon']['open']({'index':_0xe811db,'title':getTranslation$i(this['context']['locale'],'AI_BALLOON_HEADER_TITLE',(_0xe811db+0x1)['toString']()),'showRotator':null!==_0x2c85bb,'ranges':[_0x563016],'areActionsDisabled':_0x48396a['areActionsDisabled']}),this['_aiChatBalloon']['setState']('pending'),this['_aiChatUi']['scrollFeedToSuggestion'](_0x97c8df,_0xe811db),this['_aiChatUi']['setFeedItemAIReplySuggestionPartActive']({'id':_0x97c8df,'index':_0xe811db,'isActive':!0x0});}['_getPresentableSiblingContentPartIndex'](_0x87dc97,_0x5b2938,_0x294a77){const {reply:_0x4cb3d3}=this['getInteractionAndReplyById'](_0x87dc97),_0x404a2c=_0x4cb3d3['getContentParts']({'showDiff':this['_aiChatBalloonShowDiff']});if(0x1==_0x404a2c['length'])return null;const _0x21946e=_0x404a2c['findIndex'](_0x2dc705=>_0x2dc705['index']==_0x5b2938),_0x426242='next'==_0x294a77?0x1:-0x1;let _0x4c8b04=_0x404a2c['at']((_0x21946e+_0x426242)%_0x404a2c['length'])['index'],_0x6394a1=_0x404a2c[_0x4c8b04];for(;!this['_getUserPresentableContentPartDocumentRange'](_0x87dc97,_0x4cb3d3,_0x6394a1);){if(_0x4c8b04=_0x404a2c['at']((_0x4c8b04+_0x426242)%_0x404a2c['length'])['index'],_0x4c8b04===_0x21946e)return null;_0x6394a1=_0x404a2c[_0x4c8b04];}return _0x4c8b04;}['_getUserPresentableContentPartDocumentRange'](_0x178da2,_0x579002,_0x2cee42){const _0x4a718b=_0x579002['changeGroups'];if(!_0x2cee42['hasChanges'])return null;const _0x53714d=_0x4a718b['find'](_0x24a2c4=>_0x24a2c4['index']==_0x2cee42['index']);if('pending'!==_0x53714d?.['state'])return null;const _0x198b3e=this['_getDocumentRangeForReplyChanges'](_0x178da2,_0x2cee42['index']);if(!_0x198b3e)return null;const {range:_0x5b2d45,currentIndex:_0x563cad}=_0x198b3e;return'$graveyard'==_0x5b2d45['root']['rootName']?(_0x579002['setChangeGroupState'](_0x563cad,'outdated'),null):_0x198b3e['range'];}['_getDocumentRangeForReplyChanges'](_0x3de07b,_0x599530){const _0x1f5f34=getEditorFromContext(this['context']),{reply:_0x3c58fc,interaction:_0x57c142}=this['getInteractionAndReplyById'](_0x3de07b),_0x4f02b9=_0x3c58fc['changeGroups']['filter'](_0x5441c2=>'pending'==_0x5441c2['state']),_0x407c4d=_0x4f02b9['map'](_0x700db1=>_0x3c58fc['changeGroups']['indexOf'](_0x700db1));void 0x0===_0x599530&&(_0x599530=_0x407c4d[0x0]);const _0x2b6162=_0x407c4d['indexOf'](_0x599530);if(-0x1==_0x2b6162)return null;const _0x4edc51=_0x4f02b9[_0x2b6162],_0x5b710e=new Document([]),_0x5045fa=new Document([]);for(const _0x2aea62 of _0x4edc51['changes'])if('removed'!=_0x2aea62['type']&&_0x5045fa['children']['push'](_0x2aea62['node']['cloneNode'](!0x0)),'new'!=_0x2aea62['type']){const _0x2c4b3c=findOne(_0x2cc647=>getAttribute(_0x2cc647,'data-id')==_0x2aea62['id'],_0x3c58fc['documentContextContent'],!0x0);_0x5b710e['children']['push'](_0x2c4b3c['cloneNode'](!0x0));}if(0x0==_0x5b710e['children']['length']){if(_0x4edc51['changes'][0x0]['anchorId']){const _0x321d73=findByAttribute('data-id',_0x4edc51['changes'][0x0]['anchorId'],_0x3c58fc['documentContextContent']);_0x5b710e['children']['unshift'](_0x321d73['cloneNode'](!0x0)),_0x5045fa['children']['unshift'](_0x321d73['cloneNode'](!0x0)),_0x321d73['nextSibling']&&(_0x5b710e['children']['push'](_0x321d73['nextSibling']['cloneNode'](!0x0)),_0x5045fa['children']['push'](_0x321d73['nextSibling']['cloneNode'](!0x0)));}else{const _0x2e6f05=_0x3c58fc['documentContextContent']['children'][0x0];if(!_0x2e6f05)return null;_0x5b710e['children']['push'](_0x2e6f05['cloneNode'](!0x0)),_0x5045fa['children']['push'](_0x2e6f05['cloneNode'](!0x0));}}const _0x2c274b=_0x57c142['getDocumentContext'](),_0x419f46=_0x1f5f34['data']['parse'](_0x2c274b['content']),_0x297417=serialize(_0x5b710e),_0x1e75c8=_0x1f5f34['data']['parse'](_0x297417),_0x563207=_0x1f5f34['data']['parse'](_0x297417),_0x2ab45d=_0x1f5f34['model']['createPositionAt'](_0x1e75c8,0x0),_0x5829ef=serialize(_0x5045fa),_0x216610={'anchor':_0x2ab45d,'markDeletions':!0x1},_0x35d159=_0x1f5f34['plugins']['get'](DocumentCompare)['getDiff'](_0x297417,_0x5829ef,_0x216610)['getOperations']();if(!_0x35d159['length'])return null;_0x1f5f34['model']['change'](_0x7193f0=>{for(const _0x1cd3ee of _0x35d159)if('remove'==_0x1cd3ee['type']){const _0x4838ee=_0x1cd3ee['sourcePosition'],_0x5a8219=_0x1cd3ee['howMany'],_0x4a7e31=new _DetachOperation(_0x4838ee,_0x5a8219);_0x7193f0['batch']['addOperation'](_0x4a7e31),_0x1f5f34['model']['applyOperation'](_0x4a7e31);}else'marker'!==_0x1cd3ee['type']&&(_0x1cd3ee['baseVersion']=null,_0x1cd3ee['isDocumentOperation']=!0x1,_0x7193f0['batch']['addOperation'](_0x1cd3ee),_0x1f5f34['model']['applyOperation'](_0x1cd3ee));});const _0x5dcc7a=getMinimalSelection(_0x1f5f34,_0x35d159,_0x1e75c8);expandSelectionWithContext(_0x1f5f34['model'],_0x5dcc7a);const _0x151275=_0x5dcc7a['getFirstRange']()['start']['path']['slice'](),_0x4d7691=_0x5dcc7a['getFirstRange']()['end']['path']['slice'](),_0x4a50ad=[];let _0x5834c7=_0x1e75c8,_0x5c675b=_0x563207;for(let _0x24c5ba=0x0;_0x24c5ba<_0x4d7691['length'];_0x24c5ba++){const _0x300691=_0x5834c7['maxOffset']-_0x4d7691[_0x24c5ba];_0x4a50ad[_0x24c5ba]=_0x5c675b['maxOffset']-_0x300691,_0x5834c7=_0x5834c7['getChildAtOffset'](_0x4d7691[_0x24c5ba]),_0x5c675b=_0x5c675b['getChildAtOffset'](_0x4a50ad[_0x24c5ba]);}const _0xca7cf4=_0x1f5f34['model']['createRange'](_0x1f5f34['model']['createPositionFromPath'](_0x563207,_0x151275),_0x1f5f34['model']['createPositionFromPath'](_0x563207,_0x4a50ad)),_0x4e2bcb=_0x563207['getChild'](0x0)['getAttribute'](DATA_ID_MODEL_ATTRIBUTE),_0x39c7a7=Array['from'](_0x419f46['getChildren']())['find'](_0x42bc7e=>_0x42bc7e['getAttribute'](DATA_ID_MODEL_ATTRIBUTE)==_0x4e2bcb)['getPath'](),_0xaff27e=_0xca7cf4['start']['path']['slice'](),_0x2c8074=_0xca7cf4['end']['path']['slice']();_0xaff27e[0x0]=_0x39c7a7[0x0]+_0xaff27e[0x0],_0x2c8074[0x0]=_0x39c7a7[0x0]+_0x2c8074[0x0];let _0x154ea4=_0x1f5f34['model']['createRange'](_0x1f5f34['model']['createPositionFromPath'](_0x1f5f34['model']['document']['getRoot'](),_0xaff27e),_0x1f5f34['model']['createPositionFromPath'](_0x1f5f34['model']['document']['getRoot'](),_0x2c8074));const _0x316d19=_0x1f5f34['model']['document']['history']['getOperations'](_0x2c274b['version']);for(const _0x1a5724 of _0x316d19)_0x154ea4=ModelRange['_createFromRanges'](_0x154ea4['getTransformedByOperation'](_0x1a5724));return{'range':_0x154ea4,'currentIndex':_0x599530};}['_integrateEditor'](_0xdf9014){if(!_0xdf9014['plugins']['has']('Undo'))return;const _0x37a3f0=_0xdf9014['commands']['get']('undo'),_0x2f3072=_0xdf9014['commands']['get']('redo');this['listenTo'](_0x37a3f0,'revert',(_0x221eeb,_0x5da30e,_0x4e9df7)=>{const _0x1814fe=this['_batchToChanges']['get'](_0x5da30e);if(!_0x1814fe)return;const _0x53eb25=this['activeConversation']['getInteraction'](_0x1814fe['interactionId'])['getReply'](_0x1814fe['replyId']);_0x1814fe['indexes']['forEach'](_0x273da1=>_0x53eb25['setChangeGroupState'](_0x273da1,'pending')),this['_batchToChanges']['delete'](_0x5da30e),this['_batchToChanges']['set'](_0x4e9df7,_0x1814fe);}),this['listenTo'](_0x2f3072,'revert',(_0x2aca9b,_0x601010,_0x457656)=>{const _0x11a1c2=this['_batchToChanges']['get'](_0x601010);if(!_0x11a1c2)return;const _0xf4b025=this['activeConversation']['getInteraction'](_0x11a1c2['interactionId'])['getReply'](_0x11a1c2['replyId']);_0x11a1c2['indexes']['forEach'](_0x3d5ed1=>_0xf4b025['setChangeGroupState'](_0x3d5ed1,'accepted')),this['_batchToChanges']['delete'](_0x601010),this['_batchToChanges']['set'](_0x457656,_0x11a1c2);});}async['loadConversation'](_0x449658){this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),(this['context']['plugins']['get'](AITabs)['view']['activateTab']('chat'),this['_aiChatUi']['setFeedItemRenderingStrategy']('static'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x0),await this['_stopLastInteraction']());try{await this['_aiConnector']['fetchConversation'](_0x449658)['getConversation'](),await this['_startConversationSafely'](_0x449658),this['updateConversationTitle']('\x20'),await this['activeConversation']['load'](_0x449658,this['_aiEditing']['sessionId']),this['activeConversation']['isCurrentDocumentInConversation']()&&this['addCurrentDocumentToChatContext']();}catch(_0x4b33df){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':_0x449658}),this['_logError'](new CKEditorError('ai-chat-conversation-not-found',this,{'error':_0x4b33df}));}finally{this['_aiChatUi']['startAutoScroll'](),this['_aiChatUi']['setFeedItemRenderingStrategy']('streaming'),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1);}}async['_getLastCreatedConversationId'](){const _0x4764d1=this['_aiConnector']['fetchConversations'](this['getGroupId'](),{'limit':0x1,'sortBy':'createdAt'});try{const _0x10dd15=await _0x4764d1['getConversations']();return _0x10dd15['length']?_0x10dd15[0x0]['id']:'new';}catch(_0x5a52dc){return this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_LOAD_CONVERSATION'),'id':uid()}),this['_logError'](new CKEditorError('ai-chat-conversation-init-failed',this,{'error':_0x5a52dc})),this['_aiChatUi']['toggleLoadingSkeleton'](!0x1),this['_aiChatUi']['disableControls'](),null;}}['handleRemovedConversation'](_0xfec46f){this['activeConversation']['id']===_0xfec46f&&this['_startConversationSafely']();}['addCurrentDocumentToChatContext'](){this['activeConversation']?.['addCurrentDocumentToContext'](getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'));}async['addSelectionToChatContext'](){const _0x63a5a4=this['_aiEditing']['getSelectionText']();this['activeConversation']?.['addSelectionToContext'](_0x63a5a4),this['addCurrentDocumentToChatContext']();}['removeSelectionFromChatContext'](){this['activeConversation']?.['removeSelectionFromContext']();}['focusPromptInput'](){this['_aiChatUi']['focusPromptInput']();}async['startConversation'](){await this['_startConversationSafely']();}async['sendMessage']({message:_0x357543,attributes:_0x34e3b8}){await this['_handleUIUserMessage']({'userMessage':_0x357543,'attributes':_0x34e3b8});}['getGroupId'](){const _0x49d0a5=this['context']['config']['get']('collaboration.channelId');if(!_0x49d0a5)throw new CKEditorError('ai-chat-missing-channel-id',this);return _0x49d0a5;}async['_startConversationSafely'](_0x53c6a4){try{this['_aiChatUi']['enableControls'](),await this['_handleStartConversation'](_0x53c6a4);}catch(_0x36e3b1){this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x53c6a4||uid()}),console['error'](_0x36e3b1),this['activeConversation']=void 0x0,this['_aiChatUi']['disableControls']();}}async['_handleStartConversation'](_0x1eaaae){let _0x532ef3;this['context']['plugins']['has']('AIChatBalloon')&&this['context']['plugins']['get']('AIChatBalloon')['close'](),_0x1eaaae||!this['activeConversation']?_0x532ef3=this['context']['config']['get']('ai.models.defaultModelId'):this['_aiChatUi']['isModelAvailable']&&(_0x532ef3=this['activeConversation']['selectedModel']['id']),await this['_stopLastInteraction']();const _0x3c36c0=this['getGroupId'](),_0x25c551=_0x1eaaae||uid();this['activeConversation']=new AIChatConversation({'connector':this['_aiConnector'],'chatModels':this['_aiChatModels'],'selectedModelId':_0x532ef3,'conversationId':_0x25c551,'group':_0x3c36c0,'getEditor':()=>getEditorFromContext(this['context']),'isFromHistory':!!_0x1eaaae}),this['activeConversation']['delegate']('toolDataReceived','interactionStarted')['to'](this),this['activeConversation']['on']('conversationInitialized',(_0x2bba03,_0x5d9fda)=>{this['_aiChatUi']['createConversation'](_0x5d9fda),this['_aiChatUi']['resetMessageInput'](),this['_aiChatUi']['clearPendingContextUI'](),this['_aiChatUi']['clearConversationContextUI'](),_0x1eaaae||(this['_aiChatUi']['resetConversationTitle'](),this['addCurrentDocumentToChatContext']());}),this['activeConversation']['on']('uploadProgressChanged',(_0x4c85b0,_0x5e73b8)=>{this['_aiChatUi']['setIsUploadInProgress'](_0x5e73b8['isUploadInProgress']);}),this['activeConversation']['on']('interactionCreated',(_0x31343a,_0x5f3792)=>{this['_aiChatUi']['addFeedItemUserMessage'](_0x5f3792);}),this['activeConversation']['on']('webSearchStarted',()=>{const _0x4e4cf5=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this['_aiChatUi']['setLoadingMessage'](_0x4e4cf5);}),this['activeConversation']['on']('reasoningStarted',()=>{const _0x55cf20=this['_aiChatUi']['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this['_aiChatUi']['setLoadingMessage'](_0x55cf20);}),this['activeConversation']['on']('webSearchFinished',(_0x360db6,_0x23376a)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0x23376a,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this['activeConversation']['on']('reasoningFinished',(_0x14388f,_0xe7bd04)=>{this['_aiChatUi']['addFeedInteractionHeader'](_0xe7bd04,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this['activeConversation']['on']('interactionStarted',()=>{this['_aiChatUi']['startInteraction']();}),this['activeConversation']['on']('interactionFinished',async()=>{await this['_aiChatUi']['finishInteraction']();}),this['activeConversation']['on']('interactionDestroyed',(_0x117962,_0x30d42a)=>{this['_aiChatUi']['removeFeedInteraction'](_0x30d42a['id']);}),this['activeConversation']['on']('setConversationTitle',(_0x24e37e,_0x13c7e3,_0x45586b)=>{this['updateConversationTitle'](_0x13c7e3,_0x45586b);}),this['activeConversation']['on']('replyCreated',(_0x3e60d6,_0x403594)=>{'text'===_0x403594['type']?this['_aiChatUi']['addFeedItemAIReply'](_0x403594):this['_aiChatUi']['addFeedItemAISuggestion'](_0x403594);}),this['activeConversation']['on']('replyContentUpdated',async(_0x4b346d,_0x4f5fb1)=>{await this['_updateReplyContent']({'reply':_0x4f5fb1});}),this['activeConversation']['on']('replyChangeGroupStateUpdated',(_0x353687,{reply:_0x30998f,index:_0x3127f5,state:_0x3d9e2c})=>{this['_aiChatUi']['updateFeedItemAIReplySuggestionPartState']({'id':_0x30998f['id'],'index':_0x3127f5,'state':_0x3d9e2c}),this['_currentPreviewedChangeGroup']?.['replyId']['includes'](_0x30998f['id'])&&this['_currentPreviewedChangeGroup']?.['partIndex']==_0x3127f5&&this['_aiChatBalloon']?.['setState'](_0x3d9e2c);}),this['activeConversation']['on']('contextItemAdded',(_0x3bdd4c,_0x50b95c)=>{if(this['_aiChatUi']['addContextItem'](_0x50b95c['contextItem'],_0x50b95c['isLoading']),'selection'===_0x50b95c['contextItem']['type']){const _0x1ff684=[...getEditorFromContext(this['context'])['model']['document']['selection']['getRanges']()];this['_aiEditing']['showFakeVisualSelection'](_0x1ff684,'ai-conversation-'+this['activeConversation']?.['id']);}}),this['activeConversation']['on']('contextItemRemoved',(_0xf0aec,_0x1f5f70)=>{this['_aiChatUi']['removeContextItem'](_0x1f5f70['uiId']),'current-document'==_0x1f5f70['uiId']&&this['removeSelectionFromChatContext'](),'selection'===_0x1f5f70['type']&&this['_aiEditing']['hideFakeVisualSelection']('ai-conversation-'+this['activeConversation']?.['id']);}),this['activeConversation']['on']('contextItemLoadingEnded',(_0x230d68,_0x72bc7b)=>{this['_aiChatUi']['setContextItemLoading'](_0x72bc7b['contextItem']['uiId'],_0x72bc7b['isLoading']);}),this['activeConversation']['on']('contextSent',(_0x2f1dbf,_0x2f521b)=>{this['_aiChatUi']['setConversationContext'](_0x2f521b['contextItems']);}),this['activeConversation']['on']('addContextOptionsChanged',(_0x44c9aa,_0xbd904f)=>{this['_aiChatUi']['setAddContextOptions'](_0xbd904f['options']);}),this['activeConversation']['on']('sourceResourcesLoaded',(_0x44a6fc,_0x21e74d)=>{this['_aiChatUi']['populateSourceResourceBalloon'](_0x21e74d['sourceId'],_0x21e74d['source'],_0x21e74d['resources'],_0x21e74d['uid']);}),this['activeConversation']['on']('resourceStateChanged',(_0x2c69d4,_0x39d231)=>{this['_aiChatUi']['updateResourceState'](_0x39d231['sourceId'],_0x39d231['resourceId'],_0x39d231['isInContext']);}),this['activeConversation']['on']('capabilitiesUpdated',(_0x14e4d6,_0xa66b0c)=>{this['_aiChatUi']['updateCapabilities'](_0xa66b0c);}),this['activeConversation']['on']('modelSelected',async(_0x36dfba,_0x16e395)=>{const _0x21a8dc=(await this['_aiChatModels']['getAll']())['find'](_0x863130=>_0x863130['id']===_0x16e395['selectedModel']?.['id'])||null;this['_aiChatUi']['setSelectedModel'](_0x21a8dc,_0x16e395['isDisabled']);}),this['activeConversation']['on']('error',(_0x50f115,{error:_0x295fb3,interactionId:_0x182a8d,fileName:_0x3d9e92,url:_0x3bbc01,sourceId:_0x26d887,sourceLabel:_0xeb0bac})=>{const _0x47e587=_0x182a8d?_0x182a8d+':'+uid():uid();_0x295fb3['message']['startsWith']('ai-request-aborted')?this['_aiChatUi']['addFeedItemStaticMessage']({'staticMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_ABORTED_MESSAGE'),'id':_0x47e587}):_0x295fb3['message']['startsWith']('ai-chat-conversation-init-failed')||_0x295fb3['message']['startsWith']('ai-chat-conversation-start-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_UNABLE_TO_START_CONVERSATION'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-file-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE',_0x3d9e92),'id':_0x47e587}):_0x295fb3['message']['startsWith']('ai-chat-url-upload-failed')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL',_0x3bbc01),'id':_0x47e587}):_0x295fb3['message']['startsWith']('ai-chat-context-invalid-data')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_INVALID_DATA'),'id':_0x47e587}):_0x295fb3['message']['startsWith']('ai-chat-context-unsupported-type')?this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_TYPE'),'id':_0x47e587}):_0x295fb3['message']['startsWith']('ai-chat-source-resources-load-failed')?(_0x26d887&&this['_aiChatUi']['closeSourceResourceBalloon'](_0x26d887),this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES',_0xeb0bac||'source'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-resource-load-failed')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_RESOURCE_LOAD_FAILED'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-invalid-request')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_INVALID_REQUEST'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-context-unsupported-file-type')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-context-file-too-large')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_LARGE'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-context-file-too-many-pages')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES'),'id':_0x47e587}),this['_logError'](_0x295fb3)):_0x295fb3['message']['startsWith']('ai-chat-context-form-data-size-limits-exceeded')?(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED'),'id':_0x47e587}),this['_logError'](_0x295fb3)):(this['_aiChatUi']['addFeedItemError']({'errorMessage':getTranslation$i(this['context']['locale'],'AI_CHAT_GENERIC_ERROR'),'id':_0x47e587}),this['_logError'](_0x295fb3));}),await this['activeConversation']['init'](this['context']['config']['get']('ai.chat.context')),_0x1eaaae||await this['activeConversation']['start']();}async['_handleUIUserMessage']({userMessage:_0x233e5c,attributes:_0x1b2d48}){if(!this['activeConversation'])throw new CKEditorError('ai-chat-controller-no-active-conversation');if(this['activeConversation']['isCurrentDocumentInContext']()){const _0x1b3f16=await this['_aiEditing']['getDocumentData']();await this['activeConversation']['updateCurrentDocumentInContext'](_0x1b3f16);}this['activeConversation']['id']&&this['activeConversation']['isStarted']&&await this['activeConversation']['handleUserInteraction']({'userMessage':_0x233e5c,'attributes':_0x1b2d48});}['_showConversationHistory'](){console['log']('Showing\x20conversation\x20history...');}['_setIsMaximized'](_0x2bd3a8){this['_aiChatUi']['setIsMaximized'](_0x2bd3a8);}['_logError'](_0x4ce6f5){logError(_0x4ce6f5['message']);}['_removeFromContext'](_0x32f94d){this['activeConversation']?.['removeFromContext'](_0x32f94d);}['_toggleWebSearch'](){this['activeConversation']?.['toggleWebSearch']();}['_toggleReasoning'](){this['activeConversation']?.['toggleReasoning']();}['getInteractionAndReplyById'](_0x4e17bb){const [_0x22a894,_0x595552]=_0x4e17bb['split'](':'),_0x172447=this['activeConversation']['getInteraction'](_0x22a894),_0x2e6fae=_0x172447['getReply'](_0x595552);return{'interaction':_0x172447,'reply':_0x2e6fae};}['_scrollToSuggestionRange'](_0x139689,_0xa8526f=!0x1){const _0x2a1b92=getEditorFromContext(this['context']),_0x54c55f={'target':_0x2a1b92['editing']['view']['domConverter']['viewRangeToDom'](_0x2a1b92['editing']['mapper']['toViewRange'](_0x139689)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xa8526f};_0xa8526f&&(_0x54c55f['alignToTop']=!0x0),scrollViewportToShowTarget(_0x54c55f);}['updateConversationTitle'](_0x369521,_0x3fac31=!0x1){this['_aiChatUi']['setConversationTitle'](_0x369521||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),_0x3fac31);}async['_updateReplyContent']({reply:_0x32efa6,renderingStrategy:_0xcf00f0}){const {id:_0x1c8d6c,interactionId:_0x2b4a50,isDone:_0x4695ba,type:_0xbf4088,parsedContent:_0x1754b6}=_0x32efa6,_0x27d266=_0x2b4a50+':'+_0x1c8d6c;if('modification'===_0xbf4088){const _0x165ae5=_0x32efa6['getContentParts']({'showDiff':this['_aiChatUi']['showDiff']});await this['_aiChatUi']['updateFeedItemAIReplySuggestionContent']({'id':_0x27d266,'parts':_0x165ae5,'renderingStrategy':_0xcf00f0,'isDone':_0x4695ba});}else'text'===_0xbf4088&&await this['_aiChatUi']['updateFeedItemAIReplyContent']({'id':_0x27d266,'parsedContent':_0x1754b6,'renderingStrategy':_0xcf00f0,'isDone':_0x4695ba});_0x4695ba&&_0x32efa6['sources']['length']>0x0&&this['_aiChatUi']['updateFeedItemAIReplySources'](_0x27d266,_0x32efa6['sources']);}async['_stopLastInteraction'](){const _0x22fca4=this['activeConversation']?.['lastInteraction'];_0x22fca4&&(_0x22fca4['stop'](),this['_aiChatUi']['stopInteraction'](_0x22fca4));}async['_flushLastInteractionUI'](){const _0x1a28b5=this['activeConversation']?.['lastInteraction'];if(_0x1a28b5){for await(const _0x2d53cc of _0x1a28b5['replies'])await this['_updateReplyContent']({'reply':_0x2d53cc,'renderingStrategy':'static'});}}['_updateRatings'](_0x435701){const _0x5acc7c={'positiveCount':_0x435701['changeGroups']['filter'](_0xaeac23=>'accepted'===_0xaeac23['state'])['length'],'totalCount':_0x435701['changeGroups']['length'],'modificationId':_0x435701['id']},_0xc6a619=this['activeConversation']['getInteraction'](_0x435701['interactionId'])['messageId'];_0xc6a619&&this['_aiConnector']['upsertAIChatRating'](this['activeConversation']['id'],_0xc6a619,_0x5acc7c);}['_registerToolDataCallback'](_0x1b188c){let _0x426386=null,_0x5dfbc1=null;this['on']('toolDataReceived',(_0x532ce1,_0x55b923,_0xac0baa)=>{_0xac0baa['id']!==_0x426386&&(_0x426386=_0xac0baa['id'],_0x5dfbc1=this['_getAIChatInteractionAPI'](_0xac0baa)),_0x1b188c(_0x55b923,_0x5dfbc1);});}['_getAIChatInteractionAPI'](_0xef5d57){const _0x2798ed=this['_aiChatUi'],_0x1805c8=()=>{_0xef5d57['resetWebSearchState'](),_0xef5d57['resetReasoningState'](),_0x2798ed['clearLoadingMessage']();},_0x3958ab=()=>{_0xef5d57['currentReply']&&(_0xef5d57['currentReply']['done'](),_0xef5d57['currentReply']=void 0x0);};return{'insertTextReply':(_0x2b9c46,_0x948199)=>{_0x3958ab(),_0x1805c8();const _0x362e98=_0xef5d57['currentReply']=_0xef5d57['createReply']({'type':'text','interactionId':_0xef5d57['id'],'content':_0x2b9c46,'id':_0x948199||uid()});return _0x3958ab(),_0x362e98;},'insertCustomElement':async(_0x24e1ea,_0x3631a0)=>(_0x3958ab(),_0x1805c8(),_0x2798ed['addFeedItemCustomElement'](_0x24e1ea,_0x3631a0||uid())),'setLoadingMessage':_0x4cdf82=>{_0x2798ed['setLoadingMessage'](_0x4cdf82);},'clearLoadingMessage':()=>{_0x2798ed['clearLoadingMessage']();}};}}const AI_VISUAL_SELECTION_MARKER_NAME='ai-selection';class AIEditing extends ContextPlugin{constructor(_0x282c30){super(_0x282c30),this['context']['config']['define']('ai.models.showModelSelector',!0x0);}['_outputDataProcessor'];['_displayedFakeSelectionId']=null;['_displayedFakeSelectionLocked']=!0x1;['_sessionId'];static get['pluginName'](){return'AIEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['sessionId'](){if(!this['_sessionId']){const _0x568e5d=getEditorFromContext(this['context']),_0x4fc820=_0x568e5d['plugins']['has']('RealTimeCollaborationClient')&&_0x568e5d['plugins']['get']('RealTimeCollaborationClient')['sessionId'];this['_sessionId']=_0x4fc820||uid();}return this['_sessionId'];}async['getDocumentData'](){const _0x21ca20=getEditorFromContext(this['context']),_0x9f44b0=_0x21ca20['model'],_0x188b45=_0x21ca20['data']['toView'](_0x9f44b0['document']['getRoot'](),{'convertAiChatSelectionMarker':!0x0}),_0x6f2b63=new ViewDowncastWriter(_0x21ca20['editing']['view']['document']);this['_setDataIdsOnChildren'](_0x188b45,_0x6f2b63);let _0x48f467=await this['_getDocumentDataStringFromView'](_0x188b45);const _0xf8a6a3=this['_getMarkersInDocumentOrder'](),_0x1ed9c4=[];for(const _0x4bb5df of _0xf8a6a3){const _0x2e98de='<'+_0x4bb5df['name']+':start></'+_0x4bb5df['name']+':start>',_0x382a6e=_0x48f467['indexOf'](_0x2e98de);_0x48f467=_0x48f467['substring'](0x0,_0x382a6e)+_0x48f467['substring'](_0x382a6e+_0x2e98de['length']);const _0x3da58c='<'+_0x4bb5df['name']+':end></'+_0x4bb5df['name']+':end>',_0x6d134=_0x48f467['indexOf'](_0x3da58c);_0x48f467=_0x48f467['substring'](0x0,_0x6d134)+_0x48f467['substring'](_0x6d134+_0x3da58c['length']),_0x1ed9c4['push']({'markerName':_0x4bb5df['name'],'start':_0x382a6e,'end':_0x6d134,'htmlFragment':_0x48f467['substring'](_0x382a6e,_0x6d134)});}return{'content':_0x48f467,'version':_0x21ca20['model']['document']['version'],'sessionId':this['sessionId'],'selections':_0x1ed9c4};}async['afterInit'](){this['context']instanceof Editor?this['_integrateEditor'](this['context']):this['listenTo'](this['context']['editors'],'add',(_0x215418,_0x23f2c1)=>{_0x23f2c1['on']('ready',()=>{this['_integrateEditor'](_0x23f2c1);});});}['_setOutputDataProcessor'](_0x14b426){this['_outputDataProcessor']=_0x14b426;}async['_getDocumentDataStringFromView'](_0xbdea62){let _0x2135b7;const _0x9a2f73=getEditorFromContext(this['context']);if(this['_outputDataProcessor']){const _0x43a84e=_0x9a2f73['data']['processor']['domConverter']['viewToDom'](_0xbdea62),_0x287eab=await this['_outputDataProcessor'](_0x43a84e);_0x2135b7=_0x9a2f73['data']['processor']['htmlWriter']['getHtml'](_0x287eab);}else _0x2135b7=_0x9a2f73['data']['processor']['toData'](_0xbdea62);return _0x2135b7;}['_integrateEditor'](_0x2e72ff){_0x2e72ff['conversion']['for']('editingDowncast')['markerToHighlight']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':{'classes':['ck-fake-ai-selection','ck-ai-assistant-ui_theme'],'priority':0xc}}),_0x2e72ff['conversion']['for']('dataDowncast')['markerToElement']({'model':AI_VISUAL_SELECTION_MARKER_NAME,'view':(_0x3a3d7e,{writer:_0x45cf51,options:_0x12ce28})=>_0x12ce28['convertAiChatSelectionMarker']?_0x45cf51['createUIElement'](_0x3a3d7e['markerName']+':'+(_0x3a3d7e['isOpening']?'start':'end')):null});}['showFakeVisualSelection'](_0x25c066,_0x24620c,_0x4ed246=!0x1,_0x3cd758=!0x1){if(this['_displayedFakeSelectionLocked']&&!_0x3cd758)return!0x1;const _0x3ffaea=getEditorFromContext(this['context'])['model'];return _0x3ffaea['change'](_0x2634bc=>{this['_displayedFakeSelectionId']&&this['hideFakeVisualSelection'](this['_displayedFakeSelectionId']),this['_displayedFakeSelectionId']=_0x24620c,this['_displayedFakeSelectionLocked']=_0x4ed246;let _0x13d308=0x0;for(let _0x4e82b2 of _0x25c066){const _0x9d42a5=AI_VISUAL_SELECTION_MARKER_NAME+':'+_0x13d308;if(_0x4e82b2['start']['isAtEnd']){const _0x1f2901=_0x4e82b2['start']['getLastMatchingPosition'](({item:_0xe015a3})=>!_0x3ffaea['schema']['isContent'](_0xe015a3),{'boundaries':_0x4e82b2});_0x4e82b2=_0x2634bc['createRange'](_0x1f2901,_0x4e82b2['end']);}_0x2634bc['addMarker'](_0x9d42a5,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e82b2}),_0x13d308++;}}),window['getSelection']()?.['removeAllRanges'](),!0x0;}['hideFakeVisualSelection'](_0x50128d){if(this['_displayedFakeSelectionId']!=_0x50128d)return!0x1;this['_displayedFakeSelectionId']=null,this['_displayedFakeSelectionLocked']=!0x1;const _0x1fe394=getEditorFromContext(this['context']),_0x1bbf70=_0x1fe394['model']['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME);return _0x1fe394['model']['change'](_0x4a6eb2=>{for(const _0x2ac4af of _0x1bbf70)_0x4a6eb2['removeMarker'](_0x2ac4af);}),!0x0;}async['modelToDataWithIds'](_0x32dc40){const _0xf3677f=getEditorFromContext(this['context']),_0x5031f9=_0xf3677f['data']['toView'](_0x32dc40),_0x4613cd=new ViewDowncastWriter(_0xf3677f['editing']['view']['document']);return this['_setDataIdsOnChildren'](_0x5031f9,_0x4613cd),this['_getDocumentDataStringFromView'](_0x5031f9);}['_setDataIdsOnChildren'](_0x4cb2b8,_0x570ef9){let _0x576a26=!0x1;const _0x965f9a=new Set();for(const _0x4d1a0a of _0x4cb2b8['getChildren']()){const _0x4fa8a8=_0x4d1a0a['is']('emptyElement')||_0x4d1a0a['is']('containerElement');if(!_0x4d1a0a['is']('element'))continue;(this['_setDataIdsOnChildren'](_0x4d1a0a,_0x570ef9)||_0x4fa8a8)&&(_0x570ef9['setAttribute']('data-id',this['_nextDataId'](_0x965f9a),_0x4d1a0a),_0x576a26=!0x0);}return _0x576a26;}['_nextDataId'](_0x64c4db){let _0x2e50ad;do{_0x2e50ad='';for(let _0x1fa65e=0x0;_0x1fa65e<0x4;_0x1fa65e++)_0x2e50ad+=String['fromCharCode'](0x61+Math['floor'](0x1a*Math['random']()));}while(_0x64c4db['has'](_0x2e50ad));return _0x64c4db['add'](_0x2e50ad),_0x2e50ad;}['getSelectionText'](){const {model:_0x575a8f}=getEditorFromContext(this['context']),_0x41a2cf=_0x575a8f['document']['selection'],_0x3733e0=[];for(const _0x19a502 of _0x41a2cf['getRanges']())for(const _0x201e0c of _0x19a502['getItems']())_0x201e0c['is']('$textProxy')?_0x3733e0['push'](_0x201e0c['data']):_0x201e0c['is']('element')&&_0x3733e0['length']>0x0&&'\x20'!==_0x3733e0[_0x3733e0['length']-0x1]&&_0x3733e0['push']('\x20');return _0x3733e0['length']?'\x22'+_0x3733e0['join']('')['trim']()+'\x22':getTranslation$i(this['context']['locale'],'AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL');}['_getMarkersInDocumentOrder'](){const _0x1200d9=getEditorFromContext(this['context'])['model'];return Array['from'](_0x1200d9['markers']['getMarkersGroup'](AI_VISUAL_SELECTION_MARKER_NAME))['sort']((_0xb423d,_0x5eed5b)=>_0xb423d['getStart']()['isBefore'](_0x5eed5b['getStart']())?-0x1:_0xb423d['getStart']()['isAfter'](_0x5eed5b['getStart']())?0x1:0x0);}}const AI_SUGGESTION_UI_EVENT_NAMES=['showChangeInText','insertSuggestion','applySuggestion','rejectSuggestion','mouseOverSuggestion','mouseLeaveSuggestion','toggleSuggestionDisplayMode','like','dislike'],AI_CHAT_UI_EVENT_NAMES=[...AI_SUGGESTION_UI_EVENT_NAMES,'startConversation','resizeTabs','sendUserMessage','abortPromptStream','addDocumentToContext','addFileToContext','addUrlToContext','executeCustomItemCallback','addResourceToContext','removeContextItem','loadSourceResources','toggleWebSearch','toggleReasoning','selectModel'];var DOCUMENT_FRAGMENT_NODE=0xb,range;function morphAttrs(_0x42628d,_0x493171){var _0x5b77e3,_0x9bf48,_0xede607,_0x50c01d,_0x5bb0af=_0x493171['attributes'];if(_0x493171['nodeType']!==DOCUMENT_FRAGMENT_NODE&&_0x42628d['nodeType']!==DOCUMENT_FRAGMENT_NODE){for(var _0x4126a3=_0x5bb0af['length']-0x1;_0x4126a3>=0x0;_0x4126a3--)_0x9bf48=(_0x5b77e3=_0x5bb0af[_0x4126a3])['name'],_0xede607=_0x5b77e3['namespaceURI'],_0x50c01d=_0x5b77e3['value'],_0xede607?(_0x9bf48=_0x5b77e3['localName']||_0x9bf48,_0x42628d['getAttributeNS'](_0xede607,_0x9bf48)!==_0x50c01d&&('xmlns'===_0x5b77e3['prefix']&&(_0x9bf48=_0x5b77e3['name']),_0x42628d['setAttributeNS'](_0xede607,_0x9bf48,_0x50c01d))):_0x42628d['getAttribute'](_0x9bf48)!==_0x50c01d&&_0x42628d['setAttribute'](_0x9bf48,_0x50c01d);for(var _0x4e76e0=_0x42628d['attributes'],_0xe47e=_0x4e76e0['length']-0x1;_0xe47e>=0x0;_0xe47e--)_0x9bf48=(_0x5b77e3=_0x4e76e0[_0xe47e])['name'],(_0xede607=_0x5b77e3['namespaceURI'])?(_0x9bf48=_0x5b77e3['localName']||_0x9bf48,_0x493171['hasAttributeNS'](_0xede607,_0x9bf48)||_0x42628d['removeAttributeNS'](_0xede607,_0x9bf48)):_0x493171['hasAttribute'](_0x9bf48)||_0x42628d['removeAttribute'](_0x9bf48);}}var NS_XHTML='http://www.w3.org/1999/xhtml',doc$1='undefined'==typeof document?void 0x0:document,HAS_TEMPLATE_SUPPORT=!!doc$1&&'content'in doc$1['createElement']('template'),HAS_RANGE_SUPPORT=!!doc$1&&doc$1['createRange']&&'createContextualFragment'in doc$1['createRange']();function createFragmentFromTemplate(_0x28d4f0){var _0xaa12cf=doc$1['createElement']('template');return _0xaa12cf['innerHTML']=_0x28d4f0,_0xaa12cf['content']['childNodes'][0x0];}function createFragmentFromRange(_0x5aed56){return range||(range=doc$1['createRange']())['selectNode'](doc$1['body']),range['createContextualFragment'](_0x5aed56)['childNodes'][0x0];}function createFragmentFromWrap(_0x4f2f7f){var _0x5a980c=doc$1['createElement']('body');return _0x5a980c['innerHTML']=_0x4f2f7f,_0x5a980c['childNodes'][0x0];}function toElement(_0xe348f7){return _0xe348f7=_0xe348f7['trim'](),HAS_TEMPLATE_SUPPORT?createFragmentFromTemplate(_0xe348f7):HAS_RANGE_SUPPORT?createFragmentFromRange(_0xe348f7):createFragmentFromWrap(_0xe348f7);}function compareNodeNames(_0x7ffd63,_0x1dbb7d){var _0x456ce9,_0x3320a8,_0x43010a=_0x7ffd63['nodeName'],_0x386d79=_0x1dbb7d['nodeName'];return _0x43010a===_0x386d79||(_0x456ce9=_0x43010a['charCodeAt'](0x0),_0x3320a8=_0x386d79['charCodeAt'](0x0),_0x456ce9<=0x5a&&_0x3320a8>=0x61?_0x43010a===_0x386d79['toUpperCase']():_0x3320a8<=0x5a&&_0x456ce9>=0x61&&_0x386d79===_0x43010a['toUpperCase']());}function createElementNS(_0x1d46d5,_0x280b94){return _0x280b94&&_0x280b94!==NS_XHTML?doc$1['createElementNS'](_0x280b94,_0x1d46d5):doc$1['createElement'](_0x1d46d5);}function moveChildren(_0x39d40c,_0x1501ba){for(var _0x337aef=_0x39d40c['firstChild'];_0x337aef;){var _0x2c78da=_0x337aef['nextSibling'];_0x1501ba['appendChild'](_0x337aef),_0x337aef=_0x2c78da;}return _0x1501ba;}function syncBooleanAttrProp(_0x264d26,_0x59dbfd,_0x2bcf5d){_0x264d26[_0x2bcf5d]!==_0x59dbfd[_0x2bcf5d]&&(_0x264d26[_0x2bcf5d]=_0x59dbfd[_0x2bcf5d],_0x264d26[_0x2bcf5d]?_0x264d26['setAttribute'](_0x2bcf5d,''):_0x264d26['removeAttribute'](_0x2bcf5d));}var specialElHandlers={'OPTION':function(_0x40589b,_0x3c6cc6){var _0x4c7b2b=_0x40589b['parentNode'];if(_0x4c7b2b){var _0x46695d=_0x4c7b2b['nodeName']['toUpperCase']();'OPTGROUP'===_0x46695d&&(_0x46695d=(_0x4c7b2b=_0x4c7b2b['parentNode'])&&_0x4c7b2b['nodeName']['toUpperCase']()),'SELECT'!==_0x46695d||_0x4c7b2b['hasAttribute']('multiple')||(_0x40589b['hasAttribute']('selected')&&!_0x3c6cc6['selected']&&(_0x40589b['setAttribute']('selected','selected'),_0x40589b['removeAttribute']('selected')),_0x4c7b2b['selectedIndex']=-0x1);}syncBooleanAttrProp(_0x40589b,_0x3c6cc6,'selected');},'INPUT':function(_0x17eede,_0x2f5017){syncBooleanAttrProp(_0x17eede,_0x2f5017,'checked'),syncBooleanAttrProp(_0x17eede,_0x2f5017,'disabled'),_0x17eede['value']!==_0x2f5017['value']&&(_0x17eede['value']=_0x2f5017['value']),_0x2f5017['hasAttribute']('value')||_0x17eede['removeAttribute']('value');},'TEXTAREA':function(_0x5372c4,_0x739c70){var _0x1a9611=_0x739c70['value'];_0x5372c4['value']!==_0x1a9611&&(_0x5372c4['value']=_0x1a9611);var _0xea571e=_0x5372c4['firstChild'];if(_0xea571e){var _0x3ad80c=_0xea571e['nodeValue'];if(_0x3ad80c==_0x1a9611||!_0x1a9611&&_0x3ad80c==_0x5372c4['placeholder'])return;_0xea571e['nodeValue']=_0x1a9611;}},'SELECT':function(_0x4ca2b4,_0x483158){if(!_0x483158['hasAttribute']('multiple')){for(var _0x3e88f5,_0x46a67b,_0x1d68c7=-0x1,_0x1e7463=0x0,_0x4551fe=_0x4ca2b4['firstChild'];_0x4551fe;)if('OPTGROUP'===(_0x46a67b=_0x4551fe['nodeName']&&_0x4551fe['nodeName']['toUpperCase']()))(_0x4551fe=(_0x3e88f5=_0x4551fe)['firstChild'])||(_0x4551fe=_0x3e88f5['nextSibling'],_0x3e88f5=null);else{if('OPTION'===_0x46a67b){if(_0x4551fe['hasAttribute']('selected')){_0x1d68c7=_0x1e7463;break;}_0x1e7463++;}!(_0x4551fe=_0x4551fe['nextSibling'])&&_0x3e88f5&&(_0x4551fe=_0x3e88f5['nextSibling'],_0x3e88f5=null);}_0x4ca2b4['selectedIndex']=_0x1d68c7;}}},ELEMENT_NODE=0x1,DOCUMENT_FRAGMENT_NODE$1=0xb,TEXT_NODE=0x3,COMMENT_NODE=0x8;function noop(){}function defaultGetNodeKey(_0xc5e993){if(_0xc5e993)return _0xc5e993['getAttribute']&&_0xc5e993['getAttribute']('id')||_0xc5e993['id'];}function morphdomFactory(_0xcc1764){return function(_0x2e7f4e,_0x4b8b0c,_0x4a091d){if(_0x4a091d||(_0x4a091d={}),'string'==typeof _0x4b8b0c){if('#document'===_0x2e7f4e['nodeName']||'HTML'===_0x2e7f4e['nodeName']||'BODY'===_0x2e7f4e['nodeName']){var _0x15e985=_0x4b8b0c;(_0x4b8b0c=doc$1['createElement']('html'))['innerHTML']=_0x15e985;}else _0x4b8b0c=toElement(_0x4b8b0c);}else _0x4b8b0c['nodeType']===DOCUMENT_FRAGMENT_NODE$1&&(_0x4b8b0c=_0x4b8b0c['firstElementChild']);var _0x1582de=_0x4a091d['getNodeKey']||defaultGetNodeKey,_0x1dfdfa=_0x4a091d['onBeforeNodeAdded']||noop,_0x2abe6f=_0x4a091d['onNodeAdded']||noop,_0x447841=_0x4a091d['onBeforeElUpdated']||noop,_0x7c458e=_0x4a091d['onElUpdated']||noop,_0x4e759b=_0x4a091d['onBeforeNodeDiscarded']||noop,_0x5838c5=_0x4a091d['onNodeDiscarded']||noop,_0x57953d=_0x4a091d['onBeforeElChildrenUpdated']||noop,_0x1b2ebd=_0x4a091d['skipFromChildren']||noop,_0xf2b0a2=_0x4a091d['addChild']||function(_0x20a08b,_0x570745){return _0x20a08b['appendChild'](_0x570745);},_0x5745d7=!0x0===_0x4a091d['childrenOnly'],_0x4a9048=Object['create'](null),_0x3a169d=[];function _0x28adf4(_0x3cc8eb){_0x3a169d['push'](_0x3cc8eb);}function _0x2e8506(_0x12f4e7,_0x206a34){if(_0x12f4e7['nodeType']===ELEMENT_NODE)for(var _0xd17b25=_0x12f4e7['firstChild'];_0xd17b25;){var _0x54418f=void 0x0;_0x206a34&&(_0x54418f=_0x1582de(_0xd17b25))?_0x28adf4(_0x54418f):(_0x5838c5(_0xd17b25),_0xd17b25['firstChild']&&_0x2e8506(_0xd17b25,_0x206a34)),_0xd17b25=_0xd17b25['nextSibling'];}}function _0x426fa9(_0x11d9de,_0x40991f,_0x532733){!0x1!==_0x4e759b(_0x11d9de)&&(_0x40991f&&_0x40991f['removeChild'](_0x11d9de),_0x5838c5(_0x11d9de),_0x2e8506(_0x11d9de,_0x532733));}function _0x4a3fed(_0x59c08d){if(_0x59c08d['nodeType']===ELEMENT_NODE||_0x59c08d['nodeType']===DOCUMENT_FRAGMENT_NODE$1)for(var _0x38e6b7=_0x59c08d['firstChild'];_0x38e6b7;){var _0x326a52=_0x1582de(_0x38e6b7);_0x326a52&&(_0x4a9048[_0x326a52]=_0x38e6b7),_0x4a3fed(_0x38e6b7),_0x38e6b7=_0x38e6b7['nextSibling'];}}function _0x416a68(_0x508b13){_0x2abe6f(_0x508b13);for(var _0x5776c6=_0x508b13['firstChild'];_0x5776c6;){var _0x2cfa24=_0x5776c6['nextSibling'],_0x17a6bd=_0x1582de(_0x5776c6);if(_0x17a6bd){var _0x383ee6=_0x4a9048[_0x17a6bd];_0x383ee6&&compareNodeNames(_0x5776c6,_0x383ee6)?(_0x5776c6['parentNode']['replaceChild'](_0x383ee6,_0x5776c6),_0x195d1e(_0x383ee6,_0x5776c6)):_0x416a68(_0x5776c6);}else _0x416a68(_0x5776c6);_0x5776c6=_0x2cfa24;}}function _0x195d1e(_0x11a673,_0x305433,_0xcc9531){var _0x4cc4a1=_0x1582de(_0x305433);if(_0x4cc4a1&&delete _0x4a9048[_0x4cc4a1],!_0xcc9531){var _0x5c0405=_0x447841(_0x11a673,_0x305433);if(!0x1===_0x5c0405)return;if(_0x5c0405 instanceof HTMLElement&&_0x4a3fed(_0x11a673=_0x5c0405),_0xcc1764(_0x11a673,_0x305433),_0x7c458e(_0x11a673),!0x1===_0x57953d(_0x11a673,_0x305433))return;}'TEXTAREA'!==_0x11a673['nodeName']?function(_0x344f46,_0x13de6f){var _0x151558,_0x4c9189,_0x58e9e6,_0x555c5c,_0x5ce915,_0x254290=_0x1b2ebd(_0x344f46,_0x13de6f),_0x1509f2=_0x13de6f['firstChild'],_0x119013=_0x344f46['firstChild'];t:for(;_0x1509f2;){for(_0x555c5c=_0x1509f2['nextSibling'],_0x151558=_0x1582de(_0x1509f2);!_0x254290&&_0x119013;){if(_0x58e9e6=_0x119013['nextSibling'],_0x1509f2['isSameNode']&&_0x1509f2['isSameNode'](_0x119013)){_0x1509f2=_0x555c5c,_0x119013=_0x58e9e6;continue t;}_0x4c9189=_0x1582de(_0x119013);var _0x2bfa29=_0x119013['nodeType'],_0xe147ee=void 0x0;if(_0x2bfa29===_0x1509f2['nodeType']&&(_0x2bfa29===ELEMENT_NODE?(_0x151558?_0x151558!==_0x4c9189&&((_0x5ce915=_0x4a9048[_0x151558])?_0x58e9e6===_0x5ce915?_0xe147ee=!0x1:(_0x344f46['insertBefore'](_0x5ce915,_0x119013),_0x4c9189?_0x28adf4(_0x4c9189):_0x426fa9(_0x119013,_0x344f46,!0x0),_0x4c9189=_0x1582de(_0x119013=_0x5ce915)):_0xe147ee=!0x1):_0x4c9189&&(_0xe147ee=!0x1),(_0xe147ee=!0x1!==_0xe147ee&&compareNodeNames(_0x119013,_0x1509f2))&&_0x195d1e(_0x119013,_0x1509f2)):_0x2bfa29!==TEXT_NODE&&_0x2bfa29!=COMMENT_NODE||(_0xe147ee=!0x0,_0x119013['nodeValue']!==_0x1509f2['nodeValue']&&(_0x119013['nodeValue']=_0x1509f2['nodeValue']))),_0xe147ee){_0x1509f2=_0x555c5c,_0x119013=_0x58e9e6;continue t;}_0x4c9189?_0x28adf4(_0x4c9189):_0x426fa9(_0x119013,_0x344f46,!0x0),_0x119013=_0x58e9e6;}if(_0x151558&&(_0x5ce915=_0x4a9048[_0x151558])&&compareNodeNames(_0x5ce915,_0x1509f2))_0x254290||_0xf2b0a2(_0x344f46,_0x5ce915),_0x195d1e(_0x5ce915,_0x1509f2);else{var _0x1e2fc0=_0x1dfdfa(_0x1509f2);!0x1!==_0x1e2fc0&&(_0x1e2fc0&&(_0x1509f2=_0x1e2fc0),_0x1509f2['actualize']&&(_0x1509f2=_0x1509f2['actualize'](_0x344f46['ownerDocument']||doc$1)),_0xf2b0a2(_0x344f46,_0x1509f2),_0x416a68(_0x1509f2));}_0x1509f2=_0x555c5c,_0x119013=_0x58e9e6;}!function(_0xe99875,_0x2d5395,_0x50ea2c){for(;_0x2d5395;){var _0x515e93=_0x2d5395['nextSibling'];(_0x50ea2c=_0x1582de(_0x2d5395))?_0x28adf4(_0x50ea2c):_0x426fa9(_0x2d5395,_0xe99875,!0x0),_0x2d5395=_0x515e93;}}(_0x344f46,_0x119013,_0x4c9189);var _0x4db98c=specialElHandlers[_0x344f46['nodeName']];_0x4db98c&&_0x4db98c(_0x344f46,_0x13de6f);}(_0x11a673,_0x305433):specialElHandlers['TEXTAREA'](_0x11a673,_0x305433);}_0x4a3fed(_0x2e7f4e);var _0x10e57f=_0x2e7f4e,_0x3404cc=_0x10e57f['nodeType'],_0x4696cd=_0x4b8b0c['nodeType'];if(!_0x5745d7){if(_0x3404cc===ELEMENT_NODE)_0x4696cd===ELEMENT_NODE?compareNodeNames(_0x2e7f4e,_0x4b8b0c)||(_0x5838c5(_0x2e7f4e),_0x10e57f=moveChildren(_0x2e7f4e,createElementNS(_0x4b8b0c['nodeName'],_0x4b8b0c['namespaceURI']))):_0x10e57f=_0x4b8b0c;else{if(_0x3404cc===TEXT_NODE||_0x3404cc===COMMENT_NODE){if(_0x4696cd===_0x3404cc)return _0x10e57f['nodeValue']!==_0x4b8b0c['nodeValue']&&(_0x10e57f['nodeValue']=_0x4b8b0c['nodeValue']),_0x10e57f;_0x10e57f=_0x4b8b0c;}}}if(_0x10e57f===_0x4b8b0c)_0x5838c5(_0x2e7f4e);else{if(_0x4b8b0c['isSameNode']&&_0x4b8b0c['isSameNode'](_0x10e57f))return;if(_0x195d1e(_0x10e57f,_0x4b8b0c,_0x5745d7),_0x3a169d)for(var _0x5746d4=0x0,_0x14ff13=_0x3a169d['length'];_0x5746d4<_0x14ff13;_0x5746d4++){var _0x31dfd8=_0x4a9048[_0x3a169d[_0x5746d4]];_0x31dfd8&&_0x426fa9(_0x31dfd8,_0x31dfd8['parentNode'],!0x1);}}return!_0x5745d7&&_0x10e57f!==_0x2e7f4e&&_0x2e7f4e['parentNode']&&(_0x10e57f['actualize']&&(_0x10e57f=_0x10e57f['actualize'](_0x2e7f4e['ownerDocument']||doc$1)),_0x2e7f4e['parentNode']['replaceChild'](_0x10e57f,_0x2e7f4e)),_0x10e57f;};}var morphdom=morphdomFactory(morphAttrs);class HTMLStreamer{['options'];['isStreaming']=!0x1;['document']=null;['nodesList']=[];['currentIndex']=0x0;['timeoutAbortController']=null;['lastUpdateTime']=0x0;constructor(_0x1a8948){this['options']={'delay':_0x1a8948['delay']??0x14,'textNodeStyle':_0x1a8948['textNodeStyle'],'onStreamUpdate':_0x1a8948['onStreamUpdate']||(()=>{})};}async['stream']({document:_0x5d1f7a,targetElement:_0x181c30,abortSignal:_0x4758b5}){this['isStreaming']&&this['stop'](),_0x4758b5?.['addEventListener']('abort',this['stop']['bind'](this)),this['document']=cloneNode(_0x5d1f7a,!0x0),this['nodesList']=this['getParsedDocumentNodeList'](),this['isStreaming']=!0x0,this['currentIndex']>this['nodesList']['length']&&(this['currentIndex']=this['nodesList']['length']);for(let _0x107190=0x0;_0x107190<this['currentIndex'];_0x107190++)this['nodesList'][_0x107190]['shouldBeStreamed']=!0x0;do{const _0x2a2692=Date['now'](),_0x4ae63c=this['nodesList'][this['currentIndex']],_0x1e5af7=_0x2a2692-this['lastUpdateTime'];if(_0x4ae63c){_0x4ae63c['shouldBeStreamed']=!0x0;let _0xd6122f=_0x4ae63c['parent'];for(;_0xd6122f;)_0xd6122f['shouldBeStreamed']=!0x0,_0xd6122f=_0xd6122f['parent'];}if(_0x1e5af7<this['options']['delay'])try{const {promise:_0x1d5289,abortController:_0xb0b917}=createAbortableTimeout(this['options']['delay']-_0x1e5af7);this['timeoutAbortController']=_0xb0b917,await _0x1d5289;}catch(_0xe7110d){return;}morphdom(_0x181c30,'<'+_0x181c30['tagName']+'>'+this['renderNode'](this['document'])+'</'+_0x181c30['tagName']+'>',{'childrenOnly':!0x0}),this['options']['onStreamUpdate']&&this['options']['onStreamUpdate'](),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:_0xd69b80}){Array['from'](_0xd69b80['querySelectorAll']('span[data-ck-html-streamer-word-chunk]'))['reverse']()['forEach'](_0xd40e75=>{_0xd40e75['replaceWith'](_0xd40e75['childNodes'][0x0]);});}['stop'](){this['isStreaming']=!0x1,this['timeoutAbortController']&&(this['timeoutAbortController']['abort'](),this['timeoutAbortController']=null);}['renderNode'](_0x2bb2ae){let _0x5c84f7='';if(isParsedDocumentNode(_0x2bb2ae)){for(const _0x545666 of _0x2bb2ae['children'])_0x5c84f7+=this['renderNode'](_0x545666);}else{if(isParsedElementNode(_0x2bb2ae)){if(!_0x2bb2ae['shouldBeStreamed'])return'';const _0x1365ef=_0x2bb2ae,_0x210ead=Object['entries'](_0x1365ef['attribs'])['map'](([_0x266ebf,_0x166e0a])=>_0x266ebf+'=\x22'+_0x166e0a+'\x22')['join']('\x20');_0x5c84f7+='<'+_0x1365ef['tagName']+(_0x210ead?'\x20'+_0x210ead:'')+'>';for(const _0x53d7f8 of getChildren$1(_0x1365ef))_0x5c84f7+=this['renderNode'](_0x53d7f8);_0x5c84f7+='</'+_0x1365ef['tagName']+'>';}else{if(!isParsedTextNode(_0x2bb2ae))return'';if(!_0x2bb2ae['shouldBeStreamed'])return'';canBecomeWordChunkSpan(_0x2bb2ae)?_0x5c84f7+=render(new Element$3('span',{'data-ck-html-streamer-word-chunk':'','style':this['options']['textNodeStyle']},[_0x2bb2ae])):_0x5c84f7+=render(_0x2bb2ae);}}return _0x5c84f7;}['getParsedDocumentNodeList'](){const _0x5c5888=[];return traverseParsedDocument(this['document'],_0x348cf3=>{if(isParsedTextNode(_0x348cf3)){const _0x5e8565=this['splitTextNodeIntoWordNodes'](_0x348cf3);_0x5e8565['length']&&_0x5c5888['push'](..._0x5e8565);}_0x348cf3['isWordSplitSource']||_0x348cf3['isWordSplitResult']||_0x5c5888['push'](_0x348cf3);}),_0x5c5888;}['splitTextNodeIntoWordNodes'](_0x6324df){if(_0x6324df['isWordSplitSource']||_0x6324df['isWordSplitResult'])return[];const _0x34a487=textContent(_0x6324df)['match'](/(?:\s*\S+\s*)/g),_0x35ffae=[];if(_0x34a487&&_0x34a487['length']>0x1){for(const _0x58357d of _0x34a487){const _0x4d1734=new Text$1(_0x58357d);_0x4d1734['isWordSplitResult']=!0x0,prepend(_0x6324df,_0x4d1734),_0x35ffae['push'](_0x4d1734);}_0x6324df['isWordSplitSource']=!0x0,removeElement(_0x6324df);}return _0x35ffae;}}const ELEMENTS_THAT_ALLOW_SPANS=['p','li','td','th','span','h1','h2','h3','h4','h5','h6','b','strong','i','em','mark','del','ins','sup','sub','a','code','div'];function traverseParsedDocument(_0x30cde3,_0x387d79){const _0x2cc510=_0x59fcd5=>{if(_0x387d79(_0x59fcd5),_0x59fcd5 instanceof NodeWithChildren)for(let _0x8f216e=0x0;_0x8f216e<_0x59fcd5['children']['length'];_0x8f216e++){const _0x5169f0=_0x59fcd5['children'][_0x8f216e];_0x2cc510(_0x5169f0);}};for(let _0x4ba233=0x0;_0x4ba233<_0x30cde3['children']['length'];_0x4ba233++)_0x2cc510(_0x30cde3['children'][_0x4ba233]);}function canBecomeWordChunkSpan(_0x50ec23){return!(!_0x50ec23['parent']||!isParsedElementNode(_0x50ec23['parent']))&&(!!ELEMENTS_THAT_ALLOW_SPANS['includes'](_0x50ec23['parent']['tagName'])&&!textContent(_0x50ec23)['match'](/^\s*[<>]\s*$/));}function isParsedTextNode(_0x1152cf){return isText$1(_0x1152cf);}function isParsedElementNode(_0x7353e3){return isTag(_0x7353e3);}function isParsedDocumentNode(_0x2a37aa){return isDocument(_0x2a37aa);}function createAbortableTimeout(_0x224cbf){const _0x33720a=new AbortController();return{'promise':new Promise((_0x453e49,_0xc9f1c)=>{const _0x3a618f=setTimeout(_0x453e49,_0x224cbf);_0x33720a['signal']['addEventListener']('abort',()=>{clearTimeout(_0x3a618f),_0xc9f1c();});}),'abortController':_0x33720a};}class AIChatFeedItemView extends View{['options'];['content']='';['htmlStreamer'];['children'];constructor(_0x514f1c){super();const _0x150aed=this['bindTemplate'];this['set']('isDone',!0x1),this['set']('isVisible',!0x0),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['options']=_0x514f1c,this['children']=this['createCollection'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__item',_0x150aed['if']('isDone','ck-ai-chat__feed__item_done'),_0x150aed['if']('isVisible','ck-hidden',_0x241293=>!_0x241293),'ck-ai-chat__feed__text-item'],'data-cke-ai-id':this['options']['id']},'children':this['children']});}['markAsDone'](){this['htmlStreamer']['cleanUpAnimations']({'targetElement':this['element']}),this['element']['querySelectorAll']('[data-id]')['forEach'](_0x49456e=>{_0x49456e['removeAttribute']('data-id');}),this['isDone']=!0x0;}async['streamIntoElement'](_0x2067da,_0x3427f2,_0x3c0343){await this['htmlStreamer']['stream']({'document':_0x2067da,'targetElement':_0x3427f2,'abortSignal':_0x3c0343});}}class AISuggestionHeaderView extends View{['showChangesToggleView'];constructor(_0x8db462,_0x5e08ce){super(_0x8db462),this['set']('isShowChangesToggleVisible',!0x0),this['showChangesToggleView']=new ShowChangesToggleView(_0x8db462),this['showChangesToggleView']['set']({'class':'ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','label':getTranslation$i(_0x8db462,'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':!0x0}),this['showChangesToggleView']['isOn']=_0x5e08ce['showDiff'],this['showChangesToggleView']['bind']('isVisible')['to'](this,'isShowChangesToggleVisible'),this['showChangesToggleView']['bind']('icon')['to'](this['showChangesToggleView'],'isOn',_0x157cfe=>_0x157cfe?IconShowChangesOn:IconShowChangesOff),this['showChangesToggleView']['on']('execute',()=>{this['showChangesToggleView']['isOn']=!this['showChangesToggleView']['isOn'],this['fire']('toggleShowChanges',{'isOn':this['showChangesToggleView']['isOn']});});const _0x1a7412=new IconView();_0x1a7412['content']=IconDocument,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__header',!0x1===_0x5e08ce['showHeader']?'ck-hidden':null]['filter'](Boolean)},'children':[_0x1a7412,{'tag':'span','children':[getTranslation$i(_0x8db462,'AI_SUGGESTION_HEADER_TITLE')]},this['showChangesToggleView']]});}}class ShowChangesToggleView extends ButtonView{['render'](){super['render'](),this['children']['remove'](this['iconView']),this['children']['add'](this['iconView']);}}const ICON_STATE_MAP={'accepted':IconBoxWithCheck,'rejected':IconBoxWithCross,'outdated':IconBoxWithCross};class AISuggestionContentPartStateView extends View{['stateIconView'];constructor(_0x5bc500){super(_0x5bc500);const _0x307e0a=this['bindTemplate'];this['set']('state','accepted'),this['set']('isVisible',!0x0),this['stateIconView']=new StateIconView(),this['stateIconView']['bind']('state')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__content-part-state',_0x307e0a['to']('state',_0x554832=>'ck-ai-suggestion__content-part-state_'+_0x554832),_0x307e0a['if']('isVisible','ck-hidden',_0x3218e5=>!_0x3218e5)]},'children':[{'tag':'span','attributes':{'class':['ck-ai-suggestion__content-part-state__label']},'children':[{'text':_0x307e0a['to']('state',_0x3d1cf1=>{switch(_0x3d1cf1){case'accepted':return getTranslation$i(_0x5bc500,'AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED');case'rejected':return getTranslation$i(_0x5bc500,'AI_SUGGESTION_CONTENT_PART_STATE_REJECTED');case'outdated':return getTranslation$i(_0x5bc500,'AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED');}})}]},this['stateIconView']]});}['setState'](_0x5c2982){this['state']=_0x5c2982;}}class StateIconView extends IconView{constructor(){super(),this['set']('state','accepted'),this['content']=ICON_STATE_MAP[this['state']],this['on']('change:state',()=>{this['content']=ICON_STATE_MAP[this['state']];});}}class AISuggestionContentPartToolbarView extends ToolbarView{['_applyButton'];['_suggestButton'];constructor(_0x430b7c,_0x47d75a,_0x623fc4){super(_0x430b7c);const _0x12059f=Boolean(_0x623fc4);this['set']('isEnabled',!_0x12059f),this['set']('isVisible',!0x0),this['class']='ck-ai-suggestion-content-part-toolbar';const _0x174720=[];if(_0x12059f){const _0x19e4b6=new ButtonView(_0x430b7c);_0x19e4b6['set']({'label':getTranslation$i(_0x430b7c,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo}),_0x174720['push'](_0x19e4b6);}else{_0x47d75a['includes']('applySuggestion')&&(this['_applyButton']=new ButtonView(_0x430b7c),this['_applyButton']['set']({'label':getTranslation$i(_0x430b7c,'AI_SUGGESTION_CONTENT_PART_APPLY'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCheck}),this['_applyButton']['bind']('isEnabled')['to'](this),this['_applyButton']['on']('execute',()=>{this['fire']('applySuggestion');}),_0x174720['push'](this['_applyButton'])),_0x47d75a['includes']('insertSuggestion')&&(this['_suggestButton']=new ButtonView(_0x430b7c),this['_suggestButton']['set']({'label':getTranslation$i(_0x430b7c,'AI_SUGGESTION_CONTENT_PART_ADD_SUGGESTION'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithMarker}),this['_suggestButton']['bind']('isEnabled')['to'](this),this['_suggestButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),_0x174720['push'](this['_suggestButton']));const _0x2aadab=new ButtonView(_0x430b7c);_0x2aadab['set']({'label':getTranslation$i(_0x430b7c,'AI_SUGGESTION_CONTENT_PART_REJECT'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconBoxWithCross}),_0x2aadab['bind']('isEnabled')['to'](this),_0x2aadab['on']('execute',()=>{this['fire']('rejectSuggestion');}),_0x174720['push'](_0x2aadab);}this['items']['addMany'](_0x174720);const _0x31bb9c=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':[_0x31bb9c['if']('isVisible','ck-hidden',_0xeeed6c=>!_0xeeed6c)]}});}['setButtonsVisibility']({showApplyButton:_0x2b3e7f,showSuggestButton:_0x482dbe}){this['_applyButton']&&(this['_applyButton']['isVisible']=_0x2b3e7f),this['_suggestButton']&&(this['_suggestButton']['isVisible']=_0x482dbe);}}class AISuggestionContentPartHeaderView extends View{['toolbarView'];['stateView'];['titleLabelView'];['children'];constructor(_0x175f13,{part:_0x5c22f9,uiIndex:_0xb19f8a,availableActions:_0x362dab,areActionsDisabled:_0x343a2d}){super(_0x175f13),this['set']('isEnabled',!0x0),this['set']('state','pending'),this['toolbarView']=new AISuggestionContentPartToolbarView(_0x175f13,_0x362dab,_0x343a2d),this['toolbarView']['on']('rejectSuggestion',()=>{this['fire']('rejectSuggestion',{'index':_0x5c22f9['index']});}),this['toolbarView']['on']('insertSuggestion',()=>{this['fire']('insertSuggestion',{'index':_0x5c22f9['index']});}),this['toolbarView']['on']('applySuggestion',()=>{this['fire']('applySuggestion',{'index':_0x5c22f9['index']});}),this['toolbarView']['bind']('isEnabled')['to'](this),this['stateView']=new AISuggestionContentPartStateView(_0x175f13),this['titleLabelView']=new AISuggestionBodyContentPartTitleLabelView(_0x175f13,_0xb19f8a),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',(_0x2c067f,_0xdbb44f,_0x1f195d,_0x408b9c)=>{'pending'===_0x408b9c?this['children']['remove'](this['toolbarView']):this['children']['remove'](this['stateView']),'pending'===_0x1f195d?this['children']['add'](this['toolbarView']):(this['stateView']['setState'](_0x1f195d),this['children']['add'](this['stateView']));});}}class AISuggestionBodyContentPartTitleLabelView extends View{constructor(_0x436bcf,_0x284d11){super(_0x436bcf),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__body__content-part__title__label']},'children':[getTranslation$i(_0x436bcf,'AI_SUGGESTION_CONTENT_PART_TITLE',_0x284d11['toString']())]});}}class AISuggestionStreamableContentView extends View{['htmlStreamer'];constructor(_0x50f78a){super(_0x50f78a),this['htmlStreamer']=new HTMLStreamer({'textNodeStyle':'animation:\x20ck-html-streamer-fade-in\x20.5s','delay':0x14}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai-suggestion-streamable-content']}});}async['update']({part:_0x3a3f7d,renderingStrategy:_0xd22059,abortSignal:_0x144fba}){'streaming'===_0xd22059?await this['htmlStreamer']['stream']({'document':_0x3a3f7d['content'],'targetElement':this['element'],'abortSignal':_0x144fba}):this['element']['innerHTML']=serialize(_0x3a3f7d['content']);}['clear'](){this['htmlStreamer']['reset'](),this['element']['innerHTML']='';}}class AISuggestionBodyViewContentPartView extends View{['_children'];['_headerView'];['_streamableContentView'];constructor(_0x5116b,{part:_0x44501d,uiIndex:_0x190520,areActionsDisabled:_0x19dc19,availableActions:_0x3a8366}){super(_0x5116b);const _0x1e3d7b=this['bindTemplate'];this['set']('state','pending'),this['set']('isDone',!0x1),this['set']('isVisible',!0x1),this['set']('isActive',!0x1),this['set']('isEnabled',!0x1);const _0x22c28e=()=>{this['isEnabled']=this['isDone']&&'pending'==this['state']&&!_0x19dc19;};this['on']('change:state',_0x22c28e),this['on']('change:isDone',_0x22c28e),_0x22c28e(),this['_children']=this['createCollection'](),this['_headerView']=new AISuggestionContentPartHeaderView(_0x5116b,{'part':_0x44501d,'uiIndex':_0x190520,'availableActions':_0x3a8366,'areActionsDisabled':_0x19dc19}),this['_headerView']['bind']('isEnabled','state')['to'](this),this['_headerView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x5116b),this['_children']['addMany']([this['_headerView'],this['_streamableContentView']]),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__body__content-part',_0x1e3d7b['to']('state',_0xd6e4fa=>'ck-ai-suggestion__body__content-part_'+_0xd6e4fa),_0x1e3d7b['if']('isEnabled','ck-ai-suggestion__body__content-part_enabled'),_0x1e3d7b['if']('isActive','ck-ai-suggestion__body__content-part_active'),_0x1e3d7b['if']('isVisible','ck-hidden',_0x379bd8=>!_0x379bd8)]},'children':this['_children'],'on':{'mouseenter':_0x1e3d7b['to'](()=>{this['isEnabled']&&this['fire']('mouseOverSuggestion',{'index':_0x44501d['index']});}),'mouseleave':_0x1e3d7b['to'](()=>{this['isEnabled']&&this['fire']('mouseLeaveSuggestion',{'index':_0x44501d['index']});}),'click':_0x1e3d7b['to'](_0x489fb5=>{const _0x3dd8c4=_0x489fb5['target'];this['isEnabled']&&!this['_headerView']['toolbarView']['element']['contains'](_0x3dd8c4)&&this['fire']('showChangeInText',{'index':_0x44501d['index']});})}});}async['updateContent']({part:_0x545acc,renderingStrategy:_0x3d76f8,showUnchangedParts:_0x253fa4=!0x1,abortSignal:_0x43749f}){this['partDefinition']=_0x545acc,this['isVisible']=this['partDefinition']['hasChanges']||_0x253fa4,this['isVisible']&&await this['_streamableContentView']['update']({'part':_0x545acc,'renderingStrategy':_0x3d76f8,'abortSignal':_0x43749f});}['markAsDone'](){this['isDone']=!0x0;}}class PromiseQueue extends EmitterMixin(){['queue']=[];['isProcessing']=!0x1;['_abortController'];async['enqueue'](_0x16231d){const _0x150059=this['createTask'](_0x16231d);return this['queue']['push'](_0x150059),this['_processQueue'](),_0x150059['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(_0x1e42d3=>{this['once']('_queueEmpty',()=>{_0x1e42d3();});}):Promise['resolve']();}async['_processQueue'](){if(!this['isProcessing']){this['_abortController']=new AbortController(),this['isProcessing']=!0x0;try{for(;this['queue']['length']&&this['isProcessing'];){const _0x396d03=this['queue']['shift']();try{await _0x396d03['callback'](this['_abortController']['signal']),_0x396d03['resolve']();}catch(_0x492e33){_0x396d03['reject'](_0x492e33);}}}finally{this['isProcessing']=!0x1,this['_abortController']=void 0x0;}this['fire']('_queueEmpty');}}['createTask'](_0x44b386){let _0x4ea17d,_0x47b203;const _0x5bdc12=new Promise((_0x495de9,_0x422247)=>{_0x4ea17d=_0x495de9,_0x47b203=_0x422247;});return{'callback':_0x44b386,'resolve':_0x4ea17d,'reject':_0x47b203,'completePromise':_0x5bdc12};}}class AIChatFeedErrorItemView extends AIChatFeedItemView{constructor(_0x33442b){super(_0x33442b),this['extendTemplate']({'attributes':{'class':['ck-ai-notification','warning'===_0x33442b['level']?'ck-ai-notification_warning':'ck-ai-notification_error']}});}['render'](){super['render'](),this['setContent'](this['options']['initialContent']),this['markAsDone']();}['setContent'](_0x327b54){this['element']['innerHTML']=_0x327b54;}}const AI_REPLY_ACTIONS=['applySuggestion','insertSuggestion'];class AIChatFeedSuggestionItemActionsView extends View{['_applyChangesButton'];['_insertSuggestionsButton'];['children'];constructor(_0x11673e,_0x3e18c9=[...AI_REPLY_ACTIONS],_0xb634c3){super(_0x11673e);const _0x2e0864=this['bindTemplate'],_0x456a76=Boolean(_0xb634c3);if(this['set']('isEnabled',!_0x456a76),this['set']('isVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),_0x456a76){const _0xaaf004=new ButtonView(_0x11673e);_0xaaf004['set']({'label':getTranslation$i(_0x11673e,'AI_SUGGESTION_DISABLED_TOOLTIP_MESSAGE'),'tooltip':!0x0,'tooltipPosition':'n','withText':!0x1,'icon':IconInfo});const _0x72214c=new View(_0x11673e);_0x72214c['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__suggestion__actions__info'},'children':[{'tag':'p','children':[getTranslation$i(_0x11673e,'AI_SUGGESTION_DISABLED_FEED_MESSAGE'),_0xaaf004]}]}),this['children']['add'](_0x72214c);}else this['_applyChangesButton']=new ButtonView(_0x11673e),this['_applyChangesButton']['set']({'label':getTranslation$i(_0x11673e,'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),'withText':!0x0,'type':'button','isVisible':_0x3e18c9['includes']('applySuggestion'),'class':'ck-ai-button-primary'}),this['_insertSuggestionsButton']=new ButtonView(_0x11673e),this['_insertSuggestionsButton']['set']({'label':getTranslation$i(_0x11673e,'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL'),'withText':!0x0,'type':'button','isVisible':_0x3e18c9['includes']('insertSuggestion'),'class':'ck-ai-button-secondary'}),this['_insertSuggestionsButton']['on']('execute',()=>{this['fire']('insertSuggestion');}),this['_applyChangesButton']['on']('execute',()=>{this['fire']('applySuggestion');}),[this['_applyChangesButton'],this['_insertSuggestionsButton']]['forEach'](_0x53e4bd=>{_0x53e4bd['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',_0x2e0864['if']('isVisible','ck-hidden',_0x1da39a=>!_0x1da39a)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_applyChangesButton']&&(this['_applyChangesButton']['isVisible']=!this['isTrackChangesOn']);});}['updateVisibility'](_0x558ee7){this['isVisible']=_0x558ee7;}['_switchButtonLabelsPlurality'](_0x1e59fa){this['_applyChangesButton']&&this['_insertSuggestionsButton']&&(_0x1e59fa?(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY_ALL'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST_ALL')):(this['_applyChangesButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_APPLY'),this['_insertSuggestionsButton']['label']=getTranslation$i(this['locale'],'AI_CHAT_SUGGESTION_ACTION_SUGGEST')));}}const TOOLTIP_TITLE_MAX_LENGTH=0x190;class AIWebSourcesView extends View{['children'];['balloonPanelView'];['bodyCollection'];constructor(_0x4ffd33,_0x3e0d55){super(_0x4ffd33),this['bodyCollection']=_0x3e0d55,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',_0x48db09=>!_0x48db09)]},'children':this['children']});const _0x49ec2e=new View(this['locale']),_0x3ae7d3=new IconView();_0x3ae7d3['content']=IconWeb,_0x49ec2e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-sources__header']},'children':[_0x3ae7d3,{'tag':'span','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_SOURCES_HEADER')}]}]}),this['children']['add'](_0x49ec2e),this['_setupBalloonPanel'](_0x4ffd33);}['addSource'](_0x27b6c2){this['children']['add'](new AIWebSourceView(this['locale'],_0x27b6c2,this['balloonPanelView']));}['_setupBalloonPanel'](_0x4e528e){this['balloonPanelView']=new BalloonPanelView(_0x4e528e),this['balloonPanelView']['extendTemplate']({'attributes':{'class':['ck-ai-web-source__tooltip-balloon']}}),this['bodyCollection']['add'](this['balloonPanelView']);}}class AIWebSourceView extends ButtonView{['balloonPanelView'];['source'];constructor(_0x2b86e0,_0x5950bb,_0x3cc2bd){super(_0x2b86e0),this['source']=_0x5950bb,this['balloonPanelView']=_0x3cc2bd,this['set']({'label':_0x5950bb['title'],'class':['ck\x20ck-ai-web-source'],'withText':!0x0});const _0x169e4f=this['bindTemplate'];if(this['extendTemplate']({'on':{'click':_0x169e4f['to'](()=>{window['open'](_0x5950bb['url'],'_blank');}),'mouseenter':_0x169e4f['to'](()=>{this['_showTooltip']();}),'mouseleave':_0x169e4f['to'](()=>{this['_hideTooltip']();})}}),_0x5950bb['favicon']){const _0x243580=new View(_0x2b86e0);_0x243580['setTemplate']({'tag':'img','attributes':{'src':_0x5950bb['favicon']||IconWeb,'alt':_0x5950bb['title'],'class':['ck-ai-web-source__image']}}),this['children']['add'](_0x243580);}else this['set']('icon',IconWeb);}['_createTooltipContentView'](_0x2f1b1d,_0x48626d){const _0x29e19f=new View(_0x2f1b1d),_0x25d558=[];let _0x2747cf;_0x48626d?.['favicon']?(_0x2747cf=new View(_0x2f1b1d),_0x2747cf['setTemplate']({'tag':'img','attributes':{'src':_0x48626d['favicon'],'alt':_0x48626d['title'],'class':['ck-ai-web-source__tooltip-image']}})):(_0x2747cf=new IconView(),_0x2747cf['content']=IconWeb,_0x2747cf['extendTemplate']({'attributes':{'alt':_0x48626d['title'],'class':['ck-ai-web-source__tooltip-image']}})),_0x25d558['push'](_0x2747cf);const _0x458edf=new View(_0x2f1b1d);_0x458edf['setTemplate']({'tag':'a','attributes':{'class':['ck-ai-web-source__tooltip-url'],'href':_0x48626d['url']},'children':[{'text':new URL(_0x48626d['url'])?.['hostname']}]}),_0x25d558['push'](_0x458edf);const _0x458a7f=new View(_0x2f1b1d);_0x458a7f['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-web-source__tooltip-row']},'children':_0x25d558});const _0x164aee=new View(_0x2f1b1d);return _0x164aee['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title']},'children':[{'text':_0x48626d['title']['length']>TOOLTIP_TITLE_MAX_LENGTH?_0x48626d['title']['substring'](0x0,TOOLTIP_TITLE_MAX_LENGTH)+'...':_0x48626d['title']}]}),_0x29e19f['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-web-source__tooltip']},'children':[_0x458a7f,_0x164aee]}),_0x29e19f;}['_showTooltip'](){this['_updateTooltipContent'](),this['balloonPanelView']['pin']({'target':this['element'],'positions':[BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['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 _0x2aad1f=this['_createTooltipContentView'](this['locale'],this['source']);this['balloonPanelView']['content']['add'](_0x2aad1f);}}class AISuggestionBodyView extends View{['_actionsView'];['_sourcesView'];['_children'];['_areActionsDisabled'];['_showUnchangedParts'];['_updateContentPartsPromiseQueue'];['_emptyPartsWarningView'];['_availableActions'];['_cachedContentParts']=[];constructor(_0x45ecf0,_0x13d7b8){super(_0x45ecf0);const {areActionsDisabled:_0x5dca21,showUnchangedParts:_0x22d8f1,availableActions:_0x3e5fe0}=_0x13d7b8;this['_areActionsDisabled']=_0x5dca21,this['_showUnchangedParts']=_0x22d8f1,this['_availableActions']=_0x3e5fe0,this['set']('hasPendingParts',!0x1),this['set']('isTrackChangesOn',!0x1),this['_children']=this['createCollection'](),this['_updateContentPartsPromiseQueue']=new PromiseQueue(),this['_emptyPartsWarningView']=new AIChatFeedErrorItemView({'id':'empty-parts-warning','initialContent':getTranslation$i(_0x45ecf0,'AI_SUGGESTION_EMPTY_PART_WARNING'),'level':'warning'}),this['_emptyPartsWarningView']['isVisible']=!0x1,this['_actionsView']=new AIChatFeedSuggestionItemActionsView(_0x45ecf0,_0x13d7b8['availableActions'],this['_areActionsDisabled']),this['_actionsView']['bind']('isTrackChangesOn')['to'](this),this['_sourcesView']=new AIWebSourcesView(this['locale'],_0x13d7b8['bodyCollection']),_0x13d7b8['areActionsDisabled']?this['_actionsView']['isEnabled']=!0x1:this['_actionsView']['bind']('isEnabled')['to'](this,'hasPendingParts'),this['_actionsView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['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']]});}get['partsCount'](){return this['_children']['length'];}async['updateContentParts']({parts:_0x3465e9,renderingStrategy:_0x300ec5,abortSignal:_0x383f28}){this['_children']['length']?_0x3465e9['forEach'](_0x5b02fa=>{const _0x40b500=this['_cachedContentParts']['findIndex'](_0x1fb2f4=>_0x1fb2f4['index']==_0x5b02fa['index']);-0x1===_0x40b500?this['_cachedContentParts']['push'](_0x5b02fa):this['_cachedContentParts'][_0x40b500]=_0x5b02fa;}):this['_cachedContentParts']=_0x3465e9;const _0x4dd050=this['_showUnchangedParts']?_0x3465e9:_0x3465e9['filter'](_0x5dadc0=>_0x5dadc0['hasChanges']);this['_actionsView']['_switchButtonLabelsPlurality'](_0x4dd050['length']>0x1);for(const _0x4d7829 of _0x4dd050)this['_updateContentPartsPromiseQueue']['enqueue'](async _0x3efc3a=>{let _0x18c202=this['getPartView'](_0x4d7829['index']);_0x18c202||(_0x18c202=new AISuggestionBodyViewContentPartView(this['locale'],{'part':_0x4d7829,'uiIndex':this['_children']['length']+0x1,'areActionsDisabled':this['_areActionsDisabled'],'availableActions':this['_availableActions']}),_0x18c202['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),this['_children']['add'](_0x18c202),this['hasPendingParts']=!0x0),await _0x18c202['updateContent']({'part':_0x4d7829,'renderingStrategy':_0x300ec5,'showUnchangedParts':this['_showUnchangedParts'],'abortSignal':_0x3efc3a}),_0x18c202['markAsDone']();});return _0x383f28?.['addEventListener']('abort',()=>{this['_updateContentPartsPromiseQueue']['abort']();}),this['_updateContentPartsPromiseQueue']['queueEmptyPromise'];}['updatePartState'](_0x1ddd6c,_0x4c2c17){const _0x33429b=this['getPartView'](_0x1ddd6c);_0x33429b&&(_0x33429b['state']=_0x4c2c17),this['hasPendingParts']='pending'==_0x4c2c17||Array['from'](this['_children'])['some'](_0x40c732=>'pending'==_0x40c732['state']);}['setPartActive'](_0xaf48e6,_0x1eea5f){if(!0x1===_0xaf48e6){for(const _0x732d91 of this['_children'])_0x732d91['isActive']=!0x1;}else{const _0x31745c=this['getPartView'](_0xaf48e6);_0x31745c&&(_0x31745c['isActive']=_0x1eea5f);}}['updateSources'](_0x36ce4f){_0x36ce4f['forEach'](_0x5b6e69=>this['_sourcesView']['addSource'](_0x5b6e69)),this['_sourcesView']['isVisible']=!0x0;}['getPartView'](_0x221362){return this['_children']['find'](_0x393f35=>_0x393f35['partDefinition']['index']==_0x221362)??null;}['markAsDone'](){if(!this['_showUnchangedParts']){const _0x4d1183=!this['_cachedContentParts']['find'](({hasChanges:_0x18ba92})=>_0x18ba92),_0x26e9cc=!!this['_cachedContentParts']['find'](({hasChanges:_0x46c42b})=>!_0x46c42b);this['_emptyPartsWarningView']['isVisible']=0x0==this['_children']['length']||_0x26e9cc,_0x4d1183?this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_NO_PARTS_WARNING')):this['_emptyPartsWarningView']['setContent'](getTranslation$i(this['locale'],'AI_SUGGESTION_EMPTY_PART_WARNING'));}this['_children']['forEach'](_0x4bf6fc=>_0x4bf6fc['markAsDone']()),this['_actionsView']['updateVisibility'](this['hasNonEmptyParts']);}get['hasNonEmptyParts'](){return this['_children']['filter'](_0x4c5a2a=>_0x4c5a2a['partDefinition']['hasChanges'])['length']>0x0;}}class AISuggestionContainerView extends View{['bodyView'];['children'];['headerView'];constructor(_0x4b1eef,_0x1d1844,_0x123f16){super(_0x4b1eef);const {showDiff:_0x31565f,areActionsDisabled:_0x2cdbfb,showUnchangedParts:_0x5ada3b,availableActions:_0x1089c5}=_0x1d1844;this['set']('isTrackChangesOn',!0x1),this['set']('areChangesVisible',!0x1),this['children']=this['createCollection'](),this['headerView']=new AISuggestionHeaderView(_0x4b1eef,{'showDiff':_0x31565f}),this['headerView']['on']('toggleShowChanges',(_0x29c869,_0x2121ec)=>{this['areChangesVisible']=_0x2121ec['isOn'],this['fire']('toggleSuggestionDisplayMode',{'showDiff':_0x2121ec['isOn']});}),this['children']['add'](this['headerView']),this['bodyView']=new AISuggestionBodyView(_0x4b1eef,{'areActionsDisabled':_0x2cdbfb,'showUnchangedParts':!!_0x5ada3b,'availableActions':_0x1089c5,'bodyCollection':_0x123f16}),this['bodyView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['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'](_0xe489b5){await this['bodyView']['updateContentParts'](_0xe489b5);}['updateSources'](_0x2e3b27){this['bodyView']['updateSources'](_0x2e3b27);}['markAsDone'](){this['bodyView']['markAsDone'](),this['headerView']&&(this['headerView']['isShowChangesToggleVisible']=this['bodyView']['hasNonEmptyParts']);}}class AIChatFeedSuggestionItemView extends AIChatFeedItemView{['containerView'];constructor(_0x3507b7,_0x3b6b89,_0x1c2843){super(_0x3b6b89),this['set']('isTrackChangesOn',!0x1),this['containerView']=new AISuggestionContainerView(_0x3507b7,{'showDiff':_0x3b6b89['showDiff'],'areActionsDisabled':_0x3b6b89['areActionsDisabled'],'availableActions':_0x3b6b89['availableActions']},_0x1c2843),this['containerView']['on']('toggleSuggestionDisplayMode',(_0x29f3b4,_0x10c580)=>{this['fire']('toggleSuggestionDisplayMode',{'replyId':this['options']['id'],'showDiff':_0x10c580['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',(_0x4d2dc9,{index:_0x10a3c9})=>{this['fire']('showChangeInText',{'replyId':this['options']['id'],'partIndex':_0x10a3c9});}),this['containerView']['on']('applySuggestion',(_0x5a7bc7,{index:_0x16c35b}={})=>{this['fire']('applySuggestion',{'replyId':this['options']['id'],'partIndex':_0x16c35b});}),this['containerView']['on']('insertSuggestion',(_0x4f16db,{index:_0xd0f19c}={})=>{this['fire']('insertSuggestion',{'replyId':this['options']['id'],'partIndex':_0xd0f19c});}),this['containerView']['on']('rejectSuggestion',(_0x3310f6,{index:_0x28615f})=>{this['fire']('rejectSuggestion',{'replyId':this['options']['id'],'partIndex':_0x28615f});}),this['containerView']['on']('mouseOverSuggestion',(_0x585a8b,{index:_0x2dfd81})=>{this['fire']('mouseOverSuggestion',{'replyId':this['options']['id'],'partIndex':_0x2dfd81});}),this['containerView']['on']('mouseLeaveSuggestion',(_0x4e331c,{index:_0x1f41ee})=>{this['fire']('mouseLeaveSuggestion',{'replyId':this['options']['id'],'partIndex':_0x1f41ee});}),this['children']['addMany']([this['containerView']]),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-suggestion']}});}async['updateContent'](_0x2094ee){await this['containerView']['updateContent'](_0x2094ee);}['updatePartState'](_0x393243,_0x2f6eec){this['containerView']['bodyView']['updatePartState'](_0x393243,_0x2f6eec);}['setPartActive'](_0x1e73f4,_0x42e8c2){!0x1===_0x1e73f4?this['containerView']['bodyView']['setPartActive'](!0x1):this['containerView']['bodyView']['setPartActive'](_0x1e73f4,_0x42e8c2);}['updateSources'](_0x2a9f8b){this['containerView']['updateSources'](_0x2a9f8b);}['getPartView'](_0x2384f1){return this['containerView']['bodyView']['getPartView'](_0x2384f1);}['markAsDone'](){super['markAsDone'](),this['containerView']['markAsDone']();}}class AIChatFeedReplyItemView extends AIChatFeedItemView{['replyContainer'];['_bodyCollection'];constructor(_0x2d4dea,_0x365b80,_0x8b641d){super(_0x365b80),this['_bodyCollection']=_0x8b641d,this['locale']=_0x2d4dea,this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__ai-reply']}}),this['replyContainer']=new View(),this['replyContainer']['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-ai-chat__feed__ai-reply-container']}}),this['children']['add'](this['replyContainer']);}async['render'](){super['render'](),this['options']['initialContent']&&(await this['updateContent']({'parsedContent':parse$2(this['options']['initialContent']),'renderingStrategy':'static'}),this['markAsDone']());}async['updateContent']({parsedContent:_0x481524,renderingStrategy:_0x20cb5e,abortSignal:_0x29a759}){'streaming'===_0x20cb5e?await this['streamIntoElement'](_0x481524,this['replyContainer']['element'],_0x29a759):this['replyContainer']['element']['innerHTML']=render(_0x481524);}['updateSources'](_0xa98a87){const _0x1b09ff=new AIWebSourcesView(this['locale'],this['_bodyCollection']);_0x1b09ff['children']['addMany'](_0xa98a87['map'](_0x4522ea=>new AIWebSourceView(this['locale'],_0x4522ea,_0x1b09ff['balloonPanelView']))),_0x1b09ff['isVisible']=!0x0,this['children']['add'](_0x1b09ff);}}class AISpinnerView extends SpinnerView{constructor(_0x4791ea=void 0x0){super();const _0x4247af=_0x4791ea?'ck-ai-spinner_'+_0x4791ea:'';this['extendTemplate']({'tag':'span','attributes':{'class':['ck-ai-spinner',_0x4247af]}});}}const CONTEXT_TYPES_TO_ICONS={'file':IconFileUpload,'document':IconDocument$1,'web-resource':IconLink,'text':IconFileUpload,'selection':IconSelection,'mcp-tool-context':IconDocument$1},TOOLTIP_MAX_CHAR_LENGTH=0x78,CSS_CLASSES$7={'contextChip':'ck-ai-chat-context-chip','contextChipWide':'ck-ai-chat-context-chip_wide','contextChipDocument':'ck-ai-chat-context-chip_document','contextChipLabel':'ck-ai-chat-context-chip__label','contextChipTypeIcon':'ck-ai-chat-context-chip__type-icon','chipTooltip':'ck-ai-chat-context-controls__chip-tooltip'},TOOLTIP_CONFIG={'position':'n'};class AIChatContextItemButtonView extends ButtonView{constructor(_0x250fc8,_0x4e5bbc,_0x2d3397,_0x3b1a57,_0x32d465=!0x1){super(_0x250fc8),this['_isAnimationOnEnterEnabled']=_0x3b1a57,this['_initializeProperties'](_0x4e5bbc,_0x2d3397,_0x32d465),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'](_0xf5df36,_0x1748a2,_0x17b144){this['set']('label',_0xf5df36['label']),this['set']('tooltip',!0x0),this['set']('itemType',_0xf5df36['type']),this['set']('id',_0xf5df36['uiId']),this['set']('readonly',_0x1748a2),this['set']('isLoading',_0x17b144);}['_setupTemplate'](){const _0x4f830d=this['_createIconView'](),_0x2de511=this['_createRemoveButton'](),_0x5f3dce=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':this['_createTemplateAttributes'](_0x5f3dce),'children':this['_createTemplateChildren'](_0x4f830d,_0x2de511,_0x5f3dce)});}['_createTemplateAttributes'](_0x1f2d83){return{'class':[CSS_CLASSES$7['contextChip'],_0x1f2d83['if']('itemType',CSS_CLASSES$7['contextChipDocument'],_0x4d6a7a=>'document'==_0x4d6a7a),_0x1f2d83['if']('itemType',CSS_CLASSES$7['contextChipWide'],_0x2d537e=>'selection'==_0x2d537e)],'data-cke-tooltip-text':_0x1f2d83['to']('label',getTooltipForLabel),'data-cke-tooltip-position':TOOLTIP_CONFIG['position'],'data-cke-tooltip-class':CSS_CLASSES$7['chipTooltip']};}['_createTemplateChildren'](_0x35ba6a,_0x7022ce,_0x21dd97){const _0x57f617=this['_createLabelElement'](_0x21dd97),_0x17b98e=this['_createLoaderIcon']();return this['readonly']?[_0x35ba6a,_0x57f617]:[_0x35ba6a,_0x17b98e,_0x57f617,_0x7022ce];}['_createLabelElement'](_0x2a5251){return{'tag':'span','attributes':{'class':CSS_CLASSES$7['contextChipLabel']},'children':[{'text':_0x2a5251['to']('label')}]};}['_createRemoveButton'](){const _0x3b561f=new ButtonView(this['locale']);return _0x3b561f['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT'),'icon':IconClose}),this['_setupRemoveButtonEvent'](_0x3b561f),_0x3b561f;}['_setupRemoveButtonEvent'](_0x324e1b){_0x324e1b['on']('execute',()=>{this['fire']('removeContextItemChip',this['id']);});}['_createIconView'](){const _0x41835e=this['bindTemplate'],_0x5e15fd=new IconView();return _0x5e15fd['content']=CONTEXT_TYPES_TO_ICONS[this['itemType']],_0x5e15fd['extendTemplate']({'attributes':{'class':[CSS_CLASSES$7['contextChipTypeIcon'],_0x41835e['if']('isLoading','ck-hidden',_0x49aa60=>_0x49aa60)]}}),_0x5e15fd;}['_handleAnimationEndOnce'](_0x16b2f4,_0x1ebce2){if(!_0x16b2f4)return;const _0x240785=()=>{_0x1ebce2(),_0x16b2f4['removeEventListener']('animationend',_0x240785),_0x16b2f4['removeEventListener']('webkitAnimationEnd',_0x240785);};_0x16b2f4['addEventListener']('animationend',_0x240785),_0x16b2f4['addEventListener']('webkitAnimationEnd',_0x240785);}['_createLoaderIcon'](){const _0x14df95=new AISpinnerView('small');return _0x14df95['bind']('isVisible')['to'](this,'isLoading',_0x383c85=>_0x383c85),_0x14df95;}}function getTooltipForLabel(_0x482991){if(!_0x482991)return _0x482991;if(_0x482991['length']<=TOOLTIP_MAX_CHAR_LENGTH)return _0x482991;const _0x9fbaa4=_0x482991['slice'](0x0,TOOLTIP_MAX_CHAR_LENGTH),_0x2cce64=_0x9fbaa4['lastIndexOf']('\x20');return(_0x2cce64>0x0?_0x9fbaa4['slice'](0x0,_0x2cce64):_0x9fbaa4)+'…';}const DEFAULT_CONFIG={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},FALLBACK_CONTAINER_WIDTH='300px';class AIChatChipsOverflowManager{['_locale'];['_config'];['_visibleChips'];['_overflowChips'];['_showMoreButtonView']=null;['_showMoreBalloonPanelView']=null;['_containerElement']=null;['_bodyCollection'];['_parentView']=null;['_intersectionObserver']=null;['_pendingCalculation']=!0x1;constructor(_0x40f186,_0xacff05,_0x50c8de,_0x209bef,_0x266b69){this['_locale']=_0x40f186,this['_visibleChips']=_0xacff05,this['_config']={...DEFAULT_CONFIG,..._0x50c8de,'cssClasses':{'controlsButton':'','calculationContainer':'ck-calculation-container',..._0x50c8de['cssClasses']}},this['_overflowChips']=new Collection(),this['_bodyCollection']=_0x209bef,this['_parentView']=_0x266b69||null;}['setContainerElement'](_0x51a997){this['_intersectionObserver']&&(this['_intersectionObserver']['disconnect'](),this['_intersectionObserver']=null),this['_containerElement']=_0x51a997,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 _0x4800b4=[...this['_visibleChips'],...this['_overflowChips']],_0x39a5a1=this['_createCalculationContainer'](),_0x3bb952=this['_calculateOverflowInContainer'](_0x39a5a1,_0x4800b4),_0x9bd5ff=_0x39a5a1['_ancestorsToRestore'];_0x9bd5ff&&this['_restoreAncestorVisibility'](_0x9bd5ff),_0x39a5a1['remove'](),this['_applyOverflowResults'](_0x4800b4,_0x3bb952);}['_createShowMoreButton'](){this['_showMoreButtonView']=this['_createShowMoreButtonView'](),this['_showMoreBalloonPanelView']=this['_createShowMoreBalloonPanelView'](),this['_showMoreButtonView']['render'](),this['_containerElement']['appendChild'](this['_showMoreButtonView']['element']),this['_showMoreButtonView']['on']('execute',()=>{this['_handleShowMoreButtonClick']();}),clickOutsideHandler({'emitter':this['_showMoreBalloonPanelView'],'contextElements':[this['_showMoreBalloonPanelView']['element'],this['_showMoreButtonView']['element']],'callback':()=>this['hideBalloonPanel'](),'activator':()=>this['_showMoreButtonView']['isOn']});}['_createShowMoreButtonView'](){const _0x5c3a9b=new ButtonView(this['_locale']);_0x5c3a9b['set']({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x797cc9=[this['_config']['cssClasses']['showMoreButton']];return this['_config']['cssClasses']['controlsButton']&&_0x797cc9['push'](this['_config']['cssClasses']['controlsButton']),_0x5c3a9b['extendTemplate']({'attributes':{'class':_0x797cc9}}),_0x5c3a9b;}['_createShowMoreBalloonPanelView'](){const _0x57c604=new BalloonPanelView(this['_locale']);return _0x57c604['extendTemplate']({'attributes':{'class':this['_config']['cssClasses']['showMoreBalloon']}}),this['_bodyCollection']['add'](_0x57c604),_0x57c604;}['_updateBalloonContent'](){if(this['_showMoreBalloonPanelView']&&(this['_showMoreBalloonPanelView']['content']['clear'](),this['_overflowChips']['length']>0x0)){this['_overflowChips']['forEach'](_0x529525=>{_0x529525['disableAnimationOnEnter']();});const _0x489599=new View(this['_locale']);_0x489599['setTemplate']({'tag':'div','attributes':{'class':this['_config']['cssClasses']['overflowContainer']},'children':this['_overflowChips']}),this['_showMoreBalloonPanelView']['content']['add'](_0x489599);}}['_handleShowMoreButtonClick'](){this['_showMoreButtonView']['isOn']?this['hideBalloonPanel']():this['showBalloonPanel']();}['_updateShowMoreButtonVisibility'](){const _0x1c61f9=this['_overflowChips']['length']>0x0;this['_showMoreButtonView']?.['element']&&(this['_showMoreButtonView']['element']['style']['display']=_0x1c61f9?'':'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'](_0x15fc6d){const _0x10e748=this['_containerElement']?.['tagName']['toLowerCase']()||'div',_0x56e4de=this['_containerElement']?.['classList'];if(_0x56e4de){const _0x718df6=_0x56e4de[0x0]||'',_0xbb3283=_0x15fc6d['querySelector']('.'+_0x718df6),_0x580954=_0x15fc6d['querySelector'](_0x10e748);return _0xbb3283||_0x580954||_0x15fc6d;}return _0x15fc6d['querySelector'](_0x10e748)||_0x15fc6d;}['_calculateContainerWidth'](){const _0x1a40ee=this['_parentView']?.['element']||this['_containerElement'];if(!_0x1a40ee)return FALLBACK_CONTAINER_WIDTH;const _0x5f5374=window['getComputedStyle'](_0x1a40ee)['width'];if('auto'===_0x5f5374||'0px'===_0x5f5374||!_0x5f5374){const _0x5572e0=_0x1a40ee['parentElement'];if(_0x5572e0){const _0x355224=window['getComputedStyle'](_0x5572e0);return'auto'!==_0x355224['width']?_0x355224['width']:FALLBACK_CONTAINER_WIDTH;}return FALLBACK_CONTAINER_WIDTH;}return _0x5f5374;}['_applyCalculationStyles'](_0x222c70,_0x34aa70){this['_config']['cssClasses']['calculationContainer']&&_0x222c70['classList']['add'](this['_config']['cssClasses']['calculationContainer']),_0x222c70['style']['width']=_0x34aa70,_0x222c70['style']['position']='absolute',_0x222c70['style']['top']='-9999px',_0x222c70['style']['left']='-9999px',_0x222c70['style']['opacity']='0',_0x222c70['style']['pointerEvents']='none',_0x222c70['style']['zIndex']='-1',_0x222c70['style']['visibility']='visible\x20!important',_0x222c70['style']['display']='block\x20!important',_0x222c70['style']['boxSizing']='border-box';}['_restoreAncestorVisibility'](_0x2c07c7){_0x2c07c7['forEach'](({element:_0x1929be,originalDisplay:_0x299d72,originalVisibility:_0x512f4a})=>{_0x1929be['style']['display']=_0x299d72,_0x1929be['style']['visibility']=_0x512f4a;});}['_makeAncestorsVisible'](_0x44791b){const _0x3668df=[];let _0x3c502c=_0x44791b;for(;_0x3c502c&&_0x3c502c!==document['body'];){const _0x5a739b=window['getComputedStyle'](_0x3c502c);'none'!==_0x5a739b['display']&&'hidden'!==_0x5a739b['visibility']||(_0x3668df['push']({'element':_0x3c502c,'originalDisplay':_0x3c502c['style']['display'],'originalVisibility':_0x3c502c['style']['visibility']}),_0x3c502c['style']['display']='block',_0x3c502c['style']['visibility']='visible'),_0x3c502c=_0x3c502c['parentElement'];}return _0x3668df;}['_createContainerElements'](){let _0x4f2ebe,_0xc97c8c;return this['_parentView']?.['element']?(_0x4f2ebe=this['_parentView']['element']['cloneNode'](!0x0),_0xc97c8c=this['_findTargetContainer'](_0x4f2ebe)):(_0x4f2ebe=document['createElement']('div'),_0xc97c8c=_0x4f2ebe),{'calculationContainer':_0x4f2ebe,'targetContainer':_0xc97c8c};}['_createCalculationContainer'](){const {calculationContainer:_0x370164,targetContainer:_0x5a296a}=this['_createContainerElements'](),_0x3d5ad2=this['_calculateContainerWidth']();this['_applyCalculationStyles'](_0x370164,_0x3d5ad2);const _0x240016=this['_parentView']?.['element']||this['_containerElement'],_0x4d0f79=_0x240016?.['parentElement'];_0x4d0f79?_0x4d0f79['appendChild'](_0x370164):document['body']['appendChild'](_0x370164),_0x370164['_targetContainer']=_0x5a296a;const _0x27bbbe=this['_makeAncestorsVisible'](_0x4d0f79||null);return _0x370164['offsetWidth'],_0x370164['_ancestorsToRestore']=_0x27bbbe,_0x370164;}['_calculateOverflowInContainer'](_0x4e3b1c,_0x233bba){const _0x162dd6=_0x4e3b1c['_targetContainer']||_0x4e3b1c,_0x4beaa0=[],{rowCount:_0x270782}=this['_renderChipsAndCountRows'](_0x162dd6,_0x233bba);if(_0x270782<=this['_config']['maxVisibleRows'])return _0x4beaa0;const _0x322299=_0x233bba['slice']();for(;_0x322299['length']>0x0;){if(this['_testButtonFit'](_0x4e3b1c,_0x162dd6,_0x322299)){const _0x78739f=_0x233bba['filter'](_0x40396b=>!_0x322299['includes'](_0x40396b));_0x4beaa0['push'](..._0x78739f);break;}if(!_0x322299['pop']())break;}return _0x4beaa0;}['_renderChipsAndCountRows'](_0x17cffa,_0x46b2bf){_0x17cffa['innerHTML']='',_0x46b2bf['forEach'](_0x4c6ff1=>{if(_0x4c6ff1['element']){const _0x394641=_0x4c6ff1['element']['cloneNode'](!0x0);_0x17cffa['appendChild'](_0x394641);}}),_0x17cffa['offsetWidth'];const _0x433670=_0x17cffa['children'],_0x945200=[];return Array['from'](_0x433670)['forEach'](_0xf6d2b8=>{const _0x2cadbb=_0xf6d2b8['getBoundingClientRect']()['top'];_0x945200['some'](_0x46a444=>Math['abs'](_0x46a444-_0x2cadbb)<this['_config']['rowDetectionTolerance'])||_0x945200['push'](_0x2cadbb);}),{'rowCount':_0x945200['length']};}['_createMockButton'](){const _0x44f882=document['createElement']('button');return _0x44f882['className']=this['_config']['cssClasses']['showMoreButton'],this['_config']['cssClasses']['controlsButton']&&_0x44f882['classList']['add'](this['_config']['cssClasses']['controlsButton']),_0x44f882['textContent']='+\x201',_0x44f882;}['_testButtonFit'](_0x5c5d2a,_0x4ddab0,_0x5934d6){this['_renderChipsAndCountRows'](_0x4ddab0,_0x5934d6);const _0x2d3cb6=this['_createMockButton']();_0x5c5d2a['appendChild'](_0x2d3cb6),_0x5c5d2a['offsetWidth'];const _0x24d1af=[..._0x4ddab0['children'],_0x2d3cb6],_0x44e2dd=[];_0x24d1af['forEach'](_0x5958ee=>{const _0x2319c4=_0x5958ee['getBoundingClientRect']()['top'];_0x44e2dd['some'](_0x3205de=>Math['abs'](_0x3205de-_0x2319c4)<this['_config']['rowDetectionTolerance'])||_0x44e2dd['push'](_0x2319c4);});const _0x586a37=_0x44e2dd['length'];return _0x2d3cb6['remove'](),_0x586a37<=this['_config']['maxVisibleRows'];}['_distributeChips'](_0xfb2713,_0x3382f7){this['_visibleChips']['clear'](),this['_overflowChips']['clear'](),_0xfb2713['forEach'](_0x5e9f34=>{_0x3382f7['includes'](_0x5e9f34)?this['_overflowChips']['add'](_0x5e9f34):this['_visibleChips']['add'](_0x5e9f34);});}['_updateOverflowUI'](_0xaa9d6e){if(_0xaa9d6e>0x0&&!this['_showMoreButtonView']&&this['_createShowMoreButton'](),_0xaa9d6e>0x0&&this['_showMoreButtonView']){const _0x40f39e=''+this['_config']['showMoreLabelPrefix']+(_0xaa9d6e<0x63?_0xaa9d6e:'99');this['_showMoreButtonView']['label']=_0x40f39e;}this['_updateBalloonContent'](),this['_updateShowMoreButtonVisibility'](),this['_repinBalloonPanel']();}['_applyOverflowResults'](_0x172a95,_0x499729){this['_distributeChips'](_0x172a95,_0x499729),this['_updateOverflowUI'](_0x499729['length']);}['_setupVisibilityObserver'](){this['_containerElement']&&'undefined'!=typeof IntersectionObserver&&(this['_intersectionObserver']=new IntersectionObserver(_0x29b2dc=>{_0x29b2dc[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 _0xfdbcf3=this['_containerElement']['getBoundingClientRect']();if(0x0===_0xfdbcf3['width']||0x0===_0xfdbcf3['height'])return!0x1;const _0x369ab8=window['innerHeight']||document['documentElement']['clientHeight'],_0x40a1d9=window['innerWidth']||document['documentElement']['clientWidth'],_0x147967=0xc8;return _0xfdbcf3['bottom']>=-0xc8&&_0xfdbcf3['top']<=_0x369ab8+_0x147967&&_0xfdbcf3['right']>=-0xc8&&_0xfdbcf3['left']<=_0x40a1d9+_0x147967;}}const CSS_CLASSES$6={'CONTEXT_CHIPS':'ck-ai-chat__feed__context-chips','CONTEXT_CHIPS_VISIBLE':'ck-ai-chat-context-chips-wrapper','CONTEXT_CHIPS_OVERFLOW':'ck-ai-chat-context-chips-wrapper-balloon','CONTROLS_BUTTON':'ck-ai-chat-controls-button','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel'};class AIChatFeedContextChipsView extends View{['_contextChips']=this['createCollection']();['_overflowManager'];['_bodyCollection'];constructor(_0x442220,_0x5ecd54,_0x43ff8a){super(_0x442220),this['_bodyCollection']=_0x43ff8a,this['_createContextChips'](_0x5ecd54);const _0x5d630a={'cssClasses':{'showMoreButton':CSS_CLASSES$6['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES$6['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES$6['CONTEXT_CHIPS_OVERFLOW'],'controlsButton':CSS_CLASSES$6['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x442220,this['_contextChips'],_0x5d630a,this['_bodyCollection'],this),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$6['CONTEXT_CHIPS'],'ck','ck-reset_all']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']},'children':this['_contextChips']}]});}['render'](){super['render']();const _0x1e82f1=this['element']['querySelector']('.'+CSS_CLASSES$6['CONTEXT_CHIPS_VISIBLE']);_0x1e82f1&&(this['_overflowManager']['setContainerElement'](_0x1e82f1),this['_overflowManager']['reorganizeChips']());}['destroy'](){super['destroy'](),this['_overflowManager']['destroy']();}['_createContextChips'](_0x5dd38d){for(const _0x485c6e of _0x5dd38d){const _0x590afb=new AIChatContextItemButtonView(this['locale'],_0x485c6e,!0x0,!0x1);this['_contextChips']['add'](_0x590afb);}}}class AIChatFeedUserMessageItemView extends AIChatFeedItemView{['_contextChipsView']=null;['_locale'];['_bodyCollection'];['_messageContentView'];constructor(_0x146da5,_0x2e7bb1,_0x5de719){super(_0x2e7bb1),this['_locale']=_0x146da5,this['_bodyCollection']=_0x5de719,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 AIChatFeedContextChipsView(this['_locale'],this['options']['contextItems']['filter'](_0x14c3f7=>!_0x14c3f7['hidden']),this['_bodyCollection']),this['_contextChipsView']['extendTemplate']({'attributes':{'class':'ck-ai-chat__feed__context-chips'}}),this['children']['add'](this['_contextChipsView']));}['_createMessageContentView'](){this['_messageContentView']=new View(this['_locale']),this['_messageContentView']['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat__feed__message-content'}}),this['children']['add'](this['_messageContentView']);}['render'](){super['render'](),this['_messageContentView']['element']['innerHTML']=this['options']['initialContent'],this['markAsDone']();}}class AIChatFeedInteractionHeaderView extends AIChatFeedItemView{['capabilities'];constructor(_0x113ca2,_0x2d59ac){super(_0x2d59ac);const {isWebSearchEnabled:_0x44d7b2,isReasoningEnabled:_0x179508}=_0x2d59ac['capabilities'],_0x2b20e2=[];let _0x15ff58='';_0x44d7b2&&_0x179508?(_0x15ff58=getTranslation$i(_0x113ca2,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING'),_0x2b20e2['push'](createIcon(IconWeb)),_0x2b20e2['push'](createIcon(IconBulb))):_0x44d7b2?(_0x15ff58=getTranslation$i(_0x113ca2,'AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH'),_0x2b20e2['push'](createIcon(IconWeb))):_0x179508&&(_0x15ff58=getTranslation$i(_0x113ca2,'AI_CHAT_FEED_REPLY_ITEM_USED_REASONING'),_0x2b20e2['push'](createIcon(IconBulb))),this['extendTemplate']({'attributes':{'class':['ck-ai-chat__feed__interaction-header',_0x15ff58?'':'ck-hidden']}});const _0x48de03=new View();_0x48de03['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__interaction-header__capabilities']},'children':[..._0x2b20e2,{'tag':'span','attributes':{'class':['ck-ai-chat__feed__interaction-header__capabilities__text']},'children':[_0x15ff58]}]}),this['children']['add'](_0x48de03),this['capabilities']=_0x2d59ac['capabilities'];}}function createIcon(_0x4fbe38){const _0x2d455a=new IconView();return _0x2d455a['content']=_0x4fbe38,_0x2d455a;}const BOTTOM_THRESHOLD=0x5,USER_CANCEL_EVENT_NAMES=['wheel','touchstart','pointerdown','keydown'],USER_CANCEL_SCROLL_KEYS=['ArrowUp','ArrowDown','PageUp','PageDown','Home','End','\x20'];class ScrollManager{['element'];['animationFrameId'];['isRunning'];['abortController'];['isUserPaused'];constructor(_0x57b378){this['element']=_0x57b378,this['animationFrameId']=null,this['isRunning']=!0x1,this['abortController']=new AbortController(),this['isUserPaused']=!0x1;for(const _0x3e16a3 of USER_CANCEL_EVENT_NAMES){const _0x2d7d95='keydown'!==_0x3e16a3;this['element']['addEventListener'](_0x3e16a3,this['_onUserEvent']['bind'](this),{'passive':_0x2d7d95,'signal':this['abortController']['signal']});}}['start'](){this['isRunning']||(this['isRunning']=!0x0,this['isUserPaused']=!0x1,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'](_0x2810d7){if(this['isRunning']){if('keydown'===_0x2810d7['type']){const _0x19bdc9=_0x2810d7['key'];if(!USER_CANCEL_SCROLL_KEYS['includes'](_0x19bdc9))return;}_0x2810d7 instanceof WheelEvent?_0x2810d7['deltaY']<0x0?this['isUserPaused']=!0x0:this['isUserPaused']=!this['_isAtBottom']():this['isUserPaused']=!0x0;}}['_isAtBottom'](){const {scrollTop:_0x497e1b,scrollHeight:_0x341138,clientHeight:_0x52e114}=this['element'];return _0x341138-_0x497e1b-_0x52e114<=BOTTOM_THRESHOLD;}['_rafUpdate'](){this['isRunning']&&(this['isUserPaused']||this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'auto'}),this['animationFrameId']=requestAnimationFrame(this['_rafUpdate']['bind'](this)));}}class AISkeletonView extends View{constructor(_0x70e9b6,_0x1f3a22){super(_0x70e9b6),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-skeleton']},'children':this['_createSkeletonItems'](_0x1f3a22)});}['_createSkeletonItems'](_0xbab91e){const _0xbb47b0=['ck','ck-ai-skeleton__item'];return _0xbab91e['map'](_0x39989f=>{let _0x419e66='';switch(_0x39989f['attributes']['align']){case'right':_0x419e66='margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;';break;case'center':_0x419e66='margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;';break;case'left':_0x419e66='margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;';}return{'tag':_0x39989f['tag'],'attributes':{'class':[..._0xbb47b0,_0x39989f['attributes']['class']?_0x39989f['attributes']['class']:''],'style':'width:\x20'+_0x39989f['attributes']['width']+';\x20height:\x20'+_0x39989f['attributes']['height']+';'+_0x419e66}};});}}const SKELETON_DEFINITIONS={'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':generateSkeletonDefinitions(0x5,'100%','44px','right'),'aiChatResources':generateSkeletonDefinitions(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 generateSkeletonDefinitions(_0x512410,_0x20a23d,_0x20b764,_0x5c0dfd){return new Array(_0x512410)['fill'](null)['map'](()=>({'tag':'div','attributes':{'width':_0x20a23d,'height':_0x20b764,'align':_0x5c0dfd}}));}class AIChatFeedCustomElementView extends AIChatFeedItemView{constructor(_0x2b5d74){super(_0x2b5d74),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']);}}class AIChatFeedView extends View{['children'];['scrollManager'];['_bodyCollection'];constructor(_0x272330,_0x52c527){super(_0x272330),this['_bodyCollection']=_0x52c527,this['set']('isPending',!0x1),this['set']('loadingMessage',''),this['set']('isLoadingSkeletonVisible',!0x1),this['set']('isTrackChangesOn',!0x1),this['children']=this['createCollection'](),this['children']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_setupTemplate']();}['render'](){super['render'](),this['scrollManager']=new ScrollManager(this['element']);}['destroy'](){super['destroy'](),this['scrollManager']['destroy']();}['clear'](){this['children']['clear']();}['addItem'](_0x2a20dd,_0x155e13){let _0x10f53c;return'ai-reply'===_0x2a20dd?_0x10f53c=new AIChatFeedReplyItemView(this['locale'],_0x155e13,this['_bodyCollection']):'ai-suggestion-reply'===_0x2a20dd?(_0x10f53c=new AIChatFeedSuggestionItemView(this['locale'],_0x155e13,this['_bodyCollection']),_0x10f53c['bind']('isTrackChangesOn')['to'](this)):_0x10f53c='user-message'===_0x2a20dd?new AIChatFeedUserMessageItemView(this['locale'],_0x155e13,this['_bodyCollection']):'interaction-header'===_0x2a20dd?new AIChatFeedInteractionHeaderView(this['locale'],_0x155e13):'custom-element'===_0x2a20dd?new AIChatFeedCustomElementView(_0x155e13):new AIChatFeedErrorItemView(_0x155e13),this['children']['add'](_0x10f53c),_0x10f53c;}async['updateReplyItem']({id:_0x3d2b5c,parsedContent:_0x27c886,renderingStrategy:_0x32915c,abortSignal:_0x304260}){const _0x5d862f=this['getItemById'](_0x3d2b5c);if(!(_0x5d862f instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-reply-item',null,{'itemView':_0x5d862f,'id':_0x3d2b5c,'parsedContent':_0x27c886});await _0x5d862f['updateContent']({'parsedContent':_0x27c886,'renderingStrategy':_0x32915c,'abortSignal':_0x304260});}async['updateWebSources'](_0x53bb38,_0x51b13a){const _0x292ac9=this['getItemById'](_0x53bb38);if(_0x292ac9 instanceof AIChatFeedSuggestionItemView)_0x292ac9['updateSources'](_0x51b13a);else{if(!(_0x292ac9 instanceof AIChatFeedReplyItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-or-reply-item',null,{'itemView':_0x292ac9,'id':_0x53bb38,'sources':_0x51b13a});_0x292ac9['updateSources'](_0x51b13a);}}async['updateSuggestionItem']({id:_0x294868,parts:_0x30877d,renderingStrategy:_0x34410d,abortSignal:_0x8f153c}){const _0x1d1407=this['getItemById'](_0x294868);if(!(_0x1d1407 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',null,{'itemView':_0x1d1407,'id':_0x294868,'parts':_0x30877d});await _0x1d1407['updateContent']({'parts':_0x30877d,'renderingStrategy':_0x34410d,'abortSignal':_0x8f153c});}['updateSuggestionPartState']({id:_0xc8e2c7,index:_0x56f968,state:_0xbe6f6a}){const _0x24ee4c=this['getItemById'](_0xc8e2c7);if(!(_0x24ee4c instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0xc8e2c7});_0x24ee4c['updatePartState'](_0x56f968,_0xbe6f6a);}['setSuggestionPartActive']({id:_0x2672dc,index:_0x287bc3,isActive:_0x31ce25}){const _0x5745b0=this['getItemById'](_0x2672dc);if(!(_0x5745b0 instanceof AIChatFeedSuggestionItemView))throw new CKEditorError('ai-chat-feed-view-item-not-a-suggestion-item',this,{'id':_0x2672dc});this['children']['filter'](_0x466018=>_0x466018 instanceof AIChatFeedSuggestionItemView)['forEach'](_0x3b80e6=>{_0x3b80e6['setPartActive'](!0x1);}),_0x5745b0['setPartActive'](_0x287bc3,_0x31ce25);}['markItemAsDone'](_0x4ccf45){this['getItemById'](_0x4ccf45)['markAsDone']();}['getItemIds'](){return this['children']['map'](_0x2cee72=>_0x2cee72['options']['id']);}['removeItem'](_0x4ec229){this['children']['remove'](this['getItemById'](_0x4ec229));}['hasItem'](_0x42e818){return!!this['children']['find'](_0x1d21cf=>_0x1d21cf['options']['id']['includes'](_0x42e818));}['scrollToSuggestion'](_0x2ea45d,_0x57cdcd){const _0x387c5f=this['getItemById'](_0x2ea45d);if(!(_0x387c5f instanceof AIChatFeedSuggestionItemView))return void logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item',{'replyId':_0x2ea45d,'partIndex':_0x57cdcd});const _0x285d59=_0x387c5f['getPartView'](_0x57cdcd);_0x285d59?scrollAncestorsToShowTarget(_0x285d59['element'],0x14,this['element']['parentElement'],!0x0,!0x0):logWarning('ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found',{'replyId':_0x2ea45d,'partIndex':_0x57cdcd});}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed']},'children':this['_createTemplateChildren']()});}['_createTemplateChildren'](){const _0x211b13=this['_createSkeletonLoader']();return[this['_createFeedItems'](),_0x211b13,this['_createFeedLoader']()];}['_createSkeletonLoader'](){const _0x579b98=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiFeed']);return _0x579b98['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden',_0x391633=>!_0x391633)]}}),_0x579b98;}['_createFeedItems'](){const _0x406435=new View(this['locale']);return _0x406435['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__feed__items',this['bindTemplate']['if']('isLoadingSkeletonVisible','ck-hidden')]},'children':this['children']}),_0x406435;}['_createFeedLoader'](){const _0x5e915e=new View(this['locale']);return _0x5e915e['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat__loader',this['bindTemplate']['if']('isPending','ck-hidden',_0x2d72c1=>!_0x2d72c1)]},'children':this['_createLoaderChildren']()}),_0x5e915e;}['_createLoaderChildren'](){const _0x4bbd56=new AISpinnerView();return _0x4bbd56['isVisible']=!0x0,[_0x4bbd56,{'tag':'span','attributes':{'class':['ck','ck-ai-chat__loader-text']},'children':[{'text':this['bindTemplate']['to']('loadingMessage')}]}];}['getItemById'](_0x380716){const _0x295d1a=this['children']['find'](_0x202a38=>_0x202a38['options']['id']['includes'](_0x380716));if(!_0x295d1a)throw new CKEditorError('ai-chat-feed-view-item-not-found',this,{'id':_0x380716});return _0x295d1a;}['setLoadingMessage'](_0x12b522){this['set']('loadingMessage',_0x12b522);}['toggleLoadingSkeleton'](_0x45312e){this['set']('isLoadingSkeletonVisible',_0x45312e);}['startAutoScroll'](){this['scrollManager']['start']();}['stopAutoScroll'](){this['scrollManager']['stop']();}}class AIChatPromptSuggestionsListView extends ListView{['filter'](){let _0x3d71a4=0x0;for(const _0x2a50ff of this['items'])_0x3d71a4+=_0x2a50ff['items']['length'];return{'resultsCount':_0x3d71a4,'totalItemsCount':_0x3d71a4};}}const PROMPT_INPUT_HIGHLIGHT_DURATION=0x320,PROMPT_INPUT_HIGHLIGHT_CLASS='ck-ai-chat__prompt-input_highlighted';class AIChatPromptInputView extends AutocompleteView{['submitButtonView'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;['_addContextButtonView'];['_queryViewResizeObserver'];constructor(_0x1755a8,_0x132799){super(_0x1755a8,{'queryView':{'label':'','creator':createLabeledTextarea,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new AIChatPromptSuggestionsListView(_0x1755a8),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this['set']('isEmpty',!0x0),this['set']('isUploadInProgress',!0x1),this['_addContextButtonView']=_0x132799,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',(_0x418844,_0x503dfe)=>!_0x418844&&!_0x503dfe),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0xaaa759,_0x5e50b5)=>{this['isUploadInProgress']||this['isEmpty']||_0xaaa759['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x5e50b5());}),this['queryView']['fieldView']['on']('update',()=>{this['isEmpty']=''===this['queryView']['fieldView']['element']['value']?.['trim']();});}['destroy'](){super['destroy'](),this['_queryViewResizeObserver']&&this['_queryViewResizeObserver']['destroy']();}['submit'](){const _0x374c5a=this['queryView']['fieldView']['element']['value']?.['trim']();if(!_0x374c5a)return this['queryView']['errorText']=getTranslation$i(this['locale'],'AI_CHAT_PROMPT_EMPTY_ERROR'),void(this['queryView']['fieldView']['hasError']=!0x0);this['queryView']['fieldView']['hasError']=!0x1;const _0x1568f2=escape(_0x374c5a);this['fire']('sendUserMessage',_0x1568f2),this['queryView']['fieldView']['reset']();}['setPlaceholderText'](_0x26be15){this['queryView']['fieldView']['set']('placeholder',_0x26be15);}['focus'](_0x167529=!0x1){super['focus'](),_0x167529&&(this['element']['classList']['contains'](PROMPT_INPUT_HIGHLIGHT_CLASS)||(this['element']['classList']['add'](PROMPT_INPUT_HIGHLIGHT_CLASS),setTimeout(()=>{this['element']['classList']['remove'](PROMPT_INPUT_HIGHLIGHT_CLASS);},PROMPT_INPUT_HIGHLIGHT_DURATION)));}['_createSubmitButton'](){const _0x3bf1c5=new ButtonView(this['locale']);return _0x3bf1c5['set']({'icon':IconSubmit,'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_SUBMIT'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-chat__prompt-submit-button','isEnabled':!0x1}),_0x3bf1c5['on']('execute',()=>{this['submit']();}),_0x3bf1c5;}['setIsUploadInProgress'](_0x5b15a7){this['isUploadInProgress']=_0x5b15a7;}['_setUpAddContextButtonPositioning'](){const _0x28c015=this['locale'],_0x30632c=()=>{_0x59f9c1['window']['requestAnimationFrame'](()=>{if(isVisible(this['element'])){const _0x24fd7a=new Rect(this['queryView']['fieldView']['element']),_0x39869e=new Rect(this['_addContextButtonView']['element']),_0x4466db=_0x24fd7a['width'],_0x1b06e8='rtl'===_0x28c015['uiLanguageDirection']?'right':'left';_0x24fd7a['excludeScrollbarsAndBorders']();const _0x21a836=_0x4466db-_0x24fd7a['width']+0x1;this['_addContextButtonView']['element']['style'][_0x1b06e8]='calc('+(_0x4466db-_0x39869e['width']-_0x21a836)+'px\x20-\x20var(--ck-spacing-tiny))';}});};this['queryView']['fieldView']['on']('update',_0x30632c),this['on']('render',()=>{_0x30632c(),this['_queryViewResizeObserver']=new _0x3ccca1(this['queryView']['fieldView']['element'],()=>{_0x30632c();});});}}const CSS_CLASSES$5={'PROMPT_CAPABILITIES':'ck-ai-chat__prompt-capabilities','CONTROLS_BUTTON':'ck-ai-chat-controls-button','COMMANDS_BUTTON':'ck-ai-chat-controls-button--commands','TERTIARY_BUTTON':'ck-ai-button-tertiary','MODEL_SELECTION':'ck-ai-chat-controls__model-selection','MODEL_SELECTION_ITEM_NAME':'ck-ai-chat-controls__model-selection__item-name','MODEL_SELECTION_ITEM_DESCRIPTION':'ck-ai-chat-controls__model-selection__item-description','MODEL_SELECTION_ITEM_CAPABILITIES':'ck-ai-chat-controls__model-selection__item-capabilities'},TOOLTIP_POSITION$3='n';class AIChatPromptCapabilitiesView extends View{['_webSearchButton'];['_reasoningButton'];['_commandsButton'];['_modelSelectionDropdown'];['_modelSelectionDropdownItems'];['_modelNameView'];constructor(_0x1dec45){super(_0x1dec45),this['set']('webSearchActive',!0x1),this['set']('reasoningActive',!0x1),this['set']('modelDisplayMode','selector'),this['set']('modelSelectorEnabled',!0x0),this['set']('activeModelId',null),this['set']('activeModelName',null),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelNameView']=this['_createModelNameView'](),this['_webSearchButton']=this['_createWebSearchButton'](),this['_reasoningButton']=this['_createReasoningButton'](),this['_commandsButton']=this['_createCommandsButton'](),this['_modelSelectionDropdown']['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0x27bbbc=>'selector'===_0x27bbbc),this['_modelSelectionDropdown']['buttonView']['bind']('tooltip')['to'](this,'modelSelectorEnabled',_0x5b06a7=>_0x5b06a7?this['_modelSelectionDropdown']['buttonView']['label']:getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP')),this['_modelSelectionDropdown']['bind']('isEnabled')['to'](this,'modelSelectorEnabled',_0x40c977=>_0x40c977),this['_webSearchButton']['bind']('isOn')['to'](this,'webSearchActive',_0x32c2db=>_0x32c2db),this['_webSearchButton']['bind']('tooltip')['to'](this,'webSearchActive',_0x39065d=>getTranslation$i(this['locale'],_0x39065d?'AI_CHAT_DISABLE_WEB_SEARCH':'AI_CHAT_ENABLE_WEB_SEARCH')),this['_reasoningButton']['bind']('isOn')['to'](this,'reasoningActive',_0x34c1ec=>_0x34c1ec),this['_reasoningButton']['bind']('tooltip')['to'](this,'reasoningActive',_0x2af38e=>getTranslation$i(this['locale'],_0x2af38e?'AI_CHAT_DISABLE_REASONING':'AI_CHAT_ENABLE_REASONING')),this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$5['PROMPT_CAPABILITIES']]},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],this['_webSearchButton'],this['_reasoningButton'],this['_commandsButton']]}),this['_modelSelectionDropdownItems']=new Collection(),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']);}['setModelList'](_0x2ab0be,_0xf052f1){if(_0xf052f1)this['set']('modelDisplayMode','hidden');else{const _0x5d96b3=0x1===_0x2ab0be['length'];this['set']('modelDisplayMode',_0x5d96b3?'name':'selector');}if(this['_modelSelectionDropdownItems']['clear'](),_0x2ab0be?.['length'])for(const _0x4422e3 of _0x2ab0be){const _0x4cf501=new UIModel({'label':_0x4422e3['name'],'withText':!0x0,'role':'menuitemradio','id':_0x4422e3['id'],'model':_0x4422e3});_0x4cf501['bind']('isOn')['to'](this,'activeModelId',_0x30b261=>_0x30b261===_0x4422e3['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x4cf501,'labelView':new ModelButtonLabelView$1(this['locale'],_0x4422e3)});}}['setWebSearch'](_0x565262){this['set']('webSearchActive',_0x565262);}['setReasoning'](_0x4d2377){this['set']('reasoningActive',_0x4d2377);}['setModel'](_0x1a4f7d){if(!_0x1a4f7d)return;this['activeModelId']=_0x1a4f7d['id'],this['activeModelName']=_0x1a4f7d['name']||_0x1a4f7d['id'],this['_modelSelectionDropdown']['buttonView']['set']('label',_0x1a4f7d['name']),this['_modelSelectionDropdown']['buttonView']['set']('tooltip',_0x1a4f7d['name']);const _0x8d7c6c=_0x1a4f7d['capabilities']['webSearch']?.['enabled']??!0x1;this['set']('webSearchActive',!0x1),this['_webSearchButton']['set']('isOn',!0x1),this['_webSearchButton']['set']('isEnabled',_0x8d7c6c),this['_webSearchButton']['set']('isVisible',_0x8d7c6c);const _0x3f46d6=_0x1a4f7d['capabilities']['reasoning']?.['enabled']??!0x1;this['set']('reasoningActive',!0x1),this['_reasoningButton']['set']('isOn',!0x1),this['_reasoningButton']['set']('isEnabled',_0x3f46d6),this['_reasoningButton']['set']('isVisible',_0x3f46d6);}['enableModelSelector'](){this['set']('modelSelectorEnabled',!0x0);}['disableModelSelector'](_0x3a9f2a){this['set']('modelSelectorEnabled',!0x1),_0x3a9f2a&&this['set']('modelDisplayMode','hidden');}['_createWebSearchButton'](){const _0x30ef45=new ButtonView();return _0x30ef45['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_SEARCH_WEB'),'icon':IconWeb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x30ef45['on']('execute',()=>{this['fire']('toggleWebSearch');}),_0x30ef45;}['_createReasoningButton'](){const _0x19597f=new ButtonView();return _0x19597f['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_REASONING'),'icon':IconBulb,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltipPosition':TOOLTIP_POSITION$3}),_0x19597f['on']('execute',()=>{this['fire']('toggleReasoning');}),_0x19597f;}['_createCommandsButton'](){const _0x308e4d=new ButtonView();return _0x308e4d['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'icon':IconAI,'withText':!0x0,'class':CSS_CLASSES$5['CONTROLS_BUTTON'],'isToggleable':!0x0,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_COMMANDS'),'tooltipPosition':TOOLTIP_POSITION$3}),_0x308e4d['extendTemplate']({'attributes':{'class':[CSS_CLASSES$5['COMMANDS_BUTTON']]}}),_0x308e4d['on']('execute',()=>{console['log']('Commands\x20are\x20not\x20implemented\x20yet.'),alert('Commands\x20are\x20not\x20implemented\x20yet.');}),_0x308e4d;}['_createModelSelectionDropdown'](){const _0x565abd=createDropdown(this['locale']);return _0x565abd['set']({'panelPosition':'ne','class':[CSS_CLASSES$5['MODEL_SELECTION']]}),_0x565abd['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION$3,'class':CSS_CLASSES$5['TERTIARY_BUTTON']}),this['listenTo'](_0x565abd,'execute',_0x520ef4=>{this['fire']('selectModel',_0x520ef4['source']['model']);}),_0x565abd;}['_createModelNameView'](){const _0x59b775=new ModelNameView$1(this['locale']);return _0x59b775['bind']('text')['to'](this,'activeModelName',_0x331767=>_0x331767??''),_0x59b775['bind']('isVisible')['to'](this,'modelDisplayMode',_0x168ff7=>'name'===_0x168ff7),_0x59b775;}}let ModelButtonLabelView$1=class extends ButtonLabelView{constructor(_0x57b008,_0x59a605){super();const _0x360c51=this['bindTemplate'],_0x4d6d1a=this['createCollection']();this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x360c51['to']('style'),'id':_0x360c51['to']('id')},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_NAME']]},'children':[{'text':_0x360c51['to']('text')}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_DESCRIPTION']]},'children':[{'tag':'span','children':[{'text':_0x59a605['description']}]}]},{'tag':'div','attributes':{'class':[CSS_CLASSES$5['MODEL_SELECTION_ITEM_CAPABILITIES']]},'children':_0x4d6d1a}]}),_0x4d6d1a['addMany'](this['_getCapabilityParts'](_0x57b008,IconWeb,'AI_CHAT_SEARCH_WEB',_0x59a605['capabilities']['webSearch']?.['enabled']??!0x1)),_0x4d6d1a['addMany'](this['_getCapabilityParts'](_0x57b008,IconBulb,'AI_CHAT_REASONING',_0x59a605['capabilities']['reasoning']?.['enabled']??!0x1));}['_getCapabilityParts'](_0x9f3b8c,_0x244616,_0x16eb6d,_0x3e7e88){const _0x1ec536=new IconView();_0x1ec536['content']=_0x244616;const _0x1e925c=new View(_0x9f3b8c);_0x1e925c['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x9f3b8c,_0x16eb6d)+':\x20'}]});const _0x5a4d71=new View(_0x9f3b8c);return _0x5a4d71['setTemplate']({'tag':'span','children':[{'text':getTranslation$i(_0x9f3b8c,_0x3e7e88?'AI_CHAT_CAPABILITIES_YES':'AI_CHAT_CAPABILITIES_NO')}]}),[_0x1ec536,_0x1e925c,_0x5a4d71];}},ModelNameView$1=class extends View{constructor(_0x452b28){super(_0x452b28),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x36a114=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-chat-controls__model-name',_0x36a114['if']('isVisible','ck-hidden',_0x1ac6a5=>!_0x1ac6a5)]},'children':[{'text':_0x36a114['to']('text')}]});}};const CSS_CLASSES$4={'URL_FORM':'ck-ai-chat-context-controls__url-form','URL_INPUT_SECTION':'ck-ai-chat-context-controls__url-input-section'},TOOLTIP_POSITION$2='n';class AIChatContextPanelUrlInputView extends View{['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['urlInputField'];['backButton'];['confirmButton'];constructor(_0x3fa465){super(_0x3fa465),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),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 FocusCycler({'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'](_0x5dfb20=>{this['focusTracker']['add'](_0x5dfb20['element']),this['keystrokes']['listenTo'](_0x5dfb20['element']);}),submitHandler({'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'](_0x176a5d){this['urlInputField']['errorText']=_0x176a5d,this['_updateConfirmButtonState'](),this['fire']('refreshBalloon');}['clearError'](){this['urlInputField']['errorText']=null,this['_updateConfirmButtonState']();}['_createBackButton'](){const _0xe5936c=new ButtonView(this['locale']);return _0xe5936c['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$2,'class':['ck-button-icon\x20ck-button-back']}),this['on']('change:withBackButton',(_0x3297c5,_0x3f5a79,_0x35935f)=>{_0xe5936c['set']({'class':['ck-button-icon\x20ck-button-back'+(_0x35935f?'':'\x20ck-hidden')]});}),_0xe5936c;}['_createUrlInputField'](){const _0x358d8e=new LabeledFieldView(this['locale'],createLabeledInputText);return _0x358d8e['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_LABEL'),'class':'ck-labeled-field-view_empty'}),_0x358d8e['fieldView']['set']({'placeholder':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_PLACEHOLDER')}),_0x358d8e;}['_createConfirmButton'](){const _0xc50aba=new ButtonView(this['locale']);return _0xc50aba['set']({'icon':_0x45bff4,'tooltip':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'tooltipPosition':TOOLTIP_POSITION$2,'class':'ck-button-icon','type':'submit','isEnabled':!0x1}),_0xc50aba;}['_setupTemplate'](){const _0x168746=new FormHeaderView(this['locale'],{'label':getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_ADD_URL'),'class':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url'});_0x168746['children']['add'](this['backButton'],0x0),this['setTemplate']({'tag':'form','attributes':{'class':CSS_CLASSES$4['URL_FORM'],'tabindex':'-1'},'children':[_0x168746,{'tag':'div','attributes':{'class':CSS_CLASSES$4['URL_INPUT_SECTION']},'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',_0x5f396e=>{_0x5f396e['stop'](),this['_handleSubmit']();});}['_setupKeystrokes'](){this['keystrokes']['set']('esc',(_0x56d5a2,_0x2c3a93)=>{this['clear'](),this['fire']('cancel'),_0x2c3a93();});}['_handleSubmit'](){const _0x5b10d2=this['getValue']()['trim']();_0x5b10d2?this['_isValidUrl'](_0x5b10d2)?(this['clearError'](),this['fire']('submitUrl',_0x5b10d2)):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_INVALID_ERROR')):this['setError'](getTranslation$i(this['locale'],'AI_CHAT_CONTEXT_URL_EMPTY_ERROR'));}['_updateConfirmButtonState'](){const _0x2c5434=this['getValue']()['trim'](),_0x1617aa=!!this['urlInputField']['errorText'];this['confirmButton']['isEnabled']=_0x2c5434['length']>0x0&&!_0x1617aa;}['_isValidUrl'](_0x46f522){try{return!!new URL(_0x46f522);}catch{return!0x1;}}}const CSS_CLASSES$3={'ITEM':'ck-ai-chat-resources__item','ITEM_IN_CONTEXT':'ck-ai-chat-resources__item--in-context','ITEM_TITLE':'ck-ai-chat-resources__item-title','ITEM_ICON':'ck-ai-chat-resources__item__icon'};class AIChatResourceListItemView extends ListItemView{['resource'];['_titleView'];['_iconView'];constructor(_0x489b97,_0x41ec25){super(_0x489b97),this['resource']=_0x41ec25,this['set']('isInContext',!!_0x41ec25['isInContext']),this['_titleView']=this['_createTitleView'](),this['_iconView']=this['_createIconView'](),this['_setupTemplate']();}['render'](){super['render']();}['getResourceIcon'](_0x131c7e){if(_0x131c7e['isInContext'])return _0x45bff4;switch(_0x131c7e['type']){case AIContextItemType['DOCUMENT']:return IconDocument$1;case AIContextItemType['URL']:return IconLink;case AIContextItemType['FILE']:case AIContextItemType['TEXT']:return IconFileUpload;default:return IconDocumentOutline;}}['highlightText'](_0x9b003){if(!_0x9b003||''===_0x9b003['trim']())return void this['_titleView']['highlightText'](null);const _0x3add8f=new RegExp(escapeRegExp$1(_0x9b003),'gi');this['_titleView']['highlightText'](_0x3add8f);}['updateResourceState'](_0x7b35d7){this['resource']['isInContext']=_0x7b35d7,this['isInContext']=_0x7b35d7,this['_updateIcon']();}['_createTitleView'](){const _0x4f9b27=new HighlightedTextView();return _0x4f9b27['text']=this['resource']['label'],_0x4f9b27['extendTemplate']({'tag':'span','attributes':{'class':[CSS_CLASSES$3['ITEM_TITLE']]}}),_0x4f9b27;}['_createIconView'](){const _0x29fa3f=new IconView();return _0x29fa3f['content']=this['getResourceIcon'](this['resource']),_0x29fa3f;}['_setupTemplate'](){const _0x2a9606=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM'],_0x2a9606['if']('isVisible','ck-hidden',_0x357330=>!_0x357330),_0x2a9606['if']('isInContext',CSS_CLASSES$3['ITEM_IN_CONTEXT'])]},'children':[{'tag':'div','attributes':{'class':[CSS_CLASSES$3['ITEM_ICON']]},'children':[this['_iconView']]},this['_titleView']],'on':{'click':_0x2a9606['to']('execute')}});}['_updateIcon'](){this['_iconView']['content']=this['getResourceIcon'](this['resource']);}}const CSS_CLASSES$2={'LIST':'ck-ai-chat-resources__list'};class AIChatContextResourcesListView extends ListView{['_source'];constructor(_0x1cc615,_0x4ab040){super(_0x1cc615),this['_source']=_0x4ab040,this['extendTemplate']({'attributes':{'class':[CSS_CLASSES$2['LIST']]}});}['setResources'](_0xbdc7ce,_0xdddeda){this['items']['clear']();let _0x311c52=_0xbdc7ce;if(this['_source']['useDefaultFiltering']&&_0xdddeda&&''!==_0xdddeda['trim']()){const _0x226c41=new RegExp(_0xdddeda['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),'gi');_0x311c52=_0xbdc7ce['filter'](_0x249b4f=>_0x226c41['test'](_0x249b4f['label']));}for(const _0x44b623 of _0x311c52){const _0x5db8b6=new AIChatResourceListItemView(this['locale'],_0x44b623);_0x5db8b6['on']('execute',()=>{this['_handleResourceSelection'](this['_source'],_0x44b623);}),this['items']['add'](_0x5db8b6);}this['_source']['useDefaultFiltering']&&this['highlightText'](_0xdddeda);}['highlightText'](_0x5cd1ed){this['_source']['useDefaultFiltering']&&this['items']['forEach'](_0x44c157=>{_0x44c157['highlightText'](_0x5cd1ed);});}['updateResourceState'](_0x409cbe,_0x2cd674){for(const _0x106977 of this['items']){const _0x560b7a=_0x106977;_0x560b7a['resource']['id']===_0x409cbe&&_0x560b7a['updateResourceState'](_0x2cd674);}}['_handleResourceSelection'](_0x255e17,_0x4073cd){this['fire']('addResourceToContext',{'source':_0x255e17,'resource':_0x4073cd});}}class AIChatContextResourcesSearchInputView extends LabeledFieldView{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x2dfba3){const t=_0x2dfba3['t'],_0x2fad1f={'showResetButton':!0x0,'showIcon':!0x0,'creator':createLabeledInputText,'label':getTranslation$i(_0x2dfba3,'AI_CHAT_SEARCH_RESOURCES')};super(_0x2dfba3,_0x2fad1f['creator']),this['label']=_0x2fad1f['label'],this['_viewConfig']=_0x2fad1f,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x2dfba3,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x715e69){this['fire']('search',_0x715e69);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new IconView(),this['iconView']['content']=IconLoupe,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x361519,t){this['resetButtonView']=new ButtonView(_0x361519),this['resetButtonView']['set']({'label':t('Clear'),'icon':IconCancel,'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',_0x192b44=>!_0x192b44),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);}}class AIChatContextResourcesView extends View{['_searchView'];['_searchSection'];['_searchInputVisibleFrom'];['_resourcesListView'];['_skeletonLoader'];['_source'];['children'];['_latestLoadResourcesUid']=null;constructor(_0x4c88e6,_0x554e82){super(_0x4c88e6),this['_source']=_0x554e82['source'],this['_searchInputVisibleFrom']=_0x554e82['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 ViewCollection([this['_skeletonLoader'],this['_resourcesListView']]),this['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-chat-resources'},'children':this['children']});}['_createSearchView'](){return new AIChatContextResourcesSearchInputView(this['locale']);}['_createSearchSection'](){const _0x1cecf9=new View(this['locale']);return _0x1cecf9['setTemplate']({'tag':'div','attributes':{'class':'ck\x20ck-search'},'children':[this['_searchView']]}),this['_searchView']['on']('search',(_0x42df79,_0xe4de0a)=>{this['loadResources'](_0xe4de0a),this['_source']['useDefaultFiltering']&&this['_resourcesListView']['highlightText'](_0xe4de0a);}),_0x1cecf9;}['_createResourcesListView'](){const _0x105a44=new AIChatContextResourcesListView(this['locale'],this['_source']);return _0x105a44['delegate']('addResourceToContext')['to'](this),_0x105a44['extendTemplate']({'attributes':{'class':this['bindTemplate']['if']('isLoading','ck-hidden')}}),_0x105a44;}['_createSkeletonView'](){const _0x31c110=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiChatResources']);return _0x31c110['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0x464308=>!_0x464308)]}}),_0x31c110;}['render'](){super['render'](),this['loadResources']('');}['loadResources'](_0x1af8cf){const _0x1917c2=uid();this['_latestLoadResourcesUid']=_0x1917c2,this['fire']('loadSourceResources',{'sourceId':this['_source']['id'],'query':_0x1af8cf,'uid':_0x1917c2}),this['isLoading']=!0x0;}['setResources'](_0x2b9af3,_0x464f63){if(_0x464f63&&_0x464f63!==this['_latestLoadResourcesUid'])return;const _0x5e5d7a=this['_source']['useDefaultFiltering']?this['_searchView']['getQuery']():'';this['_resourcesListView']['setResources'](_0x2b9af3,_0x5e5d7a),_0x2b9af3['length']>=this['_searchInputVisibleFrom']&&!this['children']['has'](this['_searchSection'])&&this['children']['add'](this['_searchSection'],0x0),requestAnimationFrame(()=>{this['isLoading']=!0x1;});}['updateResourceState'](_0x1c62ee,_0x535c29){this['_resourcesListView']['updateResourceState'](_0x1c62ee,_0x535c29);}}const CSS_CLASSES$1={'SOURCE_BALLOON_PANEL':'ck-ai-chat-context-controls__source-balloon-panel','SOURCE_BACK_BUTTON':'ck-button-icon\x20ck-button-back','SOURCE_HEADER':'ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source'},TOOLTIP_POSITION$1='n';class AIChatResourcesBalloonView{['_sourceResourceBalloons']=new Map();['_bodyCollection'];['_locale'];['_config'];constructor(_0x44decd,_0x33ce39,_0x246bba){this['_locale']=_0x44decd,this['_bodyCollection']=_0x33ce39,this['_config']=_0x246bba;}['showSourceResourcesBalloon']({source:_0x2fd5a9,withBackButton:_0x2dc0d7}){let _0x3d955f=this['_sourceResourceBalloons']['get'](_0x2fd5a9['id']);_0x3d955f||(_0x3d955f=this['_createSourceResourceBalloonPanel'](),this['_sourceResourceBalloons']['set'](_0x2fd5a9['id'],_0x3d955f),this['_setupSingleResourceBalloonClickOutsideHandler'](_0x3d955f)),this['_addSourceResourceContent']({'balloonPanel':_0x3d955f,'source':_0x2fd5a9,'withBackButton':_0x2dc0d7}),_0x3d955f['show']();const _0x7e996b=this['_config']['getTargetElement']();_0x7e996b&&_0x3d955f['pin']({'target':_0x7e996b,'limiter':this['_config']['getLimiterElement']()});}['populateSourceResourceBalloon'](_0x4def8f,_0x11bf9c,_0x21288f){const _0x5b5eed=this['_sourceResourceBalloons']['get'](_0x4def8f);if(!_0x5b5eed)return;const _0x10ab11=this['_getResourcesViewFromBalloon'](_0x5b5eed);_0x10ab11&&(_0x10ab11['setResources'](_0x11bf9c,_0x21288f),_0x10ab11['once']('change:isLoading',()=>{_0x5b5eed['pin']({'target':this['_config']['getTargetElement'](),'limiter':this['_config']['getLimiterElement']()});}));}['closeSourceResourceBalloon'](_0xeb66b2){const _0x57a7bc=this['_sourceResourceBalloons']['get'](_0xeb66b2);_0x57a7bc&&requestAnimationFrame(()=>{_0x57a7bc['hide'](),this['_sourceResourceBalloons']['delete'](_0xeb66b2),this['_config']['onBalloonClosed']();});}['isAnyResourceBalloonVisible'](){for(const _0x40e8b5 of this['_sourceResourceBalloons']['values']())if(_0x40e8b5['isVisible'])return!0x0;return!0x1;}['updateResourceState'](_0x2fdf56,_0xb465fb,_0x373ac1){const _0x58f734=this['_sourceResourceBalloons']['get'](_0x2fdf56);if(!_0x58f734||!_0x58f734['isVisible'])return;const _0x15a120=this['_config']['getTargetElement']();if(!_0x15a120)return;_0x58f734['pin']({'target':_0x15a120,'limiter':this['_config']['getLimiterElement']()});const _0x5bc63e=this['_getResourcesViewFromBalloon'](_0x58f734);_0x5bc63e&&_0x5bc63e['updateResourceState'](_0xb465fb,_0x373ac1);}['destroy'](){for(const _0x831c9e of this['_sourceResourceBalloons']['values']())_0x831c9e['destroy']();this['_sourceResourceBalloons']['clear']();}['_createSourceResourceBalloonPanel'](){const _0x417417=new BalloonPanelView(this['_locale']);return _0x417417['extendTemplate']({'attributes':{'class':CSS_CLASSES$1['SOURCE_BALLOON_PANEL']}}),this['_bodyCollection']['add'](_0x417417),_0x417417;}['_addSourceResourceContent']({balloonPanel:_0x5e41aa,source:_0x2667b9,withBackButton:_0x1b3c2c}){_0x5e41aa['content']['clear']();const _0x584dee=this['_createBalloonHeader']({'balloonPanel':_0x5e41aa,'source':_0x2667b9,'withBackButton':_0x1b3c2c});_0x5e41aa['content']['add'](_0x584dee);const _0x43b5eb=this['_createBalloonResourcesView'](_0x2667b9);_0x5e41aa['content']['add'](_0x43b5eb);}['_createBalloonHeader']({balloonPanel:_0x2b015e,source:_0x1921ba,withBackButton:_0x5f4b7e}){const _0x3c06cd=new FormHeaderView(this['_locale'],{'label':_0x1921ba['label'],'class':CSS_CLASSES$1['SOURCE_HEADER']});return _0x5f4b7e&&_0x3c06cd['children']['add'](this['_createBackButton'](_0x2b015e),0x0),_0x3c06cd;}['_createBackButton'](_0x4fdf88){const _0x58593e=new ButtonView(this['_locale']);return _0x58593e['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['_locale'],'AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT'),'tooltipPosition':TOOLTIP_POSITION$1,'class':CSS_CLASSES$1['SOURCE_BACK_BUTTON']}),_0x58593e['on']('execute',()=>{_0x4fdf88['hide'](),this['_config']['onBackToContext']();}),_0x58593e;}['_createBalloonResourcesView'](_0x1996ce){const _0x406451=new AIChatContextResourcesView(this['_locale'],{'source':_0x1996ce,'searchInputVisibleFrom':this['_config']['searchInputVisibleFrom']});return _0x406451['on']('loadSourceResources',(_0xbbf8af,_0x4e098f)=>{this['_config']['onLoadSourceResources'](_0x4e098f);}),_0x406451['on']('addResourceToContext',(_0x425cee,_0x55beaa)=>{this['_config']['onResourceSelected'](_0x55beaa['source'],_0x55beaa['resource']),this['closeSourceResourceBalloon'](_0x1996ce['id']);}),_0x406451;}['_getResourcesViewFromBalloon'](_0x1edaf0){const _0x5d8542=_0x1edaf0['content']['get'](0x1);return _0x5d8542 instanceof AIChatContextResourcesView?_0x5d8542:null;}['_setupSingleResourceBalloonClickOutsideHandler'](_0x5cd54e){clickOutsideHandler({'emitter':_0x5cd54e,'contextElements':[_0x5cd54e['element']],'callback':()=>{_0x5cd54e['hide'](),this['_config']['onBalloonClosed']();},'activator':()=>_0x5cd54e['isVisible']});}}const CONTEXT_PANEL_VIEW_EVENT_NAMES=['addDocumentToContext','addFileToContext','addUrlToContext','addResourceToContext','removeContextItem','loadSourceResources','executeCustomItemCallback'],CSS_CLASSES={'CONTEXT_CONTROLS':'ck-ai-chat-context-controls','PENDING_CONTEXTS':'ck-ai-chat-context-controls__pending-contexts','ADD_CONTEXT_BALLOON':'ck-ai-chat-context-controls__add-context-balloon-panel','ADD_CONTEXT_BUTTON':'ck-ai-chat-context-controls__add-context-button','URL_BALLOON':'ck-ai-chat-context-controls__url-balloon-panel','BALLOON_BUTTON':'ck-ai-chat-context-controls__balloon-button','BALLOON_BUTTON_SOURCE':'ck-ai-chat-context-controls__balloon-button-source','CONTROLS_BUTTON':'ck-ai-chat-controls-button','CONVERSATION_CONTEXT_CHIPS':'ck-ai-chat-context-chips-wrapper-balloon','SHOW_MORE_BUTTON':'ck-ai-chat-controls_context_show-more-button','SHOW_MORE_BALLOON':'ck-ai-chat-context-controls__show-more-balloon-panel','CHAT_CONTAINER':'ck-ai-chat'},TOOLTIP_POSITION='sw',BALLOON_POSITIONS=[BalloonPanelView['defaultPositions']['northArrowSouthWest'],BalloonPanelView['defaultPositions']['northArrowSouth'],BalloonPanelView['defaultPositions']['northArrowSouthEast'],BalloonPanelView['defaultPositions']['southArrowNorthWest'],BalloonPanelView['defaultPositions']['southArrowNorth'],BalloonPanelView['defaultPositions']['southArrowNorthEast']];class AIChatContextPanelView extends View{['addContextButtonView'];['_currentContextsChips']=this['createCollection']();['_conversationContextsChips']=this['createCollection']();['_overflowManager'];['_addContextBalloonPanelView'];['_urlBalloonPanelView'];['_urlInputView'];['_resourcesBalloonView'];['_addContextBalloonConfig'];['_hasExactlyOneSource']=!0x1;['bodyCollection'];constructor(_0x1284eb,_0x28ad49){super(_0x1284eb),this['bodyCollection']=_0x28ad49['bodyCollection'],this['_currentContextsChips']=this['createCollection'](),this['_conversationContextsChips']=this['createCollection'](),this['addContextButtonView']=this['_createAddContextButtonView'](_0x1284eb),this['_addContextBalloonPanelView']=this['_createAddContextBalloonPanelView'](_0x1284eb),this['_urlBalloonPanelView']=this['_createUrlBalloonPanelView'](_0x1284eb),this['_resourcesBalloonView']=this['_createResourcesBalloonView'](_0x1284eb,_0x28ad49);const _0x33e022={'cssClasses':{'showMoreButton':CSS_CLASSES['SHOW_MORE_BUTTON'],'showMoreBalloon':CSS_CLASSES['SHOW_MORE_BALLOON'],'overflowContainer':CSS_CLASSES['CONVERSATION_CONTEXT_CHIPS'],'controlsButton':CSS_CLASSES['CONTROLS_BUTTON']}};this['_overflowManager']=new AIChatChipsOverflowManager(_0x1284eb,this['_currentContextsChips'],_0x33e022,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'](_0x47fa96,_0x550f2a){const _0x3ce0cd=this['_createContextButton'](_0x47fa96,'current',!0x0,_0x550f2a);this['_addContextToCollection'](_0x3ce0cd,this['_currentContextsChips']),this['_overflowManager']['reorganizeChips']();}['removeContextItem'](_0x557859){this['_removeContextFromCollection'](_0x557859,this['_currentContextsChips']),this['_removeContextFromCollection'](_0x557859,this['_overflowManager']['overflowChips']),this['_overflowManager']['reorganizeChips']();}['setContextItemLoading'](_0x208f2d,_0x504a7f){let _0x2ecb55=this['_currentContextsChips']['find'](_0x350d50=>_0x350d50['id']===_0x208f2d);_0x2ecb55||(_0x2ecb55=this['_overflowManager']['overflowChips']['find'](_0x5b181b=>_0x5b181b['id']===_0x208f2d)),_0x2ecb55&&(_0x2ecb55['isLoading']=_0x504a7f);}['setConversationContext'](_0x57370d){this['_conversationContextsChips']['clear']();for(const _0x4d8bca of _0x57370d){const _0x4ce213=this['_createContextButton'](_0x4d8bca,'conversation',!0x1,!0x1);this['_addContextToCollection'](_0x4ce213,this['_conversationContextsChips']);}}['clearCurrentContextItems'](){this['_currentContextsChips']['clear'](),this['_overflowManager']['clear']();}['clearConversationContextItems'](){this['_conversationContextsChips']['clear']();}['updateResourceState'](_0x26fa90,_0x5bc803,_0x586f32){this['_resourcesBalloonView']['updateResourceState'](_0x26fa90,_0x5bc803,_0x586f32);}['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;}['_showSourceResourcesBalloon']({source:_0x4fd8b5,withBackButton:_0xb035bd}){this['_resourcesBalloonView']['showSourceResourcesBalloon']({'source':_0x4fd8b5,'withBackButton':_0xb035bd}),this['addContextButtonView']['isOn']=!0x0;}['populateSourceResourceBalloon'](_0x2ce7f1,_0x1780ee,_0x4d43c0,_0x5b44ed){this['_resourcesBalloonView']['populateSourceResourceBalloon'](_0x2ce7f1,_0x4d43c0,_0x5b44ed);}['closeSourceResourceBalloon'](_0x3aa561){this['_resourcesBalloonView']['closeSourceResourceBalloon'](_0x3aa561),this['addContextButtonView']['isOn']=!0x1;}['setAddContextOptions'](_0x1b7cdf){this['_setBalloonPanelContent'](this['_addContextBalloonPanelView'],this['locale'],_0x1b7cdf),this['_setAddContextButtonEnabled'](_0x1b7cdf);}['_setAddContextButtonEnabled'](_0xbb0300){const _0x5a3bf0=!_0xbb0300['document']['isHidden']&&_0xbb0300['document']['enabled'],_0x1b7c8c=_0xbb0300['urls']['enabled'],_0x16153f=_0xbb0300['files']['enabled'],_0x19ca0e=_0xbb0300['sources']['length']>0x0,_0x44e258=_0xbb0300['customItems']&&_0xbb0300['customItems']['length']>0x0;this['addContextButtonView']['isEnabled']=_0x5a3bf0||_0x1b7c8c||_0x16153f||_0x19ca0e||_0x44e258;}['_setupTemplate'](){this['setTemplate']({'tag':'div','attributes':{'class':[CSS_CLASSES['CONTEXT_CONTROLS'],'ck-reset_all-excluded']},'children':[{'tag':'div','attributes':{'class':CSS_CLASSES['PENDING_CONTEXTS']},'children':this['_currentContextsChips']}]});}['_bindEventHandlers'](){this['addContextButtonView']['on']('execute',()=>{this['_handleAddContextButtonClick']();});}['_createAddContextButtonView'](_0x4effeb){const _0x16b511=new ButtonView(_0x4effeb);return _0x16b511['set']({'label':getTranslation$i(_0x4effeb,'AI_CHAT_CONTEXT_ADD_CONTEXT'),'class':CSS_CLASSES['CONTROLS_BUTTON']+'\x20'+CSS_CLASSES['ADD_CONTEXT_BUTTON'],'icon':IconPaperClip,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION}),_0x16b511;}['_createAddContextBalloonPanelView'](_0x5bedd5){return this['_createBaseBalloonPanel'](_0x5bedd5,CSS_CLASSES['ADD_CONTEXT_BALLOON']);}['_createUrlBalloonPanelView'](_0x43fc48){const _0x18f8de=this['_createBaseBalloonPanel'](_0x43fc48,CSS_CLASSES['URL_BALLOON']);return this['_addUrlContent'](_0x18f8de,_0x43fc48),_0x18f8de;}['_createResourcesBalloonView'](_0x3cc82a,_0x4dce58){const _0x1cb9db={'searchInputVisibleFrom':_0x4dce58['searchInputVisibleFrom'],'onBackToContext':()=>{this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});},'onResourceSelected':(_0x1654f1,_0x4282d5)=>{this['fire']('addResourceToContext',{'source':_0x1654f1,'resource':_0x4282d5});},'onLoadSourceResources':_0x3bfb80=>{this['fire']('loadSourceResources',_0x3bfb80);},'onBalloonClosed':()=>{this['addContextButtonView']['isOn']=!0x1;},'getLimiterElement':()=>this['_getLimiterElement'](),'getTargetElement':()=>this['addContextButtonView']['element']};return new AIChatResourcesBalloonView(_0x3cc82a,_0x4dce58['bodyCollection'],_0x1cb9db);}['_getLimiterElement'](){return this['element']?.['closest']('.'+CSS_CLASSES['CHAT_CONTAINER'])||document['body'];}['_createBaseBalloonPanel'](_0x1d781b,_0x3ba9a7){const _0x156dd5=new BalloonPanelView(_0x1d781b);return _0x156dd5['extendTemplate']({'attributes':{'class':_0x3ba9a7}}),this['bodyCollection']['add'](_0x156dd5),_0x156dd5;}['_setBalloonPanelContent'](_0x438e1b,_0x50b388,_0xc42a8c){if(_0x438e1b['content']['clear'](),!_0xc42a8c['document']['isHidden']&&_0xc42a8c['document']['enabled']){const _0x51fd30=this['_createBalloonButton'](_0x50b388,{'label':getTranslation$i(_0x50b388,'AI_CHAT_CONTEXT_CURRENT_DOCUMENT'),'icon':IconDocument$1});_0x51fd30['on']('execute',()=>{this['fire']('addDocumentToContext'),this['hideAddContextBalloonPanel']();}),_0x438e1b['content']['add'](_0x51fd30);}if(_0xc42a8c['urls']['enabled']){const _0x577d3b=this['_createBalloonButton'](_0x50b388,{'label':getTranslation$i(_0x50b388,'AI_CHAT_CONTEXT_URL_LABEL'),'icon':IconLink});_0x577d3b['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['showUrlBalloonPanel'](),this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_urlInputView']['focus']();}),_0x438e1b['content']['add'](_0x577d3b);}if(_0xc42a8c['files']['enabled']){const _0x380af0=new FileDialogButtonView(_0x50b388);_0x380af0['set']({'label':getTranslation$i(_0x50b388,'AI_CHAT_CONTEXT_FILE_LABEL'),'icon':IconBrowseFiles,'withText':!0x0,'tooltip':!0x0,'class':CSS_CLASSES['BALLOON_BUTTON'],'allowMultipleFiles':!0x0}),_0x380af0['on']('execute',()=>{this['hideAddContextBalloonPanel']();}),_0x380af0['on']('done',(_0x41ded5,_0x41ad53)=>{this['fire']('addFileToContext',_0x41ad53);}),_0x380af0['tooltip']=!0x0,_0x438e1b['content']['add'](_0x380af0);}for(const _0x481c0e of _0xc42a8c['sources']){const _0x54ac86=this['_createBalloonButton'](_0x50b388,{'label':_0x481c0e['label'],'icon':_0x481c0e['icon']||IconDocumentOutline,'type':'source'});_0x438e1b['content']['add'](_0x54ac86),_0x54ac86['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['_showSourceResourcesBalloon']({'source':_0x481c0e,'withBackButton':!this['_hasExactlyOneSource']});});}for(const _0x470d3c of _0xc42a8c['customItems']||[]){const _0x73a49b=this['_createBalloonButton'](_0x50b388,{'label':_0x470d3c['label'],'icon':_0x470d3c['icon']||IconDocumentOutline,'type':'customItem'});_0x438e1b['content']['add'](_0x73a49b),_0x73a49b['on']('execute',()=>{this['hideAddContextBalloonPanel'](),this['fire']('executeCustomItemCallback',_0x470d3c);});}this['_hasExactlyOneSource']=0x1===_0x438e1b['content']['length'],this['_urlInputView']['withBackButton']=!this['_hasExactlyOneSource'];}['_addUrlContent'](_0x5c5b89,_0x98384c){this['_urlInputView']=new AIChatContextPanelUrlInputView(_0x98384c),this['_urlInputView']['on']('submitUrl',(_0x5704a2,_0x1b4a68)=>{this['_handleUrlSubmit'](_0x1b4a68);}),this['_urlInputView']['on']('cancel',()=>{this['hideUrlBalloonPanel'](),this['_hasExactlyOneSource']||(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}));}),this['_urlInputView']['on']('refreshBalloon',()=>{this['_urlBalloonPanelView']['isVisible']&&this['_urlBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS});}),_0x5c5b89['content']['add'](this['_urlInputView']);}['_createBalloonButton'](_0x509bb1,_0xe961bb){const _0x29d743='source'===_0xe961bb['type']?new SourcesBalloonButtonView(_0x509bb1):new ButtonView(_0x509bb1);return _0x29d743['set']({'label':_0xe961bb['label'],'icon':_0xe961bb['icon'],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':TOOLTIP_POSITION,'class':CSS_CLASSES['BALLOON_BUTTON']}),_0x29d743;}['_setupAllBalloonClickOutsideHandlers'](){this['_setupAddContextBalloonClickOutsideHandler'](),this['_setupUrlBalloonClickOutsideHandler']();}['_setupUrlBalloonClickOutsideHandler'](){clickOutsideHandler({'emitter':this['_urlBalloonPanelView'],'contextElements':[this['_urlBalloonPanelView']['element']],'callback':()=>{this['hideUrlBalloonPanel']();},'activator':()=>this['_urlBalloonPanelView']['isVisible']});}['_toggleAddContextBalloon'](_0x1d94db){const _0x462bd8=this['_addContextBalloonConfig'];_0x462bd8['buttonView']['isOn']=_0x1d94db,_0x1d94db?_0x462bd8['balloonView']['show']():_0x462bd8['balloonView']['hide']();}['_setupAddContextBalloonClickOutsideHandler'](){const {balloonView:_0x34d1c0,buttonView:_0x2d0839,hideMethod:_0x857a06}=this['_addContextBalloonConfig'];clickOutsideHandler({'emitter':_0x34d1c0,'contextElements':[_0x34d1c0['element'],_0x2d0839['element']],'callback':()=>{_0x857a06();},'activator':()=>_0x2d0839['isOn']&&!this['_urlBalloonPanelView']['isVisible']&&!this['_resourcesBalloonView']['isAnyResourceBalloonVisible']()});}['_createContextButton'](_0x5e0290,_0x1d650f,_0x225e6a=!0x1,_0x1d08fa=!0x1){const _0x21928f='conversation'===_0x1d650f||!0x0===_0x5e0290['isReadOnly'],_0x3ce838=new AIChatContextItemButtonView(this['locale'],_0x5e0290,_0x21928f,_0x225e6a,_0x1d08fa);return _0x21928f||_0x3ce838['on']('removeContextItemChip',()=>{this['fire']('removeContextItem',_0x3ce838['id']);}),_0x3ce838;}['_addContextToCollection'](_0x3527b7,_0x4d550d){_0x4d550d['add'](_0x3527b7,0x0);}['_removeContextFromCollection'](_0x737e65,_0x1efc61){const _0xea9e8=_0x1efc61['find'](_0xa794bb=>_0xa794bb['id']===_0x737e65);_0xea9e8&&_0x1efc61['remove'](_0xea9e8);}['_handleAddContextButtonClick'](){this['addContextButtonView']['isOn']?this['hideAddContextBalloonPanel']():(this['showAddContextBalloonPanel'](),this['_addContextBalloonPanelView']['pin']({'target':this['addContextButtonView']['element'],'limiter':this['_getLimiterElement'](),'positions':BALLOON_POSITIONS}),this['_hasExactlyOneSource']&&this['_addContextBalloonPanelView']['content']['get'](0x0)?.['fire']('execute'));}['_handleUrlSubmit'](_0x2d5480){this['_urlInputView']['clear'](),this['hideUrlBalloonPanel'](),this['fire']('addUrlToContext',_0x2d5480);}}class SourcesBalloonButtonView extends ButtonView{['arrowView'];constructor(_0x1636ed){super(_0x1636ed),this['set']({'withText':!0x0,'role':'menuitem'}),this['arrowView']=this['_createArrowView'](),this['extendTemplate']({'attributes':{'class':[CSS_CLASSES['BALLOON_BUTTON_SOURCE']]}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0x1c377e=new IconView();return _0x1c377e['content']=IconDropdownArrow,_0x1c377e['extendTemplate']({'attributes':{'class':CSS_CLASSES['BALLOON_BUTTON_SOURCE']+'__arrow'}}),_0x1c377e;}}class AIChatControlsLoaderView extends View{['_cancelButtonView'];['_loaderView'];constructor(_0x139177){super(_0x139177),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 _0x4486c8=new ButtonView(this['locale']);return _0x4486c8['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_STOP_GENERATING'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai-button-stop-generating','icon':IconStop}),_0x4486c8['on']('execute',()=>{this['fire']('abortPromptStream');}),_0x4486c8;}['_createLoaderView'](){const _0x201694=new View(this['locale']);return _0x201694['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':getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')}]}),_0x201694;}}class AIChatControlsView extends View{['_contextPanelView'];['_promptInputView'];['_promptCapabilitiesView'];['_loaderView'];['_modelUnavailableMessageView'];['_shouldRestorePromptInputFocus'];constructor(_0x593642,_0x5a870f){super(_0x593642),this['_contextPanelView']=this['_createContextPanelView'](_0x593642,{'bodyCollection':_0x5a870f['bodyCollection'],'searchInputVisibleFrom':_0x5a870f['contextResourcesSearchInputVisibleFrom']}),this['_promptInputView']=this['_createPromptInputView'](_0x593642),this['_promptCapabilitiesView']=this['_createPromptCapabilitiesView'](_0x593642),this['_loaderView']=this['_createLoaderView'](_0x593642),this['_modelUnavailableMessageView']=this['_createModelUnavailableMessageView'](_0x593642),this['_shouldRestorePromptInputFocus']=!0x1,this['_promptInputView']['delegate']('sendUserMessage')['to'](this),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'](...CONTEXT_PANEL_VIEW_EVENT_NAMES)['to'](this),this['set']('isModelAvailable',!0x0),this['set']('isDisabled',!0x1);const _0x2475aa=this['bindTemplate'];this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-ai-chat-controls',_0x2475aa['if']('isDisabled','ck-ai-chat-controls-disabled')]},'children':[{'tag':'div','attributes':{'class':[_0x2475aa['if']('isLoading','ck-hidden',_0x26c481=>_0x26c481||!this['isModelAvailable']),_0x2475aa['if']('isModelAvailable','ck-hidden',_0x3aba24=>!_0x3aba24||this['isLoading'])]},'children':[this['_contextPanelView'],this['_promptInputView'],this['_promptCapabilitiesView']]},{'tag':'div','attributes':{'class':[_0x2475aa['if']('isLoading','ck-hidden',_0x260456=>!_0x260456)]},'children':[this['_loaderView']]},{'tag':'div','attributes':{'class':[_0x2475aa['if']('isModelAvailable','ck-hidden',_0x4e7a9d=>_0x4e7a9d)]},'children':[this['_modelUnavailableMessageView']]}]}),clickOutsideHandler({'emitter':this['_promptInputView'],'activator':()=>this['isLoading'],'contextElements':()=>[this['element']],'callback':()=>{this['_shouldRestorePromptInputFocus']=!0x1;}}),this['on']('change:isLoading',this['_handlePromptInputFocus'],{'priority':'low'});}['_createContextPanelView'](_0x202ef7,_0x3a254b){return new AIChatContextPanelView(_0x202ef7,_0x3a254b);}['_createPromptInputView'](_0x5ad634){return new AIChatPromptInputView(_0x5ad634,this['_contextPanelView']['addContextButtonView']);}['_createPromptCapabilitiesView'](_0x571894){return new AIChatPromptCapabilitiesView(_0x571894);}['_createLoaderView'](_0x932aa3){return new AIChatControlsLoaderView(_0x932aa3);}['_createModelUnavailableMessageView'](_0x43a19e){const _0x4f4185=new AIChatModelUnavailableMessageView(_0x43a19e);return _0x4f4185['delegate']('startConversation')['to'](this),_0x4f4185;}['_handlePromptInputFocus'](_0x3bd2a3,_0x50ee2c,_0x3e5941){_0x3e5941?this['_shouldRestorePromptInputFocus']=!0x0:this['_shouldRestorePromptInputFocus']&&this['_promptInputView']['focus']();}['addContextItem'](_0xe374ff,_0x2c9f1e){this['_contextPanelView']['addContextItem'](_0xe374ff,_0x2c9f1e);}['removeContextItem'](_0x163632){this['_contextPanelView']['removeContextItem'](_0x163632);}['setContextItemLoading'](_0x32d2cf,_0x3a4f19){this['_contextPanelView']['setContextItemLoading'](_0x32d2cf,_0x3a4f19);}['setIsUploadInProgress'](_0x567832){this['_promptInputView']['setIsUploadInProgress'](_0x567832);}['setConversationContext'](_0x49fc09){this['_contextPanelView']['setConversationContext'](_0x49fc09);}['clearPendingContextUI'](){this['_contextPanelView']['clearCurrentContextItems']();}['clearConversationContextUI'](){this['_contextPanelView']['clearConversationContextItems']();}['updateResourceState'](_0x1f83fc,_0x5ddad3,_0x5515b8){this['_contextPanelView']['updateResourceState'](_0x1f83fc,_0x5ddad3,_0x5515b8);}['setWebSearch'](_0x2fee2d){this['_promptCapabilitiesView']['setWebSearch'](_0x2fee2d);}['setReasoning'](_0x381bf3){this['_promptCapabilitiesView']['setReasoning'](_0x381bf3);}['resetMessageInput'](){this['_promptInputView']['reset']();}['setAddContextOptions'](_0x1450e7){this['_contextPanelView']['setAddContextOptions'](_0x1450e7);}['setInputPlaceholder'](_0x4c6169){this['_promptInputView']['setPlaceholderText'](_0x4c6169);}['setModelList'](_0x5b6240,_0x3c4adb){this['_promptCapabilitiesView']['setModelList'](_0x5b6240,_0x3c4adb);}['setModel'](_0x1c44f7){_0x1c44f7?(this['isModelAvailable']=!0x0,this['_promptCapabilitiesView']['setModel'](_0x1c44f7)):this['isModelAvailable']=!0x1;}['enableModelSelector'](){this['_promptCapabilitiesView']['enableModelSelector']();}['disableModelSelector'](_0x20d7c7){this['_promptCapabilitiesView']['disableModelSelector'](_0x20d7c7);}['populateSourceResourceBalloon'](_0x1a04fa,_0x357781,_0x4531f6,_0x1edca6){this['_contextPanelView']['populateSourceResourceBalloon'](_0x1a04fa,_0x357781,_0x4531f6,_0x1edca6);}['closeSourceResourceBalloon'](_0x405aa1){this['_contextPanelView']['closeSourceResourceBalloon'](_0x405aa1);}['focusPromptInput'](_0x4adc83=!0x1){this['_promptInputView']['focus'](_0x4adc83);}['setPromptInputValue'](_0x1d8099){this['_promptInputView']['queryView']['fieldView']['reset'](),this['_promptInputView']['queryView']['fieldView']['value']=_0x1d8099;}}class AIChatModelUnavailableMessageView extends View{constructor(_0x138448){super(_0x138448);const _0x1ef3c9=new ButtonView(_0x138448);_0x1ef3c9['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'),'withText':!0x0,'class':['ck-ai-chat-controls__start-new-chat-button'],'tooltip':''}),_0x1ef3c9['delegate']('execute')['to'](this,'startConversation'),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-controls-model-unavailable-message']},'children':[{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT')+'\x20'},_0x1ef3c9]}]});}}class AIChatHeaderView extends FormHeaderView{['conversationStartButton'];['resizeButton'];constructor(_0x4d0724,_0x38712a){super(_0x4d0724,{'label':getTranslation$i(_0x4d0724,'AI_CHAT_HEADING'),'class':'ck-ai-header\x20ck-ai-header_chat','icon':IconAIChat}),this['set']('isMaximized',!0x1),this['conversationStartButton']=this['_createStartConversationButton'](_0x4d0724),this['children']['add'](this['conversationStartButton']),_0x38712a&&(this['resizeButton']=createResizeButton(_0x4d0724,this),this['children']['add'](this['resizeButton']));}['_createStartConversationButton'](_0x38b509){const _0x3a3b02=new ButtonView(_0x38b509);return _0x3a3b02['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x3a3b02['on']('execute',()=>{this['fire']('startConversation');}),_0x3a3b02;}}class AIDisclaimerView extends View{constructor(_0x1eed97){super(_0x1eed97),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-disclaimer__content']},'children':[{'text':getTranslation$i(_0x1eed97,'AI_DISCLAIMER_TEXT')}]}]});}}class AIChatView extends View{['chatHeader'];['chatFeed'];['chatControls'];['chatDisclaimer'];['_bodyCollection'];constructor(_0x3d62f7,_0xf40981){super(_0x3d62f7),this['_bodyCollection']=new BodyCollection(_0x3d62f7),this['_bodyCollection']['attachToDom'](),this['chatHeader']=new AIChatHeaderView(_0x3d62f7,_0xf40981['showResizeButton']),this['chatHeader']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatFeed']=new AIChatFeedView(_0x3d62f7,this['_bodyCollection']),this['chatFeed']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatControls']=new AIChatControlsView(_0x3d62f7,{'bodyCollection':this['_bodyCollection'],'contextResourcesSearchInputVisibleFrom':_0xf40981['contextResourcesSearchInputVisibleFrom']}),this['chatControls']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['chatDisclaimer']=new AIDisclaimerView(_0x3d62f7),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-chat','ck-rounded-corners'],'dir':_0x3d62f7['uiLanguageDirection']},'children':[this['chatHeader'],this['chatFeed'],this['chatControls'],this['chatDisclaimer']]});}['populateSourceResourceBalloon'](_0x4d4b36,_0x22dd09,_0x45c29b,_0x508118){this['chatControls']['populateSourceResourceBalloon'](_0x4d4b36,_0x22dd09,_0x45c29b,_0x508118);}['closeSourceResourceBalloon'](_0x5b0f76){this['chatControls']['closeSourceResourceBalloon'](_0x5b0f76);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}}const AI_CHAT_TITLE_ANIMATION_INTERVAL=0x1e;class AIChatUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_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;constructor(_0xe39397){super(_0xe39397);const _0x1c30e9=this['context']['plugins']['get']('AITabs');this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue(),this['_view']=new AIChatView(this['context']['locale'],{'showResizeButton':_0x1c30e9['showResizeButton'],'contextResourcesSearchInputVisibleFrom':this['context']['config']['get']('ai.chat.context.searchInputVisibleFrom')}),this['_view']['delegate'](...AI_CHAT_UI_EVENT_NAMES)['to'](this),this['_view']['on']('toggleSuggestionDisplayMode',(_0x3d1bf3,{showDiff:_0x4015b})=>{this['showDiff']=_0x4015b;}),_0x1c30e9['view']['addTab']({'id':'chat','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'),'buttonIcon':IconAIChat,'order':0x0,'content':this['_view']}),this['_view']['chatControls']['bind']('isLoading')['to'](this,'isBusy',_0x445930=>_0x445930),this['_view']['chatFeed']['bind']('isPending')['to'](this,'isBusy',_0x373333=>_0x373333),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']()),this['bind']('isModelAvailable')['to'](this['_view']['chatControls'],'isModelAvailable');}['destroy'](){super['destroy'](),this['_titleAnimationInterval']&&clearInterval(this['_titleAnimationInterval']);}['createConversation'](_0x4c3318){const _0x187459=this['context']['config']['get']('ai.chat.welcomeMessage')??getTranslation$i(this['context']['locale'],'AI_CHAT_WELCOME_MESSAGE');this['_view']['chatFeed']['clear'](),this['_view']['chatControls']['enableModelSelector'](),this['_view']['chatControls']['setModelList'](_0x4c3318['availableModels'],!this['context']['config']['get']('ai.models.showModelSelector')),this['addFeedItemStaticMessage']({'id':'conversation-start','staticMessage':_0x187459}),this['fire']('conversationCreated');}['addFeedItemStaticMessage']({id:_0x54ca27,staticMessage:_0x3476cd}){this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x54ca27,'initialContent':'<p>'+_0x3476cd+'</p>'});}['addFeedItemUserMessage'](_0x1b0299){const _0x132afa=_0x1b0299['attributes']?.['displayedPrompt']||_0x1b0299['userMessage'];this['_view']['chatFeed']['addItem']('user-message',{'contextItems':Array['from'](_0x1b0299['contextItems']['values']()),'initialContent':'<p>'+_0x132afa+'</p>','id':_0x1b0299['id']});}['addFeedItemError']({errorMessage:_0x582ff1,id:_0x4d2e78}){this['_view']['chatFeed']['addItem']('error-message',{'initialContent':'<p>'+_0x582ff1+'</p>','id':_0x4d2e78});}['addFeedItemAIReply'](_0x416f6a){return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-reply',{'id':_0x416f6a['interactionId']+':'+_0x416f6a['id']}),this['clearLoadingMessage']();});}async['addFeedItemAISuggestion'](_0x23e237){const _0x316bc8=getEditorFromContext(this['context']);let _0xefb292=_0x316bc8['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];if(_0x316bc8['plugins']['has']('TrackChanges')){if(!this['_isTrackChangesCommandValueBound']){this['_isTrackChangesCommandValueBound']=!0x0;const _0x2986bd=_0x316bc8['commands']['get']('trackChanges');this['_view']['chatFeed']['bind']('isTrackChangesOn')['to'](_0x2986bd,'value');}}else _0xefb292=_0xefb292['filter'](_0x1cf845=>'insertSuggestion'!=_0x1cf845);return this['_promiseQueue']['enqueue'](async()=>{this['_view']['chatFeed']['addItem']('ai-suggestion-reply',{'id':_0x23e237['interactionId']+':'+_0x23e237['id'],'areActionsDisabled':_0x23e237['areActionsDisabled'],'showDiff':this['showDiff'],'availableActions':_0xefb292}),this['clearLoadingMessage']();});}['addFeedInteractionHeader'](_0x5b046e,_0x1e8238){const _0x127607=this['_view']['chatFeed']['children']['last'];if(_0x127607 instanceof AIChatFeedInteractionHeaderView)return this['_view']['chatFeed']['children']['remove'](_0x127607),void this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x5b046e['id'],'capabilities':{'isWebSearchEnabled':_0x127607['capabilities']['isWebSearchEnabled']||_0x1e8238['isWebSearchEnabled'],'isReasoningEnabled':_0x127607['capabilities']['isReasoningEnabled']||_0x1e8238['isReasoningEnabled']}});this['_view']['chatFeed']['addItem']('interaction-header',{'id':_0x5b046e['id'],'capabilities':_0x1e8238});}async['addFeedItemCustomElement'](_0x97d4cb,_0x210962){let _0x103e3a;return await this['_promiseQueue']['enqueue'](async()=>{_0x103e3a=this['_view']['chatFeed']['addItem']('custom-element',{'content':_0x97d4cb,'id':_0x210962});}),_0x103e3a;}['removeFeedItem'](_0x4a78ab){this['_view']['chatFeed']['removeItem'](_0x4a78ab);}['hasFeedItem'](_0x19d0d7){return this['_view']['chatFeed']['hasItem'](_0x19d0d7);}['updateFeedInteractionHeader'](_0x583486){const _0x3797d7=this['_view']['chatFeed']['children']['find'](_0x3dabee=>_0x3dabee['options']['id']==_0x583486['id']&&_0x3dabee instanceof AIChatFeedInteractionHeaderView);_0x3797d7&&_0x3797d7['set']('isVisible',_0x583486['isVisible']);}async['updateFeedItemAIReplyContent'](_0x504e45){const _0x395c2e=_0x504e45['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x2570b2=>{await this['_view']['chatFeed']['updateReplyItem']({..._0x504e45,'abortSignal':_0x2570b2,'renderingStrategy':_0x395c2e}),_0x504e45['isDone']&&this['markFeedItemAsDone'](_0x504e45['id']);});}['updateFeedItemAIReplySources'](_0x5c7239,_0x280d0b){this['_view']['chatFeed']['updateWebSources'](_0x5c7239,_0x280d0b);}async['updateFeedItemAIReplySuggestionContent'](_0x41b29e){const _0x19cb38=_0x41b29e['renderingStrategy']||this['feedItemRenderingStrategy'];return this['_promiseQueue']['enqueue'](async _0x86c79f=>{await this['_view']['chatFeed']['updateSuggestionItem']({..._0x41b29e,'abortSignal':_0x86c79f,'renderingStrategy':_0x19cb38}),_0x41b29e['isDone']&&this['markFeedItemAsDone'](_0x41b29e['id']);});}['updateFeedItemAIReplySuggestionPartState'](_0x26df3c){this['_view']['chatFeed']['updateSuggestionPartState'](_0x26df3c);}['setFeedItemAIReplySuggestionPartActive'](_0xe73a3d){this['_view']['chatFeed']['setSuggestionPartActive'](_0xe73a3d);}['markFeedItemAsDone'](_0x1dd025){this['_view']['chatFeed']['markItemAsDone'](_0x1dd025);}['removeFeedInteraction'](_0x5563b6){this['_view']['chatFeed']['getItemIds']()['filter'](_0x72ac61=>_0x72ac61['startsWith'](_0x5563b6))['forEach'](_0x37ed9d=>this['_view']['chatFeed']['removeItem'](_0x37ed9d));}['startInteraction'](){const _0x251a96=this['prepareLoadingMessage']({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this['setLoadingMessage'](_0x251a96),this['_view']['chatControls']['disableModelSelector'](!this['context']['config']['get']('ai.models.showModelSelector')),this['isBusy']=!0x0,this['_view']['chatFeed']['startAutoScroll']();}['stopInteraction'](_0x26d58f){this['_promiseQueue']['abort'](),this['_view']['chatFeed']['getItemIds']()['filter'](_0x48ee0e=>_0x48ee0e['startsWith'](_0x26d58f['id']))['forEach'](_0x17f937=>this['markFeedItemAsDone'](_0x17f937)),this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();}async['finishInteraction'](){return this['_promiseQueue']['queueEmptyPromise']['then'](()=>{this['isBusy']=!0x1,this['_view']['chatFeed']['stopAutoScroll']();});}['addContextItem'](_0x4dde41,_0x456128){this['_view']['chatControls']['addContextItem'](_0x4dde41,_0x456128);}['removeContextItem'](_0x1122f3){this['_view']['chatControls']['removeContextItem'](_0x1122f3);}['setContextItemLoading'](_0x2be20d,_0x431793){this['_view']['chatControls']['setContextItemLoading'](_0x2be20d,_0x431793);}['setIsUploadInProgress'](_0x527a69){this['_view']['chatControls']['setIsUploadInProgress'](_0x527a69);}['setConversationContext'](_0x539174){this['_view']['chatControls']['setConversationContext'](_0x539174);}['clearPendingContextUI'](){this['_view']['chatControls']['clearPendingContextUI']();}['clearConversationContextUI'](){this['_view']['chatControls']['clearConversationContextUI']();}['updateResourceState'](_0x55edf4,_0x25974a,_0x444707){this['_view']['chatControls']['updateResourceState'](_0x55edf4,_0x25974a,_0x444707);}['resetMessageInput'](){this['_view']['chatControls']['resetMessageInput'](),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder']());}['setAddContextOptions'](_0x14e1a1){this['_view']['chatControls']['setAddContextOptions'](_0x14e1a1);}['updateCapabilities'](_0x13c5aa){this['_view']['chatControls']['setWebSearch'](_0x13c5aa['isWebSearchEnabled']),this['_view']['chatControls']['setReasoning'](_0x13c5aa['isReasoningEnabled']),this['_view']['chatControls']['setInputPlaceholder'](this['_getInputPlaceholder'](_0x13c5aa));}['setSelectedModel'](_0xd0807f,_0x5cb376){this['_view']['chatControls']['setModel'](_0xd0807f),_0x5cb376&&this['_view']['chatControls']['disableModelSelector'](!0x1);}['setFeedItemRenderingStrategy'](_0x4008b1){this['feedItemRenderingStrategy']=_0x4008b1;}['toggleLoadingSkeleton'](_0x233aa1){this['_view']['chatFeed']['toggleLoadingSkeleton'](_0x233aa1);}['resetConversationTitle'](){this['setConversationTitle'](getTranslation$i(this['context']['locale'],'AI_CHAT_HEADING'));}['setConversationTitle'](_0xf8b046,_0x3f4fe7=!0x1){if(_0x3f4fe7&&!_isMotionReduced()&&_0xf8b046['length'])return this['_view']['chatHeader']['label']='',void this['_animateConversationTitle'](_0xf8b046);this['_view']['chatHeader']['label']=_0xf8b046;}['setLoadingMessage'](_0x2fc771){this['_view']['chatFeed']['setLoadingMessage'](_0x2fc771);}['clearLoadingMessage'](){this['_view']['chatFeed']['setLoadingMessage']('');}['_animateConversationTitle'](_0x4b08eb){let _0xaddde1=0x0;clearInterval(this['_titleAnimationInterval']),this['_titleAnimationInterval']=setInterval(()=>{this['_view']['chatHeader']['label']=this['_view']['chatHeader']['label']+_0x4b08eb[_0xaddde1],_0xaddde1++,_0xaddde1===_0x4b08eb['length']&&clearInterval(this['_titleAnimationInterval']);},AI_CHAT_TITLE_ANIMATION_INTERVAL);}['setIsMaximized'](_0x1da1f9){this['_view']['chatHeader']['isMaximized']=_0x1da1f9;}['prepareLoadingMessage'](_0x18fae2){return _0x18fae2['isWebSearchEnabled']&&_0x18fae2['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING'):_0x18fae2['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH'):_0x18fae2['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_FEED_LOADING_MESSAGE_REGULAR');}['_getInputPlaceholder'](_0x2af2cb){return _0x2af2cb?_0x2af2cb['isWebSearchEnabled']&&_0x2af2cb['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'):_0x2af2cb['isWebSearchEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH'):_0x2af2cb['isReasoningEnabled']?getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR'):getTranslation$i(this['context']['locale'],'AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR');}['populateSourceResourceBalloon'](_0x5676ae,_0x4d747b,_0x106983,_0x169f27){this['_view']['populateSourceResourceBalloon'](_0x5676ae,_0x4d747b,_0x106983,_0x169f27);}['closeSourceResourceBalloon'](_0x1d9653){this['_view']['closeSourceResourceBalloon'](_0x1d9653);}['setPromptInputValue'](_0x1a0758){this['_view']['chatControls']['setPromptInputValue'](_0x1a0758);}['focusPromptInput'](_0x258e40=!0x1){this['_view']['chatControls']['focusPromptInput'](_0x258e40);}['scrollFeedToSuggestion'](_0x4e4bcc,_0x299dfb){this['_view']['chatFeed']['scrollToSuggestion'](_0x4e4bcc,_0x299dfb);}['startAutoScroll'](){this['_view']['chatFeed']['startAutoScroll']();}['disableControls'](){this['_view']['chatControls']['isDisabled']=!0x0;}['enableControls'](){this['_view']['chatControls']['isDisabled']=!0x1;}}class AIChatHistorySectionListView extends ListView{['sections'];constructor(_0x142ef7,_0x29ff57){super(_0x142ef7),this['sections']=_0x29ff57,this['items']['addMany'](this['sections']),this['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__sections']}});}['filter'](_0x4d5c2b){let _0x5ee172=0x0,_0x22f2d0=0x0;for(const _0x25155f of this['sections']){const {resultsCount:_0x50454a,totalItemsCount:_0x4c4653}=_0x25155f['filter'](_0x4d5c2b);_0x5ee172+=_0x50454a,_0x22f2d0+=_0x4c4653;}return{'resultsCount':_0x5ee172,'totalItemsCount':_0x22f2d0};}}class AIChatHistoryListView extends ListItemView{['title'];['itemsViews'];['_itemsListView'];constructor(_0x94607,{title:_0x4dce20,items:_0x1237db}){super(_0x94607);const _0x3b1842=this['bindTemplate'];this['set']('isVisible',!0x0),this['title']=_0x4dce20,this['itemsViews']=_0x1237db;const _0x1284d3=new View(_0x94607);_0x1284d3['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__section-title']},'children':[this['title']]}),this['_itemsListView']=new ListView(_0x94607),this['_itemsListView']['items']['addMany'](this['itemsViews']),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__section',_0x3b1842['if']('isVisible','ck-hidden',_0x25d1f6=>!_0x25d1f6)]},'children':[_0x1284d3,this['_itemsListView']]});}['filter'](_0x45be94){const _0x44bf09=this['itemsViews']['length'];let _0x1e05e3=0x0;for(const _0x429c64 of this['itemsViews']){if(_0x45be94){const _0x26a4e8=_0x429c64['isMatching'](_0x45be94);_0x429c64['isVisible']=!!_0x26a4e8,_0x429c64['highlightText'](_0x45be94);}else _0x429c64['isVisible']=!0x0,_0x429c64['highlightText'](null);_0x429c64['isVisible']&&_0x1e05e3++;}return this['isVisible']=_0x1e05e3>0x0,{'resultsCount':_0x1e05e3,'totalItemsCount':_0x44bf09};}['getItem'](_0x31fc7f){return this['itemsViews']['find'](_0x5e3b90=>_0x5e3b90['id']===_0x31fc7f);}['removeItem'](_0x4b31a4){const _0x2a35d2=this['itemsViews']['indexOf'](_0x4b31a4);-0x1!==_0x2a35d2&&(this['itemsViews']['splice'](_0x2a35d2,0x1),this['_itemsListView']['items']['remove'](_0x4b31a4));}}class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
ConfirmMixin(ListItemView){['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(_0x576c67,_0x382e47){super(_0x576c67);const _0x3fe21e=this['bindTemplate'];this['set']('isEdit',!0x1),this['set']('isVisible',!0x0),this['set']('pinned',!!_0x382e47['pinned']),this['set']('loadingState',null),this['id']=_0x382e47['id'];const {title:_0x136848,createdAt:_0x5e63c9,active:_0x1607eb=!0x1}=_0x382e47;this['_titleView']=new HighlightedTextView(),this['_titleView']['text']=_0x136848,this['_titleView']['extendTemplate']({'attributes':{'class':['ck-ai-chat-history__item-title']}});const _0x4f5a9d=this['_createCheckView'](),_0x21e3b3=this['_createPinButtonView'](_0x576c67),_0x3986b7=this['_createMenuDropdownView'](),_0x3efcab=this['_createEditInputView'](_0x576c67,_0x136848),_0x586b93=this['_createAcceptEditButtonView'](_0x576c67,_0x3efcab),_0x471b52=this['_createCancelEditButtonView'](_0x576c67,_0x3efcab);this['actions']=this['createCollection'](),this['mainContent']=this['createCollection'](),this['mainContent']['add'](this['_titleView']),this['actions']['add'](_0x21e3b3),this['actions']['add'](_0x3986b7),this['on']('change:isEdit',(_0x123fae,_0x250925,_0xddaca0)=>{this['actions']['clear'](),this['mainContent']['clear'](),_0xddaca0?(this['actions']['add'](_0x586b93),this['actions']['add'](_0x471b52),this['mainContent']['add'](_0x3efcab),_0x3efcab['element']['focus']()):(this['actions']['add'](_0x21e3b3),this['actions']['add'](_0x3986b7),this['mainContent']['add'](this['_titleView']));}),this['setTemplate']({'tag':'li','attributes':{'class':['ck-ai-chat-history__item',_0x1607eb?'ck-ai-chat-history__item--active':'',_0x3fe21e['if']('isVisible','ck-hidden',_0x13e14b=>!_0x13e14b),_0x3fe21e['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',_0x3fe21e['if']('loadingState','ck-hidden',_0x7885ad=>!!_0x7885ad)]},'children':_0x1607eb?[_0x4f5a9d]:[]},{'tag':'div','attributes':{'class':['ck-ai-loader',_0x3fe21e['if']('loadingState','ck-hidden',_0xea68ad=>!_0xea68ad)]},'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',_0x3fe21e['if']('loadingState','ck-hidden',_0x55b5c6=>!!_0x55b5c6)]},'children':this['mainContent']},{'tag':'div','attributes':{'class':['ck-ai-loader__text',_0x3fe21e['if']('loadingState','ck-hidden',_0x12ddb5=>!_0x12ddb5)]},'children':[{'text':_0x3fe21e['to']('loadingState',_0x11c967=>_0x11c967?getTranslation$i(this['locale'],AIChatHistoryListItemView['LOADING_LABELS'][_0x11c967]):'')}]}]},{'tag':'span','attributes':{'class':['ck-ai-chat-history__item-date']},'children':[_0x5e63c9]}]},{'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'](_0x35967d){this['_titleView']['text']=escape(_0x35967d);}['updateLoadingState'](_0x646b73,_0x35264f){this['set']('loadingState',_0x35264f?_0x646b73:null);}['_createCheckView'](){const _0x4c7f71=new IconView();return _0x4c7f71['set']({'content':IconCheck}),_0x4c7f71;}['_createPinButtonView'](_0x51152b){const _0x441ad0=new ButtonView(_0x51152b);return _0x441ad0['set']({'label':getTranslation$i(_0x51152b,'AI_CHAT_HISTORY_PIN_BUTTON'),'icon':IconPin,'withText':!0x1,'tooltip':!0x0}),_0x441ad0['bind']('isOn')['to'](this,'pinned'),_0x441ad0['on']('execute',()=>{const _0x26e54f=!this['pinned'];this['fire']('setConversationPinned',{'id':this['id'],'pinned':_0x26e54f});}),_0x441ad0;}['_createMenuDropdownView'](){const _0x4b4213=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x350405=_0x4b4213['panelView']['children'];_0x4b4213['buttonView']['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SHOW_MORE_ITEMS'),'icon':IconThreeHorizontalDots}),_0x4b4213['panelPosition']='sw';const _0x266a02=new ButtonView(this['locale']);_0x266a02['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EDIT_NAME'),_0x266a02['withText']=!0x0,_0x266a02['on']('execute',()=>{this['isEdit']=!0x0;});const _0x207c42=new ButtonView(this['locale']);_0x207c42['label']=getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE'),_0x207c42['withText']=!0x0,_0x207c42['on']('execute',()=>{this['showConfirm'](getTranslation$i(this['locale'],'AI_CHAT_HISTORY_REMOVE_CONFIRM'),this['element'])['then'](()=>{this['fire']('removeConversation',{'id':this['id']});});});const _0x24173c=new ListView(this['locale']),_0x5c1092=new ListItemView(this['locale']);_0x5c1092['children']['add'](_0x266a02);const _0x3eaaf1=new ListItemView(this['locale']);return _0x3eaaf1['children']['add'](_0x207c42),_0x24173c['items']['addMany']([_0x5c1092,_0x3eaaf1]),_0x350405['add'](_0x24173c),_0x4b4213;}['_createEditInputView'](_0x39a743,_0x239d78){const _0x50779d=new InputTextView(_0x39a743),_0x2192ca=_0x50779d['bindTemplate'];return _0x50779d['value']=_0x239d78,_0x50779d['extendTemplate']({'on':{'keydown':_0x2192ca['to'](_0x4055e4=>{'Enter'==_0x4055e4['key']&&this['_commitEditInputValue'](_0x50779d);})}}),_0x50779d;}['_createAcceptEditButtonView'](_0x45a129,_0x19d78c){const _0x118523=new ButtonView(_0x45a129);return _0x118523['set']({'icon':IconCheck,'withText':!0x1,'tooltip':getTranslation$i(_0x45a129,'AI_CHAT_HISTORY_ACCEPT')}),_0x118523['extendTemplate']({'attributes':{'class':['ck-confirm-view-submit']}}),_0x118523['on']('execute',()=>{this['_commitEditInputValue'](_0x19d78c);}),_0x118523;}['_commitEditInputValue'](_0x2c5fdf){const _0xd691ac=_0x2c5fdf['element']['value']||'';this['_titleView']['text']=_0xd691ac,this['isEdit']=!0x1,this['fire']('editConversationTitle',{'id':this['id'],'title':_0xd691ac});}['_createCancelEditButtonView'](_0x35e5ae,_0x471ea7){const _0x5b2e2c=new ButtonView(_0x35e5ae);return _0x5b2e2c['set']({'icon':IconCancel,'withText':!0x1,'tooltip':getTranslation$i(_0x35e5ae,'AI_CHAT_HISTORY_CANCEL')}),_0x5b2e2c['extendTemplate']({'attributes':{'class':['ck-confirm-view-cancel']}}),_0x5b2e2c['on']('execute',()=>{this['isEdit']=!0x1,_0x471ea7['value']=this['_titleView']['text']||'',this['fire']('edit:cancel');}),_0x5b2e2c;}['_createSpinnerView'](){const _0x32bd63=new AISpinnerView('tiny');return _0x32bd63['isVisible']=!0x0,_0x32bd63;}['isMatching'](_0x3ce44f){return this['_titleView']&&'string'==typeof this['_titleView']['text']&&this['_titleView']['text']['match'](_0x3ce44f)?{'title':!0x0}:null;}['highlightText'](_0xcb614){this['_titleView']['highlightText'](_0xcb614);}}class AIChatHistoryView extends View{['searchView'];['mainErrorView'];['skeletonView'];['emptyView'];['sectionsView'];['resizeButton'];constructor(_0x3297be,_0x507cfe){super(_0x3297be),this['set']('hasItems',!0x1),this['set']('isLoading',!0x0),this['set']('errorMessage',''),this['set']('isMaximized',!0x1),this['set']('isSearchViewVisible',!0x1),this['set']('isEmptyViewVisible',!0x1),this['set']('isMainErrorViewVisible',!0x1);const _0x59c79e=new FormHeaderView(_0x3297be,{'label':getTranslation$i(_0x3297be,'AI_CHAT_HISTORY_HEADING'),'icon':IconAIHistory,'class':'ck-ai-header\x20ck-ai-header_history'});_0x507cfe&&(this['resizeButton']=createResizeButton(_0x3297be,this),_0x59c79e['children']['add'](this['resizeButton'])),this['sectionsView']=new AIChatHistorySectionListView(_0x3297be,[]),this['sectionsView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['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',_0x340d33=>!_0x340d33)]}}),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':[_0x59c79e,{'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 _0x16e270=new SearchTextView(this['locale'],{'filteredView':this['sectionsView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_LABEL')},'infoView':{'text':{'notFound':{'primary':_0x1bbde7=>getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY',_0x1bbde7),'secondary':getTranslation$i(this['locale'],'AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY')}}}}),_0x152060=this['_createErrorView']();return _0x152060['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('errorMessage','ck-hidden',_0x2b4076=>!_0x2b4076)]}}),_0x16e270['on']('render',()=>{_0x16e270['children']['add'](_0x152060,0x1);}),_0x16e270['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isSearchViewVisible','ck-hidden',_0x4d69fc=>!_0x4d69fc)]}}),_0x16e270;}['_createSkeletonView'](){const _0x245dd7=new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiHistory']);return _0x245dd7['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isLoading','ck-hidden',_0xe19d0=>!_0xe19d0)]}}),_0x245dd7;}['_createErrorView'](){const _0x268681=new View(this['locale']),_0x487ab5=new ButtonView(this['locale']);_0x487ab5['set']({'withText':!0x1,'icon':IconCancel,'class':'ck-ai-notification_error__dismiss-button'}),_0x487ab5['bind']('isVisible')['to'](this,'hasItems',_0x1f0c3c=>!!_0x1f0c3c),_0x487ab5['on']('execute',()=>{this['errorMessage']='';});const _0x1b97fb=this['bindTemplate'];return _0x268681['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-notification','ck-ai-notification_error']},'children':[{'tag':'p','children':[{'text':_0x1b97fb['to']('errorMessage')}]},_0x487ab5]}),_0x268681;}['_createEmptyStateView'](){const _0x5c6aa6=new ButtonView(this['locale']);_0x5c6aa6['set']({'label':getTranslation$i(this['locale'],'AI_CHAT_LABEL_NEW_CHAT'),'withText':!0x0,'icon':IconPlus,'class':'ck-ai-chat__start-conversation'}),_0x5c6aa6['on']('execute',()=>{this['fire']('openChat');});const _0x42cfc4=new View(this['locale']);return _0x42cfc4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-history__empty',this['bindTemplate']['if']('isEmptyViewVisible','ck-hidden',_0x476bb6=>!_0x476bb6)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-chat-history__empty-message']},'children':[getTranslation$i(this['locale'],'AI_CHAT_HISTORY_EMPTY_MESSAGE')]},_0x5c6aa6]}),_0x42cfc4;}['_createListItemViews'](_0x17f577,_0xee732c){const _0x324d58=[];for(const _0x5d54fb of _0x17f577){const _0x40fc9c=new AIChatHistoryListItemView(_0xee732c,_0x5d54fb);_0x40fc9c['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x324d58['push'](_0x40fc9c);}return _0x324d58;}['updateHistoryItemsWithCategories'](_0x3dc3cb){const _0x176f32=this['locale']||'en',_0x14deb2=[];for(const _0x176fd5 of _0x3dc3cb){const _0x57175e=this['_createListItemViews'](_0x176fd5['items'],_0x176f32);_0x14deb2['push'](new AIChatHistoryListView(_0x176f32,{'title':_0x176fd5['title'],'items':_0x57175e}));}this['sectionsView']['sections']=_0x14deb2,this['sectionsView']['items']['clear'](),this['sectionsView']['items']['addMany'](_0x14deb2),this['hasItems']=_0x3dc3cb['some'](_0x19b712=>_0x19b712['items']['length']>0x0),this['_refreshSearch']();}['removeHistoryItem'](_0x233058){for(const _0x59679f of this['sectionsView']['sections']){const _0x16aa13=_0x59679f['getItem'](_0x233058);if(_0x16aa13){if(_0x59679f['removeItem'](_0x16aa13),0x0===_0x59679f['itemsViews']['length']){const _0x26bf64=this['sectionsView']['sections']['indexOf'](_0x59679f);-0x1!==_0x26bf64&&(this['sectionsView']['sections']['splice'](_0x26bf64,0x1),this['sectionsView']['items']['remove'](_0x59679f));}this['hasItems']=this['sectionsView']['sections']['length']>0x0,this['_refreshSearch']();break;}}}['updateItemTitle'](_0x5df5dc,_0x146403){for(const _0x4a3f28 of this['sectionsView']['sections']){const _0x5586b6=_0x4a3f28['getItem'](_0x5df5dc);if(_0x5586b6){_0x5586b6['updateTitle'](_0x146403);break;}}}['updateItemLoadingState'](_0xadfd51,_0x5cc65d,_0x455d8d){for(const _0x2959b7 of this['sectionsView']['sections']){const _0x5a29cc=_0x2959b7['getItem'](_0xadfd51);if(_0x5a29cc){_0x5a29cc['updateLoadingState'](_0x5cc65d,_0x455d8d);break;}}}['_refreshSearch'](){if(this['hasItems']){const _0x2fe690=this['searchView']['queryView']['fieldView']?.['element']?.['value']||'';this['searchView']['search'](_0x2fe690);}}}const AI_CHAT_HISTORY_UI_EVENT_NAMES=['showConversationHistory','removeConversation','editConversationTitle','setConversationPinned','selectConversation','openChat','resizeTabs'];class AIChatHistoryUI extends ContextPlugin{static get['requires'](){return[AITabs];}['_historyView'];static get['pluginName'](){return'AIChatHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24a854){super(_0x24a854);const _0x2e8933=this['context']['plugins']['get']('AITabs');this['_historyView']=new AIChatHistoryView(this['context']['locale'],_0x2e8933['showResizeButton']),this['_historyView']['delegate'](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2e8933['view']['addTab']({'id':'history','buttonLabel':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_HEADING'),'buttonIcon':IconAIHistory,'order':0x0,'content':this['_historyView']});}['removeHistoryItem'](_0x2e851a){this['_historyView']['removeHistoryItem'](_0x2e851a);}['updateItems'](_0x16a386){this['_historyView']['updateHistoryItemsWithCategories'](_0x16a386);}['updateItemTitle'](_0x3c0a86,_0x89f63b){this['_historyView']['updateItemTitle'](_0x3c0a86,_0x89f63b);}['updateItemLoadingState'](_0x183c25,_0x1193a8,_0x2e1cec){this['_historyView']['updateItemLoadingState'](_0x183c25,_0x1193a8,_0x2e1cec);}['setLoadingSkeleton'](_0x44ce56){this['_historyView']['isLoading']=_0x44ce56;}['showError'](_0xe8c7ea){this['_historyView']['errorMessage']=_0xe8c7ea;}['hideError'](){this['_historyView']['errorMessage']='';}['setIsMaximized'](_0x441f3a){this['_historyView']['isMaximized']=_0x441f3a;}}class AIChatHistoryItem extends ObservableMixin(){['id'];['createdAt'];constructor({id:_0x2fd628,title:_0x3e2a10,createdAt:_0x175d96,updatedAt:_0x1f6a8f,pinned:_0x2a9766}){super(),this['id']=_0x2fd628,this['createdAt']=new Date(_0x175d96),this['set']('title',_0x3e2a10),this['set']('updatedAt',_0x1f6a8f?new Date(_0x1f6a8f):null),this['set']('pinned',_0x2a9766||!0x1);}['updateTitle'](_0x12722a){this['set']('title',escape(_0x12722a)),this['updatedAt']=new Date();}['updatePinned'](_0x51850c){this['set']('pinned',_0x51850c),this['updatedAt']=new Date();}}class AIChatHistoryConversations extends EmitterMixin(){['items']=[];['connector'];['group'];constructor({connector:_0x311cb9,group:_0x2fdf52}){super(),this['connector']=_0x311cb9,this['group']=_0x2fdf52;}async['init'](){try{const _0x6c0f32=this['connector']['fetchConversations'](this['group']),_0x53a4cb=await _0x6c0f32['getConversations']();this['loadItems'](_0x53a4cb);}catch(_0x54fc1d){this['fire']('error',{'error':_0x54fc1d,'operation':'init'});}}['addItem'](_0x9246d){this['items']['push'](_0x9246d);}async['removeItem'](_0x1666c5){const _0x21695f=this['items']['findIndex'](_0x566b5b=>_0x566b5b['id']===_0x1666c5);if(-0x1===_0x21695f)return!0x1;try{return await this['connector']['deleteConversation'](_0x1666c5)['execute'](),this['items']['splice'](_0x21695f,0x1),this['fire']('itemRemoved',{'itemId':_0x1666c5}),!0x0;}catch(_0x341e4a){return this['fire']('error',{'error':_0x341e4a,'operation':'removeItem','itemId':_0x1666c5}),!0x1;}}['getItem'](_0x42a97f){return this['items']['find'](_0x5560c5=>_0x5560c5['id']===_0x42a97f);}async['updateItemTitle'](_0x27e674,_0x247ffe){const _0x48da5a=this['getItem'](_0x27e674);if(!_0x48da5a)return!0x1;try{return await this['connector']['updateConversation'](_0x27e674,{'title':_0x247ffe})['getResult'](),_0x48da5a['updateTitle'](_0x247ffe),this['fire']('itemUpdated',{'itemId':_0x27e674,'updates':{'title':_0x247ffe}}),!0x0;}catch(_0x5ee17c){return this['fire']('error',{'error':_0x5ee17c,'operation':'updateItemTitle','itemId':_0x27e674}),!0x1;}}async['updateItemPinned'](_0x260e75,_0x904bb1){const _0x900c9f=this['getItem'](_0x260e75);if(!_0x900c9f)return!0x1;try{return await this['connector']['updateConversation'](_0x260e75,{'pinned':_0x904bb1})['getResult'](),_0x900c9f['updatePinned'](_0x904bb1),this['fire']('itemUpdated',{'itemId':_0x260e75,'updates':{'pinned':_0x904bb1}}),!0x0;}catch(_0xe5a67c){return this['fire']('error',{'error':_0xe5a67c,'operation':'updateItemPinned','itemId':_0x260e75}),!0x1;}}['loadItems'](_0x3c6ef8){try{this['items']=[],_0x3c6ef8['map'](_0x1a96c6=>{this['addItem'](new AIChatHistoryItem(_0x1a96c6));}),this['fire']('itemsLoaded',{'items':[...this['items']]});}catch(_0x192431){this['fire']('error',{'error':_0x192431,'operation':'loadItems'});}}['getItems'](_0x2af358={}){const _0x4946af=void 0x0!==_0x2af358['pinned']&&_0x2af358['pinned'],_0x550bd0=_0x2af358['from']?new Date(_0x2af358['from']['getFullYear'](),_0x2af358['from']['getMonth'](),_0x2af358['from']['getDate']()):null,_0x34b09e=_0x2af358['to']?new Date(_0x2af358['to']['getFullYear'](),_0x2af358['to']['getMonth'](),_0x2af358['to']['getDate']()):null;return this['items']['filter'](_0x396529=>{if(_0x396529['pinned']!==_0x4946af)return!0x1;if(_0x34b09e){const _0x25867d=new Date(_0x396529['createdAt']['getFullYear'](),_0x396529['createdAt']['getMonth'](),_0x396529['createdAt']['getDate']());return _0x550bd0?_0x550bd0['getTime']()===_0x34b09e['getTime']()?_0x25867d['getTime']()===_0x550bd0['getTime']():_0x25867d<_0x34b09e&&_0x25867d>=_0x550bd0:_0x25867d<_0x34b09e;}return!0x0;});}}class AIChatHistoryController extends ContextPlugin{['_aiConnector'];['_aiChatHistoryUi'];['_aiChatController'];static get['requires'](){return[AIConnector,AIChatController,AIChatHistoryUI,AITabs];}static get['pluginName'](){return'AIChatHistoryController';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiConnector']=this['context']['plugins']['get'](AIConnector),this['_aiChatHistoryUi']=this['context']['plugins']['get'](AIChatHistoryUI),this['_aiChatController']=this['context']['plugins']['get'](AIChatController);const _0x14fde8=this['context']['plugins']['get'](AITabs);try{const _0x7fad76=this['_aiChatController']['getGroupId']();this['history']=new AIChatHistoryConversations({'connector':this['_aiConnector'],'group':_0x7fad76}),this['listenTo'](this['_aiChatHistoryUi'],'removeConversation',(_0x24d9ab,_0x56bd2a)=>{this['_setItemLoading'](_0x56bd2a['id'],'remove'),this['_handleRemove'](_0x56bd2a['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'editConversationTitle',(_0x3bd885,_0xbf757b)=>{this['_setItemLoading'](_0xbf757b['id'],'rename'),this['_handleEditTitle'](_0xbf757b['id'],_0xbf757b['title']);}),this['listenTo'](this['history'],'itemUpdated',(_0x1bf774,_0x50072b)=>{void 0x0!==_0x50072b['updates']['title']&&this['_aiChatHistoryUi']['updateItemTitle'](_0x50072b['itemId'],_0x50072b['updates']['title']),void 0x0!==_0x50072b['updates']['pinned']&&this['_updateHistoryItemsUI'](),this['_clearItemLoading'](_0x50072b['itemId']);}),this['listenTo'](this['history'],'itemRemoved',(_0x81e48b,_0x4f3372)=>{this['_aiChatController']['handleRemovedConversation'](_0x4f3372['itemId']),this['_aiChatHistoryUi']['removeHistoryItem'](_0x4f3372['itemId']),this['_clearItemLoading'](_0x4f3372['itemId']);}),this['listenTo'](this['history'],'itemsLoaded',()=>{this['_updateHistoryItemsUI']();}),this['listenTo'](this['history'],'error',(_0xdfd1c5,_0x8f1a4a)=>{this['_handleHistoryErrorUI'](_0x8f1a4a['error'],_0x8f1a4a['operation'],_0x8f1a4a['itemId']);}),this['listenTo'](this['_aiChatHistoryUi'],'selectConversation',(_0x5a2d47,_0xef3bd2)=>{this['_handleSelectConversation'](_0xef3bd2['id']);}),this['listenTo'](this['_aiChatHistoryUi'],'setConversationPinned',(_0x2b6073,_0x1d9da7)=>{const _0x1e27a0=_0x1d9da7['pinned']?'pin':'unpin';this['_setItemLoading'](_0x1d9da7['id'],_0x1e27a0),this['_handleTogglePin'](_0x1d9da7['id'],_0x1d9da7['pinned']);}),this['listenTo'](this['_aiChatHistoryUi'],'openChat',()=>{_0x14fde8['view']['activateTab']('chat');}),this['listenTo'](this['_aiChatController'],'change:activeConversation',()=>{this['_updateHistoryItemsUI']();}),_0x14fde8['view']['on']('activateTab:history',()=>{this['_showConversationHistory']();}),this['listenTo'](_0x14fde8,'resizedTabs',(_0x123d51,_0x4814c6)=>{this['_setIsMaximized'](_0x4814c6);}),this['listenTo'](this['_aiChatHistoryUi'],'resizeTabs',()=>{_0x14fde8['resize']();});}catch(_0x5b0d27){this['_handleHistoryErrorUI'](_0x5b0d27,'init');}}async['_handleEditTitle'](_0x28d7fc,_0x8f3dfe){await this['history']['updateItemTitle'](_0x28d7fc,_0x8f3dfe);}async['_handleTogglePin'](_0x20a8cf,_0x155489){await this['history']['updateItemPinned'](_0x20a8cf,_0x155489);}async['_handleRemove'](_0x11feac){await this['history']['removeItem'](_0x11feac);}async['_handleSelectConversation'](_0x4c3ef0){await this['_aiChatController']['loadConversation'](_0x4c3ef0);}async['_showConversationHistory'](){this['_aiChatHistoryUi']['showError'](''),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x0),await this['history']['init'](),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_updateHistoryItemsUI'](){const _0x169fb3=this['_aiChatController']['activeConversation']?.['id'],_0x3020ba=this['_getCategorizedItems']()['map'](_0x53ef09=>({'title':_0x53ef09['title'],'items':_0x53ef09['items']['map'](_0x4afa42=>({'id':_0x4afa42['id'],'title':_0x4afa42['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION'),'createdAt':new Date(_0x4afa42['createdAt'])['toLocaleDateString'](),'active':_0x4afa42['id']===_0x169fb3,'pinned':_0x4afa42['pinned']}))}));this['_aiChatHistoryUi']['updateItems'](_0x3020ba);}['_setItemLoading'](_0x258512,_0x100432){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x258512,_0x100432,!0x0);}['_clearItemLoading'](_0x179ade){this['_aiChatHistoryUi']['updateItemLoadingState'](_0x179ade,null,!0x1);}['_handleHistoryErrorUI'](_0x2920dd,_0x405195,_0x21f4e4){const _0x31ddc3=this['_generateErrorMessage'](_0x405195,_0x21f4e4);this['_aiChatHistoryUi']['showError'](_0x31ddc3),_0x21f4e4&&this['_clearItemLoading'](_0x21f4e4),this['_aiChatHistoryUi']['setLoadingSkeleton'](!0x1);}['_generateErrorMessage'](_0x5ad033,_0x41d4c3){const _0x2b3c1f=_0x41d4c3?this['history']['getItem'](_0x41d4c3):null,_0x5410f7=_0x2b3c1f?.['title']||getTranslation$i(this['context']['locale'],'AI_CHAT_UNTITLED_CONVERSATION');switch(_0x5ad033){case'updateItemTitle':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_TITLE',_0x5410f7);case'updateItemPinned':{const _0x6eb47b=getTranslation$i(this['context']['locale'],_0x2b3c1f?.['pinned']?'AI_CHAT_HISTORY_UNPIN_ACTION':'AI_CHAT_HISTORY_PIN_ACTION');return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_UPDATE_PINNED',[_0x6eb47b,_0x5410f7]);}case'removeItem':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_REMOVE_ITEM',_0x5410f7);case'init':case'loadItems':return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_LOAD_ITEMS');default:return getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_ERROR_GENERIC');}}['_getCategorizedItems'](){const _0x26e96f=new Date(),_0x49cb34=new Date(_0x26e96f['getFullYear'](),_0x26e96f['getMonth'](),_0x26e96f['getDate']()),_0x49fbdc=new Date(_0x49cb34);_0x49fbdc['setDate'](_0x49fbdc['getDate']()-0x1);const _0x52e8fd=new Date(_0x49cb34);_0x52e8fd['setDate'](_0x52e8fd['getDate']()-0xe);const _0x501ae9=this['history']['getItems']({'pinned':!0x0}),_0x31e00f=this['history']['getItems']({'from':_0x49cb34,'to':_0x49cb34}),_0x2a6e66=this['history']['getItems']({'from':_0x49fbdc,'to':_0x49fbdc}),_0x2617d7=this['history']['getItems']({'from':_0x52e8fd,'to':_0x49fbdc}),_0x59cc6b=this['history']['getItems']({'to':_0x52e8fd}),_0x4099a1=[];return _0x501ae9['length']>0x0&&_0x4099a1['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_PINNED'),'items':_0x501ae9}),_0x31e00f['length']>0x0&&_0x4099a1['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_TODAY'),'items':_0x31e00f}),_0x2a6e66['length']>0x0&&_0x4099a1['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_YESTERDAY'),'items':_0x2a6e66}),_0x2617d7['length']>0x0&&_0x4099a1['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS'),'items':_0x2617d7}),_0x59cc6b['length']>0x0&&_0x4099a1['push']({'title':getTranslation$i(this['context']['locale'],'AI_CHAT_HISTORY_CATEGORY_LATER'),'items':_0x59cc6b}),_0x4099a1;}['_setIsMaximized'](_0x2f2e04){this['_aiChatHistoryUi']['setIsMaximized'](_0x2f2e04);}}class AIChatHistory extends ContextPlugin{static get['requires'](){return[AIChatHistoryController,AIChatHistoryUI];}static get['pluginName'](){return'AIChatHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AIChat extends ContextPlugin{static get['requires'](){return[AIChatController,AIEditing,AIChatUI,AIChatHistory];}static get['pluginName'](){return'AIChat';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26e6ff){super(_0x26e6ff),this['context']['config']['define']('ai.chat.context',{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this['context']['config']['define']('ai.chat.initialConversation','new');}async['addSelectionToChatContext'](){await this['context']['plugins']['get'](AIChatController)['addSelectionToChatContext']();}async['startConversation'](){await this['context']['plugins']['get'](AIChatController)['startConversation']();}async['sendMessage']({message:_0x5a5059,attributes:_0x812b75}){await this['context']['plugins']['get'](AIChatController)['sendMessage']({'message':_0x5a5059,'attributes':_0x812b75});}['removeSelectionFromChatContext'](){this['context']['plugins']['get'](AIChatController)['removeSelectionFromChatContext']();}['focusPromptInput'](){this['context']['plugins']['get'](AIChatController)['focusPromptInput']();}['registerToolDataCallback'](_0x680434){this['context']['plugins']['get'](AIChatController)['_registerToolDataCallback'](_0x680434);}}class AIChatShortcutView extends ButtonView{['id'];constructor(_0x30d6cb,_0x382260){super(_0x30d6cb);const {id:_0xb53df5,type:_0x54ff90,icon:_0x5da59c}=_0x382260;this['id']=_0xb53df5,this['set']({'label':_0x382260['label'],'withText':!0x0,'class':'ck-ai-chat-shortcut'}),this['extendTemplate']({'attributes':{'data-cke-ai-shortcut-id':_0x382260['id']}}),_0x5da59c?this['icon']=_0x5da59c:'chat'===_0x54ff90?this['icon']=IconAIChat$1:'review'===_0x54ff90?this['icon']=IconAIReview:'translate'===_0x54ff90&&(this['icon']=IconAITranslate);}}class AIChatShortcutsView extends View{['listView'];constructor(_0x273c20,_0x5b7be5){super(_0x273c20);const _0x3682aa=_0x5b7be5['map'](_0x19a9fa=>{const _0x433547=new ListItemView(this['locale']),_0x25c40c=new AIChatShortcutView(this['locale'],_0x19a9fa);return _0x433547['children']['add'](_0x25c40c),_0x25c40c['delegate']('execute')['to'](this),_0x433547;});this['listView']=new ListView(this['locale']),this['listView']['items']['addMany'](_0x3682aa),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-shortcuts']},'children':[this['listView']]});}}const CHAT_SHORTCUTS_FEED_ITEM_ID='chat-shortcuts';var AIChatShortcutType=function(_0xfae66e){return _0xfae66e['CHAT']='chat',_0xfae66e['REVIEW']='review',_0xfae66e['TRANSLATE']='translate',_0xfae66e;}({});class AIChatShortcuts extends ContextPlugin{['_shortcuts'];['_shortcutsView'];['_aiChatUI'];static get['requires'](){return[AIChatUI];}static get['pluginName'](){return'AIChatShortcuts';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_aiChatUI']=this['context']['plugins']['get'](AIChatUI),this['_shortcuts']=this['context']['config']['get']('ai.chat.shortcuts')??[];const _0x17deb8=this['context']['plugins']['get']('AIChatController');this['_shortcuts']['length']&&(this['_validateShortcuts'](),this['_aiChatUI']['on']('conversationCreated',()=>{_0x17deb8['activeConversation']['isFromHistory']||this['_injectShortcuts']();}),this['listenTo'](_0x17deb8,'interactionStarted',()=>{this['_removeShortcuts']();}));}['_validateShortcuts'](){const _0xd1b854=Object['values'](AIChatShortcutType);this['_shortcuts']['forEach'](_0x152e68=>{let _0x37cf18=!0x0;if(_0x152e68['id']&&_0x152e68['label']&&_0xd1b854['includes'](_0x152e68['type'])?'chat'===_0x152e68['type']&&(_0x37cf18='string'==typeof _0x152e68['prompt']):_0x37cf18=!0x1,!_0x37cf18)throw new CKEditorError('ai-chat-shortcuts-invalid-config',this['context'],{'shortcut':_0x152e68});});}['_injectShortcuts'](){const _0x5c3623=this['context']['plugins']['get'](AIChatUI);this['_shortcutsView']=new AIChatShortcutsView(this['context']['locale'],this['_shortcuts']),this['_shortcutsView']['render'](),_0x5c3623['addFeedItemCustomElement'](this['_shortcutsView']['element'],CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']['on']('execute',_0x5d9fee=>{const _0x30a067=_0x5d9fee['source']['id'];this['_executeShortcut'](_0x30a067);});}['_removeShortcuts'](){const _0x3b44b0=this['context']['plugins']['get'](AIChatUI);_0x3b44b0['hasFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID)&&_0x3b44b0['removeFeedItem'](CHAT_SHORTCUTS_FEED_ITEM_ID),this['_shortcutsView']?.['destroy']();}['_executeShortcut'](_0x6e52cc){const _0x14ac9a=this['_shortcuts']['find'](_0x40ecd5=>_0x40ecd5['id']===_0x6e52cc),_0xf49be2=_0x14ac9a['type'];'chat'===_0xf49be2?this['_runChatShortcut'](_0x14ac9a):'review'===_0xf49be2?_0x14ac9a['check']?this['_runReviewShortcut'](_0x14ac9a):this['_switchTab']('reviewMode'):'translate'===_0xf49be2&&(_0x14ac9a['language']?this['_runTranslateShortcut'](_0x14ac9a):this['_switchTab']('translate'));}['_switchTab'](_0x521675){if(!this['context']['plugins']['has']('AITabs'))throw new CKEditorError('ai-chat-shortcuts-ai-tabs-not-found',this['context'],{'tabName':_0x521675});this['context']['plugins']['get']('AITabs')['view']['activateTab'](_0x521675);}async['_runChatShortcut']({prompt:_0x26cb6a,draftMode:_0x657671,useWebSearch:_0xbd5a78=!0x1,useReasoning:_0x2780e1=!0x1,model:_0x55f738}){const _0x4f03a7=this['context']['plugins']['get']('AIChat'),_0x6afefd=this['context']['plugins']['get']('AIChatController'),_0xb824ec=_0x6afefd['activeConversation'];let _0x5869a8;_0x5869a8=_0x55f738?await _0xb824ec['chatModels']['getModel'](_0x55f738):await _0xb824ec['chatModels']['getDefault'](),_0x5869a8&&await _0xb824ec['setModel'](_0x5869a8),_0xb824ec['setWebSearch'](_0xbd5a78),_0xb824ec['setReasoning'](_0x2780e1),_0x6afefd['addCurrentDocumentToChatContext'](),_0x657671?(this['_aiChatUI']['setPromptInputValue'](_0x26cb6a),this['_aiChatUI']['focusPromptInput'](!0x0)):_0x4f03a7['sendMessage']({'message':_0x26cb6a});}['_runReviewShortcut']({check:_0x1b5415,model:_0x3bc3c1,prompt:_0x8ecf3a,params:_0x56b86c}){if(!this['context']['plugins']['has']('AIReviewModeUI'))throw new CKEditorError('ai-chat-shortcuts-review-mode-not-found',this['context']);this['_switchTab']('reviewMode');const _0x210882={'id':_0x1b5415,'isCustom':'custom'===_0x1b5415};_0x3bc3c1&&_0x8ecf3a&&(_0x210882['args']={'model':_0x3bc3c1,'prompt':_0x8ecf3a}),_0x56b86c&&(_0x210882['params']=_0x56b86c),this['context']['plugins']['get']('AIReviewModeUI')['fire']('runReviewCheck',_0x210882);}['_runTranslateShortcut']({language:_0x488448}){if(!this['context']['plugins']['has']('AITranslateUI'))throw new CKEditorError('ai-chat-shortcuts-translate-not-found',this['context']);this['_switchTab']('translate'),this['context']['plugins']['get']('AITranslateUI')['fire']('runReviewCheck',{'id':_0x488448,'args':{'language':_0x488448}});}}class ToggleAICommand extends Command{constructor(_0x513980){super(_0x513980);const _0x15bd04=_0x513980['plugins']['get']('AITabs')['view'];this['bind']('value')['to'](_0x15bd04,'isVisible'),this['isEnabled']=!0x0;}['execute'](){const _0x614980=this['editor']['plugins']['get']('AITabs')['view'];_0x614980['isVisible']=!_0x614980['isVisible'];}}class AIToggleButtonUI extends Plugin{static get['requires'](){return[AITabs];}static get['pluginName'](){return'AIToggleButtonUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1d4b27=this['editor'];_0x1d4b27['commands']['add']('toggleAi',new ToggleAICommand(_0x1d4b27)),_0x1d4b27['ui']['componentFactory']['add']('toggleAi',()=>{const _0x4596d4=this['_createAIUIButton'](ButtonView);return _0x4596d4['set']({'tooltip':!0x0,'class':'ck-ai-toggle-button'}),_0x4596d4;}),_0x1d4b27['ui']['componentFactory']['add']('menuBar:toggleAi',()=>{const _0x4ba32a=this['_createAIUIButton'](MenuBarMenuListItemButtonView);return _0x4ba32a['set']({'role':'menuitemcheckbox'}),_0x4ba32a;});}['_createAIUIButton'](_0x4eb1c0){const _0x370551=this['editor'],_0x3ff7f4=_0x370551['commands']['get']('toggleAi'),_0x11a7db=new _0x4eb1c0(_0x370551['locale']);return _0x11a7db['set']({'label':getTranslation$i(_0x370551['locale'],'AI_TOGGLE_BUTTON_LABEL'),'icon':IconAIAskAI,'isToggleable':!0x0}),_0x11a7db['bind']('isEnabled')['to'](_0x3ff7f4),_0x11a7db['bind']('isOn')['to'](_0x3ff7f4,'value',_0x275f9c=>!!_0x275f9c),this['listenTo'](_0x11a7db,'execute',()=>{_0x3ff7f4['execute']();}),_0x11a7db;}}const AI_BALLOON_VIEW_EVENT_NAMES=['applySuggestion','insertSuggestion','showNext','showPrevious'];class AIBalloonView extends View{['_errorView'];constructor(_0x3fa8f1){super(_0x3fa8f1),this['set']('_errorMessage',''),this['set']('_isErrorVisible',!0x1);}['showBlockingError'](_0x2a5758){this['showError'](_0x2a5758);}['showError'](_0xf3cc7e){this['_errorView']||(this['_errorView']=this['_createErrorView']()),this['_errorMessage']=_0xf3cc7e,this['_isErrorVisible']=!0x0;}['hideError'](){this['_isErrorVisible']=!0x1;}['_createErrorView'](){const _0x4b4577=new View(this['locale']),_0x2932ff=new View(this['locale']);return _0x2932ff['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__error-text']},'children':[{'text':this['bindTemplate']['to']('_errorMessage')}]}),_0x4b4577['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__error','ck-ai-balloon-error',this['bindTemplate']['if']('_isErrorVisible','ck-hidden',_0x3cd0bf=>!_0x3cd0bf)]},'children':[_0x2932ff]}),_0x4b4577;}}const DIALOG_TOP_OFFSET=0xa;class AIBalloon extends ContextPlugin{static get['requires'](){return[AIEditing];}static get['pluginName'](){return'AIBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['isOpen']=!0x1;['_currentConfig'];['_isUpdatingMarkers']=!0x1;['open'](_0x281804){const {id:_0x352cb6}=this['_currentConfig']??{};this['_currentConfig']=_0x281804;const {id:_0x89566f}=this['_currentConfig'];this['isOpen']&&_0x352cb6===_0x89566f?this['_updateDialog']():this['_showDialog']();}['close'](){const _0x449f48=getEditorFromContext(this['context'])['plugins']['get']('Dialog');_0x449f48['isOpen']&&this['_currentConfig']&&_0x449f48['id']===this['_currentConfig']['id']&&_0x449f48['hide']();}['_updateDialog'](){const _0x5bca50=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{icon:_0x27cdcd,title:_0x3d28f3}=this['_currentConfig'];_0x5bca50['view']?.['headerView']&&(_0x5bca50['view']['headerView']['label']=_0x3d28f3,_0x5bca50['view']['headerView']['iconView']&&_0x27cdcd&&(_0x5bca50['view']['headerView']['iconView']['content']=_0x27cdcd)),this['_isUpdatingMarkers']=!0x0,this['_showFakeVisualSelection'](),this['_isUpdatingMarkers']=!0x1,_0x5bca50['view']?.['updatePosition']();}['_showFakeVisualSelection'](){this['context']['plugins']['get'](AIEditing)['showFakeVisualSelection'](this['_currentConfig']['ranges'],'ai-balloon-'+this['_currentConfig']['index'],!0x0,!0x0);}['_hideFakeVisualSelection'](_0x35d172){this['context']['plugins']['get'](AIEditing)['hideFakeVisualSelection']('ai-balloon-'+_0x35d172);}['_showDialog'](){const _0x1c08a4=getEditorFromContext(this['context'])['plugins']['get']('Dialog'),{id:_0x57f6bf,title:_0x13c4d3,icon:_0x447443,class:_0x1e4159,mainView:_0x5848e5}=this['_currentConfig'];_0x5848e5['delegate'](...AI_BALLOON_VIEW_EVENT_NAMES)['to'](this),_0x1c08a4['show']({'title':_0x13c4d3,'icon':_0x447443,'hasCloseButton':!0x0,'id':_0x57f6bf,'position':this['_calculateDialogPosition']['bind'](this),'className':'ck-ai-balloon\x20'+(_0x1e4159||''),'content':_0x5848e5,'onShow':_0x13ab3f=>{this['_showFakeVisualSelection'](),this['_setupFakeVisualSelectionMarkerRemovalListener']();const _0x34f64c=this['_getSelectionElements']();_0x34f64c&&_0x34f64c[0x0]&&scrollViewportToShowTarget({'target':_0x34f64c[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this['isOpen']=!0x0,_0x13ab3f['once']('hide',()=>{this['fire']('beforeDialogClosed',{'id':_0x57f6bf});},{'priority':'high'});},'onHide':()=>{this['_hideFakeVisualSelection'](this['_currentConfig']['index']),this['_cleanupFakeVisualSelectionMarkerRemovalListener'](),this['fire']('dialogClosed',{'id':_0x57f6bf}),this['isOpen']=!0x1;}});}['_calculateDialogPosition'](_0x191626,_0x25f0d3){if(!_0x25f0d3)return null;const _0x5424ce=this['_getSelectionElements']();if(!_0x5424ce||0x0===_0x5424ce['length'])return{'left':Math['round'](_0x25f0d3['left']+_0x25f0d3['width']/0x2-_0x191626['width']/0x2),'top':Math['round'](_0x25f0d3['top']+_0x25f0d3['height']/0x2-_0x191626['height']/0x2)};const _0x2bf5e4=Math['round'](_0x25f0d3['left']+_0x25f0d3['width']/0x2-_0x191626['width']/0x2),_0xc7b27c=_0x5424ce['map'](_0x124855=>new Rect(_0x124855)),_0x602721=_0x191626['height'];return{'left':_0x2bf5e4,'top':this['_calculateOptimalTopPosition'](_0xc7b27c,_0x602721,_0x25f0d3)};}['_calculateOptimalTopPosition'](_0xdc39bb,_0x3260ef,_0x59279c){const _0x4d7998=new Rect(_0x59f9c1['window']),_0x1b0356=_0xdc39bb['map'](_0x48f784=>_0x48f784['getVisible']())['filter'](_0x5c8b11=>_0x5c8b11),_0x1fd4ae=Rect['getBoundingRect'](_0x1b0356);if(!_0x1fd4ae)return Math['round'](_0x59279c['top']+_0x59279c['height']/0x2);const _0x5dd280=_0x4d7998['getIntersection'](_0x1fd4ae);if(!_0x5dd280)return Math['round'](_0x59279c['top']+_0x59279c['height']/0x2);const _0x454b98=_0x59279c['getVisible'](),_0xaf9d4=_0x454b98&&_0x1fd4ae['height']>_0x454b98['height'],_0x4f39c0=_0x5dd280['top'],_0x3462a2=_0x5dd280['bottom'];if(_0xaf9d4){const _0x538c5c=(_0x454b98||_0x4d7998)['height']/0x2-_0x3260ef/0x2,_0x3fccae=_0x4f39c0-DIALOG_TOP_OFFSET-_0x59279c['top'],_0x2d859f=_0x59279c['bottom']-_0x3462a2-DIALOG_TOP_OFFSET;return _0x3fccae>=_0x3260ef?Math['max'](DIALOG_TOP_OFFSET,_0x4f39c0-_0x3260ef-DIALOG_TOP_OFFSET):_0x2d859f>=_0x3260ef?_0x3462a2+DIALOG_TOP_OFFSET:Math['max'](DIALOG_TOP_OFFSET,_0x538c5c);}const _0x2813ad=_0x4f39c0-_0x3260ef,_0x32428b=_0x59279c['bottom']-_0x3462a2-DIALOG_TOP_OFFSET,_0x38f617=_0x4f39c0-DIALOG_TOP_OFFSET-_0x59279c['top'];let _0x50c6b7;if(_0x32428b>=_0x3260ef)_0x50c6b7=_0x3462a2+DIALOG_TOP_OFFSET;else{if(_0x38f617>=_0x3260ef)_0x50c6b7=_0x2813ad-DIALOG_TOP_OFFSET;else _0x50c6b7=_0x4f39c0+_0x1fd4ae['height']/0x2-_0x3260ef/0x2;}return _0x50c6b7;}['_setupFakeVisualSelectionMarkerRemovalListener'](){const _0x5861a5=getEditorFromContext(this['context']);this['listenTo'](_0x5861a5['model']['document'],'change',()=>{if(!this['_isUpdatingMarkers']){for(const {name:_0x1fc784,data:{newRange:_0x405e80}}of _0x5861a5['model']['document']['differ']['getChangedMarkers']())if(_0x1fc784['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME+':')&&(_0x405e80&&(_0x405e80['start']['isEqual'](_0x405e80['end'])||'$graveyard'==_0x405e80['root']['rootName'])||null==_0x405e80)){const _0x8add95=getTranslation$i(this['context']['locale'],'AI_BALLOON_SELECTION_REMOVED_ERROR');this['_currentConfig']['mainView']['showBlockingError'](_0x8add95),this['fire']('selectionRemoved');}}});}['_cleanupFakeVisualSelectionMarkerRemovalListener'](){const _0x118a8f=getEditorFromContext(this['context']);this['_currentConfig']['mainView']['hideError'](),this['stopListening'](_0x118a8f['model']['document']);}['_getSelectionElements'](){const _0x1a6392=getEditorFromContext(this['context']);return getAllMarkersDomElementsSorted(_0x1a6392['editing'],[..._0x1a6392['model']['markers']['getMarkersGroup']('ai-selection'),..._0x1a6392['model']['markers']['getMarkersGroup']('ai-balloon-selection')]);}}class AIMiniToolbarView extends ToolbarView{['copyButton'];['likeButton'];['dislikeButton'];['showChangesButton'];['_config'];constructor(_0xa1f0c3,_0x3c0d9d={}){super(_0xa1f0c3),this['set']('isEnabled',!0x0),this['set']('isShowChangesOn',!0x1),this['_config']={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3c0d9d};const _0x3be623=!(this['_config']['showCopy']||this['_config']['showChanges']||this['_config']['showLike']||this['_config']['showDislike']||this['_config']['customView']?.['length']);this['class']=_0x3be623?'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'](_0x338fc7){this['showChangesButton']['isEnabled']=_0x338fc7;}['_setupRatingButtons'](){this['likeButton']=new ButtonView(this['locale']),this['likeButton']['set']({'icon':IconThumbUp,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_LIKE'),'tooltip':!0x0}),this['likeButton']['bind']('isEnabled')['to'](this),this['likeButton']['on']('execute',()=>{this['fire']('like');}),this['dislikeButton']=new ButtonView(this['locale']),this['dislikeButton']['set']({'icon':IconThumbDown,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_DISLIKE'),'tooltip':!0x0}),this['dislikeButton']['bind']('isEnabled')['to'](this),this['dislikeButton']['on']('execute',()=>{this['fire']('dislike');});}['_setupCopyButton'](){this['copyButton']=new ButtonView(this['locale']),this['copyButton']['set']({'icon':_0x206295,'label':getTranslation$i(this['locale'],'AI_MINI_TOOLBAR_COPY'),'class':'ck-ai-mini-toolbar-copy-button','tooltip':!0x0}),this['copyButton']['bind']('isEnabled')['to'](this);const _0x444106=new IconView();_0x444106['set']({'content':_0x45bff4}),_0x444106['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',setTimeout(()=>{this['copyButton']['class']='ck-ai-mini-toolbar-copy-button';},0x7d0);}),this['copyButton']['children']['add'](_0x444106);}['_setupShowChangesButton'](){this['showChangesButton']=new ButtonView(this['locale']),this['showChangesButton']['set']({'icon':_0x2570a7,'label':getTranslation$i(this['locale'],'AI_SUGGESTION_BUTTON_SHOW_CHANGES'),'withText':'full'==this['_config']['showChanges'],'tooltip':'full'!=this['_config']['showChanges'],'class':'ck-ai-button-tertiary'}),this['showChangesButton']['bind']('isOn')['to'](this,'isShowChangesOn'),this['showChangesButton']['bind']('isEnabled')['to'](this),this['showChangesButton']['bind']('icon')['to'](this,'isShowChangesOn',_0x148d47=>_0x148d47?_0x179ead:_0x2570a7),this['showChangesButton']['on']('execute',()=>{this['fire']('toggleShowChanges');});}}class AIChatBalloonView extends AIBalloonView{['children'];['nextButtonView'];['previousButtonView'];['focusCycler'];['_focusables'];['_focusTracker'];['_keystrokes'];['_config'];['_streamableContentView'];['_toolbarContainerView'];['_partToolbarView'];['_stateView'];['_miniToolbarView'];constructor(_0x151b8f,_0x2ed748){super(_0x151b8f);const _0x4d44d6=this['bindTemplate'];this['set']('showDiff',!0x1),this['set']('_state','pending'),this['_focusTracker']=new FocusTracker(),this['_keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_config']=_0x2ed748,this['nextButtonView']=this['_createNextButtonView'](),this['previousButtonView']=this['_createPreviousButtonView'](),this['_streamableContentView']=new AISuggestionStreamableContentView(_0x151b8f),this['_partToolbarView']=new AISuggestionContentPartToolbarView(_0x151b8f,_0x2ed748['availableActions']),this['_partToolbarView']['delegate']('applySuggestion','insertSuggestion','rejectSuggestion')['to'](this),this['_togglePartToolbarButtonsVisibility'](_0x2ed748),this['_stateView']=new AISuggestionContentPartStateView(_0x151b8f),this['_stateView']['isVisible']=!0x1,this['_miniToolbarView']=new AIMiniToolbarView(_0x151b8f,{'showChanges':'full'}),this['_miniToolbarView']['bind']('isShowChangesOn')['to'](this,'showDiff'),this['_miniToolbarView']['on']('toggleShowChanges',()=>{this['fire']('toggleSuggestionDisplayMode');}),this['_toolbarContainerView']=new AIChatBalloonToolbarContainerView(_0x151b8f,[this['_partToolbarView'],this['_stateView'],this['_miniToolbarView']]),this['children']=this['createCollection']([this['_streamableContentView'],this['_toolbarContainerView']]),this['on']('change:_state',(_0x195db1,_0x56e702,_0x3d79de,_0x3e7a90)=>{let _0x4ef27e,_0x309ada;'pending'===_0x3e7a90?(_0x4ef27e=this['_partToolbarView'],_0x309ada=this['_stateView']):(_0x4ef27e=this['_stateView'],_0x309ada=this['_partToolbarView']),this['_stateView']['setState'](_0x3d79de),_0x4ef27e['isVisible']=!0x1,_0x309ada['isVisible']=!0x0;}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-chat-balloon-main',_0x4d44d6['to']('_state',_0x3aede8=>'ck-ai-chat-balloon-main_state_'+_0x3aede8)]},'children':this['children']}),this['on']('change:isTrackChangesOn',()=>{this['_togglePartToolbarButtonsVisibility'](_0x2ed748);});}['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'](_0x36f821){_0x36f821?.['keepErrors']||this['hideError'](),await this['_streamableContentView']['update'](_0x36f821);}['setState'](_0x496df4){this['_state']=_0x496df4;}['showError'](_0x4141ea){super['showError'](_0x4141ea),this['children']['has'](this['_errorView'])||this['children']['add'](this['_errorView'],0x0);}['hideError'](){this['_isErrorVisible']&&(super['hideError'](),this['togglePartToolbarEnabled'](!0x0));}['showBlockingError'](_0x3b7361){super['showBlockingError'](_0x3b7361),this['togglePartToolbarEnabled'](!0x1);}['toggleRotatorButtonsVisibility'](_0x4f740d){this['nextButtonView']['isVisible']=this['previousButtonView']['isVisible']=_0x4f740d;}['togglePartToolbarEnabled'](_0xd44d70){this['_partToolbarView']['isEnabled']=_0xd44d70;}['_togglePartToolbarButtonsVisibility']({showApplyButton:_0x58ffa8,showSuggestButton:_0x399a31}){_0x58ffa8=_0x58ffa8&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x399a31=_0x399a31&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_partToolbarView']['setButtonsVisibility']({'showApplyButton':_0x58ffa8,'showSuggestButton':_0x399a31});}['_createNextButtonView'](){const _0x25f71b=new ButtonView(this['locale']);return _0x25f71b['set']({'icon':IconChevronDown,'label':getTranslation$i(this['locale'],'AI_BALLOON_NEXT_LABEL'),'isVisible':!0x0}),_0x25f71b['on']('execute',()=>{this['fire']('showNext');}),_0x25f71b;}['_createPreviousButtonView'](){const _0x1636a7=new ButtonView(this['locale']);return _0x1636a7['set']({'icon':IconChevronUp,'label':getTranslation$i(this['locale'],'AI_BALLOON_PREVIOUS_LABEL'),'isVisible':!0x0}),_0x1636a7['on']('execute',()=>{this['fire']('showPrevious');}),_0x1636a7;}}class AIChatBalloonToolbarContainerView extends View{constructor(_0x4c1922,_0x26a79c){super(_0x4c1922),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-chat-balloon__toolbar-container']},'children':_0x26a79c});}}class AIChatBalloon extends Plugin{static get['requires'](){return[Dialog,AIBalloon];}static get['pluginName'](){return'AIChatBalloon';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_chatBalloonView'];constructor(_0x296c06){super(_0x296c06),this['set']('showDiff',!0x1);}['open'](_0x2c0acc){const _0x39bd8c=this['editor'];this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),_0x39bd8c['plugins']['get']('AIBalloon')['open']({..._0x2c0acc,'id':'aiChatBalloon','class':'ck-ai-chat-balloon','mainView':this['_chatBalloonView']}),this['_toggleRotatorButtonsInDialogHeader'](_0x2c0acc['showRotator']),this['_chatBalloonView']['togglePartToolbarEnabled'](!_0x2c0acc['areActionsDisabled']),this['_restoreDefaultViewFocus']();}['close'](){this['editor']['plugins']['get']('AIBalloon')['close']();}['updateContent'](_0x4906c3){return this['_chatBalloonView']||(this['_chatBalloonView']=this['_createChatBalloonView']()),this['_chatBalloonView']['updateContent'](_0x4906c3);}['setState'](_0x54b0df){this['_chatBalloonView']&&this['_chatBalloonView']['setState'](_0x54b0df);}['_createChatBalloonView'](){const _0x148f96=this['editor'],_0x220c36=_0x148f96['plugins']['get']('AIBalloon'),_0x24dbca=_0x148f96['commands']['get']('trackChanges');let _0x5e2db6=_0x148f96['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x148f96['plugins']['has']('TrackChanges')||(_0x5e2db6=_0x5e2db6['filter'](_0x3575d2=>'insertSuggestion'!=_0x3575d2));const _0x225d7c=new AIChatBalloonView(_0x148f96['locale'],{'availableActions':_0x5e2db6,'showApplyButton':!0x0,'showSuggestButton':!!_0x24dbca});return _0x225d7c['bind']('showDiff')['to'](this),_0x225d7c['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['to'](this),_0x225d7c['delegate']('showPrevious','showNext')['to'](this),_0x220c36['delegate']('dialogClosed')['to'](this),_0x225d7c['on']('applySuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x225d7c['on']('insertSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x225d7c['on']('rejectSuggestion',this['_restoreDefaultViewFocus']['bind'](this)),_0x24dbca&&_0x225d7c['bind']('isTrackChangesOn')['to'](_0x24dbca,'value'),_0x225d7c['render'](),_0x225d7c;}['_toggleRotatorButtonsInDialogHeader'](_0xff911e){const _0x15993b=this['editor'],_0x460321=_0x15993b['plugins']['get']('Dialog')['view']['headerView']['children'];this['_chatBalloonView']['toggleRotatorButtonsVisibility'](_0xff911e),_0x460321['has'](this['_chatBalloonView']['previousButtonView'])||(_0x460321['addMany']([this['_chatBalloonView']['previousButtonView'],this['_chatBalloonView']['nextButtonView']],0x0),_0x15993b['plugins']['get']('AIBalloon')['once']('beforeDialogClosed',()=>{_0x460321['remove'](this['_chatBalloonView']['previousButtonView']),_0x460321['remove'](this['_chatBalloonView']['nextButtonView']);}));}['_restoreDefaultViewFocus'](){this['_chatBalloonView']['focus']();}}class AIEditorIntegration extends Plugin{static get['requires'](){return[AIToggleButtonUI,AIChatBalloon,SuggestionsConversion];}static get['pluginName'](){return'AIEditorIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function aiQuickActionsButtonCreator(_0x45a047){const {editor:_0x383daa,action:_0x35d90f,withText:_0x4ae2c7=!0x1,withIcon:_0x1fdf35=!0x0,isInDropdown:_0x26af30=!0x0,shouldPreventFocus:_0x4fe0ac=!0x1}=_0x45a047;return()=>{const _0x1a124d=_0x383daa['locale'],_0x3465c7=new ButtonView(_0x1a124d),_0x1e70d7=_0x3465c7['bindTemplate'];_0x26af30&&_0x3465c7['extendTemplate']({'on':{'mouseenter':_0x1e70d7['to'](()=>{_0x4fe0ac&&_0x4fe0ac()||_0x3465c7['focus']();})}});const _0x33d4c8=_0x35d90f['icon']??_0x35d90f['parent']?.['icon'];return _0x3465c7['set']({'label':_0x35d90f['displayedPrompt'],'withText':_0x4ae2c7,'role':'menuitem','icon':_0x1fdf35?_0x33d4c8??IconAIQuickActions:void 0x0,'tooltip':!_0x4ae2c7,'class':'ck-ai-quick-actions-button','isEnabled':_0x35d90f['isEnabled']}),_0x3465c7['on']('execute',()=>{_0x383daa['editing']['view']['focus'](),_0x383daa['commands']['execute']('aiQuickAction',_0x35d90f);}),_0x3465c7;};}class DropdownMenuButtonWithHighlightView extends ListItemButtonView{['arrowView'];constructor(_0x5d838f,_0x17af7c){super(_0x5d838f,_0x17af7c);const _0x44a1a4=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',_0x1f0d47=>String(_0x1f0d47)),'data-cke-tooltip-disabled':_0x44a1a4['to']('isOn')},'on':{'mouseenter':_0x44a1a4['to']('mouseenter')}});}['render'](){super['render'](),this['children']['add'](this['arrowView']);}['_createArrowView'](){const _0xb28a35=new IconView();return _0xb28a35['content']=IconDropdownArrow,_0xb28a35['extendTemplate']({'attributes':{'class':'ck-dropdown-menu-list__nested-menu__button__arrow'}}),_0xb28a35;}}class AIQuickActionsFilteredListView extends ListView{['_allListItems'];['_allSearchableItems'];constructor(_0x32248b,_0x2296e6,_0x1b65f6){super(_0x32248b),this['_allListItems']=_0x2296e6,this['_allSearchableItems']=_0x1b65f6;}['filter'](_0x2cb56e){if(!_0x2cb56e)return this['items']['clear'](),this['items']['addMany'](this['_allListItems']),this['_clearHighlight'](),{'resultsCount':this['_allListItems']['length'],'totalItemsCount':this['_allListItems']['length']};const _0x2cde98=_0x2cb56e['source']['toLowerCase']()['trim'](),_0x858467=this['_allSearchableItems']['filter'](_0x2ac19d=>(_0x2ac19d['groupLabel']?_0x2ac19d['label']+'\x20('+_0x2ac19d['groupLabel']+')':_0x2ac19d['label'])['toLowerCase']()['includes'](_0x2cde98));return this['items']['clear'](),this['items']['addMany'](_0x858467['sort']((_0x26253a,_0x33d812)=>{const _0x48ef31=_0x26253a['groupLabel'],_0x2cc83b=_0x33d812['groupLabel'];return _0x48ef31||_0x2cc83b?_0x48ef31?0x1:-0x1:0x0;})['map'](_0x2e6ce7=>_0x2e6ce7['item'])),this['_highlightQuery'](_0x2cde98,_0x858467),{'resultsCount':_0x858467['length'],'totalItemsCount':this['_allSearchableItems']['length']};}['_highlightQuery'](_0x4dff0d,_0x4a074d){if(!_0x4dff0d)return;const _0x10b25e=new RegExp(escapeRegExp$1(_0x4dff0d),'gi');_0x4a074d['forEach'](_0x6b906d=>{_0x6b906d['highlightViews']&&_0x6b906d['highlightViews']['forEach'](_0x5e5cba=>{'function'==typeof _0x5e5cba['highlightText']&&_0x5e5cba['highlightText'](_0x10b25e);});});}['_clearHighlight'](){this['_allSearchableItems']['forEach'](_0x43292f=>{_0x43292f['highlightViews']&&_0x43292f['highlightViews']['forEach'](_0x427169=>{'function'==typeof _0x427169['highlightText']&&_0x427169['highlightText'](null);});});}}const UI_ROLES={'MENU':'menu','MENU_ITEM':'menuitem'};class AIQuickActionsDropdownContentView extends View{['_bodyCollection'];['optionsListView'];['_searchTextView']=null;['_allSearchableItems']=[];['children'];['focusTracker'];['keystrokes'];['_focusables'];['focusCycler'];['_openNestedPanels']=new Set();['_hasSearch'];constructor(_0x28152f,_0x2430bd,_0x4593b2,_0x52b3d3,_0x6caf5a=!0x1){const _0x21c5b9=_0x28152f['locale'];super(_0x21c5b9),this['_bodyCollection']=_0x52b3d3,this['_hasSearch']=_0x6caf5a;const _0x36e277=this['_createListItems'](_0x28152f,_0x2430bd,_0x4593b2);this['optionsListView']=new AIQuickActionsFilteredListView(_0x21c5b9,_0x36e277,this['_allSearchableItems']),this['optionsListView']['role']=UI_ROLES['MENU'],this['optionsListView']['items']['addMany'](_0x36e277),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),_0x6caf5a&&(this['_searchTextView']=this['_createSearchTextView']()),this['_focusables']=_0x36e277,this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes']}),_0x6caf5a&&this['_searchTextView']&&this['focusCycler']['chain'](this['_searchTextView']['focusCycler']);const _0x26ce73=_0x6caf5a&&this['_searchTextView']?[this['_searchTextView']]:[this['optionsListView']];this['children']=new ViewCollection(_0x26ce73),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions','ck-rounded-corners'],'dir':_0x21c5b9['uiLanguageDirection']},'children':this['children']});}['_createSearchTextView'](){return new SearchTextView(this['locale'],{'filteredView':this['optionsListView'],'queryView':{'label':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH')},'class':'ck-ai-quick-actions-search','infoView':{'text':{'notFound':{'primary':getTranslation$i(this['locale'],'AI_QUICK_ACTIONS_SEARCH_NOT_FOUND')}}}});}['_isSearchFocused'](){if(!this['_hasSearch']||!this['_searchTextView']||!this['_searchTextView']['queryView']['fieldView']['element'])return!0x1;const _0x41768b=this['_searchTextView']['queryView']['fieldView']['element']['ownerDocument']?.['activeElement'];return this['_searchTextView']['queryView']['fieldView']['element']['contains'](_0x41768b);}['_createListItems'](_0x2dfcbc,_0x1f00af,_0x4dee0c){const _0x1a8cac=new ViewCollection();return _0x1f00af['forEach'](_0x44c8e2=>{if('actions'in _0x44c8e2){const {listItem:_0x3fbb36}=this['_createActionGroupButton'](_0x2dfcbc,_0x44c8e2,_0x4dee0c);_0x1a8cac['add'](_0x3fbb36),_0x44c8e2['actions']['forEach'](_0x531bdf=>{this['_createActionButton'](_0x2dfcbc,_0x531bdf,_0x44c8e2['label'],_0x44c8e2['icon']);const {listItem:_0x2a7f20,highlightViews:_0x5b82e9}=this['_createSearchResultActionButton'](_0x2dfcbc,_0x531bdf,_0x44c8e2['label'],_0x44c8e2['icon']);this['_allSearchableItems']['push']({'item':_0x2a7f20,'label':_0x531bdf['displayedPrompt'],'groupLabel':_0x44c8e2['label'],'highlightViews':_0x5b82e9});});}else{const {listItem:_0x2b7d3c}=this['_createActionButton'](_0x2dfcbc,_0x44c8e2);_0x1a8cac['add'](_0x2b7d3c);const _0x266da8=_0x2b7d3c['children']['first'];if(_0x266da8){const {listItem:_0x53a004,highlightViews:_0x2a03ac}=this['_createSearchResultActionButton'](_0x2dfcbc,_0x44c8e2);this['_allSearchableItems']['push']({'item':_0x53a004,'label':_0x266da8['label']||'','highlightViews':_0x2a03ac});}}}),_0x1a8cac;}['_createActionButton'](_0x1c9591,_0xb33ac4,_0xd96785,_0x27ba4d){const _0x4f42f2=new ListItemView(this['locale']);if(_0xd96785&&_0x27ba4d){const _0x16a39f=new ButtonView(this['locale']),_0x24dd0b=_0x16a39f['bindTemplate'],_0x36034f=new HighlightedTextView();_0x36034f['text']=_0xb33ac4['displayedPrompt'];const _0xe662f6=new HighlightedTextView();_0xe662f6['text']=_0xd96785;const _0x2d9397=new IconView();_0x2d9397['content']=_0x27ba4d,_0x2d9397['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x567da8=new View(this['locale']);_0x567da8['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__open-paren'},'children':[{'text':'\x20('}]});const _0xa9f592=new View(this['locale']);return _0xa9f592['setTemplate']({'tag':'span','attributes':{'class':'ck-ai-quick-actions-button_with-group__close-paren'},'children':[{'text':')'}]}),_0x16a39f['set']({'label':_0xb33ac4['displayedPrompt']+'\x20('+_0xd96785+')','withText':!0x0,'role':'menuitem','class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-button_with-group','tooltip':!0x1}),_0x16a39f['setTemplate']({'tag':'button','attributes':{'class':['ck','ck-button','ck-button_with-text','ck-ai-quick-actions-button','ck-ai-quick-actions-button_with-group'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x36034f,_0x567da8,_0x2d9397,_0xe662f6,_0xa9f592],'on':{'mouseenter':_0x24dd0b['to'](()=>{this['_isSearchFocused']()||_0x16a39f['focus']();}),'click':_0x24dd0b['to'](()=>{_0x16a39f['fire']('execute');})}}),_0x16a39f['on']('execute',()=>{_0x1c9591['editing']['view']['focus'](),_0x1c9591['commands']['execute']('aiQuickAction',_0xb33ac4);}),_0x4f42f2['children']['add'](_0x16a39f),{'listItem':_0x4f42f2,'highlightViews':[_0x36034f,_0xe662f6]};}{const _0x235fce=new ButtonLabelWithHighlightView(),_0x3382d8=new ButtonView(this['locale'],_0x235fce),_0x4768ca=_0x3382d8['bindTemplate'],_0x4dfcb9=_0xb33ac4['icon']??_0xb33ac4['parent']?.['icon'],_0x4b27ec=void 0x0!==_0xb33ac4['icon'];return _0x3382d8['set']({'label':_0xb33ac4['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':_0x4b27ec?_0x4dfcb9??IconAIQuickActions:void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button'}),_0x3382d8['extendTemplate']({'on':{'mouseenter':_0x4768ca['to'](()=>{this['_isSearchFocused']()||_0x3382d8['focus']();})}}),_0x3382d8['on']('execute',()=>{_0x1c9591['editing']['view']['focus'](),_0x1c9591['commands']['execute']('aiQuickAction',_0xb33ac4);}),_0x4f42f2['children']['add'](_0x3382d8),{'listItem':_0x4f42f2,'highlightViews':[_0x235fce]};}}['_createSearchResultActionButton'](_0x3f2013,_0x40b87,_0x4bed79,_0x3d3ef2){return _0x4bed79&&_0x3d3ef2?this['_createSearchResultGroupedActionButton'](_0x3f2013,_0x40b87,_0x4bed79,_0x3d3ef2):this['_createSearchResultIndividualActionButton'](_0x3f2013,_0x40b87);}['_createSearchResultGroupedActionButton'](_0x579cf7,_0x490e97,_0xd46bbb,_0x39c720){const _0x4d6dc7=new ListItemView(this['locale']),_0x387970=new ButtonView(this['locale']),_0x591cb6=_0x387970['bindTemplate'],{view:_0x1f12ce,highlightView:_0x694436}=this['_createSearchResultGroupRow'](_0xd46bbb,_0x39c720),{view:_0x146098,highlightView:_0x358745}=this['_createSearchResultActionRow'](_0x490e97['displayedPrompt']),_0x402916=this['_createSearchResultContentView'](_0x1f12ce,_0x146098);return _0x387970['set']({'label':_0x490e97['displayedPrompt'],'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}),_0x387970['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'],'type':'button','role':'menuitem','tabindex':'-1'},'children':[_0x402916],'on':{'mouseenter':_0x591cb6['to'](()=>{this['_isSearchFocused']()||_0x387970['focus']();}),'click':_0x591cb6['to'](()=>{this['_handleSearchResultButtonClick'](_0x387970);})}}),this['_setupActionButtonExecution'](_0x387970,_0x579cf7,_0x490e97),_0x4d6dc7['children']['add'](_0x387970),{'listItem':_0x4d6dc7,'highlightViews':[_0x694436,_0x358745]};}['_createSearchResultIndividualActionButton'](_0x32bb7b,_0x4fd237){const _0x29b004=new ListItemView(this['locale']),_0x53bbf9=new ButtonLabelWithHighlightView(),_0x36c8a1=new ButtonView(this['locale'],_0x53bbf9),_0x5334d7=_0x36c8a1['bindTemplate'];return _0x36c8a1['set']({'label':_0x4fd237['displayedPrompt'],'withText':!0x0,'role':'menuitem','icon':void 0x0,'tooltip':!0x1,'class':'ck-ai-quick-actions-button\x20ck-ai-quick-actions-search-result-button'}),_0x36c8a1['extendTemplate']({'on':{'mouseenter':_0x5334d7['to'](()=>{this['_isSearchFocused']()||_0x36c8a1['focus']();})}}),this['_setupActionButtonExecution'](_0x36c8a1,_0x32bb7b,_0x4fd237),_0x29b004['children']['add'](_0x36c8a1),{'listItem':_0x29b004,'highlightViews':[_0x53bbf9]};}['_createSearchResultGroupRow'](_0x4b72cd,_0x3049ad){const _0x5034b7=new View(this['locale']),_0x11a7e4=new IconView();_0x11a7e4['content']=_0x3049ad,_0x11a7e4['extendTemplate']({'attributes':{'class':'ck-ai-quick-actions-button__group-icon'}});const _0x43efd4=new HighlightedTextView();return _0x43efd4['text']=_0x4b72cd,_0x5034b7['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__group-row'},'children':[_0x11a7e4,_0x43efd4]}),{'view':_0x5034b7,'highlightView':_0x43efd4};}['_createSearchResultActionRow'](_0x14b8ac){const _0x244ae0=new View(this['locale']),_0x58d519=new HighlightedTextView();return _0x58d519['text']=_0x14b8ac,_0x244ae0['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__action-row'},'children':[_0x58d519]}),{'view':_0x244ae0,'highlightView':_0x58d519};}['_createSearchResultContentView'](_0x5a6c23,_0x483a90){const _0x2aa5c8=new View(this['locale']);return _0x2aa5c8['setTemplate']({'tag':'div','attributes':{'class':'ck-ai-quick-actions-search-result__content'},'children':[_0x5a6c23,_0x483a90]}),_0x2aa5c8;}['_setupActionButtonExecution'](_0x4dadd2,_0x224c46,_0x3807ad){_0x4dadd2['on']('execute',()=>{_0x224c46['editing']['view']['focus'](),_0x224c46['commands']['execute']('aiQuickAction',_0x3807ad);});}['_createActionGroupButton'](_0x2a53f1,_0x4d97e9,_0x4aa97d){const _0x138a7b=new ListItemView(this['locale']),_0x546387=new ButtonLabelWithHighlightView(),_0x221346=new DropdownMenuButtonWithHighlightView(this['locale'],_0x546387),_0x38d166=_0x221346['bindTemplate'],_0x60cd6e=this['_getPanelKeystroke'](_0x4aa97d),_0x5d881d=this['_createGroupActionsList'](_0x2a53f1,_0x4d97e9['actions'],_0x4aa97d);_0x221346['set']({'label':_0x4d97e9['label'],'withText':!0x0,'role':UI_ROLES['MENU_ITEM'],'icon':_0x4d97e9['icon']??IconAIQuickActions,'isEnabled':_0x4d97e9['actions']['some'](_0x1ea028=>_0x1ea028['isEnabled'])}),_0x221346['extendTemplate']({'on':{'mouseenter':_0x38d166['to'](()=>{this['_isSearchFocused']()||_0x221346['focus']();})}});const _0x7a81bc=new BalloonPanelView(this['locale']);return _0x7a81bc['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-panel','ck-dropdown-menu__nested-menu__panel']},'on':{'keydown':_0x38d166['to'](_0x492dc7=>{this['_handlePanelKeydown'](_0x492dc7,_0x60cd6e,_0x221346,_0x7a81bc);})}}),_0x221346['bind']('isOn')['to'](_0x7a81bc,'isVisible'),this['_bodyCollection']['add'](_0x7a81bc),_0x7a81bc['content']['add'](_0x5d881d),this['_setupGroupMenuBehavior'](_0x221346,_0x7a81bc),_0x138a7b['children']['add'](_0x221346),{'listItem':_0x138a7b,'highlightView':_0x546387};}['_createGroupActionsList'](_0xdfcf5,_0x466111,_0x53c05e){const _0x4bbe9c=new ListView(this['locale']);return _0x4bbe9c['extendTemplate']({'attributes':{'class':['ck','ck-reset_all','ck-ai-quick-actions-group-list','ck-dropdown-menu-list']}}),_0x466111['forEach'](_0x5376bf=>{const _0x1c2f3a=new ListItemView(this['locale']),_0x43cd50=aiQuickActionsButtonCreator({'editor':_0xdfcf5,'action':_0x5376bf,'withText':!0x0,'withIcon':!0x1,'isInDropdown':!0x0,'shouldPreventFocus':()=>this['_isSearchFocused']()})();_0x1c2f3a['children']['add'](_0x43cd50),_0x53c05e['focusTracker']['add'](_0x43cd50),_0x4bbe9c['items']['add'](_0x1c2f3a);}),_0x4bbe9c;}['_setupGroupMenuBehavior'](_0x2770c0,_0x26c8f9){const _0x531153=_0x2770c0['bindTemplate'],_0x35c36c=this['_getButtonKeystroke'](_0x2770c0);_0x2770c0['extendTemplate']({'attributes':{'class':['ck-ai-quick-actions-group-button']},'on':{'mouseenter':_0x531153['to'](()=>{this['_showNestedPanel'](_0x26c8f9,_0x2770c0);}),'mouseleave':_0x531153['to'](_0x411071=>{const _0x24f922=_0x411071['relatedTarget'];this['_isMovingToNestedMenu'](_0x24f922,_0x26c8f9)||this['_hideNestedPanel'](_0x26c8f9);}),'keydown':_0x531153['to'](_0x3ee932=>{_0x3ee932['key']==_0x35c36c&&(this['_showNestedPanel'](_0x26c8f9,_0x2770c0),_0x26c8f9['content']['get'](0x0)['focus']());})}}),_0x26c8f9['on']('render',()=>{_0x26c8f9['element']?.['addEventListener']('mouseleave',_0x3e49f4=>{const _0x157cdd=_0x3e49f4['relatedTarget'];_0x2770c0['element']?.['contains'](_0x157cdd)||this['_isMovingToNestedMenu'](_0x157cdd,_0x26c8f9)||this['_hideNestedPanel'](_0x26c8f9);});});}['_showNestedPanel'](_0x4200ff,_0x9fcfe8){this['_openNestedPanels']['forEach'](_0x26fa1a=>{_0x26fa1a!==_0x4200ff&&_0x26fa1a['isVisible']&&_0x26fa1a['hide']();}),_0x4200ff['show'](),_0x4200ff['pin']({'positions':[DropdownMenuPanelPositioningFunctions['eastSouth']],'target':_0x9fcfe8['element'],'fitInViewport':!0x0}),this['_openNestedPanels']['add'](_0x4200ff);}['_hideNestedPanel'](_0x56881a){_0x56881a['hide'](),this['_openNestedPanels']['delete'](_0x56881a);}['_hideAllNestedPanels'](){this['_openNestedPanels']['forEach'](_0x56237e=>_0x56237e['hide']()),this['_openNestedPanels']['clear']();}['_isMovingToNestedMenu'](_0xc1e798,_0x2491ae){if(!_0xc1e798)return!0x1;if(_0x2491ae['element']?.['contains'](_0xc1e798))return!0x0;const _0x490ffe=_0xc1e798;return _0x490ffe['closest']&&(null!==_0x490ffe['closest']('.ck-ai-quick-actions-group-panel')||null!==_0x490ffe['closest']('.ck-ai-quick-actions-group-list')||null!==_0x490ffe['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'](_0x23b195){return'rtl'===_0x23b195['locale']['uiLanguageDirection']?'ArrowRight':'ArrowLeft';}['_getButtonKeystroke'](_0x12774c){return'rtl'===_0x12774c['locale']['uiLanguageDirection']?'ArrowLeft':'ArrowRight';}['_handlePanelKeydown'](_0x23f725,_0x3550cf,_0x31b1b9,_0x10f26e){_0x23f725['key']==_0x3550cf&&(_0x31b1b9['focus'](),this['_hideNestedPanel'](_0x10f26e));}['_handleSearchResultButtonClick'](_0x14b492){_0x14b492['fire']('execute');}}function aiQuickActionsDropdownCreator(_0x5f3e40){const {editor:_0x57bbdf,content:_0x375565,buttonDefinition:_0x499e49,bodyCollection:_0x1d302d,hasSearch:_0xbb8526=!0x1}=_0x5f3e40;return()=>{const _0x451235=_0x57bbdf['locale'],_0x5b1ba0=createDropdown(_0x451235);_0x5b1ba0['buttonView']['set']({'icon':_0x499e49['icon']??IconAIQuickActions,'label':_0x499e49['label'],'tooltip':!0x0}),_0x5b1ba0['set']({'class':'ck-ai-quick-actions-dropdown'});const _0x4b54d3=new AIQuickActionsDropdownContentView(_0x57bbdf,_0x375565,_0x5b1ba0,_0x1d302d,_0xbb8526);if(_0x5b1ba0['panelView']['children']['add'](_0x4b54d3),_0xbb8526){const _0xc8c33b='ai-quick-actions-dropdown-selection';_0x5b1ba0['on']('change:isOpen',(_0x1b720d,_0x2ac58c,_0x2a65f7)=>{if(_0x2a65f7){if(_0x57bbdf['plugins']['has']('AIEditing')){const _0x5cf35d=_0x57bbdf['plugins']['get'](AIEditing),_0xd739c8=_0x57bbdf['model']['document']['selection'],_0x27544d=Array['from'](_0xd739c8['getRanges']());_0x27544d['length']>0x0&&_0x5cf35d['showFakeVisualSelection'](_0x27544d,_0xc8c33b,!0x1,!0x0);}}else _0x57bbdf['plugins']['has']('AIEditing')&&_0x57bbdf['plugins']['get'](AIEditing)['hideFakeVisualSelection'](_0xc8c33b),_0x4b54d3['resetSearch']();});}return _0x5b1ba0;};}const AI_QUICK_ACTIONS_EXPLAIN_PROMPT='<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\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).Avoid\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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_SUMMARIZE_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>',AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT='<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</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><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>';var AIQuickActionType=function(_0x4f04b8){return _0x4f04b8['CHAT']='CHAT',_0x4f04b8['ACTION']='ACTION',_0x4f04b8['REVIEW']='REVIEW',_0x4f04b8;}({}),AIQuickActionTypeToPluginName=function(_0x518d71){return _0x518d71['CHAT']='AIChat',_0x518d71['ACTION']='AIActions',_0x518d71['REVIEW']='AIReviewMode',_0x518d71;}({});class AIQuickActionsUI extends Plugin{static get['requires'](){return[BalloonToolbar,AIConnector];}static get['pluginName'](){return'AIQuickActionsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){const _0x8fd4f9=await this['_getDefaultAndCustomActions']();this['_prepareQuickActionsDefinition'](_0x8fd4f9),this['_initializeQuickActionsComponentsAndCommands']();}static['getDefaultQuickActions'](_0x5b343a){return getDefaultQuickActions(_0x5b343a);}async['_getDefaultAndCustomActions'](){const _0xadb5b5=AIQuickActionsUI['getDefaultQuickActions'](this['editor']['locale']),_0x12d682=this['editor']['config']['get']('ai.quickActions.extraCommands')||[];let _0x1d6226=[];try{_0x1d6226=await new AIModels({'connector':this['editor']['plugins']['get']('AIConnector'),'locale':this['editor']['locale']})['getAll']();}catch(_0x3c97e3){const _0xf6290a=new CKEditorError('ai-quick-actions-models-unable-to-retrieve',this,{'error':_0x3c97e3});logError(_0xf6290a['message']);}finally{const _0x454114=_0x12d682['map'](_0x373876=>({..._0x373876,'icon':void 0x0})),_0x1b5cd6=_0xadb5b5['find'](_0x32906a=>'other'===_0x32906a['id']);_0x1b5cd6['actions']['push'](..._0x454114),_0xadb5b5['forEach'](_0xd4cb9a=>{if('actions'in _0xd4cb9a)_0xd4cb9a['actions']['forEach'](_0x2f6749=>{if(_0x2f6749['isEnabled']=!!_0x1d6226['find'](_0x20280a=>_0x20280a['id']===_0x2f6749['model'])||void 0x0===_0x2f6749['model'],!_0x2f6749['isEnabled']){const _0x2dde95=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0x2f6749['id'],'modelId':_0x2f6749['model']});logError(_0x2dde95['message']);}});else{if(_0xd4cb9a['isEnabled']=!!_0x1d6226['find'](_0x5e82f7=>_0x5e82f7['id']===_0xd4cb9a['model'])||void 0x0===_0xd4cb9a['model'],!_0xd4cb9a['isEnabled']){const _0xa77231=new CKEditorError('ai-quick-actions-unavailable-model',this,{'actionId':_0xd4cb9a['id'],'modelId':_0xd4cb9a['model']});logError(_0xa77231['message']);}}});}return _0xadb5b5;}['_initializeQuickActionsComponentsAndCommands'](){const _0x460223=new BodyCollection(this['editor']['locale']);_0x460223['attachToDom'](),this['_initializeQuickActionsDropdown'](_0x460223),this['_initializeQuickActionsMenuBar'](),this['_initializeQuickActionsComponents'](_0x460223);}['_initializeQuickActionsDropdown'](_0x342a0f){const _0xe530b7=this['editor']['config']['get']('ai.quickActions.isSearchEnabled')??!0x0;this['editor']['ui']['componentFactory']['add']('aiQuickActions',aiQuickActionsDropdownCreator({'editor':this['editor'],'content':this['_quickActionsDefinition'],'buttonDefinition':{'icon':IconAIQuickActions,'label':getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_HEADING')},'bodyCollection':_0x342a0f,'hasSearch':_0xe530b7}));}['_prepareQuickActionsDefinition'](_0x25bf93){this['_quickActionsDefinition']=_0x25bf93['map'](_0x49a3c0=>{if('actions'in _0x49a3c0){const _0x526250=_0x49a3c0;return{..._0x526250,'actions':_0x526250['actions']['map'](_0x45bd20=>{const {actions:_0x252117,..._0x347bcc}=_0x526250;return{..._0x45bd20,'parent':_0x347bcc};})['filter'](_0x301429=>this['_shouldIncludeAction'](_0x301429))};}return _0x49a3c0;})['filter'](_0x68d601=>'actions'in _0x68d601?_0x68d601['actions']['length']>0x0:this['_shouldIncludeAction'](_0x68d601));}['_shouldIncludeAction'](_0x38ffc7){const _0x19fb12=this['editor']['config']['get']('ai.quickActions.removeCommands')||[];return this['editor']['plugins']['has'](AIQuickActionTypeToPluginName[_0x38ffc7['type']])&&!_0x19fb12['includes'](_0x38ffc7['id'])&&!('CHAT'===_0x38ffc7['type']&&!0x1===this['editor']['config']['get']('ai.chat.context.document.enabled'));}['_initializeQuickActionsComponents'](_0x3744dc){this['_quickActionsDefinition']['forEach'](_0xd13754=>{if('actions'in _0xd13754){const _0x1bdafb=aiQuickActionsDropdownCreator({'editor':this['editor'],'content':_0xd13754['actions'],'buttonDefinition':_0xd13754,'bodyCollection':_0x3744dc});this['editor']['ui']['componentFactory']['add'](_0xd13754['id'],_0x1bdafb),_0xd13754['actions']['forEach'](_0x3b1458=>{const _0x5da0de=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0x3b1458});this['editor']['ui']['componentFactory']['add'](_0x3b1458['id'],_0x5da0de);});}else{const _0x36ac37=aiQuickActionsButtonCreator({'editor':this['editor'],'action':_0xd13754,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this['editor']['ui']['componentFactory']['add'](_0xd13754['id'],_0x36ac37);}});}['_initializeQuickActionsMenuBar'](){this['editor']['ui']['componentFactory']['add']('menuBar:aiQuickActions',_0x27558e=>{const _0x57f205=new MenuBarMenuView(_0x27558e),_0x186fd7=getTranslation$i(_0x27558e,'AI_QUICK_ACTIONS_HEADING');_0x57f205['buttonView']['set']({'label':_0x186fd7,'icon':IconAIQuickActions});const _0x6ad629=new MenuBarMenuListView(_0x27558e);_0x6ad629['set']({'ariaLabel':_0x186fd7,'role':'menu'}),this['_quickActionsDefinition']['forEach'](_0xa64d25=>{if('actions'in _0xa64d25){const _0x1ae4ab=_0xa64d25,_0x326c17=new MenuBarMenuListItemView(_0x27558e,_0x57f205),_0x59120d=new MenuBarMenuView(_0x27558e),_0x31457f=new MenuBarMenuListView(_0x27558e);_0x59120d['buttonView']['set']({'label':_0x1ae4ab['label'],'icon':_0x1ae4ab['icon']}),_0x1ae4ab['actions']['forEach'](_0x42c33d=>{const _0x366dfe=new MenuBarMenuListItemView(_0x27558e,_0x59120d),_0x2c3785=new MenuBarMenuListItemButtonView(_0x27558e);_0x2c3785['set']({'label':_0x42c33d['displayedPrompt'],'icon':_0x42c33d['icon'],'role':'menuitem','isEnabled':_0x42c33d['isEnabled']}),_0x2c3785['on']('execute',()=>{this['_executeQuickAction'](_0x42c33d);}),_0x2c3785['delegate']('execute')['to'](_0x59120d),_0x366dfe['children']['add'](_0x2c3785),_0x31457f['items']['add'](_0x366dfe);}),_0x59120d['panelView']['children']['add'](_0x31457f),_0x326c17['children']['add'](_0x59120d),_0x6ad629['items']['add'](_0x326c17);}else{const _0x359c9f=_0xa64d25,_0x4dc13d=new MenuBarMenuListItemView(_0x27558e,_0x57f205),_0x63b178=new MenuBarMenuListItemButtonView(_0x27558e);_0x63b178['set']({'label':_0x359c9f['displayedPrompt'],'icon':_0x359c9f['icon'],'role':'menuitem','isEnabled':_0x359c9f['isEnabled']}),_0x63b178['on']('execute',()=>{this['_executeQuickAction'](_0x359c9f);}),_0x63b178['delegate']('execute')['to'](_0x57f205),_0x4dc13d['children']['add'](_0x63b178),_0x6ad629['items']['add'](_0x4dc13d);}});const _0x5b167d=Object['values'](AIQuickActionTypeToPluginName)['some'](_0x121b70=>this['editor']['plugins']['has'](_0x121b70));return _0x57f205['set']({'isEnabled':_0x5b167d}),_0x57f205['panelView']['children']['add'](_0x6ad629),_0x57f205;});}['_executeQuickAction'](_0xfa4f3b){const _0xa2b00b=this['editor'];_0xa2b00b['editing']['view']['focus'](),_0xa2b00b['commands']['execute']('aiQuickAction',_0xfa4f3b);const _0x2a1f3f=_0xa2b00b['ui']['view']['menuBarView'];_0x2a1f3f&&_0x2a1f3f['close']&&_0x2a1f3f['close']();}}function getDefaultQuickActions(_0x186666){const _0x498c9f=new Intl['DisplayNames'](['en'],{'type':'language'})['of'](_0x186666['uiLanguage'])||'English';return[{'id':'ask-ai','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_ASK_AI'),'type':'CHAT','icon':IconAIChatCommands},{'id':'chat-commands','label':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_CHAT_COMMANDS'),'icon':IconAIChatCommands,'actions':[{'id':'explain','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_EXPLAIN'),'prompt':AI_QUICK_ACTIONS_EXPLAIN_PROMPT['replace']('%0',_0x498c9f),'type':'CHAT'},{'id':'summarize','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_SUMMARIZE'),'prompt':AI_QUICK_ACTIONS_SUMMARIZE_PROMPT['replace']('%0',_0x498c9f),'type':'CHAT'},{'id':'highlight-key-points','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS'),'prompt':AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS_PROMPT['replace']('%0',_0x498c9f),'type':'CHAT'}]},{'id':'improve-writing','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_IMPROVE_WRITING'),'type':'ACTION','icon':IconAIImproveWriting},{'id':'continue','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_CONTINUE_WRITING'),'type':'ACTION','icon':IconAIContinueWriting},{'id':'fix-grammar','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING'),'type':'ACTION','icon':IconAIGrammarCheck},{'id':'adjust-length','label':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_ADJUST_LENGTH'),'icon':IconAIAdjustLength,'actions':[{'id':'make-shorter','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MAKE_SHORTER'),'type':'ACTION'},{'id':'make-longer','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MAKE_LONGER'),'type':'ACTION'}]},{'id':'change-tone','label':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_CHANGE_TONE'),'icon':IconAIChangeTone,'actions':[{'id':'make-tone-casual','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MORE_CASUAL'),'type':'ACTION'},{'id':'make-tone-direct','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MORE_DIRECT'),'type':'ACTION'},{'id':'make-tone-friendly','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MORE_FRIENDLY'),'type':'ACTION'},{'id':'make-tone-confident','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MORE_CONFIDENT'),'type':'ACTION'},{'id':'make-tone-professional','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_MORE_PROFESSIONAL'),'type':'ACTION'}]},{'id':'translate','label':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE'),'icon':IconAITranslate,'actions':[{'id':'translate-to-english','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_ENGLISH'),'type':'ACTION','actionName':'translate','args':{'language':'english'}},{'id':'translate-to-chinese','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_CHINESE'),'type':'ACTION','actionName':'translate','args':{'language':'chinese'}},{'id':'translate-to-spanish','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_SPANISH'),'type':'ACTION','actionName':'translate','args':{'language':'spanish'}},{'id':'translate-to-german','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_GERMAN'),'type':'ACTION','actionName':'translate','args':{'language':'german'}},{'id':'translate-to-french','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_FRENCH'),'type':'ACTION','actionName':'translate','args':{'language':'french'}},{'id':'translate-to-japanese','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_JAPANESE'),'type':'ACTION','actionName':'translate','args':{'language':'japanese'}},{'id':'translate-to-portuguese','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE'),'type':'ACTION','actionName':'translate','args':{'language':'portuguese'}},{'id':'translate-to-korean','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_KOREAN'),'type':'ACTION','actionName':'translate','args':{'language':'korean'}},{'id':'translate-to-italian','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_ITALIAN'),'type':'ACTION','actionName':'translate','args':{'language':'italian'}},{'id':'translate-to-russian','displayedPrompt':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN'),'type':'ACTION','actionName':'translate','args':{'language':'russian'}}]},{'id':'other','label':getTranslation$i(_0x186666,'AI_QUICK_ACTIONS_OTHER'),'icon':IconAIOther,'actions':[]}];}class AIQuickActionsCommand extends Command{['execute'](_0x3da58d){switch(this['_expandSelectionIfCollapsed'](),_0x3da58d['type']){case AIQuickActionType['CHAT']:if(!this['editor']['plugins']['has']('AIChat')){const _0x412b6e=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIChat');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x412b6e});}this['_handleAIChatAction'](_0x3da58d);break;case AIQuickActionType['ACTION']:if(!this['editor']['plugins']['has']('AIActions')){const _0x19895d=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIActions');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x19895d});}this['_handleAIActionsAction'](_0x3da58d);break;case AIQuickActionType['REVIEW']:if(!this['editor']['plugins']['has']('AIReviewMode')){const _0x2e71e6=getTranslation$i(this['editor']['locale'],'AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','AIReviewMode');throw new CKEditorError('ai-quick-actions-plugin-not-found',this['editor'],{'errorMessage':_0x2e71e6});}this['_handleAIReviewAction'](_0x3da58d);}}async['_handleAIChatAction'](_0x315df9){const _0x530829=this['editor']['plugins']['get']('AIChat'),_0x148e8b=this['editor']['plugins']['get']('AIChatController'),_0x263324=this['editor']['plugins']['get']('AITabs')['view'];if(_0x263324['isVisible']||(_0x263324['isVisible']=!0x0),'chat'!==_0x263324['activeTab']&&_0x263324['activateTab']('chat'),'ask-ai'===_0x315df9['id'])_0x148e8b['removeSelectionFromChatContext'](),await _0x530829['addSelectionToChatContext'](),_0x530829['focusPromptInput']();else await _0x530829['startConversation'](),_0x148e8b['removeSelectionFromChatContext'](),await _0x530829['addSelectionToChatContext'](),_0x530829['focusPromptInput'](),await _0x530829['sendMessage']({'message':_0x315df9['prompt']||_0x315df9['displayedPrompt'],'attributes':{'quickActionData':{'id':_0x315df9['id']},'displayedPrompt':_0x315df9['displayedPrompt']}});}['_expandSelectionIfCollapsed'](){const _0x1ab11e=this['editor'],_0x38224d=_0x1ab11e['model']['document']['selection'];if(!_0x38224d['isCollapsed'])return;const _0x5449b4=first(_0x38224d['getSelectedBlocks']())||_0x1ab11e['model']['schema']['getLimitElement'](_0x38224d);_0x1ab11e['model']['change'](_0x36f99c=>{_0x36f99c['setSelection'](_0x5449b4,'in');});}['_handleAIActionsActionLabel'](_0x1406b6){return _0x1406b6['parent']?.['label']&&'other'!==_0x1406b6['parent']?.['id']?_0x1406b6['parent']['label']+':\x20'+_0x1406b6['displayedPrompt']:_0x1406b6['displayedPrompt'];}async['_handleAIActionsAction'](_0x1298c1){const _0x530b58=this['editor']['plugins']['get']('AIActions'),_0x12cd53=_0x1298c1['prompt']?{'userMessage':_0x1298c1['prompt'],'model':_0x1298c1['model']}:{'actionName':_0x1298c1['actionName']||_0x1298c1['id'],'args':_0x1298c1['args']},_0xaf569=this['_handleAIActionsActionLabel'](_0x1298c1);await _0x530b58['executeAction'](_0x12cd53,_0xaf569,_0x1298c1['icon']);}async['_handleAIReviewAction'](_0xb42fc9){console['log']('handleAIReviewAction',_0xb42fc9);}}class AIQuickActionsEditing extends Plugin{static get['pluginName'](){return'AIQuickActionsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x248962=this['editor'],_0x466d4c=new AIQuickActionsCommand(this['editor']);if(_0x248962['commands']['add']('aiQuickAction',_0x466d4c),_0x248962['plugins']['has']('AIChat')){const _0x5a98e5=this['editor']['plugins']['get']('AIChat');_0x248962['model']['document']['selection']['on']('change:range',(_0x189835,_0x4f56bd)=>{_0x4f56bd['directChange']&&_0x5a98e5['removeSelectionFromChatContext']();});}}}class AIActionsReply extends AIReply{['updateChangeGroups'](){if(this['parsedMergedContent']=this['parsedContent']['cloneNode'](!0x0),0x0==this['parsedMergedContent']['childNodes']['length'])return void(this['changeGroups']=[]);const _0x3bac4c=diffArrays(this['documentContextContent']['children']['map'](_0x4cbfbb=>({'node':_0x4cbfbb,'id':getAttribute(_0x4cbfbb,'data-id')})),this['parsedMergedContent']['children']['map'](_0x3a837d=>({'node':_0x3a837d,'id':getAttribute(_0x3a837d,'data-id')||uid()})),{'comparator':(_0x901e14,_0xdf0f8c)=>_0x901e14['id']==_0xdf0f8c['id'],'oneChangePerToken':!0x0});if(!this['isDone']){for(;_0x3bac4c['length']&&_0x3bac4c[_0x3bac4c['length']-0x1]['removed'];)_0x3bac4c['pop']();}const _0x47d4b6=_0x3bac4c['map'](_0x2dce70=>{const _0x4725fe=_0x2dce70['added']?'new':_0x2dce70['removed']?'removed':'modified';return{'node':_0x2dce70['value'][0x0]['node'],'type':_0x4725fe,'id':_0x2dce70['value'][0x0]['id']};});this['changeGroups']=[{'changes':_0x47d4b6,'state':'pending','index':0x0}];}['_getDifferentChangeGroups'](_0x240fab,_0x58c088){return _0x58c088;}}class AIActionsInteraction extends AIInteraction{['content'];['version'];['actionName'];['args'];['userMessage'];['model'];['hasError']=!0x1;constructor(_0x2da21b){super(_0x2da21b),this['content']=_0x2da21b['content'],this['version']=_0x2da21b['version'],this['actionName']=_0x2da21b['actionName'],this['args']=_0x2da21b['args'],this['userMessage']=_0x2da21b['userMessage'],this['model']=_0x2da21b['model'];}async['sendRequest'](){return this['actionName']?this['connector']['executeAction']({'content':this['content'],'actionName':this['actionName'],'args':this['args']}):this['connector']['executeCustomAction']({'content':this['content'],'message':this['userMessage'],'model':this['model'],'outputFormat':'html'});}['getDocumentContext'](){return{'type':AIContextItemType['TEXT'],'content':this['content'],'version':this['version'],'label':'Current\x20document','uiId':'current-document'};}['createReply'](_0x59e59e){const _0xb2e2d9=new AIActionsReply({'editor':this['editor'],'documentContextContent':this['content'],..._0x59e59e});return this['replies']['push'](_0xb2e2d9),_0xb2e2d9['delegate'](...AI_MODEL_EVENT_NAMES)['to'](this),this['fire']('replyCreated',_0xb2e2d9),_0xb2e2d9;}}class AIActionsBalloonToolbarView extends ToolbarView{constructor(_0x1f415b,_0x33a827=!0x0,_0x1e943d=!0x0){super(_0x1f415b),this['set']('isEnabled',!0x1),_0x33a827&&(this['applyButton']=this['_createButton'](getTranslation$i(_0x1f415b,'AI_BALLOON_APPLY_BUTTON'),'ck-ai-button-primary'),this['applyButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['applyButton'])),_0x1e943d&&(this['suggestButton']=this['_createButton'](getTranslation$i(_0x1f415b,'AI_BALLOON_SUGGEST_BUTTON'),_0x33a827?'ck-ai-button-secondary':'ck-ai-button-primary'),this['suggestButton']['bind']('isEnabled')['to'](this),this['items']['add'](this['suggestButton'])),this['setButtonsVisibility']({'showApplyButton':_0x33a827,'showSuggestButton':_0x1e943d}),this['extendTemplate']({'attributes':{'class':['ck-ai-balloon__toolbar']}});}['setButtonsVisibility']({showApplyButton:_0x63378e,showSuggestButton:_0x568e29}){this['applyButton']&&(this['applyButton']['isVisible']=_0x63378e),this['suggestButton']&&(this['suggestButton']['isVisible']=_0x568e29);}['_createButton'](_0x2621be,_0x578f3a){const _0x5b4acd=new ButtonView(this['locale']);return _0x5b4acd['set']({'label':_0x2621be,'class':_0x578f3a,'isVisible':!0x0,'withText':!0x0}),_0x5b4acd;}}class AIActionsBalloonDisclaimerView extends View{constructor(_0x52f21f){super(_0x52f21f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-balloon__disclaimer']},'children':[{'tag':'p','attributes':{'class':['ck','ck-ai-balloon__disclaimer-content']},'children':[{'text':getTranslation$i(_0x52f21f,'AI_DISCLAIMER_TEXT')}]}]});}}class AISuggestionLoaderView extends View{constructor(_0x55a79e){super(_0x55a79e),this['set']('isVisible',!0x0);const _0x248798=new AISpinnerView('small');_0x248798['isVisible']=!0x0;const _0x283512=new View(this['locale']);_0x283512['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai-suggestion__loader-text']},'children':[getTranslation$i(this['locale'],'AI_CHAT_IS_WRITING')]}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-suggestion__loader',this['bindTemplate']['if']('isVisible','ck-hidden',_0x1070b9=>!_0x1070b9)]},'children':[_0x248798,_0x283512]});}}class AIActionsBalloonView extends AIBalloonView{['focusCycler'];['_config'];['_contentWrapper'];['_streamableContentView'];['_toolbarView'];['_miniToolbarView'];['_loaderView'];['_disclaimerView'];['_focusTracker'];['_keystrokes'];['_dialogContent'];['_focusables'];['_scrollManager'];['_navigationPreviousButton'];['_navigationNextButton'];['_navigationTryAgainButton'];['_navigationCounter'];constructor(_0x2c2407,_0x40da51){super(_0x2c2407),this['set']('isBusy',!0x1),this['set']('isTrackChangesOn',!0x1),this['set']('_isLoading',!0x1),this['set']('_hasError',!0x1),this['_config']=_0x40da51,this['_focusTracker']=new FocusTracker(),this['_keystrokes']=new KeystrokeHandler(),this['_focusables']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['_focusTracker'],'keystrokeHandler':this['_keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['_dialogContent']=new ViewCollection(),this['_addContentWrapper'](_0x40da51),this['_addDisclaimerView'](),this['_addToolbar'](_0x40da51),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'](_0x40da51);});}['render'](){super['render']();for(const _0x360515 of this['_focusables'])this['_focusTracker']['add'](_0x360515['element']);this['_keystrokes']['listenTo'](this['element']),this['_initializeScrollManager']();}['destroy'](){super['destroy'](),this['_scrollManager']&&this['_scrollManager']['destroy']();}['focus'](_0x56454c){-0x1===_0x56454c?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['setIsLoading'](_0x318835){this['_isLoading']=_0x318835;}['setErrorState'](){this['_hasError']=!0x0,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x1);}['clearErrorState'](){this['_hasError']=!0x1,this['_miniToolbarView']['toggleShowChangesEnabled'](!0x0);}['showError'](_0x61173b){super['showError'](_0x61173b),this['_dialogContent']['has'](this['_errorView'])||this['_dialogContent']['add'](this['_errorView'],0x0);}['hideError'](){super['hideError'](),this['clearErrorState']();}['showBlockingError'](_0x1d2e43){super['showBlockingError'](_0x1d2e43),this['setErrorState']();}['addMiniToolbarItem'](_0x51e31c){this['_miniToolbarView']['items']['has'](_0x51e31c)||this['_miniToolbarView']['items']['add'](_0x51e31c);}['removeMiniToolbarItem'](_0x6c43ed){this['_miniToolbarView']['items']['has'](_0x6c43ed)&&this['_miniToolbarView']['items']['remove'](_0x6c43ed);}['showLoader'](){this['_loaderView']&&(this['_isLoading']=!0x0);}['hideLoader'](){this['_loaderView']&&(this['_isLoading']=!0x1);}['_toggleToolbarButtonsVisibility']({showApplyButton:_0x5ac621,showSuggestButton:_0x49e38a}){_0x5ac621=_0x5ac621&&!this['isTrackChangesOn']&&this['_config']['availableActions']['includes']('applySuggestion'),_0x49e38a=_0x49e38a&&this['_config']['availableActions']['includes']('insertSuggestion'),this['_toolbarView']['setButtonsVisibility']({'showApplyButton':_0x5ac621,'showSuggestButton':_0x49e38a});}async['updateContent'](_0x494de2){await this['_streamableContentView']['update'](_0x494de2);}['clearContent'](){this['_streamableContentView']['clear']();}['_addContentWrapper'](_0x41ad1a){this['_contentWrapper']=new View(this['locale']),this['_contentWrapper']['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content']},'children':[{'tag':'div','attributes':{'class':['ck-ai-actions-balloon-content-wrapper']},'children':[this['_createLoaderView'](),this['_createStreamableContentView']()]},this['_createMiniToolbar'](_0x41ad1a['miniToolbarConfig'])]}),this['_dialogContent']['add'](this['_contentWrapper']);}['_addDisclaimerView'](){this['_disclaimerView']=new AIActionsBalloonDisclaimerView(this['locale']),this['_dialogContent']['add'](this['_disclaimerView']);}['_addToolbar']({showApplyButton:_0x268229,showSuggestButton:_0x38cd32}){this['_toolbarView']=new AIActionsBalloonToolbarView(this['locale'],_0x268229,_0x38cd32),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',(_0x4f2d84,_0x4cce69,_0x455ee3)=>!(_0x4f2d84||_0x4cce69||_0x455ee3)),this['_toggleToolbarButtonsVisibility']({'showApplyButton':_0x268229,'showSuggestButton':_0x38cd32}),this['_dialogContent']['add'](this['_toolbarView']);}['_createMiniToolbar'](_0x19f2b0){return this['_miniToolbarView']=new AIMiniToolbarView(this['locale'],_0x19f2b0),this['_miniToolbarView']['delegate'](...AI_SUGGESTION_UI_EVENT_NAMES)['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',(_0x59eb31,_0x502a5f)=>!(_0x59eb31||_0x502a5f)),this['_miniToolbarView'];}['_createLoaderView'](){return this['_loaderView']=new AISuggestionLoaderView(this['locale']),this['_loaderView']['bind']('isVisible')['to'](this,'_isLoading'),this['_loaderView'];}['_createStreamableContentView'](){return this['_streamableContentView']=new AISuggestionStreamableContentView(this['locale']),this['_streamableContentView'];}['_setupMiniToolbarButtons'](){const _0x4f85d9=new ButtonView(this['locale']),_0x7bacc6=new ButtonView(this['locale']),_0x52a375=new AIActionsBalloonNavigationCounterView(this['locale']),_0x2752e8=new ButtonView(this['locale']);_0x4f85d9['set']({'icon':IconRefresh,'label':getTranslation$i(this['locale'],'AI_ACTIONS_TRY_AGAIN'),'tooltip':!0x0,'class':'ck-ai-custom-action-button'}),_0x7bacc6['set']({'icon':IconPreviousArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_PREVIOUS_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-previous-button'}),_0x2752e8['set']({'icon':IconNextArrow,'tooltip':getTranslation$i(this['locale'],'AI_ACTIONS_NEXT_INTERACTION'),'class':'ck-ai-navigation-button\x20ck-ai-next-button'}),_0x4f85d9['bind']('isEnabled')['to'](this,'isBusy',_0x59680b=>!_0x59680b),_0x4f85d9['on']('execute',()=>{this['fire']('tryAgain');}),_0x7bacc6['bind']('isEnabled')['to'](this,'isBusy',_0x3358dd=>!_0x3358dd),_0x7bacc6['on']('execute',()=>{this['fire']('showPrevious');}),_0x2752e8['bind']('isEnabled')['to'](this,'isBusy',_0xa324b8=>!_0xa324b8),_0x2752e8['on']('execute',()=>{this['fire']('showNext');}),this['_navigationPreviousButton']=_0x7bacc6,this['_navigationCounter']=_0x52a375,this['_navigationNextButton']=_0x2752e8,this['_navigationTryAgainButton']=_0x4f85d9;}['updateMiniToolbarButtons'](_0xf3b32c,_0x6498b0){this['_navigationPreviousButton']||this['_setupMiniToolbarButtons']();const _0x3109bb=_0xf3b32c>0x1;if(this['addMiniToolbarItem'](this['_navigationTryAgainButton']),_0x3109bb){this['addMiniToolbarItem'](this['_navigationPreviousButton']),this['addMiniToolbarItem'](this['_navigationCounter']),this['addMiniToolbarItem'](this['_navigationNextButton']);const _0xc4df4c=_0xf3b32c-_0x6498b0;this['_navigationCounter']['setInteractionCount'](_0xc4df4c+'/'+_0xf3b32c),this['_navigationPreviousButton']['isEnabled']=_0x6498b0<_0xf3b32c-0x1,this['_navigationNextButton']['isEnabled']=_0x6498b0>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'](_0x2c9947){this['_isLoading']=_0x2c9947;}['resetShowChangesButton'](){this['_miniToolbarView']['isShowChangesOn']=!0x1;}['_initializeScrollManager'](){const _0x2b0b62=this['_getScrollableElement']();_0x2b0b62&&!this['_scrollManager']&&(this['_scrollManager']=new ScrollManager(_0x2b0b62));}['_getScrollableElement'](){return this['_streamableContentView']['element'];}}class AIActionsBalloonNavigationCounterView extends View{constructor(_0xab07c1){super(_0xab07c1);const _0x2de339=this['bindTemplate'];this['set']('interactionCount','1/1'),this['setTemplate']({'tag':'span','attributes':{'class':['ck-ai-interaction-counter']},'children':[{'text':_0x2de339['to']('interactionCount')}]});}['setInteractionCount'](_0xfc0b7c){this['set']('interactionCount',_0xfc0b7c);}}class AIActions extends Plugin{static get['requires'](){return[AIConnector,Dialog,AIEditing,AIBalloon,DocumentCompare];}static get['pluginName'](){return'AIActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_aiConnector'];['_interactions']=[];['_currentInteractionIndex']=0x0;['_interactionParams'];['_balloonShowDiff']=!0x1;['_promiseQueue'];['_bodyCollection'];get['_interaction'](){return this['_interactions'][this['_interactions']['length']-0x1];}['_actionsBalloonView'];constructor(_0x4355d5){super(_0x4355d5),this['_bodyCollection']=new BodyCollection(this['editor']['locale']),this['_bodyCollection']['attachToDom'](),this['_aiConnector']=this['editor']['plugins']['get']('AIConnector'),this['set']('isBusy',!0x1),this['_promiseQueue']=new PromiseQueue();}['stopInteraction'](){this['_stopInteraction']();}async['executeAction'](_0x579049,_0x89b6c6,_0x415fe1){if(this['_stopInteraction'](),this['editor']['plugins']['has']('TableSelection')){if(this['editor']['plugins']['get']('TableSelection')['getSelectedTableCells']()){const {modelFragment:_0x5d4c76,anchorData:_0x5b87c7}=this['_getExecuteDataInTable']();return this['_executeAction'](_0x579049,_0x5d4c76,_0x5b87c7,_0x89b6c6,_0x415fe1);}}const {modelFragment:_0x1e05c9,anchorData:_0x42bcaf}=this['_getExecuteDataRegular']();return this['_executeAction'](_0x579049,_0x1e05c9,_0x42bcaf,_0x89b6c6,_0x415fe1);}async['destroy'](){return this['_stopInteraction'](),this['_bodyCollection']['detachFromDom'](),super['destroy']();}['_createActionsBalloonView'](){const _0x4e36a7=this['editor']['plugins']['has']('TrackChanges');let _0x2b934b=this['editor']['config']['get']('ai.availableReplyActions')||[...AI_REPLY_ACTIONS];_0x4e36a7||(_0x2b934b=_0x2b934b['filter'](_0x2f2e17=>'insertSuggestion'!=_0x2f2e17));const _0x2d45e5=this['editor']['commands']['get']('trackChanges'),_0x3b7044=new AIActionsBalloonView(this['editor']['locale'],{'showApplyButton':!0x0,'showSuggestButton':_0x4e36a7,'miniToolbarConfig':{'showChanges':'icon'},'availableActions':_0x2b934b});return _0x3b7044['bind']('isBusy')['to'](this),_0x2d45e5&&_0x3b7044['bind']('isTrackChangesOn')['to'](_0x2d45e5,'value'),_0x3b7044['on']('tryAgain',()=>{this['_refreshInteraction']();}),_0x3b7044['on']('showPrevious',()=>{this['_navigateToPrevious']();}),_0x3b7044['on']('showNext',()=>{this['_navigateToNext']();}),_0x3b7044;}['_getExecuteDataRegular'](){const _0x2e9cac=this['editor']['model']['document']['selection'];if(_0x2e9cac['isCollapsed']){const _0x45599c=first(_0x2e9cac['getSelectedBlocks']())||this['editor']['model']['schema']['getLimitElement'](_0x2e9cac);this['editor']['model']['change'](_0x4317ae=>{_0x4317ae['setSelection'](_0x45599c,'in');});}const _0x428993=_0x2e9cac['getFirstRange'](),_0x17a0a8=this['_wrapWithCommonAncestors'](this['editor']['model']['getSelectedContent'](_0x2e9cac),_0x428993['start'],_0x428993['end']);this['_copyMarkersToFragment'](_0x17a0a8,_0x2e9cac,{'isTableSelection':!0x1});const _0x1c1b7c=_0x2e9cac['getFirstRange']()['start'],_0x2578d8=new Map();let _0x133536=_0x17a0a8;for(let _0x146405=0x0;_0x146405<_0x1c1b7c['path']['length'];_0x146405++)_0x2578d8['set'](_0x133536,_0x1c1b7c['path'][_0x146405]),_0x133536=_0x133536['getChild'](0x0);return{'modelFragment':_0x17a0a8,'anchorData':_0x2578d8};}['_getExecuteDataInTable'](){const _0x2fbe0d=this['editor']['model']['document']['selection'],_0x2a824=this['editor']['plugins']['get']('TableSelection')['getSelectionAsFragment'](),_0x3f405a=_0x2fbe0d['getFirstRange']()['start']['parent']['parent'],_0xe9598f=this['editor']['model']['createRange'](this['editor']['model']['createPositionBefore'](_0x3f405a),this['editor']['model']['createPositionAfter'](_0x3f405a)),_0x2fed11=this['_wrapWithCommonAncestors'](_0x2a824,_0xe9598f['start'],_0xe9598f['end']);this['_copyMarkersToFragment'](_0x2fed11,_0x2fbe0d,{'isTableSelection':!0x0});const _0x2f55c6=_0x2fbe0d['getFirstRange']()['start'],_0x3c06ed=new Map();let _0xe430ef=_0x2fed11;for(let _0x13fdb9=0x0;_0x13fdb9<_0x2f55c6['path']['length'];_0x13fdb9++)if(_0x3c06ed['set'](_0xe430ef,_0x2f55c6['path'][_0x13fdb9]),_0x13fdb9<_0x2f55c6['path']['length']-0x1)_0xe430ef=_0xe430ef['getChild'](0x0);else{let _0x202417=_0xe430ef['nextSibling'];for(;_0x202417;)_0x3c06ed['set'](_0x202417,_0x2f55c6['path'][_0x13fdb9]),_0x202417=_0x202417['nextSibling'];}return{'modelFragment':_0x2fed11,'anchorData':_0x3c06ed};}async['_executeAction'](_0x4cbead,_0x3c16a9,_0x2c7c6c,_0x32433f,_0x4b14a7){const _0x56c5ec=this['editor']['plugins']['get'](AIEditing),_0x4f2298=this['editor']['plugins']['get'](AIBalloon),_0x4c42ae=this['editor']['model']['document']['selection'],_0x1397f7=await _0x56c5ec['modelToDataWithIds'](_0x3c16a9),_0x336bdb=this['editor']['model']['document']['version'],_0x15c242=[..._0x4c42ae['getRanges']()];return this['_actionsBalloonView']||(this['_actionsBalloonView']=this['_createActionsBalloonView']()),this['_clearInteractionHistory'](),this['_clearErrorState'](),this['_actionsBalloonView']['clearContent'](),_0x4f2298['open']({'index':0x3e8*Math['random']()%0x3e8,'title':_0x32433f,'icon':_0x4b14a7||IconAIQuickActions,'mainView':this['_actionsBalloonView'],'class':'ck-ai-actions-balloon','ranges':_0x15c242,'id':'aiActionsBalloon'}),this['_setLoadingState'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x4f2298),this['_interactionParams']={'action':_0x4cbead,'content':_0x1397f7,'version':_0x336bdb,'aiBalloon':_0x4f2298,'modelFragment':_0x3c16a9,'anchorData':_0x2c7c6c},this['_setupApplyListeners'](),this['listenTo'](_0x4f2298,'selectionRemoved',()=>{this['_stopInteraction'](),this['_actionsBalloonView']['disableMiniToolbarButtons']();}),this['listenTo'](_0x4f2298,'dialogClosed',(_0x27beec,{id:_0x3d4ab1})=>{if('aiActionsBalloon'===_0x3d4ab1){if(this['_interaction']&&this['_interaction']['replies']['length']>0x0){const _0x317761=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1],_0x4743af=_0x317761['changeGroups'][0x0];_0x4743af&&'pending'===_0x4743af['state']&&_0x317761['setChangeGroupState'](0x0,'rejected');}this['_stopInteraction'](),this['_clearInteractionHistory'](),this['stopListening'](this['_actionsBalloonView']),this['stopListening'](_0x4f2298);}}),this['_createInteraction'](_0x1397f7,_0x336bdb,_0x4f2298,_0x4cbead);}['_setupApplyListeners'](){if(!this['_interactionParams'])return;const {modelFragment:_0x5f0146,anchorData:_0x5287c0}=this['_interactionParams'];this['listenTo'](this['_actionsBalloonView'],'applySuggestion',()=>{this['_applyChanges'](_0x5f0146,_0x5287c0,!0x1);}),this['listenTo'](this['_actionsBalloonView'],'insertSuggestion',()=>{this['_applyChanges'](_0x5f0146,_0x5287c0,!0x0);});}['_wrapWithCommonAncestors'](_0x4bee5c,_0x5e5a61,_0x2b1ac2){const _0x387b2e=this['editor']['model']['createRange'](_0x5e5a61,_0x2b1ac2)['getCommonAncestor'](),_0x29c49e=_0x387b2e['is']('documentFragment')?[]:_0x387b2e['getAncestors']({'includeSelf':!0x0})['slice'](0x1);if(_0x29c49e['length']){const _0x16bd01=_0x29c49e['map'](_0x3abf0c=>_0x3abf0c['_clone'](!0x1));for(let _0x3ad3ff=0x1;_0x3ad3ff<_0x16bd01['length'];_0x3ad3ff++)_0x16bd01[_0x3ad3ff-0x1]['_appendChild'](_0x16bd01[_0x3ad3ff]);return _0x16bd01[_0x16bd01['length']-0x1]['_appendChild'](_0x4bee5c),new ModelDocumentFragment(_0x16bd01[0x0]);}return _0x4bee5c;}['_copyMarkersToFragment'](_0x5d1919,_0x249660,_0x13ddad={'isTableSelection':!0x1}){const _0x5eceab=this['editor']['model'],_0x15dc75=Array['from'](_0x249660['getRanges']()),_0x53658e=_0x249660['getFirstRange']()['start'];for(const _0x26b3e5 of _0x5eceab['markers']){if(_0x26b3e5['name']['startsWith'](AI_VISUAL_SELECTION_MARKER_NAME)||!_0x26b3e5['affectsData'])continue;const _0x1e3acb=_0x26b3e5['getRange']();if(!_0x15dc75['some'](_0x1b1131=>_0x1b1131['containsRange'](_0x1e3acb,!0x0)))continue;const _0x3878bb=this['_regularCalculateMarkerPath'](_0x1e3acb['start'],_0x53658e,_0x13ddad['isTableSelection']),_0x440b3d=this['_regularCalculateMarkerPath'](_0x1e3acb['end'],_0x53658e,_0x13ddad['isTableSelection']),_0x3ba74c=_0x5eceab['createPositionFromPath'](_0x5d1919,_0x3878bb),_0x16082b=_0x5eceab['createPositionFromPath'](_0x5d1919,_0x440b3d);if(!_0x3ba74c['isEqual'](_0x16082b)){const _0x5a08d2=_0x5eceab['createRange'](_0x3ba74c,_0x16082b);_0x5d1919['markers']['set'](_0x26b3e5['name'],_0x5a08d2);}}}['_regularCalculateMarkerPath'](_0x24212e,_0x5710fc,_0x4b1b73=!0x1){const _0x2c9b1=[..._0x24212e['path']['slice']()];for(let _0x590087=0x0;_0x590087<Math['max'](_0x5710fc['path']['length'],_0x24212e['path']['length']);_0x590087++){const _0x23a3e9=_0x5710fc['path'][_0x590087]||0x0,_0x11566c=(_0x24212e['path'][_0x590087]||0x0)-_0x23a3e9;if(_0x2c9b1[_0x590087]=_0x11566c,0x0!==_0x11566c&&!_0x4b1b73)break;}return _0x2c9b1;}async['_createInteraction'](_0x18fc27,_0x183369,_0x97f8f0,_0x55091f){const _0x19ba96=this['editor'];this['_interactionParams']||(this['_interactionParams']={'action':_0x55091f,'content':_0x18fc27,'version':_0x183369,'aiBalloon':_0x97f8f0,'modelFragment':this['editor']['model']['getSelectedContent'](this['editor']['model']['document']['selection']),'anchorData':new Map()});const _0x18ceb4=new AIActionsInteraction({'connector':this['_aiConnector'],'editor':_0x19ba96,'content':_0x18fc27,'version':_0x183369,..._0x55091f});this['_interactions']['push'](_0x18ceb4);const _0x26b951=(_0xd1ecb8,_0xe7f45d=!0x1,_0x15a6fe='streaming')=>this['_promiseQueue']['enqueue'](async _0xd39a90=>{try{const _0x3bb6b6=getSuggestionPartsFromReply({'editor':_0x19ba96,'changeGroups':_0xd1ecb8['changeGroups'],'documentContextContent':_0xd1ecb8['documentContextContent'],'showDiff':_0xe7f45d,'trimUnchanged':!0x1});_0x3bb6b6['length']&&await this['_actionsBalloonView']['updateContent']({'part':_0x3bb6b6[0x0],'renderingStrategy':_0x15a6fe,'abortSignal':_0xd39a90});}catch(_0x4cd17e){if(this['_isAbortError'](_0x4cd17e))return;throw _0x4cd17e;}});this['_interaction']['on']('replyCreated',(_0x296e25,_0x278082)=>{this['_actionsBalloonView']['hideLoader'](),this['_actionsBalloonView']['startAutoScroll'](),_0x26b951(_0x278082)['catch'](_0x400327=>{this['_isAbortError'](_0x400327)||(console['error']('Error\x20updating\x20content\x20in\x20replyCreated:',_0x400327),this['_setErrorState'](_0x18ceb4));});}),this['_interaction']['on']('replyContentUpdated',(_0x500f82,_0x3c3a8d)=>{_0x26b951(_0x3c3a8d)['catch'](_0x2b9b38=>{this['_isAbortError'](_0x2b9b38)||(console['error']('Error\x20updating\x20content\x20in\x20replyContentUpdated:',_0x2b9b38),this['_setErrorState'](_0x18ceb4));});}),this['_interaction']['on']('interactionFinished',async()=>{try{await this['_clearLoadingState'](),this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),await this['_promiseQueue']['queueEmptyPromise'];}catch(_0x56b2ae){this['_isAbortError'](_0x56b2ae)||(console['error']('Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:',_0x56b2ae),this['_setErrorState'](_0x18ceb4));}finally{this['_actionsBalloonView']['stopAutoScroll']();}}),this['listenTo'](this['_actionsBalloonView'],'toggleSuggestionDisplayMode',async(_0x33074b,{showDiff:_0x19b61a})=>{try{this['_balloonShowDiff']=_0x19b61a;const _0x59a8a8=this['_interaction']['replies'][this['_interaction']['replies']['length']-0x1];_0x59a8a8&&await _0x26b951(_0x59a8a8,_0x19b61a,'static');}catch(_0x1881e){this['_isAbortError'](_0x1881e)||(console['error']('Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:',_0x1881e),this['_setErrorState'](_0x18ceb4));}}),this['_interaction']['on']('replyChangeGroupStateUpdated',(_0x3a4b59,{reply:_0x1a0fb5})=>{const _0x1446ca={'positiveCount':_0x1a0fb5['changeGroups']['filter'](_0x208ba3=>'accepted'===_0x208ba3['state'])['length'],'totalCount':_0x1a0fb5['changeGroups']['length']},_0x2480ed=this['_interaction']['actionCallId'],_0x530bd1=this['_interaction']['actionName'];_0x530bd1?this['_aiConnector']['upsertAIActionRating'](_0x530bd1,_0x2480ed,_0x1446ca):this['_aiConnector']['upsertCustomAIActionRating'](_0x2480ed,_0x1446ca);}),this['_setLoadingState']();try{const _0x47f2a2=await this['_interaction']['start']();return this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']),_0x47f2a2;}catch(_0x4369b2){if(this['_isAbortError'](_0x4369b2))return;this['_actionsBalloonView']['hideLoader'](),this['_setErrorState'](_0x18ceb4);}}['_applyChanges'](_0x3e35dc,_0x217253,_0x25dd05){const _0x16663e=this['editor'];if(_0x25dd05&&!_0x16663e['plugins']['has']('TrackChanges'))throw new CKEditorError('ai-no-track-changes',null);const _0x24a076=this['editor']['plugins']['get'](DocumentCompare),_0x2f4bb0=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x2f4bb0||!_0x2f4bb0['replies']['length'])return;const _0x16914f=_0x2f4bb0['replies'][_0x2f4bb0['replies']['length']-0x1],_0x55d74f=_0x16914f['changeGroups'];_0x16914f['setChangeGroupState'](0x0,'accepted');let _0x9d0cd6=getOperationsFromReply({'editor':_0x16663e,'reply':_0x16914f,'interaction':_0x2f4bb0,'groups':_0x55d74f,'transform':!0x1,'documentCompare':_0x24a076,'documentCompareOptions':{'anchor':_0x16663e['model']['createPositionAt'](_0x3e35dc,0x0),'markDeletions':_0x25dd05}});_0x9d0cd6=this['_filterOperationsOutsideRange'](_0x9d0cd6,_0x217253);for(const _0x5ca00a of _0x9d0cd6)this['_anchorOperation'](_0x217253,_0x5ca00a,_0x16663e['model']['document']['getRoot']());const _0x4ecbf6=_0x2f4bb0['getDocumentContext']()['version'],_0x3ffce2=_0x16663e['model']['document']['history']['getOperations'](_0x4ecbf6),_0x1212a4={'document':_0x16663e['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x465fdf=transformOperationSets(_0x9d0cd6,_0x3ffce2,_0x1212a4)['operationsA'];_0x16663e['model']['change'](_0x489893=>{if(_0x489893['setSelection'](_0x16663e['model']['document']['selection']['focus']),_0x25dd05)_0x16663e['plugins']['get']('TrackChangesEditing')['_applyOperationsAsSuggestions'](_0x465fdf);else{for(const _0x33a17d of _0x465fdf)_0x33a17d['baseVersion']=_0x16663e['model']['document']['version'],fixMarkerOperationOldRange(_0x16663e,_0x33a17d),_0x489893['batch']['addOperation'](_0x33a17d),_0x16663e['model']['applyOperation'](_0x33a17d);}}),this['editor']['plugins']['get']('AIBalloon')['close']();}['_filterOperationsOutsideRange'](_0x568da3,_0x3995eb){return _0x568da3['filter'](_0x527440=>{if('rename'==_0x527440['type']){const _0x34fd5c=_0x527440['position']['nodeAfter'];return!_0x3995eb['has'](_0x34fd5c);}if(_0x527440['type']['indexOf']('Attribute')>-0x1){const _0x3e9d3c=_0x527440['range']['start']['nodeAfter'];return!_0x3995eb['has'](_0x3e9d3c);}return!0x0;});}['_anchorOperation'](_0x29d051,_0x4d773d,_0x3eb342){const _0x2f9cc3=_0x4d773d['clone']();for(const _0x3c2d81 in _0x4d773d){const _0x376ac5=_0x4d773d[_0x3c2d81];_0x376ac5 instanceof ModelRange?_0x4d773d[_0x3c2d81]=new ModelRange(_0x4a10c9(_0x376ac5['start']),_0x4a10c9(_0x376ac5['end'])):_0x376ac5 instanceof ModelPosition&&(_0x4d773d[_0x3c2d81]=_0x4a10c9(_0x376ac5));}if(['insert','move','remove','reinsert','split','merge']['includes'](_0x2f9cc3['type'])){if(_0x2f9cc3['isDocumentOperation']=!0x1,_0x2f9cc3['baseVersion']=null,'remove'==_0x2f9cc3['type']){const _0x399872=_0x2f9cc3['sourcePosition'],_0x55df6b=_0x2f9cc3['howMany'];new _DetachOperation(_0x399872,_0x55df6b)['_execute']();}else _0x2f9cc3['_execute']();}function _0x4a10c9(_0x6f14f9){if('$graveyard'==_0x6f14f9['root']['rootName'])return _0x6f14f9;const _0x5204cc=[];let _0xd8492b=_0x6f14f9['root'];for(let _0x1ae9d8=0x0;_0x1ae9d8<_0x6f14f9['path']['length'];_0x1ae9d8++){const _0x3dbe85=_0x29d051['get'](_0xd8492b)||0x0;_0x5204cc[_0x1ae9d8]=_0x6f14f9['path'][_0x1ae9d8]+_0x3dbe85,_0xd8492b=_0xd8492b['getChildAtOffset'](_0x6f14f9['path'][_0x1ae9d8]);}return new ModelPosition(_0x3eb342,_0x5204cc,_0x6f14f9['stickiness']);}}['_refreshInteraction'](){if(!this['_interactionParams'])return;this['_interactions']['length']>0x0&&this['_stopInteraction'](),this['_currentInteractionIndex']=0x0,this['_balloonShowDiff']=!0x1;const {action:_0x86e57d,content:_0x154083,version:_0xfd1bd6,aiBalloon:_0x309a02}=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'](_0x154083,_0xfd1bd6,_0x309a02,_0x86e57d)['catch'](_0x4842d5=>{this['_isAbortError'](_0x4842d5)||console['error']('Error\x20refreshing\x20interaction:',_0x4842d5);});}['_isAbortError'](_0x5c5ca1){return!!_0x5c5ca1['message']&&_0x5c5ca1['message']['startsWith']('ai-request-aborted');}['_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 _0x40be92=this['_interactions']['length'];this['_currentInteractionIndex']<_0x40be92-0x1&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']+0x1);}['_navigateToNext'](){this['_currentInteractionIndex']>0x0&&this['_displayInteractionAtIndex'](this['_currentInteractionIndex']-0x1);}async['_displayInteractionAtIndex'](_0x1cee79){if(!this['_interactionParams'])return;this['_currentInteractionIndex']=_0x1cee79;const _0x256403=this['_interactions'][this['_interactions']['length']-0x1-this['_currentInteractionIndex']];if(!_0x256403)return;if(_0x256403['hasError'])return this['_setErrorState'](_0x256403),void this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);if(!_0x256403['replies']['length'])return;this['_actionsBalloonView']['hideError'](),this['_interactionParams']&&this['_clearErrorState']();const _0x1e7b58=_0x256403['replies'][_0x256403['replies']['length']-0x1];if(_0x1e7b58){const _0x174267=this['editor'];try{const _0x4bc7a4=getSuggestionPartsFromReply({'editor':_0x174267,'changeGroups':_0x1e7b58['changeGroups'],'documentContextContent':_0x1e7b58['documentContextContent'],'showDiff':this['_balloonShowDiff'],'trimUnchanged':!0x1});await new Promise(_0x7b346f=>setTimeout(_0x7b346f,0x32)),await this['_actionsBalloonView']['updateContent']({'part':_0x4bc7a4[0x0],'renderingStrategy':'static','abortSignal':new AbortController()['signal']});}catch(_0x307bca){this['_isAbortError'](_0x307bca)||console['error']('Error\x20updating\x20content\x20during\x20navigation:',_0x307bca);}}this['_actionsBalloonView']['updateMiniToolbarButtons'](this['_interactions']['length'],this['_currentInteractionIndex']);}['_setLoadingState'](){this['_actionsBalloonView']['setIsLoading'](!0x0),this['isBusy']=!0x0;}async['_setErrorState'](_0x5ce9a0){const _0x354d7e=getTranslation$i(this['editor']['locale'],'AI_ACTIONS_GENERIC_ERROR');this['_actionsBalloonView']['showError'](_0x354d7e),_0x5ce9a0['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);}}class AIQuickActions extends Plugin{static get['requires'](){return[AIQuickActionsUI,AIQuickActionsEditing,AIActions];}static get['pluginName'](){return'AIQuickActions';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b734){super(_0x52b734),_0x52b734['config']['define']('ai.quickActions',{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}class AIReviewCoreReviewCheckListItemResultsView extends View{['resultResponseView'];['acceptButtonView'];['dismissButtonView'];['infoButtonView'];['outdatedButtonView'];constructor(_0x49e0f2,_0xc82188){super(_0x49e0f2),this['id']=_0xc82188,this['set']('status','pending'),this['set']('changeId',_0xc82188),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',(_0x2878b9,_0x125638)=>{_0x125638&&_0x125638['target']&&'A'===_0x125638['target']['tagName']&&_0x125638['preventDefault'](),this['fire']('activateChange',{'id':_0xc82188,'source':this,'uiInteraction':'click'});}),this['on']('mouseover',()=>{this['fire']('activateChange',{'id':_0xc82188,'source':this,'uiInteraction':'hover'});}),this['on']('mouseout',()=>{this['fire']('deactivateChange',{'origin':'panel','id':_0xc82188,'source':this});});}['setItemAsActive'](){this['isActive']=!0x0;}['setItemAsInactive'](){this['isActive']=!0x1;}['_createResultResponseView'](){const _0x567cfc=new View(this['locale']);return _0x567cfc['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content','ck-reset_all-excluded','ck-ai_review__check-run-result-response',this['bindTemplate']['if']('showDiff','ck-hidden',_0x18d713=>!_0x18d713)]}}),_0x567cfc;}['_createAcceptButtonView'](){const _0x2214e6=new ButtonView(this['locale']);return _0x2214e6['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_CHANGE'),'withText':!0x0}),_0x2214e6['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x165ba6=>{this['fire']('acceptChange',{'id':this['changeId']}),_0x165ba6['stopPropagation']();})},'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-accept-button',this['bindTemplate']['if']('status','ck-hidden',_0x10487b=>'pending'!==_0x10487b&&'accepted'!==_0x10487b),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-accept-button',_0x312c6b=>'pending'===_0x312c6b),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x58b73b=>'accepted'===_0x58b73b)]}}),this['on']('change:status',(_0x579c44,_0x4b8b76,_0x5d49fd)=>{_0x2214e6['isEnabled']='pending'===_0x5d49fd,'accepted'===_0x5d49fd&&(_0x2214e6['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_ACCEPTED'),_0x2214e6['icon']=IconCheck);}),_0x2214e6;}['_createDismissButtonView'](){const _0x10e3e0=new ButtonView(this['locale']);return _0x10e3e0['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_DISMISS_CHANGE'),'withText':!0x0}),_0x10e3e0['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x10ece6=>{this['fire']('dismissChange',{'id':this['changeId']}),_0x10ece6['stopPropagation']();})},'attributes':{'class':['ck-ai-button-tertiary',this['bindTemplate']['if']('status','ck-hidden',_0x167b24=>'pending'!==_0x167b24&&'rejected'!==_0x167b24),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-dismiss-button',_0x5d523a=>'pending'===_0x5d523a),this['bindTemplate']['if']('status','ck-ai_review__check-run-result-status-button',_0x5d24d9=>'rejected'===_0x5d24d9)]}}),this['on']('change:status',(_0x109bf8,_0x47936d,_0x9dff91)=>{_0x10e3e0['isEnabled']='pending'===_0x9dff91,'rejected'===_0x9dff91&&(_0x10e3e0['label']=getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_REJECTED'),_0x10e3e0['icon']=IconCancel);}),_0x10e3e0;}['_createInfoButtonView'](){const _0x2a904f=new ButtonView(this['locale']);return _0x2a904f['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_LEARN_MORE'),'icon':IconInfo,'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox','class':'ck-ai-button-tertiary\x20ck-ai_review__check-run-result-info-button\x20ck-hidden'}),_0x2a904f['bind']('isOn')['to'](this,'isInfoToggleOn',_0x128eb2=>_0x128eb2),_0x2a904f['on']('execute',()=>{this['isInfoToggleOn']=!this['isInfoToggleOn'];}),_0x2a904f;}['_createOutdatedButtonView'](){const _0x195ce1=new ButtonView(this['locale']);return _0x195ce1['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHECK_STATUS_OUTDATED'),'icon':IconOutdated,'withText':!0x0,'isEnabled':!0x1}),_0x195ce1['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-result-status-button',this['bindTemplate']['if']('status','ck-hidden',_0x28bd21=>'outdated'!==_0x28bd21)],'disabled':'disabled'}}),_0x195ce1;}}class AIReviewCoreBalloonSuggestionItemView extends BalloonPanelView{['resultItemView'];['_pinnedRectIndex']=void 0x0;['_pinnedTargetElement']=void 0x0;['_pinnedTargetChangeId']=void 0x0;constructor(_0x5e8129,_0x592f56){super(_0x5e8129),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']()),_0x592f56['add'](this);}['render'](){super['render'](),this['_setupClickOutsideHandler']();}['updateContent'](_0x2ee0a5){this['resultItemView']['changeId']=_0x2ee0a5['id'],this['resultItemView']['resultResponseView']['element']['innerHTML']=_0x2ee0a5['contentDiffed'];}['showBalloon'](_0x58cbaa,_0x4229d8,_0x47aa3d,_0x3dab05,_0x2583f9,_0x38f684){const _0x2c70b3=_0x4229d8();if(!_0x2c70b3)return;this['updateContent'](_0x58cbaa),this['show']();const _0x383f67=Array['from'](_0x2c70b3['getClientRects']())['reverse'](),_0x949fda=this['_getPointedRectIndexFromEvent'](_0x47aa3d,_0x383f67),_0xe430f=_0x383f67[_0x949fda??0x0];'click'===_0x3dab05?(this['isDiffActive']=!0x0,this['pin']({'target':()=>this['_getBestRectPositionOnClick'](_0x4229d8(),_0x949fda,_0x58cbaa['id'],_0x2583f9,_0x38f684)||_0xe430f})):'hover'===_0x3dab05&&(this['isDiffActive']=!0x1,this['pin']({'target':()=>this['_getBestRectPositionOnHover'](_0x4229d8(),_0x949fda,_0x58cbaa['id'])||_0xe430f}));}['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'](){clickOutsideHandler({'emitter':this,'activator':()=>this['isVisible'],'contextElements':()=>{const _0x33b6b3=[this['element']];return this['_pinnedTargetElement']&&_0x33b6b3['push'](this['_pinnedTargetElement']),_0x33b6b3;},'callback':()=>{this['hide'](),this['unpin'](),this['deactivateChange'](),this['_pinnedTargetElement']=void 0x0,this['_pinnedRectIndex']=void 0x0,this['_pinnedTargetChangeId']=void 0x0;}});}['_createContentView'](){const _0x2de10d=new View();return this['resultItemView']=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],''),this['resultItemView']['resultResponseView']['extendTemplate']({'attributes':{'class':['ck-content']}}),this['resultItemView']['delegate']('acceptChange','dismissChange')['to'](this),_0x2de10d['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']]}]}),_0x2de10d;}['_getBestRectPositionOnClick'](_0x4962b0,_0x5257a6,_0x4be41f,_0xcb7fdb,_0x3e2b74){if(!_0x4962b0)return null;const _0x266d3c=this['position']['replace']('arrow_',''),_0x3177f2=Array['from'](_0x4962b0['getClientRects']());let _0xbab990,_0x505a21=_0x3177f2['reverse']();return void 0x0!==_0x5257a6&&this['_isPinnedRectVisible'](_0x505a21[_0x5257a6],_0xcb7fdb,_0x3e2b74)?(_0xbab990=_0x505a21[_0x5257a6],this['_pinnedRectIndex']=_0x5257a6):this['_isPinnedRectVisible'](_0x505a21[0x0],_0xcb7fdb,_0x3e2b74)&&void 0x0===_0x5257a6?_0xbab990=_0x505a21[0x0]:(_0x505a21='s'==_0x266d3c[0x0]?[..._0x3177f2]['reverse']():_0x3177f2,_0x505a21['forEach'](_0x2df16d=>{this['_isPinnedRectVisible'](_0x2df16d,_0xcb7fdb,_0x3e2b74)&&(_0xbab990=_0x2df16d);})),this['_pinnedTargetChangeId']=_0x4be41f,this['_pinnedTargetElement']=_0x4962b0,_0xbab990||_0x4962b0['getBoundingClientRect']();}['_getBestRectPositionOnHover'](_0x40d89f,_0x5c9368,_0x28b14c){if(!_0x40d89f)return null;const _0x1a780f=Array['from'](_0x40d89f['getClientRects']())['reverse']();if(void 0x0===this['_pinnedRectIndex']&&void 0x0!==_0x5c9368&&this['_pinnedTargetChangeId']!==_0x28b14c)return this['_pinnedRectIndex']=_0x5c9368,this['_pinnedTargetElement']=_0x40d89f,this['_pinnedTargetChangeId']=_0x28b14c,_0x1a780f[_0x5c9368];if(void 0x0!==this['_pinnedRectIndex']&&this['_pinnedTargetChangeId']===_0x28b14c){if(_0x40d89f!==this['_pinnedTargetElement'])return Array['from'](this['_pinnedTargetElement']['getClientRects']())['reverse']()[this['_pinnedRectIndex']];return _0x1a780f[this['_pinnedRectIndex']];}return void 0x0!==_0x5c9368&&this['_pinnedTargetChangeId']!==_0x28b14c?(this['_pinnedRectIndex']=_0x5c9368,this['_pinnedTargetElement']=_0x40d89f,this['_pinnedTargetChangeId']=_0x28b14c,_0x1a780f[_0x5c9368]):_0x40d89f['getBoundingClientRect']();}['_getPointedRectIndexFromEvent'](_0x57d824,_0x250848){if(_0x57d824)for(let _0x516e94=0x0;_0x516e94<_0x250848['length'];_0x516e94++){const _0x130a67=_0x250848[_0x516e94];if(_0x57d824['clientX']>=_0x130a67['left']-0x3&&_0x57d824['clientX']<=_0x130a67['right']+0x3&&_0x57d824['clientY']>=_0x130a67['top']-0x3&&_0x57d824['clientY']<=_0x130a67['bottom']+0x3)return _0x516e94;}}['_isPinnedRectVisible'](_0x279b90,_0xbd73d6,_0x275a3f){const _0x1b8734=new Rect(_0x279b90),_0x2fe968=_0xbd73d6||document['documentElement'],_0x16d308=_0x1b8734['getIntersection'](getConstrainedViewportRect(_0x275a3f)),_0x39322e=new Rect(_0x2fe968)['getIntersection'](_0x1b8734);return!!(_0x16d308&&_0x39322e&&_0x1b8734['width']>0x0);}}const AI_REVIEW_MODE_UI_EVENT_NAMES=['getReviewCheckList','runReviewCheck','abortReviewStream','toggleDiff','acceptAllChanges','leaveReviewCoreResultList','activateChange','deactivateChange','acceptChange','dismissChange','learnMore','finishReview','retryReview'];class AIReviewCoreUI extends ContextPlugin{['_mainView'];['_balloonSuggestionView'];['_bodyCollection'];static get['requires'](){return[AITabs];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40d3de){super(_0x40d3de),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_mainView']=this['createMainView'](),this['_mainView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['_balloonSuggestionView']=new AIReviewCoreBalloonSuggestionItemView(this['context']['locale'],this['_bodyCollection']),this['_balloonSuggestionView']['delegate']('acceptChange','dismissChange','deactivateChange')['to'](this);}['init'](){const _0x89f8d=this['context']['plugins']['get']('AITabs');this['registerTab'](_0x89f8d);}['destroy'](){this['_bodyCollection']['detachFromDom'](),super['destroy']();}['setAvailableChecks'](_0x3e05dc){if(!this['_mainView']['reviewCheckListView']['hasChecks']()){const _0x14f48a=!this['context']['config']['get']('ai.models.showModelSelector');this['_mainView']['reviewCheckListView']['setChecks'](_0x3e05dc,_0x14f48a);}this['_mainView']['showReviewCheckListView']();}['showReviewCheckList'](){this['fire']('getReviewCheckList');}['showCheckRunResults'](_0x455185){_0x455185&&('error-general'!==_0x455185['status']?'error-chunk'!==_0x455185['status']?this['_mainView']['showReviewCheckResultsView']():this['showChunkErrorView']():this['showGeneralResultsErrorView']());}['showCheckRunResult'](_0x21232c){this['_mainView']['addCheckRunResult'](_0x21232c);}['showGeneralResultsErrorView'](){this['_mainView']['showGeneralResultsErrorView']();}['showGeneralReviewCoreErrorView'](_0x698cd1){this['_mainView']['showGeneralReviewCoreErrorView'](_0x698cd1??getTranslation$i(this['context']['locale'],'AI_REVIEW_INITIALIZATION_ERROR_MESSAGE'));}['showChunkErrorView'](){this['_mainView']['showChunkErrorView']();}['setCheckResultTitle'](_0x5cdbf4,_0x48f1c0){this['_mainView']['reviewCheckResultsView']['setTitle'](_0x5cdbf4,_0x48f1c0);}['setActiveStateInResults'](_0x46c8bd){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0xcada5a=>{_0xcada5a['id']===_0x46c8bd&&_0xcada5a['setItemAsActive']();});}['resetActiveStateInResults'](){this['_mainView']['reviewCheckResultsView']['getResults']()['forEach'](_0x23d5a2=>_0x23d5a2['setItemAsInactive']());}['updateChangeState'](_0x598cb1,_0xfb67e9){'accepted'===_0xfb67e9||'rejected'===_0xfb67e9||'outdated'===_0xfb67e9?this['_mainView']['reviewCheckResultsView']['hideResult'](_0x598cb1,_0xfb67e9):this['_mainView']['reviewCheckResultsView']['showResult'](_0x598cb1,_0xfb67e9);}['showReviewCompletedView'](){this['_mainView']['showReviewCompletedView']();}['showActionsWhenResultIsReady'](){this['_mainView']['showActionsWhenResultIsReady']();}['showNoChangesView'](){this['_mainView']['showNoChangesView']();}['hideActionsWhenResultIsReady'](){this['_mainView']['hideActionsWhenResultIsReady']();}['showChangeBalloon'](_0x4ef480,_0x33baf6,_0x46498a,_0x4cb4f0,_0x4b1265,_0x3dac9f){this['_balloonSuggestionView']['showBalloon'](_0x4ef480,_0x33baf6,_0x46498a,_0x4cb4f0,_0x4b1265,_0x3dac9f);}['hideChangeBalloon'](){this['_balloonSuggestionView']['hideBalloon']();}['hideDiffInBalloon'](){this['_balloonSuggestionView']['hideDiffInBalloon']();}['showDiffInBalloon'](){this['_balloonSuggestionView']['showDiffInBalloon']();}['getChangeElement'](_0x5cfd65){const _0x507302=this['_mainView']['reviewCheckResultsView']['getResults']()['find'](_0x4dbb9a=>_0x4dbb9a['id']===_0x5cfd65);return _0x507302?_0x507302['element']:null;}['deactivateChange'](){this['_balloonSuggestionView']['deactivateChange']();}}class AIReviewCoreGeneralErrorView extends View{constructor(_0x48bbc0){super(_0x48bbc0),this['set']('isVisible',!0x1),this['set']('errorMessage','');const _0x25f33b=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__general-error-container',_0x25f33b['if']('isVisible','ck-hidden',_0x542243=>!_0x542243)]},'children':[{'tag':'p','attributes':{'class':'ck\x20ck-ai-notification\x20ck-ai-notification_error'},'children':[{'text':_0x25f33b['to']('errorMessage')}]}]});}}class AIReviewCoreView extends View{['reviewCoreHeader'];['generalErrorView'];['reviewCheckListView'];['reviewCheckResultsView'];['reviewCompletedView'];constructor(_0x5ca6f2,_0x406595){super(_0x5ca6f2),this['reviewCoreHeader']=_0x406595['header'],this['generalErrorView']=new AIReviewCoreGeneralErrorView(_0x5ca6f2),this['reviewCheckListView']=_0x406595['list'],this['reviewCheckListView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCheckResultsView']=_0x406595['results'],this['reviewCheckResultsView']['delegate'](...AI_REVIEW_MODE_UI_EVENT_NAMES)['to'](this),this['reviewCompletedView']=_0x406595['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'](_0x57811c){this['reviewCheckResultsView']['addResult'](_0x57811c),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'](_0x5b6d44){this['generalErrorView']['set']('isVisible',!0x0),this['generalErrorView']['errorMessage']=_0x5b6d44;}['showGeneralResultsErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showGeneralErrorMessage']();}['showChunkErrorView'](){this['reviewCheckResultsView']['set']('isLoading',!0x1),this['showActionsWhenResultIsReady'](),this['reviewCheckResultsView']['showChunkErrorMessage']();}}class AIReviewCoreFinishReviewButtonView extends ButtonView{constructor(_0x187ba0,_0x25e5bc){super(_0x25e5bc),this['set']({'label':_0x187ba0,'withText':!0x0,'class':'ck-ai-button-primary'}),this['on']('execute',()=>{this['fire']('finishReview');});}}class AIReviewCoreUICheckResultsView extends ListItemView{['_resultViews'];['_resultsHeader'];['reviewDisclaimer'];['_cancelButtonView'];['_acceptAllButtonView'];['_exitReviewButtonView'];['_toggleDiffButtonView'];['_errorMessageView'];['_finishReviewButtonView'];['_contents'];constructor(_0x58c120,_0x54e821){super(_0x58c120),this['_contents']=_0x54e821,this['_resultViews']=new ViewCollection(),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['_errorMessageView']=this['_createErrorView'](),this['reviewDisclaimer']=new AIDisclaimerView(_0x58c120),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);const _0x4dd600=this['_createCombinedSkeletonLoader'](),_0x1ac999=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run',_0x1ac999['if']('isLoading','ck-ai_review__check-run_loading',_0x29f475=>_0x29f475),_0x1ac999['if']('isResultReady','ck-ai_review__check-run_ready',_0x5c066c=>_0x5c066c),_0x1ac999['if']('isVisible','ck-hidden',_0x4e4b3c=>!_0x4e4b3c)]},'children':[this['_resultsHeader'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-wrapper']},'children':[this['_errorMessageView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-container','ck-reset_all-excluded',this['bindTemplate']['if']('isLoading','ck-hidden',_0x3a31a0=>_0x3a31a0)]},'children':this['_resultViews']},_0x4dd600]},this['reviewDisclaimer']]});}['clearResults'](){this['_resultViews']['clear']();}['getResults'](){return this['_resultViews'];}['addResult'](_0x2aa846){const _0x52edc7=new AIReviewCoreReviewCheckListItemResultsView(this['locale'],_0x2aa846['id']);_0x52edc7['delegate']('acceptChange','dismissChange','activateChange','deactivateChange')['to'](this),this['_resultViews']['add'](_0x52edc7),_0x52edc7['resultResponseView']['element']['innerHTML']=_0x2aa846['contentDiffed'];}['hideResult'](_0x22efdb,_0x163ba6){if('pending'===_0x163ba6)return;const _0x446e0d=this['_resultViews']['find'](_0xd28418=>_0xd28418['id']===_0x22efdb);_0x446e0d&&(_0x446e0d['status']=_0x163ba6,_0x446e0d['element']?.['classList']['add']('ck-ai_review__check-run-result_grayout'));}['showResult'](_0x8f9fe2,_0x54af3c){if('pending'!==_0x54af3c)return;const _0x5a211b=this['_resultViews']['find'](_0x5c693e=>_0x5c693e['id']===_0x8f9fe2);_0x5a211b&&(_0x5a211b['status']=_0x54af3c,_0x5a211b['element']?.['classList']['remove']('ck-ai_review__check-run-result_grayout'));}['setTitle'](_0x50599b,_0x52ed48){this['headerTitle']=_0x50599b,this['headerSubtitle']=_0x52ed48||'';}['showChunkErrorMessage'](){this['errorType']='chunk',this['showErrorMessage']=!0x0;}['showGeneralErrorMessage'](){this['isError']=!0x0,this['errorType']='general',this['showErrorMessage']=!0x0;}['resetErrorState'](){this['isError']=!0x1,this['errorType']='general',this['showErrorMessage']=!0x1;}['_createSkeletonLoader'](){return new AISkeletonView(this['locale'],SKELETON_DEFINITIONS['aiReviewChecks']);}['_createCombinedSkeletonLoader'](){const _0x3162f5=new View(this['locale']),_0x4b2702=[];for(let _0x36cf82=0x0;_0x36cf82<0x10;_0x36cf82++){const _0x564100=this['_createSkeletonLoader']();_0x564100['extendTemplate']({'attributes':{'class':['ck-ai_review__check-run-skeleton-item']}}),_0x4b2702['push'](_0x564100);}return _0x3162f5['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-skeleton-container',this['bindTemplate']['if']('isLoading','ck-hidden',_0x15463b=>!_0x15463b)]},'children':_0x4b2702}),_0x3162f5;}['_createErrorView'](){const _0x5cf7bf=new View(this['locale']),_0x1421d3=new ButtonView(this['locale']),t=this['locale']['t'];return _0x5cf7bf['delegate']('retryReview')['to'](this),_0x1421d3['set']({'label':t('Try\x20again'),'withText':!0x0,'class':'ck-ai-button-secondary\x20ck-ai_review__check-run-error-retry-button'}),_0x1421d3['on']('execute',()=>{this['fire']('retryReview');}),_0x5cf7bf['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-error-container',this['bindTemplate']['if']('showErrorMessage','ck-hidden',_0x319f89=>!_0x319f89),this['bindTemplate']['if']('errorType','ck-ai_review__check-run-error-container_border-bottom',_0x36013e=>'chunk'===_0x36013e)]},'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',_0x3c919b=>'chunk'===_0x3c919b)]},'children':[{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x5ed029=>'general'!==_0x5ed029)]},'children':[{'text':this['_contents']['generalErrorText']}]},{'tag':'p','attributes':{'class':['ck-ai-notification__content',this['bindTemplate']['if']('errorType','ck-hidden',_0x33955f=>'chunk'!==_0x33955f)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE')}]}]},_0x1421d3]}),_0x5cf7bf;}['_createCancelButtonView'](){const _0x29662f=new ButtonView(this['locale']);return _0x29662f['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_STOP_GENERATING'),'withText':!0x0,'class':['ck-ai-button-secondary\x20ck-ai-button-stop-generating'],'icon':IconStop}),_0x29662f['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isResultReady','ck-hidden',_0x1cd67c=>_0x1cd67c),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5811d1=>_0x5811d1)]}}),_0x29662f['on']('execute',()=>{this['fire']('abortReviewStream');}),_0x29662f;}['_createToggleDiffButtonView'](){const _0x269b48=new ButtonView(this['locale']);_0x269b48['set']({'tooltip':!0x0,'isToggleable':!0x0,'role':'menuitemcheckbox'}),_0x269b48['bind']('isEnabled')['to'](this,'isError',_0x1d0b8d=>!_0x1d0b8d),_0x269b48['extendTemplate']({'attributes':{'class':['ck-ai-button-secondary','ck-ai_review__check-run-toggle-diff-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x12348e=>!_0x12348e),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x54ec49=>_0x54ec49)]}});const _0x4f3f71=getTranslation$i(this['locale'],'AI_REVIEW_MODE_HIDE_CHANGES'),_0x182b56=getTranslation$i(this['locale'],'AI_REVIEW_MODE_SHOW_CHANGES');return _0x269b48['bind']('isOn')['to'](this,'isToggleDiffOn',_0xe8dab0=>_0xe8dab0),_0x269b48['bind']('icon')['to'](this,'isToggleDiffOn',_0x18b3b4=>_0x18b3b4?IconEye:IconEyeCrossedOut),_0x269b48['bind']('label')['to'](this,'isToggleDiffOn',_0x2f46b3=>_0x2f46b3?_0x4f3f71:_0x182b56),_0x269b48['on']('execute',()=>{this['isToggleDiffOn']=!this['isToggleDiffOn'],this['fire']('toggleDiff',{'on':this['isToggleDiffOn']});}),_0x269b48;}['_createAcceptAllButtonView'](){const _0x21f59a=new ButtonView(this['locale']);return _0x21f59a['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_ACCEPT_ALL'),'withText':!0x0}),_0x21f59a['bind']('isEnabled')['to'](this,'isError',_0x49c245=>!_0x49c245),_0x21f59a['extendTemplate']({'attributes':{'class':['ck-ai-button-primary','ck-ai_review__check-run-accept-all-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0x24706c=>!_0x24706c),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x595cfa=>_0x595cfa)]}}),_0x21f59a['on']('execute',()=>{this['fire']('acceptAllChanges');}),_0x21f59a;}['_createExitReviewButtonView'](){const _0x13a80d=new ButtonView(this['locale']);return _0x13a80d['set']({'label':getTranslation$i(this['locale'],'AI_REVIEW_MODE_EXIT_REVIEW'),'withText':!0x0}),_0x13a80d['extendTemplate']({'attributes':{'class':['ck-ai-button-tertiary','ck-ai_review__check-run-exit-button',this['bindTemplate']['if']('isResultReady','ck-hidden',_0xc1003=>!_0xc1003),this['bindTemplate']['if']('isCompleted','ck-hidden',_0x427149=>_0x427149)]}}),_0x13a80d['on']('execute',()=>{this['fire']('leaveReviewCoreResultList');}),_0x13a80d;}['_createResultHeaderView'](){const _0x2d9fa4=new View(this['locale']),_0x2aca14=this['_createTitleView']();return _0x2d9fa4['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header',this['bindTemplate']['if']('isCompleted','ck-ai_review__review-completed-header',_0x5f1eba=>_0x5f1eba)]},'children':[_0x2aca14,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-buttons']},'children':[this['_cancelButtonView'],this['_acceptAllButtonView'],this['_exitReviewButtonView'],this['_toggleDiffButtonView'],this['_finishReviewButtonView']]}]}),_0x2d9fa4;}['_createTitleView'](){const _0x1a2a49=new View(this['locale']),_0x4f8f86=new AISpinnerView();return _0x4f8f86['bind']('isVisible')['to'](this,'isResultReady',_0x2002d3=>!_0x2002d3),_0x1a2a49['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-wrapper']},'children':[_0x4f8f86,{'tag':'div','attributes':{'class':['ck-ai_review__check-run-results-header-title-content',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x9255fb=>_0x9255fb)]},'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')}]}]},{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title',this['bindTemplate']['if']('isCompleted','ck-hidden',_0x16f572=>!_0x16f572)]},'children':[{'text':getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE')}]}]}),_0x1a2a49;}['_createFinishReviewButtonView'](){const _0x460501=new AIReviewCoreFinishReviewButtonView(getTranslation$i(this['locale'],'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL'),this['locale']);return _0x460501['extendTemplate']({'attributes':{'class':[this['bindTemplate']['if']('isCompleted','ck-hidden',_0x5dde0b=>!_0x5dde0b)]}}),_0x460501['delegate']('finishReview')['to'](this),_0x460501;}}class AIReviewCoreReviewCompletedView extends ListItemView{['_resultsHeader'];['_finishReviewButtonView'];constructor(_0x245909,_0x52f29f){super(_0x245909),this['_finishReviewButtonView']=this['_createFinishReviewButtonView'](_0x52f29f['buttonText']),this['_resultsHeader']=this['_createResultHeaderView'](_0x52f29f['headerText']);const _0x59af35=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed',_0x59af35['if']('isVisible','ck-hidden',_0x12b1d0=>!_0x12b1d0)]},'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':_0x52f29f['emptyResultsText']}]}]}]});}['_createFinishReviewButtonView'](_0x58f454){const _0x2207e2=new AIReviewCoreFinishReviewButtonView(_0x58f454,this['locale']);return _0x2207e2['delegate']('finishReview')['to'](this),_0x2207e2;}['_createResultHeaderView'](_0xb626c8){const _0x3b4be0=new View(this['locale']);return _0x3b4be0['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header']},'children':[{'tag':'span','attributes':{'class':['ck-ai_review__review-completed-header-title']},'children':[{'text':_0xb626c8}]},{'tag':'div','attributes':{'class':['ck-ai_review__review-completed-header-buttons']},'children':[this['_finishReviewButtonView']]}]}),_0x3b4be0;}}class AIReviewCoreFormDropdownView extends View{['_dropdownView'];['_defaultValue'];['_defaultLabel'];constructor(_0x43e807,_0x1ca4ed){super(_0x43e807),this['_defaultValue']=_0x1ca4ed['default']||(_0x1ca4ed['data']['length']>0x0?_0x1ca4ed['data'][0x0]['id']:''),this['_defaultLabel']=_0x1ca4ed['data']['find'](_0x36b383=>_0x36b383['id']===this['_defaultValue'])?.['label']||'',this['set']('formValue',''),this['_dropdownView']=createDropdown(this['locale']);const _0x3f9187=this['_prepareListOptions'](_0x1ca4ed['data']);addListToDropdown(this['_dropdownView'],_0x3f9187,{'role':'menu','ariaLabel':_0x1ca4ed['label']}),this['_dropdownView']['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0}),this['_dropdownView']['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x3c9d3f=>{_0x3c9d3f['stopPropagation']();})}}),this['listenTo'](this['_dropdownView'],'execute',_0x5558c8=>{this['formValue']=_0x5558c8['source']['model']['id'],this['_dropdownView']['buttonView']['label']=_0x5558c8['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'](_0x201707=[]){const _0x2442e5=new Collection();this['resetToDefault']();for(const _0x36173a of _0x201707){const _0x49c8d6=new UIModel({'label':_0x36173a['label'],'withText':!0x0,'role':'menuitemradio','id':_0x36173a['id'],'model':_0x36173a});_0x49c8d6['bind']('isOn')['to'](this,'formValue',_0x24af60=>_0x24af60===_0x49c8d6['id']);const _0x14bcbb={'type':'button','model':_0x49c8d6};_0x2442e5['add'](_0x14bcbb);}return _0x2442e5;}}class AIReviewCoreFormManagerView extends ListItemView{['_formItem']=null;constructor(_0x33f7c2,_0x8939ed,_0x989006){super(_0x33f7c2),this['argsKey']=_0x8939ed?.['argsKey'];if('dropdown'===_0x8939ed['formType'])this['_formItem']=new AIReviewCoreFormDropdownView(this['locale'],_0x8939ed);this['set']('value',''),this['bind']('value')['to'](this['_formItem'],'formValue');const _0x2c53f6=new FormRowView(this['locale'],{'children':[this['_formItem']],'class':[_0x989006?'ck-form__row_with-submit':'']});_0x989006&&_0x2c53f6['children']['add'](_0x989006),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai_review__form-item','ck-reset_all']},'children':[_0x2c53f6]});}['resetToDefault'](){this['_formItem']['resetToDefault']();}}class AIReviewCorePromptInputView extends TextareaView{['keystrokes'];static ['MIN_ROWS']=0x1;static ['MAX_ROWS']=0xc;constructor(_0x28c702){super(_0x28c702),this['set']('isEmpty',!0x0),this['keystrokes']=new KeystrokeHandler(),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']);}}class AIReviewCoreCustomCheckView extends View{['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusCycler'];['_focusables']=new ViewCollection();['submitButtonView'];['cancelButtonView'];['promptInputView'];['actionsFooterView'];['_modelSelectionDropdown'];['_modelNameView'];['_modelSelectionDropdownItems'];['_check'];['_defaultValue'];['_defaultLabel'];constructor(_0x5531b9,_0x3b3444,_0x5ba108=!0x1){super(_0x5531b9),this['_check']=_0x3b3444,this['set']('prompt',''),this['set']('modelId',''),this['set']('modelDisplayMode','selector'),this['set']('activeModelName',null),this['_defaultValue']=_0x3b3444['defaultModel']?_0x3b3444['defaultModel']['id']:'',this['_defaultLabel']=_0x3b3444['defaultModel']?_0x3b3444['defaultModel']['name']:'',this['submitButtonView']=this['_createSubmitButtonView'](),this['cancelButtonView']=this['_createCancelButtonView'](),(this['promptInputView']=new LabeledFieldView(this['locale'],()=>new AIReviewCorePromptInputView(_0x5531b9)),this['promptInputView']['fieldView']['bind']('value')['to'](this,'prompt'),this['promptInputView']['fieldView']['on']('input',()=>{this['prompt']=this['promptInputView']['fieldView']['element']['value'];}),this['_modelSelectionDropdown']=this['_createModelSelectionDropdown'](),this['_modelSelectionDropdownItems']=new Collection(),this['_modelNameView']=this['_createModelNameView'](),this['_setModelList'](_0x5ba108),addListToDropdown(this['_modelSelectionDropdown'],this['_modelSelectionDropdownItems']),this['actionsFooterView']=this['_createActionsFooterView'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions']},'children':[new FormRowView(this['locale'],{'children':[this['promptInputView']]}),new FormRowView(this['locale'],{'children':[this['actionsFooterView']]})]}),this['promptInputView']['fieldView']['keystrokes']['set']('Enter',(_0x4cea73,_0x3b6d88)=>{this['_isValid']()?(this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0}),_0x3b6d88()):_0x3b6d88();}),this['focusCycler']=new FocusCycler({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}));}['render'](){super['render'](),([this['promptInputView'],this['_modelSelectionDropdown'],this['cancelButtonView'],this['submitButtonView']]['forEach'](_0x36974e=>{this['_focusables']['add'](_0x36974e),this['focusTracker']['add'](_0x36974e['element']);}),this['keystrokes']['listenTo'](this['element']));}get['modelDefaultValue'](){return this['_defaultValue'];}get['modelDefaultLabel'](){return this['_defaultLabel'];}['resetToDefault'](){this['prompt']='',this['modelId']=this['modelDefaultValue'],this['_modelSelectionDropdown']['buttonView']['label']=this['modelDefaultLabel'],this['resetFormValidationStatus']();}['resetFormValidationStatus'](){this['promptInputView']['errorText']='';}['_isValid'](){this['resetFormValidationStatus']();for(const _0x5208f5 of this['_getFormValidators']()){const _0x7a2424=_0x5208f5();if(_0x7a2424)return this['promptInputView']['errorText']=_0x7a2424,!0x1;}return!0x0;}['_getFormValidators'](){return[()=>{if(0x0===this['promptInputView']['fieldView']['value']?.['trim']()['length'])return getTranslation$i(this['locale'],'AI_REVIEW_MODE_PROMPT_EMPTY_ERROR');}];}['_createSubmitButtonView'](){const _0x3ba183=new ButtonView(this['locale']),t=this['locale']['t'];return _0x3ba183['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x3ba183['on']('execute',()=>{this['_isValid']()&&this['fire']('runReviewCheck',{'id':'custom','args':{'prompt':this['prompt'],'model':this['modelId']},'isCustom':!0x0});}),_0x3ba183;}['_createCancelButtonView'](){const _0x15601b=new ButtonView(this['locale']),t=this['locale']['t'];return _0x15601b['set']({'label':t('Cancel'),'withText':!0x0,'class':'ck-ai-button-tertiary'}),_0x15601b['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x25213a=>{_0x25213a['stopPropagation']();})}}),_0x15601b['on']('execute',()=>{this['resetToDefault'](),this['fire']('closeCustomCheck');}),_0x15601b;}['_setModelList'](_0x1bdcdc){this['_modelSelectionDropdownItems']['clear']();const _0xed0840=this['_check']['models'];if(_0x1bdcdc)this['set']('modelDisplayMode','hidden');else{const _0x2dbd5d=0x1===_0xed0840['length'];this['set']('modelDisplayMode',_0x2dbd5d?'name':'selector');}if(this['resetToDefault'](),_0xed0840?.['length']){0x1===_0xed0840['length']&&this['set']('activeModelName',_0xed0840[0x0]['name']||_0xed0840[0x0]['id']);for(const _0x57e1d5 of _0xed0840){const _0x1d2000=new UIModel({'label':_0x57e1d5['name'],'withText':!0x0,'role':'menuitemradio','id':_0x57e1d5['id'],'model':_0x57e1d5});_0x1d2000['bind']('isOn')['to'](this,'modelId',_0x4585d4=>_0x4585d4===_0x57e1d5['id']),this['_modelSelectionDropdownItems']['add']({'type':'button','model':_0x1d2000,'labelView':new ModelButtonLabelView(this['locale'],_0x57e1d5)});}}}['_createModelSelectionDropdown'](){const _0x24e59b=createDropdown(this['locale']);return _0x24e59b['set']({'panelPosition':'se','class':'ck-ai_review__check-list-item-model-dropdown'}),_0x24e59b['buttonView']['set']({'label':this['_defaultLabel'],'withText':!0x0,'tooltip':!0x0}),_0x24e59b['buttonView']['bind']('isVisible')['to'](this,'modelDisplayMode',_0xd54cf1=>'selector'===_0xd54cf1),this['listenTo'](_0x24e59b,'execute',_0x20b362=>{this['modelId']=_0x20b362['source']['model']['id'],_0x24e59b['buttonView']['label']=_0x20b362['source']['label'];}),_0x24e59b;}['_createModelNameView'](){const _0x3153c5=new ModelNameView(this['locale']);return _0x3153c5['bind']('text')['to'](this,'activeModelName',_0x10ac7f=>_0x10ac7f??''),_0x3153c5['bind']('isVisible')['to'](this,'modelDisplayMode',_0x2b8dab=>'name'===_0x2b8dab),_0x3153c5;}['_createActionsFooterView'](){const _0x4167fe=new View(this['locale']);return _0x4167fe['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-custom-actions-footer']},'children':[this['_modelSelectionDropdown'],this['_modelNameView'],{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-custom-actions-buttons']},'children':[this['cancelButtonView'],this['submitButtonView']]}]}),_0x4167fe;}}class ModelNameView extends View{constructor(_0x262c8e){super(_0x262c8e),this['set']('text',void 0x0),this['set']('isVisible',!0x0);const _0x2d60e2=this['bindTemplate'];this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-ai_review__check-list-item-model-name',_0x2d60e2['if']('isVisible','ck-hidden',_0x57837a=>!_0x57837a)]},'children':[{'text':_0x2d60e2['to']('text')}]});}}class ModelButtonLabelView extends ButtonLabelView{constructor(_0x1eaf49,_0x1d49ef){super();const _0x15aa14=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-button__label'],'style':_0x15aa14['to']('style'),'id':_0x15aa14['to']('id')},'children':[{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-name']},'children':[{'tag':'span','children':[{'text':_0x15aa14['to']('text')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-model-dropdown-description']},'children':[{'tag':'span','children':[_0x1d49ef['description']||'']}]}]});}}class AIReviewCoreReviewCommandListItemView extends ListItemView{['_formItemsCollection']=new ViewCollection();['_customCheckView']=null;['_hideModels']=!0x1;constructor(_0x441dd8,_0x3e888c,_0x506491,_0x11dbf3=!0x1){super(_0x441dd8),this['_hideModels']=_0x11dbf3,this['set']('isParametrizedViewOpen',!0x1),this['set']('isListItemRendered',!0x1),this['set']('isItemParametrized',_0x3e888c['isParameterized']);const _0x443ae2=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',_0x56c69a=>_0x56c69a),this['bindTemplate']['if']('isListItemRendered','ck-ai_review__check-list-item_rendered',_0x533c1d=>_0x533c1d)],'style':{'--ck-ai-review-check-list-item-index':_0x506491}},'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':_0x3e888c['title']}]},_0x443ae2]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-description']},'children':_0x3e888c['description']?[{'text':_0x3e888c['description']}]:[]}]}]},..._0x3e888c['isParameterized']?[this['_createParameterizedView'](_0x3e888c)]:[],...'custom'===_0x3e888c['id']?[this['_createCustomView'](_0x3e888c,this['_hideModels'])]:[]]}),this['on']('click',()=>{_0x3e888c['isParameterized']?this['isParametrizedViewOpen']=!0x0:this['fire']('runReviewCheck',{'id':_0x3e888c['id'],'args':_0x3e888c['useArgs']?_0x3e888c['args']:void 0x0});}),requestAnimationFrame(()=>{this['isListItemRendered']=!0x0;});}['render'](){super['render'](),this['isItemParametrized']&&clickOutsideHandler({'emitter':this,'activator':()=>!0x0===this['isParametrizedViewOpen'],'contextElements':[this['element']],'callback':()=>{this['isParametrizedViewOpen']=!0x1;}});}['resetToDefault'](){this['isParametrizedViewOpen']=!0x1,this['_formItemsCollection']['forEach'](_0x358874=>{_0x358874['resetToDefault']();}),this['_customCheckView']&&this['_customCheckView']['resetToDefault']();}['_createIconView'](){const _0x4b8143=new IconView();return _0x4b8143['content']=IconChevronRight,_0x4b8143['extendTemplate']({'attributes':{'class':['ck-ai_review__check-list-item-title-icon']}}),_0x4b8143;}['_createParameterizedView'](_0x77fba){const _0x58faef=new View(),_0x11000f=this['_createFormView'](_0x77fba);return _0x58faef['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized',this['bindTemplate']['if']('isParametrizedViewOpen','ck-hidden',_0x792e51=>!_0x792e51)]},'children':[_0x11000f]}),_0x58faef;}['_createFormView'](_0x50a574){const _0x12b180=new View(),_0x3f4ea6=Array['isArray'](_0x50a574['options'])?_0x50a574['options']:[],_0x94de=new ButtonView(this['locale']),t=this['locale']['t'];_0x94de['set']({'label':t('Submit'),'withText':!0x0,'class':'ck-ai-button-primary'}),_0x94de['extendTemplate']({'on':{'click':this['bindTemplate']['to'](_0x10075f=>{_0x10075f['stopPropagation']();})}}),_0x94de['on']('execute',()=>{const _0x608a4e=[],_0x4d7f14={};this['_formItemsCollection']['forEach'](_0x388d7a=>{_0x608a4e['push'](_0x388d7a['value']),_0x50a574['useArgs']&&_0x50a574['options']&&(_0x4d7f14[_0x388d7a['argsKey']]=_0x388d7a['value']);}),this['fire']('runReviewCheck',{'id':_0x50a574['id'],'params':_0x608a4e['length']?_0x608a4e:void 0x0,'args':Object['keys'](_0x4d7f14)['length']?_0x4d7f14:void 0x0});});const _0x17c90e=_0x3f4ea6['length'];return _0x3f4ea6['forEach']((_0x1262ad,_0xf1c35f)=>{const _0xbb84b6=_0xf1c35f===_0x17c90e-0x1;this['_formItemsCollection']['add'](new AIReviewCoreFormManagerView(this['locale'],_0x1262ad,_0xbb84b6?_0x94de:null));}),_0x12b180['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list-item-parameterized-form']},'children':this['_formItemsCollection']}),_0x12b180;}['_createCustomView'](_0x47a795,_0x1c92cc=!0x1){return this['_customCheckView']=new AIReviewCoreCustomCheckView(this['locale'],_0x47a795,_0x1c92cc),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',_0x363bb1=>!_0x363bb1)]}}),this['_customCheckView']['delegate']('runReviewCheck')['to'](this),this['listenTo'](this['_customCheckView'],'closeCustomCheck',()=>{this['isParametrizedViewOpen']=!0x1;}),this['on']('change:isParametrizedViewOpen',(_0x4f725a,_0x5a1ce6,_0x4d29b0)=>{_0x4d29b0||this['_customCheckView']['resetFormValidationStatus']();}),this['_customCheckView'];}}class AIReviewCoreReviewCheckListView extends ListItemView{['_checkViews'];constructor(_0x575418){super(_0x575418),this['_checkViews']=new ViewCollection(),this['_setupTemplate']();}['setChecks'](_0xe74f6d,_0x23eeca=!0x1){this['_checkViews']['clear']();for(const [_0x5ea5f8,_0x23353e]of _0xe74f6d['entries']()){const _0x18b6c0=new AIReviewCoreReviewCommandListItemView(this['locale'],_0x23353e,_0x5ea5f8,_0x23eeca);_0x18b6c0['delegate']('runReviewCheck')['to'](this),this['_checkViews']['add'](_0x18b6c0);}}['hasChecks'](){return this['_checkViews']['length']>0x0;}['resetAllParameterizedChecks'](){for(const _0x3a9535 of this['_checkViews'])_0x3a9535 instanceof AIReviewCoreReviewCommandListItemView&&_0x3a9535['resetToDefault']();}['_setupTemplate'](){const _0x2b9967=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x2b9967['if']('isVisible','ck-hidden',_0x25b5c6=>!_0x25b5c6)]},'children':this['_checkViews']});}}class AIReviewModeUI extends AIReviewCoreUI{static get['pluginName'](){return'AIReviewModeUI';}['createMainView'](){const _0x398315=this['context']['locale'],_0x3d3245=new FormHeaderView(_0x398315,{'label':getTranslation$i(_0x398315,'AI_REVIEW_MODE'),'icon':_0x483bc0,'class':'ck-ai-header\x20ck-ai-header_review'});return new AIReviewCoreView(this['context']['locale'],{'header':_0x3d3245,'list':new AIReviewCoreReviewCheckListView(_0x398315),'results':new AIReviewCoreUICheckResultsView(_0x398315,{'generalErrorText':getTranslation$i(_0x398315,'AI_REVIEW_MODE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x398315,{'headerText':getTranslation$i(_0x398315,'AI_REVIEW_MODE_FINISH_REVIEW_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x398315,'AI_REVIEW_MODE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x398315,'AI_REVIEW_MODE_FINISH_REVIEW_BUTTON_LABEL')})});}['registerTab'](){const _0x5c7c7a=this['context']['plugins']['get']('AITabs');_0x5c7c7a['view']['on']('activateTab',(_0x548475,_0x188c32)=>{'reviewMode'===_0x188c32?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x5c7c7a['view']['addTab']({'id':'reviewMode','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_MODE'),'buttonIcon':_0x483bc0,'order':0x0,'content':this['_mainView']});}}const MARKER_PREFIX='review-',CHANGE_CONTEXT_WORDS_LIMIT=0x6;class AIReviewCoreEditing extends ContextPlugin{static get['requires'](){return[DocumentCompare,AIEditing];}static get['pluginName'](){return'AIReviewCoreEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_markers']=new Map();['_activeMarkers']=new Set();['_domEmitter'];['_eventEmitter'];constructor(_0x36c8a8){super(_0x36c8a8),this['_domEmitter']=new(DomEmitterMixin())(),this['_eventEmitter']=new(EmitterMixin())();}get['emitter'](){return this['_eventEmitter'];}['afterInit'](){const _0x2464f3=getEditorFromContext(this['context']);_0x2464f3['conversion']['for']('editingDowncast')['markerToElement']({'model':MARKER_PREFIX+'insert','view':(_0x1e86a3,{writer:_0xa6986d})=>{const _0x14d8a6=this['_markers']['get'](_0x1e86a3['markerName']),_0x29e323={'class':'ck-ai_review-marker_add'+(this['_activeMarkers']['has'](_0x14d8a6?.['id']||'')?'\x20ck-ai_review__change_active':''),'data-marker-id':_0x1e86a3['markerName']};return _0xa6986d['createUIElement']('span',_0x29e323,function(_0x285f8c){const _0x5aaa76=this['toDomElement'](_0x285f8c);return _0x5aaa76['innerHTML']=_0x14d8a6?.['content']?.['asString']||'',_0x5aaa76;});}}),_0x2464f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-only','view':_0x463e66=>{const _0x213c34=this['_markers']['get'](_0x463e66['markerName']),_0x40f762=['ck-ai_review-marker_strikethrough'];return this['_activeMarkers']['has'](_0x213c34?.['id']||'')&&_0x40f762['push']('ck-ai_review__change_active'),{'classes':_0x40f762,'attributes':{'data-marker-id':_0x463e66['markerName']}};}}),_0x2464f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-context','view':_0x18e13c=>{const _0x2a8a35=this['_markers']['get'](_0x18e13c['markerName']),_0x2f2233=['ck-ai_review-marker_underline'];return this['_activeMarkers']['has'](_0x2a8a35?.['id']||'')&&_0x2f2233['push']('ck-ai_review__change_active'),{'classes':_0x2f2233,'attributes':{'data-marker-id':_0x18e13c['markerName']}};}}),_0x2464f3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':MARKER_PREFIX+'remove-text','view':_0x5ba339=>{const _0x5b21c2=this['_markers']['get'](_0x5ba339['markerName']),_0x5ac9e7=['ck-ai_review-marker_hide'];return this['_activeMarkers']['has'](_0x5b21c2?.['id']||'')&&_0x5ac9e7['push']('ck-ai_review__change_active'),{'classes':_0x5ac9e7,'attributes':{'data-marker-id':_0x5ba339['markerName']}};}}),_0x2464f3['conversion']['for']('dataDowncast')['markerToElement']({'model':MARKER_PREFIX+'suggestion-context','view':(_0x3616b4,{writer:_0x35923f})=>_0x35923f['createRawElement']('span',{'class':'ck-ai_review-marker_context-'+(_0x3616b4['isOpening']?'start':'end')})}),_0x2464f3['conversion']['for']('downcast')['attributeToAttribute']({'model':DATA_ID_MODEL_ATTRIBUTE,'view':DATA_ID_VIEW_ATTRIBUTE});const _0x4596da=_0x2464f3['ui']['getEditableElement']()||document['body'];this['_domEmitter']['listenTo'](_0x4596da,'mouseup',(_0x5bb610,_0x56e9a3)=>{const _0x2d9252=_0x56e9a3['target'],_0x5ca8bd=this['_findMarkerElement'](_0x2d9252);if(!_0x5ca8bd)return;const _0x130b31=_0x5ca8bd['getAttribute']('data-marker-id'),_0xc91dc7=_0x130b31['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerClicked',{'markerId':_0x130b31,'changeId':_0xc91dc7,'markerElement':()=>this['_findMarkerElementById'](_0x130b31),'domEvent':_0x56e9a3});},{'usePassive':!0x0,'priority':'highest'}),this['_domEmitter']['listenTo'](_0x4596da,'mouseover',(_0x23171f,_0x4d4dce)=>{const _0x122475=_0x4d4dce['target'],_0x486274=_0x4d4dce['relatedTarget'];let _0x2c5dd9=this['_findMarkerElement'](_0x122475);if(!_0x2c5dd9&&_0x486274&&(_0x2c5dd9=this['_findMarkerElement'](_0x486274)),!_0x2c5dd9)return;const _0x513fcf=_0x2c5dd9['getAttribute']('data-marker-id'),_0x2e1f10=_0x513fcf['split'](':')['pop']()?.['split']('_')[0x0];this['_eventEmitter']['fire']('changeMarkerHovered',{'changeId':_0x2e1f10,'markerElement':()=>this['_findMarkerElementById'](_0x513fcf),'domEvent':_0x4d4dce});}),this['_domEmitter']['listenTo'](document,'mouseover',debounce$1((_0x213f6c,_0x30daf9)=>{const _0xad2aa6=_0x30daf9['target'];if(this['_findMarkerElement'](_0xad2aa6))return;_0xad2aa6['closest']('.ck-reset.ck-ai_review-balloon-panel-suggestion')||this['_eventEmitter']['fire']('changeMarkerBlurred');},0xc8)),_0x2464f3['model']['document']['registerPostFixer'](_0x45820b=>this['_validateMarkers'](_0x2464f3,_0x45820b)),_0x2464f3['model']['document']['on']('change',()=>this['_handleMarkerChanges'](_0x2464f3));}['getDocumentData'](){const _0x1e9858=this['context']['plugins']['get']('AIEditing'),_0x1672f5=getEditorFromContext(this['context']),_0x41eccb=_0x1672f5['model'],_0xacb114=new ModelDocumentFragment();for(const _0x14e9bc of _0x41eccb['document']['getRoot']()['getChildren']()){const _0x5ad801=_0x14e9bc['_clone'](!0x0);_0xacb114['_appendChild'](_0x5ad801);}for(const _0x223626 of _0x41eccb['markers'])_0xacb114['markers']['set'](_0x223626['name'],this['_changeRangeOwnerDocument'](_0x223626['getRange']()['clone'](),_0xacb114));const _0x1ddd65=new ModelTreeWalker({'ignoreElementEnd':!0x0,'startPosition':_0x41eccb['createPositionAt'](_0xacb114,0x0)}),_0x4b4619=new Set(),_0x151d05=new Map();for(const {item:_0x305dbc}of _0x1ddd65){if(!_0x305dbc['is']('$textProxy'))continue;const _0x4046e5=_0x305dbc['parent'];if(_0x4046e5&&_0x4046e5['is']('element')){const _0xe3c999=this['_upsertDataId'](_0x4046e5,()=>_0x1e9858['_nextDataId'](_0x4b4619));_0x4b4619['add'](_0xe3c999);for(const _0x1b1bbb of _0x4046e5['getChildren']())_0x1b1bbb['is']('element')&&_0x4b4619['add'](this['_upsertDataId'](_0x1b1bbb,()=>_0x1e9858['_nextDataId'](_0x4b4619)));let _0x2edc99=_0x4046e5;for(;_0x2edc99['parent']&&!_0x2edc99['parent']['is']('documentFragment');)_0x2edc99=_0x2edc99['parent'],_0x2edc99['hasAttribute'](DATA_ID_MODEL_ATTRIBUTE)&&_0x2edc99['_removeAttribute'](DATA_ID_MODEL_ATTRIBUTE);_0x151d05['set'](_0xe3c999,{'path':_0x4046e5['getPath'](),'getContent':this['_createGetContentUsingDataIdFn'](_0x2edc99['_clone'](!0x0),_0xe3c999,_0x1672f5['data'])}),_0x1ddd65['jumpTo'](_0x41eccb['createPositionAfter'](_0x4046e5));}}return{'content':_0x1672f5['data']['processor']['toData'](_0x1672f5['data']['toView'](_0xacb114)),'version':_0x1672f5['model']['document']['version'],'elements':_0x151d05};}['diffContent'](_0x32f145,_0x3247c3,_0x627b13=!0x1){const _0x252640=[],_0x4f8006=getEditorFromContext(this['context']),_0x663d6b=_0x4f8006['data']['parse'](_0x3247c3,'$documentFragment'),_0x1b9f0d=_0x4f8006['data']['parse'](_0x32f145,'$documentFragment'),_0x4fa16e=_0x4f8006['model']['createPositionAt'](_0x1b9f0d,0x0);if(this['_haveSingleTopLevelElement'](_0x663d6b)){if(!this['_hasSameTopLevelElement'](_0x1b9f0d,_0x663d6b))return _0x252640;}else{const _0x510eb3=_0x4f8006['model']['schema'];if(!this['_haveOnlyInlineContent'](_0x1b9f0d,_0x510eb3)||!this['_haveOnlyInlineContent'](_0x663d6b,_0x510eb3))return _0x252640;}const _0x40e6d7=this['context']['plugins']['get']('DocumentCompare')['getDiff'](_0x32f145,_0x3247c3,{'anchor':_0x4fa16e,'markDeletions':!0x0})['getOperations']()['filter'](_0x553fa9=>'insert'===_0x553fa9['type']||'marker'===_0x553fa9['type']&&_0x553fa9['name']['startsWith']('$markedRemove')),_0x31cf8d=this['_groupAdjacentOperations'](_0x40e6d7),_0x252933=[];if(_0x627b13){if(_0x31cf8d['length']){const _0x29ff4f=_0x31cf8d[0x0]['operations'][0x0],_0x2d93c6='insert'===_0x29ff4f['type']?_0x29ff4f['position']:_0x29ff4f['newRange']['start'],_0x54b84c=this['_getPositionLimitingRange'](_0x2d93c6,_0x4f8006,'inside'),_0x431b2f=_0x54b84c?_0x663d6b['getChild'](0x0)['getChildren']():_0x663d6b['getChildren'](),_0x1a9160=_0x54b84c||_0x4f8006['model']['createRangeIn'](_0x1b9f0d),_0x3a004c=[new MarkerOperation('$markedRemove:synthetic'+uid(),null,_0x1a9160,_0x4f8006['model']['document']['model']['markers'],!0x0,_0x4f8006['model']['document']['version']+0x1),new InsertOperation(_0x1a9160['end'],_0x431b2f,_0x4f8006['model']['document']['version']+0x2)];_0x252933['push']({'operations':_0x3a004c,'operationsIsolated':_0x3a004c,'groupOffset':0x0});}}else _0x252933['push'](..._0x31cf8d);let _0x30db6e=0x0;return _0x4f8006['model']['change'](_0x566cc0=>{for(let _0xa576ce=0x0;_0xa576ce<_0x252933['length'];_0xa576ce++){const _0x6f0c82=_0x252933[_0xa576ce],_0x38695f=_0x566cc0['createDocumentFragment']();for(const _0x1efddf of _0x1b9f0d['getChildren']())_0x566cc0['append'](_0x1efddf['_clone'](!0x0),_0x38695f);for(const _0x1d22b0 of _0x6f0c82['operationsIsolated'])if('insert'===_0x1d22b0['type']){const _0x154bfc=_0x1d22b0;_0x154bfc['baseVersion']=null,_0x154bfc['isDocumentOperation']=!0x1,this['_changeOperationOwnerDocument'](_0x154bfc,_0x38695f),_0x566cc0['batch']['addOperation'](_0x1d22b0),_0x4f8006['model']['applyOperation'](_0x1d22b0);const _0x14c208='suggestion:insertion:id:authorId:'+_0x30db6e++,_0x1d7a28=_0x4f8006['model']['createRange'](_0x154bfc['position'],_0x154bfc['position']['getShiftedBy'](_0x154bfc['howMany']));_0x38695f['markers']['set'](_0x14c208,_0x1d7a28);}else{if('marker'===_0x1d22b0['type']&&_0x1d22b0['name']['startsWith']('$markedRemove')){const _0x4982a9=_0x1d22b0,_0x1b9d10='suggestion:deletion:id:authorId:'+_0x30db6e++;this['_changeOperationOwnerDocument'](_0x4982a9,_0x38695f),_0x38695f['markers']['set'](_0x1b9d10,_0x4982a9['newRange']);}}if(_0x627b13)_0x252640['push']({..._0x6f0c82,'context':this['_createGetContentFn'](_0x1b9f0d,_0x4f8006['data']),'content':this['_createGetContentFn'](_0x1b9f0d,_0x4f8006['data'])});else{const _0x836372=this['_getChangeContext'](this['_changePositionOwnerDocument'](this['_getOperationStart'](_0x6f0c82['operationsIsolated'][0x0]),_0x38695f),this['_changePositionOwnerDocument'](this['_getOperationEnd'](_0x6f0c82['operationsIsolated'][_0x6f0c82['operationsIsolated']['length']-0x1]),_0x38695f));_0x38695f['markers']['set'](MARKER_PREFIX+'suggestion-context',new ModelRange(_0x836372['start'],_0x836372['end'])),_0x252640['push']({..._0x6f0c82,'context':this['_createGetContextFn'](_0x38695f,_0x4f8006['data'],{'ellipsisBefore':_0x836372['hasContentBefore'],'ellipsisAfter':_0x836372['hasContentAfter']}),'content':this['_createGetContentFn'](_0x38695f,_0x4f8006['data'])});}}}),_0x252640;}['markChangePositionInEditorContent'](_0x5a782f,_0x246efc){if(!_0x5a782f['length'])return;const _0x22d575=_0x5a782f[0x0]['parent']['id'],_0x3a36f0=_0x246efc['elements']['get'](_0x22d575);if(!_0x3a36f0)return void console['warn']('No\x20element\x20found\x20for\x20ID:\x20'+_0x22d575);const _0x55c9f4=_0x3a36f0['path'],_0xf7c4d6=getEditorFromContext(this['context']),_0x1f9c19=_0xf7c4d6['model']['document']['history']['getOperations'](_0x246efc['version']),_0x1c4549=[];for(const _0x1def93 of _0x5a782f){const _0x9529ff=_0x1def93['operationsIsolated']['map'](_0xd0a96d=>this['_translateOperationToEditorContent'](_0xd0a96d,_0x55c9f4,_0xf7c4d6['model']['document']['getRoots']()[0x0]));if(!_0x9529ff||!_0x9529ff['length'])continue;const _0x55e1e0=_0x9529ff['every'](_0x384e4f=>'marker'===_0x384e4f['type']&&_0x384e4f['name']['startsWith']('$markedRemove')),_0x3f2db4={'document':_0xf7c4d6['model']['document'],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4765fc=transformOperationSets(_0x9529ff,_0x1f9c19,_0x3f2db4)['operationsA'];for(const _0x33f607 of _0x4765fc)if('insert'===_0x33f607['type']){const _0x1543c2=_0x33f607,_0x31d5c7=_0x1543c2['nodes'];_0xf7c4d6['model']['change'](_0x4ba24b=>{const _0x62a989=_0x4ba24b['createDocumentFragment']();for(const _0x10e847 of _0x31d5c7)_0x4ba24b['append'](_0x10e847['_clone'](!0x0),_0x62a989);_0x1c4549['push']({'start':_0x1543c2['position'],'end':_0x1543c2['position'],'type':'insert','groupId':_0x1def93['id'],'content':{'asString':this['_createGetContentFn'](_0x62a989,_0xf7c4d6['data'])(),'asFragment':_0x62a989}});});}else{if('marker'===_0x33f607['type']&&_0x33f607['name']['startsWith']('$markedRemove')){const _0x4a1a33=_0x33f607;let _0x429bcd='remove-text';if(_0x55e1e0){const _0x3d1f80=this['_findAdjacentContextDistance'](_0x4a1a33['newRange']['start'],'backward',_0xf7c4d6['model']['schema']),_0x594e36=this['_findAdjacentContextDistance'](_0x4a1a33['newRange']['end'],'forward',_0xf7c4d6['model']['schema']);if(_0x3d1f80||_0x594e36){const _0x2bb05e=_0x4a1a33['newRange']['start']['getShiftedBy'](-_0x3d1f80),_0x5800d8=_0x4a1a33['newRange']['end']['getShiftedBy'](_0x594e36);_0x1c4549['push']({'start':_0x2bb05e,'end':_0x5800d8,'groupId':_0x1def93['id'],'type':'remove-context'});}else _0x429bcd='remove-only';}_0x1c4549['push']({'start':_0x4a1a33['newRange']['start'],'end':_0x4a1a33['newRange']['end'],'groupId':_0x1def93['id'],'type':_0x429bcd});}}}this['_insertMarkers'](_0x1c4549);}['clearAllMarkers'](){const _0x2b4ea8=getEditorFromContext(this['context']);_0x2b4ea8['model']['change'](_0x1584b7=>{for(const _0x2d6116 of this['_markers']['keys']())_0x2b4ea8['model']['markers']['get'](_0x2d6116)&&_0x1584b7['removeMarker'](_0x2d6116);}),this['_markers']['clear'](),this['_activeMarkers']['clear']();}['switchToReadOnly'](){getEditorFromContext(this['context'])['enableReadOnlyMode']('ai-review');}['switchToEdit'](){getEditorFromContext(this['context'])['disableReadOnlyMode']('ai-review');}['applyChange'](_0xa5c418){const _0x201450=getEditorFromContext(this['context']),_0x15835f=_0x201450['model'],_0x242bc5=_0xa5c418['map'](_0x4b6e2a=>this['_getMarkersDataForGroup'](_0x4b6e2a))['flat']();_0x15835f['change'](_0x3604ec=>{for(const _0x6277b5 of _0x242bc5){const _0x2a0e58=_0x201450['model']['markers']['get'](_0x6277b5['id']);if(_0x2a0e58){if('insert'===_0x6277b5['type']){if(!_0x6277b5['content'])continue;_0x15835f['insertContent'](_0x6277b5['content']['asFragment']||null,_0x2a0e58['getRange']()['start']);}else'remove-text'!==_0x6277b5['type']&&'remove-only'!==_0x6277b5['type']||_0x15835f['deleteContent'](_0x15835f['createSelection'](_0x2a0e58['getRange']()));_0x3604ec['removeMarker'](_0x6277b5['id']),this['_markers']['delete'](_0x6277b5['id']);}}});}['rejectChange'](_0x28a4eb){const _0x4c77cb=getEditorFromContext(this['context']),_0x3d7907=this['_getMarkersDataForGroup'](_0x28a4eb);_0x4c77cb['model']['change'](_0x59474f=>{for(const _0x1a8433 of _0x3d7907)_0x59474f['removeMarker'](_0x1a8433['id']),this['_markers']['delete'](_0x1a8433['id']);});}['getEditor'](){return getEditorFromContext(this['context']);}['getMarkerElementForChange'](_0x6374a4){const _0x211c89=Array['from'](this['_markers']['values']())['filter'](_0x35d14b=>_0x35d14b['groupId']===_0x6374a4);if(!_0x211c89['length'])return null;const _0x18a4f5=0x1===_0x211c89['length']?_0x211c89[0x0]:this['_sortMarkers'](_0x211c89)[0x0],_0x5c2445=getEditorFromContext(this['context'])['model']['markers']['get'](_0x18a4f5['id']);if(!_0x5c2445)return null;return{'modelRange':_0x5c2445['getRange'](),'getElement':()=>this['_findMarkerElementById'](_0x18a4f5['id'])};}['getContentElementForChange'](_0x191a1b){const _0x222f9e=Array['from'](this['_markers']['values']())['filter'](_0x7d6321=>_0x7d6321['groupId']===_0x191a1b);if(!_0x222f9e['length'])return null;const _0x370d21=0x1===_0x222f9e['length']?_0x222f9e[0x0]:this['_sortMarkers'](_0x222f9e)[0x0],_0x3dc253=getEditorFromContext(this['context']),_0x1e5a17=_0x3dc253['model']['markers']['get'](_0x370d21['id']);if(!_0x1e5a17)return null;const _0x12aaa1=_0x1e5a17['getRange'](),_0x223b01=_0x3dc253['editing']['view']['getDomRoot']();if(!_0x223b01||!_0x12aaa1)return null;let _0x125162=_0x12aaa1['start']['parent'];for(;_0x125162['parent']&&'$root'!==_0x125162['parent']['name'];)_0x125162=_0x125162['parent'];if(!_0x125162||!_0x125162['name'])return null;const _0x2a412b=_0x223b01['querySelector']('[data-marker-id=\x22'+_0x370d21['id']+'\x22]');if(!_0x2a412b)return null;let _0x565e45=null;_0x3dc253['model']['change'](_0x15a45f=>{_0x565e45=_0x15a45f['createDocumentFragment'](),_0x15a45f['append'](_0x125162['_clone'](!0x0),_0x565e45);});const _0x474202=_0x3dc253['data']['toView'](_0x565e45)['getChild'](0x0);return _0x2a412b['closest'](_0x474202['name']);}['reactivateMarkers'](_0x107065){const _0x280bd5=this['_getMarkersDataForGroup'](_0x107065);if(!_0x280bd5['length'])return;const _0x3f13d5=Array['from'](this['_activeMarkers'])['sort'](),_0x2f94c5=Array['from'](new Set(_0x280bd5['map'](_0x44a7a2=>_0x44a7a2['id'])))['sort']();_0x3f13d5['join']('|')!==_0x2f94c5['join']('|')&&(this['setAllMarkersAsInactive'](),this['setMarkersInElementAsActive'](_0x107065));}['setMarkersInElementAsActive'](_0x20fab8){const _0x56372b=this['_getMarkersDataForGroup'](_0x20fab8);if(!_0x56372b['length'])return;const _0x53b5b8=getEditorFromContext(this['context']),_0x59917f=new Set(_0x56372b['map'](_0x32ccec=>_0x32ccec['id'])),_0x2fee1d=Array['from'](_0x59917f['values']())['map'](_0x381d04=>_0x53b5b8['model']['markers']['get'](_0x381d04))['filter'](_0x51796a=>!!_0x51796a);_0x59917f['forEach'](_0x2c0a85=>{this['_activeMarkers']['add'](_0x2c0a85);}),_0x53b5b8['model']['change'](()=>{_0x2fee1d['forEach'](_0x2efb05=>{_0x53b5b8['editing']['reconvertMarker'](_0x2efb05);});});}['setAllMarkersAsInactive'](){const _0x3f2687=Array['from'](this['_activeMarkers']);if(!_0x3f2687['length'])return;this['_activeMarkers']['clear']();const _0x1b84f9=getEditorFromContext(this['context']),_0x5f2413=_0x3f2687['map'](_0x417a1e=>_0x1b84f9['model']['markers']['get'](_0x417a1e))['filter'](_0x353cd6=>!!_0x353cd6);_0x1b84f9['model']['change'](()=>{_0x5f2413['forEach'](_0x579b0c=>{_0x1b84f9['editing']['reconvertMarker'](_0x579b0c);});});}['_getPositionLimitingRange'](_0x4be669,_0x3feced,_0x35f1c5='outside'){if(!_0x4be669)return null;let _0x3ca7d3=_0x4be669['parent'];for(;_0x3ca7d3&&_0x3ca7d3['parent']&&'$root'!==_0x3ca7d3['parent']['name']&&!_0x3feced['model']['schema']['isLimit'](_0x3ca7d3)&&!_0x3feced['model']['schema']['isBlock'](_0x3ca7d3);)_0x3ca7d3=_0x3ca7d3['parent'];if(!_0x3ca7d3||!_0x3ca7d3['name']||'$root'===_0x3ca7d3['name'])return null;let _0x2f9bc1=null;return _0x3feced['model']['change'](_0x3b2378=>{_0x2f9bc1='inside'===_0x35f1c5?_0x3b2378['createRangeIn'](_0x3ca7d3):_0x3b2378['createRangeOn'](_0x3ca7d3);}),_0x2f9bc1;}['_validateMarkers'](_0xbf76b7,_0x2fd4e6){const _0x382bba=Array['from'](this['_markers']['keys']()),_0x499b4f=new Map();for(const _0x125cd8 of _0x382bba){const _0x15f88f=_0xbf76b7['model']['markers']['get'](_0x125cd8);if(!_0x15f88f)continue;const _0x1e43a6=_0x15f88f['getStart']()['path'][0x0];_0x499b4f['has'](_0x1e43a6)||_0x499b4f['set'](_0x1e43a6,[]),_0x499b4f['get'](_0x1e43a6)['push'](_0x15f88f);}const _0x14da43=new Set();for(const _0x99ad24 of _0xbf76b7['model']['document']['differ']['getChanges']()){let _0x4e0476=-0x1,_0x1f01a9=null;if('insert'===_0x99ad24['type'])_0x1f01a9=new ModelRange(_0x99ad24['position'],_0x99ad24['position']['getShiftedBy'](_0x99ad24['length'])),_0x4e0476=_0x99ad24['position']['path'][0x0];else{if('remove'!==_0x99ad24['type'])continue;_0x1f01a9=new ModelRange(_0x99ad24['position']),_0x4e0476=_0x99ad24['position']['path'][0x0];}const _0x390ddd=_0x499b4f['get'](_0x4e0476)||[];if(_0x390ddd['length']){for(const _0x1b343a of _0x390ddd)if(_0x1f01a9['root']['rootName']===_0x1b343a['getRange']()['root']['rootName']&&('insert'!==_0x99ad24['type']||!_0x1f01a9['containsRange'](_0x1b343a['getRange']()))&&(_0x1f01a9['isIntersecting'](_0x1b343a['getRange']())||_0x1f01a9['start']['isTouching'](_0x1b343a['getRange']()['end'])||_0x1f01a9['end']['isTouching'](_0x1b343a['getRange']()['start']))){const _0x2a8b90=this['_parseMarkerName'](_0x1b343a['name']);Array['from'](this['_markers']['values']())['filter'](_0x493b31=>_0x493b31['groupId']===_0x2a8b90['groupId'])['forEach'](_0x749f32=>_0x14da43['add'](_0x749f32['id']));}}}if(_0x14da43['size']){for(const _0x168d11 of _0x14da43)_0x2fd4e6['removeMarker'](_0x168d11);return!0x0;}return!0x1;}['_handleMarkerChanges'](_0x538cf3){for(const {name:_0x487db4,data:_0xa5f06f}of _0x538cf3['model']['document']['differ']['getChangedMarkers']()){if(!_0x487db4['startsWith'](MARKER_PREFIX))continue;const _0x10856f=_0xa5f06f['oldRange'],_0x9b300f=_0xa5f06f['newRange'],_0x27ee40=_0x10856f&&'$graveyard'===_0x10856f['root']['rootName'],_0x2b1dd8=_0x9b300f&&'$graveyard'===_0x9b300f['root']['rootName'];if(_0x27ee40&&_0x2b1dd8)continue;const _0x1b5078=this['_parseMarkerName'](_0x487db4);this['_markers']['get'](_0x487db4)&&(_0x2b1dd8||!_0x9b300f?this['_eventEmitter']['fire']('changeMarkerRemoved',{'markerId':_0x487db4,'changeId':_0x1b5078['groupId']}):_0x27ee40&&_0x9b300f&&this['_eventEmitter']['fire']('changeMarkerRestored',{'markerId':_0x487db4,'changeId':_0x1b5078['groupId']}));}}['_parseMarkerName'](_0x58e03c){const _0x316658=_0x58e03c['split'](':'),_0x2ad3c9=(_0x316658[0x1]||'')['split']('_');return{'prefix':_0x316658[0x0],'groupId':_0x2ad3c9[0x0],'suffix':_0x2ad3c9[0x1]};}['_translateOperationToEditorContent'](_0x2704ce,_0xf8c199,_0x787e8d){if('insert'===_0x2704ce['type']){const _0x32bb29=_0x2704ce;return new InsertOperation(this['_changePosition'](_0xf8c199['concat'](_0x32bb29['position']['offset']),_0x787e8d),_0x32bb29['nodes'],_0x32bb29['baseVersion']);}if('marker'===_0x2704ce['type']&&_0x2704ce['name']['startsWith']('$markedRemove')){const _0x5d584=_0x2704ce;return new MarkerOperation(_0x5d584['name'],_0x5d584['oldRange'],this['_changeRange'](_0x5d584['newRange'],_0xf8c199['concat'](_0x5d584['newRange']['start']['offset']),_0xf8c199['concat'](_0x5d584['newRange']['end']['offset']),_0x787e8d),_0x5d584['_markers'],_0x5d584['affectsData'],_0x5d584['baseVersion']);}return _0x2704ce;}['_groupAdjacentOperations'](_0x51107f){if(!_0x51107f['length'])return[];const _0x1a868d=[];let _0x2030bc=0x0,_0x211602=0x0,_0x2d50c7=[];for(let _0x9dd1f3=0x0;_0x9dd1f3<=_0x51107f['length'];_0x9dd1f3++){const _0xa60726=_0x51107f[_0x9dd1f3],_0x3616ea=_0x51107f[_0x9dd1f3-0x1];!_0xa60726||_0x3616ea&&!this['_getOperationEnd'](_0x3616ea)['isTouching'](this['_getOperationStart'](_0xa60726))?(_0x1a868d['push']({'operations':_0x2d50c7,'operationsIsolated':_0x2d50c7['map'](_0x5bdd88=>this['_shiftOperation'](_0x5bdd88['clone'](),-_0x211602)),'groupOffset':_0x2030bc}),_0x2d50c7=_0xa60726?[_0xa60726]:[],_0x211602+=_0x2030bc,_0x2030bc=0x0):_0x2d50c7['push'](_0xa60726),_0xa60726&&'insert'===_0xa60726['type']&&(_0x2030bc+=_0xa60726['howMany']);}return _0x1a868d;}['_findAdjacentContextDistance'](_0xcca101,_0x3a2625,_0x4b320e,_0xb2fae0=0x1){const _0x27c61f=new ModelTreeWalker({'startPosition':_0xcca101,'direction':_0x3a2625});let _0xa91e9a=0x0;for(let _0x2310e1=0x0;_0x2310e1<_0xb2fae0;_0x2310e1++){let _0x349ebd=0x0,_0x548fdb=!0x1,_0x3d775a='forward'===_0x3a2625?/^\W*\w+/:/\w+\W*$/;for(const {item:_0x13d97e}of _0x27c61f)if(_0x13d97e['is']('$textProxy')){const _0x26d2a8=_0x3d775a['exec'](_0x13d97e['data']);if(_0x26d2a8&&_0x26d2a8['length']){if(_0x349ebd+='forward'===_0x3a2625?_0x26d2a8['index']+_0x26d2a8[0x0]['length']:_0x13d97e['data']['length']-_0x26d2a8['index'],_0x26d2a8[0x0]['length']!==_0x13d97e['data']['length'])break;_0x548fdb=!0x0,_0x3d775a='forward'===_0x3a2625?/^\w+/:/\w+$/;}else{if(_0x548fdb)break;_0x349ebd+=_0x13d97e['offsetSize'];}}else{if(_0x13d97e['is']('element')){_0x4b320e['isInline'](_0x13d97e)&&!_0x548fdb&&(_0x349ebd+=0x1);break;}}_0xa91e9a+=_0x349ebd,_0x27c61f['jumpTo'](_0xcca101['getShiftedBy']('forward'===_0x3a2625?_0xa91e9a:-_0xa91e9a));}return _0xa91e9a;}['_getChangeContext'](_0x38f54e,_0x23b360){const _0x4758e7=getEditorFromContext(this['context'])['model']['schema'],_0x43d9fc=this['_findAdjacentContextDistance'](_0x38f54e,'backward',_0x4758e7,CHANGE_CONTEXT_WORDS_LIMIT),_0xdc5a58=this['_findAdjacentContextDistance'](_0x23b360,'forward',_0x4758e7,CHANGE_CONTEXT_WORDS_LIMIT),_0x4915f1=_0x38f54e['getShiftedBy'](-_0x43d9fc),_0x57844b=_0x23b360['getShiftedBy'](_0xdc5a58);return{'start':_0x4915f1,'end':_0x57844b,'hasContentBefore':!_0x4915f1['isAtStart'],'hasContentAfter':!_0x57844b['isAtEnd']};}['_insertMarkers'](_0x2a343c){const _0x553d8b=this['context']['plugins']['get']('AIEditing'),_0x48b6ef=new Set();getEditorFromContext(this['context'])['model']['change'](_0x5763ef=>{for(const _0x4babc0 of _0x2a343c){const _0x27c9e9=''+MARKER_PREFIX+_0x4babc0['type']+':'+_0x4babc0['groupId']+'_'+_0x553d8b['_nextDataId'](_0x48b6ef);this['_markers']['set'](_0x27c9e9,{'id':_0x27c9e9,'groupId':_0x4babc0['groupId'],'type':_0x4babc0['type'],'content':_0x4babc0['content']}),_0x5763ef['addMarker'](_0x27c9e9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5763ef['createRange'](_0x4babc0['start'],_0x4babc0['end'])});}});}['_createGetContextFn'](_0xe96959,_0x38af94,_0x2c9a8e){let _0x5978c7='';return()=>{if(!_0x5978c7){const _0x474e3b=_0x38af94['toView'](_0xe96959,{'showSuggestionHighlights':!0x0});let _0x53eb8d=_0x474e3b['getChild'](0x0);if(_0x53eb8d['is']('containerElement')||(_0x53eb8d=_0x474e3b),!_0x53eb8d)return'';let _0x5d6f64=!0x1;const _0x435710=[];for(const _0x23777d of _0x53eb8d['getChildren']())_0x23777d['is']('element','span')&&_0x23777d['hasClass']('ck-ai_review-marker_context-end')&&(_0x5d6f64=!0x1),_0x5d6f64&&_0x435710['push'](_0x23777d),_0x23777d['is']('element','span')&&_0x23777d['hasClass']('ck-ai_review-marker_context-start')&&(_0x5d6f64=!0x0);_0x53eb8d['_removeChildren'](0x0,_0x53eb8d['childCount']),_0x2c9a8e?.['ellipsisBefore']&&_0x53eb8d['_appendChild']('…'),_0x53eb8d['_appendChild'](_0x435710),_0x2c9a8e?.['ellipsisAfter']&&_0x53eb8d['_appendChild']('…');const _0x1d18c9=_0x38af94['htmlProcessor']['domConverter']['viewToDom'](_0x474e3b),_0x5623b5=_0x38af94['htmlProcessor']['htmlWriter']['getHtml'](_0x1d18c9);_0x5978c7=_0x5623b5;}return _0x5978c7;};}['_createGetContentFn'](_0xf15ece,_0x493d8d){let _0x2495fa='';return()=>(_0x2495fa||(_0x2495fa=_0x493d8d['stringify'](_0xf15ece,{'showSuggestionHighlights':!0x0})),_0x2495fa);}['_createGetContentUsingDataIdFn'](_0x5da383,_0x1716c2,_0x2cd501){let _0x27cdfe='';return()=>{if(!_0x27cdfe){const _0x2942d8=_0x2cd501['toView'](new ModelDocumentFragment(_0x5da383)),_0x571e68=_0x2cd501['htmlProcessor']['domConverter']['viewToDom'](_0x2942d8)['querySelector']('[data-id=\x22'+_0x1716c2+'\x22]');_0x27cdfe=_0x571e68?.['outerHTML']||'';}return _0x27cdfe;};}['_findMarkerElement'](_0x1bc7f8,_0x1da9ef=0x5){let _0xc72ca8=_0x1bc7f8,_0x499846=null;for(let _0x2f5201=0x0;_0x2f5201<_0x1da9ef&&_0xc72ca8;_0x2f5201++){if(!_0xc72ca8['className']){_0xc72ca8=_0xc72ca8['parentElement'];continue;}if(!(''+_0xc72ca8['className'])['includes']('ck-ai_review-marker_')){_0xc72ca8=_0xc72ca8['parentElement'];continue;}if(!_0xc72ca8['getAttribute']('data-marker-id'))break;_0x499846=_0xc72ca8;break;}return _0x499846;}['_findMarkerElementById'](_0x19d4a6){const _0x436675=getEditorFromContext(this['context']),_0x2b25b9=_0x436675['model']['markers']['get'](_0x19d4a6);return _0x2b25b9?getMarkerDomElement(_0x436675['editing'],_0x2b25b9):null;}['_getMarkersDataForGroup'](_0x3f9f56){return Array['from'](this['_markers']['values']())['filter'](_0x39b131=>_0x39b131['groupId']===_0x3f9f56);}['_getOperationStart'](_0x3192bc){return'insert'===_0x3192bc['type']?_0x3192bc['position']:_0x3192bc['newRange']['start'];}['_getOperationEnd'](_0x49df83,_0x27b0e9=!0x1){return'insert'===_0x49df83['type']?_0x27b0e9?_0x49df83['position']:_0x49df83['position']['getShiftedBy'](_0x49df83['howMany']):_0x49df83['newRange']['end'];}['_shiftOperation'](_0x517ca6,_0xb86ef6){return'insert'===_0x517ca6['type']?_0x517ca6['position']=_0x517ca6['position']['getShiftedBy'](_0xb86ef6):'marker'===_0x517ca6['type']&&_0x517ca6['newRange']&&(_0x517ca6['newRange']=new ModelRange(_0x517ca6['newRange']['start']['getShiftedBy'](_0xb86ef6),_0x517ca6['newRange']['end']['getShiftedBy'](_0xb86ef6))),_0x517ca6;}['_changeOperationOwnerDocument'](_0x1d6ac4,_0x326396){'insert'===_0x1d6ac4['type']?_0x1d6ac4['position']=this['_changePositionOwnerDocument'](_0x1d6ac4['position'],_0x326396):'marker'===_0x1d6ac4['type']&&_0x1d6ac4['newRange']&&(_0x1d6ac4['newRange']=this['_changeRangeOwnerDocument'](_0x1d6ac4['newRange'],_0x326396));}['_changePositionOwnerDocument'](_0x4627a3,_0x52e70a){return new ModelPosition(_0x52e70a,_0x4627a3['path']);}['_changeRangeOwnerDocument'](_0x55f461,_0x48da34){return new ModelRange(this['_changePositionOwnerDocument'](_0x55f461['start'],_0x48da34),this['_changePositionOwnerDocument'](_0x55f461['end'],_0x48da34));}['_changePosition'](_0x506994,_0x175329){return new ModelPosition(_0x175329,[..._0x506994]);}['_changeRange'](_0x368b70,_0x2eb579,_0x86e116,_0x10ed96){return new ModelRange(this['_changePosition'](_0x2eb579,_0x10ed96),this['_changePosition'](_0x86e116,_0x10ed96));}['_sortMarkers'](_0x5ce516){const _0x1c185e=_0x115d01=>{switch(_0x115d01){case'insert':return 0x0;case'remove-context':return 0x1;case'remove-only':return 0x2;case'remove-text':return 0x3;}};return _0x5ce516['sort']((_0x5bbffb,_0x135735)=>_0x1c185e(_0x5bbffb['type'])-_0x1c185e(_0x135735['type']));}['_hasSameTopLevelElement'](_0x45c928,_0x28e3f6){const _0x431dd7=_0x45c928['getChild'](0x0),_0x3969f6=_0x28e3f6['getChild'](0x0);return!(!_0x431dd7||!_0x3969f6)&&((!_0x431dd7['is']('element')||!_0x3969f6['is']('element')||_0x431dd7['name']===_0x3969f6['name'])&&!(_0x431dd7['is']('element')&&!_0x3969f6['is']('element')||!_0x431dd7['is']('element')&&_0x3969f6['is']('element')));}['_haveSingleTopLevelElement'](_0x8e7154){return 0x1===_0x8e7154['childCount'];}['_haveOnlyInlineContent'](_0x1b7550,_0x48c8e1){for(const _0x19c332 of _0x1b7550['getChildren']())if(_0x19c332['is']('element')&&!_0x48c8e1['isInline'](_0x19c332))return!0x1;return!0x0;}['_upsertDataId'](_0x557982,_0xd79e54){let _0x595972=_0x557982['getAttribute'](DATA_ID_MODEL_ATTRIBUTE);return _0x595972||(_0x595972=_0xd79e54(),_0x557982['_setAttribute'](DATA_ID_MODEL_ATTRIBUTE,_0x595972)),_0x595972;}}class AIReviewCheckResult extends EmitterMixin(){['id'];['contentNew'];['contentInitial'];['documentVersion'];constructor({id:_0x3f3a74,contentNew:_0x16fafb,contentInitial:_0x51f4ce,documentVersion:_0x3ef770}){super(),this['id']=_0x3f3a74,this['contentNew']=_0x16fafb,this['contentInitial']=_0x51f4ce,this['documentVersion']=_0x3ef770;}}class AIReviewCheckResultChange extends ObservableMixin(){['id'];['parent'];['_data'];['_editorOperations']=[];constructor(_0x11480e,_0x8e6551,_0x32080b){super(),this['id']=_0x11480e,this['parent']=_0x32080b,this['_data']=_0x8e6551,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']['context']();}get['operations'](){return this['_data']['operations'];}get['operationsIsolated'](){return this['_data']['operationsIsolated'];}}class AIReviewCheckRun extends ObservableMixin(){['id']=uid();['callId'];['_results']=new Map();['_changes']=[];['_sourceCheck'];['_documentData'];['_aiConnector'];['_reviewParams'];['_reviewArgs'];['_activeRequest']=null;['_currentError'];['_wasAborted']=!0x1;constructor(_0x571c8d,_0x3f7add,_0x5b7627,_0x4c0ac8,_0x59383f){super(),this['_sourceCheck']=_0x3f7add,this['_documentData']=_0x571c8d,this['_aiConnector']=_0x5b7627,this['_reviewParams']=_0x4c0ac8,this['_reviewArgs']=_0x59383f,this['on']('change:status',(_0xe3642f,_0x1f0a9d,_0x301cc2)=>{'aborted'==_0x301cc2&&(this['_wasAborted']=!0x0),this['fire']('reviewCheckRunUpdated',{'status':_0x301cc2,'run':this,'error':this['_currentError']});}),this['set']('status','initialized');}get['documentData'](){return this['_documentData'];}get['processedResultsCount'](){return this['_results']['size'];}get['title'](){return this['_sourceCheck']['title'];}get['subTitle'](){return'';}get['reviewName'](){return this['_sourceCheck']['id'];}get['hasModifications'](){return!this['_changes']['every'](_0x1354d0=>'pending'===_0x1354d0['status']);}get['currentError'](){return this['_currentError'];}['updateDocumentData'](_0x31489d){this['_documentData']=_0x31489d;}async['start'](){this['status']='loading',this['_currentError']=void 0x0;try{this['_activeRequest']=this['_createApiRequest']();const _0x4113ba=await this['_activeRequest']['getStream']();this['status']='data';for await(const _0x2bde94 of _0x4113ba)'unmodified'!==_0x2bde94['data']['operation']&&('error'!==_0x2bde94['data']['operation']?'review-metadata'!==_0x2bde94['event']?this['_addReviewCheckResult'](_0x2bde94['data']['dataId'],_0x2bde94['data']['textDelta']):this['callId']=_0x2bde94['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(_0x4eae7b){this['_currentError']=_0x4eae7b,_0x4eae7b instanceof Error&&_0x4eae7b['message']['includes']('ai-request-aborted')?this['status']='aborted':this['status']='error-general';}finally{this['_activeRequest']=null;}}async['restart'](){this['_results']['clear'](),this['_changes']['length']=0x0,this['_currentError']=void 0x0,await this['start']();}['addResultChanges'](_0x7b514a,_0x237de9){const _0x602dca=this['_results']['get'](_0x7b514a);if(!_0x602dca)return;if(0x0===_0x237de9['length'])return;const _0x2b403f=[];_0x237de9['forEach']((_0x10bae3,_0x45f608)=>{const _0x6ddaea=new AIReviewCheckResultChange(_0x602dca['id']+'-'+_0x45f608,_0x10bae3,_0x602dca);_0x6ddaea['on']('change:status',()=>{this['fire']('reviewCheckResultChangeStatusUpdated',{'change':_0x6ddaea,'status':_0x6ddaea['status']});}),_0x6ddaea['on']('change:isActivated',()=>{_0x6ddaea['isActivated']?this['fire']('reviewCheckResultActivated',{'change':_0x6ddaea}):this['fire']('reviewCheckResultDeactivated',{'change':_0x6ddaea});}),this['_changes']['push'](_0x6ddaea),_0x2b403f['push'](_0x6ddaea);}),this['fire']('reviewCheckResultReady',{'changes':_0x2b403f,'result':_0x602dca,'source':this});}['abort'](){this['_activeRequest']&&(this['_activeRequest']['abortController']['abort'](),this['_activeRequest']=null,this['status']='aborted');}['isChangeActive'](_0x17c881){const _0x1df06a=this['_changes']['find'](_0x32546b=>_0x32546b['id']===_0x17c881);return!(!_0x1df06a||'pending'!==_0x1df06a['status']);}['isAnyChangeActivated'](){return this['_changes']['some'](_0x4b2b5a=>!0x0===_0x4b2b5a['isActivated']);}['getActiveChanges'](){return this['_changes']['filter'](_0x25b0e3=>'pending'===_0x25b0e3['status']);}['getChangeById'](_0x153c00){return this['_changes']['find'](_0x49b171=>_0x49b171['id']===_0x153c00);}['markAllChangesAsAccepted'](){for(const _0x46c603 of this['_changes'])'pending'===_0x46c603['status']&&(_0x46c603['status']='accepted');this['_checkIfFinished']();}['markChangeAsAccepted'](_0x39c354){const _0x2afd99=this['_changes']['find'](_0x5dfc95=>_0x5dfc95['id']===_0x39c354);_0x2afd99&&'pending'===_0x2afd99['status']&&(_0x2afd99['status']='accepted'),this['_checkIfFinished']();}['markChangeAsRejected'](_0x13a390){const _0x545ddb=this['_changes']['find'](_0x478727=>_0x478727['id']===_0x13a390);_0x545ddb&&'pending'===_0x545ddb['status']&&(_0x545ddb['status']='rejected'),this['_checkIfFinished']();}['markChangeAsOutdated'](_0x3160d4){const _0x39caf5=this['_changes']['find'](_0xe7e2a9=>_0xe7e2a9['id']===_0x3160d4);_0x39caf5&&'pending'===_0x39caf5['status']&&(_0x39caf5['status']='outdated'),this['_checkIfFinished']();}['markChangeAsPending'](_0x56e123){const _0x27b795=this['_changes']['find'](_0xbb455d=>_0xbb455d['id']===_0x56e123);_0x27b795&&'outdated'===_0x27b795['status']&&(_0x27b795['status']='pending'),this['_checkIfFinished']();}['activateChange'](_0x1e18bc){this['_changes']['filter'](_0x25e52c=>_0x25e52c['isActivated']&&_0x25e52c['id']!==_0x1e18bc)['forEach'](_0x2378bb=>{_0x2378bb['isActivated']=!0x1;});const _0x4e0bb5=this['_changes']['find'](_0x579a23=>_0x579a23['id']===_0x1e18bc);_0x4e0bb5&&'pending'===_0x4e0bb5['status']&&(_0x4e0bb5['isActivated']=!0x0);}['deactivateChange'](){this['_changes']['filter'](_0x2ec7a0=>_0x2ec7a0['isActivated'])['forEach'](_0x462d0a=>{_0x462d0a['isActivated']=!0x1;});}['forceReadyState'](){this['status']='ready';}async['sendRating'](_0x23b488){if('initialized'===this['status']||'loading'===this['status']||'data'===this['status']||this['_wasAborted'])return;if(!this['callId']||0x0===this['_changes']['length'])return;let _0x251905;if(_0x23b488){const _0x1cc2d6=this['_changes']['find'](_0x3de1a9=>_0x3de1a9['id']===_0x23b488);if(_0x1cc2d6&&_0x1cc2d6['isRated'])return;_0x1cc2d6&&(_0x251905=_0x1cc2d6['parent']['id'],_0x1cc2d6['isRated']=!0x0);}const _0x3fb9fe={'positiveCount':this['_changes']['filter'](_0x215c2d=>'accepted'===_0x215c2d['status'])['length'],'totalCount':this['_changes']['length']};this['_sendRatingRequest'](_0x3fb9fe,this['callId'],_0x251905);}['_addReviewCheckResult'](_0x920083,_0x2d66){const _0x39b634=this['_documentData']['elements']['get'](_0x920083);if(!_0x39b634)return;const _0x482381=_0x39b634['getContent']();if(_0x482381===_0x2d66)return;const _0x424989=new AIReviewCheckResult({'id':_0x920083,'contentInitial':_0x482381,'contentNew':_0x2d66,'documentVersion':this['_documentData']['version']});this['_results']['set'](_0x424989['id'],_0x424989),this['fire']('reviewCheckResultAdded',{'result':_0x424989,'source':this});}['_checkIfFinished'](){'finished'===this['status']&&(this['_changes']['filter'](_0x2e6c37=>'pending'===_0x2e6c37['status'])['length']>0x0&&(this['status']='ready')),'ready'===this['status']&&(0x0===this['_changes']['filter'](_0x410a0d=>'pending'===_0x410a0d['status'])['length']&&(this['status']='finished'));}}class AIReviewSystemCheckRun extends AIReviewCheckRun{get['subTitle'](){if(!this['_reviewParams']||0x0===this['_reviewParams']['length'])return'';const _0x5eb94c=[];if(this['_reviewParams']['length']>0x0&&this['_sourceCheck']['options'])for(let _0x1b2179=0x0;_0x1b2179<this['_reviewParams']['length'];_0x1b2179++){if(!this['_reviewParams'][_0x1b2179]||!this['_sourceCheck']['options'][_0x1b2179])continue;const _0x593095=this['_sourceCheck']['options'][_0x1b2179],_0x4bb832=_0x593095['data']?.['find'](_0x2c5a96=>_0x2c5a96['id']===this['_reviewParams'][_0x1b2179]);_0x4bb832&&_0x5eb94c['push'](_0x4bb832['label']);}return _0x5eb94c['join'](',\x20');}get['reviewName'](){return this['_composeReviewName']();}['_createApiRequest'](){return this['_aiConnector']['callSystemReview']({'reviewName':this['_composeReviewName'](),'content':this['_documentData']['content'],'args':this['_reviewArgs']});}['_sendRatingRequest'](_0x54ab3a,_0x5c1dee,_0x5f4b5e){return this['_aiConnector']['upsertAIReviewRating'](this['reviewName'],_0x5c1dee,_0x54ab3a,_0x5f4b5e);}['_composeReviewName'](){return!this['_reviewParams']||0x0===this['_reviewParams']['length']||this['_sourceCheck']['useArgs']?this['_sourceCheck']['apiId']:[this['_sourceCheck']['apiId'],...this['_reviewParams']]['join']('-');}}class AIReviewCoreController extends ContextPlugin{['_aiConnector'];['_aiReviewCoreUi'];['_aiReviewCoreEditing'];['_aiReviewCheckList'];['_currentReviewCheckRun'];['_changeActivationSource']=null;static get['requires'](){return[AIConnector];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['init'](){this['_initRequiredPlugins'](),this['_aiReviewCheckList']=await this['_getChecksList'](),this['listenTo'](this['_aiReviewCoreUi'],'getReviewCheckList',()=>{this['_aiReviewCoreUi']['setAvailableChecks'](this['_aiReviewCheckList']['checks']);}),this['listenTo'](this['_aiReviewCoreUi'],'runReviewCheck',async(_0x30c1fe,_0x390f39)=>{const _0x38211d=this['_aiReviewCheckList']['getCheckById'](_0x390f39['id']);if(_0x38211d){this['_onReviewCheckRun'](_0x390f39),this['_aiReviewCoreEditing']['switchToReadOnly'](),this['_currentReviewCheckRun']=this['_createReviewCheckRun'](_0x390f39,_0x38211d),this['_aiReviewCoreUi']['setCheckResultTitle'](this['_currentReviewCheckRun']['title'],this['_currentReviewCheckRun']['subTitle']),this['_currentReviewCheckRun']['on']('reviewCheckRunUpdated',(_0x19f995,_0x4347d0)=>{switch(_0x4347d0['status']){case'data':case'loading':this['_aiReviewCoreUi']['showCheckRunResults'](_0x4347d0);break;case'finished':this['_onCheckRunFinished']();break;case'ready':this['_aiReviewCoreUi']['showActionsWhenResultIsReady']();break;case'unmodified':this['_aiReviewCoreUi']['showNoChangesView']();break;case'error-general':this['_aiReviewCoreUi']['showGeneralResultsErrorView'](),this['_logError'](new CKEditorError('ai-review-mode-check-run-general-error',this,void 0x0,this['_currentReviewCheckRun']?.['currentError']));break;case'error-chunk':this['_aiReviewCoreUi']['showChunkErrorView'](),this['_logError'](new CKEditorError('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'!==_0x4347d0['status']&&'error-chunk'!==_0x4347d0['status']&&'error-general'!==_0x4347d0['status']||this['_currentReviewCheckRun']?.['sendRating']();}),this['_currentReviewCheckRun']['on']('reviewCheckResultAdded',(_0x34a78e,_0x21c03a)=>{if(!this['_currentReviewCheckRun'])throw new CKEditorError('ai-review-mode-no-current-check-run',this);const _0xfd0f8d=this['_diffContent'](_0x21c03a['result']['contentInitial'],_0x21c03a['result']['contentNew']);_0x21c03a['source']['addResultChanges'](_0x21c03a['result']['id'],_0xfd0f8d);}),this['_currentReviewCheckRun']['on']('reviewCheckResultReady',(_0x5eeae0,_0x32492b)=>{for(const _0x55c480 of _0x32492b['changes'])this['_aiReviewCoreUi']['showCheckRunResult'](_0x55c480);this['_markChangePositionInEditorContent'](_0x32492b['changes'],_0x32492b['source']['documentData']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultChangeStatusUpdated',(_0x362e16,_0x3c7c35)=>{this['_aiReviewCoreUi']['updateChangeState'](_0x3c7c35['change']['id'],_0x3c7c35['status']);}),this['_currentReviewCheckRun']['on']('reviewCheckResultActivated',(_0x1d0be8,_0x2f35fe)=>{this['_onReviewCheckResultActivated'](_0x2f35fe);}),this['_currentReviewCheckRun']['on']('reviewCheckResultDeactivated',()=>{this['_onReviewCheckResultDeactivated']();});try{await this['_currentReviewCheckRun']['start']();}catch(_0x396573){_0x396573 instanceof Error&&_0x396573['message']['includes']('ai-request-aborted')||(_0x396573 instanceof CKEditorError?this['_logError'](_0x396573):this['_logError'](new CKEditorError('ai-review-mode-check-run-failed',this,void 0x0,_0x396573)));}}else this['_logError'](new CKEditorError('ai-review-mode-source-check-not-found',this,{'checkId':_0x390f39['id']}));}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReview',()=>{this['_onReviewRunLeave']();}),this['listenTo'](this['_aiReviewCoreUi'],'leaveReviewCoreResultList',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'abortReviewStream',()=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['abort']();}),this['listenTo'](this['_aiReviewCoreUi'],'finishReview',()=>{this['_onReviewRunLeave'](!0x0);}),this['listenTo'](this['_aiReviewCoreUi'],'acceptAllChanges',()=>{if(!this['_currentReviewCheckRun'])return;const _0x57b034=this['_currentReviewCheckRun']['getActiveChanges']();if(!_0x57b034['length'])return;this['_aiReviewCoreEditing']['applyChange'](_0x57b034['map'](_0x16d452=>_0x16d452['id']));const _0x1308a8=this['_currentReviewCheckRun'];_0x1308a8['markAllChangesAsAccepted'](),_0x1308a8['sendRating']();}),this['listenTo'](this['_aiReviewCoreUi'],'acceptChange',(_0x519240,_0x1d14a3)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x1d14a3['id'])&&(this['_aiReviewCoreEditing']['applyChange']([_0x1d14a3['id']]),this['_currentReviewCheckRun']['markChangeAsAccepted'](_0x1d14a3['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x1d14a3['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'dismissChange',(_0x38d9b1,_0x221007)=>{this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['isChangeActive'](_0x221007['id'])&&(this['_aiReviewCoreEditing']['rejectChange'](_0x221007['id']),this['_currentReviewCheckRun']['markChangeAsRejected'](_0x221007['id']),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_currentReviewCheckRun']['sendRating'](_0x221007['id']));}),this['listenTo'](this['_aiReviewCoreUi'],'retryReview',async()=>{this['_currentReviewCheckRun']&&(this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_currentReviewCheckRun']['updateDocumentData'](this['_aiReviewCoreEditing']['getDocumentData']()),await this['_currentReviewCheckRun']['restart']());}),this['listenTo'](this['_aiReviewCoreUi'],'activateChange',(_0x30b995,_0x50d5ff)=>{this['_onActivateChange'](_0x50d5ff);}),this['listenTo'](this['_aiReviewCoreUi'],'deactivateChange',(_0x4d84c8,_0x41a9e5)=>{this['_onDeactivateChange'](_0x41a9e5);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerClicked',(_0x3fcfac,_0x439b49)=>{this['_onChangeMarkerClicked'](_0x3fcfac,_0x439b49);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerHovered',(_0x4c057f,_0x3f69ac)=>{this['_onChangeMarkerHovered'](_0x4c057f,_0x3f69ac);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerBlurred',()=>{this['_onChangeMarkerBlurred']();}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRemoved',(_0x58da03,_0x383277)=>{this['_onChangeMarkerRemoved'](_0x58da03,_0x383277);}),this['listenTo'](this['_aiReviewCoreEditing']['emitter'],'changeMarkerRestored',(_0x1f2030,_0x4a2e93)=>{this['_onChangeMarkerRestored'](_0x1f2030,_0x4a2e93);});}['_createReviewCheckRun'](_0x42e2c3,_0x307b90){return new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x307b90,this['_aiConnector'],_0x42e2c3['params'],_0x42e2c3['args']);}['_onChangeMarkerRemoved'](_0x109041,_0x2e8326){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsOutdated'](_0x2e8326['changeId']);}['_onChangeMarkerRestored'](_0x40dcdf,_0x26a0c0){this['_currentReviewCheckRun']&&this['_currentReviewCheckRun']['markChangeAsPending'](_0x26a0c0['changeId']);}['_onCheckRunFinished'](){this['_aiReviewCoreUi']['showReviewCompletedView']();}['_initRequiredPlugins'](){this['_aiConnector']=this['context']['plugins']['get']('AIConnector');}['_onReviewRunLeave'](_0x5003c0=!0x1){this['_currentReviewCheckRun']&&(this['_currentReviewCheckRun']['hasModifications']||this['_currentReviewCheckRun']['sendRating'](),this['_currentReviewCheckRun']['stopListening'](),this['_currentReviewCheckRun']['abort'](),this['_currentReviewCheckRun']=void 0x0),_0x5003c0&&this['_aiReviewCoreUi']['showReviewCheckList'](),this['_aiReviewCoreEditing']['clearAllMarkers'](),this['_aiReviewCoreEditing']['switchToEdit'](),this['_changeActivationSource']=null;const _0x115124=this['_aiReviewCoreEditing']['getEditor']();_0x115124&&_0x115124['editing']['view']['change'](_0x398024=>{const _0x166769=_0x115124['editing']['view']['document']['getRoot']();_0x398024['removeClass']('ck-ai_review-diff',_0x166769),_0x398024['removeClass']('ck-ai_review-highlights',_0x166769),_0x398024['removeClass']('ck-ai-translate-mode-content',_0x166769);});}['_getTranslationWithDefault'](_0x265372,_0x465e88){const _0x580121=getTranslation$i(this['context']['locale'],_0x265372);return _0x580121===_0x265372?_0x465e88:_0x580121;}['_logError'](_0x2d0079,_0x1783bf=!0x1){logError(_0x2d0079['message']),_0x1783bf||(_0x2d0079['message']['startsWith']('ai-review-mode-models-unable-to-retrieve')?this['_aiReviewCoreUi']['showGeneralReviewCoreErrorView']():this['_aiReviewCoreUi']['showGeneralResultsErrorView']());}['_scrollToChange'](_0x345ccf){if('content'===this['_changeActivationSource']){const _0x190f1e=this['_aiReviewCoreUi']['getChangeElement'](_0x345ccf);_0x190f1e&&scrollAncestorsToShowTarget(_0x190f1e['closest']('.ck-ai_review__check-run-result')||_0x190f1e);}else{if('panel'===this['_changeActivationSource']){const _0x44d7d4=this['_getChangeContentElement'](_0x345ccf);if(!_0x44d7d4)return;scrollViewportToShowTarget({'target':_0x44d7d4,'viewportOffset':{'top':0x55,'left':0x0,'bottom':0x0,'right':0x0},'ancestorOffset':0x14,'alignToTop':!0x0});}}}}const AI_REVIEW_CHECKS=[{'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'}]}]}];class AIReviewCheck{['id'];['commandId'];['title'];['description'];['isParameterized'];['useArgs'];['options'];['args'];get['apiId'](){return this['commandId'];}constructor(_0x56b784){this['id']=_0x56b784['id'],this['commandId']=_0x56b784['commandId'],this['title']=_0x56b784['title'],this['description']=_0x56b784['description'],this['isParameterized']=_0x56b784['isParameterized'],this['useArgs']=_0x56b784['useArgs'],this['options']=_0x56b784['options'],this['args']=_0x56b784['args'];}}class AIReviewCheckList extends ObservableMixin(){['_checks']=[];['setupChecks'](_0x560df8){this['_checks']=_0x560df8['map'](_0x4f144d=>new AIReviewCheck(_0x4f144d));}get['checks'](){return this['_checks'];}['getCheckById'](_0x5ea1ed){return this['checks']['find'](_0x12352f=>_0x12352f['id']===_0x5ea1ed);}['removeCheckById'](_0x3ff357){this['_checks']=this['_checks']['filter'](_0x21aba7=>_0x21aba7['id']!==_0x3ff357);}}class AIReviewCheckCustom extends AIReviewCheck{['_models']=[];['_defaultModel']=null;constructor(_0x154b94,_0x473568,_0xfdf342){super(_0x154b94),this['_models']=_0x473568,this['_defaultModel']=_0xfdf342;}get['models'](){return this['_models'];}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewCheckExtra extends AIReviewCheck{['isExtra']=!0x0;['prompt'];['model'];['_defaultModel']=null;constructor(_0x1787eb,_0x5ebcb6,_0x3fc6d8){super(_0x1787eb),this['prompt']=_0x1787eb['prompt'],this['model']=_0x1787eb['model'],this['model']?this['_defaultModel']=_0x5ebcb6['find'](_0x37fee4=>_0x37fee4['id']===this['model'])||null:this['_defaultModel']=_0x3fc6d8;}get['defaultModel'](){return this['_defaultModel'];}}class AIReviewModeCheckList extends AIReviewCheckList{['_allModels']=[];['_recommendedModels']=[];['_defaultModel']=null;constructor(_0x384011,_0x123def,_0x1a69ce){super(),this['_allModels']=_0x384011,this['_recommendedModels']=_0x123def,this['_defaultModel']=_0x1a69ce;}['setupChecks'](_0xbfe754){this['_checks']=_0xbfe754['map'](_0x3651d5=>!0x0===_0x3651d5['isExtra']?new AIReviewCheckExtra(_0x3651d5,this['_allModels'],this['_defaultModel']):'custom'===_0x3651d5['id']?new AIReviewCheckCustom(_0x3651d5,this['_recommendedModels'],this['_defaultModel']):new AIReviewCheck(_0x3651d5));}}class AIReviewCustomCheckRun extends AIReviewCheckRun{['_prompt'];['_model'];constructor(_0x30fa44,_0x32f214,_0x5ad5c8,_0x5bdea1,_0x2a53d2){super(_0x5ad5c8,_0x5bdea1,_0x2a53d2),this['_prompt']=_0x30fa44,this['_model']=_0x32f214;}get['subTitle'](){return this['_prompt'];}['_createApiRequest'](){return this['_aiConnector']['callCustomReview']({'content':this['_documentData']['content'],'prompt':this['_prompt'],'model':this['_model']});}['_sendRatingRequest'](_0x11fdc7,_0xba848,_0x2c16b3){return this['_aiConnector']['upsertCustomAIReviewRating'](_0xba848,_0x11fdc7,_0x2c16b3);}}class AIReviewExtraCheckRun extends AIReviewCustomCheckRun{get['subTitle'](){return'';}set['prompt'](_0x34ee44){this['_prompt']=_0x34ee44;}set['model'](_0x1a3bd5){this['_model']=_0x1a3bd5;}}class AIReviewModeController extends AIReviewCoreController{static get['pluginName'](){return'AIReviewModeController';}['_isDiffOn']=!0x1;['_hasDefaultAvailableCommands']=!0x1;constructor(_0x634a3a){super(_0x634a3a),this['_hasDefaultAvailableCommands']=!this['context']['config']['get']('ai.review.availableCommands'),this['context']['config']['define']('ai.review.availableCommands',AI_REVIEW_CHECKS['map'](_0x4b9592=>_0x4b9592['id'])),this['context']['config']['define']('ai.review.extraCommands',[]);}async['init'](){await super['init'](),this['listenTo'](this['_aiReviewCoreUi'],'toggleDiff',(_0x59b044,_0x598b95)=>{this['_isDiffOn']=_0x598b95['on'],this['_onDiffChange'](this['_isDiffOn']);});}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AIReviewModeUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x72d115,_0x5de426){return _0x72d115['isCustom']?new AIReviewCustomCheckRun(_0x72d115['args']['prompt'],_0x72d115['args']['model'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x5de426,this['_aiConnector']):_0x5de426['isExtra']?new AIReviewExtraCheckRun(_0x5de426['prompt'],_0x5de426['defaultModel']['id'],this['_aiReviewCoreEditing']['getDocumentData'](),_0x5de426,this['_aiConnector']):new AIReviewSystemCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x5de426,this['_aiConnector'],_0x72d115['params'],_0x72d115['args']);}['_onReviewCheckResultActivated'](_0x2e9e61){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x2e9e61['change']['id']),this['_scrollToChange'](_0x2e9e61['change']['id']);const _0x62e63b=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x2e9e61['change']['id']);if(!_0x62e63b)return;const _0x51d9a3=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x2e9e61['change'],()=>_0x62e63b['getElement'](),void 0x0,'click',_0x51d9a3?.['editing']?.['view']?.['getDomRoot'](),_0x51d9a3?.['ui']?.['viewportOffset']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x2e9e61['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreUi']['resetActiveStateInResults'](),this['_aiReviewCoreUi']['hideChangeBalloon'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']();}['_onActivateChange'](_0xb10517){this['_currentReviewCheckRun']&&'click'===_0xb10517['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0xb10517['id']));}['_onDeactivateChange'](_0x1ec49c){this['_currentReviewCheckRun']&&'balloon'===_0x1ec49c['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x44a47f,_0x3dba8a){if(!this['_currentReviewCheckRun'])return;this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x3dba8a['changeId']);const _0x33a98c=this['_currentReviewCheckRun']['getChangeById'](_0x3dba8a['changeId']);if(!_0x33a98c)return;const _0x3ac2d2=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x33a98c,_0x3dba8a['markerElement'],_0x3dba8a['domEvent'],'click',_0x3ac2d2?.['editing']?.['view']?.['getDomRoot'](),_0x3ac2d2?.['ui']?.['viewportOffset']);}['_onChangeMarkerHovered'](_0x3e2a94,_0x2d43fb){if(!this['_currentReviewCheckRun'])return;if(this['_currentReviewCheckRun']['isAnyChangeActivated']())return;const _0x2f65aa=this['_currentReviewCheckRun']['getChangeById'](_0x2d43fb['changeId']);if(!_0x2f65aa)return;const _0xfa39ec=this['_aiReviewCoreEditing']['getEditor']();this['_aiReviewCoreUi']['showChangeBalloon'](_0x2f65aa,_0x2d43fb['markerElement'],_0x2d43fb['domEvent'],'hover',_0xfa39ec?.['editing']?.['view']?.['getDomRoot'](),_0xfa39ec?.['ui']?.['viewportOffset']);}['_onChangeMarkerBlurred'](){if(!this['_currentReviewCheckRun'])return;this['_currentReviewCheckRun']['isAnyChangeActivated']()||this['_aiReviewCoreUi']['hideChangeBalloon']();}['_getChangeContentElement'](_0x220a88){const _0x297c40=this['_aiReviewCoreEditing']['getMarkerElementForChange'](_0x220a88);return _0x297c40?_0x297c40['getElement']():null;}['_markChangePositionInEditorContent'](_0x321055,_0x554a4c){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x321055,_0x554a4c);}['_diffContent'](_0x358a74,_0x5c2095){return this['_aiReviewCoreEditing']['diffContent'](_0x358a74,_0x5c2095);}['_onReviewCheckRun'](){this['_onDiffChange'](this['_isDiffOn']);}['_onDiffChange'](_0x1ffeee){const _0x510d72=this['_aiReviewCoreEditing']['getEditor']();_0x1ffeee?this['_aiReviewCoreUi']['hideDiffInBalloon']():this['_aiReviewCoreUi']['showDiffInBalloon'](),_0x510d72&&_0x510d72['editing']['view']['change'](_0x3f8c30=>{const _0x503cda=_0x510d72['editing']['view']['document']['getRoot']();for(const _0x46d2e0 of _0x503cda['getClassNames']())_0x46d2e0['startsWith']('ck-ai_review-')&&_0x3f8c30['removeClass'](_0x46d2e0,_0x503cda);_0x3f8c30['addClass'](_0x1ffeee?'ck-ai_review-diff':'ck-ai_review-highlights',_0x503cda);});}async['_getChecksList'](){const _0xa2f1e6=[...AI_REVIEW_CHECKS,...this['_getExtraChecks']()],_0x523219=this['context']['config']['get']('ai.review.availableCommands')||[];this['_logErrorForNonExistentChecks'](_0x523219,_0xa2f1e6);let _0x13434c=_0xa2f1e6;this['_hasDefaultAvailableCommands']||(_0x13434c=_0x523219['map'](_0x134abf=>_0xa2f1e6['find'](_0xf8c59b=>_0xf8c59b['id']===_0x134abf))['filter'](_0x2c54aa=>!!_0x2c54aa)),_0x13434c=_0x13434c['map'](_0xc9b1b9=>_0xc9b1b9['isExtra']?_0xc9b1b9:this['_translateReviewCheck'](_0xc9b1b9));const _0x5d757c=_0x13434c['some'](_0x55c521=>_0x55c521['isExtra']||'custom'===_0x55c521['id']);let _0x354233=[],_0x15526e=[],_0x13749b=null;if(_0x5d757c){const _0x171210=await this['_getModels']();_0x354233=_0x171210['all'],_0x15526e=_0x171210['recommended'],_0x13749b=_0x171210['default'];}const _0x2ecb15=new AIReviewModeCheckList(_0x354233,_0x15526e,_0x13749b);return _0x2ecb15['setupChecks'](_0x13434c),_0x5d757c&&this['_filterChecksWithMissingModel'](_0x2ecb15),_0x2ecb15;}['_getExtraChecks'](){return(this['context']['config']['get']('ai.review.extraCommands')||[])['map'](_0x2f5857=>({'id':_0x2f5857['id'],'commandId':_0x2f5857['id'],'title':_0x2f5857['label'],'description':_0x2f5857['description'],'isParameterized':!0x1,'isExtra':!0x0,'prompt':_0x2f5857['prompt'],'model':_0x2f5857['model']}));}['_logErrorForNonExistentChecks'](_0x22e943,_0x3ed642){const _0x5218be=_0x22e943['filter'](_0x755d1f=>!_0x3ed642['some'](_0x55982f=>_0x55982f['id']===_0x755d1f));_0x5218be['length']&&this['_logError'](new CKEditorError('ai-review-mode-non-existent-commands-used',this,{'commandIds':_0x5218be['join'](',\x20')}),!0x0);}async['_getModels'](){try{const _0xacc5fc=new AIModels({'connector':this['_aiConnector'],'config':this['context']['config']['get']('ai.models'),'locale':this['context']['locale']});return{'all':await _0xacc5fc['getAll'](),'recommended':await _0xacc5fc['getAvailableModels'](),'default':await _0xacc5fc['getDefault']()};}catch(_0x1d12c4){return this['_logError'](new CKEditorError('ai-review-mode-models-unable-to-retrieve',this,void 0x0,_0x1d12c4)),{'all':[],'recommended':[],'default':null};}}['_translateReviewCheck'](_0x995cd5){const _0xa45e83='AI_REVIEW_CHECK_'+_0x995cd5['id']['toUpperCase']()['replaceAll']('-','_'),_0x3939ba={..._0x995cd5,'title':this['_getTranslationWithDefault'](_0xa45e83+'_TITLE',_0x995cd5['title']),'description':this['_getTranslationWithDefault'](_0xa45e83+'_DESCRIPTION',_0x995cd5['description'])};return _0x995cd5['options']&&(_0x3939ba['options']=_0x995cd5['options']['map'](_0x4db078=>({..._0x4db078,'label':this['_getTranslationWithDefault'](_0xa45e83+'_OPTIONS_LABEL',_0x4db078['label']||''),'data':_0x4db078['data']?_0x4db078['data']['map'](_0x5ea5c5=>({..._0x5ea5c5,'label':this['_getTranslationWithDefault'](_0xa45e83+'_OPTIONS_DATA_'+_0x5ea5c5['id']['toUpperCase'](),_0x5ea5c5['label'])})):void 0x0}))),_0x3939ba;}['_filterChecksWithMissingModel'](_0x4b9973){const _0x32125a=[];_0x4b9973['checks']['forEach'](_0x12bc60=>{(_0x12bc60 instanceof AIReviewCheckExtra&&!_0x12bc60['defaultModel']||_0x12bc60 instanceof AIReviewCheckCustom&&!_0x12bc60['models']['length'])&&_0x32125a['push'](_0x12bc60['id']);}),_0x32125a['length']&&_0x32125a['forEach'](_0x2a21e3=>{_0x4b9973['removeCheckById'](_0x2a21e3),this['_logError'](new CKEditorError('ai-review-mode-command-unavailable-due-to-missing-model',this,{'commandId':_0x2a21e3}),!0x0);});}}class AIReviewMode extends ContextPlugin{static get['requires'](){return[AIReviewModeController,AIReviewModeUI,AIReviewCoreEditing];}static get['pluginName'](){return'AIReviewMode';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class AITranslateCheck extends AIReviewCheck{get['apiId'](){return'translate';}}class AITranslateCheckList extends AIReviewCheckList{['setupChecks'](_0x5e7bb4){this['_checks']=_0x5e7bb4['map'](_0x2c9be5=>new AITranslateCheck(_0x2c9be5));}}class AITranslateCheckRun extends AIReviewSystemCheckRun{['_title'];constructor(_0x14a9b9,_0x4961eb,_0x5d1e54,_0x1caf41,_0x345f80,_0x424a06){super(_0x14a9b9,_0x4961eb,_0x5d1e54,_0x345f80,_0x424a06),this['_title']=_0x1caf41;}get['title'](){return this['_title'];}get['subTitle'](){return this['_sourceCheck']['title'];}}class AITranslateController extends AIReviewCoreController{static get['pluginName'](){return'AITranslateController';}constructor(_0x1536d3){super(_0x1536d3),this['context']['config']['define']('ai.translate.languages',[{'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'}]);}['_onCheckRunFinished'](){this['_onReviewRunLeave'](!0x0);}['_initRequiredPlugins'](){super['_initRequiredPlugins'](),this['_aiReviewCoreUi']=this['context']['plugins']['get']('AITranslateUI'),this['_aiReviewCoreEditing']=this['context']['plugins']['get']('AIReviewCoreEditing');}['_createReviewCheckRun'](_0x31403d,_0x4d8557){return new AITranslateCheckRun(this['_aiReviewCoreEditing']['getDocumentData'](),_0x4d8557,this['_aiConnector'],getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),_0x31403d['params'],_0x31403d['args']);}['_onReviewCheckResultActivated'](_0x115aa8){this['_aiReviewCoreUi']['setActiveStateInResults'](_0x115aa8['change']['id']),this['_aiReviewCoreEditing']['setMarkersInElementAsActive'](_0x115aa8['change']['id']);}['_onReviewCheckResultDeactivated'](){this['_aiReviewCoreEditing']['setAllMarkersAsInactive'](),this['_aiReviewCoreUi']['resetActiveStateInResults']();}['_onActivateChange'](_0x2e5c98){this['_currentReviewCheckRun']&&('hover'===_0x2e5c98['uiInteraction']&&(this['_changeActivationSource']='panel',this['_currentReviewCheckRun']['activateChange'](_0x2e5c98['id'])),'click'===_0x2e5c98['uiInteraction']&&this['_scrollToChange'](_0x2e5c98['id']));}['_onDeactivateChange'](_0x1df3e3){this['_currentReviewCheckRun']&&'panel'===_0x1df3e3['origin']&&this['_currentReviewCheckRun']['deactivateChange']();}['_onChangeMarkerClicked'](_0x332c04,_0x44e121){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x44e121['changeId']),this['_scrollToChange'](_0x44e121['changeId']));}['_onChangeMarkerHovered'](_0x3af6ad,_0x33f086){this['_currentReviewCheckRun']&&(this['_changeActivationSource']='content',this['_currentReviewCheckRun']['activateChange'](_0x33f086['changeId']),this['_aiReviewCoreEditing']['reactivateMarkers'](_0x33f086['changeId']));}['_onChangeMarkerBlurred'](){this['_currentReviewCheckRun']&&'content'===this['_changeActivationSource']&&(this['_currentReviewCheckRun']['deactivateChange'](),this['_aiReviewCoreEditing']['setAllMarkersAsInactive']());}['_getChangeContentElement'](_0x4127e1){return this['_aiReviewCoreEditing']['getContentElementForChange'](_0x4127e1);}['_markChangePositionInEditorContent'](_0x5e1d0f,_0x6aa6ae){this['_aiReviewCoreEditing']['markChangePositionInEditorContent'](_0x5e1d0f,_0x6aa6ae);}['_diffContent'](_0x6e6132,_0x41367c){return this['_aiReviewCoreEditing']['diffContent'](_0x6e6132,_0x41367c,!0x0);}['_onReviewCheckRun'](){const _0x29c744=this['_aiReviewCoreEditing']['getEditor']();_0x29c744&&_0x29c744['editing']['view']['change'](_0x4b7ade=>{const _0x4f56e5=_0x29c744['editing']['view']['document']['getRoot']();for(const _0xdfd1f4 of _0x4f56e5['getClassNames']())(_0xdfd1f4['startsWith']('ck-ai-review-')||'ck-ai-translate-'===_0xdfd1f4)&&_0x4b7ade['removeClass'](_0xdfd1f4,_0x4f56e5);_0x4b7ade['addClass']('ck-ai-translate-mode-content',_0x4f56e5);});}async['_getChecksList'](){const _0x4d79a4=[],_0x1ec0b2=this['context']['config']['get']('ai.translate.languages')||[];for(const _0x281269 of _0x1ec0b2)_0x4d79a4['push']({'title':_0x281269['label'],'id':_0x281269['id'],'commandId':_0x281269['id'],'description':'','isParameterized':!0x1,'useArgs':!0x0,'args':{'language':_0x281269['id']}});const _0x37fd20=new AITranslateCheckList();return _0x37fd20['setupChecks'](this['_translateChecks'](_0x4d79a4)),_0x37fd20;}['_translateChecks'](_0x1ca971){return _0x1ca971['map'](_0x1aef46=>{const _0x33937f='AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_'+_0x1aef46['title']['toUpperCase']()['replaceAll']('-','_');return{..._0x1aef46,'title':this['_getTranslationWithDefault'](_0x33937f,_0x1aef46['title'])};});}}class AITranslateCheckResultsView extends AIReviewCoreUICheckResultsView{constructor(_0x573e4,_0x595ac8){super(_0x573e4,_0x595ac8),this['on']('set:isLoading',(_0x14db04,_0x5dab0b,_0x9fac7d)=>{_0x9fac7d&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_LOADING_TITLE'));}),this['on']('set:isResultReady',(_0x3e64e9,_0xe2deac,_0x3c6c2d)=>{_0x3c6c2d&&(this['headerTitle']=getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_RESULTS_READY_TITLE'));});}['_createAcceptAllButtonView'](){const _0x226358=super['_createAcceptAllButtonView']();return _0x226358['set']('label',getTranslation$i(this['locale'],'AI_TRANSLATE_ACCEPT_ALL')),_0x226358;}['_createExitReviewButtonView'](){const _0x5f1b7b=super['_createExitReviewButtonView']();return _0x5f1b7b['set']('label',getTranslation$i(this['locale'],'AI_CHAT_HISTORY_CANCEL')),_0x5f1b7b;}}class AITranslateCheckListView extends AIReviewCoreReviewCheckListView{['_setupTemplate'](){const _0x14597d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-ai-translate__check-list-wrapper',_0x14597d['if']('isVisible','ck-hidden',_0x2c64c9=>!_0x2c64c9)]},'children':[{'tag':'div','attributes':{'class':['ck-ai-translate__check-list-header']},'children':[{'tag':'h2','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_TITLE')}]},{'tag':'p','children':[{'text':getTranslation$i(this['locale'],'AI_TRANSLATE_CHECK_LIST_HEADER_DESCRIPTION')}]}]},{'tag':'div','attributes':{'class':['ck-ai_review__check-list',_0x14597d['if']('isVisible','ck-hidden',_0x44d155=>!_0x44d155)]},'children':this['_checkViews']}]});}}class AITranslateUI extends AIReviewCoreUI{static get['pluginName'](){return'AITranslateUI';}['createMainView'](){const _0x26079e=this['context']['locale'],_0x114ae8=new FormHeaderView(_0x26079e,{'label':getTranslation$i(_0x26079e,'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'icon':IconAITranslate$1,'class':'ck-ai-header\x20ck-ai-header_review-translate'}),_0x2c89a8=new AIReviewCoreView(_0x26079e,{'header':_0x114ae8,'list':new AITranslateCheckListView(_0x26079e),'results':new AITranslateCheckResultsView(_0x26079e,{'generalErrorText':getTranslation$i(_0x26079e,'AI_TRANSLATE_GENERAL_ERROR_MESSAGE')}),'completed':new AIReviewCoreReviewCompletedView(_0x26079e,{'headerText':getTranslation$i(_0x26079e,'AI_TRANSLATE_FINISH_HEADER_TITLE'),'emptyResultsText':getTranslation$i(_0x26079e,'AI_TRANSLATE_EMPTY_RESULTS_TEXT'),'buttonText':getTranslation$i(_0x26079e,'AI_TRANSLATE_FINISH_BUTTON_LABEL')})});return _0x2c89a8['extendTemplate']({'attributes':{'class':'ck-ai-translate-mode'}}),_0x2c89a8;}['registerTab'](){const _0x3af89d=this['context']['plugins']['get']('AITabs');_0x3af89d['view']['on']('activateTab',(_0x568a7b,_0x485d3f)=>{'translate'===_0x485d3f?this['fire']('getReviewCheckList'):this['fire']('leaveReview');}),_0x3af89d['view']['addTab']({'id':'translate','buttonLabel':getTranslation$i(this['context']['locale'],'AI_REVIEW_CHECK_TRANSLATE_TITLE'),'buttonIcon':IconAITranslate$1,'order':0x0,'content':this['_mainView']});}}class AITranslate extends ContextPlugin{static get['requires'](){return[AITranslateController,AITranslateUI,AIReviewCoreEditing];}static get['pluginName'](){return'AITranslate';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CaseChangeCommand extends Command{['_transformCallback'];constructor(_0xd02f88,_0x4eaf43){super(_0xd02f88),this['_transformCallback']=_0x4eaf43;}['execute'](){const _0x1a3452=this['editor']['model'],_0x1d8840=Array['from'](this['_getAffectedRanges']()),_0x464d44=Array['from'](_0x1a3452['document']['selection']['getRanges']());_0x1a3452['change'](_0x1603fe=>{for(const _0x66f469 of _0x1d8840)this['_modifyContent'](_0x66f469,_0x1603fe);_0x1603fe['setSelection'](_0x464d44);});}['refresh'](){for(const _0x2dd20d of this['_getAffectedRanges']())for(const _0x3dd64e of _0x2dd20d)if(_0x3dd64e['item']['is']('$textProxy'))return void(this['isEnabled']=!0x0);this['isEnabled']=!0x1;}['_getAffectedRanges'](){const _0x447848=this['editor']['model'],_0x45f14d=_0x447848['document']['selection'];if(_0x45f14d['isCollapsed']){const _0x21a7d8=this['_findAncestorTextBlock'](_0x45f14d['getFirstPosition']()['parent']);return _0x21a7d8?[_0x447848['createRangeIn'](_0x21a7d8)]:[];}return _0x45f14d['getRanges']();}['_modifyContent'](_0xb54686,_0x1ae559){for(const _0x40e9ae of this['_getElementsAllowingText'](_0xb54686)){const _0x3a5f90=this['_getElementTextContent'](_0x40e9ae),_0x29ed9f=this['_transformCallback'](_0x3a5f90);for(const _0x467b39 of this['_getTextNodesRangeLimited'](_0x40e9ae,_0xb54686))this['_replaceTextNodeData'](_0x467b39,_0x29ed9f,_0x1ae559);}}['_findAncestorTextBlock'](_0xb9392d){const _0x4c5fbd=this['editor']['model']['schema'];if(_0xb9392d['is']('element')&&_0x4c5fbd['checkChild'](_0xb9392d,'$text'))return _0xb9392d;const _0x170d07=_0xb9392d['parent'];return!_0x170d07||_0x4c5fbd['isLimit'](_0xb9392d)?null:this['_findAncestorTextBlock'](_0x170d07);}*['_getElementsAllowingText'](_0x2c20c7){const _0x29143c=new Set();for(const {item:_0x5e50f1}of _0x2c20c7['getWalker']()){const _0x2e70ad=this['_findAncestorTextBlock'](_0x5e50f1);_0x2e70ad&&!_0x29143c['has'](_0x2e70ad)&&(_0x29143c['add'](_0x2e70ad),yield _0x2e70ad);}}['_getElementTextContent'](_0x1e8c00){return Array['from'](_0x1e8c00['getChildren']())['reduce']((_0xc5f9bf,_0x311354)=>_0xc5f9bf+(_0x311354['is']('$text')?_0x311354['data']:'\x20'),'');}*['_getTextNodesRangeLimited'](_0x4539a4,_0x42dd32){const _0x89730b=_0x42dd32['getIntersection'](this['editor']['model']['createRangeIn'](_0x4539a4));if(_0x89730b){for(const _0x5829db of _0x89730b['getItems']())_0x5829db['is']('$textProxy')&&_0x5829db['parent']==_0x4539a4&&(yield _0x5829db);}}['_replaceTextNodeData'](_0x54a13a,_0x2f7774,_0x94e7d3){const _0x18d7d7=_0x2f7774['substring'](_0x54a13a['startOffset'],_0x54a13a['endOffset']);if(_0x18d7d7===_0x54a13a['data'])return;const _0x1c31a0=_0x54a13a['getAttributes']();this['editor']['model']['insertContent'](_0x94e7d3['createText'](_0x18d7d7,_0x1c31a0),_0x94e7d3['createSelection'](_0x94e7d3['createRangeOn'](_0x54a13a)));}}function getTranslation$g(_0x40fff1,_0x27a7da,..._0x1607b0){const t=_0x40fff1['t'];switch(_0x27a7da){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',..._0x1607b0);default:return _0x27a7da;}}class CaseChangeEditing extends Plugin{['_currentCommandIndex']=0x0;static get['pluginName'](){return'CaseChangeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4771e3=this['editor'],_0xf3b761=_0x4771e3['locale']['contentLanguage'],_0x5e3f47=normalizeExcludeWordCallback(_0x4771e3['config']['get']('caseChange.titleCase.excludeWords')),_0x17164a={'changeCaseUpper':new CaseChangeCommand(_0x4771e3,_0xc7c629=>_0xc7c629['toLocaleUpperCase'](_0xf3b761)),'changeCaseLower':new CaseChangeCommand(_0x4771e3,_0x3f872b=>_0x3f872b['toLocaleLowerCase'](_0xf3b761)),'changeCaseTitle':new CaseChangeCommand(_0x4771e3,_0x521b21=>capitalizeText(_0x521b21,_0x5e3f47,_0xf3b761))};for(const [_0x32f51c,_0x133d6a]of Object['entries'](_0x17164a))_0x4771e3['commands']['add'](_0x32f51c,_0x133d6a),_0x133d6a['on']('execute',()=>{this['_announceCaseChangeOperation'](_0x32f51c);});this['listenTo'](_0x4771e3['editing']['view']['document'],'selectionChange',()=>{this['_currentCommandIndex']=0x0;}),_0x4771e3['keystrokes']['set']('shift+f3',(_0x23fda9,_0xfb24a5)=>{const _0x370591=_getOptions(this['editor']['locale']),_0x116f0d=_0x370591[this['_currentCommandIndex']%_0x370591['length']]['commandName'];_0x4771e3['execute'](_0x116f0d),this['_currentCommandIndex']++,_0xfb24a5();});}['afterInit'](){checkLicense$i(this);}['_announceCaseChangeOperation'](_0x514b17){const {ui:_0x5b3685,locale:_0x5309de}=this['editor'],_0x833f32=_getOptions(_0x5309de)['find'](_0x50a3e0=>_0x50a3e0['commandName']===_0x514b17)['label']['toLowerCase']();_0x5b3685['ariaLiveAnnouncer']['announce'](getTranslation$g(_0x5309de,'Changed\x20case\x20to\x20%0',_0x833f32));}}function _getOptions(_0x4343ba){return[{'label':getTranslation$g(_0x4343ba,'UPPERCASE'),'commandName':'changeCaseUpper'},{'label':getTranslation$g(_0x4343ba,'lowercase'),'commandName':'changeCaseLower'},{'label':getTranslation$g(_0x4343ba,'Title\x20Case'),'commandName':'changeCaseTitle'}];}function capitalizeText(_0x4c67c3,_0x2da18f,_0x24e4cf){return replaceWords(_0x4c67c3,(_0x54258c,_0x2bb904,_0x1d827a)=>{const _0x2cf894=_0x54258c['toLocaleLowerCase'](_0x24e4cf);return _0x2da18f(_0x2cf894,{'charOffset':_0x2bb904,'wordIndex':_0x1d827a,'blockText':_0x4c67c3})?_0x2cf894:_0x2cf894['replace'](/(?:^|[^\p{L}\d'])\p{L}/gu,_0x391ade=>_0x391ade['toLocaleUpperCase'](_0x24e4cf));});}function replaceWords(_0x5bb453,_0x440695){let _0x31506d='',_0xaef584=0x0,_0x4cca73=0x0;for(const _0x38520d of _0x5bb453['matchAll'](/ +/g)){const _0x2d72f5=_0x38520d['index'],_0x367ab3=_0x5bb453['substring'](_0xaef584,_0x2d72f5);_0x367ab3['length']&&(_0x31506d+=_0x440695(_0x367ab3,_0xaef584,_0x4cca73++)),_0x31506d+=_0x38520d[0x0],_0xaef584=_0x2d72f5+_0x38520d[0x0]['length'];}const _0x552e9d=_0x5bb453['substring'](_0xaef584);return _0x552e9d['length']&&(_0x31506d+=_0x440695(_0x552e9d,_0xaef584,_0x4cca73)),_0x31506d;}function normalizeExcludeWordCallback(_0x56df1d=[]){return'function'==typeof _0x56df1d?_0x56df1d:(_0x14dce3,{wordIndex:_0x4914b7})=>_0x4914b7>0x0&&_0x56df1d['includes'](_0x14dce3);}async function checkLicense$i(_0x2ca9da){const _0x47bdcd=_0x4e75cb([0x45,0x4d,0x44,0x53,0x33,0x64,0x73,0x4c,0x6f,0x4a,0x59,0x30,0x6e,0x62,0x65,0x39,0x63,0x6d,0x6c,0x43,0x72,0x58,0x79,0x61,0x5a,0x38,0x7a,0x70,0x50,0x71,0x4e,0x36,0x6a,0x78,0x54,0x68,0x66,0x37,0x67,0x77,0x42,0x69,0x32,0x4b,0x46,0x4f,0x56,0x55,0x57,0x52,0x41,0x47,0x31,0x34,0x48,0x51,0x49,0x6b,0x75,0x74,0x35,0x76]),_0x2fca2c=window[_0x4e75cb([0x44,0x61,0x74,0x65])][_0x4e75cb([0x6e,0x6f,0x77])](),_0x3648de=_0x2ca9da[_0x4e75cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26b700=new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337113=>{_0x3648de[_0x4e75cb([0x6f,0x6e,0x63,0x65])](_0x4e75cb([0x72,0x65,0x61,0x64,0x79]),_0x337113);}),_0x3b5f9d={[_0x4e75cb([0x6b,0x74,0x79])]:_0x4e75cb([0x45,0x43]),[_0x4e75cb([0x75,0x73,0x65])]:_0x4e75cb([0x73,0x69,0x67]),[_0x4e75cb([0x63,0x72,0x76])]:_0x4e75cb([0x50,0x2d,0x32,0x35,0x36]),[_0x4e75cb([0x78])]:_0x4e75cb([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4e75cb([0x79])]:_0x4e75cb([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4e75cb([0x61,0x6c,0x67])]:_0x4e75cb([0x45,0x53,0x32,0x35,0x36])},_0x306489=_0x3648de[_0x4e75cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e75cb([0x67,0x65,0x74])](_0x4e75cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5dbc94=await(async function(){let _0x7bfc06,_0x2e72ba=null,_0x2db263=null;try{if(_0x306489==_0x4e75cb([0x47,0x50,0x4c]))return _0x4e75cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x7bfc06=(function(){const _0x25b02f=_0x306489[_0x4e75cb([0x73,0x70,0x6c,0x69,0x74])](_0x4e75cb([0x2e]));if(0x3!=_0x25b02f[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x6d7cd2=_0x25b02f[0x1];return _0x1b4330(_0x6d7cd2);function _0x1b4330(_0x2de5cb){const _0x586b18=_0x56f7db(_0x2de5cb);return _0x586b18&&_0x2f99bc()?_0x586b18:null;function _0x2f99bc(){const _0x2c6287=_0x586b18[_0x4e75cb([0x6a,0x74,0x69])],_0x42737e=window[_0x4e75cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c6287[_0x4e75cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c6287[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49051f={..._0x586b18,[_0x4e75cb([0x6a,0x74,0x69])]:_0x2c6287[_0x4e75cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2c6287[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49051f[_0x4e75cb([0x76,0x63])],_0xd88362(_0x49051f)==_0x42737e;}}}()),!_0x7bfc06)return _0x4e75cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x7bfc06[_0x4e75cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2db263=function(_0x5be264,_0x5ee2bb){return new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e0173=>{if(_0x4b7a80())return _0x5e0173(_0x4e75cb([0x56,0x61,0x6c,0x69,0x64]));_0x5b6111(),_0x3648de[_0x4e75cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e75cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5a9ac0=!0x1;const _0x5c851a=uid();function _0x42b558(_0x1b0fcb){return!!_0x1b0fcb&&(typeof _0x1b0fcb===_0x4e75cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b0fcb===_0x4e75cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b0fcb[_0x4e75cb([0x74,0x68,0x65,0x6e])]===_0x4e75cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b0fcb[_0x4e75cb([0x63,0x61,0x74,0x63,0x68])]===_0x4e75cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5898fc(_0x3d8725){_0x3ba1e2(_0x3d8725)[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x101790=>{if(!_0x101790||_0x101790[_0x4e75cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e75cb([0x6f,0x6b]))return _0x4e75cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x293858(_0xd88362(_0x5c851a+_0x5ee2bb))!=_0x101790[_0x4e75cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e75cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e75cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x54f6d7=>(_0x7ae35f(),_0x54f6d7),()=>{const _0x3378d1=_0x2c89d1();return null==_0x3378d1?(_0x7ae35f(),_0x4e75cb([0x56,0x61,0x6c,0x69,0x64])):_0x4e75cb(_0x2fca2c-_0x3378d1>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x5e0173)[_0x4e75cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5e0173(_0x4e75cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d33ba=0x36ee80;function _0x7ae35f(){const _0x569408=_0x4e75cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x293858(_0xd88362(_0x5be264)),_0x48b7bd=_0x33b0d6(_0x293858(window[_0x4e75cb([0x4d,0x61,0x74,0x68])][_0x4e75cb([0x63,0x65,0x69,0x6c])](_0x2fca2c/_0x5d33ba)));window[_0x4e75cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e75cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x569408,_0x48b7bd);}function _0x2c89d1(){const _0x227947=_0x4e75cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x293858(_0xd88362(_0x5be264)),_0x48934a=window[_0x4e75cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e75cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x227947);return _0x48934a?window[_0x4e75cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33b0d6(_0x48934a),0x10)*_0x5d33ba:null;}function _0x3ba1e2(_0x1f5630){return new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13935c,_0x27fa2f)=>{_0x1f5630[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x13935c,_0x27fa2f),window[_0x4e75cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x27fa2f,0x1d4c0);});}}_0x3648de[_0x4e75cb([0x6f,0x6e])](_0x4e75cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b2495,_0xef416d)=>{if(_0xef416d[0x0]!=_0x5be264)return _0x5e0173(_0x4e75cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xef416d[0x1]={..._0xef416d[0x1],[_0x4e75cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5c851a};},{[_0x4e75cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e75cb([0x68,0x69,0x67,0x68])}),_0x3648de[_0x4e75cb([0x6f,0x6e])](_0x4e75cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d1102=>{_0x42b558(_0x3d1102[_0x4e75cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5a9ac0=!0x0,_0x5898fc(_0x3d1102[_0x4e75cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e75cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e75cb([0x6c,0x6f,0x77])}),_0x26b700[_0x4e75cb([0x74,0x68,0x65,0x6e])](()=>{_0x5a9ac0||_0x5e0173(_0x4e75cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b7a80(){return _0x3648de[_0x4e75cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e75cb([0x76,0x69,0x65,0x77])][_0x4e75cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e75cb([0x61,0x75,0x74,0x6f]);}function _0x5b6111(){_0x3648de[_0x4e75cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e75cb([0x76,0x69,0x65,0x77])][_0x4e75cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e75cb([0x61,0x75,0x74,0x6f]);}}(_0x7bfc06[_0x4e75cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x7bfc06[_0x4e75cb([0x6a,0x74,0x69])]));const _0x504b58=await(async function(){let _0x4117aa=!0x0;try{const _0x25c6f9=_0x306489[_0x4e75cb([0x73,0x70,0x6c,0x69,0x74])](_0x4e75cb([0x2e])),[_0x42803d,_0x12859c,_0x2184dc]=_0x25c6f9;return _0x504b32(_0x42803d),await _0x5a6192(_0x42803d,_0x12859c,_0x2184dc),_0x4117aa;}catch{return!0x1;}function _0x504b32(_0x3d6f2f){const _0x39f1f0=_0x56f7db(_0x3d6f2f);_0x39f1f0&&_0x39f1f0[_0x4e75cb([0x61,0x6c,0x67])]==_0x4e75cb([0x45,0x53,0x32,0x35,0x36])||(_0x4117aa=!0x1);}async function _0x5a6192(_0x16279c,_0x25a6c3,_0x3de8c5){const _0x25e0ae=window[_0x4e75cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e75cb([0x66,0x72,0x6f,0x6d])](_0x1ddf25(_0x3de8c5),_0x612e0f=>_0x612e0f[_0x4e75cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2906aa=new window[(_0x4e75cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e75cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16279c+_0x4e75cb([0x2e])+_0x25a6c3),_0x12f7e2=window[_0x4e75cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e75cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12f7e2)return;const _0x4d4a2c=await _0x12f7e2[_0x4e75cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e75cb([0x6a,0x77,0x6b]),_0x3b5f9d,{[_0x4e75cb([0x6e,0x61,0x6d,0x65])]:_0x4e75cb([0x45,0x43,0x44,0x53,0x41]),[_0x4e75cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e75cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e75cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12f7e2[_0x4e75cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e75cb([0x6e,0x61,0x6d,0x65])]:_0x4e75cb([0x45,0x43,0x44,0x53,0x41]),[_0x4e75cb([0x68,0x61,0x73,0x68])]:{[_0x4e75cb([0x6e,0x61,0x6d,0x65])]:_0x4e75cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d4a2c,_0x25e0ae,_0x2906aa)||(_0x4117aa=!0x1);}}());return _0x504b58?(function(){const _0x1fb172=_0x7bfc06[_0x4e75cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1fb172)return!0x1;if(_0x1fb172[_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75cb([0x2a])))return!0x0;if(_0x1fb172[_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75cb([0x43,0x43])))return!0x0;if(_0x1fb172[_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75cb([0x50,0x50])))return!0x0;return!0x1;}())?(function(){const _0x4b2f8e=[_0x4e75cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e75cb([0x74,0x72,0x69,0x61,0x6c])][_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7bfc06[_0x4e75cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fca2c/0x3e8:0x69e02680;return _0x7bfc06[_0x4e75cb([0x65,0x78,0x70])]<_0x4b2f8e;}())?_0x4e75cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xd376b5=_0x7bfc06[_0x4e75cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd376b5||0x0==_0xd376b5[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ae61f}=new URL(window[_0x4e75cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd376b5[_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ae61f))return!0x0;const _0x5a4626=_0x2ae61f[_0x4e75cb([0x73,0x70,0x6c,0x69,0x74])](_0x4e75cb([0x2e]));return _0xd376b5[_0x4e75cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31e6f0=>_0x31e6f0[_0x4e75cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e75cb([0x2a])))[_0x4e75cb([0x6d,0x61,0x70])](_0x3f6523=>_0x3f6523[_0x4e75cb([0x73,0x70,0x6c,0x69,0x74])](_0x4e75cb([0x2e])))[_0x4e75cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45765c=>_0x45765c[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a4626[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e75cb([0x6d,0x61,0x70])](_0xb36384=>Array(_0x5a4626[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb36384[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e75cb([0x66,0x69,0x6c,0x6c])](_0xb36384[0x0]===_0x4e75cb([0x2a])?_0x4e75cb([0x2a]):'')[_0x4e75cb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb36384))[_0x4e75cb([0x73,0x6f,0x6d,0x65])](_0x270935=>_0x5a4626[_0x4e75cb([0x65,0x76,0x65,0x72,0x79])]((_0x1a0027,_0x3c018f)=>_0x270935[_0x3c018f]===_0x1a0027||_0x270935[_0x3c018f]===_0x4e75cb([0x2a])));}())?(_0x7bfc06[_0x4e75cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e75cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e72ba=function(_0x570f1c){const _0x31b78e=new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49ac45=>setTimeout(_0x49ac45,0x93ecc)),_0x18372a=_0x26b700[_0x4e75cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2846e8=>{let _0x3530bb=0x0;_0x3648de[_0x4e75cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75cb([0x6f,0x6e])](_0x4e75cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cc08f,_0x5aab34)=>{_0x5aab34[0x0][_0x4e75cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3530bb++,0x5e8==_0x3530bb&&(_0x2846e8(),_0x1cc08f[_0x4e75cb([0x6f,0x66,0x66])]());});})),_0x211532=[_0x31b78e,_0x18372a];return window[_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e75cb([0x72,0x61,0x63,0x65])](_0x211532)[_0x4e75cb([0x74,0x68,0x65,0x6e])](()=>_0x570f1c);}(_0x4e75cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x2e72ba&&_0x2db263)return new window[(_0x4e75cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bd59e,_0x185f97)=>{_0x2e72ba[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x2bd59e,_0x185f97),_0x2db263[_0x4e75cb([0x74,0x68,0x65,0x6e])](_0x3aa01b=>{_0x3aa01b!=_0x4e75cb([0x56,0x61,0x6c,0x69,0x64])&&_0x2bd59e(_0x3aa01b);},_0x185f97);});return _0x2e72ba||_0x2db263||_0x4e75cb([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4e75cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e75cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e75cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e75cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x56f7db(_0x44b848){return _0x44b848[_0x4e75cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e75cb([0x65,0x79]))?JSON[_0x4e75cb([0x70,0x61,0x72,0x73,0x65])](_0x1ddf25(_0x44b848)):null;}function _0x1ddf25(_0x18f2e1){return window[_0x4e75cb([0x61,0x74,0x6f,0x62])](_0x18f2e1[_0x4e75cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e75cb([0x2b]))[_0x4e75cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e75cb([0x2f])));}function _0xd88362(_0x12ccd7){let _0x5189d6=0x1505;function _0x57135d(_0x49a6fa){for(let _0x39ebfd=0x0;_0x39ebfd<_0x49a6fa[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39ebfd++){const _0x83f4b=_0x49a6fa[_0x4e75cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39ebfd);_0x5189d6=(_0x5189d6<<0x5)+_0x5189d6+_0x83f4b,_0x5189d6&=_0x5189d6;}}return function _0x34d6bf(_0x4edc1b){Array[_0x4e75cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4edc1b)?_0x4edc1b[_0x4e75cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34d6bf):_0x4edc1b&&typeof _0x4edc1b==_0x4e75cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e75cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4edc1b)[_0x4e75cb([0x73,0x6f,0x72,0x74])]()[_0x4e75cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42a1bf,_0x18ce0f])=>{_0x57135d(_0x42a1bf),_0x34d6bf(_0x18ce0f);}):_0x57135d(window[_0x4e75cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4edc1b));}(_0x12ccd7),_0x5189d6>>>0x0;}function _0x293858(_0x1e0467){return _0x1e0467[_0x4e75cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e75cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e75cb([0x30]));}function _0x33b0d6(_0xf9e62d){return _0xf9e62d[_0x4e75cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e75cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e75cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2abac6(){}function _0x4e75cb(_0x29e2d4){return _0x29e2d4['map'](_0x3fb006=>String['fromCharCode'](_0x3fb006))['join']('');}!function(_0x2835cd){const _0x128693=(function(){const _0x52cbca=window[_0x4e75cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e75cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e75cb([0x6e,0x6f,0x77])]())[_0x4e75cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e75cb([0x2e]),'');let _0x96f601=_0x4e75cb([0x45]);for(let _0x2c628b=0x0;_0x2c628b<_0x52cbca[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c628b+=0x2){let _0xbccc83=window[_0x4e75cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52cbca[_0x4e75cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c628b,_0x2c628b+0x2));_0xbccc83>=_0x47bdcd[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbccc83-=_0x47bdcd[_0x4e75cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x96f601+=_0x47bdcd[_0xbccc83];}return _0x96f601;}());_0x3648de[_0x128693]=_0x4e75cb([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2835cd,_0x2835cd!=_0x4e75cb([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x26b700,_0x3648de[_0x4e75cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2abac6,_0x3648de[_0x4e75cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e75cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2abac6,_0x3648de[_0x4e75cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e75cb([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5dbc94);}class CaseChangeUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CaseChangeUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d936d=this['editor'];this['_registerComponents'](),_0x4d936d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$g(_0x4d936d['locale'],'Change\x20text\x20case'),'keystroke':'Shift+f3','mayRequireFn':!0x0}]}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x575523=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30993e;for(const _0x2d279f in _0x575523){const _0x4ec9ec=_0x2d279f,_0x9b7a9f=_0x575523[_0x4ec9ec];if('caseChangeLicenseKeyValid'==_0x9b7a9f||'caseChangeLicenseKeyInvalid'==_0x9b7a9f||'caseChangeLicenseKeyExpired'==_0x9b7a9f||'caseChangeLicenseKeyDomainLimit'==_0x9b7a9f||'caseChangeLicenseKeyNotAllowed'==_0x9b7a9f||'caseChangeLicenseKeyEvaluationLimit'==_0x9b7a9f||'caseChangeLicenseKeyUsageLimit'==_0x9b7a9f){delete _0x575523[_0x4ec9ec],_0x30993e=_0x9b7a9f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'caseChangeLicenseKeyInvalid'==_0x30993e&&_0x575523['_showLicenseError']('invalid'),'caseChangeLicenseKeyExpired'==_0x30993e&&_0x575523['_showLicenseError']('expired'),'caseChangeLicenseKeyDomainLimit'==_0x30993e&&_0x575523['_showLicenseError']('domainLimit'),'caseChangeLicenseKeyNotAllowed'==_0x30993e&&_0x575523['_showLicenseError']('featureNotAllowed','CaseChange'),'caseChangeLicenseKeyEvaluationLimit'==_0x30993e&&_0x575523['_showLicenseError']('evaluationLimit'),'caseChangeLicenseKeyUsageLimit'==_0x30993e&&_0x575523['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_registerComponents'](){const _0x995a36=this['editor'],{itemDefinitions:_0x13dc9b,commands:_0x4fca73}=this['_getListItemDefinitionsAndCommands']();_0x995a36['ui']['componentFactory']['add']('caseChange',()=>this['_createDropdownView'](_0x13dc9b,_0x4fca73)),_0x995a36['ui']['componentFactory']['add']('menuBar:caseChange',()=>this['_createMenuBarMenuView'](_0x13dc9b,_0x4fca73));}['_createMenuBarMenuView'](_0x48dae9,_0x370599){const _0x519027=this['editor'],_0x1ee3c2=_0x519027['locale'],_0x5105f9=new MenuBarMenuView(_0x1ee3c2),_0x48f7bb=new MenuBarMenuListView(_0x1ee3c2);_0x48f7bb['set']({'ariaLabel':getTranslation$g(_0x1ee3c2,'Case\x20change'),'role':'menu'}),this['_setButtonProperties'](_0x5105f9['buttonView']),_0x5105f9['bind']('isEnabled')['toMany'](_0x370599,'isEnabled',(..._0x2c682b)=>_0x2c682b['some'](_0x322c81=>_0x322c81));for(const _0x8dcb2a of _0x48dae9){const _0xca520b=new MenuBarMenuListItemView(_0x1ee3c2,_0x5105f9),_0x3003bc=new MenuBarMenuListItemButtonView(_0x1ee3c2);_0x3003bc['delegate']('execute')['to'](_0x5105f9),_0x3003bc['bind'](...Object['keys'](_0x8dcb2a['model']))['to'](_0x8dcb2a['model']),_0x3003bc['on']('execute',()=>{_0x519027['execute'](_0x8dcb2a['model']['commandName']),_0x519027['editing']['view']['focus']();}),_0xca520b['children']['add'](_0x3003bc),_0x48f7bb['items']['add'](_0xca520b);}return _0x5105f9['panelView']['children']['add'](_0x48f7bb),_0x5105f9;}['_createDropdownView'](_0x7bc95a,_0x2ce856){const _0x6525b3=this['editor'],_0x4c5acf=createDropdown(_0x6525b3['locale']);return this['_setButtonProperties'](_0x4c5acf['buttonView']),_0x4c5acf['buttonView']['set']({'tooltip':!0x0}),_0x4c5acf['extendTemplate']({'attributes':{'class':['ck-case-change-dropdown']}}),addListToDropdown(_0x4c5acf,_0x7bc95a,{'ariaLabel':getTranslation$g(_0x6525b3['locale'],'Case\x20change'),'role':'menu'}),_0x4c5acf['bind']('isEnabled')['toMany'](_0x2ce856,'isEnabled',(..._0x162cb2)=>_0x162cb2['some'](_0x396d61=>_0x396d61)),this['listenTo'](_0x4c5acf,'execute',_0x179025=>{_0x6525b3['execute'](_0x179025['source']['commandName']),_0x6525b3['editing']['view']['focus']();}),_0x4c5acf;}['_setButtonProperties'](_0x256fda){const _0x54d767=this['editor'];_0x256fda['set']({'label':getTranslation$g(_0x54d767['locale'],'Case\x20change'),'icon':IconCaseChange,'keystroke':'Shift+F3'});}['_getListItemDefinitionsAndCommands'](){const _0x4a5e34=new Collection(),_0x2fd752=[];for(const _0x2a21d9 of _getOptions(this['editor']['locale'])){const _0x301ba6=this['editor']['commands']['get'](_0x2a21d9['commandName']),_0x45f8e2=new UIModel({'commandName':_0x2a21d9['commandName'],'label':_0x2a21d9['label'],'role':'menuitemradio','withText':!0x0});_0x45f8e2['bind']('isEnabled')['to'](_0x301ba6,'isEnabled'),_0x4a5e34['add']({'type':'button','model':_0x45f8e2}),_0x2fd752['push'](_0x301ba6);}return{'itemDefinitions':_0x4a5e34,'commands':_0x2fd752};}}class CaseChange extends Plugin{static get['requires'](){return[CaseChangeEditing,CaseChangeUI];}static get['pluginName'](){return'CaseChange';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CommentThreadController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];constructor(_0x5b55c4,_0x25716d){super(),this['model']=_0x5b55c4,this['model']['_isAttached']=!0x0,this['view']=_0x25716d,this['listenTo'](_0x25716d,'submitCommentThread',()=>this['submit']()),this['listenTo'](_0x25716d,'removeCommentThread',()=>this['remove']()),this['listenTo'](_0x25716d,'resolveCommentThread',()=>this['resolve']()),this['listenTo'](_0x25716d,'reopenCommentThread',()=>this['reopen']()),this['listenTo'](_0x25716d,'addComment',(_0x41db26,_0x36a2a0)=>this['addComment'](_0x36a2a0)),this['listenTo'](_0x25716d,'updateComment',(_0x1ac45e,_0x3118c0,_0x450e3e)=>this['updateComment'](_0x3118c0,_0x450e3e)),this['listenTo'](_0x25716d,'removeComment',(_0x353faa,_0x118713)=>this['removeComment'](_0x118713));}['submit'](){this['model']['submit']();}['remove'](){this['model']['remove']();}['resolve'](){this['model']['isResolved']||this['model']['resolve']();}['reopen'](){this['model']['isResolved']&&this['model']['reopen']();}['addComment'](_0x45947a){this['model']['addComment']({'content':_0x45947a,'authorId':this['view']['_localUser']['id']});}['updateComment'](_0x3043fe,_0x2af841){this['model']['getComment'](_0x3043fe)['update']({'content':_0x2af841});}['removeComment'](_0x20d963){this['model']['getComment'](_0x20d963)['remove']();}['destroy'](){this['stopListening'](),this['model']['_isAttached']=!0x1;}}function getTranslation$f(_0x43b496,_0x222fd8,_0x5e92d4){const t=_0x43b496['t'];switch(_0x222fd8){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'},_0x5e92d4);case'COMMENT_THREAD_LABEL':return t({'string':'Comment\x20thread\x20by\x20%1.\x20%1\x20reply.','plural':'Comment\x20thread\x20by\x20%1.\x20%0\x20replies.','id':'COMMENT_THREAD_LABEL'},_0x5e92d4);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'},_0x5e92d4);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'},_0x5e92d4);case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x5e92d4);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'},_0x5e92d4);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'},_0x5e92d4);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'},_0x5e92d4);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'';}}class CommentEditorUIView extends EditorUIView{['main'];['editable'];constructor(_0x34cc0f,_0x29d425){super(_0x34cc0f);const _0x2b5044=uid();this['main']=this['createCollection'](),this['editable']=new InlineEditableUIView(_0x34cc0f,_0x29d425,void 0x0,{'label':()=>getTranslation$f(_0x34cc0f,'Comment\x20editor')}),this['setTemplate']({'tag':'div','attributes':{'class':['ck-reset','ck-editor','ck-rounded-corners','ck-comment__input'],'dir':_0x34cc0f['uiLanguageDirection'],'lang':_0x34cc0f['uiLanguage'],'aria-labelledby':'cke-editor__aria-label_'+_0x2b5044},'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']();}}class CommentEditorUI extends EditorUI{['view'];constructor(_0x1fd36b){super(_0x1fd36b),this['view']=new CommentEditorUIView(_0x1fd36b['locale'],_0x1fd36b['editing']['view']);}get['element'](){return this['view']['element'];}['init'](){const _0x41d105=this['editor']['editing']['view'],_0x25294e=this['view']['editable'],_0x1e8f65=_0x41d105['document']['getRoot']();_0x25294e['name']=_0x1e8f65['rootName'],this['view']['render']();const _0x3c5388=_0x25294e['element'];this['setEditableElement'](_0x25294e['name'],_0x3c5388),this['view']['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x41d105['attachDomRoot'](_0x3c5388),this['fire']('ready');}['destroy'](){super['destroy'](),this['view']['destroy']();}}const defaultPlugins=[Clipboard,Enter,ShiftEnter,SelectAll,Typing,Undo,Paragraph];class CommentEditor extends/* #__PURE__ -- @preserve */
ObservableMixin(Editor){static ['defaultPlugins']=/* #__PURE__ -- @preserve */
((()=>defaultPlugins)());constructor(_0x43f3ec={}){function _0x4c471a(_0x103594){return _0x103594['map'](_0x297125=>String['fromCharCode'](_0x297125))['join']('');}(_0x43f3ec=Object['assign']({},_0x43f3ec))['plugins']||(_0x43f3ec['plugins']=CommentEditor['defaultPlugins']),super(_0x43f3ec),this['ui']=new CommentEditorUI(this),this['set']('placeholder',''),this['model']['document']['on']('change',()=>this['_updatePlaceholder'](),{'priority':'low'}),this['on']('change:placeholder',()=>this['_updatePlaceholder']()),this['model']['document']['createRoot'](),this[_0x4c471a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c471a([0x76,0x69,0x65,0x77])][_0x4c471a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c471a([0x61,0x75,0x74,0x6f]),this[_0x4c471a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c471a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c471a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c471a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c471a([0x6f,0x6b])});}['create'](){const _0x334f94=this['config']['get']('initialData')||'';return this['initPlugins']()['then'](()=>this['ui']['init']())['then'](()=>this['data']['init'](_0x334f94))['then'](()=>this['fire']('ready'));}['destroy'](){return super['destroy']()['then'](()=>this['ui']['destroy']());}['focus'](){this['model']['change'](_0xd3c9d9=>{const _0x1a4bb3=this['model']['document']['getRoot'](),_0x141998=_0x1a4bb3&&_0x1a4bb3['getChild'](_0x1a4bb3['childCount']-0x1);_0xd3c9d9['setSelection'](_0x141998,'end'),this['editing']['view']['focus']();});}['_updatePlaceholder'](){const _0x453e15=this['editing']['view'],_0x2867f2=_0x453e15['document']['getRoot'](),_0x5e9437=_0x2867f2['getChild'](0x0);_0x2867f2['childCount']>0x1||!_0x5e9437||'p'!=_0x5e9437['name']?this['placeholderElement']&&this['placeholderElement']['placeholder']&&(disableViewPlaceholder(_0x453e15,this['placeholderElement']),this['placeholderElement']=void 0x0):(this['placeholder']&&(_0x5e9437['placeholder']=this['placeholder']),enableViewPlaceholder({'view':_0x453e15,'element':_0x5e9437,'keepOnFocus':!0x0}),this['placeholderElement']=_0x5e9437);}}class CommentInputView extends View{['keystrokes'];['focusTracker'];['focusables'];['focusCycler'];['submitButtonView'];['cancelButtonView'];['_editorConfig'];constructor(_0x1d9623,_0xd439b6={}){super(_0x1d9623),this['editor']=null,this['_editorConfig']=_0xd439b6,this['set']('value',_0xd439b6['initialData']||''),this['set']('disabledSubmit',!0x1),this['set']('showButtons',!0x0),this['set']('placeholder',getTranslation$f(_0x1d9623,'Reply...')),this['set']('submitLabel',getTranslation$f(_0x1d9623,'Reply')),this['submitButtonView']=this['_createSubmitButton'](),this['cancelButtonView']=this['_createCancelButton'](),this['focusables']=this['createCollection']([this['submitButtonView'],this['cancelButtonView']]),this['keystrokes']=new KeystrokeHandler(),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'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',(_0x22e683,_0x7ea72d)=>{this['cancelButtonView']['fire']('execute'),_0x7ea72d();}),this['keystrokes']['set']('Ctrl+Enter',(_0x4ad100,_0x5954bc)=>{this['submitButtonView']['isEnabled']&&(this['submitButtonView']['fire']('execute'),_0x5954bc());}),this['on']('submit',(_0xb290be,_0x45b133)=>{_0x45b133['length']>0xfde8?(alert(getTranslation$f(_0x1d9623,'TOO_LONG_COMMENT_ALERT',[_0x45b133['length'],0xfde8])),_0xb290be['stop']()):this['editor']['setData']('');},{'priority':'high'});}['render'](){super['render'](),this['_setupKeyboardNavigation']();}['createEditor'](){return this['editor']||(this['editor']=new CommentEditor(this['_editorConfig']),this['_editorCreationPromise']=this['editor']['create']()['then'](()=>{if(this['_isDestroyed'])return;const _0x1dfc98=this['editor'];this['element']['insertBefore'](_0x1dfc98['ui']['element'],this['element']['firstChild']),_0x1dfc98['model']['document']['on']('change',()=>this['value']=_0x1dfc98['getData']()),_0x1dfc98['bind']('placeholder')['to'](this),this['focusables']['add'](_0x1dfc98['ui']['view'],0x0),this['fire']('editorReady',this['editor']);})),this['_editorCreationPromise'];}['focus'](_0x48dc67){-0x1===_0x48dc67?(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:_0xdba54a}=this,_0x526bcc=new ButtonView(_0xdba54a);return _0x526bcc['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--submit']}}),_0x526bcc['withText']=!0x0,_0x526bcc['bind']('label')['to'](this,'submitLabel'),_0x526bcc['on']('execute',()=>{this['fire']('submit',this['value']);}),_0x526bcc['bind']('isEnabled')['to'](this,'value',this,'disabledSubmit',(_0x423807,_0x1c544a)=>!_0x1c544a&&!!_0x423807['trim']()),_0x526bcc;}['_createCancelButton'](){const {locale:_0x34bf5d}=this,_0x33ae8c=new ButtonView(_0x34bf5d);return _0x33ae8c['extendTemplate']({'attributes':{'class':['ck-comment__input-actions--cancel']}}),_0x33ae8c['label']=getTranslation$f(_0x34bf5d,'Cancel'),_0x33ae8c['withText']=!0x0,_0x33ae8c['on']('execute',()=>{this['editor']['setData'](''),this['fire']('cancel');}),_0x33ae8c;}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']),this['focusables']['forEach'](_0x3f23f0=>{this['focusTracker']['add'](_0x3f23f0['element']);}),this['focusables']['on']('change',(_0x55eb48,_0x283070)=>{for(const _0x5c4bc4 of Array['from'](_0x283070['added'])['reverse']())this['focusTracker']['add'](_0x5c4bc4['element']);});}}class CommentThreadInputView extends View{constructor(_0xac2eb0,_0x49e414,_0x2be0cd){super(_0xac2eb0),this['commentInputView']=new CommentInputView(_0xac2eb0,_0x2be0cd),this['focusCycler']=this['commentInputView']['focusCycler'],this['commentInputView']['bind']('showButtons')['to'](this['commentInputView']['focusTracker'],'isFocused',this['commentInputView'],'value',(_0x2e6bbc,_0x2f086d)=>_0x2e6bbc||!!_0x2f086d),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 UserView(_0xac2eb0,_0x49e414),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'](_0x314c3f){this['commentInputView']['focus'](_0x314c3f);}['_focusOnNonInteractiveMouseDown'](){this['listenTo'](this['element'],'mousedown',(_0x2c1393,_0x57b449)=>{const {submitButtonView:_0x2216da,cancelButtonView:_0x3716f5,editor:_0x155987}=this['commentInputView'];[_0x2216da['element'],_0x3716f5['element'],_0x155987?_0x155987['editing']['view']['getDomRoot']():null]['filter'](_0x320719=>_0x320719)['some'](_0x35cc87=>_0x35cc87['contains'](_0x57b449['target']))||(this['focus'](),_0x57b449['preventDefault']());});}}class CollapsedCommentsView extends View{constructor(_0x25b5b4){super(_0x25b5b4);const _0x10fe49=this['bindTemplate'];this['set']('count',void 0x0),this['setTemplate']({'tag':'li','attributes':{'class':'ck-thread__comment-count'},'children':[{'text':_0x10fe49['to']('count',_0x66ccf4=>getTranslation$f(_0x25b5b4,'NUMBER_OF_COMMENTS',_0x66ccf4))}]});}}class CommentsListView extends View{['commentViews'];['resolvedCommentView'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];['_collapsedCommentsView'];constructor(_0x4be19c,_0x3a1c81,_0x5acf47){super(_0x4be19c);const _0x4901c9=this['bindTemplate'];this['set']('hasDirtyComment',!0x1),this['set']('length',_0x3a1c81['comments']['length']),this['set']('isActive',!0x1),this['_model']=_0x3a1c81,this['_config']=_0x5acf47,this['commentViews']=this['createCollection'](),this['visibleViews']=this['createCollection'](),this['resolvedCommentView']=null,this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['commentViews'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46bae5=>this['commentViews']['map'](_0x2ed7bd=>_0x2ed7bd['element'])['includes'](_0x46bae5['target'])},'actions':{'focusPrevious':'arrowup','focusNext':'arrowdown'}}),this['_collapsedCommentsView']=new CollapsedCommentsView(_0x4be19c),this['_collapsedCommentsView']['bind']('count')['to'](this,'length',_0x1f117e=>_0x1f117e-this['_config']['maxCommentsWhenCollapsed']);for(const _0x34f941 of _0x3a1c81['comments'])this['_handleNewCommentModel'](_0x34f941);this['_handleInfoComment'](),this['listenTo'](_0x3a1c81['comments'],'add',(_0x1592cb,_0x955b4d)=>{const _0x436d8e=this['_calculatePosition'](_0x955b4d);this['length']++,this['_handleNewCommentModel'](_0x955b4d,_0x436d8e),this['refreshVisibleViews']();}),this['listenTo'](_0x3a1c81['comments'],'remove',(_0x7708a1,_0x19708f)=>{this['length']--,this['_handleRemoveCommentModel'](_0x19708f),this['refreshVisibleViews']();}),this['listenTo'](_0x3a1c81,'commentUpdated',()=>this['refreshVisibleViews']()),this['listenTo'](_0x3a1c81,'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',_0x4901c9['if']('length','ck-hidden',_0x2049e2=>!_0x2049e2)],'aria-label':getTranslation$f(_0x4be19c,'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'](_0x21aa0f){-0x1===_0x21aa0f?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['destroy'](){this['_collapsedCommentsView']['destroy']();for(const _0x4d0a0b of this['commentViews'])_0x4d0a0b['destroy']();super['destroy']();}['refreshVisibleViews'](){this['_shouldCollapse']?this['_rearrangeCollapse']():this['_rearrangeExpand']();}['_handleNewCommentModel'](_0x37a36a,_0xe4f0c4){const _0x4a0a33=new this['_config']['CommentView'](this['locale'],_0x37a36a,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig']});_0x4a0a33['viewUid']=_0x37a36a['id'],_0x4a0a33['delegate']('removeComment')['to'](this),_0x4a0a33['delegate']('updateComment')['to'](this),_0x4a0a33['delegate']('resolveCommentThread')['to'](this),_0x4a0a33['delegate']('editorReady')['to'](this),_0x4a0a33['delegate']('editorDestroyed')['to'](this),this['listenTo'](_0x4a0a33,'change:isEditMode',()=>this['_updateHasDirtyComment']()),this['commentViews']['add'](_0x4a0a33,_0xe4f0c4);}['_calculatePosition'](_0x52cccb){const _0x206896=this['_model']['_findOptimalIndex'](_0x52cccb);return this['resolvedCommentView']?this['resolvedCommentView']['authoredAt']>_0x52cccb['authoredAt']?_0x206896-0x1:_0x206896:_0x206896-0x1;}['_handleInfoComment'](){if(this['_model']['resolvedBy']&&this['_model']['resolvedAt']){const _0x457ae9={'id':'resolved','author':this['_model']['resolvedBy'],'authoredAt':this['_model']['resolvedAt'],'content':getTranslation$f(this['locale'],'Marked\x20as\x20resolved'),'attributes':{}};this['resolvedCommentView']=new this['_config']['CommentView'](this['locale'],_0x457ae9,{'maxCommentCharsWhenCollapsed':this['_config']['maxCommentCharsWhenCollapsed'],'formatDateTime':this['_config']['formatDateTime'],'editorConfig':this['_config']['editorConfig'],'isSystemComment':!0x0}),this['commentViews']['add'](this['resolvedCommentView'],this['_model']['_findOptimalIndex'](_0x457ae9));}else this['resolvedCommentView']&&(this['commentViews']['remove'](this['resolvedCommentView']),this['resolvedCommentView']['destroy'](),this['resolvedCommentView']=null);this['refreshVisibleViews']();}['_handleRemoveCommentModel'](_0x277649){const _0x4c8b1d=this['commentViews']['remove'](_0x277649['id']);this['stopListening'](_0x4c8b1d),_0x4c8b1d['isEditMode']&&this['_updateHasDirtyComment'](),_0x4c8b1d['destroy']();}['_updateHasDirtyComment'](){this['hasDirtyComment']=Array['from'](this['commentViews'])['some'](_0x177306=>_0x177306['isEditMode']);}['_rearrangeCollapse'](){const _0xec0c33=cloneCollection(this['commentViews']),_0x1d557e=this['_collapsedCommentsView']['count'];for(let _0x5e70ff=0x1;_0x5e70ff<=_0x1d557e;_0x5e70ff++)_0xec0c33['remove'](0x1);for(const _0x4ef4ec of _0xec0c33)_0x4ef4ec['collapse']();_0x1d557e>0x0&&_0xec0c33['add'](this['_collapsedCommentsView'],0x1),applyDiffToCollection(_0xbddab7(Array['from'](this['visibleViews']),Array['from'](_0xec0c33)),this['visibleViews'],_0xec0c33);}['_rearrangeExpand'](){applyDiffToCollection(_0xbddab7(Array['from'](this['visibleViews']),Array['from'](this['commentViews'])),this['visibleViews'],this['commentViews']);for(const _0x453642 of this['visibleViews'])_0x453642['expand']();}['_setupKeyboardNavigation'](){this['commentViews']['forEach'](_0x15b41f=>{this['focusTracker']['add'](_0x15b41f['element']),this['keystrokes']['listenTo'](_0x15b41f['element']);}),this['commentViews']['on']('change',(_0x2976c5,_0x1f8d40)=>{for(const _0x86e00e of _0x1f8d40['removed'])this['focusTracker']['remove'](_0x86e00e['element']),this['keystrokes']['stopListening'](_0x86e00e['element']);for(const _0x1039e6 of Array['from'](_0x1f8d40['added'])['reverse']())this['focusTracker']['add'](_0x1039e6['element']),this['keystrokes']['listenTo'](_0x1039e6['element']);});}}function cloneCollection(_0x5cae5d){const _0xdcf1ad=new Collection();for(const _0x125223 of _0x5cae5d)_0xdcf1ad['add'](_0x125223);return _0xdcf1ad;}function applyDiffToCollection(_0x1e006c,_0x360a60,_0x13214d){let _0x10d965=0x0;for(const _0x367260 of _0x1e006c)switch(_0x367260){case'insert':_0x360a60['add'](_0x13214d['get'](_0x10d965),_0x10d965),_0x10d965++;break;case'delete':_0x360a60['remove'](_0x10d965);break;case'equal':_0x10d965++;}}class CommentThreadHeaderContextView extends View{constructor(_0x5ad170){super(_0x5ad170);const _0x7b720=this['bindTemplate'];this['set']('contextValue',''),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-context__value'],'aria-label':_0x7b720['to']('contextValue',_0x4fc2d1=>getTranslation$f(_0x5ad170,'THREAD_CONTEXT_LABEL',_0x4fc2d1)),'tabindex':-0x1},'children':[{'text':_0x7b720['to']('contextValue')}]});}['focus'](){this['element']['focus']();}}const MAX_CONTENT_LENGTH=0x96;class CommentThreadHeaderView extends View{['_model'];['reopenButtonView'];['contextView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0xa19380,_0x1a72ac){super(_0xa19380);const _0x2a7956=this['bindTemplate'];this['_model']=_0x1a72ac,this['reopenButtonView']=this['_createReopenButton'](),this['contextView']=this['_createContextView'](),this['focusables']=this['createCollection']([this['contextView'],this['reopenButtonView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['bind']('hasContext')['to'](this['_model'],'context',_0x34d301=>!!_0x34d301),this['bind']('contextValue')['to'](this['_model'],'context',_0x40e40a=>_0x40e40a&&_0x40e40a['value']?this['_trimContextValue'](_0x40e40a['value']):getTranslation$f(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',_0x2a7956['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 _0x5379d4=new ButtonView(this['locale']);return _0x5379d4['label']=getTranslation$f(this['locale'],'Reopen'),_0x5379d4['tooltip']=getTranslation$f(this['locale'],'Reopen'),_0x5379d4['icon']=IconUndo,_0x5379d4['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x25f8e5=>!_0x25f8e5),_0x5379d4['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x9f66b9,_0x5597e0)=>_0x9f66b9&&_0x5597e0),_0x5379d4['on']('execute',()=>{this['fire']('reopenCommentThread',this['_model']['id']);}),_0x5379d4;}['_trimContextValue'](_0x359cf5){const _0x39afbc=MAX_CONTENT_LENGTH-0x3;if(_0x359cf5['length']<MAX_CONTENT_LENGTH)return _0x359cf5;const _0x327c4d=_0x359cf5['lastIndexOf']('\x20',_0x39afbc);return _0x359cf5['substring'](0x0,_0x327c4d>-0x1?_0x327c4d:_0x39afbc)+'...';}['_attachContextActions'](){const _0x2c5e97=this['element']['querySelector']('.ck-context'),_0x3982c8=_0x2c5e97['querySelector']('.ck-context__value');this['listenTo'](_0x2c5e97,'mouseenter',()=>{_0x3982c8['offsetWidth']<_0x3982c8['scrollWidth']&&_0x2c5e97['classList']['add']('overlay');}),this['listenTo'](_0x2c5e97,'mouseleave',()=>{_0x2c5e97['classList']['remove']('overlay');});}['_setupKeyboardNavigation'](){this['keystrokes']['listenTo'](this['element']);for(const _0x4780ae of this['focusables'])this['focusTracker']['add'](_0x4780ae['element']),this['keystrokes']['listenTo'](_0x4780ae['element']);}['_createContextView'](){const _0x4edd50=new CommentThreadHeaderContextView(this['locale']);return _0x4edd50['bind']('contextValue')['to'](this),_0x4edd50;}}class BaseCommentThreadView extends View{['_model'];['_config'];['commentThreadHeaderView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];constructor(_0x1eecde,_0x16a611,_0x3c8f18,_0x48e768){super(_0x1eecde),this['set']('isActive',!0x1),this['set']('isDirty',!0x1),this['_model']=_0x16a611,this['_localUser']=_0x3c8f18,this['_config']=_0x48e768,this['commentThreadHeaderView']=new CommentThreadHeaderView(_0x1eecde,_0x16a611),this['commentThreadHeaderView']['delegate']('reopenCommentThread')['to'](this),this['ariaDescriptionView']=new AriaDescriptionView(_0x1eecde,getTranslation$f(_0x1eecde,'COMMENT_THREAD_DESCRIPTION')),this['listenTo'](this,'reopenCommentThread',()=>{this['focus']();}),this['commentsListView']=new CommentsListView(_0x1eecde,_0x16a611,Object['assign']({'CommentView':this['_config']['CommentView']},_0x48e768)),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',(_0x5a95b6,_0x12d4b1)=>_0x5a95b6||!!_0x12d4b1),this['bind']('isUnlinked')['to'](_0x16a611,'unlinkedAt',_0x40bf6b=>!!_0x40bf6b),this['bind']('ariaLabel')['to'](this,'length',_0x34d457=>{const _0x571950=this['_model']['comments']['first']?this['_model']['comments']['first']['author']['name']:this['_localUser']['name'];return getTranslation$f(this['locale'],'COMMENT_THREAD_LABEL',[_0x34d457,_0x571950]);}),this['focusables']=this['createCollection']([this['commentsListView'],this['commentThreadInputView']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x171808=>_0x171808['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}});}['focus'](){this['element']['focus']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}async['destroy'](){this['isDirty']=!0x1,this['commentsListView']['destroy'](),await this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentThreadInputView'](){const _0x20af12=new CommentThreadInputView(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x9ff42e=_0x20af12['commentInputView'];return _0x20af12['bind']('showInput')['to'](this,'isActive',this['_model'],'isReadOnly',this['_model'],'canComment',this['_model'],'archivedAt',_0x9ff42e,'value',(_0x43e1d5,_0x2007ed,_0x13145e,_0x52150a,_0x3d36b6)=>!!_0x3d36b6||!!_0x52150a&&_0x13145e&&!_0x2007ed||_0x43e1d5&&_0x13145e&&!_0x2007ed),_0x9ff42e['bind']('placeholder')['to'](this,'length',this['_model'],'isResolvable',this['_model'],'isResolved',(_0x1f7933,_0x12bee5,_0x2c9310)=>{let _0x1376e4;return _0x1376e4=_0x2c9310&&_0x12bee5?'Reply\x20to\x20reopen\x20discussion...':_0x1f7933?'Reply...':'Write\x20a\x20comment...',getTranslation$f(this['locale'],_0x1376e4);}),_0x9ff42e['bind']('submitLabel')['to'](this,'length',_0xc155a5=>getTranslation$f(this['locale'],_0xc155a5?'Reply':'Comment')),_0x9ff42e['on']('submit',(_0x44dac6,_0x2c0434)=>{this['fire']('addComment',_0x2c0434),this['_model']['isResolved']&&this['_model']['isResolvable']&&this['fire']('reopenCommentThread',this['_model']['id']),this['_model']['isSubmitted']||this['fire']('submitCommentThread');}),_0x9ff42e['on']('cancel',()=>{this['focus']();}),_0x9ff42e['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x9ff42e['on']('cancel',_0x303473=>{0x0==this['length']&&(this['fire']('removeCommentThread'),_0x303473['stop']());}),this['on']('change:isActive',(_0x1aa230,_0x3c366a,_0xdffac8)=>{_0xdffac8||this['length']||_0x9ff42e['value']||this['fire']('removeCommentThread');}),_0x20af12;}}class CommentThreadView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentThreadView){['commentThreadChildren'];['containerElement'];['resolveButton'];['_boundFirstCommentView'];constructor(_0x40efc1,_0x3d0c09,_0x1eff0d,_0x454b1f){super(_0x40efc1,_0x3d0c09,_0x1eff0d,_0x454b1f),this['commentThreadChildren']=this['createCollection']([this['commentsListView'],this['commentThreadInputView'],this['ariaDescriptionView']]),this['set']('actionIndicator',null),this['containerElement']=null,this['_boundFirstCommentView']=null,this['locale']=_0x40efc1,this['resolveButton']=this['_createResolveButton'](),this['setTemplate'](this['getTemplate']()),this['on']('change:isActive',(_0x58279e,_0x3530cd,_0xff89e7)=>{_0xff89e7||this['_cancelAllConfirms']();}),this['listenTo'](this['_model'],'change:isReadOnly',(_0x112eed,_0x458b4a,_0x4ee873)=>{_0x4ee873&&this['_cancelAllConfirms']();}),this['length']>0x0&&this['_bindFirstCommentView'](),this['listenTo'](this['commentsListView']['commentViews'],'add',()=>{this['_bindFirstCommentView']();});}['getTemplate'](){const _0x9c6d14=this['bindTemplate'];return{'tag':'div','attributes':{'class':['ck','ck-thread','ck-reset_all-excluded','ck-rounded-corners',_0x9c6d14['if']('isActive','ck-thread--active'),_0x9c6d14['if']('isUnlinked','ck-thread--unlinked'),_0x9c6d14['to']('actionIndicator',_0x31d763=>_0x31d763?'ck-thread--'+_0x31d763:'')],'data-thread-id':this['_model']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x9c6d14['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 _0xfe9aa3 of this['commentsListView']['commentViews'])_0xfe9aa3['cancelConfirm']();}['_bindFirstCommentView'](){const {locale:_0x19533f}=this,_0x136c33=this['commentsListView']['commentViews']['get'](0x0);_0x136c33===this['_boundFirstCommentView']||_0x136c33['isSystemComment']||(this['_boundFirstCommentView']=_0x136c33,this['unbind']('actionIndicator'),this['bind']('actionIndicator')['to'](_0x136c33,'actionIndicator',_0x2c1fa1=>'remove'===_0x2c1fa1?'remove':null),_0x136c33['placeholder']=getTranslation$f(_0x19533f,'Write\x20a\x20comment...'),_0x136c33['removeButton']['on']('execute',_0x46382b=>{_0x46382b['stop'](),this['showConfirm'](getTranslation$f(_0x19533f,'Delete\x20comment\x20thread?'),this['containerElement'])['then'](()=>{this['fire']('removeCommentThread');});},{'priority':'high'}),this['on']('removeConfirm',()=>{_0x136c33['focus']();}),_0x136c33['actionBar']['add'](this['resolveButton'],0x0),_0x136c33['focusables']['add'](this['resolveButton'],0x0));}['_createResolveButton'](){const _0x5eb867=new LateFocusButtonView(this['locale']);return _0x5eb867['label']=getTranslation$f(this['locale'],'Resolve'),_0x5eb867['tooltip']=getTranslation$f(this['locale'],'Resolve'),_0x5eb867['icon']=IconCheck,_0x5eb867['extendTemplate']({'attributes':{'class':'ck-comment--resolve'}}),_0x5eb867['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x10258b=>!_0x10258b),_0x5eb867['bind']('isVisible')['to'](this['_model'],'isResolvable',this['_model'],'isResolved',(_0x4a5d1b,_0xf7480c)=>_0x4a5d1b&&!_0xf7480c),_0x5eb867['on']('execute',()=>{this['fire']('resolveCommentThread',this['_model']['id']);}),_0x5eb867;}['_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']));}}class CommentContentView extends View{constructor(_0x295694){super(_0x295694),this['set']('content',''),this['setTemplate']({'tag':'div','attributes':{'class':['ck-content','ck-comment__content','ck-annotation__content']}});}['render'](){super['render'](),this['on']('change:content',(_0x167262,_0xdd675f,_0x1765dd)=>{this['element']['innerHTML']=_0x1765dd;}),this['element']['innerHTML']=this['content'];}}class BaseCommentView extends View{['visibleView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5545ce,_0x5b3eb6,_0x54804a){super(_0x5545ce),this['_model']=_0x5b3eb6,this['_config']=_0x54804a,this['isSystemComment']=!!this['_config']['isSystemComment'],this['set']('isEditMode',!0x1),this['set']('isCollapsed',!0x0),this['bind']('ariaLabel')['to'](_0x5b3eb6,'content',_0x5b3eb6,'authoredAt',(_0x1e8834,_0x436ce5)=>getTranslation$f(_0x5545ce,'COMMENT_ARIA_LABEL',[_0x5b3eb6['author']['name'],_0x54804a['formatDateTime'](_0x436ce5),new DOMParser()['parseFromString'](_0x1e8834,'text/html')['body']['textContent'],_0x5b3eb6['isExternal']?this['getExternalCommentNote']():''])),this['ariaDescriptionView']=new AriaDescriptionView(_0x5545ce,getTranslation$f(_0x5545ce,'COMMENT_THREAD_DESCRIPTION')),this['visibleView']=this['createCollection'](),this['visibleView']['add'](this['_createCommentContentView']()),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2518e6=>_0x2518e6['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']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_COMMENT'):getTranslation$f(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$f(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$f(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['_createCommentContentView'](){const _0x5117c6=new CommentContentView(this['locale']);return _0x5117c6['bind']('content')['to'](this['_model'],'content',this,'isCollapsed',(_0x540b09,_0x1b634e)=>_0x1b634e?trimHtml(_0x540b09,{'limit':this['_config']['maxCommentCharsWhenCollapsed']}):_0x540b09),_0x5117c6;}['_createCommentInputView'](){this['_config']['editorConfig']||(this['_config']['editorConfig']={}),this['_config']['editorConfig']['initialData']=this['_model']['content'];const _0x3f60bb=new CommentInputView(this['locale'],this['_config']['editorConfig']);return _0x3f60bb['value']=this['_model']['content'],_0x3f60bb['bind']('disabledSubmit')['to'](this['_model'],'isReadOnly'),_0x3f60bb['submitLabel']=getTranslation$f(this['locale'],'Save'),_0x3f60bb['on']('submit',(_0x57ea83,_0x5ace94)=>{this['fire']('updateComment',this['_model']['id'],_0x5ace94),this['switchToDisplayMode'](),this['focus']();}),_0x3f60bb['on']('cancel',()=>{this['switchToDisplayMode'](),this['focus']();}),_0x3f60bb['once']('editorReady',()=>{_0x3f60bb['focus']();}),_0x3f60bb['createEditor'](),_0x3f60bb['delegate']('editorReady')['to'](this),_0x3f60bb['delegate']('editorDestroyed')['to'](this),_0x3f60bb;}['_setupKeyboardNavigation'](){const _0x741050=this['element'];this['keystrokes']['listenTo'](_0x741050);for(const _0x38b572 of this['focusables'])this['focusTracker']['add'](_0x38b572['element']),this['keystrokes']['listenTo'](_0x38b572['element']);this['focusables']['on']('change',(_0x4ce4f6,_0xf2e91c)=>{for(const _0xb97953 of _0xf2e91c['removed'])this['focusTracker']['remove'](_0xb97953['element']),this['keystrokes']['stopListening'](_0xb97953['element']);for(const _0x4308d6 of _0xf2e91c['added'])this['focusTracker']['add'](_0x4308d6['element']),this['keystrokes']['listenTo'](_0x4308d6['element']);}),this['keystrokes']['set']('enter',(_0xe724af,_0x31dc91)=>{_0x741050===_0xe724af['target']&&(this['focusCycler']['focusFirst'](),_0x31dc91());}),this['keystrokes']['set']('esc',(_0x15b85a,_0x45d9ea)=>{_0x741050!==_0x15b85a['target']&&(this['focus'](),_0x45d9ea());});}}class CommentView extends/* #__PURE__ -- @preserve */
ConfirmMixin(BaseCommentView){['actionBar'];['userView'];constructor(_0x2fa3ab,_0x3d82dd,_0x40d498){super(_0x2fa3ab,_0x3d82dd,_0x40d498),this['set']('actionIndicator',null),this['set']('placeholder',getTranslation$f(_0x2fa3ab,'Reply...')),this['bind']('authoredAt')['to'](_0x3d82dd),this['bind']('resolvedAt')['to'](_0x3d82dd),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 UserView(_0x2fa3ab,_0x3d82dd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-comment__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['listenTo'](_0x3d82dd,'change:isRemovable',()=>this['cancelConfirm']()),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x565e68=this['bindTemplate'],_0x4b0600=[{'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':_0x565e68['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x565e68['to']('authoredAt',_0x98bbf9=>this['_config']['formatDateTime'](_0x98bbf9))}]}]},{'tag':'div','attributes':{'class':['ck-comment__actions','ck-annotation__actions',_0x565e68['if']('isEditMode','ck-comment__actions--hidden'),_0x565e68['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']&&_0x4b0600['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalCommentNote']()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper'],'tabindex':-0x1,'aria-label':_0x565e68['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id'],'role':'listitem'},'children':[{'tag':'div','attributes':{'class':['ck-comment','ck-annotation',_0x565e68['if']('isEditMode','ck-comment--edit'),_0x565e68['if']('isSystemComment','ck-comment--info'),_0x565e68['to']('actionIndicator',_0x2733b6=>_0x2733b6?'ck-comment--'+_0x2733b6:'')],'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':_0x4b0600}]}]};}['_createEditButton'](){const _0x2e1c69=new ButtonView(this['locale']);return _0x2e1c69['label']=getTranslation$f(this['locale'],'Edit'),_0x2e1c69['icon']=IconPencil,_0x2e1c69['withText']=!0x0,_0x2e1c69['extendTemplate']({'attributes':{'class':'ck-comment--edit'}}),_0x2e1c69['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x366f2d=>!_0x366f2d),_0x2e1c69['bind']('isVisible')['to'](this['_model'],'isEditable'),_0x2e1c69['on']('execute',()=>this['switchToEditMode']()),_0x2e1c69;}['_createRemoveButton'](){const _0x5caabe=new ButtonView(this['locale']);return _0x5caabe['label']=getTranslation$f(this['locale'],'Remove'),_0x5caabe['icon']=IconRemoveComment,_0x5caabe['withText']=!0x0,_0x5caabe['extendTemplate']({'attributes':{'class':'ck-comment--remove'}}),_0x5caabe['bind']('isEnabled')['to'](this['_model'],'isReadOnly',_0x3e5a7a=>!_0x3e5a7a),_0x5caabe['bind']('isVisible')['to'](this['_model'],'isRemovable'),_0x5caabe['on']('execute',()=>{this['showConfirm'](getTranslation$f(this['locale'],'Delete\x20comment?'),this['element'])['then'](()=>{this['fire']('removeComment',this['_model']['id']);});}),_0x5caabe;}['_createDropdown'](){const _0x28914f=createDropdown(this['locale'],LateFocusDropdownButtonView),_0x931d34=_0x28914f['panelView']['children'],_0x2b4a63=new ListView(this['locale']),_0x10c8ce=_0x28914f['bindTemplate'];focusChildOnDropdownOpen(_0x28914f,()=>this['items']['find'](_0x390bdd=>_0x390bdd['isVisible'])),_0x28914f['extendTemplate']({'attributes':{'class':[_0x10c8ce['if']('isVisible','ck-hidden',_0x495a8e=>!_0x495a8e)]}});const _0x9f0954=(_0xc91978,_0x5a7310=-0x1)=>{const _0x400cb6=new ListItemView(this['locale']);_0x400cb6['children']['add'](_0xc91978);const _0x3128a5=_0x5a7310>-0x1?_0x5a7310:_0x2b4a63['items']['length'];_0x2b4a63['items']['add'](_0x400cb6,_0x3128a5);const _0x1e2ba3=Array['from'](this['items']);_0x28914f['unbind']('isEnabled','isVisible'),_0x28914f['bind']('isEnabled')['toMany'](_0x1e2ba3,'isEnabled',(..._0x39ddc6)=>_0x39ddc6['some'](_0x2635e4=>_0x2635e4)),_0x28914f['bind']('isVisible')['toMany'](_0x1e2ba3,'isVisible',(..._0x4f6607)=>_0x4f6607['some'](_0x32b33c=>_0x32b33c));};_0x28914f['panelPosition']='sw',_0x28914f['buttonView']['set']({'label':getTranslation$f(this['locale'],'Show\x20more\x20items'),'icon':IconThreeVerticalDots});for(const _0x36ffcc of this['items'])_0x9f0954(_0x36ffcc);return _0x931d34['add'](_0x2b4a63),_0x28914f['listenTo'](this['items'],'add',(_0x212401,_0xc7f132,_0x2c4425)=>{_0x9f0954(_0xc7f132,_0x2c4425);}),_0x28914f['listenTo'](this['items'],'remove',(_0x3dcfb9,_0x405e9a,_0x444f95)=>{_0x2b4a63['items']['remove'](_0x444f95);}),_0x28914f;}['_attachActions'](_0x201ba9,_0x1c189d){const _0x132976=_0x201ba9&&_0x201ba9['element'];_0x132976&&(this['listenTo'](_0x132976,'mouseenter',()=>this['actionIndicator']=_0x1c189d),this['listenTo'](_0x132976,'focus',()=>this['actionIndicator']=_0x1c189d),this['listenTo'](_0x132976,'mouseleave',()=>this['actionIndicator']=null),this['listenTo'](_0x132976,'blur',()=>this['actionIndicator']=null));}['_createCommentInputView'](){const _0x5411e6=super['_createCommentInputView']();return _0x5411e6['bind']('placeholder')['to'](this),_0x5411e6;}['render'](){super['render'](),this['_attachActions'](this['editButton'],'edit'),this['_attachActions'](this['removeButton'],'remove');}}function createMutationObserver(_0x41a655){const _0x48ec4d=throttle$1(_0x41a655,0x1e),_0x32accf=new MutationObserver(_0x59aeb4=>{for(const _0xeb0287 of _0x59aeb4)('attributes'==_0xeb0287['type']&&'class'==_0xeb0287['attributeName']||'childList'==_0xeb0287['type']||'characterData'==_0xeb0287['type'])&&_0x48ec4d();});return{'attach'(_0x43af01){_0x32accf['observe'](_0x43af01,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x32accf['disconnect'](),_0x48ec4d['cancel']();}};}class AnnotationView extends View{['focusTracker'];['id'];['keystrokes'];['content'];['mainView'];['_mutationObserver'];constructor(_0x280d44,_0x325570){super(_0x280d44),this['id']=uid(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['keystrokes']['set']('Esc',(_0x16f93b,_0x3ceb22)=>this['fire']('Esc',_0x3ceb22)),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']=createMutationObserver(()=>this['_updateHeight']()),this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this),this['content']['add'](_0x325570),this['mainView']=_0x325570;const _0x270352=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper','ck-rounded-corners',_0x270352['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 _0x542052=this['element']['clientHeight'];_0x542052&&(this['height']=_0x542052);}}let Annotation$1=class e extends/* #__PURE__ -- @preserve */
ObservableMixin(){['view'];['focusableElements'];['_type'];['_target'];constructor({view:_0x21a236,target:_0x5ad35f,type:_0x113351,isVisible:_0x87468a=!0x0}){super(),this['view']=_0x21a236,this['view']['element']||this['view']['render'](),this['_type']=_0x113351,this['_target']=_0x5ad35f,e['_assertCorrectTarget'](this['_getNormalizedTarget']()),this['focusableElements']=new Collection([this['view']['element']],{'idProperty':'_id'}),this['focusableElements']['on']('add',(_0x148af3,_0x58d7a5)=>{this['view']['focusTracker']['add'](_0x58d7a5);}),this['focusableElements']['on']('remove',(_0x48b560,_0x58b80c)=>{this['view']['focusTracker']['remove'](_0x58b80c);}),this['set']('isVisible',_0x87468a);}get['type'](){return'function'==typeof this['_type']?this['_type']():this['_type'];}get['innerView'](){return this['view']['mainView'];}get['target'](){const _0x31ca75=this['_getNormalizedTarget']();return e['_assertCorrectTarget'](_0x31ca75),_0x31ca75;}get['targetRect'](){const _0x1d5380=this['target'];if(null===_0x1d5380)return null;if(_0x1d5380 instanceof Rect)return _0x1d5380;const _0x1e21db=_0x1d5380['filter'](_0x1da0f3=>isDomElementVisible(_0x1da0f3));return 0x0===_0x1e21db['length']?null:new Rect(_0x1e21db[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this['view']['isActive'];}set['isActive'](_0x23cada){this['view']['isActive']=_0x23cada,this['view']['mainView']['isActive']=_0x23cada;}['updateTargetRect'](){this['view']['targetRect']=this['targetRect'];}['destroy'](){this['focusableElements']['stopListening'](),this['focusableElements']['clear'](),this['stopListening']();}['refreshVisibility'](){this['isVisible']=!!this['targetRect'];}static['_assertCorrectTarget'](_0x24b02e){if(!(null===_0x24b02e||_0x24b02e instanceof Rect||Array['isArray'](_0x24b02e)&&_0x24b02e['every'](_0x187a8a=>isElement$1(_0x187a8a))))throw new CKEditorError('annotation-invalid-target',null,{'target':_0x24b02e});}['_getNormalizedTarget'](){const _0x3615f9='function'==typeof this['_target']?this['_target']():this['_target'];return isElement$1(_0x3615f9)?[_0x3615f9]:_0x3615f9;}};function isElement$1(_0x9793cc){return null!==_0x9793cc&&'object'==typeof _0x9793cc&&'nodeType'in _0x9793cc&&0x1===_0x9793cc['nodeType'];}function isDomElementVisible(_0x383925){if(_0x383925['offsetParent'])return!0x0;return!!_0x383925['getClientRects']()['item'](0x0);}class AnnotationCollection extends Collection{['_innerViewToAnnotation'];['_viewToAnnotation'];['_focusTracker'];constructor(_0x543a55=[]){super(),this['_innerViewToAnnotation']=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new FocusTracker(),this['_focusTracker']['on']('change:isFocused',(_0x22cf36,_0x3a8752,_0x5a3051)=>{_0x5a3051||this['fire']('blur');});for(const _0x49fc8b of _0x543a55)this['add'](_0x49fc8b);}get['isFocused'](){return this['_focusTracker']['isFocused'];}['add'](_0x2dbc8c){if(this['has'](_0x2dbc8c))throw new CKEditorError('annotationcollection-duplicated-item',null);this['_innerViewToAnnotation']['set'](_0x2dbc8c['innerView'],_0x2dbc8c),this['_viewToAnnotation']['set'](_0x2dbc8c['view'],_0x2dbc8c);for(const _0x28fb98 of _0x2dbc8c['focusableElements'])this['_focusTracker']['add'](_0x28fb98);this['listenTo'](_0x2dbc8c['focusableElements'],'add',(_0x795080,_0xc02e97)=>{this['_focusTracker']['add'](_0xc02e97);}),this['listenTo'](_0x2dbc8c['focusableElements'],'remove',(_0x4cd45d,_0x18611a)=>{this['_focusTracker']['remove'](_0x18611a);}),this['listenTo'](_0x2dbc8c['view']['focusTracker'],'change:isFocused',(_0x3b15f7,_0x4626f3,_0x447ae7)=>{_0x447ae7&&this['fire']('focus',_0x2dbc8c);}),_0x2dbc8c['updateTargetRect']();const _0x487510=this['_getOrderInContent'](_0x2dbc8c['view']['targetRect']);return super['add'](_0x2dbc8c,_0x487510);}['remove'](_0x1795c9){if(!this['has'](_0x1795c9))throw new CKEditorError('annotationcollection-not-existing-item',null);this['stopListening'](_0x1795c9['view']['focusTracker']),this['stopListening'](_0x1795c9['focusableElements']);for(const _0x1b2bd8 of _0x1795c9['focusableElements'])this['_focusTracker']['remove'](_0x1b2bd8);return this['_viewToAnnotation']['delete'](_0x1795c9['view']),this['_innerViewToAnnotation']['delete'](_0x1795c9['innerView']),super['remove'](_0x1795c9);}['getByInnerView'](_0x3a8103){return this['_innerViewToAnnotation']['get'](_0x3a8103);}['getByView'](_0x31717d){return this['_viewToAnnotation']['get'](_0x31717d);}['destroy'](){super['clear'](),this['stopListening'](),this['_innerViewToAnnotation']['clear'](),this['_viewToAnnotation']['clear'](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x500e77 of this)_0x500e77['updateTargetRect']();this['_sort']();}['_sort'](){const _0x535bcd=Array['from'](this)['sort']((_0x145f57,_0x5934b7)=>elementOffsetComparator(_0x145f57['view']['targetRect'],_0x5934b7['view']['targetRect']));for(let _0x197add=_0x535bcd['length']-0x1;_0x197add>0x0;_0x197add--){const _0x303e58=_0x535bcd[_0x197add];_0x197add!==this['getIndex'](_0x303e58)&&(this['remove'](_0x303e58),this['add'](_0x303e58));}}['_getOrderInContent'](_0x379161){let _0x53c15b=0x0;if(!_0x379161)return this['length'];for(const _0x319b65 of this){const _0x2ddd7e=_0x319b65['view']['targetRect'];if(_0x2ddd7e){if(elementOffsetComparator(_0x379161,_0x2ddd7e)<0x0)return _0x53c15b;_0x53c15b++;}}return _0x53c15b;}}function bindAnnotationCollections({source:_0x36e43f,target:_0x38a58a,filter:_0x33ba75}){for(const _0x5e2d20 of _0x36e43f)_0x33ba75(_0x5e2d20)&&_0x38a58a['add'](_0x5e2d20);_0x38a58a['listenTo'](_0x36e43f,'add',(_0x30e9bb,_0x244fdb)=>{_0x33ba75(_0x244fdb)&&_0x38a58a['add'](_0x244fdb);}),_0x38a58a['listenTo'](_0x36e43f,'remove',(_0x28cc46,_0x4b8040)=>{_0x38a58a['has'](_0x4b8040)&&_0x38a58a['remove'](_0x4b8040);});}function elementOffsetComparator(_0x20a7f8,_0x3ab729){if(null===_0x20a7f8&&null===_0x3ab729)return 0x0;if(null===_0x20a7f8)return-0x1;if(null===_0x3ab729)return 0x1;const _0x19af3f=_0x20a7f8['top']-_0x3ab729['top'];return 0x0==_0x19af3f?_0x20a7f8['left']-_0x3ab729['left']:_0x19af3f;}class Annotations extends ContextPlugin{['collection'];['_visibleAnnotations'];static get['pluginName'](){return'Annotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b2ef5){if(super(_0x2b2ef5),this['collection']=new AnnotationCollection(),this['_visibleAnnotations']=new AnnotationCollection(),this['set']('activeAnnotations',new Set()),this['_bindAnnotationsToVisibleAnnotations'](),_0x2b2ef5 instanceof Editor){const _0x497a36=_0x2b2ef5['locale'];_0x2b2ef5['accessibility']['addKeystrokeInfoGroup']({'id':'annotations','label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_GROUP'),'keystrokes':[{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_MOVE_TO'),'keystroke':'Ctrl+Shift+E'},{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_EXIT'),'keystroke':'Esc'},{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_ENTER'),'keystroke':'Enter'},{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_BROWSE_GROUPS'),'keystroke':[['Tab'],['Shift+Tab']]},{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_SUBMIT_COMMENT'),'keystroke':['Ctrl+Enter']},{'label':getTranslation$f(_0x497a36,'ACCESSIBILITY_HELP_ANNOTATIONS_NAVIGATE_THREADS'),'keystroke':[['Arrowup'],['Arrowdown']]}]});}this['_setupEnterAnnotationKeystroke'](),this['_setupEscapeAnnotationHandling']();}['add'](_0x38c052){this['collection']['add'](_0x38c052);}['remove'](_0x46cd14){this['collection']['remove'](_0x46cd14),_0x46cd14['destroy']();}['refreshVisibility'](){for(const _0x5b4b4b of this['collection'])_0x5b4b4b['refreshVisibility']();}['refreshPositioning'](){this['_visibleAnnotations']['refreshPositioning']();}['getByInnerView'](_0x2964a9){return this['collection']['getByInnerView'](_0x2964a9);}['deactivateAll'](){this['fire']('_deactivateAllAnnotations');}['destroy'](){for(const _0x16ebbe of this['collection'])_0x16ebbe['destroy']();this['_visibleAnnotations']['destroy'](),this['collection']['destroy'](),super['destroy']();}['activate'](_0x16cfbe){this['fire']('_activateAnnotation',_0x16cfbe);}['createAnnotation'](_0x1e739c){return new Annotation$1(_0x1e739c);}['createAnnotationView'](_0x433182,_0x21c6e9){return new AnnotationView(_0x433182,_0x21c6e9);}['_addActiveAnnotation'](_0x3ccde5){const _0x1661cb=new Set(this['activeAnnotations']);_0x1661cb['add'](_0x3ccde5),this['activeAnnotations']=_0x1661cb;}['_removeActiveAnnotation'](_0x1b820c){const _0x4468dd=new Set(this['activeAnnotations']);_0x4468dd['delete'](_0x1b820c),this['activeAnnotations']=_0x4468dd;}['_bindAnnotationsToVisibleAnnotations'](){const _0x39156b=this['collection'],_0x1c85c0=this['_visibleAnnotations'];function _0x32368d(_0x3f48ee){const _0x26a27b=_0x3f48ee['source'];_0x26a27b['isVisible']&&!_0x1c85c0['has'](_0x26a27b)?_0x1c85c0['add'](_0x26a27b):!_0x26a27b['isVisible']&&_0x1c85c0['has'](_0x26a27b)&&_0x1c85c0['remove'](_0x26a27b),_0x26a27b['view']['focusTracker']['remove'](_0x26a27b['view']['element']),_0x26a27b['view']['focusTracker']['add'](_0x26a27b['view']['element']);}this['listenTo'](_0x39156b,'add',(_0x6c1f47,_0x35c4fb)=>{_0x35c4fb['isVisible']&&_0x1c85c0['add'](_0x35c4fb),this['listenTo'](_0x35c4fb,'change:isVisible',_0x32368d);}),this['listenTo'](_0x39156b,'remove',(_0x393f58,_0x5793f7)=>{_0x1c85c0['has'](_0x5793f7)&&_0x1c85c0['remove'](_0x5793f7),this['stopListening'](_0x5793f7,'change:isVisible',_0x32368d);});}['_setupEnterAnnotationKeystroke'](){const _0x372b71=_0x401e98=>{_0x401e98['on']('ready',()=>{_0x401e98['keystrokes']['set'](FOCUS_ANNOTATION_KEYSTROKE,(_0x1f5eb4,_0x4e21c4)=>{const _0x208163=first(this['activeAnnotations']['values']());_0x208163&&(_0x208163['view']['focus'](),_0x4e21c4());});});};this['context']instanceof Editor?_0x372b71(this['context']):this['context']['editors']&&this['context']['editors']['on']('add',(_0xefac8e,_0x381c2e)=>{_0x372b71(_0x381c2e);});}['_setupEscapeAnnotationHandling'](){const _0x2ea470=_0x331379=>{const _0x858ba3=_0x331379['source'],_0x3bd3c3=[];let _0x41d76c;if(Array['isArray'](_0x858ba3['target'])){_0x41d76c=_0x858ba3['target'][0x0],this['context']instanceof Editor?_0x3bd3c3['push'](this['context']):this['context']['editors']&&_0x3bd3c3['push'](...this['context']['editors']);for(const _0x5bde82 of _0x3bd3c3)for(const _0x36ea0e of _0x5bde82['editing']['view']['domRoots']['values']())if(_0x36ea0e['contains'](_0x41d76c))return void _0x5bde82['editing']['view']['focus']();_0x41d76c['focus']();}};this['listenTo'](this['collection'],'add',(_0x32a34b,_0x3802a8)=>{this['listenTo'](_0x3802a8,'escape',_0x2ea470,{'priority':'low'});}),this['listenTo'](this['collection'],'remove',(_0x574536,_0x1b646f)=>{this['stopListening'](_0x1b646f,'escape',_0x2ea470);});}}const noChannel=Symbol('noChannel'),defaultPermissions={'admin':!0x0,'modifyAll':!0x1,'write':!0x0,'resolve':!0x0};class CommentsRepository extends ContextPlugin{['_threads'];['_threadToController'];['_viewToController'];static get['requires'](){return[Annotations,PendingActions,Users];}static get['pluginName'](){return'CommentsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2abc4c){super(_0x2abc4c),this['_threads']=new Map(),this['_threadToController']=new Map(),this['_viewToController']=new Map(),this['set']('_readOnlyChannels',new Set()),this['set']('_permissions',new Map());const _0x489df7=this['context']['config'];_0x489df7['define']('comments.maxCommentsWhenCollapsed',0x2),_0x489df7['define']('comments.maxThreadTotalWeight',0x1f4),_0x489df7['define']('comments.maxCommentCharsWhenCollapsed',0x8c),_0x489df7['define']('comments.CommentThreadView',CommentThreadView),_0x489df7['define']('comments.CommentView',CommentView),_0x489df7['get']('comments.editorConfig')||console['warn']('Missing\x20comments\x20editor\x20configuration\x20(`comments.editorConfig`).\x20Default\x20configuration\x20will\x20be\x20used\x20instead.');}['init'](){const _0x4b3b12=this['context']['plugins']['get'](Annotations);this['set']('activeCommentThread',null),this['on']('addCommentThread',(_0x231458,_0x22a045)=>this['_addCommentThread'](_0x22a045)),this['on']('submitCommentThread',(_0x3341e4,_0x54ca88)=>this['_submitCommentThread'](_0x54ca88)),this['on']('resolveCommentThread',(_0x1e85bb,_0x42e36f)=>this['_resolveCommentThread'](_0x42e36f)),this['on']('resolveCommentThread',(_0x49c57f,_0x5c3f8b)=>this['_updateActiveAnnotation'](_0x5c3f8b),{'priority':'lowest'}),this['on']('reopenCommentThread',(_0x4e1bb8,_0x3ac5af)=>this['_reopenCommentThread'](_0x3ac5af)),this['on']('reopenCommentThread',(_0x46b3a1,_0x154aed)=>this['_updateActiveAnnotation'](_0x154aed),{'priority':'lowest'}),this['on']('removeCommentThread',(_0x3cb367,_0x28bed5)=>this['_removeCommentThread'](_0x28bed5)),this['on']('updateCommentThread',(_0x17ec23,_0xa0d12b)=>this['_updateCommentThread'](_0xa0d12b)),this['on']('updateCommentThread',(_0x560a29,_0x1fc57e)=>this['_updateActiveAnnotation'](_0x1fc57e),{'priority':'lowest'}),this['on']('addComment',(_0x334ba0,_0x5c7d11)=>this['_addComment'](_0x5c7d11)),this['on']('updateComment',(_0x1653ca,_0x3c4796)=>this['_updateComment'](_0x3c4796)),this['on']('removeComment',(_0x5a7bfb,_0x7a2b1c)=>this['_removeComment'](_0x7a2b1c)),this['on']('addComment',(_0x8b8ff2,{threadId:_0x41c52e,isFromAdapter:_0x453b73})=>{if(_0x453b73)return;const _0x5e50e7=this['getCommentThread'](_0x41c52e),_0x46ea45=_0x5e50e7&&this['_threadToController']['get'](_0x5e50e7);_0x46ea45&&_0x46ea45['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['listenTo'](_0x4b3b12,'change:activeAnnotations',(_0x2bc35a,_0x4ba69d,_0x45cfbe)=>{const _0x37436d=Array['from'](_0x45cfbe)['map'](_0x2cacd8=>this['_viewToController']['get'](_0x2cacd8['innerView']))['filter'](Boolean)[0x0];this['activeCommentThread']=_0x37436d?_0x37436d['model']:null;});}set['adapter'](_0x4f2ffa){if(this['_adapter'])throw new CKEditorError('commentsrepository-adapter-already-set');this['_adapter']=_0x4f2ffa;}get['adapter'](){return this['_adapter'];}['addCommentThread']({channelId:_0x4b4447=noChannel,threadId:_0x10652c=uid(),comments:_0x5c64cc=[],unlinkedAt:_0x4c6f3a=null,resolvedAt:_0xc393a4=null,resolvedBy:_0x2b939=null,target:_0x3be0c1=null,context:_0x5ddd39=null,attributes:_0x22ba9f={},isResolvable:_0x3acfdb=!0x0,isSubmitted:_0x51ce57=!0x1,isFromAdapter:_0x3d0dda=!0x1}={}){return this['fire'](toEventName('addCommentThread',_0x4b4447),{'channelId':_0x4b4447,'threadId':_0x10652c,'comments':_0x5c64cc,'unlinkedAt':_0x4c6f3a,'resolvedAt':_0xc393a4,'resolvedBy':_0x2b939,'target':_0x3be0c1,'context':_0x5ddd39,'attributes':_0x22ba9f,'isFromAdapter':_0x3d0dda,'isResolvable':_0x3acfdb,'isSubmitted':_0x51ce57}),this['getCommentThread'](_0x10652c);}['openNewCommentThread']({channelId:_0xb520f0=noChannel,threadId:_0x43a83d=uid(),target:_0x49fd2b,context:_0x445dc3=null,isResolvable:_0x56cffa=!0x0}){if(this['_readOnlyChannels']['has'](_0xb520f0)||this['_readOnlyChannels']['has'](void 0x0))return null;if(!_0x49fd2b)throw new CKEditorError('commentsrepository-missing-target');const _0x51ac6d=this['addCommentThread']({'channelId':_0xb520f0,'threadId':_0x43a83d,'target':_0x49fd2b,'context':_0x445dc3,'isResolvable':_0x56cffa});if(!_0x51ac6d)return null;const _0x2e85b9=this['_threadToController']['get'](_0x51ac6d),_0x194dab=_0x2e85b9['view']['commentThreadInputView']['commentInputView'],_0x1c2064=this['context']['plugins']['get'](Annotations),_0x1c86e9=_0x1c2064['getByInnerView'](_0x2e85b9['view']);return _0x1c2064['activate'](_0x1c86e9),_0x194dab['once']('editorReady',()=>_0x194dab['focus']()),_0x51ac6d;}['hasCommentThread'](_0x4ba79f){if('string'!=typeof _0x4ba79f)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['has'](_0x4ba79f);}['updateCommentThread']({channelId:_0x2f8106=noChannel,threadId:_0x38e140,context:_0xf9c7c8,unlinkedAt:_0x19b41a,attributes:_0x5e1af8,isFromAdapter:_0x345956=!0x1}){return this['fire'](toEventName('updateCommentThread',_0x2f8106),{'channelId':_0x2f8106,'threadId':_0x38e140,'context':_0xf9c7c8,'unlinkedAt':_0x19b41a,'attributes':_0x5e1af8,'isFromAdapter':_0x345956}),this['getCommentThread'](_0x38e140);}['getCommentThread'](_0x395829){if('string'!=typeof _0x395829)throw new CKEditorError('commentsrepository-invalid-comment-thread-id');return this['_threads']['get'](_0x395829);}['fetchCommentThread']({channelId:_0x43fad4,threadId:_0x5a7762}={}){const _0x2ceb59=this['getCommentThread'](_0x5a7762);if(_0x2ceb59)return Promise['resolve'](_0x2ceb59);if(!this['adapter'])return Promise['resolve'](void 0x0);if('function'!=typeof this['adapter']['getCommentThread'])throw new CKEditorError('commentsrepository-missing-thread-and-adapter-method',this['context']);return this['adapter']['getCommentThread']({'channelId':_0x43fad4,'threadId':_0x5a7762})['then'](_0x45a9be=>this['hasCommentThread'](_0x5a7762)?this['getCommentThread'](_0x5a7762):_0x45a9be?this['addCommentThread'](Object['assign']({'isFromAdapter':!0x0,'channelId':_0x43fad4},_0x45a9be)):void 0x0)['catch'](_0x3d9b0c=>{throw console['error'](_0x3d9b0c),new CKEditorError('commentsrepository-fetch-comment-thread',this['context']);});}['getCommentThreads']({channelId:_0x309bd3,skipNotAttached:_0x3b0130=!0x1,skipEmpty:_0x5debe9=!0x1,toJSON:_0x2721c2=!0x1}={}){const _0x518c79=[];for(const _0x51ce16 of this['_threads']['values']())_0x309bd3&&_0x51ce16['channelId']!==_0x309bd3||_0x3b0130&&!_0x51ce16['isAttached']||_0x5debe9&&0x0===_0x51ce16['length']||_0x518c79['push'](_0x51ce16);return _0x2721c2?_0x518c79['map'](_0x32b1f7=>_0x32b1f7['toJSON']()):_0x518c79;}['getAnnotationForCommentThread'](_0x3fb32a){const _0x1a5fb1=this['_threadToController']['get'](_0x3fb32a);if(!_0x1a5fb1)return null;return this['context']['plugins']['get'](Annotations)['getByInnerView'](_0x1a5fb1['view'])||null;}['getCommentThreadForAnnotation'](_0x46f856){const _0x2a1166=this['_viewToController']['get'](_0x46f856['innerView']);return _0x2a1166?_0x2a1166['model']:null;}['setActiveCommentThread'](_0x50186e){const _0x1cab20=this['context']['plugins']['get'](Annotations);if(!_0x50186e)return void(this['activeCommentThread']&&_0x1cab20['deactivateAll']());const _0x4fe9d2=this['getCommentThread'](_0x50186e);if(!_0x4fe9d2)throw new CKEditorError('commentsrepository-active-missing-comment-thread',null,{'threadId':_0x50186e});if(!this['_threadToController']['has'](_0x4fe9d2))throw new CKEditorError('commentsrepository-active-not-attached',null,{'threadId':_0x50186e});const _0x5e526b=_0x1cab20['getByInnerView'](this['_threadToController']['get'](_0x4fe9d2)['view']);_0x1cab20['activate'](_0x5e526b);}['switchReadOnly'](_0x177463,_0x542ecb){_0x177463?this['_readOnlyChannels']['add'](_0x542ecb):this['_readOnlyChannels']['delete'](_0x542ecb),this['fire']('change:_readOnlyChannels','_readOnlyChannels',this['_readOnlyChannels'],this['_readOnlyChannels']);}['isReadOnly'](_0x19b226){return this['_readOnlyChannels']['has'](_0x19b226)||this['_readOnlyChannels']['has'](void 0x0);}['createCommentThreadController'](_0x630f69,_0x3770ba){return new CommentThreadController(_0x630f69,_0x3770ba);}['setPermissions'](_0x3823f4,_0x59abae=noChannel){this['_permissions']['set'](_0x59abae,_0x3823f4),this['fire']('change:_permissions','_permissions',this['_permissions'],this['_permissions']);}['getPermissions'](_0x4db0c7=noChannel){return this['_permissions']['has'](_0x4db0c7)?this['_permissions']['get'](_0x4db0c7):defaultPermissions;}['_addCommentThread']({channelId:_0x388886,threadId:_0x4bcb62,comments:_0x596fd4,unlinkedAt:_0x350f6e,resolvedAt:_0xfcd9ca,resolvedBy:_0x1778ed,target:_0x59b0e4,context:_0x8b8a6a,attributes:_0x3451b2,isFromAdapter:_0x1741c1,isResolvable:_0x1cf8cc,isSubmitted:_0x32b403}){if('string'!=typeof _0x4bcb62)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x4bcb62});if(this['hasCommentThread'](_0x4bcb62))throw new CKEditorError('commentsrepository-duplicated-comment-thread-id',null,{'threadId':_0x4bcb62});const _0x377381=new CommentThread(this,{'channelId':_0x388886,'id':_0x4bcb62,'context':_0x8b8a6a,'attributes':_0x3451b2,'unlinkedAt':_0x350f6e,'resolvedAt':_0xfcd9ca,'resolvedBy':_0x1778ed?this['context']['plugins']['get'](Users)['getUser'](_0x1778ed):null,'isResolvable':_0x1cf8cc,'isSubmitted':_0x32b403||_0x1741c1});this['_threads']['set'](_0x4bcb62,_0x377381);for(const _0x3a7293 of _0x596fd4)_0x377381['_add'](this['_createNewComment']({'threadId':_0x4bcb62,..._0x3a7293}));return _0x59b0e4&&_0x377381['attachTo'](_0x59b0e4),_0x1741c1||!_0x377381['length']?Promise['resolve']():this['_submitCommentThread']({'channelId':_0x388886,'threadId':_0x4bcb62});}['_submitCommentThread']({channelId:_0x349cbe,threadId:_0x2156a4}){if(!this['hasCommentThread'](_0x2156a4))throw new CKEditorError('commentsrepository-missing-comment-thread',this);const _0x4a9367=this['getCommentThread'](_0x2156a4);if(_0x4a9367['_isSubmitted']=!0x0,!this['adapter']||'function'!=typeof this['adapter']['addCommentThread'])return Promise['resolve']();const {id:_0x5ae64f,comments:_0x32592c,resolvedAt:_0x1c1cbd,resolvedBy:_0x5dad5f,context:_0x5052bd,attributes:_0x32ab4c}=_0x4a9367,_0x4a4d5a=this['context']['plugins']['get']('PendingActions'),_0x6430b5=_0x4a4d5a['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['addCommentThread']({'channelId':_0x349cbe,'threadId':_0x5ae64f,'comments':_0x32592c['map'](_0x43c6da=>_0x43c6da['toJSON']()),'resolvedAt':_0x1c1cbd,'resolvedBy':_0x5dad5f?_0x5dad5f['id']:_0x5dad5f,'context':_0x5052bd,'attributes':_0x32ab4c})['then'](({comments:_0x42c31f})=>{_0x4a4d5a['remove'](_0x6430b5);for(const _0x1b2c58 of _0x42c31f)this['_updateComment']({'channelId':_0x349cbe,'threadId':_0x2156a4,'commentId':_0x1b2c58['commentId'],'createdAt':_0x1b2c58['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x345fc2=>{throw console['error'](_0x345fc2),new CKEditorError('commentsrepository-add-comment-thread-internal-error',this);});}['_attachCommentThread']({threadId:_0xb5e362,target:_0x44b6b8}){const _0x3f867b=this['getCommentThread'](_0xb5e362);if(!_0x3f867b)throw new CKEditorError('commentsrepository-attach-missing-comment-thread',this);const _0x5bfbb5=this['context']['plugins']['get']('PendingActions'),_0x3b8e50=this['context']['plugins']['get'](Annotations),_0x367b47=this['_createCommentThreadView'](_0x3f867b),_0x59fe25=new CommentThreadController(_0x3f867b,_0x367b47);let _0x5c0dd5=null;_0x367b47['on']('change:isDirty',(_0x2535d0,_0x1958b3,_0x53534d)=>{_0x53534d?_0x5c0dd5=_0x5bfbb5['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD')):_0x5c0dd5&&(_0x5bfbb5['remove'](_0x5c0dd5),_0x5c0dd5=null);}),this['_threadToController']['set'](_0x3f867b,_0x59fe25),this['_viewToController']['set'](_0x367b47,_0x59fe25);const _0x41ad54=new AnnotationView(this['context']['locale'],_0x367b47);_0x41ad54['bind']('length')['to'](_0x367b47),_0x41ad54['bind']('isDirty')['to'](_0x367b47,'isDirty',_0x367b47,'length',(_0x231e0d,_0xdfbb1b)=>_0x231e0d||!_0xdfbb1b),_0x41ad54['bind']('isActive')['to'](_0x367b47),_0x41ad54['type']='comment';const _0x507eee=new Annotation$1({'view':_0x41ad54,'target':_0x44b6b8,'type':'comment','isVisible':!_0x3f867b['archivedAt']&&!!('function'==typeof _0x44b6b8?_0x44b6b8():_0x44b6b8)});return _0x367b47['on']('escape',()=>{_0x507eee['fire']('escape');}),this['_bindAnnotationToEditors'](_0x367b47,_0x507eee),_0x3b8e50['add'](_0x507eee),_0x507eee;}['_bindAnnotationToEditors'](_0x2e694b,_0x3b471c){this['listenTo'](_0x2e694b,'editorReady',(_0x52a5f,_0x3a94e6)=>{const _0x50d9d1=_0x3a94e6['ui']['view']['body']['bodyCollectionContainer'];_0x3b471c['focusableElements']['add'](_0x50d9d1),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['add'](_0x50d9d1);},{'priority':'highest'}),this['listenTo'](_0x2e694b,'editorDestroyed',(_0x4d949a,_0x3ab042)=>{const _0x528955=_0x3ab042['ui']['view']['body']['bodyCollectionContainer'];_0x3b471c['focusableElements']['has'](_0x528955)&&_0x3b471c['focusableElements']['remove'](_0x528955),this['context']instanceof Editor&&this['context']['ui']['focusTracker']['remove'](_0x528955);});}['_unbindEditors'](_0x5d9005){this['stopListening'](_0x5d9005,'editorReady'),this['stopListening'](_0x5d9005,'editorDestroyed');}['_createCommentThreadView'](_0x54c4c5){const _0x56952a=this['context']['plugins']['get'](Users),{config:_0x56aa73,locale:_0x1a7773}=this['context'],_0x1d2458=getDateTimeFormatter(_0x56aa73['get']('locale'),_0x1a7773);return new(0x0,(_0x56aa73['get']('comments'))['CommentThreadView'])(_0x1a7773,_0x54c4c5,_0x56952a['me'],{'editorConfig':{..._0x56aa73['get']('comments.editorConfig'),'licenseKey':this['context']['config']['get']('licenseKey')},'copyMarkers':_0x56aa73['get']('comments.copyMarkers'),'maxCommentsWhenCollapsed':_0x56aa73['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x56aa73['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x56aa73['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d2458,'CommentView':_0x56aa73['get']('comments')['CommentView']});}['_resolveCommentThread']({threadId:_0x265ca8,channelId:_0x551e91,resolvedAt:_0x129293,resolvedBy:_0x33c32d,isFromAdapter:_0x3c80c6}){if(!this['hasCommentThread'](_0x265ca8))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x265ca8});const _0x19ed49=this['getCommentThread'](_0x265ca8);if(_0x19ed49['isResolved'])throw new CKEditorError('commentsrepository-resolved-comment-thread',null,{'threadId':_0x265ca8});const _0x36aeb6=this['context']['plugins']['get'](Users);if(_0x19ed49['resolvedBy']=_0x36aeb6['getUser'](_0x33c32d),_0x19ed49['resolvedAt']=_0x129293,_0x3c80c6||!this['adapter']||'function'!=typeof this['adapter']['resolveCommentThread'])return Promise['resolve']();const _0x66f33=this['context']['plugins']['get']('PendingActions'),_0x53d8e5=_0x66f33['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['resolveCommentThread']({'channelId':_0x551e91,'threadId':_0x265ca8})['then'](({resolvedAt:_0x3b4c7f,resolvedBy:_0xe0cd9e})=>{_0x66f33['remove'](_0x53d8e5),_0x19ed49['resolvedBy']['id']!==_0xe0cd9e&&(_0x19ed49['resolvedBy']=_0x36aeb6['getUser'](_0xe0cd9e)),_0x19ed49['resolvedAt']=_0x3b4c7f;})['catch'](_0x432f54=>{throw console['error'](_0x432f54),new CKEditorError('commentsrepository-resolve-comment-thread-internal-error',this);});}['_reopenCommentThread']({threadId:_0x11df26,channelId:_0x5c65c3,isFromAdapter:_0x54ce82}){if(!this['hasCommentThread'](_0x11df26))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x11df26});const _0x42502d=this['getCommentThread'](_0x11df26);if(!_0x42502d['isResolved'])throw new CKEditorError('commentsrepository-reopen-comment-thread',null,{'threadId':_0x11df26});if(_0x42502d['resolvedBy']=null,_0x42502d['resolvedAt']=null,_0x54ce82||!this['adapter']||'function'!=typeof this['adapter']['reopenCommentThread'])return Promise['resolve']();const _0x55f7e5=this['context']['plugins']['get']('PendingActions'),_0x1a6de5=_0x55f7e5['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['reopenCommentThread']({'channelId':_0x5c65c3,'threadId':_0x11df26})['then'](()=>_0x55f7e5['remove'](_0x1a6de5))['catch'](_0x52676b=>{throw console['error'](_0x52676b),new CKEditorError('commentsrepository-reopen-comment-thread-internal-error',this);});}['_removeCommentThread']({threadId:_0x1f5133,isFromAdapter:_0x40b2e4}){const _0x2d365c=this['getCommentThread'](_0x1f5133);if(!_0x2d365c)throw new CKEditorError('commentsrepository-remove-missing-comment-thread',this);if(this['_detachCommentThread'](_0x1f5133),this['_threads']['delete'](_0x1f5133),!_0x2d365c['isSubmitted']||_0x40b2e4||!this['adapter']||'function'!=typeof this['adapter']['removeCommentThread'])return Promise['resolve']();const _0x2db7f7=this['context']['plugins']['get']('PendingActions'),{channelId:_0x1dfadd}=_0x2d365c,_0x45d85a=_0x2db7f7['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeCommentThread']({'channelId':_0x1dfadd,'threadId':_0x1f5133})['then'](()=>_0x2db7f7['remove'](_0x45d85a))['catch'](_0x30c7c5=>{throw console['error'](_0x30c7c5),new CKEditorError('commentsrepository-remove-comment-thread-internal-error',this);});}['_updateCommentThread']({threadId:_0x3f3ecb,unlinkedAt:_0xb9c33e,context:_0x4cf473,attributes:_0x39d590,isFromAdapter:_0x2e2cd8}){if('string'!=typeof _0x3f3ecb)throw new CKEditorError('commentsrepository-invalid-comment-thread-id',null,{'threadId':_0x3f3ecb});if(!this['hasCommentThread'](_0x3f3ecb))throw new CKEditorError('commentsrepository-missing-comment-thread',null,{'threadId':_0x3f3ecb});const _0x1bd500=this['getCommentThread'](_0x3f3ecb);let _0x522126=!0x1;if(void 0x0!==_0x4cf473&&_0x1bd500['context']!==_0x4cf473&&(_0x1bd500['context']=_0x4cf473,_0x522126=!0x0),void 0x0!==_0xb9c33e&&_0x1bd500['unlinkedAt']!==_0xb9c33e&&(_0x1bd500['unlinkedAt']=_0xb9c33e,_0x522126=!0x0),_0x39d590&&!isEqual(_0x39d590,_0x1bd500['attributes'])&&(_0x1bd500['attributes']=_0x39d590,_0x522126=!0x0),!_0x522126)return Promise['resolve']();if(!_0x1bd500['isSubmitted']||_0x2e2cd8||!this['adapter']||'function'!=typeof this['adapter']['updateCommentThread'])return Promise['resolve']();const _0x4bfb77=this['context']['plugins']['get']('PendingActions'),{channelId:_0x41afc7}=_0x1bd500,_0x4a5ffb=_0x4bfb77['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateCommentThread']({'channelId':_0x41afc7,'threadId':_0x3f3ecb,'context':_0x4cf473,'unlinkedAt':_0xb9c33e,'attributes':_0x39d590})['then'](()=>_0x4bfb77['remove'](_0x4a5ffb))['catch'](_0x112cd9=>{throw console['error'](_0x112cd9),new CKEditorError('commentsrepository-update-comment-thread-internal-error',this);});}['_detachCommentThread'](_0x33a12b){const _0x142c6e=this['context']['plugins']['get'](Annotations),_0x2656ef=this['getCommentThread'](_0x33a12b);if(_0x2656ef['_isAttached']=!0x1,this['_threadToController']['has'](_0x2656ef)){const _0x2ab45f=this['_threadToController']['get'](_0x2656ef),_0x153690=_0x2ab45f['view'],_0x56e3f9=_0x142c6e['getByInnerView'](_0x153690);this['_threadToController']['delete'](_0x2656ef),this['_viewToController']['delete'](_0x153690),_0x56e3f9&&_0x142c6e['remove'](_0x56e3f9),_0x2ab45f['destroy'](),_0x153690['destroy']()['then'](()=>{this['_unbindEditors'](_0x153690);});}}['_updateActiveAnnotation']({threadId:_0x2343c7,resolvedAt:_0x447d3b,unlinkedAt:_0x460e3c}){const _0x3e6ba8=!!_0x447d3b,_0x1d5c1d=this['context']['plugins']['get'](Annotations),_0x1254cc=this['getCommentThread'](_0x2343c7);if(this['_threadToController']['has'](_0x1254cc)){const _0x49e538=this['_threadToController']['get'](_0x1254cc)['view'],_0x29543e=_0x1d5c1d['getByInnerView'](_0x49e538);_0x29543e&&(_0x3e6ba8&&_0x1d5c1d['_removeActiveAnnotation'](_0x29543e),_0x460e3c?_0x29543e['isVisible']=!0x1:_0x29543e['refreshVisibility']());}}['_getExternalAuthor'](_0x43c23e){const _0x3c49ba=this['context']['plugins']['get'](Users),_0x5c5be1=hashObject('external:'+_0x43c23e),_0x52bc65=_0x3c49ba['getUser'](_0x5c5be1);return _0x52bc65||_0x3c49ba['addUser']({'id':_0x5c5be1,'name':_0x43c23e});}['_createNewComment']({threadId:_0x1fa7f9,commentId:_0x503c82=uid(),content:_0x54252c,authorId:_0x3fa81e,createdAt:_0x3623ed,attributes:_0x295e5e}){if('string'!=typeof _0x503c82)throw new CKEditorError('commentsrepository-invalid-commentid');if('string'!=typeof _0x3fa81e)throw new CKEditorError('commentsrepository-invalid-comment-authorid');if('string'!=typeof _0x54252c||!_0x54252c['trim']())throw new CKEditorError('commentsrepository-invalid-comment-content');const _0x135e3f=this['context']['plugins']['get'](Users)['getUser'](_0x3fa81e);if(!_0x135e3f)throw new CKEditorError('commentsrepository-add-comment-user-not-exists',null,{'authorId':_0x3fa81e});let _0x5f1633=null,_0x5b5b9b=_0x3623ed;return _0x295e5e?.['@external']&&(_0x5f1633=this['_getExternalAuthor'](_0x295e5e['@external']['authorName']),_0x5b5b9b=new Date(_0x295e5e['@external']['createdAt'])),new Comment(this,{'threadId':_0x1fa7f9,'id':_0x503c82,'author':_0x5f1633||_0x135e3f,'creator':_0x135e3f,'content':_0x54252c,'createdAt':_0x3623ed,'authoredAt':_0x5b5b9b,'attributes':_0x295e5e});}['_addComment'](_0x14d0b7){let {threadId:_0x517adf,content:_0x3c3296,attributes:_0x29fbf8,isFromAdapter:_0x5577ac}=_0x14d0b7;const _0x403f9e=this['getCommentThread'](_0x14d0b7['threadId']);if(!_0x403f9e)throw new CKEditorError('commentsrepository-add-comment-to-missing-comment-thread',this);const _0x1025d3=this['_createNewComment'](_0x14d0b7),{id:_0xe24c70}=_0x1025d3;if(_0x403f9e['_add'](_0x1025d3),_0x5577ac||!this['adapter']||'function'!=typeof this['adapter']['addComment']||!_0x403f9e['isSubmitted'])return Promise['resolve']();const _0x3d3488=this['context']['plugins']['get']('PendingActions'),{channelId:_0x56103f}=_0x403f9e,_0xe2caf2=_0x3d3488['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return _0x29fbf8||(_0x29fbf8={}),this['adapter']['addComment']({'channelId':_0x56103f,'threadId':_0x517adf,'commentId':_0xe24c70,'content':_0x3c3296,'attributes':_0x29fbf8})['then'](_0x539e1f=>{_0x3d3488['remove'](_0xe2caf2),_0x539e1f&&this['_updateComment']({'channelId':_0x56103f,'threadId':_0x517adf,'commentId':_0xe24c70,'createdAt':_0x539e1f['createdAt'],'isFromAdapter':!0x0});})['catch'](_0x35c778=>{throw console['error'](_0x35c778),new CKEditorError('commentsrepository-add-comment-internal-error',this);});}['_updateComment']({threadId:_0x25f52a,commentId:_0x113672,content:_0x9d105a,createdAt:_0x4a4401,attributes:_0x4ad8cc,isFromAdapter:_0x4c1993}){if(void 0x0!==_0x9d105a&&('string'!=typeof _0x9d105a||!_0x9d105a['trim']()['length']))throw new CKEditorError('commentsrepository-update-comment-invalid-content');const _0x50e6cd=this['getCommentThread'](_0x25f52a),_0x57adf1=_0x50e6cd['getComment'](_0x113672);if(!_0x57adf1)throw new CKEditorError('commentsrepository-update-missing-comment',this);let _0x1e1cc8=!0x1;if(_0x9d105a&&_0x9d105a!==_0x57adf1['content']&&(_0x57adf1['isEditable']||_0x4c1993)&&(_0x57adf1['content']=_0x9d105a,_0x1e1cc8=!0x0),_0x4a4401&&_0x4a4401!==_0x57adf1['createdAt']&&(_0x57adf1['createdAt']=_0x4a4401,_0x57adf1['attributes']&&_0x57adf1['attributes']['@external']||(_0x57adf1['authoredAt']=_0x4a4401),_0x1e1cc8=!0x0),_0x4ad8cc&&!isEqual(_0x4ad8cc,_0x57adf1['attributes'])&&(_0x57adf1['attributes']=_0x4ad8cc,_0x1e1cc8=!0x0),!_0x1e1cc8)return Promise['resolve']();if(_0x50e6cd['fire']('commentUpdated'),_0x4c1993||!this['adapter']||'function'!=typeof this['adapter']['updateComment'])return Promise['resolve']();const _0x3b84bc=this['context']['plugins']['get']('PendingActions'),{channelId:_0x5a684f}=this['getCommentThread'](_0x57adf1['threadId']),_0x1100bf=_0x3b84bc['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['updateComment']({'channelId':_0x5a684f,'threadId':_0x25f52a,'commentId':_0x113672,'content':_0x9d105a,'attributes':_0x4ad8cc})['then'](()=>_0x3b84bc['remove'](_0x1100bf))['catch'](_0x2a85f3=>{throw console['error'](_0x2a85f3),new CKEditorError('commentsrepository-update-comment-internal-error',this);});}['_removeComment']({threadId:_0xe4d525,commentId:_0x1fa5e8,isFromAdapter:_0x3603ab}){const _0x5ecc96=this['getCommentThread'](_0xe4d525),_0x3145b1=_0x5ecc96['getComment'](_0x1fa5e8);if(!_0x3145b1)throw new CKEditorError('commentsrepository-remove-missing-comment',this);if(_0x5ecc96['_remove'](_0x3145b1),_0x3603ab||!this['adapter']||'function'!=typeof this['adapter']['removeComment'])return Promise['resolve']();const _0x25347e=this['context']['plugins']['get']('PendingActions'),{channelId:_0x38d75f}=_0x5ecc96,_0x2f31f8=_0x25347e['add'](getTranslation$f(this['context']['locale'],'PENDING_ACTION_COMMENT_THREAD'));return this['adapter']['removeComment']({'channelId':_0x38d75f,'threadId':_0xe4d525,'commentId':_0x1fa5e8})['then'](()=>_0x25347e['remove'](_0x2f31f8))['catch'](_0x401b99=>{throw console['error'](_0x401b99),new CKEditorError('commentsrepository-remove-comment-internal-error',this);});}}class CommentThread extends/* #__PURE__ -- @preserve */
ObservableMixin(){['channelId'];['id'];['_isAttached'];['_isSubmitted'];['comments'];['_repository'];constructor(_0x3759a7,_0x9175f7){super();const _0x5e7383=_0x9175f7['isResolvable'];this['channelId']=_0x9175f7['channelId'],this['id']=_0x9175f7['id'],this['comments']=new Collection(),this['_repository']=_0x3759a7,this['_isAttached']=!0x1,this['_isSubmitted']=_0x9175f7['isSubmitted'],this['set']('_hasTargetInContent',!0x0),this['bind']('isReadOnly')['to'](_0x3759a7,'_permissions',_0x3759a7,'_readOnlyChannels',()=>_0x3759a7['isReadOnly'](this['channelId'])),this['bind']('isRemovable')['to'](_0x3759a7,'_permissions',()=>_0x3759a7['getPermissions'](this['channelId'])['admin']),this['bind']('canComment')['to'](_0x3759a7,'_permissions',()=>{const _0x146e1b=_0x3759a7['getPermissions'](this['channelId']);return _0x146e1b['write']||_0x146e1b['admin'];}),this['bind']('isResolvable')['to'](_0x3759a7,'_permissions',()=>_0x5e7383&&_0x3759a7['getPermissions'](this['channelId'])['resolve']),this['set']('context',_0x9175f7['context']),this['bind']('archivedAt')['to'](this,'resolvedAt',this,'unlinkedAt',(_0x304e01,_0x130a09)=>_0x304e01?_0x130a09?_0x304e01<_0x130a09?_0x304e01:_0x130a09:_0x304e01:_0x130a09),this['set']('unlinkedAt',_0x9175f7['unlinkedAt']||null),this['set']('resolvedAt',_0x9175f7['resolvedAt']||null),this['set']('resolvedBy',_0x9175f7['resolvedBy']||null),this['bind']('isResolved')['to'](this,'resolvedAt',_0xb3b427=>!!_0xb3b427),this['set']('attributes',_0x9175f7['attributes']||{});}get['weight'](){return Array['from'](this['comments'])['reduce']((_0x14dd71,_0x1be83e)=>_0x14dd71+_0x1be83e['weight'],0x0);}get['length'](){return this['comments']['length'];}get['isAttached'](){return this['_isAttached'];}get['isSubmitted'](){return this['_isSubmitted'];}['submit'](){const {channelId:_0x4cbad1,id:_0x574f48}=this;this['_repository']['fire'](toEventName('submitCommentThread',_0x4cbad1),{'channelId':_0x4cbad1,'threadId':_0x574f48});}['setUnlinkedAt'](_0x244875){this['_update']({'unlinkedAt':_0x244875});}['resolve']({resolvedAt:_0x56ffc1=new Date(),resolvedBy:_0xafc389='',isFromAdapter:_0x2ebb8a=!0x1}={}){const _0x42b738=this['_repository']['context']['plugins']['get'](Users)['me'],{channelId:_0x4157d5,id:_0x375067}=this;this['_repository']['fire'](toEventName('resolveCommentThread',_0x4157d5),{'channelId':_0x4157d5,'threadId':_0x375067,'resolvedAt':_0x56ffc1,'resolvedBy':_0xafc389||_0x42b738['id'],'isFromAdapter':_0x2ebb8a});}['reopen']({isFromAdapter:_0x52a373=!0x1}={}){const {channelId:_0x4fa49e,id:_0x3e407a}=this;this['_repository']['fire'](toEventName('reopenCommentThread',_0x4fa49e),{'channelId':_0x4fa49e,'threadId':_0x3e407a,'isFromAdapter':_0x52a373});}['setContext'](_0x38349a){this['context']||this['_update']({'context':_0x38349a});}['setAttribute'](_0x171d80,_0x42378f){const _0x1f5bda=cloneDeep(this['attributes']);set(_0x1f5bda,_0x171d80,_0x42378f),this['_update']({'attributes':_0x1f5bda});}['removeAttribute'](_0x2d6124){const _0x258aaa=cloneDeep(this['attributes']);unset(_0x258aaa,_0x2d6124),this['_update']({'attributes':_0x258aaa});}['remove']({isFromAdapter:_0x4650f2=!0x1}={}){const {channelId:_0x34243f,id:_0x5c1564}=this;this['_repository']['fire'](toEventName('removeCommentThread',_0x34243f),{'channelId':_0x34243f,'threadId':_0x5c1564,'isFromAdapter':_0x4650f2});}['attachTo'](_0x3f7d1f){return this['_repository']['_attachCommentThread']({'threadId':this['id'],'target':_0x3f7d1f});}['addComment'](_0x174f57){const {channelId:_0x34ebec,id:_0x318731}=this;this['_repository']['fire'](toEventName('addComment',_0x34ebec,_0x318731),Object['assign']({'channelId':_0x34ebec,'threadId':_0x318731},_0x174f57));}['getComment'](_0x5572ae){if('string'!=typeof _0x5572ae)throw new CKEditorError('commentsrepository-get-comment-invalid-id',null,{'commentId':_0x5572ae});return this['comments']['get'](_0x5572ae);}['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'](_0x1a04bf=>_0x1a04bf['toJSON']()),'attributes':this['attributes']};}['_add'](_0x1e8325){return this['listenTo'](_0x1e8325,'change:authoredAt',()=>{const _0x7362a0=this['_findOptimalIndex'](_0x1e8325),_0x7fe6d0=this['comments'];_0x7362a0-0x1!=_0x7fe6d0['getIndex'](_0x1e8325)&&_0x7362a0+0x1!=_0x7fe6d0['getIndex'](_0x1e8325)&&(this['_remove'](_0x1e8325),this['_add'](_0x1e8325));}),this['comments']['add'](_0x1e8325,this['_findOptimalIndex'](_0x1e8325));}['_update'](_0x1330c1){const {channelId:_0x3aeab5,id:_0x323ade}=this;this['_repository']['fire'](toEventName('updateCommentThread',_0x3aeab5),{..._0x1330c1,'channelId':_0x3aeab5,'threadId':_0x323ade});}['_remove'](_0x541da3){return this['stopListening'](_0x541da3),_0x541da3['destroy'](),this['comments']['remove'](_0x541da3);}['_findOptimalIndex'](_0x2645e0){const _0x30e472=this['comments']['find'](_0x16dd42=>new Date(_0x16dd42['authoredAt'])['getTime']()>new Date(_0x2645e0['authoredAt'])['getTime']());return _0x30e472?this['comments']['getIndex'](_0x30e472):this['length'];}}const MIN_WEIGHT=0xc8;function getContentLength(_0x3e6949){const _0x5ad227=document['createElement']('div');return _0x5ad227['innerHTML']=_0x3e6949,_0x5ad227['textContent']['length'];}class Comment extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['threadId'];['author'];['creator'];['isExternal'];['createdAt'];['_repository'];constructor(_0x33ec55,_0x517b54){super();const _0x17acc2=_0x33ec55['context']['plugins']['get'](Users)['me'],_0x1f8465=_0x33ec55['getCommentThread'](_0x517b54['threadId']),_0xa5c59a=0x0===_0x1f8465['comments']['length'],_0x3299fe=_0x17acc2===_0x517b54['author'];this['id']=_0x517b54['id'],this['threadId']=_0x517b54['threadId'],this['author']=_0x517b54['author'],this['creator']=_0x517b54['creator'],this['isExternal']=Boolean(_0x517b54['attributes']&&_0x517b54['attributes']['@external']),this['set']('content',_0x517b54['content']),this['createdAt']=_0x517b54['createdAt']||new Date(),this['set']('authoredAt',_0x517b54['authoredAt']||new Date()),this['bind']('resolvedAt')['to'](_0x1f8465,'resolvedAt'),this['set']('attributes',_0x517b54['attributes']||{}),this['bind']('isEditable')['to'](_0x33ec55,'_permissions',()=>{const _0x315183=_0x33ec55['getPermissions'](_0x1f8465['channelId'])['write'],_0x5df388=_0x33ec55['getPermissions'](_0x1f8465['channelId'])['modifyAll'];return _0x3299fe&&_0x315183||!_0x3299fe&&_0x5df388;}),this['bind']('isRemovable')['to'](_0x1f8465,'isRemovable',_0x33ec55,'_permissions',_0x231dfe=>{const _0x4b1aad=_0x33ec55['getPermissions'](_0x1f8465['channelId'])['write'],_0x3a9539=_0x33ec55['getPermissions'](_0x1f8465['channelId'])['modifyAll'];return _0x3299fe&&_0x4b1aad||_0x231dfe&&_0xa5c59a||!_0x3299fe&&_0x3a9539&&!_0xa5c59a;}),this['bind']('isReadOnly')['to'](_0x1f8465,'isReadOnly'),this['_repository']=_0x33ec55;}get['weight'](){return Math['max'](getContentLength(this['content']),MIN_WEIGHT);}['update'](_0x64d759){const {threadId:_0x2cbc29,id:_0x439a03}=this;if(!this['_repository']['hasCommentThread'](_0x2cbc29))throw new CKEditorError('commentsrepository-update-comment-missing-comment-thread',this);const {channelId:_0x2e0b62}=this['_repository']['getCommentThread'](_0x2cbc29);this['_repository']['fire'](toEventName('updateComment',_0x2e0b62,_0x2cbc29),{'channelId':_0x2e0b62,'threadId':_0x2cbc29,'commentId':_0x439a03,..._0x64d759});}['setAttribute'](_0x4896c6,_0x31e5c0){const _0x3be551=cloneDeep(this['attributes']);set(_0x3be551,_0x4896c6,_0x31e5c0),this['update']({'attributes':_0x3be551});}['removeAttribute'](_0x192471){const _0x7e92cc=cloneDeep(this['attributes']);unset(_0x7e92cc,_0x192471),this['update']({'attributes':_0x7e92cc});}['remove'](_0x5da7c0={}){if(!_0x5da7c0['isFromAdapter']&&!this['isRemovable'])return;const {threadId:_0x45820f,id:_0x2c818a}=this;if(!this['_repository']['hasCommentThread'](_0x45820f))throw new CKEditorError('commentsrepository-remove-comment-missing-comment-thread',this);const {channelId:_0x5e4fa8}=this['_repository']['getCommentThread'](_0x45820f);this['_repository']['fire'](toEventName('removeComment',_0x5e4fa8,_0x45820f),{'channelId':_0x5e4fa8,'threadId':_0x45820f,'commentId':_0x2c818a,..._0x5da7c0});}['toJSON'](){return{'commentId':this['id'],'content':this['content'],'createdAt':this['createdAt'],'authorId':this['creator']['id'],'attributes':this['attributes']};}['destroy'](){this['stopListening']();}}function toEventName(_0x25f67e,..._0x3972e3){for(const _0x1b8e0c of _0x3972e3)void 0x0!==_0x1b8e0c&&(_0x25f67e+=':'+String(_0x1b8e0c));return _0x25f67e;}class AddCommentThreadCommand extends Command{constructor(_0x4f764d){super(_0x4f764d),this['set']('hasContent',!0x1);}['refresh'](){const _0x1d4ca2=this['editor']['model']['document']['selection'];this['isEnabled']=!0x0,this['hasContent']=!0x1;for(const _0x3df43b of _0x1d4ca2['getRanges']())if(this['_hasContent'](_0x3df43b))return void(this['hasContent']=!0x0);}['execute']({threadId:_0x4bc998=uid(),ranges:_0x1796ec,comment:_0x47e196}={}){const _0x1351fd=this['editor']['model'],_0x1dbb37=_0x1796ec??Array['from'](_0x1351fd['document']['selection']['getRanges']()),_0x4f1785=[];for(const _0x936b80 of _0x1dbb37)this['_hasContent'](_0x936b80)&&_0x4f1785['push'](this['_trimToContent'](_0x936b80));if(!_0x4f1785['length'])throw new CKEditorError('addcommentthreadcommand-incorrect-ranges',null);_0x47e196&&this['_createCommentThread'](_0x4bc998,_0x47e196),this['_createMarkersFromRanges'](_0x4bc998,_0x4f1785,!!_0x47e196);}['_createMarkersFromRanges'](_0x3522b7,_0x45940e,_0x1b7eb6){this['editor']['model']['change'](_0x1b32a3=>{for(const _0x35f018 of _0x45940e){const _0xa77826=uid()['substr'](0x1,0x5),_0x2be318='comment:'+_0x3522b7+':'+_0xa77826;_0x1b32a3['addMarker'](_0x2be318,{'range':_0x35f018,'usingOperation':_0x1b7eb6,'affectsData':_0x1b7eb6});}});}['_createCommentThread'](_0x54c512,_0x3a13c8){const _0x4f8c37=this['editor']['plugins']['get']('CommentsRepository'),_0x4aa428=this['editor']['config']['get']('collaboration.channelId'),_0x405120=this['editor']['plugins']['get']('Users')['me'];if(!_0x405120)throw new CKEditorError('addcommentthreadcommand-user-not-found',null);_0x4f8c37['addCommentThread']({'threadId':_0x54c512,'channelId':_0x4aa428,'comments':[{'authorId':_0x405120['id'],'content':_0x3a13c8,'createdAt':new Date(),'attributes':{}}]});}['_hasContent'](_0x138387){for(const _0x1d1506 of _0x138387['getItems']())if(this['_itemIsContent'](_0x1d1506))return!0x0;return!0x1;}['_itemIsContent'](_0x33eb52){return _0x33eb52['is']('$textProxy')||this['editor']['model']['schema']['isObject'](_0x33eb52)&&!_0x33eb52['is']('element','tableCell');}['_trimToContent'](_0x5456a3){const _0x12666f=_0x1b7294=>!this['_itemIsContent'](_0x1b7294['item']),_0x27a74f=_0x5456a3['start']['getLastMatchingPosition'](_0x12666f),_0x4c7841=_0x5456a3['end']['getLastMatchingPosition'](_0x12666f,{'direction':'backward'});return this['editor']['model']['createRange'](_0x27a74f,_0x4c7841);}}class EditorAnnotations extends Plugin{['_dataCollectors'];['_editorAnnotations'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'EditorAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x468dfc){super(_0x468dfc),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}['init'](){const _0x42f9de=this['editor'],_0x3b28e1=_0x42f9de['model']['document']['selection'],_0x296aa6=debounce$1(()=>this['refreshSelectedViews'](),0xa);_0x3b28e1['on']('change:range',(_0x187bce,_0x3e4614)=>{_0x3e4614['directChange']&&(_0x296aa6['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x42f9de['editing']['view']['document'],'change:isFocused',(_0x3686c9,_0x40cdd4,_0x1b0883)=>{_0x1b0883&&_0x296aa6();}),this['listenTo'](_0x42f9de['ui']['focusTracker'],'change:isFocused',(_0x4c9570,_0x3119ef,_0x420607)=>{_0x420607||this['fire']('blur',{'isAnnotationTracked':_0x5519b3=>this['_editorAnnotationsData']['has'](_0x5519b3['innerView'])});}),this['listenTo'](this['editor']['ui'],'update',()=>this['fire']('uiUpdate'));}['registerAnnotation'](_0xcefdb5){if(this['_editorAnnotations']['has'](_0xcefdb5['view']))return;this['_editorAnnotations']['add'](_0xcefdb5['view']),this['editor']['ui']['focusTracker']['add'](_0xcefdb5['view']['element']);const _0x2d3529=this['editor']['plugins']['get'](Annotations);this['listenTo'](_0x2d3529['collection'],'remove',(_0x23a4f7,_0x46b793)=>{this['editor']['ui']['focusTracker']['remove'](_0x46b793['view']['element']),this['_editorAnnotations']['delete'](_0x46b793['view']);});}['hasDomSelection'](){return this['editor']['editing']['view']['hasDomSelection'];}['addSourceCollector'](_0x55552a){if('function'!=typeof _0x55552a)throw new CKEditorError('editorannotations-invalid-source-callback');this['_dataCollectors']['add'](_0x55552a);}['refreshSelectedViews'](){this['fire']('refresh');}['getOrderedSelectedAnnotations']({activeAnnotation:_0x453497,annotations:_0x52a08f}){const _0x561df0=[],_0x303cb2=this['editor']['model']['document']['selection'],_0x49740f=Array['from'](_0x303cb2['getRanges']());for(const [_0x47e253,_0x2ee41c]of this['_editorAnnotationsData']){const _0x38edd8=_0x1c2aef(_0x2ee41c),_0x425f1f=_0x52a08f['getByInnerView'](_0x47e253);_0x38edd8&&_0x425f1f&&_0x561df0['push']({'annotation':_0x425f1f,'range':_0x38edd8});}function _0x1c2aef(_0x4e506c){for(const _0x2152c3 of _0x4e506c)for(const _0x372f4b of _0x49740f)if(_0x2152c3['containsRange'](_0x372f4b,!_0x303cb2['isCollapsed']))return _0x2152c3;return null;}return _0x561df0['sort']((_0x21c3fd,_0x3d7c8d)=>{const _0x5c75db=_0x21c3fd['range'],_0x2c8ac6=_0x3d7c8d['range'];if(!_0x5c75db['isEqual'](_0x2c8ac6)){if(_0x5c75db['containsRange'](_0x2c8ac6,!0x0))return 0x1;if(_0x2c8ac6['containsRange'](_0x5c75db,!0x0))return-0x1;}return _0x21c3fd['annotation']==_0x453497?-0x1:_0x3d7c8d['annotation']==_0x453497?0x1:0x0;})['map'](_0x27edec=>_0x27edec['annotation']);}get['_editorAnnotationsData'](){const _0x38e5a9=new Map();for(const _0x5bf168 of Array['from'](this['_dataCollectors']))for(const [_0x5e26a1,_0x28761e]of _0x5bf168())_0x38e5a9['set'](_0x5e26a1,_0x28761e);return _0x38e5a9;}}class CommentsRestrictedEditingMode extends Plugin{['afterInit'](){const _0x54132c=this['editor'];if(!_0x54132c['plugins']['has']('RestrictedEditingModeEditing'))return;_0x54132c['plugins']['get']('RestrictedEditingModeEditing')['enableCommand']('addCommentThread');}}class CommentsImportWord extends Plugin{constructor(_0x15633b){super(_0x15633b),this['editor']['config']['define']('importWord.formatting.comments','basic');}['afterInit'](){const _0x3ca2c7=this['editor'],_0x4ae351=_0x3ca2c7['commands']['get']('importWord'),_0x4090f0=_0x3ca2c7['plugins']['get'](Users);_0x4ae351&&(_0x4ae351['on']('execute',(_0x1783c2,[,_0x43d6a7])=>{_0x43d6a7['collaboration_features']={'comments':!0x0,'user_id':_0x4090f0['me']['id']};},{'priority':priorities['high']+0xa}),this['listenTo'](_0x4ae351,'dataInsert',this['_handleImportedData']));}['_handleImportedData'](_0x13a0a1,_0x2ea7a2){const {comment_threads:_0x92ecd2}=_0x2ea7a2;_0x92ecd2&&_0x92ecd2['forEach'](({thread_id:_0x4400c5,comments:_0x2b84e0,is_resolved:_0x2202d8})=>{const _0x308a89=new Date(),_0x5038f1=_0x2b84e0['map'](({author:_0x16a142,content:_0x3e58a9,created_at:_0xb6b2c0})=>({'content':_0x3e58a9,'authorId':this['editor']['plugins']['get'](Users)['me']['id'],'createdAt':_0x308a89,'attributes':{'@external':{'authorName':_0x16a142,'createdAt':_0xb6b2c0?new Date(_0xb6b2c0):new Date(),'source':'importWord'}}})),_0x551747=this['editor']['config']['get']('collaboration.channelId');this['editor']['plugins']['get'](CommentsRepository)['addCommentThread']({'channelId':_0x551747,'threadId':_0x4400c5,'comments':_0x5038f1,'resolvedAt':_0x2202d8?_0x308a89:null});});}}class CommentsClipboard extends Plugin{constructor(_0x291739){super(_0x291739),this['editor']['config']['define']('comments.copyMarkers','default');}static get['requires'](){return[ClipboardMarkersUtils,ClipboardPipeline];}['afterInit'](){const _0xb6e2a=this['editor']['plugins']['get']('ClipboardPipeline');this['_registerMarkerInClipboardPipeline'](),this['listenTo'](_0xb6e2a,'contentInsertion',(_0x11cdc1,_0x39f8fd)=>this['_removeMarkersWithoutThreads'](_0x39f8fd['content']['markers']),{'priority':'highest'});}['_removeMarkersWithoutThreads'](_0x85875c){if(!this['editor']['plugins']['has']('CommentsRepository'))return _0x85875c;const _0x292c63=this['editor']['plugins']['get']('CommentsRepository');for(const _0x18cf5b of _0x85875c['keys']()){const [_0x5543f4,_0x2a1d36]=_0x18cf5b['split'](':');'comment'!=_0x5543f4||_0x292c63['hasCommentThread'](_0x2a1d36)||_0x85875c['delete'](_0x18cf5b);}return _0x85875c;}['_registerMarkerInClipboardPipeline'](){const _0x24fab3=this['editor']['plugins']['get']('ClipboardMarkersUtils'),_0x4c5b44=this['_mapCommentsCopyConfigToRegisterConfiguration'](this['editor']['config']['get']('comments.copyMarkers'));_0x4c5b44&&_0x24fab3['_registerMarkerToCopy']('comment',_0x4c5b44);}['_mapCommentsCopyConfigToRegisterConfiguration'](_0x1a0477){switch(_0x1a0477){case'always':return{'allowedActions':'all','copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case'default':return{'allowedActions':['cut','dragstart'],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};default:return null;}}}function splitMarkerName(_0x3dced9){const _0x34140f=_0x3dced9['split'](':');return{'group':_0x34140f[0x0],'id':_0x34140f[0x1],'part':_0x34140f[0x2]};}class ShowCommentHighlights extends Plugin{['init'](){this['overrideMarkerConverters'](),this['overrideHorizontalRuleConverter'](),this['overrideImageInlineConverter'](),this['overrideMediaEmbedConverter']();}['overrideMarkerConverters'](){this['editor']['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'comment','view':(_0x501b2a,_0x3bc260)=>{if(!_0x3bc260['options']['showCommentHighlights'])return null;if(_0x3bc260['options']['ignoreResolvedComments']){const {id:_0x224f0c}=splitMarkerName(_0x501b2a['markerName']),_0x4f2bd4=this['editor']['plugins']['get'](CommentsRepository);if(_0x4f2bd4['getCommentThread'](_0x224f0c)?.['isResolved']&&_0x501b2a['item'])return _0x3bc260['consumable']['consume'](_0x501b2a['item'],'addMarker:'+_0x501b2a['markerName']),_0x3bc260['consumable']['consume'](_0x501b2a['item'],'removeMarker:'+_0x501b2a['markerName']),null;}return{'classes':['ck-comment-marker']};}}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5373ad=>{_0x5373ad['on']('addMarker:comment',(_0x504acb,_0x4c57f7,_0x54fbe9)=>{if(!_0x54fbe9['options']['showCommentHighlights'])return;const _0x65fe9=_0x4c57f7['item'];if(!_0x65fe9)return;const _0x1917ac=_0x54fbe9['mapper']['toViewElement'](_0x65fe9);this['editor']['model']['schema']['isObject'](_0x65fe9)&&_0x1917ac&&!_0x1917ac['getCustomProperty']('widget')&&_0x1917ac['is']('containerElement')&&toWidget(_0x1917ac,_0x54fbe9['writer']);},{'priority':'high'});});}['overrideHorizontalRuleConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x31d32f,{writer:_0x5c60b0,options:_0xc8cd55})=>{if(!_0xc8cd55['showCommentHighlights'])return null;const _0x136639=_0x5c60b0['createContainerElement']('div'),_0x1a436f=_0x5c60b0['createEmptyElement']('hr');return _0x5c60b0['addClass']('ck-horizontal-line',_0x136639),_0x5c60b0['insert'](_0x5c60b0['createPositionAt'](_0x136639,0x0),_0x1a436f),_0x136639;},'converterPriority':'high'});}['overrideImageInlineConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToStructure']({'model':'imageInline','view':(_0x1e6fbf,{writer:_0x3c4419,options:_0x131c0e})=>{if(!_0x131c0e['showCommentHighlights'])return null;const _0x485dea=_0x3c4419['createContainerElement']('span'),_0x36cd31=_0x3c4419['createEmptyElement']('img');return _0x3c4419['addClass']('image-inline',_0x485dea),_0x3c4419['insert'](_0x3c4419['createPositionAt'](_0x485dea,0x0),_0x36cd31),_0x485dea;},'converterPriority':'high'});}['overrideMediaEmbedConverter'](){this['editor']['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e578b,{writer:_0xc387c9,options:_0x2595c3})=>{if(_0x2595c3['showCommentHighlights'])return _0xc387c9['createEmptyElement']('div');},'converterPriority':'high'}),this['editor']['data']['downcastDispatcher']['on']('attribute:url:media',(_0x186240,_0x15c345,_0x357648)=>{_0x357648['options']['showCommentHighlights']&&_0x186240['stop']();},{'priority':'high'});}}const MAX_CONTEXT_LENGTH=0x96;class CommentsEditing extends Plugin{static get['requires'](){return[CommentsRepository,EditorAnnotations,Users,CommentsRestrictedEditingMode,CommentsImportWord,CommentsClipboard,ShowCommentHighlights];}static get['pluginName'](){return'CommentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x208967){super(_0x208967),this['set']('isThreadsLoadingPaused',!0x0),_0x208967['data']['once']('ready',()=>this['isThreadsLoadingPaused']=!0x1),this['set']('activeMarker',null),this['on']('change:activeMarker',(_0x2562e5,_0x152e02,_0x489e9c,_0x33b98f)=>{const _0x2b312c=_0x208967['plugins']['get'](CommentsRepository),_0x556fdd=_0x489e9c?splitMarkerName(_0x489e9c)['id']:null;_0x208967['model']['change'](()=>{if(_0x556fdd){const _0x3b65be=this['getAllMarkersForId'](_0x556fdd);for(const _0xa26710 of _0x3b65be)_0x208967['editing']['reconvertMarker'](_0xa26710);}if(_0x33b98f){const {id:_0x3478e3}=splitMarkerName(_0x33b98f),_0x3f94d7=_0x2b312c['getCommentThread'](_0x3478e3);if(_0x3f94d7&&_0x3f94d7['unlinkedAt'])return;if(_0x3f94d7&&!_0x3f94d7['isAttached'])return;const _0x46ecbc=this['getAllMarkersForId'](_0x3478e3);for(const _0x1217cd of _0x46ecbc)_0x208967['editing']['reconvertMarker'](_0x1217cd);}}),_0x556fdd&&this['scrollToThreadMarker'](_0x556fdd);}),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xe84cbc=this['editor'],_0x5cc75d=_0xe84cbc['plugins']['get'](CommentsRepository),_0x1bb96e=_0xe84cbc['config']['get']('collaboration.channelId'),_0x2f2b8d=_0x5cc75d['getCommentThreads']()['filter'](_0x18ab57=>_0x18ab57['channelId']!==_0x1bb96e);_0xe84cbc['commands']['add']('addCommentThread',new AddCommentThreadCommand(_0xe84cbc)),this['listenTo'](_0xe84cbc,'change:isReadOnly',(_0x232375,_0x26ce31,_0x518c36)=>{_0x5cc75d['switchReadOnly'](_0x518c36,_0xe84cbc['config']['get']('collaboration.channelId'));}),this['listenTo'](_0x5cc75d,createChannelEvent('addCommentThread',_0x1bb96e),(_0x1e19fb,{threadId:_0x566205})=>{const _0x54246e=this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x566205);_0x54246e?.['unlinkedAt']&&this['_attachArchivedThread'](_0x566205);}),this['listenTo'](_0x5cc75d,createChannelEvent('removeCommentThread',_0x1bb96e),(_0xe0970b,{threadId:_0x1531ff})=>{_0xe84cbc['model']['enqueueChange']({'isUndoable':!0x1},_0x1ef6a1=>{const _0x2f0703=this['getAllMarkersForId'](_0x1531ff);for(const _0x425eb2 of _0x2f0703)_0x1ef6a1['removeMarker'](_0x425eb2);});}),this['listenTo'](_0x5cc75d,createChannelEvent('resolveCommentThread',_0x1bb96e),(_0x207a12,{threadId:_0x136041})=>{(this['_reconvertMarkers'](_0x136041),this['editor']['editing']['view']['hasDomSelection'])&&(this['editor']['plugins']['get'](CommentsRepository)['getCommentThread'](_0x136041)['unlinkedAt']||this['editor']['editing']['view']['focus']());},{'priority':'low'}),this['listenTo'](_0x5cc75d,createChannelEvent('reopenCommentThread',_0x1bb96e),(_0x436856,{threadId:_0x116d17})=>{this['_reconvertMarkers'](_0x116d17);},{'priority':'low'}),this['listenTo'](_0x5cc75d,createChannelEvent('addComment',_0x1bb96e),(_0x4c984c,{threadId:_0x416d78,isFromAdapter:_0x1b2839})=>{const _0x59884f=this['getAllMarkersForId'](_0x416d78);if(_0x1b2839||0x0==_0x59884f['length']||!_0x5cc75d['hasCommentThread'](_0x416d78))return;0x1===_0x5cc75d['getCommentThread'](_0x416d78)['length']&&_0xe84cbc['model']['enqueueChange']({'isUndoable':!0x1},_0x5eca9e=>{for(const _0xd9cf16 of _0x59884f)_0x5eca9e['updateMarker'](_0xd9cf16,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove'](),this['_handleInitialThreads'](_0x2f2b8d);}['afterInit'](){checkLicense$h(this);}['destroy'](){const _0x4a58f9=this['editor']['plugins']['get'](CommentsRepository),_0x3753b2=this['editor']['config']['get']('collaboration.channelId');for(const _0x14e66c of _0x4a58f9['getCommentThreads']({'channelId':_0x3753b2}))_0x4a58f9['_detachCommentThread'](_0x14e66c['id']),_0x4a58f9['_threads']['delete'](_0x14e66c['id']);super['destroy']();}['hasMarkerForId'](_0x5b6ca6){return this['getAllMarkersForId'](_0x5b6ca6)['length']>0x0;}['getAllMarkersForId'](_0xc4a188){const _0x139c2e=[];for(const _0x23a3b5 of this['editor']['model']['markers'])_0x23a3b5['name']['startsWith']('comment:'+_0xc4a188)&&_0x139c2e['push'](_0x23a3b5);return _0x139c2e;}['scrollToThreadMarker'](_0x24b174){setTimeout(()=>{const _0xa28f7a=this['_getTargetForId'](_0x24b174);if(!_0xa28f7a)return;this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x24b174&&scrollViewportToShowTarget({'target':_0xa28f7a[0x0],'viewportOffset':0x64,'alignToTop':!0x0});},0x32);}['_reconvertMarkers'](_0x307727){this['editor']['model']['change'](()=>{for(const _0x44a9a3 of this['getAllMarkersForId'](_0x307727))this['editor']['editing']['reconvertMarker'](_0x44a9a3);});}['_attachArchivedThread'](_0x59bbec){const _0x5e9250=this['editor']['plugins']['get'](CommentsRepository),_0x3605c7=this['editor']['plugins']['get'](EditorAnnotations),_0x290b3a=_0x5e9250['getCommentThread'](_0x59bbec);if(!_0x290b3a['isAttached']){const _0x1d8755=_0x290b3a['attachTo'](()=>this['_getTargetForId'](_0x290b3a['id']));_0x3605c7['registerAnnotation'](_0x1d8755),_0x290b3a['_hasTargetInContent']=!0x1;}}['_initializeMarkerConverters'](){const _0x174a90=this['editor'],_0x1f077e=_0x174a90['plugins']['get'](Users);_0x174a90['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'comment','view':(_0x4f57f9,_0x122759)=>{const {id:_0x4d1b93}=splitMarkerName(_0x4f57f9['markerName']),_0x3f65d5=_0x174a90['plugins']['get'](CommentsRepository)['getCommentThread'](_0x4d1b93),_0xea94f=this['activeMarker']&&splitMarkerName(this['activeMarker'])['id']===_0x4d1b93;let _0x78cf3f;if(_0x3f65d5&&_0x3f65d5['isResolved']&&!_0xea94f&&_0x4f57f9['item'])return _0x122759['consumable']['consume'](_0x4f57f9['item'],'addMarker:'+_0x4f57f9['markerName']),_0x122759['consumable']['consume'](_0x4f57f9['item'],'removeMarker:'+_0x4f57f9['markerName']),null;const _0x4c7fe8=['ck-comment-marker'];return _0xea94f&&_0x4c7fe8['push']('ck-comment-marker--active'),_0x78cf3f=_0x3f65d5?.['length']?_0x3f65d5['comments']['first']['author']['id']:_0x1f077e['me']['id'],{'classes':_0x4c7fe8,'attributes':{'data-comment':_0x4d1b93,'data-author-id':_0x78cf3f}};}}),_0x174a90['conversion']['for']('dataDowncast')['markerToData']({'model':'comment','view':(_0x126ab6,{options:_0x5d00f1})=>{if(_0x5d00f1['showCommentHighlights'])return null;const _0x43b330=_0x174a90['plugins']['get'](CommentsRepository),_0x17b6e7=_0x174a90['model']['markers']['get'](_0x126ab6),{id:_0x355026,part:_0x4b568f}=splitMarkerName(_0x126ab6);return _0x17b6e7&&!_0x17b6e7['affectsData']||_0x5d00f1['ignoreResolvedComments']&&_0x43b330['getCommentThread'](_0x355026)?.['isResolved']?null:{'group':'comment','name':_0x4b568f?_0x355026+':'+_0x4b568f:_0x355026};}}),_0x174a90['conversion']['for']('upcast')['elementToElement']({'view':{'name':'comment','attributes':{'id':/^\w/}},'model':(_0x52fbbc,{writer:_0x517730})=>_0x517730['createElement']('$marker',{'data-name':'comment:'+_0x52fbbc['getAttribute']('id')})}),_0x174a90['conversion']['for']('upcast')['dataToMarker']({'view':'comment'});}['_handleMarkerAddAndRemove'](){const _0xd055c0=this['editor'],_0x54fc04=_0xd055c0['plugins']['get'](CommentsRepository),_0x2f3411=new Set(),_0x8ae6e7=new Set();_0xd055c0['model']['document']['registerPostFixer'](_0x17083c=>{let _0x51d010=!0x1;for(const {name:_0x495417,data:_0x2cc8bc}of _0xd055c0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x1aea7e,id:_0x533d2e}=splitMarkerName(_0x495417);let _0x59e08e=_0x2cc8bc['newRange'];if('comment'!==_0x1aea7e||!_0x59e08e)continue;const _0x353b7e='$graveyard'===_0x59e08e['root']['rootName'];_0x353b7e||(_0x59e08e=fixMarkerRange(_0x59e08e,_0xd055c0['model']),!_0x59e08e||_0x59e08e['isCollapsed']||!_0x2cc8bc['newRange']||_0x59e08e['isEqual'](_0x2cc8bc['newRange']))?_0xd055c0['model']['hasContent'](_0x59e08e)&&!_0x353b7e?this['isThreadsLoadingPaused']?_0x2f3411['add'](_0x495417):this['_handleThreadMarker'](_0x495417,_0x533d2e):(_0x8ae6e7['add'](_0x495417),_0x2f3411['delete'](_0x495417),_0x17083c['removeMarker'](_0x495417),_0x51d010=!0x0):(_0x17083c['updateMarker'](_0x495417,{'range':_0x59e08e}),_0x51d010=!0x0);}return _0x51d010;}),this['on']('change:isThreadsLoadingPaused',(_0x58340a,_0x4c4390,_0x1d6254)=>{if(!_0x1d6254&&_0x2f3411['size'])for(const _0x3258cf of _0x2f3411){const {id:_0x47f033}=splitMarkerName(_0x3258cf);_0x2f3411['delete'](_0x3258cf),_0xd055c0['model']['markers']['get'](_0x3258cf)&&this['_handleThreadMarker'](_0x3258cf,_0x47f033);}}),this['listenTo'](_0xd055c0['model']['document'],'change',()=>{for(const {name:_0x29d0a7,data:{newRange:_0x49ca5c}}of _0xd055c0['model']['document']['differ']['getChangedMarkers']()){const {group:_0x49cc8c,id:_0x53a03c}=splitMarkerName(_0x29d0a7);if('comment'!==_0x49cc8c)continue;const _0x530235=_0x54fc04['getCommentThread'](_0x53a03c),_0x540e31=this['hasMarkerForId'](_0x53a03c);_0x530235&&(!_0x530235['_hasTargetInContent']&&_0x49ca5c&&_0xd055c0['editing']['view']['once']('render',()=>{const _0xe6dd6e=_0xd055c0['plugins']['get'](Annotations),_0x5491bd=_0x54fc04['_threadToController']['get'](_0x530235)['view'];_0xe6dd6e['getByInnerView'](_0x5491bd)['refreshVisibility']();},{'priority':'low'}),_0x530235['_hasTargetInContent']=_0x540e31||!!_0x49ca5c),_0x49ca5c||(_0x8ae6e7['add'](_0x29d0a7),_0x2f3411['delete'](_0x29d0a7));}for(const _0x53e23b of _0x8ae6e7){const {id:_0x4843cb}=splitMarkerName(_0x53e23b),_0x2a447a=_0x54fc04['getCommentThread'](_0x4843cb);if(_0x2f3411['delete'](_0x53e23b),!_0x2a447a)continue;const _0x1bfd8c=this['hasMarkerForId'](_0x4843cb);_0x1bfd8c||_0x2a447a['isSubmitted']?_0x1bfd8c||_0x2a447a['unlinkedAt']||_0x2a447a['setUnlinkedAt'](new Date()):_0x2a447a['remove']();}_0x8ae6e7['clear']();});}['_handleInitialThreads'](_0x13cf65){_0x13cf65['forEach'](_0x3a6a97=>{_0x3a6a97['unlinkedAt']&&this['_attachArchivedThread'](_0x3a6a97['id']);});}['_getTargetForId'](_0x52b560){const _0x3f9b33=this['editor'],_0x329482=this['getAllMarkersForId'](_0x52b560);return getAllMarkersDomElementsSorted(_0x3f9b33['editing'],_0x329482);}['_getTextContext'](_0x1c6027){const _0x305752=this['getAllMarkersForId'](_0x1c6027);let _0x3d26a9='',_0x23df4d=!0x1;for(const _0xfe5dfc of _0x305752){const _0x1d3e47=_0xfe5dfc['getRange']();for(const _0x1bbe3b of Array['from'](_0x1d3e47['getItems']()))_0x1bbe3b['is']('$textProxy')?(_0x3d26a9&&_0x23df4d&&(_0x3d26a9+='\x20',_0x23df4d=!0x1),_0x3d26a9+=_0x1bbe3b['data']):_0x23df4d=!0x0;_0x23df4d=!0x0;}return _0x3d26a9['substring'](0x0,MAX_CONTEXT_LENGTH);}['_attachMarkerToThread'](_0xfabcbc,_0x2f9695){const _0x45921d=this['editor'],_0x43acee=_0x45921d['plugins']['get'](CommentsRepository);let _0x5f4b95=_0x43acee['getCommentThread'](_0x2f9695);const _0x263be4=_0x45921d['config']['get']('collaboration.channelId'),_0x5a06a3=_0x45921d['plugins']['get'](EditorAnnotations);if(_0x5f4b95&&(_0x5f4b95['unlinkedAt']&&_0x5f4b95['setUnlinkedAt'](null),_0x5f4b95['isAttached']))return _0x5f4b95;return!this['getAllMarkersForId'](_0x2f9695)[0x0]['managedUsingOperations']?_0x45921d['editing']['view']['once']('render',()=>{if(_0x43acee['getCommentThread'](_0x2f9695))return;const _0x389a1a=_0x45921d['plugins']['get'](Annotations);_0x5f4b95=_0x43acee['openNewCommentThread']({'channelId':_0x263be4,'threadId':_0x2f9695,'target':()=>this['_getTargetForId'](_0x2f9695),'context':{'type':'text','value':this['_getTextContext'](_0x2f9695)}});const _0x1b575c=_0x43acee['_threadToController']['get'](_0x5f4b95)['view'],_0x511442=_0x389a1a['getByInnerView'](_0x1b575c);_0x511442&&_0x5a06a3['registerAnnotation'](_0x511442);},{'priority':'low'}):_0x43acee['fetchCommentThread']({'channelId':_0x263be4,'threadId':_0x2f9695})['then'](_0x18fb67=>{if('destroyed'!==_0x45921d['state']){if(_0x5f4b95=_0x18fb67,_0x5f4b95&&!_0x5f4b95['isAttached']){const _0x4d610b=_0x5f4b95['attachTo'](()=>this['_getTargetForId'](_0x2f9695));_0x5a06a3['registerAnnotation'](_0x4d610b),_0x5f4b95['isResolved']&&this['_reconvertMarkers'](_0x2f9695);}else{if(!_0x5f4b95){const _0x4bea69=this['getAllMarkersForId'](_0x2f9695);_0x45921d['model']['change'](_0x588212=>{for(const _0x2e3e40 of _0x4bea69)_0x588212['removeMarker'](_0x2e3e40);});}}}}),_0x5f4b95;}['_handleThreadMarker'](_0x4894fd,_0x4e1ff0){const _0x13df71=this['_attachMarkerToThread'](_0x4894fd,_0x4e1ff0);_0x13df71&&!_0x13df71['context']&&_0x13df71['setContext']({'type':'text','value':this['_getTextContext'](_0x4e1ff0)});}['_initAriaMarkerChangeAnnouncements'](){const _0x44bb39=this['editor'];surroundingMarkersDetector(_0x44bb39['model'],({left:_0xdb061d,entered:_0x1efd2c})=>{for(const _0x176591 of _0xdb061d)if(isCommentMarker(_0x176591)){_0x44bb39['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x44bb39['locale'],'LEAVE_COMMENT_ANNOUNCEMENT'));break;}for(const _0x2496fb of _0x1efd2c)if(isCommentMarker(_0x2496fb)){_0x44bb39['ui']['ariaLiveAnnouncer']['announce'](getTranslation$f(_0x44bb39['locale'],'ENTER_COMMENT_ANNOUNCEMENT',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}});}}function createChannelEvent(_0xefc090,_0x35f4c4){return _0x35f4c4?_0xefc090+':'+_0x35f4c4:_0xefc090;}function fixMarkerRange(_0x48d37f,_0x1c24a8){const _0x38538c=_0x1c24a8['schema'],_0x43e927=_0x1c24a8['createRange'](_0x48d37f['start']);for(const _0x5486fd of _0x48d37f['getWalker']()){const {type:_0x3a571d,item:_0x2a91bb,nextPosition:_0x4b8d00}=_0x5486fd;if('text'===_0x3a571d||_0x38538c['isObject'](_0x2a91bb)){const _0x5c8e10=_0x1c24a8['createPositionBefore'](_0x2a91bb);_0x43e927['isCollapsed']&&(_0x43e927['start']=_0x5c8e10),_0x43e927['end']=_0x4b8d00;}}return _0x43e927;}function isCommentMarker(_0x353bd4){return'comment'===splitMarkerName(_0x353bd4['name'])['group'];}async function checkLicense$h(_0x11876f){const _0x5c03d4=_0x1f51c0([0x4b,0x70,0x4f,0x42,0x4a,0x47,0x4e,0x53,0x45,0x67,0x71,0x43,0x79,0x66,0x56,0x46,0x31,0x6b,0x5a,0x38,0x6c,0x62,0x6e,0x52,0x6a,0x4d,0x37,0x65,0x49,0x7a,0x41,0x73,0x44,0x51,0x48,0x77,0x39,0x61,0x54,0x68,0x75,0x36,0x72,0x63,0x59,0x69,0x30,0x35,0x55,0x6d,0x50,0x4c,0x34,0x64,0x33,0x58,0x32,0x57,0x6f,0x74,0x76,0x78]),_0x3ccea8=window[_0x1f51c0([0x44,0x61,0x74,0x65])][_0x1f51c0([0x6e,0x6f,0x77])](),_0x233a3e=_0x11876f[_0x1f51c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc8573b=new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dac38=>{_0x233a3e[_0x1f51c0([0x6f,0x6e,0x63,0x65])](_0x1f51c0([0x72,0x65,0x61,0x64,0x79]),_0x3dac38);}),_0x57a17={[_0x1f51c0([0x6b,0x74,0x79])]:_0x1f51c0([0x45,0x43]),[_0x1f51c0([0x75,0x73,0x65])]:_0x1f51c0([0x73,0x69,0x67]),[_0x1f51c0([0x63,0x72,0x76])]:_0x1f51c0([0x50,0x2d,0x32,0x35,0x36]),[_0x1f51c0([0x78])]:_0x1f51c0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1f51c0([0x79])]:_0x1f51c0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1f51c0([0x61,0x6c,0x67])]:_0x1f51c0([0x45,0x53,0x32,0x35,0x36])},_0x169217=_0x233a3e[_0x1f51c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f51c0([0x67,0x65,0x74])](_0x1f51c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x68d087=await(async function(){let _0x2e5bbd,_0x10ac19=null,_0x3433f9=null;try{if(_0x169217==_0x1f51c0([0x47,0x50,0x4c]))return _0x1f51c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e5bbd=(function(){const _0x5eb592=_0x169217[_0x1f51c0([0x73,0x70,0x6c,0x69,0x74])](_0x1f51c0([0x2e]));if(0x3!=_0x5eb592[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x20ea0a=_0x5eb592[0x1];return _0x53c552(_0x20ea0a);function _0x53c552(_0x370838){const _0x44ff8e=_0xfb89ee(_0x370838);return _0x44ff8e&&_0x360890()?_0x44ff8e:null;function _0x360890(){const _0x4b6b7b=_0x44ff8e[_0x1f51c0([0x6a,0x74,0x69])],_0x2f354a=window[_0x1f51c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b6b7b[_0x1f51c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b6b7b[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ef3cb={..._0x44ff8e,[_0x1f51c0([0x6a,0x74,0x69])]:_0x4b6b7b[_0x1f51c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b6b7b[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ef3cb[_0x1f51c0([0x76,0x63])],_0x328a9f(_0x3ef3cb)==_0x2f354a;}}}()),!_0x2e5bbd)return _0x1f51c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2e5bbd[_0x1f51c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3433f9=function(_0x228002,_0x1c4a0c){return new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545324=>{if(_0x140115())return _0x545324(_0x1f51c0([0x56,0x61,0x6c,0x69,0x64]));_0x3e14a1(),_0x233a3e[_0x1f51c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f51c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb6b444=!0x1;const _0x506fdf=uid();function _0x2a93a0(_0x15f601){return!!_0x15f601&&(typeof _0x15f601===_0x1f51c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15f601===_0x1f51c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15f601[_0x1f51c0([0x74,0x68,0x65,0x6e])]===_0x1f51c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15f601[_0x1f51c0([0x63,0x61,0x74,0x63,0x68])]===_0x1f51c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48a047(_0xbf6a14){_0x27a42e(_0xbf6a14)[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x5bf289=>{if(!_0x5bf289||_0x5bf289[_0x1f51c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f51c0([0x6f,0x6b]))return _0x1f51c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x508866(_0x328a9f(_0x506fdf+_0x1c4a0c))!=_0x5bf289[_0x1f51c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f51c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f51c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x4d3d54=>(_0x4984f8(),_0x4d3d54),()=>{const _0x4c6742=_0x4c8a33();return null==_0x4c6742?(_0x4984f8(),_0x1f51c0([0x56,0x61,0x6c,0x69,0x64])):_0x1f51c0(_0x3ccea8-_0x4c6742>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x545324)[_0x1f51c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x545324(_0x1f51c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c6a22=0x36ee80;function _0x4984f8(){const _0x3bddb9=_0x1f51c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x508866(_0x328a9f(_0x228002)),_0x1e0019=_0x482704(_0x508866(window[_0x1f51c0([0x4d,0x61,0x74,0x68])][_0x1f51c0([0x63,0x65,0x69,0x6c])](_0x3ccea8/_0x2c6a22)));window[_0x1f51c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f51c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bddb9,_0x1e0019);}function _0x4c8a33(){const _0x2a4549=_0x1f51c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x508866(_0x328a9f(_0x228002)),_0x5d6e44=window[_0x1f51c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f51c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a4549);return _0x5d6e44?window[_0x1f51c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x482704(_0x5d6e44),0x10)*_0x2c6a22:null;}function _0x27a42e(_0xd83a46){return new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b51c6,_0x12253a)=>{_0xd83a46[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x4b51c6,_0x12253a),window[_0x1f51c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12253a,0x1d4c0);});}}_0x233a3e[_0x1f51c0([0x6f,0x6e])](_0x1f51c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2db853,_0xbac4a5)=>{if(_0xbac4a5[0x0]!=_0x228002)return _0x545324(_0x1f51c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbac4a5[0x1]={..._0xbac4a5[0x1],[_0x1f51c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x506fdf};},{[_0x1f51c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f51c0([0x68,0x69,0x67,0x68])}),_0x233a3e[_0x1f51c0([0x6f,0x6e])](_0x1f51c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x448e19=>{_0x2a93a0(_0x448e19[_0x1f51c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb6b444=!0x0,_0x48a047(_0x448e19[_0x1f51c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f51c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f51c0([0x6c,0x6f,0x77])}),_0xc8573b[_0x1f51c0([0x74,0x68,0x65,0x6e])](()=>{_0xb6b444||_0x545324(_0x1f51c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x140115(){return _0x233a3e[_0x1f51c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f51c0([0x76,0x69,0x65,0x77])][_0x1f51c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f51c0([0x61,0x75,0x74,0x6f]);}function _0x3e14a1(){_0x233a3e[_0x1f51c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f51c0([0x76,0x69,0x65,0x77])][_0x1f51c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f51c0([0x61,0x75,0x74,0x6f]);}}(_0x2e5bbd[_0x1f51c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e5bbd[_0x1f51c0([0x6a,0x74,0x69])]));const _0x52108c=await(async function(){let _0x2488b7=!0x0;try{const _0x20fefc=_0x169217[_0x1f51c0([0x73,0x70,0x6c,0x69,0x74])](_0x1f51c0([0x2e])),[_0x3c7d8a,_0x261261,_0x4f5382]=_0x20fefc;return _0x46af23(_0x3c7d8a),await _0x27f794(_0x3c7d8a,_0x261261,_0x4f5382),_0x2488b7;}catch{return!0x1;}function _0x46af23(_0x59c129){const _0x145afb=_0xfb89ee(_0x59c129);_0x145afb&&_0x145afb[_0x1f51c0([0x61,0x6c,0x67])]==_0x1f51c0([0x45,0x53,0x32,0x35,0x36])||(_0x2488b7=!0x1);}async function _0x27f794(_0x473f10,_0x33d4cc,_0x5f73e7){const _0x110d7b=window[_0x1f51c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f51c0([0x66,0x72,0x6f,0x6d])](_0x181fd4(_0x5f73e7),_0x4015a2=>_0x4015a2[_0x1f51c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x377d62=new window[(_0x1f51c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f51c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x473f10+_0x1f51c0([0x2e])+_0x33d4cc),_0x169291=window[_0x1f51c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f51c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x169291)return;const _0xde9f8b=await _0x169291[_0x1f51c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f51c0([0x6a,0x77,0x6b]),_0x57a17,{[_0x1f51c0([0x6e,0x61,0x6d,0x65])]:_0x1f51c0([0x45,0x43,0x44,0x53,0x41]),[_0x1f51c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f51c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f51c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x169291[_0x1f51c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f51c0([0x6e,0x61,0x6d,0x65])]:_0x1f51c0([0x45,0x43,0x44,0x53,0x41]),[_0x1f51c0([0x68,0x61,0x73,0x68])]:{[_0x1f51c0([0x6e,0x61,0x6d,0x65])]:_0x1f51c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xde9f8b,_0x110d7b,_0x377d62)||(_0x2488b7=!0x1);}}());return _0x52108c?(function(){const _0x364c07=_0x2e5bbd[_0x1f51c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x364c07)return!0x1;if(_0x364c07[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f51c0([0x2a])))return!0x0;if(_0x364c07[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f51c0([0x43,0x4d,0x54])))return!0x0;if(_0x364c07[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f51c0([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1f51c0([0x67,0x6c,0x6f,0x62])]&&window[_0x1f51c0([0x67,0x6c,0x6f,0x62])][_0x1f51c0([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;if(_0x364c07[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f51c0([0x52,0x43,0x4d,0x54]))){if(_0x5a500f(_0x1f51c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x2d8c1c=_0x1f51c0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x233a3e[_0x1f51c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f51c0([0x67,0x65,0x74])](_0x2d8c1c))[_0x1f51c0([0x73,0x74,0x61,0x74,0x65])]==_0x1f51c0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x5a500f(_0x1f51c0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x5a500f(_0x1f51c0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x2d8c1c;return!0x1;}())?(function(){const _0x1f5043=[_0x1f51c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f51c0([0x74,0x72,0x69,0x61,0x6c])][_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e5bbd[_0x1f51c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ccea8/0x3e8:0x69e02680;return _0x2e5bbd[_0x1f51c0([0x65,0x78,0x70])]<_0x1f5043;}())?_0x1f51c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x5d945d=_0x2e5bbd[_0x1f51c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d945d||0x0==_0x5d945d[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b3c60}=new URL(window[_0x1f51c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d945d[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3c60))return!0x0;const _0x29759a=_0x2b3c60[_0x1f51c0([0x73,0x70,0x6c,0x69,0x74])](_0x1f51c0([0x2e]));return _0x5d945d[_0x1f51c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9e436a=>_0x9e436a[_0x1f51c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f51c0([0x2a])))[_0x1f51c0([0x6d,0x61,0x70])](_0xf8dc54=>_0xf8dc54[_0x1f51c0([0x73,0x70,0x6c,0x69,0x74])](_0x1f51c0([0x2e])))[_0x1f51c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x55e900=>_0x55e900[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x29759a[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f51c0([0x6d,0x61,0x70])](_0x266142=>Array(_0x29759a[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x266142[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f51c0([0x66,0x69,0x6c,0x6c])](_0x266142[0x0]===_0x1f51c0([0x2a])?_0x1f51c0([0x2a]):'')[_0x1f51c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x266142))[_0x1f51c0([0x73,0x6f,0x6d,0x65])](_0x2e530e=>_0x29759a[_0x1f51c0([0x65,0x76,0x65,0x72,0x79])]((_0x4b3f40,_0xba85d8)=>_0x2e530e[_0xba85d8]===_0x4b3f40||_0x2e530e[_0xba85d8]===_0x1f51c0([0x2a])));}())?(_0x2e5bbd[_0x1f51c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f51c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10ac19=function(_0x5b560c){const _0x3d3f52=new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34c6f6=>setTimeout(_0x34c6f6,0x93ecc)),_0xe90b0f=_0xc8573b[_0x1f51c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c7ba6=>{let _0x264fb7=0x0;_0x233a3e[_0x1f51c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f51c0([0x6f,0x6e])](_0x1f51c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17611b,_0x49ad95)=>{_0x49ad95[0x0][_0x1f51c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x264fb7++,0x5e8==_0x264fb7&&(_0x3c7ba6(),_0x17611b[_0x1f51c0([0x6f,0x66,0x66])]());});})),_0x26e5ae=[_0x3d3f52,_0xe90b0f];return window[_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f51c0([0x72,0x61,0x63,0x65])](_0x26e5ae)[_0x1f51c0([0x74,0x68,0x65,0x6e])](()=>_0x5b560c);}(_0x1f51c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x10ac19&&_0x3433f9)return new window[(_0x1f51c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7fb1,_0x3c9bdb)=>{_0x10ac19[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x4e7fb1,_0x3c9bdb),_0x3433f9[_0x1f51c0([0x74,0x68,0x65,0x6e])](_0x57f46e=>{_0x57f46e!=_0x1f51c0([0x56,0x61,0x6c,0x69,0x64])&&_0x4e7fb1(_0x57f46e);},_0x3c9bdb);});return _0x10ac19||_0x3433f9||_0x1f51c0([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1f51c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f51c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f51c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f51c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0xfb89ee(_0x3b8c44){return _0x3b8c44[_0x1f51c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f51c0([0x65,0x79]))?JSON[_0x1f51c0([0x70,0x61,0x72,0x73,0x65])](_0x181fd4(_0x3b8c44)):null;}function _0x181fd4(_0x3e81f2){return window[_0x1f51c0([0x61,0x74,0x6f,0x62])](_0x3e81f2[_0x1f51c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f51c0([0x2b]))[_0x1f51c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f51c0([0x2f])));}function _0x328a9f(_0x5bc908){let _0x3bf640=0x1505;function _0x51ba74(_0x233eee){for(let _0x53e9c5=0x0;_0x53e9c5<_0x233eee[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53e9c5++){const _0x2c8d7c=_0x233eee[_0x1f51c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53e9c5);_0x3bf640=(_0x3bf640<<0x5)+_0x3bf640+_0x2c8d7c,_0x3bf640&=_0x3bf640;}}return function _0x49cfbb(_0x3fbf92){Array[_0x1f51c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3fbf92)?_0x3fbf92[_0x1f51c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49cfbb):_0x3fbf92&&typeof _0x3fbf92==_0x1f51c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f51c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3fbf92)[_0x1f51c0([0x73,0x6f,0x72,0x74])]()[_0x1f51c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e1a5b,_0x176508])=>{_0x51ba74(_0x2e1a5b),_0x49cfbb(_0x176508);}):_0x51ba74(window[_0x1f51c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3fbf92));}(_0x5bc908),_0x3bf640>>>0x0;}function _0x508866(_0x3b7583){return _0x3b7583[_0x1f51c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f51c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f51c0([0x30]));}function _0x482704(_0x1736d0){return _0x1736d0[_0x1f51c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f51c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f51c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x5a500f(_0x282a5e){return _0x233a3e[_0x1f51c0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1f51c0([0x68,0x61,0x73])](_0x282a5e);}function _0x52f303(){}function _0x1f51c0(_0x54efef){return _0x54efef['map'](_0x4b6b49=>String['fromCharCode'](_0x4b6b49))['join']('');}!function(_0x3e7cad){const _0x53d82d=(function(){const _0x22a9ef=window[_0x1f51c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f51c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f51c0([0x6e,0x6f,0x77])]())[_0x1f51c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f51c0([0x2e]),'');let _0x1ba064=_0x1f51c0([0x4b]);for(let _0x1b09fa=0x0;_0x1b09fa<_0x22a9ef[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b09fa+=0x2){let _0x1cbb65=window[_0x1f51c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22a9ef[_0x1f51c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b09fa,_0x1b09fa+0x2));_0x1cbb65>=_0x5c03d4[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1cbb65-=_0x5c03d4[_0x1f51c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ba064+=_0x5c03d4[_0x1cbb65];}return _0x1ba064;}());_0x233a3e[_0x53d82d]=_0x1f51c0([0x63,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3e7cad,_0x3e7cad!=_0x1f51c0([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xc8573b,_0x233a3e[_0x1f51c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f51c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x52f303,_0x233a3e[_0x1f51c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f51c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x52f303,_0x233a3e[_0x1f51c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f51c0([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x68d087);}class CommentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'CommentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,CommentsEditing,EditorAnnotations,Annotations];}get['CommentsListView'](){return CommentsListView;}get['CommentThreadInputView'](){return CommentThreadInputView;}['init'](){const _0x247565=this['editor'],_0x5a962e=_0x247565['plugins']['get'](CommentsRepository),_0x20b74b=_0x247565['plugins']['get'](CommentsEditing),_0x52a652=_0x247565['plugins']['get'](Annotations),_0x4fed89=_0x247565['plugins']['get'](EditorAnnotations);_0x247565['ui']['componentFactory']['add']('comment',()=>{const _0x3a9d7e=this['_createUIButton'](ButtonView);return _0x3a9d7e['tooltip']=!0x0,_0x3a9d7e;}),_0x247565['ui']['componentFactory']['add']('menuBar:comment',()=>this['_createUIButton'](MenuBarMenuListItemButtonView)),_0x4fed89['addSourceCollector'](()=>{const _0x722b9e=[];for(const [_0x1d7fa4,_0x371247]of _0x5a962e['_threadToController']){const _0x1e0804=_0x20b74b['getAllMarkersForId'](_0x1d7fa4['id']),_0x324c82=_0x1e0804['map'](_0x2fc178=>_0x2fc178['getRange']());_0x1e0804['length']>0x0&&_0x722b9e['push']([_0x371247['view'],_0x324c82]);}return _0x722b9e;}),this['listenTo'](_0x52a652,'change:activeAnnotations',(_0x26be8b,_0x5567b6,_0x1e3ab1)=>{const _0x2e1de=Array['from'](_0x1e3ab1)['map'](_0x4abffc=>_0x4abffc['innerView'])['find'](_0x421e50=>_0x5a962e['_viewToController']['has'](_0x421e50));if(!_0x2e1de)return void(_0x20b74b['activeMarker']=null);const _0x31117a=_0x5a962e['_viewToController']['get'](_0x2e1de)['model']['id'],_0x292d1a='comment:'+_0x31117a;_0x31117a&&_0x20b74b['hasMarkerForId'](_0x31117a)?_0x20b74b['activeMarker']=_0x292d1a:_0x20b74b['activeMarker']&&(_0x20b74b['activeMarker']=null);}),this['listenTo'](_0x5a962e,'removeCommentThread',(_0x5d6440,{threadId:_0x367391,isFromAdapter:_0x1c79bc})=>{!_0x1c79bc&&_0x247565['ui']['focusTracker']['isFocused']&&_0x20b74b['hasMarkerForId'](_0x367391)&&_0x247565['editing']['view']['focus']();},{'priority':'highest'}),this['listenTo'](_0x5a962e,'addComment',(_0x27a52d,{threadId:_0x4f2de7,isFromAdapter:_0x4448a5})=>{if(_0x4448a5||!_0x20b74b['hasMarkerForId'](_0x4f2de7)||!_0x5a962e['hasCommentThread'](_0x4f2de7))return;0x1===_0x5a962e['getCommentThread'](_0x4f2de7)['length']&&(_0x247565['editing']['view']['focus'](),_0x27a52d['stop']());},{'priority':'low'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcd3c34=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dcb9e;for(const _0x2ff34c in _0xcd3c34){const _0x2688b4=_0x2ff34c,_0x14d630=_0xcd3c34[_0x2688b4];if('commentsLicenseKeyValid'==_0x14d630||'commentsLicenseKeyInvalid'==_0x14d630||'commentsLicenseKeyExpired'==_0x14d630||'commentsLicenseKeyDomainLimit'==_0x14d630||'commentsLicenseKeyNotAllowed'==_0x14d630||'commentsLicenseKeyEvaluationLimit'==_0x14d630||'commentsLicenseKeyUsageLimit'==_0x14d630){delete _0xcd3c34[_0x2688b4],_0x5dcb9e=_0x14d630,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'commentsLicenseKeyInvalid'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('invalid'),'commentsLicenseKeyExpired'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('expired'),'commentsLicenseKeyDomainLimit'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('domainLimit'),'commentsLicenseKeyNotAllowed'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('featureNotAllowed','Comments'),'commentsLicenseKeyEvaluationLimit'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('evaluationLimit'),'commentsLicenseKeyUsageLimit'==_0x5dcb9e&&_0xcd3c34['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_createUIButton'](_0x52baa0){const _0x3b8690=this['editor'],_0x52496b=new _0x52baa0(_0x3b8690['locale']),_0x3f1d37=_0x3b8690['commands']['get']('addCommentThread');return _0x52496b['set']({'label':getTranslation$f(_0x3b8690['locale'],'Comment'),'icon':IconAddComment}),_0x52496b['bind']('isEnabled')['to'](_0x3f1d37,'isEnabled',_0x3f1d37,'hasContent',(_0x1a2bd7,_0x2d01b9)=>_0x1a2bd7&&_0x2d01b9),this['listenTo'](_0x52496b,'execute',()=>{_0x3f1d37['execute']();}),_0x52496b;}}class CommentsOnly extends Plugin{static get['pluginName'](){return'CommentsOnly';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsEditing];}constructor(_0x5c522c){super(_0x5c522c),this['set']('isEnabled',!0x1),this['on']('change:isEnabled',(_0x393242,_0x507839,_0xeadd01)=>{_0xeadd01?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}['afterInit'](){!this['isEnabled']&&this['editor']['config']['get']('commentsOnly')&&(this['isEnabled']=!0x0);}['_enableCommentsOnlyMode'](){for(const [_0x573a40,_0x1d7cfb]of this['editor']['commands'])_0x1d7cfb['affectsData']&&'addCommentThread'!==_0x573a40&&_0x1d7cfb['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 _0x181bbc=this['editor']['editing']['view']['document'];this['listenTo'](_0x181bbc,'cut',_0x774740=>_0x774740['stop'](),{'priority':'highest'}),this['listenTo'](_0x181bbc,'clipboardInput',_0x1a9da9=>_0x1a9da9['stop'](),{'priority':'highest'}),this['listenTo'](_0x181bbc,'delete',_0x26d27c=>_0x26d27c['stop'](),{'priority':'highest'});}['_disableCommentsOnlyMode'](){for(const [_0x3b77be,_0x422871]of this['editor']['commands'])_0x422871['affectsData']&&'addCommentThread'!==_0x3b77be&&_0x422871['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']);}}class AnnotationsUIs extends ContextPlugin{['activeUIs'];['uisData'];['_uis'];static get['requires'](){return[Annotations];}static get['pluginName'](){return'AnnotationsUIs';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25004d){super(_0x25004d),this['activeUIs']=new Set(),this['_uis']=new Map(),this['uisData']=new Map();}['init'](){const _0x5e288a=this['context']['plugins']['get'](Annotations);this['listenTo'](_0x5e288a,'_activateAnnotation',(_0x3fe893,_0x325af4)=>{for(const _0x5983ae of this['activeUIs']){const _0x4a55f1=this['_uis']['get'](_0x5983ae);(0x0,this['uisData']['get'](_0x5983ae)['filter'])(_0x325af4)&&_0x4a55f1['setActiveAnnotation'](_0x325af4);}}),this['listenTo'](_0x5e288a,'_deactivateAllAnnotations',()=>{for(const _0x4678f9 of this['activeUIs']){this['_uis']['get'](_0x4678f9)['setActiveAnnotation'](null);}}),this['listenTo'](_0x5e288a['_visibleAnnotations'],'add',(_0x2887cf,_0x3d726c)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x3d726c);});}['hasActive'](){return this['activeUIs']['size']>0x0;}['isActive'](_0x4f1bc7){return this['activeUIs']['has'](_0x4f1bc7);}['activate'](_0x285b26,_0x2a6435=this['defaultFilter']){const _0x32f0f5=this['context']['plugins']['get'](Annotations);if(!this['_uis']['has'](_0x285b26))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x285b26});this['isActive'](_0x285b26)&&this['deactivate'](_0x285b26),this['activeUIs']['add'](_0x285b26);const _0x3c82b3=new AnnotationCollection();bindAnnotationCollections({'source':_0x32f0f5['_visibleAnnotations'],'target':_0x3c82b3,'filter':_0x2a6435}),this['uisData']['set'](_0x285b26,{'collection':_0x3c82b3,'filter':_0x2a6435});const _0x50ceba=this['_uis']['get'](_0x285b26);_0x50ceba['attach'](_0x3c82b3),this['listenTo'](_0x50ceba,'change:activeAnnotation',(_0x1bec96,_0x78196e,_0x1b0cdc,_0x1fdbe2)=>{_0x1fdbe2&&_0x32f0f5['_removeActiveAnnotation'](_0x1fdbe2),_0x1b0cdc&&_0x32f0f5['_addActiveAnnotation'](_0x1b0cdc);});}['deactivate'](_0x271410){if(this['activeUIs']['delete'](_0x271410),!this['_uis']['has'](_0x271410))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x271410});const _0x25bba5=this['_uis']['get'](_0x271410);_0x25bba5['detach'](),this['stopListening'](_0x25bba5),this['uisData']['get'](_0x271410)['collection']['destroy'](),this['uisData']['delete'](_0x271410);}['switchTo'](_0x5730fe){if(!this['_uis']['has'](_0x5730fe))throw new CKEditorError('annotationsuis-missing-ui',this,{'uiName':_0x5730fe});const _0xc4a6c2=this['context']['plugins']['get'](Annotations),_0x2030b8=Array['from'](_0xc4a6c2['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x5730fe);const _0x4c0221=this['_uis']['get'](_0x5730fe);_0x4c0221['setActiveAnnotation'](_0x2030b8),_0x4c0221['_setSelectedAnnotations']&&_0x2030b8&&_0x4c0221['_setSelectedAnnotations']([_0x2030b8]);}['deactivateAll'](){for(const _0x538551 of this['activeUIs'])this['deactivate'](_0x538551);}['register'](_0x5bf8bd,_0x1a4cad){if(this['_uis']['has'](_0x5bf8bd))throw new CKEditorError('annotationsuis-register-already-registered');if('function'!=typeof _0x1a4cad['attach']||'function'!=typeof _0x1a4cad['detach']||'function'!=typeof _0x1a4cad['setActiveAnnotation'])throw new CKEditorError('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x5bf8bd,_0x1a4cad);}['refilterAnnotations'](){const _0x13eb99=this['context']['plugins']['get'](Annotations)['collection'],_0x293fdf=new Map(),_0xac8fa3=Array['from'](this['activeUIs']);for(const _0x16a2a1 of this['activeUIs']){const _0x34ab92=this['uisData']['get'](_0x16a2a1)['collection'];for(const _0x2994cc of _0x34ab92)_0x293fdf['set'](_0x2994cc,_0x16a2a1);}for(const _0x1dd7ca of _0x13eb99){const _0x28efbd=_0x293fdf['get'](_0x1dd7ca);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x1dd7ca);const _0x241560=_0xac8fa3['find'](_0xe88e92=>this['uisData']['get'](_0xe88e92)['filter'](_0x1dd7ca));_0x28efbd!==_0x241560&&(_0x28efbd&&this['uisData']['get'](_0x28efbd)['collection']['remove'](_0x1dd7ca),_0x241560&&this['uisData']['get'](_0x241560)['collection']['add'](_0x1dd7ca));}}['destroy'](){this['deactivateAll'](),super['destroy']();}['defaultFilter'](){return!0x0;}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x573431){const _0x3aaf71=[];for(const _0x4c9066 of this['activeUIs']){(0x0,this['uisData']['get'](_0x4c9066)['filter'])(_0x573431)&&_0x3aaf71['push'](_0x4c9066);}if(_0x3aaf71['length']>0x1)throw new CKEditorError('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x3aaf71,'annotationType':_0x573431['type']});}}const toPx$2=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarView extends View{['list'];['focusables'];['focusTracker'];['focusCycler'];constructor(_0x4e84c9){super(_0x4e84c9);const _0x1bd708=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 FocusTracker(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker']}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-sidebar','ck-reset',_0x1bd708['to']('class')],'style':{'minHeight':_0x1bd708['to']('minHeight',_0x19d630=>'number'==typeof _0x19d630?toPx$2(_0x19d630+0xa):null)},'dir':_0x4e84c9['uiLanguageDirection'],'role':'application','aria-label':getTranslation$f(_0x4e84c9,'Annotations\x20sidebar'),'tabindex':0x0},'children':[{'tag':'div','attributes':{'role':'list','aria-label':getTranslation$f(_0x4e84c9,'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',_0x2d8635=>{this['_updateItemPositionInFocusables'](_0x2d8635['source']);}),this['list']['forEach'](_0x1d7820=>{this['focusTracker']['add'](_0x1d7820['element']),this['_updateItemPositionInFocusables'](_0x1d7820);}),this['list']['on']('change',(_0x39a228,_0x3f5433)=>{for(const _0x235167 of _0x3f5433['removed'])this['focusTracker']['remove'](_0x235167['element']),this['focusables']['remove'](_0x235167);for(const _0xf33852 of _0x3f5433['added'])this['focusTracker']['add'](_0xf33852['element']),this['_updateItemPositionInFocusables'](_0xf33852);}),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['listenTo'](this['element'],'focus',()=>{this['focus']();});}['_updateItemPositionInFocusables'](_0x3e52a2){const _0x2f8bc0=this['focusables']['getIndex'](_0x3e52a2);let _0x28f8fe,_0x29fac3;for(const _0x36e541 of this['focusables'])if(_0x3e52a2['top']<_0x36e541['top']){_0x28f8fe=_0x36e541;break;}if(_0x29fac3=_0x28f8fe?this['focusables']['getIndex'](_0x28f8fe):this['focusables']['length'],-0x1!==_0x2f8bc0){if(_0x2f8bc0===_0x29fac3-0x1)return;this['focusables']['remove'](_0x3e52a2),_0x29fac3=_0x28f8fe?this['focusables']['getIndex'](_0x28f8fe):this['focusables']['length'];}this['focusables']['add'](_0x3e52a2,_0x29fac3);}}const toPx$1=/* #__PURE__ -- @preserve */
toUnit('px');class AnnotationsSidebarItemView extends View{['content'];['_targetTop'];['_mutationObserver'];constructor(_0x51d4bb){super(_0x51d4bb),this['set']('top',0x0),this['set']('height',0x0),this['bind']('bottom')['to'](this,'top',this,'height',(_0xc60351,_0x34c305)=>_0xc60351+_0x34c305),this['set']('isAnimationDisabled',!0x1),this['_mutationObserver']=createMutationObserver(()=>this['updateHeight']()),this['_targetTop']=null,this['content']=this['createCollection'](),this['content']['delegate']('arrowup','arrowdown')['to'](this);const _0x1cb257=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-sidebar-item',_0x1cb257['to']('isAnimationDisabled',_0x4a15d1=>_0x4a15d1?'ck-sidebar-item--no-animation':'')],'style':{'top':_0x1cb257['to']('top',_0x29f75b=>toPx$1(_0x29f75b))},'role':'presentation'},'children':this['content']});}['render'](){super['render'](),this['_mutationObserver']['attach'](this['element']);}['focus'](){this['content']['first']&&this['content']['first']['focus']();}['updateHeight'](){const _0x14ae4c=this['element']['clientHeight'];_0x14ae4c&&(this['height']=_0x14ae4c);}['destroy'](){this['content']['clear'](),this['_mutationObserver']['detach'](),super['destroy']();}}class Sidebar extends ContextPlugin{['view'];['_activeAnnotation'];['_annotations'];['_spaceBetweenItems'];['_sidebarItemViewToAnnotation'];['_annotationToSidebarItemView'];['_recalculateBuffer'];static get['pluginName'](){return'Sidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17feef){super(_0x17feef),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 _0x17dc2b=this['context']['config']['get']('sidebar.container');_0x17dc2b&&this['setContainer'](_0x17dc2b);}['setContainer'](_0x45c310){if(!isElement(_0x45c310))throw new CKEditorError('sidebar-setcontainer-invalid-element');this['container']=_0x45c310;}['_attachToContainer']({viewClass:_0x332399='',spaceBetweenItems:_0x4bbd00=0x19}={}){if(!isElement(this['container']))throw new CKEditorError('sidebar-attachtocontainer-missing-container',this);this['container']['appendChild'](this['view']['element']),this['view']['class']=_0x332399,this['_spaceBetweenItems']=_0x4bbd00;}['rearrange']({removedAnnotation:_0x2e11c8,previousAnnotation:_0x227b88,nextAnnotation:_0x3ad706}){const _0x4dc58f=this['getSidebarItemView'](_0x2e11c8);this['view']['list']['remove'](_0x4dc58f),this['_destroySidebarItemView'](_0x2e11c8),_0x227b88&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x227b88)),_0x3ad706&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x3ad706)),this['_updateLastItem']();}['refresh']({blurredAnnotation:_0xad6aea,activatedAnnotation:_0x46a192,disableAnimationOnActivatedAnnotation:_0x302379}){if(this['_activeAnnotation']=_0x46a192,_0xad6aea){_0xad6aea['isActive']=!0x1;const _0x28de21=this['getSidebarItemView'](_0xad6aea);_0x28de21&&_0x302379&&(_0x28de21['isAnimationDisabled']=!0x1);}if(_0x46a192){const _0x203ee9=this['getSidebarItemView'](_0x46a192);_0x203ee9&&(_0x46a192['isActive']=!0x0,_0x302379&&(_0x203ee9['isAnimationDisabled']=!0x0,_0x203ee9['top']+=0x1),this['_alignToTargetRect'](_0x203ee9));}}['_detachFromContainer'](_0xec7e95){if(this['view']['element']['remove'](),_0xec7e95){for(const _0x365232 of _0xec7e95)this['_destroySidebarItemView'](_0x365232);}this['view']['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}['addAnnotation'](_0x4d57c1,_0x42e9b2){_0x42e9b2||(_0x42e9b2=_0x4d57c1['view']);const _0x202fbe=new AnnotationsSidebarItemView(this['context']['locale']);this['_sidebarItemViewToAnnotation']['set'](_0x202fbe,_0x4d57c1),this['_annotationToSidebarItemView']['set'](_0x4d57c1,_0x202fbe),_0x202fbe['content']['add'](_0x42e9b2),this['listenTo'](_0x4d57c1['view'],'change:targetRect',(_0x2f21df,_0x5b80eb,_0x57160e)=>{const _0x519ddf=this['_getTargetTop'](_0x4d57c1,_0x57160e);_0x202fbe['_targetTop']!=_0x519ddf&&(_0x202fbe['_targetTop']=_0x519ddf,this['_setItemTop'](_0x202fbe,_0x519ddf));}),this['listenTo'](_0x202fbe,'change:top',()=>{this['_recalculate'](_0x202fbe,'top');}),this['listenTo'](_0x202fbe,'change:bottom',()=>{this['_recalculate'](_0x202fbe,'bottom');}),this['_alignToTargetRect'](_0x202fbe);const _0x4aad41=this['_getItemBefore'](_0x202fbe);if(_0x4aad41)this['_alignAfterItem'](_0x4aad41,_0x202fbe)||this['_alignToTargetRect'](_0x202fbe);else this['_alignToTargetRect'](_0x202fbe);return this['_updateLastItem'](),this['view']['list']['add'](_0x202fbe),_0x202fbe;}['_alignForTopChange'](_0x70cc2f){if(!_0x70cc2f['content']['length'])return;const _0x2c33b9=this['_getItemBefore'](_0x70cc2f);if(!_0x2c33b9)return;const _0x2e998c=this['_sidebarItemViewToAnnotation']['get'](_0x2c33b9),_0x9616cf=this['_activeAnnotation'];_0x9616cf&&_0x9616cf===_0x2e998c?this['_alignAfterItem'](_0x2c33b9,_0x70cc2f):this['_alignBeforeItem'](_0x70cc2f,_0x2c33b9);}['_alignForBottomChange'](_0x15ac97){if(!_0x15ac97['content']['length'])return;const _0x1f0984=this['_getItemAfter'](_0x15ac97);if(!_0x1f0984)return;const _0x3b1e48=this['_sidebarItemViewToAnnotation']['get'](_0x1f0984),_0x5c993f=this['context']['config']['get']('sidebar.preventScrollOutOfView'),_0x359c50=this['_activeAnnotation'];_0x359c50&&_0x359c50===_0x3b1e48&&_0x5c993f?(this['_alignBeforeItem'](_0x1f0984,_0x15ac97),this['_alignAfterItem'](_0x15ac97,_0x1f0984)):_0x359c50&&_0x359c50===_0x3b1e48?this['_alignBeforeItem'](_0x1f0984,_0x15ac97):this['_alignAfterItem'](_0x15ac97,_0x1f0984);}['_recalculate'](_0x373dd8,_0x35ca82){0x0===this['_recalculateBuffer']['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4bd745,changedProp:_0x161ed6}of this['_recalculateBuffer'])'top'===_0x161ed6?this['_alignForTopChange'](_0x4bd745):this['_alignForBottomChange'](_0x4bd745);this['_recalculateBuffer']=[];},0xa),this['_recalculateBuffer']['push']({'sidebarItemView':_0x373dd8,'changedProp':_0x35ca82});}['getSidebarItemView'](_0x261d84){return this['_annotationToSidebarItemView']['get'](_0x261d84);}['destroy'](){this['stopListening'](),this['view']['destroy']();}['_destroySidebarItemView'](_0x303d42){const _0x369f09=this['getSidebarItemView'](_0x303d42);this['stopListening'](_0x369f09),this['stopListening'](_0x303d42['view']),_0x369f09['destroy'](),this['_annotationToSidebarItemView']['delete'](_0x303d42),this['_sidebarItemViewToAnnotation']['delete'](_0x369f09);}['_createSidebarView'](){const _0x2bbce3=new AnnotationsSidebarView(this['context']['locale']);return _0x2bbce3['render'](),this['on']('change:_lastItem',(_0x1fa0e0,_0x18f77a,_0x4b74ff,_0x4404a2)=>{_0x4404a2&&_0x2bbce3['unbind']('minHeight'),_0x4b74ff?_0x2bbce3['bind']('minHeight')['to'](_0x4b74ff,'bottom'):_0x2bbce3['minHeight']=null;}),_0x2bbce3;}['_updateLastItem'](){this['_lastItem']=this['_annotations']?.['last']?this['getSidebarItemView'](this['_annotations']['last']):null;}['_getItemBefore'](_0x306a3b){const _0x43725c=this['_sidebarItemViewToAnnotation']['get'](_0x306a3b),_0x4a7304=_0x43725c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x43725c)-0x1);return _0x4a7304&&this['getSidebarItemView'](_0x4a7304)||null;}['_getItemAfter'](_0x42a1d5){const _0x120e2c=this['_sidebarItemViewToAnnotation']['get'](_0x42a1d5),_0x3d497f=_0x120e2c&&this['_annotations']?.['get'](this['_annotations']['getIndex'](_0x120e2c)+0x1);return _0x3d497f&&this['getSidebarItemView'](_0x3d497f)||null;}['_alignBeforeItem'](_0x2a32e4,_0x2ceaa4){_0x2a32e4['updateHeight']();const _0x3a28cb=getOverlap(_0x2ceaa4['bottom']+this['_spaceBetweenItems'],_0x2a32e4['top']);return!!_0x3a28cb&&(this['_setItemTop'](_0x2ceaa4,_0x2ceaa4['top']-_0x3a28cb),!0x0);}['_alignAfterItem'](_0x381361,_0x3812f4){_0x381361['updateHeight']();const _0x12556b=getOverlap(_0x381361['bottom']+this['_spaceBetweenItems'],_0x3812f4['top']);return!!_0x12556b&&(this['_setItemTop'](_0x3812f4,_0x3812f4['top']+_0x12556b,!0x1),!0x0);}['_alignToTargetRect'](_0x27463d){const _0x2a5ce5=this['_sidebarItemViewToAnnotation']['get'](_0x27463d);if(!_0x2a5ce5||!_0x2a5ce5['target']||!_0x2a5ce5['targetRect'])return;const _0x1f2df4=this['_getTargetTop'](_0x2a5ce5,_0x2a5ce5['targetRect']);this['_setItemTop'](_0x27463d,_0x1f2df4);}['_getTargetTop'](_0x27c38f,_0x560714){if(null===_0x560714)return 0x0;if(_0x27c38f['target']instanceof Rect)return _0x560714['top'];{const _0x3e1ed5=new Rect(this['view']['element'])['top'];return _0x560714['top']-_0x3e1ed5;}}['_setItemTop'](_0x559944,_0x8d0cc,_0x443de7=this['context']['config']['get']('sidebar.preventScrollOutOfView')){_0x443de7&&(_0x8d0cc=Math['max'](_0x8d0cc,this['_getMaxAvailableTop'](_0x559944))),_0x559944['top']=_0x8d0cc;}['_getMaxAvailableTop'](_0x38ddec){let _0x56c629=this['_getItemBefore'](_0x38ddec),_0xf58160=0x0;for(;_0x56c629;)_0x56c629['updateHeight'](),_0xf58160+=this['_spaceBetweenItems']+_0x56c629['height'],_0x56c629=this['_getItemBefore'](_0x56c629);return _0xf58160;}}function getOverlap(_0x145126,_0x265a46){return Math['max'](_0x145126-_0x265a46,0x0);}function isElement(_0x5eecbb){return null!==_0x5eecbb&&'object'==typeof _0x5eecbb&&0x1===_0x5eecbb['nodeType'];}class WideSidebar extends ContextPlugin{['isAttached'];['annotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'WideSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5754d6){super(_0x5754d6),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{_0x5754d6['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){const _0xd197a=this['context']['plugins']['get'](AnnotationsUIs),_0x2d2a49=this['context']['plugins']['get'](Sidebar);_0xd197a['register']('wideSidebar',this),_0x2d2a49['container']&&_0xd197a['switchTo']('wideSidebar');}['setActiveAnnotation'](_0x4366e6){if(_0x4366e6===this['activeAnnotation'])return;const _0x36a830=this['context']['plugins']['get'](Sidebar);_0x36a830['_activeAnnotation']=_0x4366e6;const _0x1f92e2=this['activeAnnotation'];_0x36a830['refresh']({'blurredAnnotation':_0x1f92e2,'activatedAnnotation':_0x4366e6}),this['activeAnnotation']=_0x4366e6;}['attach'](_0x1d4693){this['annotations']=_0x1d4693;const _0x5b8c80=this['context']['plugins']['get'](Sidebar);if(_0x5b8c80['_annotations']=_0x1d4693,this['isAttached'])throw new CKEditorError('widesidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x5b8c80,'set:container',()=>{this['detach'](),this['listenTo'](_0x5b8c80,'change:container',_0x60e464=>{_0x60e464['off'](),this['attach'](_0x1d4693);});}),_0x5b8c80['_attachToContainer']({'viewClass':'ck-sidebar--wide'});const _0x964deb=_0x47c81e=>{_0x47c81e['updateTargetRect'](),_0x5b8c80['addAnnotation'](_0x47c81e);};for(const _0x5981a9 of _0x1d4693)_0x964deb(_0x5981a9);this['listenTo'](_0x1d4693,'add',(_0xc9b20d,_0x2ff342)=>{_0x964deb(_0x2ff342);}),this['listenTo'](_0x1d4693,'remove',(_0x2ec1d0,_0x18b460,_0x42f82a)=>{_0x5b8c80['rearrange']({'removedAnnotation':_0x18b460,'previousAnnotation':_0x1d4693['get'](_0x42f82a-0x1),'nextAnnotation':_0x1d4693['get'](_0x42f82a+0x1)}),_0x18b460===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'high'}),this['listenTo'](_0x1d4693,'focus',(_0x14c98a,_0x1d87a7)=>{this['setActiveAnnotation'](_0x1d87a7);}),this['listenTo'](_0x1d4693,'blur',()=>{this['setActiveAnnotation'](null);});const _0x2fa890=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x4fc520 of _0x2fa890)this['_integrateWithEditorAnnotations'](_0x4fc520);this['listenTo'](_0x2fa890,'add',(_0x19ce85,_0x88bc)=>{this['listenTo'](_0x88bc,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x88bc);});}),this['listenTo'](_0x2fa890,'remove',(_0x45af17,_0x2177e9)=>{_0x2177e9['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x2177e9['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning']();}['detach'](){if(!this['isAttached'])throw new CKEditorError('widesidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x589e8e=this['context']['plugins']['get'](Sidebar);_0x589e8e['_detachFromContainer'](this['annotations']),this['stopListening'](_0x589e8e),this['stopListening'](this['annotations']),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0xd3492a of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0xd3492a);window['removeEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioningDebounced']['cancel'](),this['activeAnnotation']=null,this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach']();}['_integrateWithEditorAnnotations'](_0x2efe73){if(!_0x2efe73['plugins']['has']('EditorAnnotations'))return;const _0x3f11b0=_0x2efe73['plugins']['get']('EditorAnnotations'),_0x3ae0e2=()=>{const _0x428874=_0x3f11b0['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['setActiveAnnotation'](_0x428874[0x0]||null);};this['listenTo'](_0x3f11b0,'refresh',_0x3ae0e2),this['listenTo'](_0x3f11b0,'blur',(_0x1449ab,{isAnnotationTracked:_0x4ff7f0})=>{this['activeAnnotation']&&_0x4ff7f0(this['activeAnnotation'])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x3f11b0,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](this['annotations'],'blur',_0x4538b7=>{_0x3f11b0['hasDomSelection']()&&(_0x3ae0e2(),_0x4538b7['stop']());},{'priority':'high'}),this['_editorAnnotations']['add'](_0x3f11b0);}['_destroyEditorAnnotationsIntegration'](_0x4ee050){this['stopListening'](_0x4ee050),this['_editorAnnotations']['remove'](_0x4ee050);}}class AnnotationCounterButtonView extends ButtonView{['counterView'];constructor(_0xb0dd1){super(_0xb0dd1);const _0xc61dc9=this['bindTemplate'];this['set']('isDirty',!0x1),this['set']('number',0x0),this['bind']('_badge')['to'](this,'isDirty',this,'number',(_0x266009,_0x335cf4)=>_0x266009?'...':_0x335cf4['toString']()),this['set']('annotationType',''),this['icon']=IconAddComment,this['extendTemplate']({'attributes':{'class':['ck-annotation-counter']}}),this['counterView']=new View(),this['counterView']['setTemplate']({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0xc61dc9['to']('annotationType',_0x20bb84=>'ck-annotation-counter__badge--'+_0x20bb84),_0xc61dc9['if']('isDirty','ck-annotation-counter__badge--edit-mode')]},'children':[{'text':_0xc61dc9['to']('_badge')}]}),this['children']['add'](this['counterView']);}}class NarrowSidebar extends ContextPlugin{['isAttached'];['annotations'];['_manuallyClosedAnnotationViews'];['_domEmitter'];['_annotationToNarrowView'];['_selectedAnnotations'];['_editorAnnotations'];['_refreshPositioningDebounced'];static get['requires'](){return[Sidebar,AnnotationsUIs];}static get['pluginName'](){return'NarrowSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8a9aba){super(_0x8a9aba),this['isAttached']=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=new(DomEmitterMixin())(),this['_annotationToNarrowView']=new Map(),this['set']('activeAnnotation',null),this['annotations']=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new Collection(),this['_refreshPositioningDebounced']=debounce$1(()=>{this['_refreshPositioning']();},0xfa,{'leading':!0x1});}['init'](){this['context']['plugins']['get'](AnnotationsUIs)['register']('narrowSidebar',this),this['bodyCollection']=new BodyCollection(this['context']['locale']),this['balloonPanelView']=new BalloonPanelView(this['context']['locale']),this['bodyCollection']['attachToDom'](),this['bodyCollection']['add'](this['balloonPanelView']);}['attach'](_0x111837){this['annotations']=_0x111837;const _0x520c97=this['context']['plugins']['get'](Sidebar),_0x2eebe9=this['balloonPanelView'];if(_0x520c97['_annotations']=_0x111837,this['isAttached'])throw new CKEditorError('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this['listenTo'](_0x520c97,'set:container',()=>{this['detach'](),this['listenTo'](_0x520c97,'change:container',_0x34c67e=>{_0x34c67e['off'](),this['attach'](_0x111837);});}),_0x520c97['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x59ebbc=_0x35909f=>{const _0x3b66a0=new AnnotationCounterButtonView(this['context']['locale']);_0x520c97['addAnnotation'](_0x35909f,_0x3b66a0),this['_annotationToNarrowView']['set'](_0x35909f,_0x3b66a0),_0x3b66a0['bind']('isDirty','annotationType','number')['to'](_0x35909f['view'],'isDirty','type','length'),_0x3b66a0['on']('execute',()=>{this['_manuallyClosedAnnotationViews']['clear'](),_0x2eebe9['content']['first']!==_0x35909f['view']?(this['_showBalloon'](_0x35909f),_0x35909f['view']['element']['focus'](),this['setActiveAnnotation'](_0x35909f)):this['setActiveAnnotation'](null);});};for(const _0x127c1c of _0x111837)_0x59ebbc(_0x127c1c);this['listenTo'](_0x111837,'add',(_0x3fc2fe,_0x5a0ae5)=>{_0x59ebbc(_0x5a0ae5);}),this['listenTo'](_0x111837,'remove',(_0xeae268,_0x19e10e,_0x1e2f0c)=>{this['_annotationToNarrowView']['get'](_0x19e10e)['destroy'](),this['_annotationToNarrowView']['delete'](_0x19e10e),_0x520c97['rearrange']({'removedAnnotation':_0x19e10e,'previousAnnotation':_0x111837['get'](_0x1e2f0c-0x1),'nextAnnotation':_0x111837['get'](_0x1e2f0c+0x1)}),_0x19e10e===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x111837,'focus',(_0x108ae4,_0x83a9a5)=>{this['setActiveAnnotation'](_0x83a9a5);}),this['listenTo'](_0x111837,'blur',()=>{this['setActiveAnnotation'](null);}),this['_domEmitter']['listenTo'](document,'keydown',(_0x22e6bc,_0x306ce5)=>{_0x306ce5['keyCode']===keyCodes['esc']&&_0x2eebe9['isVisible']&&(this['_manuallyClosedAnnotationViews']['add'](_0x2eebe9['content']['first']),this['_hideBalloon'](),_0x306ce5['stopPropagation'](),_0x306ce5['preventDefault']());}),this['_domEmitter']['listenTo'](document,'mousedown',(_0x2553d1,_0xbfc121)=>{const _0x42683d=_0xbfc121['target'];_0x2eebe9['isVisible']&&_0x2eebe9['element']['contains'](_0x42683d)||_0x520c97['view']['element']['contains'](_0x42683d)||_0x2553d1['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements']['find'](_0x30fbbe=>_0x30fbbe['contains'](_0x42683d))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this['setActiveAnnotation'](null));});const _0x3bebe3=this['context']instanceof Context$1?this['context']['editors']:new Collection([this['context']]);for(const _0x2fdda5 of _0x3bebe3)this['_integrateWithEditorAnnotations'](_0x2fdda5);this['listenTo'](_0x3bebe3,'add',(_0x10db2,_0x15054e)=>{this['listenTo'](_0x15054e,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x15054e);});}),this['listenTo'](_0x3bebe3,'remove',(_0x165397,_0x700208)=>{_0x700208['plugins']['has']('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x700208['plugins']['get']('EditorAnnotations'));}),window['addEventListener']('resize',this['_refreshPositioningDebounced']),this['_refreshPositioning']();}['setActiveAnnotation'](_0x2c0115){if(_0x2c0115===this['activeAnnotation'])return;const _0x49f84a=this['context']['plugins']['get'](Sidebar);if(_0x49f84a['refresh']({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x2c0115,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2c0115)_0x49f84a['getSidebarItemView'](_0x2c0115)?this['_showBalloon'](_0x2c0115):this['_hideBalloon']();else this['_hideBalloon']();this['activeAnnotation']=_0x2c0115;}['detach'](){if(!this['isAttached'])throw new CKEditorError('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x227f51=this['context']['plugins']['get'](Sidebar);this['_hideBalloon'](),Array['from'](this['_annotationToNarrowView']['values'](),_0x3dda0d=>_0x3dda0d['destroy']()),this['_annotationToNarrowView']['clear'](),_0x227f51['_detachFromContainer'](this['annotations']),this['stopListening'](),this['_domEmitter']['stopListening'](),this['context']instanceof Context$1&&this['stopListening'](this['context']['editors']);for(const _0x4b84b7 of Array['from'](this['_editorAnnotations']))this['_destroyEditorAnnotationsIntegration'](_0x4b84b7);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'](_0xa39c7e){if(!_0xa39c7e['plugins']['has']('EditorAnnotations'))return;const _0x574e68=_0xa39c7e['plugins']['get']('EditorAnnotations'),_0x23ce4f=this['context']['plugins']['get'](Sidebar),_0x3fb1c8=this['annotations'],_0xb195fe=this['balloonPanelView'],_0x2ec2db=()=>{const _0x33633f=_0x574e68['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x33633f),this['setActiveAnnotation'](_0x33633f[0x0]||null);};this['listenTo'](_0x574e68,'refresh',_0x2ec2db),this['listenTo'](_0x574e68,'blur',(_0x45e57c,{isAnnotationTracked:_0x5b70b4})=>{this['activeAnnotation']&&_0x5b70b4(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x574e68,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this['listenTo'](_0x3fb1c8,'blur',_0x438c2f=>{_0x574e68['hasDomSelection']()&&_0x438c2f['stop']();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],'mousedown',(_0x618a19,_0x4f6a38)=>{const _0x4161ae=_0x4f6a38['target'];_0xb195fe['isVisible']&&_0xb195fe['element']['contains'](_0x4161ae)||_0x23ce4f['view']['element']['contains'](_0x4161ae)||this['activeAnnotation']&&_0x574e68['hasDomSelection']()&&(_0x2ec2db(),_0x618a19['preventClosingBalloon']=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x574e68);}['_destroyEditorAnnotationsIntegration'](_0x56beb8){_0x56beb8&&(this['stopListening'](_0x56beb8),this['_editorAnnotations']['remove'](_0x56beb8));}['_setSelectedAnnotations'](_0x372189){for(const _0x18ef9a of this['_selectedAnnotations'])_0x372189['includes'](_0x18ef9a)||this['_manuallyClosedAnnotationViews']['delete'](_0x18ef9a['view']);this['_selectedAnnotations']=_0x372189;}['_refreshPositioning'](){const _0x5c5600=this['balloonPanelView'];this['context']['plugins']['get']('Annotations')['refreshVisibility'](),this['annotations']['refreshPositioning'](),_0x5c5600['isVisible']&&this['_updateBalloonPosition']();}['_showBalloon'](_0x5f44e3){if(this['_manuallyClosedAnnotationViews']['has'](_0x5f44e3['view']))return;const _0x2d1968=this['balloonPanelView']['content']['first'];_0x2d1968!==_0x5f44e3['view']?(_0x2d1968&&this['_detachListeners'](_0x2d1968),this['_attachListeners'](_0x5f44e3['view']),this['balloonPanelView']['content']['clear'](),this['balloonPanelView']['content']['add'](_0x5f44e3['view']),this['_updateBalloonPosition']()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x386209=this['balloonPanelView']['content']['first'],_0x4de0e6=_0x386209&&this['annotations']['getByView'](_0x386209);if(!_0x4de0e6||!this['_annotationToNarrowView']['has'](_0x4de0e6))return;const _0x22ad30=this['_annotationToNarrowView']['get'](_0x4de0e6)['element'],_0x33d05a=getBalloonPositions();this['balloonPanelView']['pin']({'target':_0x22ad30,'positions':_0x33d05a});}['_hideBalloon'](){const _0x378577=this['balloonPanelView'],_0x5204d3=_0x378577['content']['first'];_0x5204d3&&(this['_detachListeners'](_0x5204d3),_0x378577['unpin'](),_0x378577['content']['clear']());}['_attachListeners'](_0x269c95){this['listenTo'](_0x269c95,'change:height',()=>this['_updateBalloonPosition']()),this['listenTo'](_0x269c95,'Esc',(_0x1c20da,_0x15b2f9)=>{this['_manuallyClosedAnnotationViews']['add'](_0x269c95),this['_hideBalloon'](),_0x15b2f9();});}['_detachListeners'](_0x1189fd){this['stopListening'](_0x1189fd);}}function getBalloonPositions(){const _0x59f572=BalloonPanelView['defaultPositions'];return[_0x59f572['southArrowNorthEast'],_0x59f572['northArrowSouthEast'],_0x59f572['southArrowNorth'],_0x59f572['northArrowSouth'],_0x59f572['southArrowNorthWest'],_0x59f572['northArrowSouthWest']];}class InlineAnnotations extends Plugin{['isAttached'];['annotations'];['_manuallyClosed'];['_balloon'];['_addedAnnotations'];['_selectedAnnotations'];['_forceRefresh'];['_refreshVisibilityDebounced'];static get['requires'](){return[EditorAnnotations,ContextualBalloon,AnnotationsUIs];}static get['pluginName'](){return'InlineAnnotations';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22e04e){super(_0x22e04e),_0x22e04e['editing']['view']['addObserver'](MouseObserver),this['isAttached']=!0x1,this['set']('activeAnnotation',null),this['annotations']=null,this['_manuallyClosed']=new Set(),this['_balloon']=_0x22e04e['plugins']['get'](ContextualBalloon),this['_addedAnnotations']=new Set(),this['_selectedAnnotations']=[],this['_forceRefresh']=!0x1,this['_refreshVisibilityDebounced']=debounce$1(()=>{this['editor']['plugins']['get']('Annotations')['refreshVisibility']();},0xfa,{'leading':!0x1});}['init'](){const _0x2a3698=this['editor']['plugins']['get'](AnnotationsUIs);_0x2a3698['context']===this['editor']&&(_0x2a3698['register']('inline',this),this['editor']['keystrokes']['set']('Esc',(_0xb4098c,_0x3ecaac)=>{const _0x283681=this['_balloon'];if(this['isAttached']&&_0x283681['visibleView']){const _0x1bd874=this['annotations']['getByView'](_0x283681['visibleView']);_0x1bd874&&this['_closeAnnotation'](_0x1bd874),_0x3ecaac();}}));}['afterInit'](){const _0x4853f4=this['editor']['plugins']['get'](AnnotationsUIs);_0x4853f4['context']===this['editor']&&(_0x4853f4['hasActive']()||_0x4853f4['switchTo']('inline'));}['setActiveAnnotation'](_0x1e627e){_0x1e627e!==this['activeAnnotation']&&(this['activeAnnotation']&&(this['activeAnnotation']['isActive']=!0x1),_0x1e627e&&this['editor']['ui']['focusTracker']['isFocused']&&(this['annotations']['has'](_0x1e627e)&&this['_addAnnotationToBalloon'](_0x1e627e,!0x0),_0x1e627e['isActive']=!0x0),_0x1e627e||this['_setSelectedAnnotations']([]),this['activeAnnotation']=_0x1e627e);}['attach'](_0x225fde){this['annotations']=_0x225fde;const _0x414721=this['editor']['plugins']['get'](AnnotationsUIs),_0x313bd0=this['_balloon'];if(this['isAttached'])throw new CKEditorError('inlineannotations-attach-already-attached',this);if(_0x414721['context']!==this['editor'])throw new CKEditorError('inlineannotations-not-allowed-with-context',this);const _0x33107f=this['editor']['plugins']['get'](EditorAnnotations);this['listenTo'](_0x33107f,'refresh',()=>{const _0x14fecd=_0x33107f['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});!this['_forceRefresh']&&arraysEqual(_0x14fecd,this['_selectedAnnotations'])||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x14fecd),this['setActiveAnnotation'](_0x14fecd[0x0]||null));}),this['listenTo'](_0x33107f,'blur',(_0x15793b,{isAnnotationTracked:_0x15f8de})=>{this['activeAnnotation']&&_0x15f8de(this['activeAnnotation'])&&(this['_setSelectedAnnotations']([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x33107f,'uiUpdate',()=>{this['_refreshVisibilityDebounced']();}),this['listenTo'](this['editor']['ui']['focusTracker'],'change:isFocused',(_0x1fb96b,_0x3c96cb,_0x1ba7c9)=>{_0x1ba7c9||this['setActiveAnnotation'](null);}),this['listenTo'](_0x225fde,'remove',(_0x16c3df,_0xbaaf4e)=>{this['_removeAnnotationFromBalloon'](_0xbaaf4e),_0xbaaf4e===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x313bd0,'change:visibleView',(_0x2ff471,_0x3ffa5d,_0x92e82c,_0x2b2ded)=>{_0x2b2ded&&this['stopListening'](_0x2b2ded);const _0x4ccc81=_0x225fde['getByView'](_0x92e82c);_0x92e82c&&_0x4ccc81&&(this['listenTo'](_0x92e82c,'change:height',()=>{_0x313bd0['updatePosition']();}),this['listenTo'](_0x92e82c,'Esc',()=>{this['_closeAnnotation'](_0x4ccc81),this['editor']['editing']['view']['focus']();}),this['activeAnnotation']!==_0x4ccc81&&this['setActiveAnnotation'](_0x4ccc81));}),this['listenTo'](this['editor']['ui'],'update',()=>{_0x313bd0['visibleView']&&(_0x225fde['getByView'](_0x313bd0['visibleView'])&&_0x313bd0['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 CKEditorError('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x5cbff8 of this['_addedAnnotations'])this['_removeAnnotationFromBalloon'](_0x5cbff8);this['_refreshVisibilityDebounced']['cancel'](),this['stopListening'](),this['isAttached']=!0x1,this['annotations']=null;}['destroy'](){this['isAttached']&&this['detach'](),this['_refreshVisibilityDebounced']['cancel']();}['_setSelectedAnnotations'](_0x28ed42){for(const _0x330915 of this['_selectedAnnotations'])_0x28ed42['includes'](_0x330915)||this['_manuallyClosed']['delete'](_0x330915);for(const _0x1fb656 of this['annotations'])_0x28ed42['includes'](_0x1fb656)||this['_removeAnnotationFromBalloon'](_0x1fb656);if(this['editor']['ui']['focusTracker']['isFocused']){for(const _0x412c1f of _0x28ed42)this['_addAnnotationToBalloon'](_0x412c1f);}this['_selectedAnnotations']=_0x28ed42;}['_addAnnotationToBalloon'](_0x5de893,_0x15b90e=!0x1){this['_manuallyClosed']['has'](_0x5de893)||(this['_addedAnnotations']['has'](_0x5de893)||this['_balloon']['hasView'](_0x5de893['view'])||(this['_addedAnnotations']['add'](_0x5de893),this['_balloon']['add']({'stackId':_0x5de893['view']['id'],'view':_0x5de893['view'],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x5de893)}})),_0x15b90e&&this['_balloon']['showStack'](_0x5de893['view']['id']));}['_getBalloonTargetForAnnotation'](_0x420c85){const _0x51a7b1=_0x420c85['target'],_0x4ea9a9=this['editor']['editing']['view'],_0x5701aa=_0x4ea9a9['document']['selection']['getFirstRange'](),_0xc9c678=_0x4ea9a9['domConverter']['viewRangeToDom'](_0x5701aa);if(_0xc9c678['collapse'](!0x0),_0x51a7b1){if(_0x51a7b1 instanceof Rect)return _0x51a7b1;let _0x4a4b7c=[];for(const _0x17a598 of _0x51a7b1)_0x4a4b7c['push'](...cloneRects(_0x17a598['getClientRects']()));_0x4a4b7c=joinClientRects(_0x4a4b7c);const _0x282816=_0xc9c678['getBoundingClientRect']();return _0x4a4b7c['find'](_0x1a3f86=>_0x1a3f86['top']<=_0x282816['top']&&_0x1a3f86['bottom']>=_0x282816['bottom']&&_0x1a3f86['left']<=_0x282816['left']&&_0x1a3f86['right']>=_0x282816['right'])||_0x4a4b7c[0x0];}return _0x420c85['targetRect']||_0xc9c678;}['_removeAnnotationFromBalloon'](_0x30f06b){this['_addedAnnotations']['has'](_0x30f06b)&&this['_balloon']['hasView'](_0x30f06b['view'])&&(this['_addedAnnotations']['delete'](_0x30f06b),this['_balloon']['remove'](_0x30f06b['view']));}['_closeAnnotation'](_0x2bf7c5){this['_manuallyClosed']['add'](_0x2bf7c5),this['_removeAnnotationFromBalloon'](_0x2bf7c5);}}function arraysEqual(_0x272d39,_0x90c370){return _0x272d39['length']===_0x90c370['length']&&_0x272d39['every'](_0x4f4b86=>_0x90c370['includes'](_0x4f4b86));}function cloneRects(_0x30dbc2){return Array['from'](_0x30dbc2)['map'](DOMRect['fromRect']);}function joinClientRects(_0x22ff07){const _0x14c967=[];let _0x4f2b5a=_0x22ff07[0x0];for(let _0xa4649a=0x1;_0xa4649a<_0x22ff07['length'];_0xa4649a++)canJoinRects(_0x4f2b5a,_0x22ff07[_0xa4649a])?_0x4f2b5a['width']+=_0x22ff07[_0xa4649a]['width']:(_0x14c967['push'](_0x4f2b5a),_0x4f2b5a=_0x22ff07[_0xa4649a]);return _0x14c967['push'](_0x4f2b5a),_0x14c967;}function canJoinRects(_0x504cc4,_0x4c3284){return _0x504cc4['top']===_0x4c3284['top']&&_0x504cc4['bottom']===_0x4c3284['bottom']&&_0x504cc4['right']===_0x4c3284['left'];}class CommentsArchiveView extends View{['focusTracker'];['focusCycler'];['_annotationViews'];constructor(_0xaae43f,_0x5efcae){super(_0xaae43f),this['set']('isEmpty',!_0x5efcae['length']),this['focusTracker']=new FocusTracker(),this['_annotationViews']=_0x5efcae,this['_annotationViews']['delegate']('arrowup','arrowdown')['to'](this),this['on']('arrowup',()=>{this['focusCycler']['focusPrevious']();}),this['on']('arrowdown',()=>{this['focusCycler']['focusNext']();}),this['focusCycler']=new FocusCycler({'focusables':_0x5efcae,'focusTracker':this['focusTracker']}),this['listenTo'](_0x5efcae,'add',()=>{this['isEmpty']=!0x1;}),this['listenTo'](_0x5efcae,'remove',(_0x599177,_0x2bd0be)=>{_0x2bd0be['isActive']&&this['focus'](),_0x5efcae['length']||(this['isEmpty']=!0x0);});const _0x4fc471=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'dir':'auto','class':['ck','ck-comments-archive'],'tabindex':-0x1,'role':'list','aria-label':getTranslation$f(_0xaae43f,'COMMENTS_ARCHIVE_LIST_LABEL')},'children':[{'tag':'div','attributes':{'class':['ck-comments-archive__content'],'role':'presentation'},'children':[{'tag':'div','attributes':{'role':'presentation'},'children':_0x5efcae},{'tag':'p','attributes':{'class':['ck-comments-archive__info',_0x4fc471['if']('isEmpty','ck-hidden',_0x110df2=>!_0x110df2)]},'children':[{'text':getTranslation$f(_0xaae43f,'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 _0x2e9cf7 of this['_annotationViews'])this['focusTracker']['add'](_0x2e9cf7['element']);this['_annotationViews']['on']('change',(_0x3804cc,{added:_0x27542f,removed:_0x1b0fb1})=>{for(const _0x6dc811 of _0x27542f)this['focusTracker']['add'](_0x6dc811['element']);for(const _0x3b054f of _0x1b0fb1)this['focusTracker']['remove'](_0x3b054f['element']);});}}class CommentsArchive extends ContextPlugin{static get['pluginName'](){return'CommentsArchive';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsRepository,Annotations];}constructor(_0x211acb){super(_0x211acb),this['archivedThreads']=new Collection();}['init'](){const _0x2427b0=this['context'],_0x2923f2=_0x2427b0['plugins']['get'](CommentsRepository),_0xc295ce=_0x2427b0['plugins']['get'](Annotations);this['listenTo'](_0x2923f2,'addCommentThread',(_0x34ac16,{threadId:_0x4af1fd})=>{const _0xf81402=_0x2923f2['getCommentThread'](_0x4af1fd);_0xf81402['archivedAt']&&this['archivedThreads']['add'](_0xf81402,this['_calculatePosition'](_0xf81402['archivedAt'])),this['listenTo'](_0xf81402,'change:archivedAt',(_0xb4da8a,_0x1e4b7a,_0x56e273)=>{_0x56e273?this['archivedThreads']['has'](_0xf81402)||this['archivedThreads']['add'](_0xf81402,this['_calculatePosition'](_0xf81402['archivedAt'])):this['archivedThreads']['has'](_0xf81402)&&this['archivedThreads']['remove'](_0xf81402);});}),this['listenTo'](_0x2923f2,'removeCommentThread',(_0x1d58c1,{threadId:_0x22d91d})=>{const _0x4813db=_0x2923f2['getCommentThread'](_0x22d91d);this['stopListening'](_0x4813db),this['archivedThreads']['has'](_0x4813db)&&this['archivedThreads']['remove'](_0x4813db);},{'priority':'highest'}),this['listenTo'](_0xc295ce['collection'],'focus',(_0x44fd13,_0x6785b7)=>{_0x6785b7['isVisible']||(_0x6785b7['isActive']=!0x0,_0xc295ce['activate'](_0x6785b7));});}['_calculatePosition'](_0x40b79f){const _0x36e206=[...this['archivedThreads']]['findIndex'](_0x4ac0bf=>_0x4ac0bf['archivedAt']<_0x40b79f);return _0x36e206>-0x1?_0x36e206:this['archivedThreads']['length'];}}class CommentsArchiveUI extends Plugin{['commentsArchiveView'];['annotationViews'];['_pendingThreads'];static get['pluginName'](){return'CommentsArchiveUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[CommentsArchive,Dialog];}constructor(_0x15dfed){super(_0x15dfed),this['annotationViews']=new ViewCollection(),this['_pendingThreads']=[];}['init'](){const _0x27cf2a=this['editor'],_0x17ff2a=this['_hideDialogOnAnnotationEscape']['bind'](this);_0x27cf2a['ui']['componentFactory']['add']('commentsArchive',()=>this['_createCommentsArchiveButton'](ButtonView,!0x0)),_0x27cf2a['ui']['componentFactory']['add']('menuBar:commentsArchive',()=>{const _0x3946ad=this['_createCommentsArchiveButton'](MenuBarMenuListItemButtonView);return _0x3946ad['set']({'role':'menuitemcheckbox'}),_0x3946ad;});const _0x16769e=_0x27cf2a['plugins']['get'](CommentsArchive),_0x4f11fd=_0x27cf2a['plugins']['get']('Annotations'),_0x3d7693=_0x27cf2a['plugins']['get']('CommentsRepository');_0x16769e['archivedThreads']['forEach'](_0x3618b7=>{this['_handleNewThread'](_0x3618b7);}),this['listenTo'](_0x16769e['archivedThreads'],'add',(_0x4506a3,_0x32c54c)=>{this['_handleNewThread'](_0x32c54c);}),this['listenTo'](_0x4f11fd['collection'],'add',(_0x1f524e,_0x8bcb51)=>{const _0x39a6da=this['_pendingThreads']['find'](_0x3ddc59=>{const _0x55201d=_0x3d7693['_threadToController']['get'](_0x3ddc59);return _0x55201d&&_0x8bcb51['innerView']===_0x55201d['view'];});if(_0x39a6da){const _0x4d306f=this['_calculatePosition'](_0x39a6da['archivedAt']);this['_addAnnotationToArchive'](_0x8bcb51,_0x4d306f),this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x39a6da),0x1);}}),this['listenTo'](_0x16769e['archivedThreads'],'remove',(_0x47e34b,_0x3d178f)=>{const _0x49124b=_0x27cf2a['config']['get']('collaboration.channelId');if(!_0x49124b||_0x3d178f['channelId']===_0x49124b){if(this['_pendingThreads']['includes'](_0x3d178f))this['_pendingThreads']['splice'](this['_pendingThreads']['indexOf'](_0x3d178f),0x1);else{const _0x4fa670=_0x3d7693['_threadToController']['get'](_0x3d178f),_0x5122e8=_0x4f11fd['getByInnerView'](_0x4fa670['view']);this['annotationViews']['remove'](_0x5122e8['view']),this['stopListening'](_0x5122e8),this['stopListening'](_0x5122e8['focusableElements']);}}}),this['listenTo'](_0x4f11fd['collection'],'add',(_0x16c36f,_0x3d5bc4)=>{this['listenTo'](_0x3d5bc4,'escape',_0x17ff2a);}),this['listenTo'](_0x4f11fd['collection'],'remove',(_0x84e87f,_0x4ac00b)=>{this['stopListening'](_0x4ac00b,'escape',_0x17ff2a);});}['_addAnnotationToArchive'](_0x5817eb,_0x43e8f4){this['listenTo'](_0x5817eb,'set:isVisible',_0x4a98ac=>{_0x4a98ac['return']=!0x1,_0x4a98ac['stop']();}),this['annotationViews']['add'](_0x5817eb['view'],_0x43e8f4);}['_handleNewThread'](_0x59beea){const _0x47c1d5=this['editor']['plugins']['get']('CommentsRepository'),_0x3d8c50=this['editor']['plugins']['get']('Annotations'),_0x421e33=this['editor']['config']['get']('collaboration.channelId');if(!_0x421e33||_0x59beea['channelId']===_0x421e33){const _0x18d8fd=_0x47c1d5['_threadToController']['get'](_0x59beea);if(!_0x18d8fd)return void this['_pendingThreads']['push'](_0x59beea);const _0x1fb5b5=this['_calculatePosition'](_0x59beea['archivedAt']),_0x183d3c=_0x3d8c50['getByInnerView'](_0x18d8fd['view']);_0x183d3c['isVisible']&&_0x3d8c50['_visibleAnnotations']['remove'](_0x183d3c),this['_addAnnotationToArchive'](_0x183d3c,_0x1fb5b5);}}['_calculatePosition'](_0x2c6611){const _0x4ca392=this['editor']['config']['get']('collaboration.channelId'),_0x4c07c8=[...this['editor']['plugins']['get'](CommentsArchive)['archivedThreads']]['filter'](_0x50bf81=>_0x50bf81['channelId']===_0x4ca392)['findIndex'](_0x384184=>_0x384184['archivedAt']<_0x2c6611);return _0x4c07c8<0x0||_0x4c07c8>this['annotationViews']['length']?this['annotationViews']['length']:_0x4c07c8-0x1;}['_toggleDialog'](){const _0x5b23d4=this['editor'],_0x36324f=_0x5b23d4['plugins']['get']('Dialog');this['commentsArchiveView']||(this['commentsArchiveView']=new CommentsArchiveView(_0x5b23d4['locale'],this['annotationViews'])),'commentsArchive'===_0x36324f['id']?_0x36324f['hide']():_0x36324f['show']({'id':'commentsArchive','title':getTranslation$f(_0x5b23d4['locale'],'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'hasCloseButton':!0x0,'content':this['commentsArchiveView'],'position':DialogViewPosition['EDITOR_TOP_SIDE']});}['_createCommentsArchiveButton'](_0x215ef6,_0x21f1ff=!0x1){const _0x1a8f7f=this['editor']['locale'],_0x14255d=this['editor']['plugins']['get']('Dialog'),_0x1e8da3=new _0x215ef6(_0x1a8f7f);return _0x1e8da3['bind']('isEnabled')['to'](this,'isEnabled'),_0x1e8da3['bind']('isOn')['to'](_0x14255d,'id',_0x23fc2c=>'commentsArchive'===_0x23fc2c),_0x1e8da3['set']({'label':getTranslation$f(_0x1a8f7f,'COMMENTS_ARCHIVE'),'icon':IconCommentsArchive,'isToggleable':!0x0}),_0x21f1ff&&(_0x1e8da3['tooltip']=!0x0),this['listenTo'](_0x1e8da3,'execute',()=>this['_toggleDialog']()),_0x1e8da3;}['_hideDialogOnAnnotationEscape']=_0x3bb1fe=>{const _0xbc633=_0x3bb1fe['source'];if(!this['annotationViews']['has'](_0xbc633['view']))return;const _0x1f6dd3=this['editor']['plugins']['get']('Dialog');_0x1f6dd3['isOpen']&&'commentsArchive'===_0x1f6dd3['id']&&(_0x1f6dd3['hide'](),_0x3bb1fe['stop']());};}class Comments extends Plugin{static get['requires'](){return[CommentsRepository,CommentsEditing,CommentsUI,CommentsArchive,CommentsArchiveUI,CommentsOnly,WideSidebar,NarrowSidebar,InlineAnnotations];}static get['pluginName'](){return'Comments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getElementText(_0x5c5266){let _0xbf6804='';for(const _0x4ceb16 of _0x5c5266['getChildren']())_0x4ceb16 instanceof ModelText&&(_0xbf6804+=_0x4ceb16['data']);return _0xbf6804;}function getDefaultFeatureHeadingNames(_0x11ae06){const _0x4410b0=_0x11ae06['config']['get']('heading.options');return _0x4410b0?_0x4410b0['reduce']((_0xa33b1d,_0x472206)=>('paragraph'!==_0x472206['model']&&_0xa33b1d['push'](_0x472206['model']),_0xa33b1d),[]):_0x11ae06['plugins']['has']('GeneralHtmlSupport')?['htmlH1','htmlH2','htmlH3','htmlH4','htmlH5','htmlH6']:[];}class DocumentOutlineUtils extends Plugin{static get['pluginName'](){return'DocumentOutlineUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_headingNames']=[];['init'](){const _0x472e06=this['editor'];this['_headingNames']=this['_getHeadingNames']();let _0xa091eb=[];_0x472e06['model']['document']['on']('change',debounce$1(()=>{const _0x548961=_0xa091eb;_0xa091eb=this['_getOutlineDefinitions']();const _0x4000bf=_0xbddab7(_0x548961,_0xa091eb,(_0x51686a,_0x220515)=>_0x51686a['level']===_0x220515['level']&&_0x51686a['text']===_0x220515['text']&&_0x51686a['modelElement']===_0x220515['modelElement']),_0x372aa4=diffToChanges(_0x4000bf,_0xa091eb),_0x1607d1=this['_getActiveHeading'](),_0x55179a=_0xa091eb['findIndex'](_0x14db0d=>_0x14db0d['modelElement']===_0x1607d1);_0x372aa4['length']&&this['fire']('change',{'outlineDefinitions':_0xa091eb,'activeItemIndex':_0x55179a,'outlineChanges':_0x372aa4}),this['fire']('activeItemIndex',{'index':_0x55179a});},0xfa,{'leading':!0x0,'trailing':!0x0}));}['afterInit'](){this['_headingNames']['length']||this['_deriveHeadingElementsFromConversion']();}['_getOutlineDefinitions'](){const _0x448c21=this['editor'],_0x1ec8b1=[],_0x42b011=this['_headingNames'];for(const _0x551ac2 of _0x448c21['model']['document']['getRootNames']())_0x15a3c0(_0x448c21['model']['document']['getRoot'](_0x551ac2));function _0x15a3c0(_0x548ee0){for(const _0x479204 of _0x548ee0['getChildren']())_0x479204['is']('element')&&(_0x42b011['includes'](_0x479204['name'])&&_0x1ec8b1['push']({'level':_0x42b011['indexOf'](_0x479204['name'])+0x1,'text':getElementText(_0x479204),'modelElement':_0x479204}),_0x15a3c0(_0x479204));}return _0x1ec8b1;}['_getActiveHeading'](){const _0x45dda1=this['editor']['model']['document']['selection']['getFirstPosition'](),_0xfa5357=new ModelTreeWalker({'direction':'backward','startPosition':_0x45dda1});for(const _0x21f878 of _0xfa5357)if(_0x21f878['item']['is']('element')&&this['_headingNames']['includes'](_0x21f878['item']['name']))return _0x21f878['item'];}['_getHeadingNames'](){const _0xb7fd5d=this['editor']['config']['get']('documentOutline.headings');return _0xb7fd5d||getDefaultFeatureHeadingNames(this['editor']);}['_deriveHeadingElementsFromConversion'](){const _0x14a918=this['editor'],_0x24782b=['h1','h2','h3','h4','h5','h6'],_0x4d70ed=[];for(const _0x4e7adc of _0x24782b){const _0x183a03=_0x14a918['editing']['view']['domConverter']['domToView'](document['createElement'](_0x4e7adc)),_0x372580=_0x14a918['data']['toModel'](_0x183a03)['getChild'](0x0);_0x372580?.['is']('element')&&_0x4d70ed['push'](_0x372580['name']);}this['_headingNames']=_0x4d70ed;}}function getTranslation$e(_0xaa4bdf,_0x1bc89d){const t=_0xaa4bdf['t'];switch(_0x1bc89d){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 _0x1bc89d;}}class DocumentOutlineItemView extends View{constructor(_0x5b4af4,_0x37ccfa=!0x1){super(_0x5b4af4);const _0x11be49=this['bindTemplate'],_0x203d81=_0x37ccfa?'['+getTranslation$e(_0x5b4af4,'Empty\x20heading')+']':'';this['set']('text',''),this['set']('level',0x1),this['set']('isActive',!0x1),this['bind']('isEmpty')['to'](this,'text',_0x4a0f07=>!_0x4a0f07),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline__item',_0x11be49['to']('level',_0x55e2f6=>'ck-document-outline__item_level-'+_0x55e2f6),_0x11be49['if']('isActive','ck-document-outline__item_active'),_0x11be49['if']('isEmpty','ck-document-outline__item_empty')],'title':_0x11be49['to']('text')},'children':[{'text':_0x11be49['to']('text',_0x55ed21=>_0x55ed21||_0x203d81)}],'on':{'click':_0x11be49['to']('click')}});}}class DocumentOutlineView extends View{['items'];['documentOutlineContainer'];['showEmptyHeadingText'];constructor(_0xe0085b,_0xafaa0b=!0x1,_0x13d00c){super(_0xe0085b),this['showEmptyHeadingText']=_0xafaa0b,this['set']('activeItemIndex',-0x1),this['documentOutlineContainer']=_0x13d00c,this['items']=this['createCollection'](),this['items']['delegate']('click')['to'](this),this['on']('click',this['_handleItemClick']['bind'](this)),this['on']('change:activeItemIndex',(_0x726b42,_0x597e76,_0x2a20a7,_0x1b24f0)=>{this['_setActiveItem'](_0x1b24f0,_0x2a20a7);}),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-document-outline'],'dir':_0xe0085b['contentLanguageDirection'],'data-document-outline-empty-placeholder':getTranslation$e(_0xe0085b,'Editor\x20headings\x20will\x20appear\x20here\x20as\x20you\x20type.'),'tabindex':-0x1},'children':this['items']});}['sync'](_0x246bcf){_0x246bcf['forEach'](_0x1f4149=>{'insert'==_0x1f4149['type']?this['_insertItem'](_0x1f4149['index'],..._0x1f4149['values']):'delete'==_0x1f4149['type']&&this['_deleteItem'](_0x1f4149['index'],_0x1f4149['howMany']);});}['_setActiveItem'](_0x3d13af,_0x3cb72b){if(-0x1!==_0x3d13af){const _0x38eb51=this['items']['get'](_0x3d13af);_0x38eb51&&(_0x38eb51['isActive']=!0x1);}-0x1!==_0x3cb72b&&(this['items']['get'](_0x3cb72b)['isActive']=!0x0,this['_scrollToItem'](_0x3cb72b));}['_insertItem'](_0x280eb9,..._0x472105){const _0x23fe4b=_0x472105['map']((_0x4fbfa1,_0x1f7f0b)=>{const _0x1ac27a=new DocumentOutlineItemView(this['locale'],this['showEmptyHeadingText']);return _0x1ac27a['text']=_0x4fbfa1['text'],_0x1ac27a['level']=_0x4fbfa1['level'],_0x280eb9+_0x1f7f0b===this['activeItemIndex']&&(_0x1ac27a['isActive']=!0x0),_0x1ac27a;});this['items']['addMany'](_0x23fe4b,_0x280eb9);}['_deleteItem'](_0xc89064,_0xca3c9b){do{this['items']['remove'](_0xc89064);}while(--_0xca3c9b);}['_handleItemClick'](_0x134823){const _0x176661=this['items']['getIndex'](_0x134823['source']);this['fire']('itemSelected',_0x176661);}['_scrollToItem'](_0x5f32c3){scrollAncestorsToShowTarget(this['items']['get'](_0x5f32c3)['element'],0x14,this['documentOutlineContainer']);}['destroy'](){super['destroy'](),this['element']['remove']();}}class DocumentOutlineUI extends Plugin{['view'];['_currentOutlineDefinitions'];['_updateActiveDefinitionFromViewportThrottled'];static get['pluginName'](){return'DocumentOutlineUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xaeb72e){super(_0xaeb72e),this['view']=new DocumentOutlineView(_0xaeb72e['locale'],this['editor']['config']['get']('documentOutline.showEmptyHeadings'),this['editor']['config']['get']('documentOutline.container')),this['_currentOutlineDefinitions']=[],this['_updateActiveDefinitionFromViewportThrottled']=throttle$1(this['_updateActiveDefinitionOnViewportChange']['bind'](this),0x64);}['init'](){const _0xae7214=this['editor'],_0x22594c=_0xae7214['plugins']['get']('DocumentOutlineUtils');let _0x23d8d5=!0x1;if(this['view']['render'](),this['editor']['ui']['focusTracker']['add'](this['view']['element']),!_0xae7214['config']['get']('documentOutline.container'))throw new CKEditorError('document-outline-container-not-provided',{'editor':_0xae7214});_0xae7214['config']['get']('documentOutline.container')['appendChild'](this['view']['element']),_0x22594c['on']('change',this['_handleOutlineChange']['bind'](this)),_0x22594c['on']('activeItemIndex',(_0x4161bf,{index:_0x51b977})=>this['_setActiveViewItem'](_0x51b977)),this['view']['on']('itemSelected',(_0x2c4543,_0x2ef6be)=>{_0x23d8d5=!0x0,this['_handleItemSelected'](_0x2ef6be);}),this['view']['listenTo'](_0x59f9c1['document'],'scroll',()=>{_0x23d8d5?_0x23d8d5=!0x1:this['_updateActiveDefinitionFromViewportThrottled']();},{'useCapture':!0x0}),this['view']['listenTo'](_0x59f9c1['window'],'resize',this['_updateActiveDefinitionFromViewportThrottled'],{'useCapture':!0x0});}['afterInit'](){checkLicense$g(this);}['destroy'](){super['destroy'](),this['view']['destroy'](),this['_updateActiveDefinitionFromViewportThrottled']['cancel']();}['_handleOutlineChange'](_0x257968,{outlineDefinitions:_0x497c26,outlineChanges:_0xa5c4cb}){this['_currentOutlineDefinitions']=_0x497c26,this['view']['sync'](_0xa5c4cb);}['_setActiveViewItem'](_0x17fd25){this['_currentOutlineDefinitions']['length']&&this['_currentOutlineDefinitions'][_0x17fd25]&&(this['view']['activeItemIndex']=_0x17fd25);}['_handleItemSelected'](_0x11f792){const _0x3e7f57=this['_currentOutlineDefinitions'][_0x11f792]['modelElement'];this['editor']['model']['change'](_0x3d7b1f=>{_0x3d7b1f['setSelection'](_0x3e7f57,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0}),this['editor']['editing']['view']['focus'](),this['_setActiveViewItem'](_0x11f792);}['_updateActiveDefinitionOnViewportChange'](){const _0x382972=this['editor'];let _0x397990;for(const _0x3dbe15 of _0x382972['model']['document']['getRootNames']()){const _0xa0f2fa=_0x382972['editing']['view']['getDomRoot'](_0x3dbe15),_0x4855ad=_0xa0f2fa&&new Rect(_0xa0f2fa)['getVisible']();if(_0x4855ad){const _0xb884ce=new Rect(_0x59f9c1['window'])['getIntersection'](_0x4855ad);_0xb884ce&&(_0x397990=_0xb884ce['top']+0.25*_0xb884ce['height']);}}if(void 0x0===_0x397990)return;const _0x588224=binaryActiveDefinitionSearch(_0x382972['editing'],this['_currentOutlineDefinitions'],_0x397990);_0x588224?this['_setActiveViewItem'](this['_currentOutlineDefinitions']['indexOf'](_0x588224)):this['_setActiveViewItem'](-0x1);}}function binaryActiveDefinitionSearch(_0x5c7983,_0x2b4304,_0x51da26,_0x43b253=0x0,_0x3581a8=_0x2b4304['length']-0x1){const _0x42e22b=Math['floor'](_0x43b253+(_0x3581a8-_0x43b253)/0x2);if(_0x3581a8>=_0x43b253){const _0x3adaee=_0x2b4304[_0x42e22b],_0x18bf9f=_0x5c7983['mapper']['toViewElement'](_0x3adaee['modelElement']);if(!_0x18bf9f)return null;const _0x25606c=_0x5c7983['view']['domConverter']['mapViewToDom'](_0x18bf9f);return new Rect(_0x25606c)['bottom']>_0x51da26?binaryActiveDefinitionSearch(_0x5c7983,_0x2b4304,_0x51da26,_0x43b253,_0x42e22b-0x1):binaryActiveDefinitionSearch(_0x5c7983,_0x2b4304,_0x51da26,_0x42e22b+0x1,_0x3581a8);}return _0x42e22b<0x0?null:_0x2b4304[_0x42e22b];}async function checkLicense$g(_0x5a4736){const _0x4ce2c6=_0xe83216([0x61,0x57,0x78,0x6c,0x50,0x47,0x30,0x41,0x33,0x43,0x44,0x64,0x48,0x42,0x73,0x5a,0x45,0x71,0x77,0x55,0x4c,0x6f,0x6a,0x4f,0x72,0x67,0x4d,0x58,0x56,0x54,0x52,0x76,0x75,0x31,0x62,0x49,0x32,0x34,0x38,0x37,0x70,0x74,0x7a,0x4a,0x4b,0x51,0x65,0x69,0x68,0x66,0x4e,0x6b,0x59,0x53,0x39,0x6e,0x36,0x79,0x35,0x6d,0x63,0x46]),_0x9d3b56=window[_0xe83216([0x44,0x61,0x74,0x65])][_0xe83216([0x6e,0x6f,0x77])](),_0x395cfe=_0x5a4736[_0xe83216([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e6da9=new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11613c=>{_0x395cfe[_0xe83216([0x6f,0x6e,0x63,0x65])](_0xe83216([0x72,0x65,0x61,0x64,0x79]),_0x11613c);}),_0x4afb17={[_0xe83216([0x6b,0x74,0x79])]:_0xe83216([0x45,0x43]),[_0xe83216([0x75,0x73,0x65])]:_0xe83216([0x73,0x69,0x67]),[_0xe83216([0x63,0x72,0x76])]:_0xe83216([0x50,0x2d,0x32,0x35,0x36]),[_0xe83216([0x78])]:_0xe83216([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xe83216([0x79])]:_0xe83216([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xe83216([0x61,0x6c,0x67])]:_0xe83216([0x45,0x53,0x32,0x35,0x36])},_0x391e12=_0x395cfe[_0xe83216([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe83216([0x67,0x65,0x74])](_0xe83216([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x170152=await(async function(){let _0x558b28,_0x1fc36c=null,_0x238855=null;try{if(_0x391e12==_0xe83216([0x47,0x50,0x4c]))return _0xe83216([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x558b28=(function(){const _0x4cb1f8=_0x391e12[_0xe83216([0x73,0x70,0x6c,0x69,0x74])](_0xe83216([0x2e]));if(0x3!=_0x4cb1f8[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5efd09=_0x4cb1f8[0x1];return _0x56d2ba(_0x5efd09);function _0x56d2ba(_0x172430){const _0x2b348d=_0x3cb449(_0x172430);return _0x2b348d&&_0x3d9b8c()?_0x2b348d:null;function _0x3d9b8c(){const _0x577e35=_0x2b348d[_0xe83216([0x6a,0x74,0x69])],_0x4edb31=window[_0xe83216([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x577e35[_0xe83216([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x577e35[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cf3df={..._0x2b348d,[_0xe83216([0x6a,0x74,0x69])]:_0x577e35[_0xe83216([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x577e35[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cf3df[_0xe83216([0x76,0x63])],_0x3ff073(_0x4cf3df)==_0x4edb31;}}}()),!_0x558b28)return _0xe83216([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x558b28[_0xe83216([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x238855=function(_0x54ac87,_0x5073a1){return new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40b714=>{if(_0x23e6fd())return _0x40b714(_0xe83216([0x56,0x61,0x6c,0x69,0x64]));_0x409897(),_0x395cfe[_0xe83216([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe83216([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15e9c8=!0x1;const _0x2c0814=uid();function _0x2d29a7(_0x8380a0){return!!_0x8380a0&&(typeof _0x8380a0===_0xe83216([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8380a0===_0xe83216([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8380a0[_0xe83216([0x74,0x68,0x65,0x6e])]===_0xe83216([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8380a0[_0xe83216([0x63,0x61,0x74,0x63,0x68])]===_0xe83216([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd520f(_0xdefeff){_0x1adefc(_0xdefeff)[_0xe83216([0x74,0x68,0x65,0x6e])](_0x2b24c7=>{if(!_0x2b24c7||_0x2b24c7[_0xe83216([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe83216([0x6f,0x6b]))return _0xe83216([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46656e(_0x3ff073(_0x2c0814+_0x5073a1))!=_0x2b24c7[_0xe83216([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe83216([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe83216([0x56,0x61,0x6c,0x69,0x64]);})[_0xe83216([0x74,0x68,0x65,0x6e])](_0x14d3d9=>(_0x255b94(),_0x14d3d9),()=>{const _0xeebf8b=_0x593aa9();return null==_0xeebf8b?(_0x255b94(),_0xe83216([0x56,0x61,0x6c,0x69,0x64])):_0xe83216(_0x9d3b56-_0xeebf8b>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe83216([0x74,0x68,0x65,0x6e])](_0x40b714)[_0xe83216([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40b714(_0xe83216([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3bff0d=0x36ee80;function _0x255b94(){const _0x274f1f=_0xe83216([0x6c,0x6c,0x63,0x74,0x2d])+_0x46656e(_0x3ff073(_0x54ac87)),_0x54941c=_0x514e05(_0x46656e(window[_0xe83216([0x4d,0x61,0x74,0x68])][_0xe83216([0x63,0x65,0x69,0x6c])](_0x9d3b56/_0x3bff0d)));window[_0xe83216([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe83216([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x274f1f,_0x54941c);}function _0x593aa9(){const _0x210ee8=_0xe83216([0x6c,0x6c,0x63,0x74,0x2d])+_0x46656e(_0x3ff073(_0x54ac87)),_0x2e3455=window[_0xe83216([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe83216([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210ee8);return _0x2e3455?window[_0xe83216([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514e05(_0x2e3455),0x10)*_0x3bff0d:null;}function _0x1adefc(_0x4c86b3){return new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d364b,_0x402cd1)=>{_0x4c86b3[_0xe83216([0x74,0x68,0x65,0x6e])](_0x4d364b,_0x402cd1),window[_0xe83216([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x402cd1,0x1d4c0);});}}_0x395cfe[_0xe83216([0x6f,0x6e])](_0xe83216([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb08bcd,_0xa83976)=>{if(_0xa83976[0x0]!=_0x54ac87)return _0x40b714(_0xe83216([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa83976[0x1]={..._0xa83976[0x1],[_0xe83216([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c0814};},{[_0xe83216([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe83216([0x68,0x69,0x67,0x68])}),_0x395cfe[_0xe83216([0x6f,0x6e])](_0xe83216([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cb479=>{_0x2d29a7(_0x5cb479[_0xe83216([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15e9c8=!0x0,_0xd520f(_0x5cb479[_0xe83216([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe83216([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe83216([0x6c,0x6f,0x77])}),_0x5e6da9[_0xe83216([0x74,0x68,0x65,0x6e])](()=>{_0x15e9c8||_0x40b714(_0xe83216([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23e6fd(){return _0x395cfe[_0xe83216([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe83216([0x76,0x69,0x65,0x77])][_0xe83216([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe83216([0x61,0x75,0x74,0x6f]);}function _0x409897(){_0x395cfe[_0xe83216([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe83216([0x76,0x69,0x65,0x77])][_0xe83216([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe83216([0x61,0x75,0x74,0x6f]);}}(_0x558b28[_0xe83216([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x558b28[_0xe83216([0x6a,0x74,0x69])]));const _0x36422e=await(async function(){let _0x5de52c=!0x0;try{const _0x2c3425=_0x391e12[_0xe83216([0x73,0x70,0x6c,0x69,0x74])](_0xe83216([0x2e])),[_0x370ca9,_0x2647a2,_0x1997b2]=_0x2c3425;return _0x4908d2(_0x370ca9),await _0x47f253(_0x370ca9,_0x2647a2,_0x1997b2),_0x5de52c;}catch{return!0x1;}function _0x4908d2(_0xd5b885){const _0x4499b5=_0x3cb449(_0xd5b885);_0x4499b5&&_0x4499b5[_0xe83216([0x61,0x6c,0x67])]==_0xe83216([0x45,0x53,0x32,0x35,0x36])||(_0x5de52c=!0x1);}async function _0x47f253(_0x30bf8b,_0x3600e7,_0x44fafd){const _0x59226c=window[_0xe83216([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe83216([0x66,0x72,0x6f,0x6d])](_0x2e0425(_0x44fafd),_0x2d0ae2=>_0x2d0ae2[_0xe83216([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c2eed=new window[(_0xe83216([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe83216([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30bf8b+_0xe83216([0x2e])+_0x3600e7),_0x28dd61=window[_0xe83216([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe83216([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28dd61)return;const _0x616b8e=await _0x28dd61[_0xe83216([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe83216([0x6a,0x77,0x6b]),_0x4afb17,{[_0xe83216([0x6e,0x61,0x6d,0x65])]:_0xe83216([0x45,0x43,0x44,0x53,0x41]),[_0xe83216([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe83216([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe83216([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28dd61[_0xe83216([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe83216([0x6e,0x61,0x6d,0x65])]:_0xe83216([0x45,0x43,0x44,0x53,0x41]),[_0xe83216([0x68,0x61,0x73,0x68])]:{[_0xe83216([0x6e,0x61,0x6d,0x65])]:_0xe83216([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x616b8e,_0x59226c,_0x4c2eed)||(_0x5de52c=!0x1);}}());return _0x36422e?(function(){const _0x213bac=_0x558b28[_0xe83216([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x213bac)return!0x1;if(_0x213bac[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83216([0x2a])))return!0x0;if(_0x213bac[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83216([0x44,0x4f])))return!0x0;if(_0x213bac[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83216([0x50,0x50])))return!0x0;if(_0x213bac[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83216([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0xe83216([0x67,0x6c,0x6f,0x62])]&&window[_0xe83216([0x67,0x6c,0x6f,0x62])][_0xe83216([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x1ba354=[_0xe83216([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe83216([0x74,0x72,0x69,0x61,0x6c])][_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x558b28[_0xe83216([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9d3b56/0x3e8:0x69e02680;return _0x558b28[_0xe83216([0x65,0x78,0x70])]<_0x1ba354;}())?_0xe83216([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xaf2d9a=_0x558b28[_0xe83216([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xaf2d9a||0x0==_0xaf2d9a[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x576a57}=new URL(window[_0xe83216([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xaf2d9a[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x576a57))return!0x0;const _0x4c707b=_0x576a57[_0xe83216([0x73,0x70,0x6c,0x69,0x74])](_0xe83216([0x2e]));return _0xaf2d9a[_0xe83216([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37db8b=>_0x37db8b[_0xe83216([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83216([0x2a])))[_0xe83216([0x6d,0x61,0x70])](_0x16e435=>_0x16e435[_0xe83216([0x73,0x70,0x6c,0x69,0x74])](_0xe83216([0x2e])))[_0xe83216([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26bdcd=>_0x26bdcd[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c707b[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe83216([0x6d,0x61,0x70])](_0x152466=>Array(_0x4c707b[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x152466[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe83216([0x66,0x69,0x6c,0x6c])](_0x152466[0x0]===_0xe83216([0x2a])?_0xe83216([0x2a]):'')[_0xe83216([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x152466))[_0xe83216([0x73,0x6f,0x6d,0x65])](_0xe3ecc7=>_0x4c707b[_0xe83216([0x65,0x76,0x65,0x72,0x79])]((_0x1e1651,_0x4100ea)=>_0xe3ecc7[_0x4100ea]===_0x1e1651||_0xe3ecc7[_0x4100ea]===_0xe83216([0x2a])));}())?(_0x558b28[_0xe83216([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe83216([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1fc36c=function(_0x3fa1c7){const _0x358708=new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d513e=>setTimeout(_0x1d513e,0x93ecc)),_0x577f72=_0x5e6da9[_0xe83216([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50e42f=>{let _0x48b794=0x0;_0x395cfe[_0xe83216([0x6d,0x6f,0x64,0x65,0x6c])][_0xe83216([0x6f,0x6e])](_0xe83216([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2fc7f6,_0x163fa5)=>{_0x163fa5[0x0][_0xe83216([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x48b794++,0x5e8==_0x48b794&&(_0x50e42f(),_0x2fc7f6[_0xe83216([0x6f,0x66,0x66])]());});})),_0xfc453b=[_0x358708,_0x577f72];return window[_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe83216([0x72,0x61,0x63,0x65])](_0xfc453b)[_0xe83216([0x74,0x68,0x65,0x6e])](()=>_0x3fa1c7);}(_0xe83216([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1fc36c&&_0x238855)return new window[(_0xe83216([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdcf9d6,_0x5e37a3)=>{_0x1fc36c[_0xe83216([0x74,0x68,0x65,0x6e])](_0xdcf9d6,_0x5e37a3),_0x238855[_0xe83216([0x74,0x68,0x65,0x6e])](_0x2e4d8c=>{_0x2e4d8c!=_0xe83216([0x56,0x61,0x6c,0x69,0x64])&&_0xdcf9d6(_0x2e4d8c);},_0x5e37a3);});return _0x1fc36c||_0x238855||_0xe83216([0x56,0x61,0x6c,0x69,0x64]);}())):_0xe83216([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe83216([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe83216([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe83216([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3cb449(_0x10c40a){return _0x10c40a[_0xe83216([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe83216([0x65,0x79]))?JSON[_0xe83216([0x70,0x61,0x72,0x73,0x65])](_0x2e0425(_0x10c40a)):null;}function _0x2e0425(_0x137f1a){return window[_0xe83216([0x61,0x74,0x6f,0x62])](_0x137f1a[_0xe83216([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe83216([0x2b]))[_0xe83216([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe83216([0x2f])));}function _0x3ff073(_0x4811f8){let _0x26c985=0x1505;function _0x53071(_0x30ccb7){for(let _0x24e1c5=0x0;_0x24e1c5<_0x30ccb7[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24e1c5++){const _0x8859d3=_0x30ccb7[_0xe83216([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24e1c5);_0x26c985=(_0x26c985<<0x5)+_0x26c985+_0x8859d3,_0x26c985&=_0x26c985;}}return function _0x5bb3bc(_0x3345e1){Array[_0xe83216([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3345e1)?_0x3345e1[_0xe83216([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bb3bc):_0x3345e1&&typeof _0x3345e1==_0xe83216([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe83216([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3345e1)[_0xe83216([0x73,0x6f,0x72,0x74])]()[_0xe83216([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c3880,_0x7e4916])=>{_0x53071(_0x1c3880),_0x5bb3bc(_0x7e4916);}):_0x53071(window[_0xe83216([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3345e1));}(_0x4811f8),_0x26c985>>>0x0;}function _0x46656e(_0x43613b){return _0x43613b[_0xe83216([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe83216([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe83216([0x30]));}function _0x514e05(_0x3bc2e5){return _0x3bc2e5[_0xe83216([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe83216([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe83216([0x6a,0x6f,0x69,0x6e])]('');}function _0x2967e7(){}function _0xe83216(_0x3624b3){return _0x3624b3['map'](_0x2100cd=>String['fromCharCode'](_0x2100cd))['join']('');}!function(_0x26b6ea){const _0x1c0b4a=(function(){const _0xcf0fbb=window[_0xe83216([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe83216([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe83216([0x6e,0x6f,0x77])]())[_0xe83216([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe83216([0x2e]),'');let _0x15e864=_0xe83216([0x61]);for(let _0x431d56=0x0;_0x431d56<_0xcf0fbb[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x431d56+=0x2){let _0x2c8280=window[_0xe83216([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcf0fbb[_0xe83216([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x431d56,_0x431d56+0x2));_0x2c8280>=_0x4ce2c6[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2c8280-=_0x4ce2c6[_0xe83216([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15e864+=_0x4ce2c6[_0x2c8280];}return _0x15e864;}());_0x395cfe[_0x1c0b4a]=_0xe83216([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x26b6ea,_0x26b6ea!=_0xe83216([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5e6da9,_0x395cfe[_0xe83216([0x6d,0x6f,0x64,0x65,0x6c])][_0xe83216([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2967e7,_0x395cfe[_0xe83216([0x6d,0x6f,0x64,0x65,0x6c])][_0xe83216([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2967e7,_0x395cfe[_0xe83216([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe83216([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x170152);}class DocumentOutline extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['requires'](){return[DocumentOutlineUtils,DocumentOutlineUI];}static get['pluginName'](){return'DocumentOutline';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c83bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24f129;for(const _0x11c54f in _0x1c83bb){const _0xa96d66=_0x11c54f,_0x1da2fe=_0x1c83bb[_0xa96d66];if('documentOutlineLicenseKeyValid'==_0x1da2fe||'documentOutlineLicenseKeyInvalid'==_0x1da2fe||'documentOutlineLicenseKeyExpired'==_0x1da2fe||'documentOutlineLicenseKeyDomainLimit'==_0x1da2fe||'documentOutlineLicenseKeyNotAllowed'==_0x1da2fe||'documentOutlineLicenseKeyEvaluationLimit'==_0x1da2fe||'documentOutlineLicenseKeyUsageLimit'==_0x1da2fe){delete _0x1c83bb[_0xa96d66],_0x24f129=_0x1da2fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'documentOutlineLicenseKeyInvalid'==_0x24f129&&_0x1c83bb['_showLicenseError']('invalid'),'documentOutlineLicenseKeyExpired'==_0x24f129&&_0x1c83bb['_showLicenseError']('expired'),'documentOutlineLicenseKeyDomainLimit'==_0x24f129&&_0x1c83bb['_showLicenseError']('domainLimit'),'documentOutlineLicenseKeyNotAllowed'==_0x24f129&&_0x1c83bb['_showLicenseError']('featureNotAllowed','DocumentOutline'),'documentOutlineLicenseKeyEvaluationLimit'==_0x24f129&&_0x1c83bb['_showLicenseError']('evaluationLimit'),'documentOutlineLicenseKeyUsageLimit'==_0x24f129&&_0x1c83bb['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContentsCommand extends Command{['execute'](){this['editor']['model']['change'](_0x389801=>{this['editor']['model']['insertObject'](_0x389801['createElement']('tableOfContents'));});}['refresh'](){const _0x23c4d6=this['editor']['model'],_0x5b6c4d=_0x23c4d6['document']['selection']['getFirstPosition']();this['isEnabled']=null!==(_0x5b6c4d&&_0x23c4d6['schema']['findAllowedParent'](_0x5b6c4d,'tableOfContents'));}}class HeadingId extends Plugin{static get['pluginName'](){return'HeadingId';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50b55d=this['editor'];if(_0x50b55d['config']['get']('headingId.modelAttributeName'))return;getDefaultHeadingMapNames(this['editor']['config']['get']('heading.options'))['forEach']((_0x571f07,_0x23fce8)=>{this['_customUpcastHeadingsConversion'](_0x23fce8),this['_customDataDowncastHeadingsConversion'](_0x571f07),_0x50b55d['model']['schema']['isRegistered'](_0x571f07)&&_0x50b55d['model']['schema']['extend'](_0x571f07,{'allowAttributes':'headingId'});}),this['_registerHeadingIdAttributePostfixer']();}['_customUpcastHeadingsConversion'](_0x1552af){this['editor']['conversion']['for']('upcast')['add'](_0x337a1f=>_0x337a1f['on']('element:'+_0x1552af,(_0x2994fd,_0x2b8123,_0x33069a)=>{const {consumable:_0x53f172,writer:_0x59631c}=_0x33069a,_0x527c9b=_0x2b8123['viewItem']['getAttribute']('id'),_0xbe4e33=_0x2b8123['modelRange']['getContainedElement']();if(_0xbe4e33)return _0x527c9b&&_0x527c9b['length']||_0xbe4e33['hasAttribute']('headingId')?void(_0x53f172['consume'](_0x2b8123['viewItem'],{'attributes':['id']})&&_0x59631c['setAttribute']('headingId',_0x527c9b,_0xbe4e33)):(_0x53f172['consume'](_0x2b8123['viewItem'],{'attributes':['id']}),void _0x59631c['setAttribute']('headingId',uid(),_0xbe4e33));},{'priority':priorities['get']('low')+0.5}));}['_customDataDowncastHeadingsConversion'](_0x22589){this['editor']['conversion']['for']('downcast')['add'](_0x3f11e8=>_0x3f11e8['on']('attribute:headingId:'+_0x22589,(_0x3c40fd,_0x1d813e,_0x523b41)=>{if(!_0x523b41['consumable']['consume'](_0x1d813e['item'],_0x3c40fd['name']))return;const _0x34e0a9=_0x1d813e['item']['getAttribute']('headingId'),_0x2971f0=_0x523b41['mapper']['toViewElement'](_0x1d813e['item']);_0x523b41['writer']['setAttribute']('id',_0x34e0a9,_0x2971f0);}));}['_registerHeadingIdAttributePostfixer'](){const _0x1df902=this['editor'],_0x532e28=new Set(),_0x2ac282=new Set();function _0x58ed5d(_0x3c6c52,_0x592dc4){const _0x2b359a=uid();return _0x2ac282['add'](_0x2b359a),_0x3c6c52['setAttribute']('headingId',_0x2b359a,_0x592dc4),_0x2b359a;}function _0x21c032(_0x42e4c1,_0xfbefcf){_0x42e4c1['removeAttribute']('headingId',_0xfbefcf);}_0x1df902['model']['document']['registerPostFixer'](_0x194de6=>{const _0x13b88f=_0x1df902['model']['document']['differ']['getChanges']();let _0x556ba8=!0x1;for(const _0x38df07 of _0x13b88f)if('insert'==_0x38df07['type']&&_0x38df07['name']){if(isHeading$1(_0x38df07['name'])){const _0x3fdf41=_0x38df07['attributes']['get']('headingId');'string'==typeof _0x3fdf41?_0x532e28['has'](_0x3fdf41)?(_0x58ed5d(_0x194de6,_0x38df07['position']['nodeAfter']),_0x556ba8=!0x0):_0x2ac282['add'](_0x3fdf41):(_0x58ed5d(_0x194de6,_0x38df07['position']['nodeAfter']),_0x556ba8=!0x0);}else'string'==typeof _0x38df07['attributes']['get']('headingId')&&(_0x21c032(_0x194de6,_0x38df07['position']['nodeAfter']),_0x556ba8=!0x0);}else{if('remove'==_0x38df07['type']){const _0x41b5eb=_0x38df07['attributes']['get']('headingId');'string'==typeof _0x41b5eb&&_0x532e28['delete'](_0x41b5eb);}}return _0x556ba8;}),_0x1df902['model']['document']['on']('change',()=>{_0x2ac282['forEach'](_0x256157=>_0x532e28['add'](_0x256157)),_0x2ac282['clear']();});}}function isHeading$1(_0x261b12){return!!_0x261b12['match'](/heading\d/);}function getDefaultHeadingMapNames(_0x5ac3ad){const _0x39c7fc=new Map();return _0x5ac3ad?(_0x5ac3ad['forEach'](_0x38d6f2=>{'paragraph'!==_0x38d6f2['model']&&_0x39c7fc['set'](_0x38d6f2['view'],_0x38d6f2['model']);}),_0x39c7fc['get']('h1')||_0x39c7fc['set']('h1','heading1'),_0x39c7fc):_0x39c7fc;}class TableOfContentsEditing extends Plugin{static get['pluginName'](){return'TableOfContentsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Widget,DocumentOutlineUtils,HeadingId];}['_currentOutlineDefinitions'];['_tableOfContentsElements'];['_headingIdModelAttributeName'];constructor(_0xf9e129){super(_0xf9e129),this['_currentOutlineDefinitions']=[],this['_tableOfContentsElements']=new Set(),this['_headingIdModelAttributeName']='headingId';}['init'](){const _0x2b1850=this['editor'],_0x260429=_0x2b1850['editing']['view']['document'];_0x2b1850['config']['get']('headingId.modelAttributeName')&&(this['_headingIdModelAttributeName']=_0x2b1850['config']['get']('headingId.modelAttributeName')),this['listenTo'](_0x260429,'click',(_0x5e966e,_0x41a205)=>{if(!_0x41a205['target'])return;const _0x3bbf5c=_0x41a205['target']['getCustomProperty']('tableOfContentsHeadingIndex');Number['isInteger'](_0x3bbf5c)&&(_0x41a205['domEvent']['preventDefault'](),_0x5e966e['stop'](),this['_handleScrollToHeading'](_0x3bbf5c));},{'priority':'high','context':'$capture'}),this['_defineSchema'](),this['_defineConverters'](),_0x2b1850['commands']['add']('insertTableOfContents',new TableOfContentsCommand(_0x2b1850)),(_0x2b1850['plugins']['get']('DocumentOutlineUtils')['on']('change',(_0x2bfaca,_0x4d2653)=>{this['_currentOutlineDefinitions']=_0x4d2653['outlineDefinitions'],this['_updateTableOfContentsElements']();}),this['listenTo'](_0x2b1850['model']['document'],'change',()=>{this['_trackNewToCElements']();}));}['afterInit'](){checkLicense$f(this);}['_updateTableOfContentsElements'](){this['_tableOfContentsElements']['forEach'](_0x1a22f4=>{'$graveyard'!==_0x1a22f4['rootName']&&this['editor']['editing']['reconvertItem'](_0x1a22f4);});}['_trackNewToCElements'](){for(const _0x176dfa of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x176dfa['type']||'tableOfContents'!==_0x176dfa['name'])return;this['_tableOfContentsElements']['add'](_0x176dfa['position']['nodeAfter']);}}['_defineSchema'](){this['editor']['model']['schema']['register']('tableOfContents',{'inheritAllFrom':'$blockObject'});}['_defineConverters'](){const _0x358294=this['editor']['conversion'];_0x358294['for']('upcast')['elementToElement']({'model':'tableOfContents','view':{'name':'div','classes':'table-of-contents'}}),_0x358294['for']('dataDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x5c1858,{writer:_0x51fba7})=>this['_createTableOfContents'](_0x51fba7,!0x0)}),_0x358294['for']('editingDowncast')['elementToStructure']({'model':'tableOfContents','view':(_0x11eb0b,{writer:_0x24207b})=>{this['_tableOfContentsElements']['add'](_0x11eb0b);const _0x24f556=this['_createTableOfContents'](_0x24207b);return toWidget(_0x24f556,_0x24207b,{'label':getTranslation$e(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'](_0x973d97,_0x32089a=!0x1){const {locale:_0xe271df}=this['editor'],_0x4c8cbd=_0x973d97['createContainerElement']('div',{'class':'table-of-contents'+(0x0===this['_currentOutlineDefinitions']['length']?'\x20table-of-contents_empty':''),...!_0x32089a&&{'data-table-of-contents-label':getTranslation$e(_0xe271df,'Table\x20of\x20contents')}});0x0===this['_currentOutlineDefinitions']['length']&&!0x1===_0x32089a&&_0x973d97['insert'](_0x973d97['createPositionAt'](_0x4c8cbd,'end'),_0x973d97['createContainerElement']('p',{'class':'table-of-contents__placeholder'},[_0x973d97['createText'](getTranslation$e(_0xe271df,'No\x20headings\x20were\x20found\x20in\x20the\x20document.'))]));const _0x28aaf1=_0x32089a?'':'['+getTranslation$e(_0xe271df,'Empty\x20heading')+']';let _0xdf717=_0x4c8cbd;return this['_currentOutlineDefinitions']['forEach']((_0x364563,_0x42a34a,_0xbae4b7)=>{const _0x4367d3=this['editor']['model']['hasContent'](_0x364563['modelElement'],{'ignoreWhitespaces':!0x0}),_0x3e35f6=_0x4367d3?_0x364563['text']:_0x28aaf1,_0x4d7d62=_0x364563['modelElement']['getAttribute'](this['_headingIdModelAttributeName']),_0x24081d=_0x973d97['createContainerElement']('a',{'href':'#'+_0x4d7d62,...!_0x32089a&&{'tabindex':'-1'}},[_0x973d97['createText'](_0x3e35f6)]),_0x372667=this['editor']['config']['get']('documentOutline.showEmptyHeadings');_0x973d97['setCustomProperty']('tableOfContentsHeadingIndex',_0x42a34a,_0x24081d);const _0x5556e4=_0x973d97['createContainerElement']('li',null,[_0x4367d3||!_0x32089a&&_0x372667?_0x24081d:_0x973d97['createText']('')]),_0x3df0c6=_0x42a34a?_0xbae4b7[_0x42a34a-0x1]['level']:0x0,_0x18b612=Math['abs'](_0x364563['level']-_0x3df0c6);if(_0x364563['level']>_0x3df0c6){const _0x34d701=wrapInList(_0x5556e4,_0x18b612,_0x973d97);_0x973d97['insert'](_0x973d97['createPositionAt'](_0xdf717,'end'),_0x34d701);}else{const _0xeea0c6=getOuterListByLevelDifference(_0xdf717,_0x18b612);_0x973d97['insert'](_0x973d97['createPositionAt'](_0xeea0c6,'end'),_0x5556e4);}_0xdf717=_0x5556e4;}),_0x4c8cbd;}['_handleScrollToHeading'](_0x5dbbff){const _0x58d3b2=this['_currentOutlineDefinitions'][_0x5dbbff]['modelElement'];this['editor']['model']['change'](_0x579c9b=>{_0x579c9b['setSelection'](_0x58d3b2,0x0);}),this['editor']['editing']['view']['scrollToTheSelection']({'alignToTop':!0x0,'forceScroll':!0x0});}['_redirectMapper'](){return(_0x3687cb,_0x58e4a8)=>{const _0x39e46a=_0x58e4a8['mapper'],_0x4a2240=_0x39e46a['findMappedViewAncestor'](_0x58e4a8['viewPosition']),_0x3de579=_0x39e46a['toModelElement'](_0x4a2240);_0x3de579['is']('element','tableOfContents')&&(_0x58e4a8['modelPosition']=this['editor']['model']['createPositionAt'](_0x3de579,0x0),_0x3687cb['stop']());};}}function wrapInList(_0x99eb98,_0x32ee9e,_0x284ad7){return 0x1===_0x32ee9e?_0x284ad7['createContainerElement']('ol',null,[_0x99eb98]):_0x284ad7['createContainerElement']('ol',null,[_0x284ad7['createContainerElement']('li',null,[wrapInList(_0x99eb98,_0x32ee9e-0x1,_0x284ad7)])]);}function getOuterListByLevelDifference(_0x13ff7e,_0x246db4){return _0x13ff7e['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})['filter'](_0x1f0bb8=>_0x1f0bb8['is']('element','ol'))[_0x246db4];}async function checkLicense$f(_0x5a64e7){const _0x4829a5=_0x1afd42([0x6d,0x72,0x34,0x7a,0x32,0x79,0x61,0x6b,0x4d,0x33,0x78,0x30,0x70,0x68,0x74,0x44,0x37,0x6a,0x42,0x77,0x31,0x54,0x36,0x71,0x52,0x66,0x65,0x55,0x75,0x5a,0x63,0x4f,0x4c,0x4e,0x4b,0x56,0x67,0x51,0x53,0x50,0x45,0x39,0x69,0x47,0x49,0x48,0x6f,0x58,0x6c,0x4a,0x57,0x38,0x59,0x73,0x43,0x62,0x35,0x41,0x6e,0x64,0x46,0x76]),_0x3e2685=window[_0x1afd42([0x44,0x61,0x74,0x65])][_0x1afd42([0x6e,0x6f,0x77])](),_0x21fee3=_0x5a64e7[_0x1afd42([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x570631=new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ad715=>{_0x21fee3[_0x1afd42([0x6f,0x6e,0x63,0x65])](_0x1afd42([0x72,0x65,0x61,0x64,0x79]),_0x2ad715);}),_0x27ad70={[_0x1afd42([0x6b,0x74,0x79])]:_0x1afd42([0x45,0x43]),[_0x1afd42([0x75,0x73,0x65])]:_0x1afd42([0x73,0x69,0x67]),[_0x1afd42([0x63,0x72,0x76])]:_0x1afd42([0x50,0x2d,0x32,0x35,0x36]),[_0x1afd42([0x78])]:_0x1afd42([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1afd42([0x79])]:_0x1afd42([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1afd42([0x61,0x6c,0x67])]:_0x1afd42([0x45,0x53,0x32,0x35,0x36])},_0x4eed56=_0x21fee3[_0x1afd42([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1afd42([0x67,0x65,0x74])](_0x1afd42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x48594a=await(async function(){let _0x40e1e2,_0x5480e3=null,_0xd3562f=null;try{if(_0x4eed56==_0x1afd42([0x47,0x50,0x4c]))return _0x1afd42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40e1e2=(function(){const _0xddb4c7=_0x4eed56[_0x1afd42([0x73,0x70,0x6c,0x69,0x74])](_0x1afd42([0x2e]));if(0x3!=_0xddb4c7[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4c695c=_0xddb4c7[0x1];return _0x3830da(_0x4c695c);function _0x3830da(_0x11ae6e){const _0x340fd4=_0x24e69c(_0x11ae6e);return _0x340fd4&&_0x1d0c1b()?_0x340fd4:null;function _0x1d0c1b(){const _0x509b30=_0x340fd4[_0x1afd42([0x6a,0x74,0x69])],_0x4be052=window[_0x1afd42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509b30[_0x1afd42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x509b30[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x517251={..._0x340fd4,[_0x1afd42([0x6a,0x74,0x69])]:_0x509b30[_0x1afd42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x509b30[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x517251[_0x1afd42([0x76,0x63])],_0x4a6ec1(_0x517251)==_0x4be052;}}}()),!_0x40e1e2)return _0x1afd42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x40e1e2[_0x1afd42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd3562f=function(_0x3d1267,_0x2d2d9a){return new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaf762a=>{if(_0x1ec615())return _0xaf762a(_0x1afd42([0x56,0x61,0x6c,0x69,0x64]));_0x5e1043(),_0x21fee3[_0x1afd42([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1afd42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc11443=!0x1;const _0x32785b=uid();function _0x2c9d12(_0x1a76b2){return!!_0x1a76b2&&(typeof _0x1a76b2===_0x1afd42([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a76b2===_0x1afd42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a76b2[_0x1afd42([0x74,0x68,0x65,0x6e])]===_0x1afd42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a76b2[_0x1afd42([0x63,0x61,0x74,0x63,0x68])]===_0x1afd42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x397bce(_0x42e529){_0x34e1a2(_0x42e529)[_0x1afd42([0x74,0x68,0x65,0x6e])](_0xa0029d=>{if(!_0xa0029d||_0xa0029d[_0x1afd42([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1afd42([0x6f,0x6b]))return _0x1afd42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x411bfb(_0x4a6ec1(_0x32785b+_0x2d2d9a))!=_0xa0029d[_0x1afd42([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1afd42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1afd42([0x56,0x61,0x6c,0x69,0x64]);})[_0x1afd42([0x74,0x68,0x65,0x6e])](_0x2447f4=>(_0x43821d(),_0x2447f4),()=>{const _0x1e12fa=_0x1f8b35();return null==_0x1e12fa?(_0x43821d(),_0x1afd42([0x56,0x61,0x6c,0x69,0x64])):_0x1afd42(_0x3e2685-_0x1e12fa>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1afd42([0x74,0x68,0x65,0x6e])](_0xaf762a)[_0x1afd42([0x63,0x61,0x74,0x63,0x68])](()=>{_0xaf762a(_0x1afd42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x568ca0=0x36ee80;function _0x43821d(){const _0x3ab910=_0x1afd42([0x6c,0x6c,0x63,0x74,0x2d])+_0x411bfb(_0x4a6ec1(_0x3d1267)),_0x2d5dce=_0x404f9a(_0x411bfb(window[_0x1afd42([0x4d,0x61,0x74,0x68])][_0x1afd42([0x63,0x65,0x69,0x6c])](_0x3e2685/_0x568ca0)));window[_0x1afd42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afd42([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ab910,_0x2d5dce);}function _0x1f8b35(){const _0xef5a09=_0x1afd42([0x6c,0x6c,0x63,0x74,0x2d])+_0x411bfb(_0x4a6ec1(_0x3d1267)),_0x4a0021=window[_0x1afd42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afd42([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xef5a09);return _0x4a0021?window[_0x1afd42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x404f9a(_0x4a0021),0x10)*_0x568ca0:null;}function _0x34e1a2(_0x2dee32){return new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56f41d,_0x2033bd)=>{_0x2dee32[_0x1afd42([0x74,0x68,0x65,0x6e])](_0x56f41d,_0x2033bd),window[_0x1afd42([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2033bd,0x1d4c0);});}}_0x21fee3[_0x1afd42([0x6f,0x6e])](_0x1afd42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56ebce,_0x5432c4)=>{if(_0x5432c4[0x0]!=_0x3d1267)return _0xaf762a(_0x1afd42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5432c4[0x1]={..._0x5432c4[0x1],[_0x1afd42([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32785b};},{[_0x1afd42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afd42([0x68,0x69,0x67,0x68])}),_0x21fee3[_0x1afd42([0x6f,0x6e])](_0x1afd42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x458904=>{_0x2c9d12(_0x458904[_0x1afd42([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc11443=!0x0,_0x397bce(_0x458904[_0x1afd42([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1afd42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afd42([0x6c,0x6f,0x77])}),_0x570631[_0x1afd42([0x74,0x68,0x65,0x6e])](()=>{_0xc11443||_0xaf762a(_0x1afd42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ec615(){return _0x21fee3[_0x1afd42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afd42([0x76,0x69,0x65,0x77])][_0x1afd42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1afd42([0x61,0x75,0x74,0x6f]);}function _0x5e1043(){_0x21fee3[_0x1afd42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afd42([0x76,0x69,0x65,0x77])][_0x1afd42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1afd42([0x61,0x75,0x74,0x6f]);}}(_0x40e1e2[_0x1afd42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40e1e2[_0x1afd42([0x6a,0x74,0x69])]));const _0x50c9de=await(async function(){let _0x7b0d4e=!0x0;try{const _0x3c88d9=_0x4eed56[_0x1afd42([0x73,0x70,0x6c,0x69,0x74])](_0x1afd42([0x2e])),[_0x2efdaf,_0x141a4e,_0x30f238]=_0x3c88d9;return _0x42ae33(_0x2efdaf),await _0x17934f(_0x2efdaf,_0x141a4e,_0x30f238),_0x7b0d4e;}catch{return!0x1;}function _0x42ae33(_0x1dd433){const _0xd79a6c=_0x24e69c(_0x1dd433);_0xd79a6c&&_0xd79a6c[_0x1afd42([0x61,0x6c,0x67])]==_0x1afd42([0x45,0x53,0x32,0x35,0x36])||(_0x7b0d4e=!0x1);}async function _0x17934f(_0x381e7a,_0x26f869,_0x2a774f){const _0x3e8e14=window[_0x1afd42([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1afd42([0x66,0x72,0x6f,0x6d])](_0x5371c9(_0x2a774f),_0x15d0a6=>_0x15d0a6[_0x1afd42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21c999=new window[(_0x1afd42([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1afd42([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x381e7a+_0x1afd42([0x2e])+_0x26f869),_0x1493af=window[_0x1afd42([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1afd42([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1493af)return;const _0x244a67=await _0x1493af[_0x1afd42([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1afd42([0x6a,0x77,0x6b]),_0x27ad70,{[_0x1afd42([0x6e,0x61,0x6d,0x65])]:_0x1afd42([0x45,0x43,0x44,0x53,0x41]),[_0x1afd42([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1afd42([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1afd42([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1493af[_0x1afd42([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1afd42([0x6e,0x61,0x6d,0x65])]:_0x1afd42([0x45,0x43,0x44,0x53,0x41]),[_0x1afd42([0x68,0x61,0x73,0x68])]:{[_0x1afd42([0x6e,0x61,0x6d,0x65])]:_0x1afd42([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x244a67,_0x3e8e14,_0x21c999)||(_0x7b0d4e=!0x1);}}());return _0x50c9de?(function(){const _0x3918f3=_0x40e1e2[_0x1afd42([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3918f3)return!0x1;if(_0x3918f3[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd42([0x2a])))return!0x0;if(_0x3918f3[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd42([0x54,0x4f,0x43])))return!0x0;if(_0x3918f3[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd42([0x50,0x50])))return!0x0;if(_0x3918f3[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd42([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x1afd42([0x67,0x6c,0x6f,0x62])]&&window[_0x1afd42([0x67,0x6c,0x6f,0x62])][_0x1afd42([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x5bddc0=[_0x1afd42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1afd42([0x74,0x72,0x69,0x61,0x6c])][_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40e1e2[_0x1afd42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e2685/0x3e8:0x69e02680;return _0x40e1e2[_0x1afd42([0x65,0x78,0x70])]<_0x5bddc0;}())?_0x1afd42([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x53a33f=_0x40e1e2[_0x1afd42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53a33f||0x0==_0x53a33f[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xb2bed3}=new URL(window[_0x1afd42([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53a33f[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb2bed3))return!0x0;const _0x3966ea=_0xb2bed3[_0x1afd42([0x73,0x70,0x6c,0x69,0x74])](_0x1afd42([0x2e]));return _0x53a33f[_0x1afd42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49e684=>_0x49e684[_0x1afd42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afd42([0x2a])))[_0x1afd42([0x6d,0x61,0x70])](_0xda2cbe=>_0xda2cbe[_0x1afd42([0x73,0x70,0x6c,0x69,0x74])](_0x1afd42([0x2e])))[_0x1afd42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcf3fa9=>_0xcf3fa9[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3966ea[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1afd42([0x6d,0x61,0x70])](_0x23f99b=>Array(_0x3966ea[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23f99b[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1afd42([0x66,0x69,0x6c,0x6c])](_0x23f99b[0x0]===_0x1afd42([0x2a])?_0x1afd42([0x2a]):'')[_0x1afd42([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23f99b))[_0x1afd42([0x73,0x6f,0x6d,0x65])](_0x6adf38=>_0x3966ea[_0x1afd42([0x65,0x76,0x65,0x72,0x79])]((_0x10ccb5,_0x3437db)=>_0x6adf38[_0x3437db]===_0x10ccb5||_0x6adf38[_0x3437db]===_0x1afd42([0x2a])));}())?(_0x40e1e2[_0x1afd42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afd42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5480e3=function(_0x32b491){const _0x5231f4=new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37165d=>setTimeout(_0x37165d,0x93ecc)),_0x1945d5=_0x570631[_0x1afd42([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c0818=>{let _0x3011ed=0x0;_0x21fee3[_0x1afd42([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afd42([0x6f,0x6e])](_0x1afd42([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x548009,_0x22b357)=>{_0x22b357[0x0][_0x1afd42([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3011ed++,0x5e8==_0x3011ed&&(_0x4c0818(),_0x548009[_0x1afd42([0x6f,0x66,0x66])]());});})),_0x2b996d=[_0x5231f4,_0x1945d5];return window[_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1afd42([0x72,0x61,0x63,0x65])](_0x2b996d)[_0x1afd42([0x74,0x68,0x65,0x6e])](()=>_0x32b491);}(_0x1afd42([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5480e3&&_0xd3562f)return new window[(_0x1afd42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58c81e,_0x2376e1)=>{_0x5480e3[_0x1afd42([0x74,0x68,0x65,0x6e])](_0x58c81e,_0x2376e1),_0xd3562f[_0x1afd42([0x74,0x68,0x65,0x6e])](_0x5f5164=>{_0x5f5164!=_0x1afd42([0x56,0x61,0x6c,0x69,0x64])&&_0x58c81e(_0x5f5164);},_0x2376e1);});return _0x5480e3||_0xd3562f||_0x1afd42([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1afd42([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1afd42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1afd42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1afd42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x24e69c(_0x18e33e){return _0x18e33e[_0x1afd42([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1afd42([0x65,0x79]))?JSON[_0x1afd42([0x70,0x61,0x72,0x73,0x65])](_0x5371c9(_0x18e33e)):null;}function _0x5371c9(_0x1ef709){return window[_0x1afd42([0x61,0x74,0x6f,0x62])](_0x1ef709[_0x1afd42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1afd42([0x2b]))[_0x1afd42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1afd42([0x2f])));}function _0x4a6ec1(_0x43b8c1){let _0x5c9cb7=0x1505;function _0x1428ba(_0x551660){for(let _0x4e5ad8=0x0;_0x4e5ad8<_0x551660[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e5ad8++){const _0xf5a7cc=_0x551660[_0x1afd42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e5ad8);_0x5c9cb7=(_0x5c9cb7<<0x5)+_0x5c9cb7+_0xf5a7cc,_0x5c9cb7&=_0x5c9cb7;}}return function _0x5d8b7c(_0x131814){Array[_0x1afd42([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x131814)?_0x131814[_0x1afd42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d8b7c):_0x131814&&typeof _0x131814==_0x1afd42([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1afd42([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x131814)[_0x1afd42([0x73,0x6f,0x72,0x74])]()[_0x1afd42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ff478,_0x217b3e])=>{_0x1428ba(_0x3ff478),_0x5d8b7c(_0x217b3e);}):_0x1428ba(window[_0x1afd42([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x131814));}(_0x43b8c1),_0x5c9cb7>>>0x0;}function _0x411bfb(_0x4cad7a){return _0x4cad7a[_0x1afd42([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1afd42([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1afd42([0x30]));}function _0x404f9a(_0x4ac708){return _0x4ac708[_0x1afd42([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1afd42([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1afd42([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b8863(){}function _0x1afd42(_0x4c2c4b){return _0x4c2c4b['map'](_0x504247=>String['fromCharCode'](_0x504247))['join']('');}!function(_0x2ee994){const _0x5d4f04=(function(){const _0x1aec12=window[_0x1afd42([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1afd42([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1afd42([0x6e,0x6f,0x77])]())[_0x1afd42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1afd42([0x2e]),'');let _0x8a10c6=_0x1afd42([0x6d]);for(let _0x1e337b=0x0;_0x1e337b<_0x1aec12[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e337b+=0x2){let _0x5739e5=window[_0x1afd42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aec12[_0x1afd42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e337b,_0x1e337b+0x2));_0x5739e5>=_0x4829a5[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5739e5-=_0x4829a5[_0x1afd42([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8a10c6+=_0x4829a5[_0x5739e5];}return _0x8a10c6;}());_0x21fee3[_0x5d4f04]=_0x1afd42([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ee994,_0x2ee994!=_0x1afd42([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x570631,_0x21fee3[_0x1afd42([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afd42([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b8863,_0x21fee3[_0x1afd42([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afd42([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b8863,_0x21fee3[_0x1afd42([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1afd42([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x48594a);}class TableOfContentsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TableOfContentsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5228bb=this['editor'];_0x5228bb['ui']['componentFactory']['add']('tableOfContents',()=>{const _0x4fb5a3=this['_createButton'](ButtonView);return _0x4fb5a3['tooltip']=!0x0,_0x4fb5a3;}),_0x5228bb['ui']['componentFactory']['add']('menuBar:tableOfContents',()=>this['_createButton'](MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e4925=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x559e54;for(const _0x24d7ab in _0x4e4925){const _0x2d06fb=_0x24d7ab,_0x55494d=_0x4e4925[_0x2d06fb];if('tableOfContentsLicenseKeyValid'==_0x55494d||'tableOfContentsLicenseKeyInvalid'==_0x55494d||'tableOfContentsLicenseKeyExpired'==_0x55494d||'tableOfContentsLicenseKeyDomainLimit'==_0x55494d||'tableOfContentsLicenseKeyNotAllowed'==_0x55494d||'tableOfContentsLicenseKeyEvaluationLimit'==_0x55494d||'tableOfContentsLicenseKeyUsageLimit'==_0x55494d){delete _0x4e4925[_0x2d06fb],_0x559e54=_0x55494d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'tableOfContentsLicenseKeyInvalid'==_0x559e54&&_0x4e4925['_showLicenseError']('invalid'),'tableOfContentsLicenseKeyExpired'==_0x559e54&&_0x4e4925['_showLicenseError']('expired'),'tableOfContentsLicenseKeyDomainLimit'==_0x559e54&&_0x4e4925['_showLicenseError']('domainLimit'),'tableOfContentsLicenseKeyNotAllowed'==_0x559e54&&_0x4e4925['_showLicenseError']('featureNotAllowed','TableOfContents'),'tableOfContentsLicenseKeyEvaluationLimit'==_0x559e54&&_0x4e4925['_showLicenseError']('evaluationLimit'),'tableOfContentsLicenseKeyUsageLimit'==_0x559e54&&_0x4e4925['_showLicenseError']('usageLimit');},0x3e8);}['_createButton'](_0x56f0ca){const _0x48a261=this['editor'],_0x59d5c7=_0x48a261['locale'],_0x1b515b=_0x48a261['commands']['get']('insertTableOfContents'),_0x186e54=new _0x56f0ca(_0x59d5c7);return _0x186e54['set']({'label':getTranslation$e(_0x59d5c7,'Table\x20of\x20contents'),'icon':IconTableOfContents}),_0x186e54['bind']('isEnabled')['to'](_0x1b515b,'isEnabled'),this['listenTo'](_0x186e54,'execute',()=>{_0x48a261['execute']('insertTableOfContents'),_0x48a261['editing']['view']['focus']();}),_0x186e54;}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TableOfContents extends Plugin{static get['requires'](){return[TableOfContentsEditing,TableOfContentsUI];}static get['pluginName'](){return'TableOfContents';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const BASE_DOCUMENTATION_URL='https://ckeditor.com/docs/ckeditor5/latest';class EmailConfigurationLogger extends Plugin{static get['pluginName'](){return'EmailConfigurationLogger';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x522232){super(_0x522232),_0x522232['config']['define']('email.logs',{'suppress':[],'suppressAll':!0x1});}['afterInit'](){checkLicense$e(this);}['_logSuppressibleWarning'](_0x37d0f5,_0x1119a0){if(this['_isSuppressedLog'](_0x37d0f5,_0x1119a0))return;const _0x5ea14e=BASE_DOCUMENTATION_URL+'/support/error-codes.html#error-'+_0x37d0f5;console['warn']('%cEmailConfigurationHelper%c\x20'+_0x37d0f5,'background:\x20#E65100;\x20color:\x20white;\x20padding:\x202px\x204px;','',..._0x1119a0?[_0x1119a0]:[],'\x0aRead\x20more:\x20'+_0x5ea14e);}['_logSuppressibleInfo'](_0x5a78cc,_0x2e3340,_0x666b08){if(this['_isSuppressedLog'](_0x5a78cc))return;let _0x3ba05a=_0x2e3340;_0x666b08&&(_0x3ba05a+='\x0aRead\x20more:\x20'+(BASE_DOCUMENTATION_URL+'/'+_0x666b08)),console['info']('%cEmailConfigurationHelper%c\x20'+_0x5a78cc,'background:\x20#4169E1;\x20color:\x20white;\x20padding:\x202px\x204px;','',_0x3ba05a);}['_checkUnsupportedPlugin'](_0x130124,_0xac6d20){this['editor']['plugins']['has'](_0x130124)&&this['_logSuppressibleWarning']('email-configuration-unsupported-plugin',{'pluginName':_0x130124,..._0xac6d20});}['_validateConfigColorValue'](_0x52c408){const _0x3c4224=this['editor']['config']['get'](_0x52c408);if(!_0x3c4224)return;const _0x1f1b0c=Array['isArray'](_0x3c4224),_0x4ef963=_0x1f1b0c?_0x3c4224:[_0x3c4224];for(const [_0x455de0,_0xc672]of _0x4ef963['entries']()){const _0x56ad4d='string'==typeof _0xc672?_0xc672:_0xc672['color'];isUnsupportedEmailColorValue(_0x56ad4d)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-value',{'configPath':_0x1f1b0c?_0x52c408+'['+_0x455de0+']':_0x52c408,'color':_0x56ad4d});}}['_validateConfigColorFormat'](_0x29492e){const _0x254d5e=this['editor']['config']['get'](_0x29492e);_0x254d5e&&isUnsupportedEmailColorFormat(_0x254d5e)&&this['_logSuppressibleWarning']('email-configuration-unsupported-color-format',{'configPath':_0x29492e,'format':_0x254d5e});}['_isSuppressedLog'](_0x5baef3,_0x4fde5a){const _0x55e494=this['editor']['config']['get']('email.logs');return!!_0x55e494['suppressAll']||(!('function'!=typeof _0x55e494['suppress']||!_0x55e494['suppress'](_0x5baef3,_0x4fde5a))||!(!Array['isArray'](_0x55e494['suppress'])||!_0x55e494['suppress']['includes'](_0x5baef3)));}}const UNSUPPORTED_COLOR_FORMATS=['hsl','hsla','hwb','lab','lch','oklab','oklch','color-mix','rgba'];function isUnsupportedEmailColorValue(_0x1d49d3){return!!_0x1d49d3&&UNSUPPORTED_COLOR_FORMATS['some'](_0x2d0ff6=>_0x1d49d3['includes'](_0x2d0ff6+'('));}function isUnsupportedEmailColorFormat(_0x78ec4c){return!!_0x78ec4c&&UNSUPPORTED_COLOR_FORMATS['includes'](_0x78ec4c);}async function checkLicense$e(_0x20e2a1){const _0x573f71=_0x4702c0([0x75,0x69,0x7a,0x54,0x64,0x76,0x79,0x42,0x49,0x61,0x34,0x52,0x4b,0x73,0x6e,0x4f,0x59,0x6d,0x45,0x58,0x47,0x4d,0x66,0x6a,0x65,0x68,0x77,0x4a,0x51,0x71,0x62,0x50,0x53,0x43,0x6b,0x37,0x44,0x74,0x5a,0x67,0x46,0x35,0x38,0x4c,0x78,0x6c,0x32,0x39,0x48,0x6f,0x36,0x63,0x41,0x55,0x57,0x31,0x70,0x56,0x33,0x4e,0x72,0x30]),_0x1e6926=window[_0x4702c0([0x44,0x61,0x74,0x65])][_0x4702c0([0x6e,0x6f,0x77])](),_0x1932f9=_0x20e2a1[_0x4702c0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x360cd9=new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331de0=>{_0x1932f9[_0x4702c0([0x6f,0x6e,0x63,0x65])](_0x4702c0([0x72,0x65,0x61,0x64,0x79]),_0x331de0);}),_0x5db7cf={[_0x4702c0([0x6b,0x74,0x79])]:_0x4702c0([0x45,0x43]),[_0x4702c0([0x75,0x73,0x65])]:_0x4702c0([0x73,0x69,0x67]),[_0x4702c0([0x63,0x72,0x76])]:_0x4702c0([0x50,0x2d,0x32,0x35,0x36]),[_0x4702c0([0x78])]:_0x4702c0([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4702c0([0x79])]:_0x4702c0([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4702c0([0x61,0x6c,0x67])]:_0x4702c0([0x45,0x53,0x32,0x35,0x36])},_0x1f2715=_0x1932f9[_0x4702c0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4702c0([0x67,0x65,0x74])](_0x4702c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x484126=await(async function(){let _0x5c0fc5,_0x5b25ad=null,_0x342c79=null;try{if(_0x1f2715==_0x4702c0([0x47,0x50,0x4c]))return _0x4702c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c0fc5=(function(){const _0x7f6800=_0x1f2715[_0x4702c0([0x73,0x70,0x6c,0x69,0x74])](_0x4702c0([0x2e]));if(0x3!=_0x7f6800[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x55a89c=_0x7f6800[0x1];return _0x50108e(_0x55a89c);function _0x50108e(_0x27176c){const _0x223bbd=_0x167c66(_0x27176c);return _0x223bbd&&_0x19c108()?_0x223bbd:null;function _0x19c108(){const _0x363a92=_0x223bbd[_0x4702c0([0x6a,0x74,0x69])],_0x7fddb=window[_0x4702c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x363a92[_0x4702c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x363a92[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4803ad={..._0x223bbd,[_0x4702c0([0x6a,0x74,0x69])]:_0x363a92[_0x4702c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x363a92[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4803ad[_0x4702c0([0x76,0x63])],_0x187689(_0x4803ad)==_0x7fddb;}}}()),!_0x5c0fc5)return _0x4702c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5c0fc5[_0x4702c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x342c79=function(_0x36d1d0,_0x483d7d){return new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b7d61=>{if(_0x5c2be6())return _0x2b7d61(_0x4702c0([0x56,0x61,0x6c,0x69,0x64]));_0x1f853f(),_0x1932f9[_0x4702c0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4702c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51b461=!0x1;const _0xe7ec3f=uid();function _0x26b511(_0x198f6b){return!!_0x198f6b&&(typeof _0x198f6b===_0x4702c0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x198f6b===_0x4702c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x198f6b[_0x4702c0([0x74,0x68,0x65,0x6e])]===_0x4702c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x198f6b[_0x4702c0([0x63,0x61,0x74,0x63,0x68])]===_0x4702c0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9b4165(_0x5e1e4b){_0xb18285(_0x5e1e4b)[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x5cf9e6=>{if(!_0x5cf9e6||_0x5cf9e6[_0x4702c0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4702c0([0x6f,0x6b]))return _0x4702c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31c6de(_0x187689(_0xe7ec3f+_0x483d7d))!=_0x5cf9e6[_0x4702c0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4702c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4702c0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x59d941=>(_0x409db3(),_0x59d941),()=>{const _0x4e6e0f=_0x421594();return null==_0x4e6e0f?(_0x409db3(),_0x4702c0([0x56,0x61,0x6c,0x69,0x64])):_0x4702c0(_0x1e6926-_0x4e6e0f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x2b7d61)[_0x4702c0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b7d61(_0x4702c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30a007=0x36ee80;function _0x409db3(){const _0x36e076=_0x4702c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c6de(_0x187689(_0x36d1d0)),_0x5d23b8=_0x4d847a(_0x31c6de(window[_0x4702c0([0x4d,0x61,0x74,0x68])][_0x4702c0([0x63,0x65,0x69,0x6c])](_0x1e6926/_0x30a007)));window[_0x4702c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4702c0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36e076,_0x5d23b8);}function _0x421594(){const _0x34bcbd=_0x4702c0([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c6de(_0x187689(_0x36d1d0)),_0x8fb3b7=window[_0x4702c0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4702c0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34bcbd);return _0x8fb3b7?window[_0x4702c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d847a(_0x8fb3b7),0x10)*_0x30a007:null;}function _0xb18285(_0x586251){return new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fe226,_0x54532a)=>{_0x586251[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x3fe226,_0x54532a),window[_0x4702c0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54532a,0x1d4c0);});}}_0x1932f9[_0x4702c0([0x6f,0x6e])](_0x4702c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a01c2,_0x3056f4)=>{if(_0x3056f4[0x0]!=_0x36d1d0)return _0x2b7d61(_0x4702c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3056f4[0x1]={..._0x3056f4[0x1],[_0x4702c0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe7ec3f};},{[_0x4702c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4702c0([0x68,0x69,0x67,0x68])}),_0x1932f9[_0x4702c0([0x6f,0x6e])](_0x4702c0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11f314=>{_0x26b511(_0x11f314[_0x4702c0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51b461=!0x0,_0x9b4165(_0x11f314[_0x4702c0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4702c0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4702c0([0x6c,0x6f,0x77])}),_0x360cd9[_0x4702c0([0x74,0x68,0x65,0x6e])](()=>{_0x51b461||_0x2b7d61(_0x4702c0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c2be6(){return _0x1932f9[_0x4702c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4702c0([0x76,0x69,0x65,0x77])][_0x4702c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4702c0([0x61,0x75,0x74,0x6f]);}function _0x1f853f(){_0x1932f9[_0x4702c0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4702c0([0x76,0x69,0x65,0x77])][_0x4702c0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4702c0([0x61,0x75,0x74,0x6f]);}}(_0x5c0fc5[_0x4702c0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c0fc5[_0x4702c0([0x6a,0x74,0x69])]));const _0x5a25da=await(async function(){let _0x454c14=!0x0;try{const _0x29067f=_0x1f2715[_0x4702c0([0x73,0x70,0x6c,0x69,0x74])](_0x4702c0([0x2e])),[_0x184242,_0xd66d0f,_0x2ce4d6]=_0x29067f;return _0x4786f3(_0x184242),await _0x2fb2ca(_0x184242,_0xd66d0f,_0x2ce4d6),_0x454c14;}catch{return!0x1;}function _0x4786f3(_0x2bb7f6){const _0x12e3e4=_0x167c66(_0x2bb7f6);_0x12e3e4&&_0x12e3e4[_0x4702c0([0x61,0x6c,0x67])]==_0x4702c0([0x45,0x53,0x32,0x35,0x36])||(_0x454c14=!0x1);}async function _0x2fb2ca(_0x2484c6,_0x17379f,_0x3db981){const _0x2f8042=window[_0x4702c0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4702c0([0x66,0x72,0x6f,0x6d])](_0x3bb1d5(_0x3db981),_0x118d63=>_0x118d63[_0x4702c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28a180=new window[(_0x4702c0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4702c0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2484c6+_0x4702c0([0x2e])+_0x17379f),_0x572d57=window[_0x4702c0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4702c0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x572d57)return;const _0x399524=await _0x572d57[_0x4702c0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4702c0([0x6a,0x77,0x6b]),_0x5db7cf,{[_0x4702c0([0x6e,0x61,0x6d,0x65])]:_0x4702c0([0x45,0x43,0x44,0x53,0x41]),[_0x4702c0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4702c0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4702c0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x572d57[_0x4702c0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4702c0([0x6e,0x61,0x6d,0x65])]:_0x4702c0([0x45,0x43,0x44,0x53,0x41]),[_0x4702c0([0x68,0x61,0x73,0x68])]:{[_0x4702c0([0x6e,0x61,0x6d,0x65])]:_0x4702c0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x399524,_0x2f8042,_0x28a180)||(_0x454c14=!0x1);}}());return _0x5a25da?(function(){const _0x4823bd=_0x5c0fc5[_0x4702c0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4823bd)return!0x1;if(_0x4823bd[_0x4702c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4702c0([0x2a])))return!0x0;if(_0x4823bd[_0x4702c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4702c0([0x45,0x43,0x48])))return!0x0;return!0x1;}())?(function(){const _0x4403c7=[_0x4702c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4702c0([0x74,0x72,0x69,0x61,0x6c])][_0x4702c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c0fc5[_0x4702c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e6926/0x3e8:0x69e02680;return _0x5c0fc5[_0x4702c0([0x65,0x78,0x70])]<_0x4403c7;}())?_0x4702c0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3b1725=_0x5c0fc5[_0x4702c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b1725||0x0==_0x3b1725[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232837}=new URL(window[_0x4702c0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b1725[_0x4702c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232837))return!0x0;const _0x4f48b3=_0x232837[_0x4702c0([0x73,0x70,0x6c,0x69,0x74])](_0x4702c0([0x2e]));return _0x3b1725[_0x4702c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x226547=>_0x226547[_0x4702c0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4702c0([0x2a])))[_0x4702c0([0x6d,0x61,0x70])](_0x4988be=>_0x4988be[_0x4702c0([0x73,0x70,0x6c,0x69,0x74])](_0x4702c0([0x2e])))[_0x4702c0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x274822=>_0x274822[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f48b3[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4702c0([0x6d,0x61,0x70])](_0x3c54da=>Array(_0x4f48b3[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c54da[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4702c0([0x66,0x69,0x6c,0x6c])](_0x3c54da[0x0]===_0x4702c0([0x2a])?_0x4702c0([0x2a]):'')[_0x4702c0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c54da))[_0x4702c0([0x73,0x6f,0x6d,0x65])](_0x477678=>_0x4f48b3[_0x4702c0([0x65,0x76,0x65,0x72,0x79])]((_0x5dbc62,_0xae74f1)=>_0x477678[_0xae74f1]===_0x5dbc62||_0x477678[_0xae74f1]===_0x4702c0([0x2a])));}())?(_0x5c0fc5[_0x4702c0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4702c0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b25ad=function(_0x4def83){const _0x102629=new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x258e37=>setTimeout(_0x258e37,0x93ecc)),_0x2d2d37=_0x360cd9[_0x4702c0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44809e=>{let _0x25ca1b=0x0;_0x1932f9[_0x4702c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4702c0([0x6f,0x6e])](_0x4702c0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d16e3,_0x2e925e)=>{_0x2e925e[0x0][_0x4702c0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25ca1b++,0x5e8==_0x25ca1b&&(_0x44809e(),_0x5d16e3[_0x4702c0([0x6f,0x66,0x66])]());});})),_0x15bc51=[_0x102629,_0x2d2d37];return window[_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4702c0([0x72,0x61,0x63,0x65])](_0x15bc51)[_0x4702c0([0x74,0x68,0x65,0x6e])](()=>_0x4def83);}(_0x4702c0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5b25ad&&_0x342c79)return new window[(_0x4702c0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25df06,_0x3fd0a5)=>{_0x5b25ad[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x25df06,_0x3fd0a5),_0x342c79[_0x4702c0([0x74,0x68,0x65,0x6e])](_0x573e7b=>{_0x573e7b!=_0x4702c0([0x56,0x61,0x6c,0x69,0x64])&&_0x25df06(_0x573e7b);},_0x3fd0a5);});return _0x5b25ad||_0x342c79||_0x4702c0([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4702c0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4702c0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4702c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4702c0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x167c66(_0x4edcf5){return _0x4edcf5[_0x4702c0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4702c0([0x65,0x79]))?JSON[_0x4702c0([0x70,0x61,0x72,0x73,0x65])](_0x3bb1d5(_0x4edcf5)):null;}function _0x3bb1d5(_0xe6b689){return window[_0x4702c0([0x61,0x74,0x6f,0x62])](_0xe6b689[_0x4702c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4702c0([0x2b]))[_0x4702c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4702c0([0x2f])));}function _0x187689(_0x2cc2bf){let _0x150bdf=0x1505;function _0x454b59(_0x5bc6ae){for(let _0x83c6f3=0x0;_0x83c6f3<_0x5bc6ae[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x83c6f3++){const _0x4622a2=_0x5bc6ae[_0x4702c0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x83c6f3);_0x150bdf=(_0x150bdf<<0x5)+_0x150bdf+_0x4622a2,_0x150bdf&=_0x150bdf;}}return function _0x9f1d71(_0x41a92c){Array[_0x4702c0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41a92c)?_0x41a92c[_0x4702c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9f1d71):_0x41a92c&&typeof _0x41a92c==_0x4702c0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4702c0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41a92c)[_0x4702c0([0x73,0x6f,0x72,0x74])]()[_0x4702c0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ad5e1,_0xabccb2])=>{_0x454b59(_0x3ad5e1),_0x9f1d71(_0xabccb2);}):_0x454b59(window[_0x4702c0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41a92c));}(_0x2cc2bf),_0x150bdf>>>0x0;}function _0x31c6de(_0x237470){return _0x237470[_0x4702c0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4702c0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4702c0([0x30]));}function _0x4d847a(_0x4c6827){return _0x4c6827[_0x4702c0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4702c0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4702c0([0x6a,0x6f,0x69,0x6e])]('');}function _0x513369(){}function _0x4702c0(_0x5cb38c){return _0x5cb38c['map'](_0x4ed399=>String['fromCharCode'](_0x4ed399))['join']('');}!function(_0x264e66){const _0x3582fd=(function(){const _0x2ae2ab=window[_0x4702c0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4702c0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4702c0([0x6e,0x6f,0x77])]())[_0x4702c0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4702c0([0x2e]),'');let _0x17128a=_0x4702c0([0x75]);for(let _0x46232d=0x0;_0x46232d<_0x2ae2ab[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46232d+=0x2){let _0x17788c=window[_0x4702c0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ae2ab[_0x4702c0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46232d,_0x46232d+0x2));_0x17788c>=_0x573f71[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17788c-=_0x573f71[_0x4702c0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17128a+=_0x573f71[_0x17788c];}return _0x17128a;}());_0x1932f9[_0x3582fd]=_0x4702c0([0x65,0x6d,0x61,0x69,0x6c,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x48,0x65,0x6c,0x70,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x264e66,_0x264e66!=_0x4702c0([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x360cd9,_0x1932f9[_0x4702c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4702c0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x513369,_0x1932f9[_0x4702c0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4702c0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x513369,_0x1932f9[_0x4702c0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4702c0([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x484126);}class HighlightEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'HighlightEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Highlight');}}var calculate=function(_0x545f2f){var _0x447f9b,_0x38c34b,_0x459b71,_0x4ce05e,_0x381cd0=[];for(_0x459b71=0x0,_0x4ce05e=(_0x447f9b=_0x545f2f['split'](','))['length'];_0x459b71<_0x4ce05e;_0x459b71+=0x1)(_0x38c34b=_0x447f9b[_0x459b71])['length']>0x0&&_0x381cd0['push'](calculateSingle(_0x38c34b));return _0x381cd0;},calculateSingle=function(_0x46dc21){var _0x525378,_0x5e93fe,_0x5eb4c8=_0x46dc21,_0x2f08a3={'a':0x0,'b':0x0,'c':0x0},_0x5d66a7=[];return _0x525378=function(_0x2db082,_0x52afae){var _0x5bdb69,_0x42f2a0,_0x32b317,_0x46acd8,_0x2d6e95,_0x34c284;if(_0x2db082['test'](_0x5eb4c8)){for(_0x42f2a0=0x0,_0x32b317=(_0x5bdb69=_0x5eb4c8['match'](_0x2db082))['length'];_0x42f2a0<_0x32b317;_0x42f2a0+=0x1)_0x2f08a3[_0x52afae]+=0x1,_0x46acd8=_0x5bdb69[_0x42f2a0],_0x2d6e95=_0x5eb4c8['indexOf'](_0x46acd8),_0x34c284=_0x46acd8['length'],_0x5d66a7['push']({'selector':_0x46dc21['substr'](_0x2d6e95,_0x34c284),'type':_0x52afae,'index':_0x2d6e95,'length':_0x34c284}),_0x5eb4c8=_0x5eb4c8['replace'](_0x46acd8,Array(_0x34c284+0x1)['join']('\x20'));}},_0x5e93fe=function(_0x3e7481){var _0x590ff1,_0x59589b,_0x53dec4,_0x5bab32;if(_0x3e7481['test'](_0x5eb4c8)){for(_0x59589b=0x0,_0x53dec4=(_0x590ff1=_0x5eb4c8['match'](_0x3e7481))['length'];_0x59589b<_0x53dec4;_0x59589b+=0x1)_0x5bab32=_0x590ff1[_0x59589b],_0x5eb4c8=_0x5eb4c8['replace'](_0x5bab32,Array(_0x5bab32['length']+0x1)['join']('A'));}},_0x5e93fe(/\\[0-9A-Fa-f]{6}\s?/g),_0x5e93fe(/\\[0-9A-Fa-f]{1,5}\s/g),_0x5e93fe(/\\./g),(function(){var _0x4991b3,_0x2e888,_0x3d2166,_0x3e6869,_0x181816=/{[^]*/gm;if(_0x181816['test'](_0x5eb4c8)){for(_0x2e888=0x0,_0x3d2166=(_0x4991b3=_0x5eb4c8['match'](_0x181816))['length'];_0x2e888<_0x3d2166;_0x2e888+=0x1)_0x3e6869=_0x4991b3[_0x2e888],_0x5eb4c8=_0x5eb4c8['replace'](_0x3e6869,Array(_0x3e6869['length']+0x1)['join']('\x20'));}}()),_0x525378(/(\[[^\]]+\])/g,'b'),_0x525378(/(#[^\#\s\+>~\.\[:\)]+)/g,'a'),_0x525378(/(\.[^\s\+>~\.\[:\)]+)/g,'b'),_0x525378(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,'c'),_0x525378(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,'b'),_0x525378(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,'b'),_0x5eb4c8=(_0x5eb4c8=(_0x5eb4c8=(_0x5eb4c8=(_0x5eb4c8=(_0x5eb4c8=_0x5eb4c8['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'),_0x525378(/([^\s\+>~\.\[:]+)/g,'c'),_0x5d66a7['sort'](function(_0x4412a4,_0x3a3c4d){return _0x4412a4['index']-_0x3a3c4d['index'];}),{'selector':_0x46dc21,'specificity':'0,'+_0x2f08a3['a']['toString']()+','+_0x2f08a3['b']['toString']()+','+_0x2f08a3['c']['toString'](),'specificityArray':[0x0,_0x2f08a3['a'],_0x2f08a3['b'],_0x2f08a3['c']],'parts':_0x5d66a7};},compare$1=function(_0x123526,_0xb0e7a5){var _0x3fa476,_0x96cbc5,_0x53177e;if('string'==typeof _0x123526){if(-0x1!==_0x123526['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x3fa476=calculateSingle(_0x123526)['specificityArray'];}else{if(!Array['isArray'](_0x123526))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0x123526['filter'](function(_0x533dd5){return'number'==typeof _0x533dd5;})['length'])throw'Invalid\x20specificity\x20array';_0x3fa476=_0x123526;}if('string'==typeof _0xb0e7a5){if(-0x1!==_0xb0e7a5['indexOf'](','))throw'Invalid\x20CSS\x20selector';_0x96cbc5=calculateSingle(_0xb0e7a5)['specificityArray'];}else{if(!Array['isArray'](_0xb0e7a5))throw'Invalid\x20CSS\x20selector\x20or\x20specificity\x20array';if(0x4!==_0xb0e7a5['filter'](function(_0x59c7d4){return'number'==typeof _0x59c7d4;})['length'])throw'Invalid\x20specificity\x20array';_0x96cbc5=_0xb0e7a5;}for(_0x53177e=0x0;_0x53177e<0x4;_0x53177e+=0x1){if(_0x3fa476[_0x53177e]<_0x96cbc5[_0x53177e])return-0x1;if(_0x3fa476[_0x53177e]>_0x96cbc5[_0x53177e])return 0x1;}return 0x0;};function splitByTopLevelComma(_0x29a23b){const _0x3f78e5=[];let _0x2bcea4='',_0x2e7848=0x0;for(;_0x2e7848<_0x29a23b['length'];){const _0x5987ed=_0x29a23b[_0x2e7848];if('('===_0x5987ed){const _0x40470f=findMatchingParenthesis(_0x29a23b,_0x2e7848+0x1);if(-0x1===_0x40470f)return[];_0x2bcea4+=_0x29a23b['slice'](_0x2e7848,_0x40470f+0x1),_0x2e7848=_0x40470f+0x1;}else','!==_0x5987ed||_0x2bcea4['endsWith']('\x5c')?(_0x2bcea4+=_0x5987ed,_0x2e7848++):(_0x3f78e5['push'](_0x2bcea4['trim']()),_0x2bcea4='',_0x2e7848++);}return _0x2bcea4['trim']()&&_0x3f78e5['push'](_0x2bcea4['trim']()),_0x3f78e5['filter'](Boolean);}function findMatchingParenthesis(_0x3758a1,_0x45b55a){let _0xe0e4b4=0x1;for(let _0x319783=_0x45b55a;_0x319783<_0x3758a1['length'];_0x319783++){const _0x30a8aa=_0x3758a1[_0x319783];if('('===_0x30a8aa)_0xe0e4b4++;else{if(')'===_0x30a8aa&&(_0xe0e4b4--,0x0===_0xe0e4b4))return _0x319783;}}return-0x1;}function dropImportantStyleSuffix(_0x2f5523){return _0x2f5523['replace'](/!\s*important/i,'')['trim']();}function collectRootStylesheetsVariables(_0x26cc3a){const _0x2d6a2f=new Map();for(const {stylesMap:_0xfe4263,flatSelector:_0x17fe19}of _0x26cc3a){if(':root'!==_0x17fe19)continue;const _0xbad62a=inlineStylesMapCSSVariables(_0x2d6a2f['get']['bind'](_0x2d6a2f),_0xfe4263);for(const [_0x51aacc,_0xbd6413]of _0xbad62a)_0x2d6a2f['set'](_0x51aacc,_0xbd6413);}return _0x2d6a2f;}function inlineStylesMapCSSVariables(_0x5c023a,_0x51fd51){const _0x2ce2e3=new Map(),_0x43a1aa=_0x5aee3d=>_0x2ce2e3['has'](_0x5aee3d)?_0x2ce2e3['get'](_0x5aee3d):_0x5c023a(_0x5aee3d);for(const [_0x358dec,_0x35044f]of _0x51fd51['getStylesEntries']())if(_0x35044f&&_0x358dec['startsWith']('--')){const _0x4a488d=inlineCSSVariablesInString(_0x43a1aa,_0x35044f);_0x2ce2e3['set'](_0x358dec,_0x4a488d),_0x51fd51['remove'](_0x358dec);}for(const [_0x1ebd80,_0x132188]of _0x51fd51['getStylesEntries']())if(_0x132188){const _0x17e9c8=inlineCSSVariablesInString(_0x43a1aa,_0x132188);_0x51fd51['set'](_0x1ebd80,_0x17e9c8);}return _0x2ce2e3;}function inlineCSSVariablesInString(_0x10b2de,_0x76cd79){return resolveCSSVariables(_0x76cd79,_0x127fa3=>{const [_0x3e9b76,_0x17efda]=splitByTopLevelComma(_0x127fa3),_0x3708c7=_0x10b2de(_0x3e9b76);return void 0x0!==_0x3708c7?_0x3708c7:_0x17efda?inlineCSSVariablesInString(_0x10b2de,_0x17efda):'var('+_0x3e9b76+')';});}function resolveCSSVariables(_0x4b5c59,_0x325d7d){let _0xa2bb27='',_0x130ad9=0x0;for(;_0x130ad9<_0x4b5c59['length'];){const _0x12c01b=_0x4b5c59['indexOf']('var(',_0x130ad9);if(-0x1===_0x12c01b){_0xa2bb27+=_0x4b5c59['slice'](_0x130ad9);break;}_0xa2bb27+=_0x4b5c59['slice'](_0x130ad9,_0x12c01b);const _0x2780fe=_0x12c01b+0x4,_0x228aae=findMatchingParenthesis(_0x4b5c59,_0x2780fe);_0xa2bb27+=_0x325d7d(_0x4b5c59['substring'](_0x2780fe,_0x228aae)),_0x130ad9=_0x228aae+0x1;}return _0xa2bb27;}async function collectAndProcessStylesheets(_0x1885c4){const _0x5ae0d0=[await collectStylesheets(_0x1885c4['stylesheets']),_0x1885c4['inlineCss']]['filter'](_0x46d31e=>_0x46d31e&&_0x46d31e['length'])['join']('\x0a'),_0x39e920=await convertRawStylesheetToParsedCSSRules(_0x1885c4['stylesProcessor'],_0x5ae0d0);return{'parsedCssRules':_0x39e920,'rootCssVariables':collectRootStylesheetsVariables(_0x39e920)};}async function convertRawStylesheetToParsedCSSRules(_0x4d1096,_0x26507f){const _0x582091=new CSSStyleSheet();return await _0x582091['replace'](_0x26507f),dropCSSNesting(Array['from'](_0x582091['cssRules'])['filter'](_0x45f8a4=>_0x45f8a4 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x19488b,contentCssText:_0x526298})=>{const _0x5be2d7=splitByTopLevelComma(_0x19488b),_0x372bcf=new StylesMap(_0x4d1096)['setTo'](_0x526298);return _0x5be2d7['map'](_0x3ad44e=>{const _0x402808=dropWherePseudoClasses(_0x3ad44e),_0x175d3d=_0x402808?calculate(_0x402808)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x372bcf,'flatSelector':_0x3ad44e,'specificity':_0x175d3d};});})['sort']((_0x4fa316,_0x33131f)=>compare$1(_0x4fa316['specificity'],_0x33131f['specificity']));}function dropWherePseudoClasses(_0x4298d9){const _0x2b122f=':where(';let _0x317e40=_0x4298d9,_0xd1f5ae=0x0;for(let _0x4c5216=0x0;_0x4c5216<0x64;_0x4c5216++){const _0x31a8bb=_0x317e40['indexOf'](_0x2b122f,_0xd1f5ae);if(-0x1===_0x31a8bb)break;let _0x3cfe66=0x0;for(let _0x25e234=0x0;_0x25e234<_0x31a8bb;_0x25e234++)'('===_0x317e40[_0x25e234]?_0x3cfe66++:')'===_0x317e40[_0x25e234]&&_0x3cfe66--;if(_0x3cfe66>0x0){_0xd1f5ae=_0x31a8bb+0x7;continue;}let _0x19fc58=-0x1;for(let _0x929262=_0x31a8bb+0x7,_0x3f2a32=0x1;_0x929262<_0x317e40['length'];_0x929262++)if('('===_0x317e40[_0x929262]?_0x3f2a32++:')'===_0x317e40[_0x929262]&&_0x3f2a32--,!_0x3f2a32){_0x19fc58=_0x929262;break;}-0x1!==_0x19fc58?(_0x317e40=_0x317e40['slice'](0x0,_0x31a8bb)+_0x317e40['slice'](_0x19fc58+0x1),_0xd1f5ae=_0x31a8bb):_0xd1f5ae=_0x31a8bb+0x7;}return _0x317e40['replace'](/\s+/g,'\x20')['trim']();}function dropCSSNesting(_0xac25be,_0x46507c=''){return _0xac25be['flatMap'](_0x36150a=>{const {selectorText:_0x287f04,cssText:_0x324fe6,cssRules:_0x5ead2e}=_0x36150a;if(!_0x287f04)return[];const _0x40aea8=_0x287f04['replace'](/&/g,_0x46507c);let _0x13d845=_0x324fe6['replace'](_0x287f04,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x5ead2e||!_0x5ead2e['length'])return[{'selectorText':_0x40aea8,'contentCssText':_0x13d845}];for(const _0x253033 of _0x5ead2e)_0x13d845=_0x13d845['replace'](_0x253033['cssText'],'')['trim']();return[{'selectorText':_0x40aea8,'contentCssText':_0x13d845},...dropCSSNesting(Array['from'](_0x5ead2e),_0x40aea8)];});}function getElementInlineStyles(_0xf5b1fb){const _0x3d717b=_0xf5b1fb['element']['getAttribute']('style')||'',_0x73d54a=_0xf5b1fb['parsedCssRules']['filter'](_0x4f2cec=>_0xf5b1fb['element']['matches'](_0x4f2cec['flatSelector']))['map'](_0x3d5fe1=>_0x3d5fe1['stylesMap']),_0x3ccec0=concatStylesMaps(_0xf5b1fb['stylesProcessor'],[..._0x73d54a,_0x3d717b]);return{'localCSSVariables':inlineStylesMapCSSVariables(_0xf5b1fb['fallbackCSSVariablesLookup'],_0x3ccec0),'stylesMap':_0x3ccec0};}function concatStylesMaps(_0x591267,_0x1107ed){const _0x2132df=new StylesMap(_0x591267);for(const _0x390f9b of _0x1107ed){let _0x3de1e7=null;if(_0x3de1e7='string'==typeof _0x390f9b?new StylesMap(_0x591267)['setTo'](_0x390f9b):_0x390f9b,_0x3de1e7){for(const [_0x59b309,_0xd792b1]of _0x3de1e7['getStylesEntries']())_0x2132df['set'](_0x59b309,_0xd792b1);}}return _0x2132df;}class ExportInlineStylesCommand extends Command{['_stylesProcessor'];constructor(_0xffbab){super(_0xffbab),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],addMarginStylesRules(this['_stylesProcessor']),addPaddingStylesRules(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x227fda){const _0x1322b4=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3f13c1}=this['editor']['locale'],{rootName:_0x220dbc='main',dataControllerDowncastOptions:_0x25271e={},transformations:_0x180f93=_0x1322b4['transformations']||[]}=_0x227fda||{};this['isBusy']=!0x0,this['refresh']();const _0x3900f9=this['_getRootDataHTMLFragment'](_0x220dbc,_0x25271e),_0x2f4002=createElement(_0x3900f9['ownerDocument'],'div',{'dir':_0x3f13c1,'class':'ck-content'},[_0x3900f9]);return this['_collectAndApplyStyles'](_0x180f93,_0x2f4002)['then'](()=>{const _0x232381=extractElementChildrenAsFragment(_0x2f4002),_0x40ef6a=_0x2f4002['getAttribute']('style');if(_0x40ef6a)for(const _0xdca1a8 of _0x232381['children']){const _0xc32459=_0xdca1a8['getAttribute']('style'),_0x26b675=concatStylesMaps(this['_stylesProcessor'],[_0x40ef6a,_0xc32459]);_0xdca1a8['setAttribute']('style',dumpNonSortedStylesMap(_0x26b675));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x232381);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x13b534,_0x41e046){const {data:_0x3ba91d,model:_0x101ae7}=this['editor'],_0x107bfe=_0x101ae7['document']['getRoot'](_0x13b534),_0x566eeb=_0x3ba91d['toView'](_0x107bfe,_0x41e046);return _0x3ba91d['htmlProcessor']['domConverter']['viewToDom'](_0x566eeb);}async['_collectAndApplyStyles'](_0x186fef,_0x13f9a4){const {stylesheets:_0x36166a,inlineCss:_0x1523d1,stripCssClasses:_0x275422}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x44735c,rootCssVariables:_0x1fd535}=await collectAndProcessStylesheets({'stylesheets':_0x36166a||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x1523d1});this['_processElementTree']({'transformations':_0x186fef,'parsedCssRules':_0x44735c,'element':_0x13f9a4,'stripCssClasses':_0x275422,'parentCSSVariablesLookup':_0x1fd535['get']['bind'](_0x1fd535)});}['_processElementTree']({element:_0x34a5fa,parsedCssRules:_0xf5e4ab,parentCSSVariablesLookup:_0x55c391,stripCssClasses:_0x307a2f,transformations:_0x3252ec}){const {stylesMap:_0x23fd41,localCSSVariables:_0xc73c17}=getElementInlineStyles({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x55c391,'parsedCssRules':_0xf5e4ab,'element':_0x34a5fa});for(const _0x1cf039 of _0x3252ec){const _0x53753e=_0x1cf039(_0x34a5fa,_0x23fd41);_0x53753e&&_0x53753e instanceof HTMLElement&&(_0x34a5fa=_0x53753e);}_0x23fd41['size']?_0x34a5fa['setAttribute']('style',dumpNonSortedStylesMap(_0x23fd41)):_0x34a5fa['removeAttribute']('style');const _0x144008=_0x206ab4=>_0xc73c17['has'](_0x206ab4)?_0xc73c17['get'](_0x206ab4):_0x55c391(_0x206ab4);for(const _0x217915 of _0x34a5fa['children'])_0x217915 instanceof HTMLElement&&this['_processElementTree']({'element':_0x217915,'parentCSSVariablesLookup':_0x144008,'parsedCssRules':_0xf5e4ab,'stripCssClasses':_0x307a2f,'transformations':_0x3252ec});_0x307a2f&&_0x34a5fa['removeAttribute']('class');}}function dumpNonSortedStylesMap(_0x1d1cf6){return _0x1d1cf6['getStylesEntries']()['map'](_0xa685bc=>_0xa685bc['join'](':'))['join'](';')+';';}function extractElementChildrenAsFragment(_0x32d8c1){const _0xb060ca=_0x32d8c1['ownerDocument']['createDocumentFragment']();for(;_0x32d8c1['firstChild'];)_0xb060ca['appendChild'](_0x32d8c1['firstChild']);return _0xb060ca;}class ExportInlineStylesEditing extends Plugin{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){checkLicense$d(this);}}async function checkLicense$d(_0x3b70c1){const _0x9d026=_0xba2a8([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x4e6d8c=window[_0xba2a8([0x44,0x61,0x74,0x65])][_0xba2a8([0x6e,0x6f,0x77])](),_0x501b0b=_0x3b70c1[_0xba2a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3efbfd=new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2beede=>{_0x501b0b[_0xba2a8([0x6f,0x6e,0x63,0x65])](_0xba2a8([0x72,0x65,0x61,0x64,0x79]),_0x2beede);}),_0x4aabf2={[_0xba2a8([0x6b,0x74,0x79])]:_0xba2a8([0x45,0x43]),[_0xba2a8([0x75,0x73,0x65])]:_0xba2a8([0x73,0x69,0x67]),[_0xba2a8([0x63,0x72,0x76])]:_0xba2a8([0x50,0x2d,0x32,0x35,0x36]),[_0xba2a8([0x78])]:_0xba2a8([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xba2a8([0x79])]:_0xba2a8([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xba2a8([0x61,0x6c,0x67])]:_0xba2a8([0x45,0x53,0x32,0x35,0x36])},_0x43b04c=_0x501b0b[_0xba2a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xba2a8([0x67,0x65,0x74])](_0xba2a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x44272e=await(async function(){let _0x1d9046,_0x1ae306=null,_0x347779=null;try{if(_0x43b04c==_0xba2a8([0x47,0x50,0x4c]))return _0xba2a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d9046=(function(){const _0x33b1d7=_0x43b04c[_0xba2a8([0x73,0x70,0x6c,0x69,0x74])](_0xba2a8([0x2e]));if(0x3!=_0x33b1d7[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x261711=_0x33b1d7[0x1];return _0x30af0a(_0x261711);function _0x30af0a(_0x43315c){const _0x4cefcd=_0x5b39b1(_0x43315c);return _0x4cefcd&&_0x49c0fe()?_0x4cefcd:null;function _0x49c0fe(){const _0xc8ef56=_0x4cefcd[_0xba2a8([0x6a,0x74,0x69])],_0x3ef973=window[_0xba2a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc8ef56[_0xba2a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc8ef56[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bc893={..._0x4cefcd,[_0xba2a8([0x6a,0x74,0x69])]:_0xc8ef56[_0xba2a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc8ef56[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bc893[_0xba2a8([0x76,0x63])],_0x52d92c(_0x3bc893)==_0x3ef973;}}}()),!_0x1d9046)return _0xba2a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1d9046[_0xba2a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x347779=function(_0x5e9c83,_0x179dd9){return new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x319e83=>{if(_0x11e88d())return _0x319e83(_0xba2a8([0x56,0x61,0x6c,0x69,0x64]));_0x2ef76e(),_0x501b0b[_0xba2a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xba2a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f3616=!0x1;const _0x10e6fc=uid();function _0x3d5f8e(_0x50e1d9){return!!_0x50e1d9&&(typeof _0x50e1d9===_0xba2a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50e1d9===_0xba2a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50e1d9[_0xba2a8([0x74,0x68,0x65,0x6e])]===_0xba2a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50e1d9[_0xba2a8([0x63,0x61,0x74,0x63,0x68])]===_0xba2a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x440dbc(_0xec22ef){_0x20ca89(_0xec22ef)[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x167a6b=>{if(!_0x167a6b||_0x167a6b[_0xba2a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xba2a8([0x6f,0x6b]))return _0xba2a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c09c5(_0x52d92c(_0x10e6fc+_0x179dd9))!=_0x167a6b[_0xba2a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xba2a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xba2a8([0x56,0x61,0x6c,0x69,0x64]);})[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x45687f=>(_0x23d663(),_0x45687f),()=>{const _0x1d729f=_0x5a714b();return null==_0x1d729f?(_0x23d663(),_0xba2a8([0x56,0x61,0x6c,0x69,0x64])):_0xba2a8(_0x4e6d8c-_0x1d729f>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x319e83)[_0xba2a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x319e83(_0xba2a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f50a4=0x36ee80;function _0x23d663(){const _0x2c73b9=_0xba2a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c09c5(_0x52d92c(_0x5e9c83)),_0x70d026=_0x6c363c(_0x5c09c5(window[_0xba2a8([0x4d,0x61,0x74,0x68])][_0xba2a8([0x63,0x65,0x69,0x6c])](_0x4e6d8c/_0x2f50a4)));window[_0xba2a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba2a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c73b9,_0x70d026);}function _0x5a714b(){const _0x478630=_0xba2a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c09c5(_0x52d92c(_0x5e9c83)),_0x1c136e=window[_0xba2a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xba2a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x478630);return _0x1c136e?window[_0xba2a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6c363c(_0x1c136e),0x10)*_0x2f50a4:null;}function _0x20ca89(_0xf183a2){return new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fb8d0,_0x20014b)=>{_0xf183a2[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x3fb8d0,_0x20014b),window[_0xba2a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20014b,0x1d4c0);});}}_0x501b0b[_0xba2a8([0x6f,0x6e])](_0xba2a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3750fd,_0x5be137)=>{if(_0x5be137[0x0]!=_0x5e9c83)return _0x319e83(_0xba2a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5be137[0x1]={..._0x5be137[0x1],[_0xba2a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10e6fc};},{[_0xba2a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba2a8([0x68,0x69,0x67,0x68])}),_0x501b0b[_0xba2a8([0x6f,0x6e])](_0xba2a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42172c=>{_0x3d5f8e(_0x42172c[_0xba2a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f3616=!0x0,_0x440dbc(_0x42172c[_0xba2a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xba2a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xba2a8([0x6c,0x6f,0x77])}),_0x3efbfd[_0xba2a8([0x74,0x68,0x65,0x6e])](()=>{_0x1f3616||_0x319e83(_0xba2a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11e88d(){return _0x501b0b[_0xba2a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba2a8([0x76,0x69,0x65,0x77])][_0xba2a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xba2a8([0x61,0x75,0x74,0x6f]);}function _0x2ef76e(){_0x501b0b[_0xba2a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xba2a8([0x76,0x69,0x65,0x77])][_0xba2a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xba2a8([0x61,0x75,0x74,0x6f]);}}(_0x1d9046[_0xba2a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d9046[_0xba2a8([0x6a,0x74,0x69])]));const _0x5d4aba=await(async function(){let _0xdf52ae=!0x0;try{const _0x4ef574=_0x43b04c[_0xba2a8([0x73,0x70,0x6c,0x69,0x74])](_0xba2a8([0x2e])),[_0x34446d,_0xd3b3ba,_0x52fe38]=_0x4ef574;return _0xd5c0bb(_0x34446d),await _0x227f9b(_0x34446d,_0xd3b3ba,_0x52fe38),_0xdf52ae;}catch{return!0x1;}function _0xd5c0bb(_0x1c335b){const _0x18bdbd=_0x5b39b1(_0x1c335b);_0x18bdbd&&_0x18bdbd[_0xba2a8([0x61,0x6c,0x67])]==_0xba2a8([0x45,0x53,0x32,0x35,0x36])||(_0xdf52ae=!0x1);}async function _0x227f9b(_0x461127,_0x3c8fc2,_0x55bbab){const _0x401510=window[_0xba2a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xba2a8([0x66,0x72,0x6f,0x6d])](_0x59febe(_0x55bbab),_0x3c11f8=>_0x3c11f8[_0xba2a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26deb5=new window[(_0xba2a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xba2a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x461127+_0xba2a8([0x2e])+_0x3c8fc2),_0x4016f3=window[_0xba2a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xba2a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4016f3)return;const _0x5325e1=await _0x4016f3[_0xba2a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xba2a8([0x6a,0x77,0x6b]),_0x4aabf2,{[_0xba2a8([0x6e,0x61,0x6d,0x65])]:_0xba2a8([0x45,0x43,0x44,0x53,0x41]),[_0xba2a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xba2a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xba2a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4016f3[_0xba2a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xba2a8([0x6e,0x61,0x6d,0x65])]:_0xba2a8([0x45,0x43,0x44,0x53,0x41]),[_0xba2a8([0x68,0x61,0x73,0x68])]:{[_0xba2a8([0x6e,0x61,0x6d,0x65])]:_0xba2a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5325e1,_0x401510,_0x26deb5)||(_0xdf52ae=!0x1);}}());return _0x5d4aba?(function(){const _0x45c3c9=_0x1d9046[_0xba2a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45c3c9)return!0x1;if(_0x45c3c9[_0xba2a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba2a8([0x2a])))return!0x0;if(_0x45c3c9[_0xba2a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba2a8([0x45,0x49,0x53])))return!0x0;return!0x1;}())?(function(){const _0x4273b3=[_0xba2a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xba2a8([0x74,0x72,0x69,0x61,0x6c])][_0xba2a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9046[_0xba2a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e6d8c/0x3e8:0x69e02680;return _0x1d9046[_0xba2a8([0x65,0x78,0x70])]<_0x4273b3;}())?_0xba2a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x18f4ea=_0x1d9046[_0xba2a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18f4ea||0x0==_0x18f4ea[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1759d5}=new URL(window[_0xba2a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18f4ea[_0xba2a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1759d5))return!0x0;const _0x47c406=_0x1759d5[_0xba2a8([0x73,0x70,0x6c,0x69,0x74])](_0xba2a8([0x2e]));return _0x18f4ea[_0xba2a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x176428=>_0x176428[_0xba2a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba2a8([0x2a])))[_0xba2a8([0x6d,0x61,0x70])](_0x3a8ea9=>_0x3a8ea9[_0xba2a8([0x73,0x70,0x6c,0x69,0x74])](_0xba2a8([0x2e])))[_0xba2a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58867e=>_0x58867e[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47c406[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xba2a8([0x6d,0x61,0x70])](_0x3f10df=>Array(_0x47c406[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f10df[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xba2a8([0x66,0x69,0x6c,0x6c])](_0x3f10df[0x0]===_0xba2a8([0x2a])?_0xba2a8([0x2a]):'')[_0xba2a8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f10df))[_0xba2a8([0x73,0x6f,0x6d,0x65])](_0x4ccb70=>_0x47c406[_0xba2a8([0x65,0x76,0x65,0x72,0x79])]((_0xafede5,_0x31c756)=>_0x4ccb70[_0x31c756]===_0xafede5||_0x4ccb70[_0x31c756]===_0xba2a8([0x2a])));}())?(_0x1d9046[_0xba2a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xba2a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ae306=function(_0x2c2b68){const _0x2efb62=new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18eda2=>setTimeout(_0x18eda2,0x93ecc)),_0x309eb8=_0x3efbfd[_0xba2a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd6e5=>{let _0xb77ec=0x0;_0x501b0b[_0xba2a8([0x6d,0x6f,0x64,0x65,0x6c])][_0xba2a8([0x6f,0x6e])](_0xba2a8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x174ade,_0x2e59aa)=>{_0x2e59aa[0x0][_0xba2a8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb77ec++,0x5e8==_0xb77ec&&(_0x1bd6e5(),_0x174ade[_0xba2a8([0x6f,0x66,0x66])]());});})),_0x1395b9=[_0x2efb62,_0x309eb8];return window[_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xba2a8([0x72,0x61,0x63,0x65])](_0x1395b9)[_0xba2a8([0x74,0x68,0x65,0x6e])](()=>_0x2c2b68);}(_0xba2a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1ae306&&_0x347779)return new window[(_0xba2a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ada9c,_0x47e3fb)=>{_0x1ae306[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x3ada9c,_0x47e3fb),_0x347779[_0xba2a8([0x74,0x68,0x65,0x6e])](_0x1795f1=>{_0x1795f1!=_0xba2a8([0x56,0x61,0x6c,0x69,0x64])&&_0x3ada9c(_0x1795f1);},_0x47e3fb);});return _0x1ae306||_0x347779||_0xba2a8([0x56,0x61,0x6c,0x69,0x64]);}())):_0xba2a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xba2a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xba2a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xba2a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5b39b1(_0x25ee8c){return _0x25ee8c[_0xba2a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xba2a8([0x65,0x79]))?JSON[_0xba2a8([0x70,0x61,0x72,0x73,0x65])](_0x59febe(_0x25ee8c)):null;}function _0x59febe(_0x20982a){return window[_0xba2a8([0x61,0x74,0x6f,0x62])](_0x20982a[_0xba2a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xba2a8([0x2b]))[_0xba2a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xba2a8([0x2f])));}function _0x52d92c(_0x7a14da){let _0x4c19e3=0x1505;function _0x2bfa49(_0x412a2a){for(let _0x4c08ab=0x0;_0x4c08ab<_0x412a2a[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c08ab++){const _0x263dd0=_0x412a2a[_0xba2a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c08ab);_0x4c19e3=(_0x4c19e3<<0x5)+_0x4c19e3+_0x263dd0,_0x4c19e3&=_0x4c19e3;}}return function _0x15d39d(_0x3d0c57){Array[_0xba2a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d0c57)?_0x3d0c57[_0xba2a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15d39d):_0x3d0c57&&typeof _0x3d0c57==_0xba2a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xba2a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d0c57)[_0xba2a8([0x73,0x6f,0x72,0x74])]()[_0xba2a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b13b7,_0x3bd31a])=>{_0x2bfa49(_0x3b13b7),_0x15d39d(_0x3bd31a);}):_0x2bfa49(window[_0xba2a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d0c57));}(_0x7a14da),_0x4c19e3>>>0x0;}function _0x5c09c5(_0x40d45e){return _0x40d45e[_0xba2a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xba2a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xba2a8([0x30]));}function _0x6c363c(_0x35d9c7){return _0x35d9c7[_0xba2a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0xba2a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xba2a8([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d09ed(){}function _0xba2a8(_0x563f1e){return _0x563f1e['map'](_0x5cb15b=>String['fromCharCode'](_0x5cb15b))['join']('');}!function(_0x45f9b5){const _0x3d0383=(function(){const _0x5dcb2e=window[_0xba2a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xba2a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xba2a8([0x6e,0x6f,0x77])]())[_0xba2a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xba2a8([0x2e]),'');let _0x26e766=_0xba2a8([0x44]);for(let _0x23a5d1=0x0;_0x23a5d1<_0x5dcb2e[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a5d1+=0x2){let _0x1b9a92=window[_0xba2a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dcb2e[_0xba2a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23a5d1,_0x23a5d1+0x2));_0x1b9a92>=_0x9d026[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b9a92-=_0x9d026[_0xba2a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26e766+=_0x9d026[_0x1b9a92];}return _0x26e766;}());_0x501b0b[_0x3d0383]=_0xba2a8([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45f9b5,_0x45f9b5!=_0xba2a8([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3efbfd;const _0x5bb9b5=_0x501b0b['commands'][_0xba2a8([0x67,0x65,0x74])](_0xba2a8([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x5bb9b5&&_0x5bb9b5[_0xba2a8([0x6f,0x6e])](_0xba2a8([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x3df37b=>{_0x3df37b['stop']();},{'priority':_0xba2a8([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),(_0x501b0b[_0xba2a8([0x6d,0x6f,0x64,0x65,0x6c])][_0xba2a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d09ed,_0x501b0b[_0xba2a8([0x6d,0x6f,0x64,0x65,0x6c])][_0xba2a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d09ed,_0x501b0b[_0xba2a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xba2a8([0x6d,0x6f,0x64,0x65,0x6c])));}());}(_0x44272e);}class ExportInlineStyles extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52e2e2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2699a3;for(const _0x3630e6 in _0x52e2e2){const _0x3cc68b=_0x3630e6,_0x4f4227=_0x52e2e2[_0x3cc68b];if('exportInlineStylesLicenseKeyValid'==_0x4f4227||'exportInlineStylesLicenseKeyInvalid'==_0x4f4227||'exportInlineStylesLicenseKeyExpired'==_0x4f4227||'exportInlineStylesLicenseKeyDomainLimit'==_0x4f4227||'exportInlineStylesLicenseKeyNotAllowed'==_0x4f4227||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4f4227||'exportInlineStylesLicenseKeyUsageLimit'==_0x4f4227){delete _0x52e2e2[_0x3cc68b],_0x2699a3=_0x4f4227,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x2699a3&&_0x52e2e2['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x2699a3&&_0x52e2e2['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x2699a3&&_0x52e2e2['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x2699a3&&_0x52e2e2['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x2699a3&&_0x52e2e2['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x2699a3&&_0x52e2e2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getEmailInlineStylesTransformations(_0x40d496={}){const _0x29667a=[transformEmailFloatToAlign,transformEmailMarginToAlign,transformEmailImageWidthAttributes];return _0x40d496['useFigureToTableFallback']&&_0x29667a['push'](transformEmailFigureToTable,transformEmailFigcaptionToDiv),_0x29667a;}function transformEmailFloatToAlign(_0x282e20,_0x333d8a){if(!['TABLE','IMG']['includes'](_0x282e20['tagName']))return;const _0x16a7bd=_0x333d8a['getAsString']('float');if(_0x16a7bd){const _0x5f5a78=dropImportantStyleSuffix(_0x16a7bd);'left'!==_0x5f5a78&&'right'!==_0x5f5a78||_0x282e20['setAttribute']('align',_0x5f5a78);}}function transformEmailMarginToAlign(_0x508633,_0x292ad7){if('TABLE'!==_0x508633['tagName']||_0x292ad7['has']('float'))return;const _0x2e0f94=getAlignFromMargins(_0x292ad7),_0xb15cc6=_0x292ad7['getAsString']('width');(_0x2e0f94||_0xb15cc6)&&(applyWrapperTable(_0x508633,_0x508633,{'align':_0x2e0f94,'width':_0xb15cc6}),_0x292ad7['remove']('width'),_0x292ad7['remove']('margin-left'),_0x292ad7['remove']('margin-right'),_0x292ad7['remove']('min-width'),_0x292ad7['remove']('max-width'));}function transformEmailImageWidthAttributes(_0x4c212c,_0x30de8a){if('IMG'!==_0x4c212c['tagName'])return;const _0x1d399c=_0x30de8a['getAsString']('width');_0x1d399c&&(_0x4c212c['setAttribute']('width',_0x1d399c),_0x4c212c['setAttribute']('height','auto'));}function transformEmailFigureToTable(_0x3f6033,_0x4f73a8){if('FIGURE'!==_0x3f6033['tagName'])return;const _0x179e4f=getAlignFromMargins(_0x4f73a8),_0x3817b8=_0x4f73a8['getAsString']('width');if(!_0x179e4f&&!_0x3817b8)return;const _0x2b2f8f=createReplacementElement(_0x3f6033,'div');return applyWrapperTable(_0x3f6033,_0x2b2f8f,{'align':_0x179e4f,'width':_0x3817b8}),_0x4f73a8['set']('width','100%'),_0x4f73a8['remove']('margin-left'),_0x4f73a8['remove']('margin-right'),_0x4f73a8['remove']('min-width'),_0x4f73a8['remove']('max-width'),_0x2b2f8f;}function transformEmailFigcaptionToDiv(_0x343ce5){if('FIGCAPTION'!==_0x343ce5['tagName'])return;const _0x555ffe=createReplacementElement(_0x343ce5,'div');return _0x343ce5['replaceWith'](_0x555ffe),_0x555ffe;}function applyWrapperTable(_0x7eea41,_0x267f75,_0x2bd0d8){const _0x45f5f4=_0x7eea41['ownerDocument'],{table:_0x39a80c,cell:_0x10260f}=createWrapperTable(_0x45f5f4,'100%');_0x2bd0d8['align']&&_0x10260f['setAttribute']('align',dropImportantStyleSuffix(_0x2bd0d8['align']));let _0x1eb59f=_0x10260f;if(_0x2bd0d8['width']){const {table:_0xf285a0,cell:_0x50515a}=createWrapperTable(_0x45f5f4,dropImportantStyleSuffix(_0x2bd0d8['width']));_0x10260f['appendChild'](_0xf285a0),_0x1eb59f=_0x50515a;}_0x7eea41['replaceWith'](_0x39a80c),_0x7eea41['removeAttribute']('align'),_0x7eea41['removeAttribute']('width'),_0x1eb59f['appendChild'](_0x267f75);}function createWrapperTable(_0x5757c8,_0x1fa729){const _0x3a115b=_0x5757c8['createElement']('table');_0x3a115b['setAttribute']('width',_0x1fa729),_0x3a115b['setAttribute']('cellpadding','0'),_0x3a115b['setAttribute']('cellspacing','0'),_0x3a115b['setAttribute']('border','0'),_0x3a115b['setAttribute']('role','presentation');const _0x16fb45=_0x5757c8['createElement']('tbody'),_0x243453=_0x5757c8['createElement']('tr'),_0x292895=_0x5757c8['createElement']('td');return _0x3a115b['appendChild'](_0x16fb45),_0x16fb45['appendChild'](_0x243453),_0x243453['appendChild'](_0x292895),{'table':_0x3a115b,'cell':_0x292895};}function getAlignFromMargins(_0x236798){const _0x26f5e9=_0x236798['getAsString']('margin-left'),_0x493b15=_0x236798['getAsString']('margin-right'),_0x1db5c5=_0x26f5e9&&dropImportantStyleSuffix(_0x26f5e9),_0x145315=_0x493b15&&dropImportantStyleSuffix(_0x493b15);return'auto'===_0x1db5c5&&'auto'===_0x145315?'center':'auto'===_0x1db5c5?'right':'auto'===_0x145315?'left':void 0x0;}function createReplacementElement(_0x4d08fc,_0x29a28d){const _0x474619=_0x4d08fc['ownerDocument']['createElement'](_0x29a28d);for(const _0x548300 of Array['from'](_0x4d08fc['attributes']))_0x474619['setAttribute'](_0x548300['name'],_0x548300['value']);for(;_0x4d08fc['firstChild'];)_0x474619['appendChild'](_0x4d08fc['firstChild']);return _0x474619;}class ImageEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ImageEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x290273,plugins:_0x2e1fe4}=this['editor'],_0x23b7d4=_0x290273['get']('exportInlineStyles');if(_0x23b7d4?.['transformations']?.['includes'](transformEmailFigureToTable))return;_0x2e1fe4['get'](EmailConfigurationLogger)['_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.'});}}class MathTypeEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MathTypeEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MathType');}}class ExportInlineStylesEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ExportInlineStylesEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2bd634=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('ExportInlineStyles')||_0x2bd634['_logSuppressibleWarning']('email-configuration-missing-export-inline-styles-plugin');}}class ListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'ListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50ce8a=this['editor']['plugins']['get'](EmailConfigurationLogger),_0x5a2266=this['editor']['config']['get']('list');_0x5a2266&&_0x5a2266['properties']&&_0x5a2266['properties']['reversed']&&_0x50ce8a['_logSuppressibleWarning']('email-configuration-unsupported-reversed-list'),_0x5a2266&&_0x5a2266['enableListItemMarkerFormatting']&&_0x50ce8a['_logSuppressibleWarning']('email-configuration-unsupported-list-item-marker-formatting');}}class TableEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TableEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['_checkRequiredTablePlugins'](),this['_checkTableConfig']();}['_checkRequiredTablePlugins'](){const {plugins:_0x58e579}=this['editor'],_0x8b389a=_0x58e579['get'](EmailConfigurationLogger);_0x58e579['has']('Table')&&(_0x58e579['has']('PlainTableOutput')||_0x8b389a['_logSuppressibleWarning']('email-configuration-missing-plain-table-output-plugin'),_0x58e579['has']('TableLayout')||_0x8b389a['_logSuppressibleWarning']('email-configuration-missing-table-layout-plugin'));}['_checkTableConfig'](){const {config:_0x365806,plugins:_0x57f1e6}=this['editor'];_0x365806['get']('table')&&_0x57f1e6['has']('Table')&&(this['_checkTablePropertiesConfig']('tableCellProperties'),this['_checkTablePropertiesConfig']('tableProperties'));}['_checkTablePropertiesConfig'](_0x42c5be){const _0x49508b=this['editor']['plugins']['get'](EmailConfigurationLogger);_0x49508b['_validateConfigColorValue']('table.'+_0x42c5be+'.borderColors'),_0x49508b['_validateConfigColorValue']('table.'+_0x42c5be+'.backgroundColors'),_0x49508b['_validateConfigColorValue']('table.'+_0x42c5be+'.defaultProperties.borderColor'),_0x49508b['_validateConfigColorValue']('table.'+_0x42c5be+'.defaultProperties'),_0x49508b['_validateConfigColorFormat']('table.'+_0x42c5be+'.colorPicker.format');}}class EmptyBlockEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'EmptyBlockEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x510afc=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('EmptyBlock')||_0x510afc['_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');}}class FontEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'FontEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x1655b9}=this['editor'];_0x1655b9['has']('FontColorEditing')&&this['_checkColorConfig']('fontColor'),_0x1655b9['has']('FontBackgroundColorEditing')&&this['_checkColorConfig']('fontBackgroundColor');}['_checkColorConfig'](_0x4a5a49){const _0x4a304c=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['config']['get'](_0x4a5a49)&&(_0x4a304c['_validateConfigColorValue'](_0x4a5a49+'.colors'),_0x4a304c['_validateConfigColorValue'](_0x4a5a49+'.documentColors'),_0x4a304c['_validateConfigColorFormat'](_0x4a5a49+'.colorPicker.format'));}}class SourceEditingEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'SourceEditingEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {plugins:_0x632046}=this['editor'],_0x2f735a=_0x632046['get'](EmailConfigurationLogger);_0x632046['has']('SourceEditing')||_0x632046['has']('SourceEditingEnhanced')||_0x2f735a['_logSuppressibleWarning']('email-configuration-missing-source-editing-plugin');}}class MarkdownEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MarkdownEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Markdown');}}class GeneralHtmlIntegrationSupport extends Plugin{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[EmailConfigurationLogger];}static get['pluginName'](){return'GeneralHtmlIntegrationSupport';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x1057d1}=this['editor'];if(!_0x1057d1['has']('DataFilter'))return;const _0x54716c=_0x1057d1['get']('DataFilter'),_0xf9a793=_0x1057d1['get'](EmailConfigurationLogger);for(const _0x1c5344 of GeneralHtmlIntegrationSupport['UNSUPPORTED_ELEMENTS'])_0x54716c['once']('register:'+_0x1c5344,(_0x3f8356,_0x5f3356)=>{_0xf9a793['_logSuppressibleWarning']('email-unsupported-html-element',{'element':_0x5f3356['view']});});}}class MergeFieldsEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MergeFieldsEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xb7f83e=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('MergeFields')||_0xb7f83e['_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');}}class TemplateEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TemplateEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xcba8cd=this['editor']['plugins']['get'](EmailConfigurationLogger);this['editor']['plugins']['has']('Template')||_0xcba8cd['_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');}}class UploadEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'UploadEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('Base64UploadAdapter');}}class MediaEmbedEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MediaEmbedEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MediaEmbed');}}class TodoListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'TodoListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('TodoList');}}class MultiLevelListEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'MultiLevelListEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){this['editor']['plugins']['get'](EmailConfigurationLogger)['_checkUnsupportedPlugin']('MultiLevelList',{'description':'The\x20multi-level\x20lists\x20are\x20rendered\x20incorrectly\x20in\x20Outlook\x202021.'});}}class LinkEmailIntegration extends Plugin{static get['requires'](){return[EmailConfigurationLogger];}static get['pluginName'](){return'LinkEmailIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const {config:_0x3c3cd9,plugins:_0x5b14d9}=this['editor'],_0x148f9f=_0x5b14d9['get'](EmailConfigurationLogger),_0x1b0af3=_0x3c3cd9['get']('exportInlineStyles');_0x1b0af3?.['transformations']?.['includes'](transformEmailFigureToTable)||_0x148f9f['_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.'});}}class EmailConfigurationHelper extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'EmailConfigurationHelper';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[HighlightEmailIntegration,ImageEmailIntegration,MathTypeEmailIntegration,ExportInlineStylesEmailIntegration,ListEmailIntegration,TableEmailIntegration,EmptyBlockEmailIntegration,FontEmailIntegration,SourceEditingEmailIntegration,MarkdownEmailIntegration,GeneralHtmlIntegrationSupport,MergeFieldsEmailIntegration,TemplateEmailIntegration,UploadEmailIntegration,MediaEmbedEmailIntegration,TodoListEmailIntegration,MultiLevelListEmailIntegration,LinkEmailIntegration];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a6ca0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2628b5;for(const _0x3d3565 in _0x3a6ca0){const _0x23f761=_0x3d3565,_0x43c699=_0x3a6ca0[_0x23f761];if('emailConfigurationHelperLicenseKeyValid'==_0x43c699||'emailConfigurationHelperLicenseKeyInvalid'==_0x43c699||'emailConfigurationHelperLicenseKeyExpired'==_0x43c699||'emailConfigurationHelperLicenseKeyDomainLimit'==_0x43c699||'emailConfigurationHelperLicenseKeyNotAllowed'==_0x43c699||'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x43c699||'emailConfigurationHelperLicenseKeyUsageLimit'==_0x43c699){delete _0x3a6ca0[_0x23f761],_0x2628b5=_0x43c699,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'emailConfigurationHelperLicenseKeyInvalid'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('invalid'),'emailConfigurationHelperLicenseKeyExpired'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('expired'),'emailConfigurationHelperLicenseKeyDomainLimit'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('domainLimit'),'emailConfigurationHelperLicenseKeyNotAllowed'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('featureNotAllowed','EmailConfigurationHelper'),'emailConfigurationHelperLicenseKeyEvaluationLimit'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('evaluationLimit'),'emailConfigurationHelperLicenseKeyUsageLimit'==_0x2628b5&&_0x3a6ca0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$d(_0x4fa50e,_0xc9241b){const t=_0x4fa50e['t'];switch(_0xc9241b){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 _0xc9241b;}}const PRODUCTION_URL$1='https://pdf-converter.cke-cs.com/v1/convert/';class ExportPdfCommand extends Command{constructor(_0x49abc3){super(_0x49abc3),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x15b8af={}){const _0x1fc93c=this['editor'],_0x2c14c1=_0x15b8af['converterUrl']||PRODUCTION_URL$1,_0x3223e6=_0x15b8af['dataCallback']||(_0x8e2128=>_0x8e2128['data']['get']()),_0x101ff8=_0x1fc93c['plugins']['get']('ExportPdf'),_0x108144=_0x15b8af['token']||_0x101ff8['_token'];return this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x15b8af['stylesheets']||['EDITOR_STYLES'])['then'](async _0x26cf98=>{if(_0x1fc93c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1fc93c['locale'],'PDF\x20export\x20started')),_0x1fc93c['plugins']['has']('MergeFields')){_0x15b8af['converterOptions']||(_0x15b8af['converterOptions']={});const _0x51e69d=_0x1fc93c['plugins']['get']('MergeFieldsEditing'),_0x35d47b=_0x51e69d['previewMode'],{prefix:_0x2383ec,suffix:_0x2a581f}=_0x1fc93c['config']['get']('mergeFields'),_0x20f3ce='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x1947b3={'prefix':_0x2383ec,'suffix':_0x2a581f,'data':{}};if('$labels'===_0x35d47b){for(const _0x9c9c8b of _0x51e69d['getMergeFieldsIds']())'image'===_0x51e69d['getMergeFieldType'](_0x9c9c8b)?_0x1947b3['data'][_0x9c9c8b]=_0x20f3ce:_0x1947b3['data'][_0x9c9c8b]=_0x51e69d['wrapInAffixes'](_0x51e69d['getLabel'](_0x9c9c8b)||_0x9c9c8b);}else{const _0x5a8a49='$defaultValues'===_0x35d47b?_0x51e69d['getDefaultValues']():_0x51e69d['getDataSetValues'](_0x35d47b,!0x0);for(const _0x5bf95c of Object['entries'](_0x5a8a49)){const [_0x12b77e,_0x349e06]=_0x5bf95c;'image'===_0x51e69d['getMergeFieldType'](_0x12b77e)?_0x1947b3['data'][_0x12b77e]=null!==_0x349e06?_0x349e06:_0x20f3ce:_0x1947b3['data'][_0x12b77e]=null!==_0x349e06?_0x349e06:_0x51e69d['getLabel'](_0x12b77e)||_0x12b77e;}}_0x15b8af['converterOptions']['merge_fields']=_0x1947b3;}const _0x336885=0x2===_0x15b8af['version']?prepareContentInlineStyleV2(_0x15b8af['converterOptions']):prepareContentInlineStyle(_0x15b8af['converterOptions']),_0x3eaa6f={'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'+_0x1fc93c['locale']['contentLanguageDirection']+'\x22\x20style=\x22'+_0x336885+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x3223e6(_0x1fc93c)+'\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':_0x26cf98,[0x2===_0x15b8af['version']?'config':'options']:_0x15b8af['converterOptions']},_0x5d2879={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x108144?{'Authorization':_0x108144['value']}:null,'x-cs-app-id':_0x15b8af['appID']||'cke5'},'body':JSON['stringify'](_0x3eaa6f)};return window['fetch'](_0x2c14c1,_0x5d2879)['then'](_0x46b215=>{if(0xc8!==_0x46b215['status'])throw _0x46b215;return _0x46b215['blob']();})['then'](_0x542f3e=>{_0x1fc93c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1fc93c['locale'],'PDF\x20export\x20successful'));const _0x556286='function'==typeof _0x15b8af['fileName']?_0x15b8af['fileName']():_0x15b8af['fileName'];this['_downloadFile'](_0x542f3e,_0x556286||'document.pdf');});})['catch'](_0x564195=>{const _0x4e2c32=_0x1fc93c['plugins']['get']('Notification');throw _0x1fc93c['ui']['ariaLiveAnnouncer']['announce'](getTranslation$d(_0x1fc93c['locale'],'PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x4e2c32['showWarning'](getTranslation$d(_0x1fc93c['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x564195;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x4aa6ba,_0x3df73b){const _0x45966d=document['createElement']('a');_0x45966d['href']=window['URL']['createObjectURL'](_0x4aa6ba),_0x45966d['download']=_0x3df73b,_0x45966d['click'](),_0x45966d['remove']();}}function prepareContentInlineStyle(_0x238fce){return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x238fce?.['format']||'A4'),'marginLeft':_0x238fce?.['margin_left'],'marginRight':_0x238fce?.['margin_right']});}function prepareContentInlineStyleV2(_0x222b2b){const _0x2ef5cb=_0x222b2b?.['document']?.['margins'];return generatePageWidthStyle({'pageWidth':pageFormatToWidth(_0x222b2b?.['document']?.['size']||'A4'),'marginLeft':_0x2ef5cb?.['left'],'marginRight':_0x2ef5cb?.['right']});}function generatePageWidthStyle({pageWidth:_0x232076,marginLeft:_0x17b56e,marginRight:_0x37b5ef}){return'width:calc('+[_0x232076,_0x17b56e,_0x37b5ef]['filter'](Boolean)['join']('\x20-\x20')+');';}function pageFormatToWidth(_0x4355b2){if('object'==typeof _0x4355b2&&'width'in _0x4355b2)return _0x4355b2['width'];return{'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']}[_0x4355b2['toLowerCase']()][0x0];}class ExportPdfUI extends Plugin{static get['pluginName'](){return'ExportPdfUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55797f=this['editor'];_0x55797f['ui']['componentFactory']['add']('exportPdf',()=>{const _0x3b721c=this['_createButton'](ButtonView),_0x128bd1=_0x55797f['commands']['get']('exportPdf');return _0x3b721c['set']({'tooltip':!0x0}),_0x3b721c['bind']('isOn')['to'](_0x128bd1,'isBusy'),_0x3b721c;}),_0x55797f['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x21f877){const _0x306493=this['editor'],_0x217ba1=_0x306493['config']['get']('exportPdf')||{},_0x2bb967=_0x306493['commands']['get']('exportPdf'),_0x57deec=new _0x21f877(_0x306493['locale']),_0x2b2cf2=new SpinnerView();return _0x57deec['children']['add'](_0x2b2cf2),_0x2b2cf2['bind']('isVisible')['to'](_0x2bb967,'isBusy'),_0x57deec['iconView']['bind']('isVisible')['to'](_0x2bb967,'isBusy',_0x5566c6=>!_0x5566c6),_0x57deec['set']({'icon':IconExportPdf}),_0x57deec['bind']('isEnabled')['to'](_0x2bb967,'isEnabled'),_0x57deec['bind']('label')['to'](_0x2bb967,'isBusy',_0x2892bc=>getTranslation$d(_0x306493['locale'],_0x2892bc?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x57deec,'execute',()=>{_0x306493['execute']('exportPdf',_0x217ba1),_0x306493['editing']['view']['focus']();}),_0x57deec;}}class ExportPdf extends Plugin{['_token'];static get['pluginName'](){return'ExportPdf';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['CloudServices',Notification,ExportPdfUI];}['init'](){const _0x5257ab=this['editor'],_0x2fce9b=_0x5257ab['config']['get']('exportPdf')||{};_0x5257ab['commands']['add']('exportPdf',new ExportPdfCommand(_0x5257ab));const _0x435b5d=_0x5257ab['plugins']['get']('CloudServices');!0x1===_0x2fce9b['tokenUrl']?this['_token']=null:_0x2fce9b['tokenUrl']?_0x435b5d['registerTokenUrl'](_0x2fce9b['tokenUrl'])['then'](_0x289133=>{this['_token']=_0x289133;}):this['_token']=_0x435b5d['token'];}}function getConverterOptions(_0x582073,_0x5181c9={}){const _0x2b4141=_0x582073['plugins']['has']('Users'),_0x1f036f=_0x582073['plugins']['has']('CommentsRepository'),_0x257e12=_0x582073['plugins']['has']('TrackChanges'),_0x3cf0b2=_0x5181c9;if(_0x2b4141&&_0x1f036f){const _0xbed3aa=getComments(_0x582073['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0xbed3aa)['length']&&(_0x3cf0b2['comments']=_0xbed3aa);}if(_0x2b4141&&_0x257e12){const _0x5c58d7=_0x582073['plugins']['get']('TrackChanges'),_0xe1ba15=_0x582073['plugins']['get']('Users'),_0x12e8b5=getSuggestions(_0x5c58d7['getSuggestions']({'toJSON':!0x0}),_0xe1ba15['users']);Object['keys'](_0x12e8b5)['length']&&(_0x3cf0b2['suggestions']=_0x12e8b5);}return(_0x3cf0b2['suggestions']||_0x3cf0b2['comments'])&&(_0x3cf0b2['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']),_0x3cf0b2;}function getComments(_0x5ad00e){const _0x1d5122={};if(!_0x5ad00e['length'])return _0x1d5122;for(const _0x4cdcd1 of _0x5ad00e)_0x4cdcd1['comments']['map'](_0x27144b=>{void 0x0===_0x1d5122[_0x4cdcd1['id']]&&(_0x1d5122[_0x4cdcd1['id']]=[]),_0x1d5122[_0x4cdcd1['id']]['push']({'author':_0x27144b['author']['name'],'content':_0x27144b['content'],'created':_0x27144b['createdAt'],'is_resolved':_0x4cdcd1['isResolved']});});return _0x1d5122;}function getSuggestions(_0x364bc9,_0x4c933f){const _0x322969={};if(!_0x364bc9['length']||!_0x4c933f['length'])return _0x322969;for(const {id:_0x1b09e5,createdAt:_0xa91134,authorId:_0x53ed6d,attributes:_0x5dc4c8}of _0x364bc9){const _0x57bd30=_0x5dc4c8&&_0x5dc4c8['@external'],_0x26c651=_0x57bd30?_0x57bd30['authorName']:_0x4c933f['get'](_0x53ed6d)['name'];_0x322969[_0x1b09e5]={'author':_0x26c651,'created':_0xa91134};}return _0x322969;}function getConverterOptionsV2(_0x5c1eb8,_0x3b86f9={}){const _0x25e2b0=_0x5c1eb8['plugins']['has']('Users'),_0x4e8ddf=_0x5c1eb8['plugins']['has']('CommentsRepository'),_0x4fb1=_0x5c1eb8['plugins']['has']('TrackChanges'),_0x4f6dad=_0x5c1eb8['plugins']['has']('MergeFields'),_0xcb2a8=_0x5c1eb8['locale']['contentLanguage'],_0x50774e=_0x3b86f9,_0x167b01={};if(_0x50774e['document']=_0x50774e['document']||{},_0x50774e['document']['language']=_0x50774e['document']['language']||_0xcb2a8,_0x25e2b0&&_0x4e8ddf){const _0x14c98b=getCommentsV2(_0x5c1eb8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x14c98b['length']&&(_0x167b01['comment_threads']=_0x14c98b);}if(_0x25e2b0&&_0x4fb1){const _0x266655=_0x5c1eb8['plugins']['get']('TrackChanges'),_0x3980f7=_0x5c1eb8['plugins']['get']('Users'),_0x27f343=getSuggestionsV2(_0x266655['getSuggestions']({'toJSON':!0x0}),_0x3980f7['users']);_0x27f343['length']&&(_0x167b01['suggestions']=_0x27f343);}if(_0x4f6dad){const _0x3685c0=_0x5c1eb8['plugins']['get']('MergeFieldsEditing'),_0x2513af=_0x3685c0['previewMode'],{prefix:_0xe1f38a,suffix:_0x2ad22b}=_0x5c1eb8['config']['get']('mergeFields');if(_0x50774e['merge_fields']={'prefix':_0xe1f38a,'suffix':_0x2ad22b},'$labels'!==_0x2513af){_0x50774e['merge_fields']['data']={};const _0x1e4ed3='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88B8AAuUB8e2ujYwAAAAASUVORK5CYII=',_0x1d8502='$defaultValues'===_0x2513af?_0x3685c0['getDefaultValues']():_0x3685c0['getDataSetValues'](_0x2513af,!0x0);for(const _0x88ac14 of Object['entries'](_0x1d8502)){const [_0xf852b8,_0x4a9bbb]=_0x88ac14;'image'===_0x3685c0['getMergeFieldType'](_0xf852b8)?_0x50774e['merge_fields']['data'][_0xf852b8]=null!==_0x4a9bbb?_0x4a9bbb:_0x1e4ed3:_0x50774e['merge_fields']['data'][_0xf852b8]=null!==_0x4a9bbb?_0x4a9bbb:_0x3685c0['getLabel'](_0xf852b8)||_0xf852b8;}}}return(_0x167b01['comment_threads']||_0x167b01['suggestions'])&&(_0x50774e['timezone']=new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'],_0x50774e['collaboration_features']=_0x167b01),_0x50774e;}function getCommentsV2(_0xbad645){const _0x46a71e=[];if(!_0xbad645['length'])return _0x46a71e;for(const _0xfeb6e8 of _0xbad645){const _0x51627a=_0xfeb6e8['comments']['map'](_0x5eef51=>({'author':_0x5eef51['author']['name'],'content':_0x5eef51['content'],'created_at':_0x5eef51['createdAt']}));_0x46a71e['push']({'thread_id':_0xfeb6e8['id'],'is_resolved':_0xfeb6e8['isResolved'],'comments':_0x51627a});}return _0x46a71e;}function getSuggestionsV2(_0x212b95,_0x46a505){return _0x212b95['length']&&_0x46a505['length']?_0x212b95['map'](({id:_0x51dc1a,createdAt:_0x3f79a2,authorId:_0x36689b,attributes:_0x44efd0})=>{const _0x2a0812=_0x44efd0&&_0x44efd0['@external'];return{'id':_0x51dc1a,'author':_0x2a0812?_0x2a0812['authorName']:_0x46a505['get'](_0x36689b)['name'],'created_at':_0x3f79a2};}):[];}function getTranslation$c(_0x5a9071,_0x3e3b7a){const t=_0x5a9071['t'];switch(_0x3e3b7a){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 _0x3e3b7a;}}const PRODUCTION_URL='https://docx-converter.cke-cs.com/v1/convert',PRODUCTION_URL_V2='https://docx-converter.cke-cs.com/v2/convert/html-docx',firstVersionApiKeys=['orientation','margin_top','margin_right','margin_bottom','margin_left','format','header','footer','comments','suggestions'];class ExportWordCommand extends Command{constructor(_0x104fd8){super(_0x104fd8),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x212232={}){const _0x1b0de1=this['editor'],_0x3b1023=_0x212232['version']||0x2,_0x34da9d=0x1===_0x3b1023,_0x55da7a=_0x212232['converterUrl']||(_0x34da9d?PRODUCTION_URL:PRODUCTION_URL_V2),_0x5805d6=_0x212232['converterOptions']||{},_0x1d7192=_0x1b0de1['plugins']['get']('ExportWord'),_0x2b8e6c=_0x212232['token']||_0x1d7192['_token'],_0x407f86=!0x0===_0x5805d6['auto_pagination'],_0x2422c5=_0x212232['dataCallback']||(_0x1ece84=>_0x1ece84['data']['get']({'pagination':_0x407f86}));return 0x2===_0x3b1023&&isV1ApiUsed(_0x5805d6)&&logWarning('export-word-v1-api-is-deprecated'),this['isBusy']=!0x0,this['refresh'](),collectStylesheets(_0x212232['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5afad8=>{_0x1b0de1['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x1b0de1['locale'],'Word\x20document\x20export\x20started'));const _0x411c4c=await _0x2422c5(_0x1b0de1),_0x6de9c3={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x1b0de1['locale']['contentLanguageDirection']+'\x22>'+_0x411c4c+'</div>','css':_0x5afad8,[_0x34da9d?'options':'config']:{..._0x5805d6,..._0x34da9d?getConverterOptions(_0x1b0de1,_0x5805d6):getConverterOptionsV2(_0x1b0de1,_0x5805d6)}},_0x6a5b7d={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x2b8e6c?{'Authorization':_0x2b8e6c['value']}:null},'body':JSON['stringify'](_0x6de9c3)};return window['fetch'](_0x55da7a,_0x6a5b7d)['then'](_0x3e1be9=>{if(0xc8!==_0x3e1be9['status'])throw _0x3e1be9;return _0x3e1be9['blob']();})['then'](_0x239296=>{_0x1b0de1['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x1b0de1['locale'],'Word\x20document\x20export\x20successful'));const _0x4753da='function'==typeof _0x212232['fileName']?_0x212232['fileName']():_0x212232['fileName'];this['_downloadFile'](_0x239296,_0x4753da||'document.docx');});})['catch'](_0x31dc96=>{const _0x178e74=_0x1b0de1['plugins']['get']('Notification');throw _0x1b0de1['ui']['ariaLiveAnnouncer']['announce'](getTranslation$c(_0x1b0de1['locale'],'Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x178e74['showWarning'](getTranslation$c(_0x1b0de1['locale'],'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x31dc96;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0xafe3d7,_0x9063b5){const _0x17c6ea=document['createElement']('a');_0x17c6ea['href']=window['URL']['createObjectURL'](_0xafe3d7),_0x17c6ea['download']=_0x9063b5,_0x17c6ea['click'](),_0x17c6ea['remove']();}}function isV1ApiUsed(_0x162c9e){for(const _0x28cc1f of firstVersionApiKeys)if(void 0x0!==_0x162c9e[_0x28cc1f])return!0x0;return!0x1;}class ExportWordUI extends Plugin{static get['pluginName'](){return'ExportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46adeb=this['editor'];_0x46adeb['ui']['componentFactory']['add']('exportWord',()=>{const _0x3b092e=_0x46adeb['commands']['get']('exportWord'),_0x534bfa=this['_createButton'](ButtonView);return _0x534bfa['set']({'tooltip':!0x0}),_0x534bfa['bind']('isOn')['to'](_0x3b092e,'isBusy'),_0x534bfa;}),_0x46adeb['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](MenuBarMenuListItemButtonView));}['_createButton'](_0x3445e8){const _0x590590=this['editor'],_0x24ba8b=_0x590590['config']['get']('exportWord')||{},_0x81a2b9=_0x590590['commands']['get']('exportWord'),_0x1c6d3d=new _0x3445e8(_0x590590['locale']),_0x2da3c7=new SpinnerView();return _0x1c6d3d['children']['add'](_0x2da3c7),_0x2da3c7['bind']('isVisible')['to'](_0x81a2b9,'isBusy'),_0x1c6d3d['iconView']['bind']('isVisible')['to'](_0x81a2b9,'isBusy',_0x258e69=>!_0x258e69),_0x1c6d3d['set']({'icon':IconExportWord}),_0x1c6d3d['bind']('isEnabled')['to'](_0x81a2b9,'isEnabled'),_0x1c6d3d['bind']('label')['to'](_0x81a2b9,'isBusy',_0xc486bc=>getTranslation$c(_0x590590['locale'],_0xc486bc?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x1c6d3d,'execute',()=>{_0x590590['execute']('exportWord',_0x24ba8b),_0x590590['editing']['view']['focus']();}),_0x1c6d3d;}}class ExportWord extends Plugin{['_token'];static get['pluginName'](){return'ExportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['CloudServices',Notification,ExportWordUI];}['init'](){const _0x7b3339=this['editor'],_0x359c65=_0x7b3339['config']['get']('exportWord')||{};_0x7b3339['commands']['add']('exportWord',new ExportWordCommand(_0x7b3339));const _0x43b688=_0x7b3339['plugins']['get']('CloudServices');!0x1===_0x359c65['tokenUrl']?this['_token']=null:_0x359c65['tokenUrl']?_0x43b688['registerTokenUrl'](_0x359c65['tokenUrl'])['then'](_0x51dc73=>{this['_token']=_0x51dc73;}):this['_token']=_0x43b688['token'];}}class ModelElementTracker{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x192e22,_0xf492aa){this['_model']=_0x192e22,this['_elementName']=_0xf492aa['elementName'],this['_getElementKey']=_0xf492aa['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3e0e3c){const _0x10cd78=new Set(),_0x225342=new Map();for(const _0x58516c of _0x3e0e3c){if('insert'===_0x58516c['type']&&'$text'!==_0x58516c['name']&&_0x58516c['position']['nodeAfter']){const _0xf3fa84=this['_model']['createRangeOn'](_0x58516c['position']['nodeAfter']);for(const _0x4c3228 of _0xf3fa84['getItems']()){if(!_0x4c3228['is']('element',this['_elementName']))continue;const _0x1af3ff=this['_getElementKey'](_0x4c3228);_0x225342['has'](_0x1af3ff)||_0x225342['set'](_0x1af3ff,[]),_0x225342['get'](_0x1af3ff)['push'](_0x4c3228);}}if('remove'===_0x58516c['type']&&_0x58516c['name']===this['_elementName']){const _0x3c9ee7=this['_getElementKey']({'getAttribute':_0xd131d5=>_0x58516c['attributes']['get'](_0xd131d5)});_0x10cd78['add'](_0x3c9ee7);}}for(const [_0x3f1f45,_0x52912c]of this['_trackedElements'])'$graveyard'===_0x52912c['root']['rootName']&&_0x10cd78['add'](_0x3f1f45);for(const _0x2e4e38 of _0x10cd78)this['_trackedElements']['delete'](_0x2e4e38);for(const [_0x3938cb,_0x5d9af0]of _0x225342)this['_trackedElements']['set'](_0x3938cb,_0x5d9af0[_0x5d9af0['length']-0x1]);const _0xb51ef5=new Set();for(const [_0x2a7cf5,_0xafa75]of _0x225342)_0x10cd78['has'](_0x2a7cf5)&&(_0xb51ef5['add'](_0xafa75[0x0]),_0xafa75['length']>0x1?_0x225342['set'](_0x2a7cf5,_0xafa75['slice'](0x1)):_0x225342['delete'](_0x2a7cf5),_0x10cd78['delete'](_0x2a7cf5));return{'removed':Array['from'](_0x10cd78),'inserted':Array['from'](_0x225342['values']())['flat'](),'moved':Array['from'](_0xb51ef5)};}}class FootnotesTracker extends Plugin{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x125782){super(_0x125782),this['_footnoteDefsContainerTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2683fa=>_0x2683fa['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new ModelElementTracker(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4f042b=>_0x4f042b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x538a07}=this,{model:_0x2a94ed,data:_0x4f3520}=_0x538a07;_0x2a94ed['document']['registerPostFixer'](_0x471837=>{const _0x43ece6=_0x2a94ed['document']['differ']['getChanges']();let _0x123da9=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x471837,_0x43ece6)&&(_0x123da9=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x471837,_0x43ece6)&&(_0x123da9=!0x0),this['_handleFootnoteReferencesChanges'](_0x471837,_0x43ece6)&&(_0x123da9=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x471837)&&(_0x123da9=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x471837)&&(_0x123da9=!0x0),this['_sortFootnoteDefinitions'](_0x471837)&&(_0x123da9=!0x0),_0x123da9;}),this['listenTo'](_0x2a94ed['document'],'change:data',()=>{_0x2a94ed['enqueueChange']({'isUndoable':!0x1},_0x18fd16=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x18fd16);});},{'priority':'low'}),this['listenTo'](_0x4f3520,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x9dcf7c){return this['_footnotes']['find'](_0x5f0932=>_0x5f0932['id']===_0x9dcf7c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5523a4){this['_footnoteFormatter']=_0x5523a4;}['_updateFootnotesCounters'](_0xf57ce4,_0x479172=0x0){let _0x3de5ca=!0x1;for(let _0x1bb0e1=_0x479172;_0x1bb0e1<this['_footnotes']['length'];_0x1bb0e1++)this['_updateFootnoteRefCounter'](_0xf57ce4,_0x1bb0e1)&&(_0x3de5ca=!0x0);return _0x3de5ca;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5bbe9a,_0x4bc3c8){const _0x474468=_0x5bbe9a['createElement']('footnotesDefinitions',{});return _0x5bbe9a['append'](_0x474468,_0x4bc3c8),this['_footnotesDefinitions']=_0x474468,_0x474468;}['_ensureFootnotesDefinitionsContainerExists'](_0xbfc0cd){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5e9d1d=this['_footnotes'][0x0]['reference']['root'],_0x2ae313=this['_insertEmptyFootnotesDefinitionsContainer'](_0xbfc0cd,_0x5e9d1d);for(const _0x1604c9 of this['_footnotes'])_0x1604c9['definition']['parent']||_0xbfc0cd['insert'](_0x1604c9['definition'],_0x2ae313,'end');this['_updateFootnotesCounters'](_0xbfc0cd);}['_handleFootnotesDefinitionsObjectChanges'](_0x3e1ee7,_0x57a18d){let _0x16bb77=!0x1;const {inserted:_0x3e3d84,removed:_0x50a834,moved:_0x4e3f6d}=this['_footnoteDefsContainerTracker']['getChanges'](_0x57a18d);if(_0x4e3f6d['length']&&(this['_footnotesDefinitions']=_0x4e3f6d[0x0]),_0x3e3d84['length']){if(_0x3e3d84['length']>0x1||this['_footnotesDefinitions']&&_0x3e3d84['some'](_0x5c4121=>_0x5c4121!==this['_footnotesDefinitions'])){const _0x385f79=_0x3e1ee7['createElement']('footnotesDefinitions',{}),_0x309e69=[];this['_footnotesDefinitions']&&_0x309e69['push'](this['_footnotesDefinitions']),_0x309e69['push'](..._0x3e3d84),_0x3e1ee7['insert'](_0x385f79,_0x309e69[0x0],'before');for(const _0x5af58e of _0x309e69)_0x3e1ee7['move'](_0x3e1ee7['createRangeIn'](_0x5af58e),_0x3e1ee7['createPositionAt'](_0x385f79,'end')),_0x3e1ee7['remove'](_0x5af58e);this['_footnotesDefinitions']=_0x385f79,this['_updateFootnotesCounters'](_0x3e1ee7),_0x16bb77=!0x0;}else this['_footnotesDefinitions']=_0x3e3d84[0x0];}if(_0x50a834['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4da0c8 of this['_footnotes'])_0x3e1ee7['remove'](_0x4da0c8['reference']),_0x16bb77=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x16bb77;}['_handleFootnoteDefinitionsChanges'](_0xd17076,_0x37b7c3){let _0x515ae2=!0x1;const _0x17e3d6=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x459587,moved:_0x899e0b}=this['_footnoteDefsTracker']['getChanges'](_0x37b7c3);for(const _0x411ff2 of[..._0x899e0b,..._0x459587]){const _0xdd3f20=_0x411ff2['getAttribute']('footnoteId'),_0x941b2f=this['getFootnote'](_0xdd3f20);_0x941b2f&&(_0x941b2f['definition']=_0x411ff2),ensureDefinitionIsNotEmpty(_0xd17076,_0x17e3d6,_0x411ff2)&&(_0x515ae2=!0x0);}return _0x515ae2;}['_handleFootnoteReferencesChanges'](_0x4388a7,_0x4489e1){let _0x5c63b6=!0x1;const {removed:_0x3b966e,inserted:_0xfdb37c,moved:_0x47e3ec}=this['_footnoteRefsTracker']['getChanges'](_0x4489e1);for(const _0x4fe891 of _0x3b966e)this['_handleRemoveFootnoteReferenceById'](_0x4388a7,_0x4fe891)&&(_0x5c63b6=!0x0);for(const _0x426a0d of _0xfdb37c)this['_handleInsertedFootnoteReference'](_0x4388a7,_0x426a0d)&&(_0x5c63b6=!0x0);for(const _0x229ed9 of _0x47e3ec)this['_handleMovedFootnoteReference'](_0x4388a7,_0x229ed9)&&(_0x5c63b6=!0x0);return _0x5c63b6;}['_handleFootnotesDefinitionsObjectSync'](_0x1f04e9){if(!this['_footnotesDefinitions'])return!0x1;let _0x1825d9=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x558376=[];for(const _0x227706 of this['_footnotesDefinitions']['getChildren']()){const _0x349280=_0x227706['getAttribute']('footnoteId');this['getFootnote'](_0x349280)||(_0x558376['unshift'](_0x227706),_0x1825d9=!0x0);}for(const _0x2759fa of _0x558376)_0x1f04e9['remove'](_0x2759fa);}const _0x2f0174=new Set(),_0x59363e=[];for(const _0xb91ba of this['_footnotesDefinitions']['getChildren']()){const _0x2542cb=_0xb91ba['getAttribute']('footnoteId');_0x2f0174['has'](_0x2542cb)?(_0x59363e['unshift'](_0xb91ba),_0x1825d9=!0x0):_0x2f0174['add'](_0x2542cb);}for(const _0x5339cb of _0x59363e)_0x1f04e9['remove'](_0x5339cb);return this['_footnotesDefinitions']['childCount']||(_0x1f04e9['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1825d9=!0x0),_0x1825d9;}['_handleInsertedFootnoteReference'](_0x173011,_0x304516){if(this['_footnotes']['find'](_0x154f40=>_0x154f40['reference']===_0x304516))return!0x1;let _0x51c9c2=!0x1;const _0x45bf5b=_0x304516['getAttribute']('footnoteId'),_0x368ae1=this['_footnotes']['findIndex'](_0xf328a4=>_0xf328a4['id']===_0x45bf5b);-0x1!==_0x368ae1&&(_0x173011['remove'](this['_footnotes'][_0x368ae1]['reference']),this['_footnotes']['splice'](_0x368ae1,0x1),_0x51c9c2=!0x0);let _0xa5cd81=this['_footnotesDefinitions']?findFootnoteDefinitionInContainer(this['_footnotesDefinitions'],_0x45bf5b):null;_0xa5cd81||(_0xa5cd81=_0x173011['createElement']('footnoteDefinition',{'footnoteId':_0x45bf5b}),this['_footnotesDefinitions']&&(_0x173011['insert'](_0xa5cd81,this['_footnotesDefinitions'],'end'),_0x51c9c2=!0x0));const _0x4e30cc={'id':_0x45bf5b,'reference':_0x304516,'definition':_0xa5cd81},_0x49555e=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x304516);this['_footnotes']['splice'](_0x49555e,0x0,_0x4e30cc);let _0x1101f5=_0x49555e;return-0x1!==_0x368ae1&&(_0x1101f5=Math['min'](_0x49555e,_0x368ae1)),this['_updateFootnotesCounters'](_0x173011,_0x1101f5)&&(_0x51c9c2=!0x0),_0x51c9c2;}['_handleRemoveFootnoteReferenceById'](_0xd666c8,_0x412baa){const _0x16a1be=this['_footnotes']['findIndex'](_0x3eec99=>_0x3eec99['id']===_0x412baa);if(-0x1===_0x16a1be)return!0x1;let _0x407676=!0x1;const _0x414f37=this['_footnotes'][_0x16a1be];return'$graveyard'!==_0x414f37['definition']['root']['rootName']&&(_0xd666c8['remove'](_0x414f37['definition']),_0x407676=!0x0),this['_footnotes']['splice'](_0x16a1be,0x1),this['_updateFootnotesCounters'](_0xd666c8,_0x16a1be)&&(_0x407676=!0x0),_0x407676;}['_handleMovedFootnoteReference'](_0x281bbb,_0x33090f){const _0xd6f90d=_0x33090f['getAttribute']('footnoteId'),_0x3630f7=this['_footnotes']['findIndex'](_0x478421=>_0x478421['id']===_0xd6f90d),_0x4a1861=this['_footnotes'][_0x3630f7];let _0x3b74f8=!0x1;_0x4a1861['reference']=_0x33090f,this['_footnotes']['splice'](_0x3630f7,0x1);const _0x5cf463=findInsertFootnoteReferenceIndex(this['editor']['model'],this['_footnotes'],_0x33090f);return this['_footnotes']['splice'](_0x5cf463,0x0,_0x4a1861),this['_updateFootnotesCounters'](_0x281bbb,Math['min'](_0x3630f7,_0x5cf463))&&(_0x3b74f8=!0x0),_0x3b74f8;}['_updateFootnoteRefCounter'](_0x153d2a,_0x14f4f8){if(!this['_footnotesDefinitions'])return!0x1;const _0x25fbba=this['_footnotes'][_0x14f4f8];let _0x3cde1a;return _0x3cde1a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x25fbba,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x14f4f8+0x1}):String(_0x14f4f8+0x1),_0x25fbba['reference']['getAttribute']('footnoteCounter')!=_0x3cde1a&&(_0x153d2a['setAttribute']('footnoteCounter',_0x3cde1a,_0x25fbba['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x33f571){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(areArraysEqual(this['_footnotes']['map'](_0x3a0e10=>_0x3a0e10['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xe64b5c=>_0xe64b5c['getAttribute']('footnoteId'))))return!0x1;let _0x3716eb=!0x1;for(let _0x4bba2f=0x0;_0x4bba2f<this['_footnotes']['length'];_0x4bba2f++){const _0x3da3ee=this['_footnotes'][_0x4bba2f],_0x1a9ae4=_0x33f571['createPositionBefore'](_0x3da3ee['definition']),_0x19b724=_0x33f571['createPositionAt'](this['_footnotesDefinitions'],_0x4bba2f);_0x1a9ae4['isEqual'](_0x19b724)||(_0x33f571['move'](_0x33f571['createRangeOn'](_0x3da3ee['definition']),_0x19b724),_0x3716eb=!0x0);}return _0x3716eb;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2f4921){if(!this['_footnotes']['length'])return!0x1;const {model:_0x27dc44}=this['editor'];let _0xe7a85f=!0x1;for(let _0x548bc1=0x0;_0x548bc1<this['_footnotes']['length']-0x1;_0x548bc1++){const _0x40a389=this['_footnotes'][_0x548bc1],_0x564026=this['_footnotes'][_0x548bc1+0x1],_0x2e3b70=_0x27dc44['createPositionBefore'](_0x40a389['reference']),_0x3f963d=_0x27dc44['createPositionBefore'](_0x564026['reference']);'after'===_0x2e3b70['compareWith'](_0x3f963d)&&(this['_handleMovedFootnoteReference'](_0x2f4921,_0x40a389['reference']),_0x548bc1=-0x1,_0xe7a85f=!0x0);}return _0xe7a85f;}}function ensureDefinitionIsNotEmpty(_0x593ac3,_0x465692,_0x276a76){if(_0x276a76['childCount'])return!0x1;const _0x55421d=_0x465692?'paragraph':'footnoteInlineContent';return _0x593ac3['insert'](_0x593ac3['createElement'](_0x55421d),_0x276a76),!0x0;}function findFootnoteDefinitionInContainer(_0x527b81,_0x57945b){for(const _0x3818db of _0x527b81['getChildren']())if(_0x3818db['getAttribute']('footnoteId')===_0x57945b)return _0x3818db;return null;}function findInsertFootnoteReferenceIndex(_0x2da698,_0x67a7a4,_0x259d27){if(0x0===_0x67a7a4['length'])return 0x0;const _0x372b4b=_0x2da698['createPositionBefore'](_0x259d27);for(let _0x163494=0x0;_0x163494<_0x67a7a4['length'];_0x163494++){const _0x135b70=_0x67a7a4[_0x163494],_0x3d9849=_0x2da698['createPositionBefore'](_0x135b70['reference']);if('before'===_0x372b4b['compareWith'](_0x3d9849))return _0x163494;}const _0x4a5e4d=_0x259d27['root'];let _0x373745=-0x1;for(let _0x400e7e=_0x67a7a4['length']-0x1;_0x400e7e>=0x0;_0x400e7e--)if(_0x67a7a4[_0x400e7e]['reference']['root']===_0x4a5e4d){_0x373745=_0x400e7e;break;}if(-0x1!==_0x373745)return _0x373745+0x1;const _0x4e5413=_0x2da698['document']['getRootNames'](),_0x3fa21c=_0x4e5413['indexOf'](_0x4a5e4d['rootName']),_0x588ba0=_0x4e5413[_0x3fa21c+0x1];if(_0x588ba0){for(let _0x5e9f52=0x0;_0x5e9f52<_0x67a7a4['length'];_0x5e9f52++)if(_0x67a7a4[_0x5e9f52]['reference']['root']['rootName']===_0x588ba0)return _0x5e9f52;}return _0x67a7a4['length'];}function areArraysEqual(_0x14823b,_0x120640){if(_0x14823b['length']!==_0x120640['length'])return!0x1;for(let _0x129431=0x0;_0x129431<_0x14823b['length'];_0x129431++)if(_0x14823b[_0x129431]!==_0x120640[_0x129431])return!0x1;return!0x0;}class InsertFootnoteCommand extends Command{['refresh'](){const _0x54c22b=this['editor']['model']['document']['selection'],_0x3d8d99=this['_getPositionToInsertFootnote'](_0x54c22b);this['isEnabled']=!!_0x3d8d99;}['execute'](_0x428da9){const {editor:_0x50aae4}=this,{model:_0x415d6e}=_0x50aae4,{selection:_0x24f7eb}=_0x415d6e['document'],_0x3b7e20=this['_getPositionToInsertFootnote'](_0x24f7eb);if(!_0x3b7e20)return;const _0x59d101=_0x50aae4['plugins']['get']('FootnotesEditing'),_0x35343e=_0x428da9?.['footnoteId']??uid();isFootnoteIdValid(_0x35343e)?(_0x415d6e['change'](_0x10d243=>{const _0x449ae9=_0x10d243['createElement']('footnoteRef',{'footnoteId':_0x35343e});_0x415d6e['insertObject'](_0x449ae9,_0x3b7e20,null);}),_0x59d101['_moveSelectionToFootnoteDefinition'](_0x35343e)):logWarning('insert-footnote-command-executed-with-invalid-id');}['_getPositionToInsertFootnote'](_0x3cd7fd){const {model:_0x2f22e4}=this['editor'],{schema:_0x5c627b}=_0x2f22e4,_0x86004=_0x3cd7fd['getFirstRange']();for(const _0x36354a of _0x86004['getItems']())if(_0x5c627b['isBlock'](_0x36354a)||_0x5c627b['isObject'](_0x36354a))return null;const _0x5691e7=_0x86004['end'];return _0x5c627b['checkChild'](_0x5691e7,'footnoteRef')?_0x5691e7:null;}}function isFootnoteIdValid(_0x45c464){return'string'==typeof _0x45c464&&_0x45c464['length']>0x0&&!/\s/['test'](_0x45c464)&&!/^\d/['test'](_0x45c464);}class FootnotesEditing extends Plugin{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1bd930}=this;_0x1bd930['config']['define']('footnotes.multiBlock',!0x0),_0x1bd930['commands']['add']('insertFootnote',new InsertFootnoteCommand(_0x1bd930)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){checkLicense$c(this);}['_moveSelectionToFootnoteDefinition'](_0x240832){const {plugins:_0x59cfda,editing:_0x47dd96,model:_0x16ac5a}=this['editor'],_0x50305b=_0x59cfda['get'](FootnotesTracker)['getFootnote'](_0x240832);return!!_0x50305b&&(_0x16ac5a['change'](_0x31ff20=>{_0x31ff20['setSelection'](_0x31ff20['createPositionAt'](_0x50305b['definition'],'end'));}),_0x47dd96['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x409502){const {plugins:_0x1ac310,editing:_0x3be1fe,model:_0x31452e}=this['editor'],_0x32f845=_0x1ac310['get'](FootnotesTracker)['getFootnote'](_0x409502);return!!_0x32f845&&(_0x31452e['change'](_0x450196=>{_0x450196['setSelection'](_0x32f845['reference'],'on');}),_0x3be1fe['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x56ab4a}=this['editor']['model'],_0x81ffa8=this['editor']['config']['get']('footnotes.multiBlock');_0x56ab4a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x56ab4a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x56ab4a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x81ffa8?_0x56ab4a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x56ab4a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x56ab4a['addChildCheck'](_0xadb135=>{for(const _0x13a3ba of _0xadb135)if('footnoteDefinition'===_0x13a3ba['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x35584d}=this,{conversion:_0x4b41a5,editing:_0x38590f}=_0x35584d,{t:t}=_0x35584d['locale'];_0x4b41a5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5c03f2,{writer:_0x31cf8f,consumable:_0x399715})=>{const _0x537c54=_0x5c03f2['getChild'](0x0);if(!_0x537c54||!_0x537c54['is']('element','a'))return null;const _0x484d83=_0x537c54['getAttribute']('href')||'';if(!_0x484d83['startsWith']('#'))return null;const _0xd9dac=_0x484d83['replace'](/^#/,'');if(!_0xd9dac)return null;_0x399715['consume'](_0x537c54,{'name':!0x0,'attributes':['href']});for(const {item:_0x1ae79f}of _0x38590f['view']['createRangeIn'](_0x537c54))_0x1ae79f['is']('$textProxy')?_0x399715['consume'](_0x1ae79f['textNode'],{'name':!0x0}):_0x1ae79f['is']('element')&&_0x399715['consume'](_0x1ae79f,{'name':!0x0});return _0x31cf8f['createElement']('footnoteRef',{'footnoteId':_0xd9dac});}}),_0x4b41a5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1ec6fe,{writer:_0x2e34d8})=>createFootnoteRefView(_0x1ec6fe,_0x2e34d8)}),_0x4b41a5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19a434,{writer:_0x56fff8})=>{const _0x36915a=_0x19a434['getAttribute']('footnoteCounter');return toWidget(createFootnoteRefView(_0x19a434,_0x56fff8),_0x56fff8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x36915a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x218858}=this,{t:t}=_0x218858['locale'],{conversion:_0x111152}=_0x218858;_0x111152['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x111152['for']('upcast')['add'](_0x3b8bb6=>{_0x3b8bb6['on']('element:ol',(_0x3c5433,_0x524c39,_0x245bfb)=>{const _0x382348=_0x524c39['viewItem'];if(!_0x382348['hasClass']('footnotes-list')||!_0x524c39['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x245bfb['consumable']['consume'](_0x382348,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x31fe3a,modelCursor:_0x4768a6}=_0x245bfb['convertChildren'](_0x524c39['viewItem'],_0x524c39['modelCursor']);_0x524c39['modelRange']=_0x31fe3a,_0x524c39['modelCursor']=_0x4768a6;}),_0x3b8bb6['on']('element:hr',(_0x178f3a,_0x4b1e0b,_0x2a5f44)=>{const _0x2d9bcd=_0x4b1e0b['viewItem'];_0x2d9bcd['hasClass']('footnotes-divider')&&_0x4b1e0b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2a5f44['consumable']['consume'](_0x2d9bcd,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x111152['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x478fae,{writer:_0x1ca9ba})=>createFootnotesWrapperView(_0x1ca9ba)}),_0x111152['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x38f739,{writer:_0xc07d68})=>{const _0x4427fe=createFootnotesWrapperView(_0xc07d68,{'data-footnotes-list-label':t('Footnotes')}),_0x142822=toWidget(_0x4427fe,_0xc07d68,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xc07d68['setCustomProperty']('footnotesDefinitions',!0x0,_0x142822),_0x142822;}});}['_defineDefinitionConverters'](){const {editor:_0x138a4f}=this,{conversion:_0x490c95,locale:_0x18cd64}=_0x138a4f,_0x37844d=_0x138a4f['config']['get']('footnotes.multiBlock');_0x490c95['for']('upcast')['add'](_0x28e667=>{_0x28e667['on']('element:li',(_0x39425a,_0x5bd78b,_0x1702bf)=>{const _0x287dbb=_0x5bd78b['viewItem'];if(!_0x287dbb['hasClass']('footnote-definition')||!_0x287dbb['getAttribute']('id'))return;const _0x48cfee=_0x287dbb['parent'];if(!_0x48cfee['is']('element','ol')||!_0x48cfee['hasClass']('footnotes-list'))return;if(!_0x1702bf['consumable']['test'](_0x287dbb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x169742=_0x1702bf['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x287dbb['getAttribute']('id')});if(!_0x1702bf['safeInsert'](_0x169742,_0x5bd78b['modelCursor']))return;_0x1702bf['consumable']['consume'](_0x287dbb,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x40245d=Array['from'](_0x287dbb['getChildren']())['find'](_0x551962=>_0x551962['is']('element')&&_0x551962['hasClass']('footnote-content'));for(const _0x3906d7 of _0x287dbb['getChildren']())_0x3906d7['is']('element')&&(_0x1702bf['consumable']['consume'](_0x3906d7,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1702bf['consumable']['consume'](_0x3906d7,{'name':!0x0,'classes':'footnote-content'}));if(_0x40245d){if(_0x37844d)_0x1702bf['convertChildren'](_0x40245d,_0x169742);else{const _0x4cc39e=_0x1702bf['writer']['createElement']('footnoteInlineContent');_0x1702bf['writer']['insert'](_0x4cc39e,_0x169742),_0x1702bf['convertChildren'](_0x40245d,_0x4cc39e);}}_0x1702bf['updateConversionResult'](_0x169742,_0x5bd78b);});}),_0x490c95['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d89df,{writer:_0x5293ab})=>createFootnoteDefinitionView(_0x1d89df,_0x5293ab,_0x18cd64,{'dataPipeline':!0x0})}),_0x490c95['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a0088,{writer:_0x1333c8})=>createFootnoteDefinitionView(_0x5a0088,_0x1333c8,_0x18cd64)});}['_defineBogusParagraphConverters'](){const {editor:_0x31880c}=this,{conversion:_0x167356}=_0x31880c;_0x31880c['config']['get']('footnotes.multiBlock')?(_0x167356['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator(),'converterPriority':'high'}),_0x167356['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':footnoteBogusParagraphCreator({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x31880c['model']['document'],'change:data',()=>{footnoteDefinitionRefreshHandler(_0x31880c['model'],_0x31880c['editing']);})):(_0x167356['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':footnoteBogusParagraphCreator()}),_0x167356['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x144a22,{writer:_0x123ddc})=>{const _0x42a6ba=_0x123ddc['createContainerElement']('span');return _0x123ddc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x42a6ba),_0x42a6ba;}}));}['_defineKeyboardHandlers'](){const {editor:_0x476978}=this,{editing:_0x51de84,t:t}=_0x476978,_0x450ed0=_0x476978['model']['document']['selection'];_0x476978['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x476978['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x51de84['view']['document'],'enter',(_0x23e203,_0x1b94d0)=>{const _0x5d67bb=getSelectedFootnoteRef(_0x450ed0);if(_0x5d67bb){const _0x41d7b0=_0x5d67bb['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x41d7b0),_0x1b94d0['preventDefault'](),_0x23e203['stop']();}},{'context':isWidget});}['_defineClickHandlers'](){const {editor:_0x39e85b}=this,{editing:_0x1a6e2c}=_0x39e85b;_0x39e85b['editing']['view']['addObserver'](PointerObserver),_0x39e85b['editing']['view']['addObserver'](ClickObserver);let _0x2bdc76=!0x1;this['listenTo'](_0x1a6e2c['view']['document'],'pointerdown',(_0x3329e4,_0x524145)=>{const {target:_0x2a1c43}=_0x524145,_0x73349b=_0x1a6e2c['view']['document']['selection'];_0x2bdc76=!!(_0x2a1c43?.['is']('element','a')&&_0x2a1c43['parent']?.['is']('element','sup')&&_0x2a1c43['parent']['hasClass']('footnote'))&&_0x73349b['getSelectedElement']()===_0x2a1c43['parent'];},{'priority':'high'}),this['listenTo'](_0x1a6e2c['view']['document'],'click',(_0x37c9dc,_0x3ea998)=>{const {target:_0x556fde}=_0x3ea998;if(!_0x556fde?.['is']('element','a'))return;if(_0x556fde['parent']?.['is']('element','sup')&&_0x556fde['parent']['hasClass']('footnote')&&!_0x2bdc76)return void _0x3ea998['preventDefault']();let _0x3e3281=_0x556fde['getAttribute']('href');if(!_0x3e3281?.['startsWith']('#'))return;_0x3e3281=_0x3e3281['slice'](0x1);let _0x1720be=!0x1;(_0x3e3281['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3e3281['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3e3281))&&(_0x1720be=!0x0),_0x1720be&&(_0x3ea998['preventDefault'](),_0x37c9dc['stop']());},{'priority':'high','context':'$capture'});}}function getSelectedFootnoteRef(_0x31780f){const _0x277a0=_0x31780f['getSelectedElement']();return _0x277a0?.['is']('element','footnoteRef')?_0x277a0:null;}function footnoteBogusParagraphCreator({dataPipeline:_0x48aac2}={}){return(_0x4a3ef3,{writer:_0x3865c4})=>{if(!shouldUseBogusParagraphInFootnote(_0x4a3ef3))return null;if(!_0x48aac2)return _0x3865c4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x35ec44=_0x3865c4['createContainerElement']('p');return _0x3865c4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35ec44),_0x35ec44;};}function shouldUseBogusParagraphInFootnote(_0x275d56){const {parent:_0x373069}=_0x275d56;if(!_0x373069?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x373069['childCount'])return!0x1;for(const _0x278eb9 of _0x275d56['getAttributeKeys']())if(!_0x278eb9['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x278eb9)return!0x1;return!0x0;}function footnoteDefinitionRefreshHandler(_0xc724de,_0x2519e4){const _0x393c59=_0xc724de['document']['differ'],_0x12f421=new Set();for(const _0x112b3f of _0x393c59['getChanges']()){const _0x333dcb='attribute'==_0x112b3f['type']?_0x112b3f['range']['start']['parent']:_0x112b3f['position']['parent'];_0x333dcb['is']('element','footnoteDefinition')&&_0x12f421['add'](_0x333dcb);}for(const _0xfcc173 of _0x12f421['values']()){const _0x244d41=Array['from'](_0xfcc173['getChildren']())['filter'](_0x3dce6a=>shouldRefresh(_0x3dce6a,_0x2519e4['mapper']));for(const _0x5656fb of _0x244d41)_0x2519e4['reconvertItem'](_0x5656fb);}}function shouldRefresh(_0x3c4c5e,_0x510a66){if(!_0x3c4c5e['is']('element','paragraph'))return!0x1;const _0x41c7f7=_0x510a66['toViewElement'](_0x3c4c5e);return!!_0x41c7f7&&shouldUseBogusParagraphInFootnote(_0x3c4c5e)!==_0x41c7f7['is']('element','span');}function isFootnotesDefinitionsWidget(_0x408f00){return isWidget(_0x408f00)&&_0x408f00['is']('containerElement')&&!!_0x408f00['getCustomProperty']('footnotesDefinitions');}function createFootnotesWrapperView(_0x2a4bf6,_0x9ab9d5={}){const _0x4ab0c9=_0x2a4bf6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2ccd98=_0x2a4bf6['createContainerElement']('ol',{'class':'footnotes-list'},_0x2a4bf6['createSlot']());return _0x2a4bf6['createContainerElement']('div',{'class':'footnotes',..._0x9ab9d5},[_0x4ab0c9,_0x2ccd98]);}function createFootnoteRefView(_0xc0fb89,_0x58e114){const _0x46baad=_0xc0fb89['getAttribute']('footnoteId'),_0x1eeed1=_0xc0fb89['getAttribute']('footnoteCounter'),_0x22b3b2=_0x58e114['createUIElement']('a',{'href':'#'+_0x46baad},function(_0xd7f68f){const _0x1e6786=this['toDomElement'](_0xd7f68f);return _0x1e6786['textContent']=_0x1eeed1,_0x1e6786;}),_0x3137c8=_0x58e114['createContainerElement']('sup',{'id':'ref-'+_0x46baad,'class':'footnote'},[_0x22b3b2]);return _0x3137c8['getFillerOffset']=()=>null,_0x3137c8;}function createFootnoteDefinitionView(_0x48901f,_0x3652c7,_0x43d7c1,{dataPipeline:_0x18bb52}={}){const {t:t}=_0x43d7c1,_0x4f601d=_0x48901f['getAttribute']('footnoteId'),_0x462bfa=_0x3652c7['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4f601d},function(_0x4d5e48){const _0x1f8309=this['toDomElement'](_0x4d5e48);return _0x1f8309['innerText']='^',_0x1f8309;}),_0x45e608=_0x18bb52?_0x3652c7['createContainerElement']('div',{'class':'footnote-content'}):toWidgetEditable(_0x3652c7['createEditableElement']('div',{'class':'footnote-content'}),_0x3652c7,{'label':t('Footnote\x20content.')});return _0x3652c7['insert'](_0x3652c7['createPositionAt'](_0x45e608,0x0),_0x3652c7['createSlot']()),_0x3652c7['createContainerElement']('li',{'class':'footnote-definition','id':_0x4f601d},[_0x462bfa,_0x45e608]);}async function checkLicense$c(_0xa207d4){const _0x556841=_0x190067([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0xc17cde=window[_0x190067([0x44,0x61,0x74,0x65])][_0x190067([0x6e,0x6f,0x77])](),_0x5687b0=_0xa207d4[_0x190067([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d9f74=new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44785f=>{_0x5687b0[_0x190067([0x6f,0x6e,0x63,0x65])](_0x190067([0x72,0x65,0x61,0x64,0x79]),_0x44785f);}),_0x4f1d5d={[_0x190067([0x6b,0x74,0x79])]:_0x190067([0x45,0x43]),[_0x190067([0x75,0x73,0x65])]:_0x190067([0x73,0x69,0x67]),[_0x190067([0x63,0x72,0x76])]:_0x190067([0x50,0x2d,0x32,0x35,0x36]),[_0x190067([0x78])]:_0x190067([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x190067([0x79])]:_0x190067([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x190067([0x61,0x6c,0x67])]:_0x190067([0x45,0x53,0x32,0x35,0x36])},_0xf129cf=_0x5687b0[_0x190067([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x190067([0x67,0x65,0x74])](_0x190067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x44539f=await(async function(){let _0x29a528,_0x5c89f7=null,_0x2df521=null;try{if(_0xf129cf==_0x190067([0x47,0x50,0x4c]))return _0x190067([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29a528=(function(){const _0x2a8d8f=_0xf129cf[_0x190067([0x73,0x70,0x6c,0x69,0x74])](_0x190067([0x2e]));if(0x3!=_0x2a8d8f[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x50b1bb=_0x2a8d8f[0x1];return _0x417b44(_0x50b1bb);function _0x417b44(_0x1b9dd1){const _0x2ecaa4=_0x70fca2(_0x1b9dd1);return _0x2ecaa4&&_0x265afe()?_0x2ecaa4:null;function _0x265afe(){const _0x371a6c=_0x2ecaa4[_0x190067([0x6a,0x74,0x69])],_0x2442fc=window[_0x190067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x371a6c[_0x190067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x371a6c[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46ee06={..._0x2ecaa4,[_0x190067([0x6a,0x74,0x69])]:_0x371a6c[_0x190067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x371a6c[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46ee06[_0x190067([0x76,0x63])],_0x27a2f7(_0x46ee06)==_0x2442fc;}}}()),!_0x29a528)return _0x190067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x29a528[_0x190067([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2df521=function(_0x107298,_0x4eeb4d){return new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccf50=>{if(_0xa06e41())return _0x5ccf50(_0x190067([0x56,0x61,0x6c,0x69,0x64]));_0xb5e5bb(),_0x5687b0[_0x190067([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x190067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26d332=!0x1;const _0x8afac7=uid();function _0x5088a2(_0x278cd6){return!!_0x278cd6&&(typeof _0x278cd6===_0x190067([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x278cd6===_0x190067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x278cd6[_0x190067([0x74,0x68,0x65,0x6e])]===_0x190067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x278cd6[_0x190067([0x63,0x61,0x74,0x63,0x68])]===_0x190067([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x296f11(_0x5a7b99){_0x1359f8(_0x5a7b99)[_0x190067([0x74,0x68,0x65,0x6e])](_0x2be764=>{if(!_0x2be764||_0x2be764[_0x190067([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x190067([0x6f,0x6b]))return _0x190067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bc4ea(_0x27a2f7(_0x8afac7+_0x4eeb4d))!=_0x2be764[_0x190067([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x190067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x190067([0x56,0x61,0x6c,0x69,0x64]);})[_0x190067([0x74,0x68,0x65,0x6e])](_0x518b09=>(_0x476295(),_0x518b09),()=>{const _0x31e7a4=_0x387876();return null==_0x31e7a4?(_0x476295(),_0x190067([0x56,0x61,0x6c,0x69,0x64])):_0x190067(_0xc17cde-_0x31e7a4>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x190067([0x74,0x68,0x65,0x6e])](_0x5ccf50)[_0x190067([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ccf50(_0x190067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cf715=0x36ee80;function _0x476295(){const _0x4e82c2=_0x190067([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc4ea(_0x27a2f7(_0x107298)),_0x407187=_0x5ad114(_0x3bc4ea(window[_0x190067([0x4d,0x61,0x74,0x68])][_0x190067([0x63,0x65,0x69,0x6c])](_0xc17cde/_0x3cf715)));window[_0x190067([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x190067([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e82c2,_0x407187);}function _0x387876(){const _0x1b242f=_0x190067([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bc4ea(_0x27a2f7(_0x107298)),_0x414814=window[_0x190067([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x190067([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b242f);return _0x414814?window[_0x190067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad114(_0x414814),0x10)*_0x3cf715:null;}function _0x1359f8(_0x43d88a){return new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53eb82,_0x169be4)=>{_0x43d88a[_0x190067([0x74,0x68,0x65,0x6e])](_0x53eb82,_0x169be4),window[_0x190067([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x169be4,0x1d4c0);});}}_0x5687b0[_0x190067([0x6f,0x6e])](_0x190067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3def29,_0x361937)=>{if(_0x361937[0x0]!=_0x107298)return _0x5ccf50(_0x190067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x361937[0x1]={..._0x361937[0x1],[_0x190067([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8afac7};},{[_0x190067([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x190067([0x68,0x69,0x67,0x68])}),_0x5687b0[_0x190067([0x6f,0x6e])](_0x190067([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17c6f8=>{_0x5088a2(_0x17c6f8[_0x190067([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26d332=!0x0,_0x296f11(_0x17c6f8[_0x190067([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x190067([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x190067([0x6c,0x6f,0x77])}),_0x5d9f74[_0x190067([0x74,0x68,0x65,0x6e])](()=>{_0x26d332||_0x5ccf50(_0x190067([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa06e41(){return _0x5687b0[_0x190067([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x190067([0x76,0x69,0x65,0x77])][_0x190067([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x190067([0x61,0x75,0x74,0x6f]);}function _0xb5e5bb(){_0x5687b0[_0x190067([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x190067([0x76,0x69,0x65,0x77])][_0x190067([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x190067([0x61,0x75,0x74,0x6f]);}}(_0x29a528[_0x190067([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29a528[_0x190067([0x6a,0x74,0x69])]));const _0x3e3062=await(async function(){let _0x40b759=!0x0;try{const _0x21d2bb=_0xf129cf[_0x190067([0x73,0x70,0x6c,0x69,0x74])](_0x190067([0x2e])),[_0x2b0d20,_0x47af91,_0x548e18]=_0x21d2bb;return _0x1086f7(_0x2b0d20),await _0x461203(_0x2b0d20,_0x47af91,_0x548e18),_0x40b759;}catch{return!0x1;}function _0x1086f7(_0x2b2d18){const _0x310721=_0x70fca2(_0x2b2d18);_0x310721&&_0x310721[_0x190067([0x61,0x6c,0x67])]==_0x190067([0x45,0x53,0x32,0x35,0x36])||(_0x40b759=!0x1);}async function _0x461203(_0x2a2e11,_0x480253,_0x212207){const _0x3a985f=window[_0x190067([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x190067([0x66,0x72,0x6f,0x6d])](_0x48c961(_0x212207),_0x2b6066=>_0x2b6066[_0x190067([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58ed36=new window[(_0x190067([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x190067([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a2e11+_0x190067([0x2e])+_0x480253),_0x27224b=window[_0x190067([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x190067([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27224b)return;const _0xf479ec=await _0x27224b[_0x190067([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x190067([0x6a,0x77,0x6b]),_0x4f1d5d,{[_0x190067([0x6e,0x61,0x6d,0x65])]:_0x190067([0x45,0x43,0x44,0x53,0x41]),[_0x190067([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x190067([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x190067([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27224b[_0x190067([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x190067([0x6e,0x61,0x6d,0x65])]:_0x190067([0x45,0x43,0x44,0x53,0x41]),[_0x190067([0x68,0x61,0x73,0x68])]:{[_0x190067([0x6e,0x61,0x6d,0x65])]:_0x190067([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf479ec,_0x3a985f,_0x58ed36)||(_0x40b759=!0x1);}}());return _0x3e3062?(function(){const _0x3ebcfe=_0x29a528[_0x190067([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ebcfe)return!0x1;if(_0x3ebcfe[_0x190067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190067([0x2a])))return!0x0;if(_0x3ebcfe[_0x190067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190067([0x46,0x4f,0x4f])))return!0x0;return!0x1;}())?(function(){const _0x1e6a73=[_0x190067([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x190067([0x74,0x72,0x69,0x61,0x6c])][_0x190067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a528[_0x190067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc17cde/0x3e8:0x69e02680;return _0x29a528[_0x190067([0x65,0x78,0x70])]<_0x1e6a73;}())?_0x190067([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xbca0a6=_0x29a528[_0x190067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbca0a6||0x0==_0xbca0a6[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x514766}=new URL(window[_0x190067([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbca0a6[_0x190067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x514766))return!0x0;const _0x128d51=_0x514766[_0x190067([0x73,0x70,0x6c,0x69,0x74])](_0x190067([0x2e]));return _0xbca0a6[_0x190067([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e81e7=>_0x5e81e7[_0x190067([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190067([0x2a])))[_0x190067([0x6d,0x61,0x70])](_0x36649e=>_0x36649e[_0x190067([0x73,0x70,0x6c,0x69,0x74])](_0x190067([0x2e])))[_0x190067([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a37f9=>_0x3a37f9[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x128d51[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x190067([0x6d,0x61,0x70])](_0x1d04b4=>Array(_0x128d51[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d04b4[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x190067([0x66,0x69,0x6c,0x6c])](_0x1d04b4[0x0]===_0x190067([0x2a])?_0x190067([0x2a]):'')[_0x190067([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d04b4))[_0x190067([0x73,0x6f,0x6d,0x65])](_0x4497be=>_0x128d51[_0x190067([0x65,0x76,0x65,0x72,0x79])]((_0x4ba4e8,_0x23eaf7)=>_0x4497be[_0x23eaf7]===_0x4ba4e8||_0x4497be[_0x23eaf7]===_0x190067([0x2a])));}())?(_0x29a528[_0x190067([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x190067([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c89f7=function(_0x226941){const _0x3b1f51=new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4787e1=>setTimeout(_0x4787e1,0x93ecc)),_0x2cdbd1=_0x5d9f74[_0x190067([0x74,0x68,0x65,0x6e])](()=>new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15254f=>{let _0x503afc=0x0;_0x5687b0[_0x190067([0x6d,0x6f,0x64,0x65,0x6c])][_0x190067([0x6f,0x6e])](_0x190067([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x284dd2,_0x5c6f12)=>{_0x5c6f12[0x0][_0x190067([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x503afc++,0x5e8==_0x503afc&&(_0x15254f(),_0x284dd2[_0x190067([0x6f,0x66,0x66])]());});})),_0x1a9df9=[_0x3b1f51,_0x2cdbd1];return window[_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x190067([0x72,0x61,0x63,0x65])](_0x1a9df9)[_0x190067([0x74,0x68,0x65,0x6e])](()=>_0x226941);}(_0x190067([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5c89f7&&_0x2df521)return new window[(_0x190067([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f012,_0x2753cd)=>{_0x5c89f7[_0x190067([0x74,0x68,0x65,0x6e])](_0x12f012,_0x2753cd),_0x2df521[_0x190067([0x74,0x68,0x65,0x6e])](_0x3d1a0e=>{_0x3d1a0e!=_0x190067([0x56,0x61,0x6c,0x69,0x64])&&_0x12f012(_0x3d1a0e);},_0x2753cd);});return _0x5c89f7||_0x2df521||_0x190067([0x56,0x61,0x6c,0x69,0x64]);}())):_0x190067([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x190067([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x190067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x190067([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x70fca2(_0x364780){return _0x364780[_0x190067([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x190067([0x65,0x79]))?JSON[_0x190067([0x70,0x61,0x72,0x73,0x65])](_0x48c961(_0x364780)):null;}function _0x48c961(_0x50ce5d){return window[_0x190067([0x61,0x74,0x6f,0x62])](_0x50ce5d[_0x190067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x190067([0x2b]))[_0x190067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x190067([0x2f])));}function _0x27a2f7(_0x266aed){let _0xaee874=0x1505;function _0x3e96db(_0x183091){for(let _0x80f5f2=0x0;_0x80f5f2<_0x183091[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x80f5f2++){const _0x232864=_0x183091[_0x190067([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x80f5f2);_0xaee874=(_0xaee874<<0x5)+_0xaee874+_0x232864,_0xaee874&=_0xaee874;}}return function _0x588e96(_0x5742ba){Array[_0x190067([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5742ba)?_0x5742ba[_0x190067([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x588e96):_0x5742ba&&typeof _0x5742ba==_0x190067([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x190067([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5742ba)[_0x190067([0x73,0x6f,0x72,0x74])]()[_0x190067([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1da1b2,_0x40554e])=>{_0x3e96db(_0x1da1b2),_0x588e96(_0x40554e);}):_0x3e96db(window[_0x190067([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5742ba));}(_0x266aed),_0xaee874>>>0x0;}function _0x3bc4ea(_0x292b04){return _0x292b04[_0x190067([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x190067([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x190067([0x30]));}function _0x5ad114(_0x14b2f2){return _0x14b2f2[_0x190067([0x73,0x70,0x6c,0x69,0x74])]('')[_0x190067([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x190067([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c0f85(){}function _0x190067(_0x37af46){return _0x37af46['map'](_0x2d11a4=>String['fromCharCode'](_0x2d11a4))['join']('');}!function(_0x38760d){const _0x398f8b=(function(){const _0xe97bb9=window[_0x190067([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x190067([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x190067([0x6e,0x6f,0x77])]())[_0x190067([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x190067([0x2e]),'');let _0x1ae76c=_0x190067([0x75]);for(let _0x4e63e5=0x0;_0x4e63e5<_0xe97bb9[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e63e5+=0x2){let _0x4c7ef0=window[_0x190067([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe97bb9[_0x190067([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e63e5,_0x4e63e5+0x2));_0x4c7ef0>=_0x556841[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c7ef0-=_0x556841[_0x190067([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ae76c+=_0x556841[_0x4c7ef0];}return _0x1ae76c;}());_0x5687b0[_0x398f8b]=_0x190067([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x38760d,_0x38760d!=_0x190067([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5d9f74,_0x5687b0[_0x190067([0x6d,0x6f,0x64,0x65,0x6c])][_0x190067([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c0f85,_0x5687b0[_0x190067([0x6d,0x6f,0x64,0x65,0x6c])][_0x190067([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c0f85,_0x5687b0[_0x190067([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x190067([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x44539f);}class FootnotesClipboard extends Plugin{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[FootnotesEditing,ClipboardPipeline];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x329eae}=this,{plugins:_0x3e6886,model:_0x539b51}=_0x329eae,_0x3a9efd=_0x3e6886['get'](ClipboardPipeline),_0xca0033=_0x3e6886['get'](FootnotesTracker);this['listenTo'](_0x3a9efd,'outputTransformation',(_0x1e5273,_0x5d75fe)=>{const _0x136dd8=pickAllFootnotesRefsIdsFromRange(_0x539b51['createRangeIn'](_0x5d75fe['content']));if(!_0x136dd8['length'])return;const _0xb74165=_0xca0033['getFootnotes'](),_0x2bd869=_0x136dd8['reduce']((_0x4e0deb,_0x5e92e6)=>{const _0x551f9b=_0xb74165['find'](_0x5253b0=>_0x5253b0['id']===_0x5e92e6);if(_0x551f9b){const _0x578216=_0x329eae['data']['toView'](_0x551f9b['definition'],{'isClipboardPipeline':!0x0}),_0x475bed=_0x329eae['data']['htmlProcessor']['toData'](_0x578216);_0x4e0deb[_0x551f9b['id']]=_0x475bed;}return _0x4e0deb;},Object['create'](null));_0x5d75fe['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2bd869));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x409601}=this,{model:_0x286342,plugins:_0x1e4fe5}=_0x409601,{view:_0x3473c0}=_0x409601['editing'],_0x400df9=_0x1e4fe5['get'](ClipboardPipeline),_0x38b335=_0x1e4fe5['get'](FootnotesTracker),_0x2de0a4=_0x409601['config']['get']('footnotes.multiBlock');let _0x1d0512=null;this['listenTo'](_0x3473c0['document'],'clipboardInput',(_0x584439,_0x7b2ece)=>{const _0x476502=_0x7b2ece['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1d0512=_0x476502?JSON['parse'](_0x476502):null;}),this['listenTo'](_0x400df9,'contentInsertion',(_0x42e38b,_0x4292c8)=>{const _0x1c66d5=_0x4292c8['sourceEditorId']===this['editor']['id'];_0x1c66d5&&'drop'===_0x4292c8['method']||_0x286342['change'](_0x16f320=>{let _0x229644=_0x38b335['getFootnotesDefinitionsObjectElement']();const _0x2c3f8c=!!_0x229644&&Array['from'](_0x286342['document']['selection']['getSelectedBlocks']())['includes'](_0x229644);if(!_0x1d0512&&areThereFootnotesRefsInRange(_0x286342['createRangeIn'](_0x4292c8['content']))&&(_0x1d0512=extractFootnotesDefinitionsFromContent(_0x16f320,_0x4292c8['content'])),(_0x229644&&!_0x2c3f8c||!_0x229644&&!_0x1d0512)&&removeFootnoteDefinitionsFromFragment(_0x16f320,_0x4292c8['content']),!_0x1d0512)return;const {selection:_0x2da0e3}=_0x286342['document'],_0x3ae21c=_0x2da0e3['getFirstRange']()['root'];_0x229644&&!_0x2c3f8c||(_0x229644=findFootnoteDefinitionsElementInFragment(_0x16f320,_0x4292c8['content']),_0x229644||=_0x38b335['_insertEmptyFootnotesDefinitionsContainer'](_0x16f320,_0x3ae21c));const _0x393a64=Array['from'](_0x2da0e3['getRanges']())['flatMap'](pickAllFootnotesRefsIdsFromRange),_0xceda54=regenerateFootnoteIdsInFragment(_0x16f320,_0x4292c8['content'],_0x556f2d=>{if(!_0x1c66d5)return!0x0;return!!_0x38b335['getFootnote'](_0x556f2d)&&!_0x393a64['includes'](_0x556f2d);});for(const [_0xc22aac,_0x5b63d6]of Object['entries'](_0x1d0512)){const _0x3e7fdc=_0xceda54[_0xc22aac]||_0xc22aac;let _0x4424c8;if('string'!=typeof _0x5b63d6)_0x4424c8=_0x5b63d6,_0x3e7fdc!==_0xc22aac&&_0x16f320['setAttribute']('footnoteId',_0x3e7fdc,_0x4424c8);else{_0x4424c8=_0x16f320['createElement']('footnoteDefinition',{'footnoteId':_0x3e7fdc});const _0x4e5ebc=_0x409601['data']['htmlProcessor']['toView'](_0x5b63d6);let _0x4ee2d8;if(_0x2de0a4)_0x4ee2d8=_0x409601['data']['toModel'](_0x4e5ebc,_0x4424c8);else{_0x4ee2d8=_0x16f320['createElement']('footnoteInlineContent');const _0x36e031=_0x409601['data']['toModel'](_0x4e5ebc,_0x4ee2d8);_0x16f320['insert'](_0x36e031,_0x4ee2d8);}_0x16f320['append'](_0x4ee2d8,_0x4424c8);}_0x16f320['insert'](_0x4424c8,_0x229644,'end');}_0x1d0512=null;});});}}function removeFootnoteDefinitionsFromFragment(_0x8560e6,_0x46e886){const _0x1252fb=[];for(const {item:_0x588a8d}of _0x8560e6['createRangeIn'](_0x46e886))_0x588a8d['is']('element','footnotesDefinitions')&&_0x1252fb['push'](_0x588a8d);for(const _0x232dca of _0x1252fb)_0x8560e6['remove'](_0x232dca);}function findFootnoteDefinitionsElementInFragment(_0x3ffc99,_0x2c1c8a){for(const {item:_0x4cdef6}of _0x3ffc99['createRangeIn'](_0x2c1c8a))if(_0x4cdef6['is']('element','footnotesDefinitions'))return _0x4cdef6;return null;}function pickAllFootnotesRefsIdsFromRange(_0x2f1047){const _0x23bf05=new Set();for(const {item:_0x5418d6}of _0x2f1047)_0x5418d6['is']('element','footnoteRef')&&_0x23bf05['add'](_0x5418d6['getAttribute']('footnoteId'));return Array['from'](_0x23bf05);}function areThereFootnotesRefsInRange(_0x1bf2a8){for(const {item:_0x324d4f}of _0x1bf2a8)if(_0x324d4f['is']('element','footnoteRef'))return!0x0;return!0x1;}function extractFootnotesDefinitionsFromContent(_0x4f7f03,_0xc4d725){const _0x63f2cf=findFootnoteDefinitionsElementInFragment(_0x4f7f03,_0xc4d725);if(!_0x63f2cf)return null;const _0x42d550=Object['create'](null);for(const _0x4046fb of _0x63f2cf['getChildren']())_0x4046fb['is']('element','footnoteDefinition')&&_0x4046fb['hasAttribute']('footnoteId')&&(_0x42d550[_0x4046fb['getAttribute']('footnoteId')]=_0x4f7f03['cloneElement'](_0x4046fb,!0x0));return Object['keys'](_0x42d550)['length']?_0x42d550:null;}function regenerateFootnoteIdsInFragment(_0x2b09a1,_0x1854f1,_0x391da1){const _0x381ca0=Object['create'](null);for(const {item:_0x20b882}of _0x2b09a1['createRangeIn'](_0x1854f1))if(_0x20b882['is']('element','footnoteRef')){const _0x5422a1=_0x20b882['getAttribute']('footnoteId');if(!_0x391da1(_0x5422a1))continue;_0x381ca0[_0x5422a1]||(_0x381ca0[_0x5422a1]=uid()),_0x2b09a1['setAttribute']('footnoteId',_0x381ca0[_0x5422a1],_0x20b882);}return _0x381ca0;}class FootnotesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa910ee}=this,{componentFactory:_0x150c03}=_0xa910ee['ui'];_0x150c03['add']('insertFootnote',getInsertFootnoteButtonCreator(_0xa910ee,ButtonView)),_0x150c03['add']('menuBar:insertFootnote',getInsertFootnoteButtonCreator(_0xa910ee,MenuBarMenuListItemButtonView)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a306e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x413c6f;for(const _0x78dfca in _0x3a306e){const _0x52fae4=_0x78dfca,_0x1d9446=_0x3a306e[_0x52fae4];if('footnotesLicenseKeyValid'==_0x1d9446||'footnotesLicenseKeyInvalid'==_0x1d9446||'footnotesLicenseKeyExpired'==_0x1d9446||'footnotesLicenseKeyDomainLimit'==_0x1d9446||'footnotesLicenseKeyNotAllowed'==_0x1d9446||'footnotesLicenseKeyEvaluationLimit'==_0x1d9446||'footnotesLicenseKeyUsageLimit'==_0x1d9446){delete _0x3a306e[_0x52fae4],_0x413c6f=_0x1d9446,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x413c6f&&_0x3a306e['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x413c6f&&_0x3a306e['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x413c6f&&_0x3a306e['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x413c6f&&_0x3a306e['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x413c6f&&_0x3a306e['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x413c6f&&_0x3a306e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getInsertFootnoteButtonCreator(_0x3535a7,_0x103382){const _0x4e3050=_0x3535a7['commands']['get']('insertFootnote');return _0x37c764=>{const {t:t}=_0x37c764,_0x1adea8=new _0x103382(_0x37c764),_0x404f8b=_0x1adea8 instanceof MenuBarMenuListItemButtonView;return _0x1adea8['bind']('isEnabled')['to'](_0x4e3050,'isEnabled'),_0x1adea8['set']({'label':t(_0x404f8b?'Footnote':'Insert\x20footnote'),'icon':IconFootnote,'tooltip':!0x0}),_0x1adea8['on']('execute',()=>{_0x4e3050['execute'](),_0x3535a7['editing']['view']['focus']();}),_0x1adea8;};}class Footnotes extends Plugin{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[FootnotesEditing,FootnotesClipboard,FootnotesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const FOOTNOTES_DEFINITIONS_STYLES=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class FootnotesStyleCommand extends Command{['refresh'](){const {editor:_0x27c73e}=this,_0xaeb5ef=_0x27c73e['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xaeb5ef,this['value']=_0xaeb5ef?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x379e62}){const {editor:_0x53a53c}=this,_0x24fb90=_0x53a53c['plugins']['get'](FootnotesTracker),_0x4eb011=_0x24fb90['getFootnotesDefinitionsObjectElement']();_0x4eb011&&FOOTNOTES_DEFINITIONS_STYLES['includes'](_0x379e62)&&_0x53a53c['model']['change'](_0x5076ba=>{_0x5076ba['setAttribute']('footnotesListStyle',_0x379e62,_0x4eb011),_0x24fb90['_updateFootnotesCounters'](_0x5076ba);});}}class FootnotesStartCommand extends Command{['refresh'](){const {editor:_0x358f13}=this,_0x3f2b7b=_0x358f13['plugins']['get'](FootnotesTracker)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f2b7b,this['value']=_0x3f2b7b?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x452130}){const {editor:_0x47bba5}=this,_0x45cdb6=_0x47bba5['plugins']['get'](FootnotesTracker),_0x19237a=_0x45cdb6['getFootnotesDefinitionsObjectElement']();_0x19237a&&Number['isInteger'](_0x452130)&&_0x47bba5['model']['change'](_0x36b4fe=>{_0x36b4fe['setAttribute']('footnotesListStart',_0x452130,_0x19237a),_0x45cdb6['_updateFootnotesCounters'](_0x36b4fe);});}}class FootnotesPropertiesEditing extends Plugin{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[FootnotesEditing,FootnotesTracker];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x380b9a}=this;_0x380b9a['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x380b9a['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x380b9a['commands']['add']('footnotesStyle',new FootnotesStyleCommand(_0x380b9a)),_0x380b9a['commands']['add']('footnotesStart',new FootnotesStartCommand(_0x380b9a)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x1da690}=this,{schema:_0x466a95}=_0x1da690['model'];_0x466a95['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5c8c39}=this,{conversion:_0x16e4cc,model:_0x2bc4b5}=_0x5c8c39,{schema:_0x3dfe8f}=_0x2bc4b5;_0x16e4cc['for']('upcast')['add'](_0x5c99bd=>{_0x5c99bd['on']('element:ol',(_0x1c54d3,_0x3fe9cc,_0x217547)=>{const _0x53ceb9=_0x3fe9cc['viewItem'],_0x2aa709=_0x3fe9cc['modelCursor']?.['parent'];_0x53ceb9['hasClass']('footnotes-list')&&_0x2aa709?.['is']('element','footnotesDefinitions')&&(upcastFootnotesListStart(_0x53ceb9,_0x2aa709,_0x217547,_0x3dfe8f),upcastFootnotesListStyle(_0x53ceb9,_0x2aa709,_0x217547,_0x3dfe8f));});}),_0x16e4cc['for']('downcast')['add'](_0x46e164=>{_0x46e164['on']('attribute:footnotesListStart:footnotesDefinitions',downcastFootnotesListStart()),_0x46e164['on']('attribute:footnotesListStyle:footnotesDefinitions',downcastFootnotesListStyle());});}['_definePostfixer'](){const {editor:_0x1f929a}=this,{model:_0x484772}=_0x1f929a,_0x1308d5=_0x1f929a['plugins']['get'](FootnotesTracker),_0x3a2871=this['_getDefaultListStyle'](),_0x332f37=this['_getDefaultStartIndex']();_0x484772['document']['registerPostFixer'](_0x5cca0c=>{const _0x40d7d8=_0x484772['document']['differ']['getChanges']();let _0x7673e1=!0x1;for(const _0x389c04 of _0x40d7d8){if('insert'!==_0x389c04['type']||'$text'===_0x389c04['name'])continue;const _0x4d1ace=_0x484772['createRangeOn'](_0x389c04['position']['nodeAfter']);for(const _0x3926d5 of _0x4d1ace['getItems']())_0x3926d5['is']('element','footnotesDefinitions')&&(!_0x3926d5['hasAttribute']('footnotesListStart')&&_0x484772['schema']['checkAttribute'](_0x3926d5,'footnotesListStart')&&(_0x5cca0c['setAttribute']('footnotesListStart',_0x332f37,_0x3926d5),_0x7673e1=!0x0),!_0x3926d5['hasAttribute']('footnotesListStyle')&&_0x484772['schema']['checkAttribute'](_0x3926d5,'footnotesListStyle')&&(_0x5cca0c['setAttribute']('footnotesListStyle',_0x3a2871,_0x3926d5),_0x7673e1=!0x0));}return _0x7673e1&&_0x1308d5['_updateFootnotesCounters'](_0x5cca0c),_0x7673e1;});}['_defineFormatter'](){const {editor:_0x1a63d5}=this;_0x1a63d5['plugins']['get'](FootnotesTracker)['setFootnoteFormatter'](_0x3e7d1e=>this['_formatFootnoteListValue'](_0x3e7d1e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x359a04,value:_0x507c7b,digits:_0x3ee404}){const _0x311f83=_0x359a04['getAttribute']('footnotesListStyle'),_0x552a17=_0x359a04['getAttribute']('footnotesListStart'),_0x13ef88=Math['floor'](_0x507c7b)+(_0x552a17??0x1)-0x1;switch(_0x311f83){case'decimal-leading-zero':return formatDecimalLeadingZero(_0x13ef88,Math['max'](0x2,_0x3ee404));case'lower-alpha':case'lower-latin':return toLatin(_0x13ef88,!0x1);case'upper-alpha':case'upper-latin':return toLatin(_0x13ef88,!0x0);case'lower-roman':return toRoman(_0x13ef88,!0x1);case'upper-roman':return toRoman(_0x13ef88,!0x0);default:return String(_0x13ef88);}}}function upcastFootnotesListStart(_0x231c30,_0x3134cd,_0x2b1159,_0x558589){if(!_0x558589['checkAttribute'](_0x3134cd,'footnotesListStart'))return;let _0x51c625=0x1;const _0xf778ef=_0x2b1159['consumable']['consume'](_0x231c30,{'attributes':'start'});if(_0xf778ef){const _0x4753af=Number['parseInt'](_0x231c30['getAttribute']('start'),0xa);Number['isNaN'](_0x4753af)||(_0x51c625=_0x4753af);}!_0xf778ef&&_0x3134cd['hasAttribute']('footnotesListStart')||_0x2b1159['writer']['setAttribute']('footnotesListStart',_0x51c625,_0x3134cd);}function upcastFootnotesListStyle(_0x4573ab,_0xd00bcf,_0x2cc3bc,_0x497bf0){if(!_0x497bf0['checkAttribute'](_0xd00bcf,'footnotesListStyle'))return;let _0x4d232e='decimal',_0x76ed24=!0x1;if(_0x2cc3bc['consumable']['consume'](_0x4573ab,{'attributes':'type'})){const _0x1a92e0={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4573ab['getAttribute']('type')];_0x1a92e0&&(_0x4d232e=_0x1a92e0),_0x76ed24=!0x0;}_0x2cc3bc['consumable']['consume'](_0x4573ab,{'styles':'list-style-type'})&&(_0x4d232e=normalizeFootnotesListStyle(_0x4573ab['getStyle']('list-style-type')),_0x76ed24=!0x0),!_0x76ed24&&_0xd00bcf['hasAttribute']('footnotesListStyle')||_0x2cc3bc['writer']['setAttribute']('footnotesListStyle',_0x4d232e,_0xd00bcf);}function normalizeFootnotesListStyle(_0x5e956d){switch(_0x5e956d){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x5e956d;}}function downcastFootnotesListStart(){return(_0x56543d,_0x4e40cf,_0x8d9da6)=>{if(!_0x8d9da6['consumable']['consume'](_0x4e40cf['item'],_0x56543d['name']))return;const _0x11dcff=getOlElementFromFootnotesDefinitions(_0x4e40cf['item'],_0x8d9da6['mapper']),{attributeNewValue:_0x4c78d7}=_0x4e40cf;null==_0x4c78d7||0x1===_0x4c78d7?_0x8d9da6['writer']['removeAttribute']('start',_0x11dcff):_0x8d9da6['writer']['setAttribute']('start',String(_0x4c78d7),_0x11dcff);};}function downcastFootnotesListStyle(){return(_0x14b93f,_0x2604f9,_0x593501)=>{if(!_0x593501['consumable']['consume'](_0x2604f9['item'],_0x14b93f['name']))return;const _0x17dfeb=getOlElementFromFootnotesDefinitions(_0x2604f9['item'],_0x593501['mapper']),{attributeNewValue:_0x34932c}=_0x2604f9;_0x34932c&&'decimal'!==_0x34932c?_0x593501['writer']['setStyle']('list-style-type',_0x34932c,_0x17dfeb):_0x593501['writer']['removeStyle']('list-style-type',_0x17dfeb);};}function getOlElementFromFootnotesDefinitions(_0x44aaef,_0x388d98){const _0x46d8cc=_0x388d98['toViewElement'](_0x44aaef);return Array['from'](_0x46d8cc['getChildren']())['find'](_0x5c5034=>_0x5c5034['is']('element','ol')&&_0x5c5034['hasClass']('footnotes-list'));}function formatDecimalLeadingZero(_0x24beb9,_0x16236e){return String(_0x24beb9)['padStart'](_0x16236e,'0');}function toLatin(_0x525507,_0x2d3ca6){let _0x262601='',_0x149e09=_0x525507;for(;_0x149e09>0x0;){const _0x468857=(_0x149e09-0x1)%0x1a;_0x262601=String['fromCharCode'](0x61+_0x468857)+_0x262601,_0x149e09=Math['floor']((_0x149e09-0x1)/0x1a);}return _0x2d3ca6?_0x262601['toUpperCase']():_0x262601;}const ROMAN_MAP=[{'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 toRoman(_0xf2b658,_0x2cf866){let _0x50ea5c='',_0x3fce78=_0xf2b658;for(const {value:_0x11444c,numeral:_0x12e67e}of ROMAN_MAP)for(;_0x3fce78>=_0x11444c;)_0x50ea5c+=_0x12e67e,_0x3fce78-=_0x11444c;return _0x2cf866?_0x50ea5c:_0x50ea5c['toLowerCase']();}class FootnotesDefinitionsPropertiesView extends View{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x330eaf,{styleButtonViews:_0xc1a02d,styleGridAriaLabel:_0x88b07c}){super(_0x330eaf),(this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xc1a02d,_0x88b07c),[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 _0x1b2530 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1b2530['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x59f9c1['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 _0x49b2a3=_0x56dd26=>_0x56dd26['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49b2a3),this['keystrokes']['set']('arrowleft',_0x49b2a3),this['keystrokes']['set']('arrowup',_0x49b2a3),this['keystrokes']['set']('arrowdown',_0x49b2a3);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3ed9b2,_0x595cf4){const _0x1c3cf5=new View(this['locale']);return _0x1c3cf5['children']=_0x1c3cf5['createCollection'](),_0x1c3cf5['children']['addMany'](_0x3ed9b2),_0x1c3cf5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x595cf4,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1c3cf5['children']}),_0x1c3cf5['children']['delegate']('execute')['to'](this),_0x1c3cf5['focus']=function(){for(const _0x5cf5e4 of this['children'])if(_0x5cf5e4 instanceof ButtonView&&_0x5cf5e4['isOn'])return void _0x5cf5e4['focus']();this['children']['first']['focus']();},_0x1c3cf5['focusTracker']=new FocusTracker(),_0x1c3cf5['keystrokes']=new KeystrokeHandler(),_0x1c3cf5['render'](),_0x1c3cf5['keystrokes']['listenTo'](_0x1c3cf5['element']),this['children']['add'](_0x1c3cf5),_0x1c3cf5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x441d38=this['_createStartIndexPropertyView'](),_0x3fc5cd=[_0x441d38],_0x20ca0e=new CollapsibleView(this['locale'],_0x3fc5cd);return _0x20ca0e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x20ca0e['buttonView']['bind']('isEnabled')['toMany'](_0x3fc5cd,'isEnabled',(..._0x56ce34)=>_0x56ce34['some'](_0x4648e1=>_0x4648e1)),_0x20ca0e['buttonView']['on']('change:isEnabled',(_0x5e09a7,_0x41e1ac,_0x315b0f)=>{_0x315b0f||(_0x20ca0e['isCollapsed']=!0x0);}),this['children']['add'](_0x20ca0e),[_0x441d38,_0x20ca0e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3468cd=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0x3468cd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3468cd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3468cd['fieldView']['on']('input',()=>{const _0x4740fc=_0x3468cd['fieldView']['element'],_0xa1676f=_0x4740fc['valueAsNumber'];Number['isNaN'](_0xa1676f)?_0x3468cd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4740fc['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xa1676f}):_0x3468cd['errorText']=t(_0xa1676f<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3468cd;}}class FootnotesPropertiesUI extends Plugin{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[ContextualBalloon,WidgetToolbarRepository];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1eac77}=this,{componentFactory:_0x209683}=_0x1eac77['ui'];_0x1eac77['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x209683['add']('footnotesStyle',getFootnotesStyleDropdownViewCreator(_0x1eac77));}['afterInit'](){const {editor:_0x13e3bf}=this,{t:t}=_0x13e3bf['locale'],_0x12d839=_0x13e3bf['plugins']['get'](WidgetToolbarRepository),{defaultPositions:_0x51bcf8}=BalloonPanelView;_0x12d839['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x13e3bf['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3916b7=>{let _0x4ad6d6=_0x3916b7['getFirstPosition']()?.['parent'];return _0x4ad6d6?.['is']('$text')&&(_0x4ad6d6=_0x4ad6d6['parent']),_0x4ad6d6?.['is']('element')?_0x4ad6d6['findAncestor'](isFootnotesDefinitionsWidget):null;},'positions':[_0x51bcf8['southArrowNorth'],_0x51bcf8['southArrowNorthMiddleWest'],_0x51bcf8['southArrowNorthMiddleEast'],_0x51bcf8['southArrowNorthWest'],_0x51bcf8['southArrowNorthEast'],_0x51bcf8['northArrowSouth'],_0x51bcf8['northArrowSouthMiddleWest'],_0x51bcf8['northArrowSouthMiddleEast'],_0x51bcf8['northArrowSouthWest'],_0x51bcf8['northArrowSouthEast'],_0x51bcf8['viewportStickyNorth']]});}}function getFootnotesStyleDropdownViewCreator(_0x5eb22d){return _0x2c6cde=>{const {t:t}=_0x2c6cde,_0x291ad5=_0x5eb22d['commands']['get']('footnotesStyle'),_0x1385c8=createDropdown(_0x2c6cde),{buttonView:_0x102d4a}=_0x1385c8;return _0x1385c8['class']='ck-footnotes-styles-dropdown',_0x1385c8['bind']('isEnabled')['to'](_0x291ad5,'isEnabled'),_0x102d4a['set']({'label':t('Footnotes\x20style'),'icon':IconFootnote,'tooltip':!0x0}),_0x1385c8['once']('change:isOpen',()=>{const _0x5ee091=createFootnotesDefinitionsPropertiesView({'editor':_0x5eb22d,'dropdownView':_0x1385c8});_0x1385c8['panelView']['children']['add'](_0x5ee091);}),_0x1385c8;};}function createFootnotesDefinitionsPropertiesView({editor:_0x1031be,dropdownView:_0x1393fd}){const {t:t}=_0x1031be['locale'],_0x3436f1=t('Footnotes\x20definitions\x20styles'),_0x200230=createFootnotesDefinitionStyleButtons(_0x1031be),_0x21c121=new FootnotesDefinitionsPropertiesView(_0x1031be['locale'],{'styleGridAriaLabel':_0x3436f1,'styleButtonViews':_0x200230}),_0x50b22e=_0x1031be['commands']['get']('footnotesStart');return _0x21c121['startIndexFieldView']['bind']('isEnabled')['to'](_0x50b22e),_0x21c121['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x50b22e),_0x21c121['on']('footnotesListStart',(_0xc1dd5,_0x5a9305)=>{_0x1031be['execute']('footnotesStart',{'value':_0x5a9305['startIndex']});}),_0x21c121['delegate']('execute')['to'](_0x1393fd),_0x21c121;}function createFootnotesDefinitionStyleButtons(_0x323456){const t=_0x323456['locale']['t'];return[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':IconListStyleDecimal},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':IconListStyleDecimalLeadingZero},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':IconListStyleLowerRoman},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':IconListStyleUpperRoman},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':IconListStyleLowerLatin},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':IconListStyleUpperLatin}]['map'](getFootnoteStyleButtonCreator(_0x323456));}function getFootnoteStyleButtonCreator(_0x4724da){const _0x57cfc5=_0x4724da['locale'];return({label:_0x15a334,icon:_0x1378ef,tooltip:_0x4dd74d,style:_0x308776})=>{const _0x2d2d30=_0x4724da['commands']['get']('footnotesStyle'),_0x65be43=new ButtonView(_0x57cfc5);return _0x65be43['set']({'label':_0x15a334,'icon':_0x1378ef,'tooltip':_0x4dd74d}),_0x65be43['bind']('isOn')['to'](_0x2d2d30,'value',_0x1efd0d=>_0x1efd0d===_0x308776),_0x65be43['bind']('isEnabled')['to'](_0x2d2d30,'isEnabled'),_0x65be43['on']('execute',()=>{_0x4724da['execute']('footnotesStyle',{'value':_0x308776}),_0x4724da['editing']['view']['focus']();}),_0x65be43;};}class FootnotesProperties extends Plugin{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[FootnotesPropertiesEditing,FootnotesPropertiesUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COPY_FORMAT_COMMAND_NAME='copyFormat',PASTE_FORMAT_COMMAND_NAME='pasteFormat',CURSOR_ACTIVE_CSS_CLASS='ck-format-painter-active';class CopyFormatCommand extends Command{constructor(_0x2b5185){super(_0x2b5185),this['value']=void 0x0,this['on']('change:isEnabled',(_0x5a7f17,_0x30ddaf,_0x24b0cc)=>{_0x24b0cc||this['reset']();}),this['on']('change:value',()=>_0x2b5185['commands']['get'](PASTE_FORMAT_COMMAND_NAME)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x36758b=this['editor']['model'],_0x245e64=_0x36758b['document']['selection'];return Object['fromEntries'](Array['from'](_0x245e64['getAttributes']())['filter'](([_0x51b76c])=>_0x36758b['schema']['getAttributeProperties'](_0x51b76c)['isFormatting']));}}class PasteFormatCommand extends Command{constructor(_0x35cad9){super(_0x35cad9),this['_removeFormatCommand']=new RemoveFormatCommandAlias(_0x35cad9);}['execute'](_0x334a2c={}){const _0x4ee5bb=this['editor']['model'],_0x4d08ad=_0x4ee5bb['document']['selection'],_0x2f251c=Array['from'](_0x4d08ad['getRanges']()),_0x3cb068=_0x4d08ad['isCollapsed']?[this['_createRangeOnEntireWord'](_0x4ee5bb,_0x4d08ad)]:_0x2f251c;_0x4ee5bb['change'](_0x29aa25=>{_0x29aa25['setSelection'](_0x3cb068),this['_removeFormatCommand']['execute']();for(const _0x43e78e in _0x334a2c)for(const _0x2db569 of _0x4ee5bb['schema']['getValidRanges'](_0x3cb068,_0x43e78e))_0x29aa25['setAttribute'](_0x43e78e,_0x334a2c[_0x43e78e],_0x2db569);_0x29aa25['setSelection'](_0x2f251c);});}['_createRangeOnEntireWord'](_0x4f9051,_0x1bd01f){const _0x3d17c4=_0x4f9051['createSelection'](_0x1bd01f);_0x4f9051['modifySelection'](_0x3d17c4,{'unit':'word','direction':'backward'});const _0x4e3026=_0x3d17c4['getFirstPosition']();_0x4f9051['modifySelection'](_0x3d17c4,{'unit':'word','direction':'forward'});const _0x114fac=_0x3d17c4['getLastPosition']();return _0x4f9051['createRange'](_0x4e3026,_0x114fac);}}class RemoveFormatCommandAlias extends Command{['execute'](){const _0x19b043=this['editor']['model'],_0x3d62d2=_0x19b043['schema'];_0x19b043['change'](_0x292124=>{for(const _0x236f1d of this['_getFormattingItems'](_0x19b043['document']['selection'],_0x3d62d2))if(_0x236f1d['is']('selection')){for(const _0x513d97 of this['_getFormattingAttributes'](_0x236f1d,_0x3d62d2))_0x292124['removeSelectionAttribute'](_0x513d97);}else{const _0x3d96b=_0x292124['createRangeOn'](_0x236f1d);for(const _0x31809c of this['_getFormattingAttributes'](_0x236f1d,_0x3d62d2))_0x292124['removeAttribute'](_0x31809c,_0x3d96b);}});}*['_getFormattingItems'](_0x3c6051,_0x37b1a8){const _0x4301fe=_0x319395=>!!first(this['_getFormattingAttributes'](_0x319395,_0x37b1a8));for(const _0x12b3fc of _0x3c6051['getRanges']())for(const _0x2af335 of _0x12b3fc['getItems']())!_0x37b1a8['isBlock'](_0x2af335)&&_0x4301fe(_0x2af335)&&(yield _0x2af335);for(const _0x3af9b8 of _0x3c6051['getSelectedBlocks']())_0x4301fe(_0x3af9b8)&&(yield _0x3af9b8);_0x4301fe(_0x3c6051)&&(yield _0x3c6051);}*['_getFormattingAttributes'](_0x3cc8d5,_0x3f495c){for(const [_0xe34a7]of _0x3cc8d5['getAttributes']()){const _0x39b2e9=_0x3f495c['getAttributeProperties'](_0xe34a7);_0x39b2e9&&_0x39b2e9['isFormatting']&&(yield _0xe34a7);}}}class FormatPainterEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59b2ba=this['editor'];_0x59b2ba['commands']['add'](COPY_FORMAT_COMMAND_NAME,new CopyFormatCommand(_0x59b2ba)),_0x59b2ba['commands']['add'](PASTE_FORMAT_COMMAND_NAME,new PasteFormatCommand(_0x59b2ba)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x102a8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ddc1f;for(const _0x37ed26 in _0x102a8e){const _0x4c09c6=_0x37ed26,_0x1b27a1=_0x102a8e[_0x4c09c6];if('formatPainterLicenseKeyValid'==_0x1b27a1||'formatPainterLicenseKeyInvalid'==_0x1b27a1||'formatPainterLicenseKeyExpired'==_0x1b27a1||'formatPainterLicenseKeyDomainLimit'==_0x1b27a1||'formatPainterLicenseKeyNotAllowed'==_0x1b27a1||'formatPainterLicenseKeyEvaluationLimit'==_0x1b27a1||'formatPainterLicenseKeyUsageLimit'==_0x1b27a1){delete _0x102a8e[_0x4c09c6],_0x1ddc1f=_0x1b27a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x1ddc1f&&_0x102a8e['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getTranslation$b(_0x42764f,_0x9cc762){const t=_0x42764f['t'];switch(_0x9cc762){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.');default:return _0x9cc762;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
DomEmitterMixin(Plugin){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x58fa48=this['editor'];_0x58fa48['editing']['view']['addObserver'](ClickObserver),_0x58fa48['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':getTranslation$b(_0x58fa48['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':getTranslation$b(_0x58fa48['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x58fa48['ui']['componentFactory']['add']('formatPainter',_0x43dc97=>{const _0x1b2986=createDropdown(_0x43dc97,SplitButtonView),_0x2d6a20=_0x58fa48['commands']['get'](COPY_FORMAT_COMMAND_NAME);_0x1b2986['buttonView']['set']({'label':getTranslation$b(_0x58fa48['locale'],'Paint\x20formatting'),'icon':IconPaintRoller,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x1b2986['class']='ck-format-painter-dropdown',_0x2d6a20&&(_0x1b2986['bind']('isEnabled')['to'](_0x2d6a20,'isEnabled'),this['listenTo'](_0x2d6a20,'change:isEnabled',(_0x40b77f,_0x4f2a96,_0x15c894)=>{_0x15c894||this['_finishPainting']();}),_0x1b2986['buttonView']['bind']('isOn')['to'](_0x2d6a20,'value',_0x3c489a=>!!_0x3c489a),this['listenTo'](_0x58fa48,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x2d6a20,'change:value',(_0x334ff5,_0xdc5b82,_0x1b9d73)=>{this['_toggleSpecialCursor'](!!_0x1b9d73);}));const _0x1208c2=new UIModel({'withText':!0x0,'label':getTranslation$b(_0x58fa48['locale'],'Continuous\x20painting'),'tooltip':getTranslation$b(_0x58fa48['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});addListToDropdown(_0x1b2986,new Collection([{'type':'switchbutton','model':_0x1208c2}]),{'role':'menu'});const _0x2875f9=()=>{this['_copyFormatting'](),this['listenTo'](_0x59f9c1['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x1208c2['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x1b2986,'execute',()=>{_0x1208c2['isOn']=!_0x1208c2['isOn'];}),this['listenTo'](_0x1b2986['buttonView'],'execute',()=>{_0x58fa48['editing']['view']['focus'](),_0x1b2986['buttonView']['isOn']?this['_finishPainting']():_0x2875f9();}),_0x58fa48['keystrokes']['set']('Ctrl+Alt+C',(_0x2fe58c,_0x4d081b)=>{_0x2875f9(),_0x1208c2['isOn']=!0x0,_0x4d081b();},{'priority':'high'}),_0x58fa48['keystrokes']['set']('Ctrl+Alt+V',(_0x55932f,_0x3dc071)=>{_0x1b2986['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x1208c2['isOn']||this['_finishPainting'](),_0x3dc071());},{'priority':'high'}),_0x58fa48['keystrokes']['set']('Esc',(_0x76e844,_0x5e8aad)=>{_0x1b2986['buttonView']['isOn']&&(_0x1208c2['isOn']=!0x1,this['_finishPainting'](),_0x5e8aad());}),_0x1b2986;});}['afterInit'](){checkLicense$b(this);}['_toggleSpecialCursor'](_0x33472b){this['editor']['editing']['view']['change'](_0x53f06b=>{for(const _0x3e0405 of this['editor']['editing']['view']['document']['roots'])_0x33472b?_0x53f06b['addClass'](CURSOR_ACTIVE_CSS_CLASS,_0x3e0405):_0x53f06b['removeClass'](CURSOR_ACTIVE_CSS_CLASS,_0x3e0405);});}['_copyFormatting'](){const {editor:_0x1392c2}=this;_0x1392c2['execute'](COPY_FORMAT_COMMAND_NAME),_0x1392c2['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x1392c2['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x3f9e15}=this,_0x3a4a07=_0x3f9e15['commands']['get'](COPY_FORMAT_COMMAND_NAME)['value'];_0x3f9e15['execute'](PASTE_FORMAT_COMMAND_NAME,_0x3a4a07),_0x3f9e15['ui']['ariaLiveAnnouncer']['announce'](getTranslation$b(_0x3f9e15['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](COPY_FORMAT_COMMAND_NAME)['reset'](),this['stopListening'](_0x59f9c1['window']['document'],'mouseup');}}async function checkLicense$b(_0x26ca95){const _0x1056a4=_0x9714d4([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0xf17baf=window[_0x9714d4([0x44,0x61,0x74,0x65])][_0x9714d4([0x6e,0x6f,0x77])](),_0x2d1c83=_0x26ca95[_0x9714d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33766d=new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53a15a=>{_0x2d1c83[_0x9714d4([0x6f,0x6e,0x63,0x65])](_0x9714d4([0x72,0x65,0x61,0x64,0x79]),_0x53a15a);}),_0x221cac={[_0x9714d4([0x6b,0x74,0x79])]:_0x9714d4([0x45,0x43]),[_0x9714d4([0x75,0x73,0x65])]:_0x9714d4([0x73,0x69,0x67]),[_0x9714d4([0x63,0x72,0x76])]:_0x9714d4([0x50,0x2d,0x32,0x35,0x36]),[_0x9714d4([0x78])]:_0x9714d4([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x9714d4([0x79])]:_0x9714d4([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x9714d4([0x61,0x6c,0x67])]:_0x9714d4([0x45,0x53,0x32,0x35,0x36])},_0x3380f6=_0x2d1c83[_0x9714d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9714d4([0x67,0x65,0x74])](_0x9714d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x52c792=await(async function(){let _0x5a27de,_0x449a45=null,_0x84f23=null;try{if(_0x3380f6==_0x9714d4([0x47,0x50,0x4c]))return _0x9714d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a27de=(function(){const _0x4af498=_0x3380f6[_0x9714d4([0x73,0x70,0x6c,0x69,0x74])](_0x9714d4([0x2e]));if(0x3!=_0x4af498[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1e94c8=_0x4af498[0x1];return _0x102161(_0x1e94c8);function _0x102161(_0x5cd204){const _0x475987=_0x503945(_0x5cd204);return _0x475987&&_0x19c90c()?_0x475987:null;function _0x19c90c(){const _0x529172=_0x475987[_0x9714d4([0x6a,0x74,0x69])],_0xdfdd99=window[_0x9714d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x529172[_0x9714d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x529172[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a6bf5={..._0x475987,[_0x9714d4([0x6a,0x74,0x69])]:_0x529172[_0x9714d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x529172[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a6bf5[_0x9714d4([0x76,0x63])],_0x4c8d0c(_0x4a6bf5)==_0xdfdd99;}}}()),!_0x5a27de)return _0x9714d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5a27de[_0x9714d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x84f23=function(_0x1b173d,_0x4dc273){return new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ac9a3=>{if(_0x3b095a())return _0x1ac9a3(_0x9714d4([0x56,0x61,0x6c,0x69,0x64]));_0x256170(),_0x2d1c83[_0x9714d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9714d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21af31=!0x1;const _0xacb067=uid();function _0x25164b(_0x7fe47e){return!!_0x7fe47e&&(typeof _0x7fe47e===_0x9714d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7fe47e===_0x9714d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7fe47e[_0x9714d4([0x74,0x68,0x65,0x6e])]===_0x9714d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7fe47e[_0x9714d4([0x63,0x61,0x74,0x63,0x68])]===_0x9714d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b6cca(_0x2815e3){_0x422384(_0x2815e3)[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x1b8457=>{if(!_0x1b8457||_0x1b8457[_0x9714d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9714d4([0x6f,0x6b]))return _0x9714d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7c0a70(_0x4c8d0c(_0xacb067+_0x4dc273))!=_0x1b8457[_0x9714d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9714d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9714d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x24b777=>(_0x193928(),_0x24b777),()=>{const _0x57a473=_0x272278();return null==_0x57a473?(_0x193928(),_0x9714d4([0x56,0x61,0x6c,0x69,0x64])):_0x9714d4(_0xf17baf-_0x57a473>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x1ac9a3)[_0x9714d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ac9a3(_0x9714d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56befc=0x36ee80;function _0x193928(){const _0x41f966=_0x9714d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x7c0a70(_0x4c8d0c(_0x1b173d)),_0x37c4ef=_0x227f8a(_0x7c0a70(window[_0x9714d4([0x4d,0x61,0x74,0x68])][_0x9714d4([0x63,0x65,0x69,0x6c])](_0xf17baf/_0x56befc)));window[_0x9714d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9714d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41f966,_0x37c4ef);}function _0x272278(){const _0x5309da=_0x9714d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x7c0a70(_0x4c8d0c(_0x1b173d)),_0x25bcda=window[_0x9714d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9714d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5309da);return _0x25bcda?window[_0x9714d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x227f8a(_0x25bcda),0x10)*_0x56befc:null;}function _0x422384(_0x573e2d){return new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c5a8b,_0x20f2ee)=>{_0x573e2d[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x4c5a8b,_0x20f2ee),window[_0x9714d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20f2ee,0x1d4c0);});}}_0x2d1c83[_0x9714d4([0x6f,0x6e])](_0x9714d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49851c,_0x2b0664)=>{if(_0x2b0664[0x0]!=_0x1b173d)return _0x1ac9a3(_0x9714d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b0664[0x1]={..._0x2b0664[0x1],[_0x9714d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xacb067};},{[_0x9714d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9714d4([0x68,0x69,0x67,0x68])}),_0x2d1c83[_0x9714d4([0x6f,0x6e])](_0x9714d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b6f0c=>{_0x25164b(_0x2b6f0c[_0x9714d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21af31=!0x0,_0x5b6cca(_0x2b6f0c[_0x9714d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9714d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9714d4([0x6c,0x6f,0x77])}),_0x33766d[_0x9714d4([0x74,0x68,0x65,0x6e])](()=>{_0x21af31||_0x1ac9a3(_0x9714d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b095a(){return _0x2d1c83[_0x9714d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9714d4([0x76,0x69,0x65,0x77])][_0x9714d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9714d4([0x61,0x75,0x74,0x6f]);}function _0x256170(){_0x2d1c83[_0x9714d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9714d4([0x76,0x69,0x65,0x77])][_0x9714d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9714d4([0x61,0x75,0x74,0x6f]);}}(_0x5a27de[_0x9714d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a27de[_0x9714d4([0x6a,0x74,0x69])]));const _0x1807bb=await(async function(){let _0x318ec0=!0x0;try{const _0x15d8bb=_0x3380f6[_0x9714d4([0x73,0x70,0x6c,0x69,0x74])](_0x9714d4([0x2e])),[_0x5bc24e,_0x48820f,_0x119e51]=_0x15d8bb;return _0x283334(_0x5bc24e),await _0x6d429d(_0x5bc24e,_0x48820f,_0x119e51),_0x318ec0;}catch{return!0x1;}function _0x283334(_0x2dec68){const _0x43b1e3=_0x503945(_0x2dec68);_0x43b1e3&&_0x43b1e3[_0x9714d4([0x61,0x6c,0x67])]==_0x9714d4([0x45,0x53,0x32,0x35,0x36])||(_0x318ec0=!0x1);}async function _0x6d429d(_0x1636a9,_0x3cea8a,_0x5668c2){const _0x111dba=window[_0x9714d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9714d4([0x66,0x72,0x6f,0x6d])](_0x22eaf7(_0x5668c2),_0x370037=>_0x370037[_0x9714d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f442f=new window[(_0x9714d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9714d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1636a9+_0x9714d4([0x2e])+_0x3cea8a),_0x49e847=window[_0x9714d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9714d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49e847)return;const _0x18aff4=await _0x49e847[_0x9714d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9714d4([0x6a,0x77,0x6b]),_0x221cac,{[_0x9714d4([0x6e,0x61,0x6d,0x65])]:_0x9714d4([0x45,0x43,0x44,0x53,0x41]),[_0x9714d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9714d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9714d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49e847[_0x9714d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9714d4([0x6e,0x61,0x6d,0x65])]:_0x9714d4([0x45,0x43,0x44,0x53,0x41]),[_0x9714d4([0x68,0x61,0x73,0x68])]:{[_0x9714d4([0x6e,0x61,0x6d,0x65])]:_0x9714d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18aff4,_0x111dba,_0x3f442f)||(_0x318ec0=!0x1);}}());return _0x1807bb?(function(){const _0x5df088=_0x5a27de[_0x9714d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5df088)return!0x1;if(_0x5df088[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9714d4([0x2a])))return!0x0;if(_0x5df088[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9714d4([0x46,0x50])))return!0x0;if(_0x5df088[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9714d4([0x50,0x50])))return!0x0;if(_0x5df088[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9714d4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x9714d4([0x67,0x6c,0x6f,0x62])]&&window[_0x9714d4([0x67,0x6c,0x6f,0x62])][_0x9714d4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x36a3f5=[_0x9714d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9714d4([0x74,0x72,0x69,0x61,0x6c])][_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a27de[_0x9714d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf17baf/0x3e8:0x69e02680;return _0x5a27de[_0x9714d4([0x65,0x78,0x70])]<_0x36a3f5;}())?_0x9714d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x31898a=_0x5a27de[_0x9714d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31898a||0x0==_0x31898a[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x315b6b}=new URL(window[_0x9714d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31898a[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x315b6b))return!0x0;const _0x44ff9a=_0x315b6b[_0x9714d4([0x73,0x70,0x6c,0x69,0x74])](_0x9714d4([0x2e]));return _0x31898a[_0x9714d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d2e82=>_0x5d2e82[_0x9714d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9714d4([0x2a])))[_0x9714d4([0x6d,0x61,0x70])](_0x17bcb1=>_0x17bcb1[_0x9714d4([0x73,0x70,0x6c,0x69,0x74])](_0x9714d4([0x2e])))[_0x9714d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3098c0=>_0x3098c0[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44ff9a[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9714d4([0x6d,0x61,0x70])](_0x11eba7=>Array(_0x44ff9a[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11eba7[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9714d4([0x66,0x69,0x6c,0x6c])](_0x11eba7[0x0]===_0x9714d4([0x2a])?_0x9714d4([0x2a]):'')[_0x9714d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11eba7))[_0x9714d4([0x73,0x6f,0x6d,0x65])](_0x502a3c=>_0x44ff9a[_0x9714d4([0x65,0x76,0x65,0x72,0x79])]((_0x306d7c,_0x2ab037)=>_0x502a3c[_0x2ab037]===_0x306d7c||_0x502a3c[_0x2ab037]===_0x9714d4([0x2a])));}())?(_0x5a27de[_0x9714d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9714d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449a45=function(_0x56fac1){const _0x53fcdb=new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1630c6=>setTimeout(_0x1630c6,0x93ecc)),_0x419d8f=_0x33766d[_0x9714d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3ace=>{let _0x12e0eb=0x0;_0x2d1c83[_0x9714d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x9714d4([0x6f,0x6e])](_0x9714d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32c327,_0x433793)=>{_0x433793[0x0][_0x9714d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12e0eb++,0x5e8==_0x12e0eb&&(_0x3b3ace(),_0x32c327[_0x9714d4([0x6f,0x66,0x66])]());});})),_0x383ecd=[_0x53fcdb,_0x419d8f];return window[_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9714d4([0x72,0x61,0x63,0x65])](_0x383ecd)[_0x9714d4([0x74,0x68,0x65,0x6e])](()=>_0x56fac1);}(_0x9714d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x449a45&&_0x84f23)return new window[(_0x9714d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28c59c,_0x216ddf)=>{_0x449a45[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x28c59c,_0x216ddf),_0x84f23[_0x9714d4([0x74,0x68,0x65,0x6e])](_0x155bf3=>{_0x155bf3!=_0x9714d4([0x56,0x61,0x6c,0x69,0x64])&&_0x28c59c(_0x155bf3);},_0x216ddf);});return _0x449a45||_0x84f23||_0x9714d4([0x56,0x61,0x6c,0x69,0x64]);}())):_0x9714d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9714d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9714d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9714d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x503945(_0x7f4916){return _0x7f4916[_0x9714d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9714d4([0x65,0x79]))?JSON[_0x9714d4([0x70,0x61,0x72,0x73,0x65])](_0x22eaf7(_0x7f4916)):null;}function _0x22eaf7(_0x4d2e2f){return window[_0x9714d4([0x61,0x74,0x6f,0x62])](_0x4d2e2f[_0x9714d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9714d4([0x2b]))[_0x9714d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9714d4([0x2f])));}function _0x4c8d0c(_0x1803fe){let _0x1929a3=0x1505;function _0x2d2fdc(_0x3aad75){for(let _0x12af27=0x0;_0x12af27<_0x3aad75[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12af27++){const _0x21248b=_0x3aad75[_0x9714d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12af27);_0x1929a3=(_0x1929a3<<0x5)+_0x1929a3+_0x21248b,_0x1929a3&=_0x1929a3;}}return function _0x4c1bed(_0x425364){Array[_0x9714d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x425364)?_0x425364[_0x9714d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c1bed):_0x425364&&typeof _0x425364==_0x9714d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9714d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x425364)[_0x9714d4([0x73,0x6f,0x72,0x74])]()[_0x9714d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c1a6e,_0x1542ff])=>{_0x2d2fdc(_0x3c1a6e),_0x4c1bed(_0x1542ff);}):_0x2d2fdc(window[_0x9714d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x425364));}(_0x1803fe),_0x1929a3>>>0x0;}function _0x7c0a70(_0x1aa1d0){return _0x1aa1d0[_0x9714d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9714d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9714d4([0x30]));}function _0x227f8a(_0x5930b6){return _0x5930b6[_0x9714d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9714d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9714d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d3a3e(){}function _0x9714d4(_0xe34f7f){return _0xe34f7f['map'](_0x4c9a10=>String['fromCharCode'](_0x4c9a10))['join']('');}!function(_0x1bb6a0){const _0x2a9d73=(function(){const _0x2a7a52=window[_0x9714d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9714d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9714d4([0x6e,0x6f,0x77])]())[_0x9714d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9714d4([0x2e]),'');let _0x74539f=_0x9714d4([0x51]);for(let _0x2d262b=0x0;_0x2d262b<_0x2a7a52[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d262b+=0x2){let _0x2474d3=window[_0x9714d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a7a52[_0x9714d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d262b,_0x2d262b+0x2));_0x2474d3>=_0x1056a4[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2474d3-=_0x1056a4[_0x9714d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x74539f+=_0x1056a4[_0x2474d3];}return _0x74539f;}());_0x2d1c83[_0x2a9d73]=_0x9714d4([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bb6a0,_0x1bb6a0!=_0x9714d4([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x33766d,_0x2d1c83[_0x9714d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x9714d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d3a3e,_0x2d1c83[_0x9714d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x9714d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d3a3e,_0x2d1c83[_0x9714d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9714d4([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x52c792);}class FormatPainter extends Plugin{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$a(_0x556e05,_0x5bb108){const t=_0x556e05['t'];switch(_0x5bb108){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 _0x5bb108;}}class ImportWordUI extends Plugin{static get['pluginName'](){return'ImportWordUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f1a43=this['editor'];_0x1f1a43['ui']['componentFactory']['add']('importWord',()=>{const _0x4fa822=this['_createButton'](FileDialogButtonView),_0x456f63=_0x1f1a43['commands']['get']('importWord');return _0x4fa822['bind']('isOn')['to'](_0x456f63,'isBusy'),_0x4fa822['tooltip']=!0x0,_0x4fa822;}),_0x1f1a43['ui']['componentFactory']['add']('menuBar:importWord',()=>this['_createButton'](MenuBarMenuListItemFileDialogButtonView));}['_createButton'](_0x42d5bc){const _0x46c282=this['editor'],_0x1aa724=_0x46c282['commands']['get']('importWord'),_0x351f50=new _0x42d5bc(_0x46c282['locale']),_0x214ff3=new SpinnerView();return _0x351f50['set']({'acceptedType':'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template'}),_0x351f50['set']({'icon':IconImportWord}),_0x351f50['bind']('isEnabled')['to'](_0x1aa724),_0x351f50['bind']('label')['to'](_0x1aa724,'isBusy',_0x407e32=>getTranslation$a(_0x46c282['locale'],_0x407e32?'Importing\x20Word\x20document':'Import\x20from\x20Word')),_0x214ff3['bind']('isVisible')['to'](_0x1aa724,'isBusy'),_0x351f50['iconView']['bind']('isVisible')['to'](_0x1aa724,'isBusy',_0x5f5dba=>!_0x5f5dba),_0x351f50['children']['add'](_0x214ff3),_0x351f50['on']('done',(_0x584665,_0x44f901)=>{_0x46c282['execute']('importWord',_0x44f901[0x0],{}),_0x46c282['editing']['view']['focus']();}),_0x351f50;}}class ImportWordCommand extends Command{['_importMarker'];['_undoStepBatch'];['_abortController'];constructor(_0x403ff0){super(_0x403ff0),this['set']('isBusy',!0x1),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['on']('dataInsert',(_0x2b3a85,_0x5d5e63)=>{const _0x25729e=new DataTransfer();_0x25729e['setData']('text/html',_0x5d5e63['html']);const _0x161cd0=this['_importMarker']['getRange']();this['editor']['model']['enqueueChange'](this['_undoStepBatch'],_0xffe005=>{this['_importMarker']['stopListening'](),_0xffe005['setSelection'](_0x161cd0),_0x403ff0['editing']['view']['document']['fire']('clipboardInput',{'dataTransfer':_0x25729e});});},{'priority':'low'});}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x281205,_0x3464ac={}){if(this['isBusy'])return Promise['resolve']();const _0x3d7604=this['editor']['config']['get']('importWord');if(this['editor']['plugins']['has']('MergeFields')){const {prefix:_0x4a9fb4,suffix:_0x5a9568}=this['editor']['config']['get']('mergeFields');_0x3464ac['merge_fields']={'prefix':_0x4a9fb4,'suffix':_0x5a9568};}const _0x59e2e4={'url':_0x3d7604['converterUrl'],'file':_0x281205,'serviceConfig':{..._0x3464ac,'formatting':_0x3d7604['formatting'],'timezone':new Intl['DateTimeFormat']()['resolvedOptions']()['timeZone']}};return this['_prepareForImport'](),this['_sendImportRequest'](_0x59e2e4)['then'](this['_handleImportResponse']['bind'](this))['catch'](this['_handleImportFailure']['bind'](this))['finally'](this['_cleanUpAfterImport']['bind'](this));}['_checkEnabled'](){if(this['isBusy'])return!0x1;const _0x4a7d2e=this['editor']['model'],_0x3ddb78=_0x4a7d2e['schema'],_0x1fd934=_0x4a7d2e['document']['selection'],_0x30424c=first(_0x1fd934['getSelectedBlocks']());return!!_0x30424c&&_0x3ddb78['checkChild'](_0x30424c['parent'],'paragraph');}['_prepareForImport'](){const _0x3ed8be=this['editor'],_0xa26f25=_0x3ed8be['model'],_0x3cb403=_0xa26f25['document']['selection'];this['_abortController']=new AbortController(),this['_undoStepBatch']=_0x3ed8be['model']['createBatch']({'isUndoable':!0x0}),_0xa26f25['enqueueChange'](this['_undoStepBatch'],_0x2e3f93=>{_0x3cb403['isCollapsed']||_0xa26f25['deleteContent'](_0x3cb403,{'leaveUnmerged':!0x0});const _0x4b2d74=_0x3cb403['getFirstPosition'](),_0x18664b=first(_0x3cb403['getSelectedBlocks']());let _0x5f4f9f;_0x5f4f9f=_0x18664b['is']('element','paragraph')&&_0x18664b['isEmpty']?_0x4b2d74:_0x4b2d74['isAtStart']?_0xa26f25['createPositionBefore'](_0x18664b):_0x4b2d74['isAtEnd']?_0xa26f25['createPositionAfter'](_0x18664b):_0x2e3f93['split'](_0x4b2d74)['position'],this['_importMarker']=_0x2e3f93['addMarker']('importWord:'+uid(),{'usingOperation':!0x1,'affectsData':!0x1,'range':new ModelRange(_0x5f4f9f)}),this['_importMarker']['on']('change:range',()=>{'$graveyard'===this['_importMarker']['getRange']()['root']['rootName']&&this['_abortController']['abort']();});}),this['isBusy']=!0x0,this['refresh']();}['_cleanUpAfterImport'](){const _0x46bda1=this['editor']['model'];_0x46bda1['markers']['has'](this['_importMarker'])&&_0x46bda1['enqueueChange'](this['_undoStepBatch'],_0x8a3eb0=>{_0x8a3eb0['removeMarker'](this['_importMarker']);}),this['_importMarker']=null,this['_undoStepBatch']=null,this['_abortController']=null,this['isBusy']=!0x1,this['refresh']();}['_sendImportRequest']({url:_0x2a5500,file:_0x119c15,serviceConfig:_0x5ad1b4}){const _0x359501=this['editor']['plugins']['get']('ImportWordEditing')['getToken'](),_0x119584=new FormData();_0x119584['set']('config',JSON['stringify'](_0x5ad1b4)),_0x119584['set']('file',_0x119c15);const _0x188d41={'method':'POST','headers':{},'body':_0x119584,'signal':this['_abortController']['signal']};return _0x359501&&(_0x188d41['headers']['Authorization']=_0x359501['value']),fetch(_0x2a5500,_0x188d41);}['_handleImportResponse'](_0x20e2b6){return _0x20e2b6['ok']?_0x20e2b6['json']()['then'](_0x645ac1=>{if(!this['editor']['model']['markers']['has'](this['_importMarker']))return;'$graveyard'!==this['_importMarker']['getRange']()['root']['rootName']&&this['fire']('dataInsert',{..._0x645ac1,'undoStepBatch':this['_undoStepBatch']});}):Promise['reject']();}['_handleImportFailure'](){if(this['_abortController']['signal']['aborted'])return void logWarning('import-word-plugin-import-cancelled');const _0x1df782=this['editor'],_0x56472a=getTranslation$a(_0x1df782['locale'],'An\x20error\x20occurred\x20while\x20importing\x20the\x20Word\x20file.');_0x1df782['plugins']['get']('Notification')['showWarning'](_0x56472a),logError('import-word-plugin-conversion-failed');}}class ImportWordEditing extends Plugin{['_token'];static get['pluginName'](){return'ImportWordEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[Notification,ClipboardPipeline,'CloudServices'];}constructor(_0x23cdae){super(_0x23cdae),this['_token']=null;}async['init'](){const _0x175976=this['editor'];_0x175976['config']['define']('importWord',{'converterUrl':'https://docx-converter.cke-cs.com/v2/convert/docx-html','tokenUrl':(_0x175976['config']['get']('cloudServices')||{})['tokenUrl'],'formatting':{'resets':'none','defaults':'none','styles':'inline'}}),_0x175976['commands']['add']('importWord',new ImportWordCommand(_0x175976));const {tokenUrl:_0x1b03de}=_0x175976['config']['get']('importWord');if(_0x1b03de){const {tokenUrl:_0x4ae9e7}=_0x175976['config']['get']('cloudServices')||{};this['_token']=_0x1b03de===_0x4ae9e7?_0x175976['plugins']['get']('CloudServices')['token']:await _0x175976['plugins']['get']('CloudServices')['registerTokenUrl'](_0x1b03de);}}['getToken'](){return this['_token'];}}class ImportWord extends Plugin{static get['pluginName'](){return'ImportWord';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ImportWordEditing,ImportWordUI];}}class LineHeightCommand extends Command{['refresh'](){const _0x859382=this['editor']['model']['document'],_0x2af6d4=first(_0x859382['selection']['getSelectedBlocks']());this['isEnabled']=Boolean(_0x2af6d4)&&this['_canHaveLineHeight'](_0x2af6d4),this['value']=this['isEnabled']&&_0x2af6d4['getAttribute']('lineHeight');}['execute'](_0x1a7d3c={}){const _0x2fde03=this['editor']['model'],_0x217a8a=_0x2fde03['document']['selection'],_0x43bc10=_0x1a7d3c['value'];_0x2fde03['change'](_0x238bef=>{const _0x3f8e2d=Array['from'](_0x217a8a['getSelectedBlocks']())['filter'](_0xfd38c5=>this['_canHaveLineHeight'](_0xfd38c5));for(const _0x58dd1f of _0x3f8e2d)_0x43bc10?_0x238bef['setAttribute']('lineHeight',_0x43bc10,_0x58dd1f):_0x238bef['removeAttribute']('lineHeight',_0x58dd1f);});}['_canHaveLineHeight'](_0x15d596){return this['editor']['model']['schema']['checkAttribute'](_0x15d596,'lineHeight');}}const namedPresets={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 isLineHeightDefaultValue(_0x3314d4){return'string'==typeof _0x3314d4&&'default'===_0x3314d4['toLowerCase']();}function normalizeOptions(_0x1f2a14){return _0x1f2a14['options']['map'](_0x27b8f8=>isLineHeightDefaultValue(_0x27b8f8)?{'title':String(_0x1f2a14['defaultValue']),'model':'default'}:('number'==typeof _0x27b8f8&&(_0x27b8f8=String(_0x27b8f8)),'string'!=typeof _0x27b8f8?_0x27b8f8:parseFloat(_0x27b8f8)?{'title':_0x27b8f8,'model':_0x27b8f8,'view':{'name':'span','styles':{'line-height':_0x27b8f8}}}:findPreset(_0x27b8f8)))['filter'](_0x1c558c=>void 0x0!==_0x1c558c);}function findPreset(_0x361ba3){return'string'==typeof _0x361ba3?namedPresets[_0x361ba3]:namedPresets[_0x361ba3['model']];}function buildDefinition(_0x247ff0,_0x3eb369){const _0x5dfc04={'model':{'key':_0x247ff0,'values':[]},'view':{}};for(const _0x4c8ede of _0x3eb369)'class'===_0x4c8ede['view']?.['key']?(_0x5dfc04['model']['values']['push'](_0x4c8ede['model']),_0x5dfc04['view'][_0x4c8ede['model']]={'key':'class','value':_0x4c8ede['view']['value']}):(_0x5dfc04['model']['values']['push'](_0x4c8ede['model']),_0x5dfc04['view'][_0x4c8ede['model']]={'key':'style','value':'line-height:'+_0x4c8ede['model']+';'});return _0x5dfc04;}class LineHeightTodoListIntegration extends Plugin{static get['pluginName'](){return'LineHeightTodoListIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {plugins:_0x90fb5a,conversion:_0x149586}=this['editor'];if(!_0x90fb5a['has']('ListEditing')||!_0x90fb5a['has']('TodoListEditing'))return;_0x90fb5a['get']('ListEditing')['registerDowncastStrategy']({'scope':'item','attributeName':'lineHeight','consume':!0x1,'setAttributeOnDowncast'(_0x27c192,_0xd828a3,_0x4fe701,_0x4a24e1,_0x3ce817){'todo'==_0x3ce817['getAttribute']('listType')&&_0xd828a3&&(_0x27c192['addClass']('ck-list-marker-line-height',_0x4fe701),_0x27c192['setStyle']('--ck-content-list-marker-line-height',_0xd828a3,_0x4fe701));}}),_0x149586['for']('upcast')['elementToElement']({'view':{'name':'span','classes':'todo-list__label__description'},'model':'paragraph','converterPriority':'high'}),_0x149586['for']('upcast')['add'](_0x1e1610=>{_0x1e1610['on']('element:li',attributeUpcastConsumingConverter({'name':'li','classes':'ck-list-marker-line-height','styles':{'--ck-content-list-marker-line-height':/.*/}}));});}}function attributeUpcastConsumingConverter(_0x5726cb){const _0x322647=new Matcher(_0x5726cb);return(_0x27d7ac,_0x217bbd,_0x4c8bfc)=>{const _0x4871c9=_0x322647['match'](_0x217bbd['viewItem']);if(!_0x4871c9)return;const _0xda05dd=_0x4871c9['match'];_0xda05dd['name']=!0x1,_0x4c8bfc['consumable']['consume'](_0x217bbd['viewItem'],_0xda05dd);};}class LineHeightEditing extends Plugin{static get['pluginName'](){return'LineHeightEditing';}static get['requires'](){return[LineHeightTodoListIntegration];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x156e9f){super(_0x156e9f),_0x156e9f['config']['define']('lineHeight',{'defaultValue':1.5,'supportAllValues':!0x1,'options':[0x1,1.15,'default',0x2,2.5,0x3]});}['init'](){const _0x4634af=this['editor'];this['_validateConfig'](),_0x4634af['model']['schema']['extend']('$block',{'allowAttributes':'lineHeight'}),_0x4634af['model']['schema']['setAttributeProperties']('lineHeight',{'isFormatting':!0x0}),_0x4634af['commands']['add']('lineHeight',new LineHeightCommand(_0x4634af)),this['editor']['config']['get']('lineHeight.supportAllValues')?this['_prepareAnyValueConverters']():this['_preparePredefinedConverters']();}['afterInit'](){checkLicense$a(this);}['_validateConfig'](){const _0x37f23e=this['editor'];if(!_0x37f23e['config']['get']('lineHeight.supportAllValues'))return;const _0x150740=_0x37f23e['config']['get']('lineHeight.options')['filter'](_0x4e03ac=>'string'==typeof _0x4e03ac&&(!isLineHeightDefaultValue(_0x4e03ac)&&isNaN(Number(_0x4e03ac))));if(_0x150740['length'])throw new CKEditorError('line-height-invalid-use-of-named-presets',null,{'namedPresets':_0x150740});}['_prepareAnyValueConverters'](){const _0x2e2c48=this['editor'],_0x5427da=this['editor']['config']['get']('lineHeight.defaultValue');_0x2e2c48['conversion']['for']('downcast')['attributeToAttribute']({'model':{'key':'lineHeight'},'view':_0x1a985c=>String(_0x1a985c)===String(_0x5427da)?null:{'key':'style','value':{'line-height':_0x1a985c}}}),_0x2e2c48['conversion']['for']('upcast')['attributeToAttribute']({'model':{'key':'lineHeight','value':_0x3df722=>{let _0x46c9a6=_0x3df722['getStyle']('line-height');return isPercentageStyleValue(_0x46c9a6)&&(_0x46c9a6=String(Number(_0x46c9a6['slice'](0x0,-0x1))/0x64)),String(_0x46c9a6)===String(_0x5427da)?null:_0x46c9a6;}},'view':{'styles':{'line-height':/.*/}}});}['_preparePredefinedConverters'](){const _0x4544a8=this['editor'],_0x5f2c18=this['editor']['config']['get']('lineHeight.defaultValue'),_0x372c3e=buildDefinition('lineHeight',normalizeOptions(this['editor']['config']['get']('lineHeight'))['filter'](_0x5d2628=>_0x5d2628['model']));_0x4544a8['conversion']['attributeToAttribute'](_0x372c3e),_0x4544a8['conversion']['for']('upcast')['attributeToAttribute']({'view':{'styles':{'line-height':/[\s\S]+/}},'model':{'key':'lineHeight','value':_0x2b90cf=>{let _0xad60bd=_0x2b90cf['getStyle']('line-height');return isPercentageStyleValue(_0xad60bd)&&(_0xad60bd=String(Number(_0xad60bd['slice'](0x0,-0x1))/0x64)),_0xad60bd===String(_0x5f2c18)?null:_0x372c3e['model']['values']['includes'](_0xad60bd)?_0xad60bd:null;}}});}}async function checkLicense$a(_0x1e4a93){const _0x53b5b6=_0x1e72e7([0x50,0x48,0x51,0x33,0x59,0x55,0x49,0x42,0x72,0x6c,0x30,0x58,0x64,0x6e,0x77,0x47,0x39,0x6b,0x65,0x7a,0x38,0x73,0x66,0x70,0x4d,0x76,0x31,0x79,0x74,0x57,0x46,0x52,0x4e,0x5a,0x4f,0x56,0x35,0x6a,0x4a,0x61,0x71,0x37,0x54,0x63,0x32,0x6f,0x67,0x75,0x62,0x36,0x34,0x78,0x43,0x4b,0x44,0x45,0x41,0x4c,0x53,0x69,0x68,0x6d]),_0x5db1b0=window[_0x1e72e7([0x44,0x61,0x74,0x65])][_0x1e72e7([0x6e,0x6f,0x77])](),_0x55a352=_0x1e4a93[_0x1e72e7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x99cc7d=new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c178=>{_0x55a352[_0x1e72e7([0x6f,0x6e,0x63,0x65])](_0x1e72e7([0x72,0x65,0x61,0x64,0x79]),_0x47c178);}),_0x1dba92={[_0x1e72e7([0x6b,0x74,0x79])]:_0x1e72e7([0x45,0x43]),[_0x1e72e7([0x75,0x73,0x65])]:_0x1e72e7([0x73,0x69,0x67]),[_0x1e72e7([0x63,0x72,0x76])]:_0x1e72e7([0x50,0x2d,0x32,0x35,0x36]),[_0x1e72e7([0x78])]:_0x1e72e7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1e72e7([0x79])]:_0x1e72e7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1e72e7([0x61,0x6c,0x67])]:_0x1e72e7([0x45,0x53,0x32,0x35,0x36])},_0x4f883f=_0x55a352[_0x1e72e7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e72e7([0x67,0x65,0x74])](_0x1e72e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x598b27=await(async function(){let _0x352dc8,_0xe7d9cb=null,_0x415946=null;try{if(_0x4f883f==_0x1e72e7([0x47,0x50,0x4c]))return _0x1e72e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x352dc8=(function(){const _0x579d36=_0x4f883f[_0x1e72e7([0x73,0x70,0x6c,0x69,0x74])](_0x1e72e7([0x2e]));if(0x3!=_0x579d36[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2e74bb=_0x579d36[0x1];return _0xff41d0(_0x2e74bb);function _0xff41d0(_0x208bbc){const _0x3833e9=_0x581c48(_0x208bbc);return _0x3833e9&&_0x4da53e()?_0x3833e9:null;function _0x4da53e(){const _0x37a1c2=_0x3833e9[_0x1e72e7([0x6a,0x74,0x69])],_0x365756=window[_0x1e72e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a1c2[_0x1e72e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37a1c2[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57287a={..._0x3833e9,[_0x1e72e7([0x6a,0x74,0x69])]:_0x37a1c2[_0x1e72e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37a1c2[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57287a[_0x1e72e7([0x76,0x63])],_0x199ad9(_0x57287a)==_0x365756;}}}()),!_0x352dc8)return _0x1e72e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x352dc8[_0x1e72e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x415946=function(_0x35f788,_0x5aa74d){return new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57538f=>{if(_0xf64ec8())return _0x57538f(_0x1e72e7([0x56,0x61,0x6c,0x69,0x64]));_0x5bd1fe(),_0x55a352[_0x1e72e7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e72e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c016b=!0x1;const _0x1df466=uid();function _0x14175c(_0x5104ba){return!!_0x5104ba&&(typeof _0x5104ba===_0x1e72e7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5104ba===_0x1e72e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5104ba[_0x1e72e7([0x74,0x68,0x65,0x6e])]===_0x1e72e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5104ba[_0x1e72e7([0x63,0x61,0x74,0x63,0x68])]===_0x1e72e7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x227651(_0x1fef15){_0x3a9553(_0x1fef15)[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x31fcf4=>{if(!_0x31fcf4||_0x31fcf4[_0x1e72e7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e72e7([0x6f,0x6b]))return _0x1e72e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d50ca(_0x199ad9(_0x1df466+_0x5aa74d))!=_0x31fcf4[_0x1e72e7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e72e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e72e7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x213f09=>(_0x206010(),_0x213f09),()=>{const _0x31d96c=_0x819566();return null==_0x31d96c?(_0x206010(),_0x1e72e7([0x56,0x61,0x6c,0x69,0x64])):_0x1e72e7(_0x5db1b0-_0x31d96c>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x57538f)[_0x1e72e7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57538f(_0x1e72e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x331264=0x36ee80;function _0x206010(){const _0x20f61b=_0x1e72e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d50ca(_0x199ad9(_0x35f788)),_0x4ae5b5=_0x37954d(_0x1d50ca(window[_0x1e72e7([0x4d,0x61,0x74,0x68])][_0x1e72e7([0x63,0x65,0x69,0x6c])](_0x5db1b0/_0x331264)));window[_0x1e72e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e72e7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20f61b,_0x4ae5b5);}function _0x819566(){const _0x1b33b2=_0x1e72e7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d50ca(_0x199ad9(_0x35f788)),_0x1f002c=window[_0x1e72e7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e72e7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b33b2);return _0x1f002c?window[_0x1e72e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37954d(_0x1f002c),0x10)*_0x331264:null;}function _0x3a9553(_0x5e9068){return new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fc62e,_0x389495)=>{_0x5e9068[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x4fc62e,_0x389495),window[_0x1e72e7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x389495,0x1d4c0);});}}_0x55a352[_0x1e72e7([0x6f,0x6e])](_0x1e72e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52a8dc,_0x4e2782)=>{if(_0x4e2782[0x0]!=_0x35f788)return _0x57538f(_0x1e72e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e2782[0x1]={..._0x4e2782[0x1],[_0x1e72e7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1df466};},{[_0x1e72e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e72e7([0x68,0x69,0x67,0x68])}),_0x55a352[_0x1e72e7([0x6f,0x6e])](_0x1e72e7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2751bd=>{_0x14175c(_0x2751bd[_0x1e72e7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c016b=!0x0,_0x227651(_0x2751bd[_0x1e72e7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e72e7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e72e7([0x6c,0x6f,0x77])}),_0x99cc7d[_0x1e72e7([0x74,0x68,0x65,0x6e])](()=>{_0x2c016b||_0x57538f(_0x1e72e7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xf64ec8(){return _0x55a352[_0x1e72e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e72e7([0x76,0x69,0x65,0x77])][_0x1e72e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e72e7([0x61,0x75,0x74,0x6f]);}function _0x5bd1fe(){_0x55a352[_0x1e72e7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e72e7([0x76,0x69,0x65,0x77])][_0x1e72e7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e72e7([0x61,0x75,0x74,0x6f]);}}(_0x352dc8[_0x1e72e7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x352dc8[_0x1e72e7([0x6a,0x74,0x69])]));const _0x39547d=await(async function(){let _0x3c9894=!0x0;try{const _0x1fb1f2=_0x4f883f[_0x1e72e7([0x73,0x70,0x6c,0x69,0x74])](_0x1e72e7([0x2e])),[_0x498b2f,_0x15ff32,_0x2fb083]=_0x1fb1f2;return _0x325fb2(_0x498b2f),await _0x2fafb5(_0x498b2f,_0x15ff32,_0x2fb083),_0x3c9894;}catch{return!0x1;}function _0x325fb2(_0x1b25d8){const _0x56eec4=_0x581c48(_0x1b25d8);_0x56eec4&&_0x56eec4[_0x1e72e7([0x61,0x6c,0x67])]==_0x1e72e7([0x45,0x53,0x32,0x35,0x36])||(_0x3c9894=!0x1);}async function _0x2fafb5(_0x7491a3,_0x4218b4,_0x41c03d){const _0xf58ad4=window[_0x1e72e7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e72e7([0x66,0x72,0x6f,0x6d])](_0x35aceb(_0x41c03d),_0x3df0c8=>_0x3df0c8[_0x1e72e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4922f3=new window[(_0x1e72e7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e72e7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x7491a3+_0x1e72e7([0x2e])+_0x4218b4),_0x38bb4d=window[_0x1e72e7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e72e7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38bb4d)return;const _0x32c421=await _0x38bb4d[_0x1e72e7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e72e7([0x6a,0x77,0x6b]),_0x1dba92,{[_0x1e72e7([0x6e,0x61,0x6d,0x65])]:_0x1e72e7([0x45,0x43,0x44,0x53,0x41]),[_0x1e72e7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e72e7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e72e7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38bb4d[_0x1e72e7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e72e7([0x6e,0x61,0x6d,0x65])]:_0x1e72e7([0x45,0x43,0x44,0x53,0x41]),[_0x1e72e7([0x68,0x61,0x73,0x68])]:{[_0x1e72e7([0x6e,0x61,0x6d,0x65])]:_0x1e72e7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32c421,_0xf58ad4,_0x4922f3)||(_0x3c9894=!0x1);}}());return _0x39547d?(function(){const _0x2362a2=_0x352dc8[_0x1e72e7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2362a2)return!0x1;if(_0x2362a2[_0x1e72e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e72e7([0x2a])))return!0x0;if(_0x2362a2[_0x1e72e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e72e7([0x4c,0x48])))return!0x0;return!0x1;}())?(function(){const _0x3252f4=[_0x1e72e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e72e7([0x74,0x72,0x69,0x61,0x6c])][_0x1e72e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352dc8[_0x1e72e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5db1b0/0x3e8:0x69e02680;return _0x352dc8[_0x1e72e7([0x65,0x78,0x70])]<_0x3252f4;}())?_0x1e72e7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x362a6c=_0x352dc8[_0x1e72e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x362a6c||0x0==_0x362a6c[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413e2f}=new URL(window[_0x1e72e7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x362a6c[_0x1e72e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413e2f))return!0x0;const _0x1ba3f5=_0x413e2f[_0x1e72e7([0x73,0x70,0x6c,0x69,0x74])](_0x1e72e7([0x2e]));return _0x362a6c[_0x1e72e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49e67d=>_0x49e67d[_0x1e72e7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e72e7([0x2a])))[_0x1e72e7([0x6d,0x61,0x70])](_0x51430c=>_0x51430c[_0x1e72e7([0x73,0x70,0x6c,0x69,0x74])](_0x1e72e7([0x2e])))[_0x1e72e7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3e92=>_0x1c3e92[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ba3f5[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e72e7([0x6d,0x61,0x70])](_0x3f4f52=>Array(_0x1ba3f5[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f4f52[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e72e7([0x66,0x69,0x6c,0x6c])](_0x3f4f52[0x0]===_0x1e72e7([0x2a])?_0x1e72e7([0x2a]):'')[_0x1e72e7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f4f52))[_0x1e72e7([0x73,0x6f,0x6d,0x65])](_0x5cc4cf=>_0x1ba3f5[_0x1e72e7([0x65,0x76,0x65,0x72,0x79])]((_0x42f8fc,_0xfa5500)=>_0x5cc4cf[_0xfa5500]===_0x42f8fc||_0x5cc4cf[_0xfa5500]===_0x1e72e7([0x2a])));}())?(_0x352dc8[_0x1e72e7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e72e7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7d9cb=function(_0xa6a329){const _0x4fbe60=new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x328536=>setTimeout(_0x328536,0x93ecc)),_0x15f5f4=_0x99cc7d[_0x1e72e7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13777e=>{let _0x228800=0x0;_0x55a352[_0x1e72e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e72e7([0x6f,0x6e])](_0x1e72e7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe04143,_0x1af3c8)=>{_0x1af3c8[0x0][_0x1e72e7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x228800++,0x5e8==_0x228800&&(_0x13777e(),_0xe04143[_0x1e72e7([0x6f,0x66,0x66])]());});})),_0x416b50=[_0x4fbe60,_0x15f5f4];return window[_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e72e7([0x72,0x61,0x63,0x65])](_0x416b50)[_0x1e72e7([0x74,0x68,0x65,0x6e])](()=>_0xa6a329);}(_0x1e72e7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0xe7d9cb&&_0x415946)return new window[(_0x1e72e7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41ca58,_0x1614e8)=>{_0xe7d9cb[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x41ca58,_0x1614e8),_0x415946[_0x1e72e7([0x74,0x68,0x65,0x6e])](_0x583386=>{_0x583386!=_0x1e72e7([0x56,0x61,0x6c,0x69,0x64])&&_0x41ca58(_0x583386);},_0x1614e8);});return _0xe7d9cb||_0x415946||_0x1e72e7([0x56,0x61,0x6c,0x69,0x64]);}())):_0x1e72e7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e72e7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e72e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e72e7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x581c48(_0x4e2458){return _0x4e2458[_0x1e72e7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e72e7([0x65,0x79]))?JSON[_0x1e72e7([0x70,0x61,0x72,0x73,0x65])](_0x35aceb(_0x4e2458)):null;}function _0x35aceb(_0x219766){return window[_0x1e72e7([0x61,0x74,0x6f,0x62])](_0x219766[_0x1e72e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e72e7([0x2b]))[_0x1e72e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e72e7([0x2f])));}function _0x199ad9(_0x3f8e11){let _0x39fc26=0x1505;function _0xead2fb(_0x433d86){for(let _0x10665b=0x0;_0x10665b<_0x433d86[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10665b++){const _0x5eeb93=_0x433d86[_0x1e72e7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x10665b);_0x39fc26=(_0x39fc26<<0x5)+_0x39fc26+_0x5eeb93,_0x39fc26&=_0x39fc26;}}return function _0x27d934(_0x12d6c3){Array[_0x1e72e7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12d6c3)?_0x12d6c3[_0x1e72e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27d934):_0x12d6c3&&typeof _0x12d6c3==_0x1e72e7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e72e7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12d6c3)[_0x1e72e7([0x73,0x6f,0x72,0x74])]()[_0x1e72e7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41366e,_0x1cb20a])=>{_0xead2fb(_0x41366e),_0x27d934(_0x1cb20a);}):_0xead2fb(window[_0x1e72e7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12d6c3));}(_0x3f8e11),_0x39fc26>>>0x0;}function _0x1d50ca(_0x30ded1){return _0x30ded1[_0x1e72e7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e72e7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e72e7([0x30]));}function _0x37954d(_0x4e9580){return _0x4e9580[_0x1e72e7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e72e7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e72e7([0x6a,0x6f,0x69,0x6e])]('');}function _0x19a803(){}function _0x1e72e7(_0x42f472){return _0x42f472['map'](_0x5e2c6c=>String['fromCharCode'](_0x5e2c6c))['join']('');}!function(_0x180a29){const _0x214008=(function(){const _0x3fcd47=window[_0x1e72e7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e72e7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e72e7([0x6e,0x6f,0x77])]())[_0x1e72e7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e72e7([0x2e]),'');let _0x30e928=_0x1e72e7([0x50]);for(let _0x12f686=0x0;_0x12f686<_0x3fcd47[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12f686+=0x2){let _0x3e3c0f=window[_0x1e72e7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fcd47[_0x1e72e7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12f686,_0x12f686+0x2));_0x3e3c0f>=_0x53b5b6[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e3c0f-=_0x53b5b6[_0x1e72e7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30e928+=_0x53b5b6[_0x3e3c0f];}return _0x30e928;}());_0x55a352[_0x214008]=_0x1e72e7([0x6c,0x69,0x6e,0x65,0x48,0x65,0x69,0x67,0x68,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x180a29,_0x180a29!=_0x1e72e7([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x99cc7d,_0x55a352[_0x1e72e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e72e7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19a803,_0x55a352[_0x1e72e7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e72e7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19a803,_0x55a352[_0x1e72e7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e72e7([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x598b27);}class LineHeightUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'LineHeightUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a3c77={'accessibleLabel':(0x0,this['editor']['t'])('Line\x20height'),'options':this['_prepareListOptions']()};this['_registerToolbarComponent'](_0x5a3c77),this['_registerMenuBarComponent'](_0x5a3c77),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x214611=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54e8dc;for(const _0xe83950 in _0x214611){const _0x5c9d68=_0xe83950,_0x1db7b2=_0x214611[_0x5c9d68];if('lineHeightLicenseKeyValid'==_0x1db7b2||'lineHeightLicenseKeyInvalid'==_0x1db7b2||'lineHeightLicenseKeyExpired'==_0x1db7b2||'lineHeightLicenseKeyDomainLimit'==_0x1db7b2||'lineHeightLicenseKeyNotAllowed'==_0x1db7b2||'lineHeightLicenseKeyEvaluationLimit'==_0x1db7b2||'lineHeightLicenseKeyUsageLimit'==_0x1db7b2){delete _0x214611[_0x5c9d68],_0x54e8dc=_0x1db7b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'lineHeightLicenseKeyInvalid'==_0x54e8dc&&_0x214611['_showLicenseError']('invalid'),'lineHeightLicenseKeyExpired'==_0x54e8dc&&_0x214611['_showLicenseError']('expired'),'lineHeightLicenseKeyDomainLimit'==_0x54e8dc&&_0x214611['_showLicenseError']('domainLimit'),'lineHeightLicenseKeyNotAllowed'==_0x54e8dc&&_0x214611['_showLicenseError']('featureNotAllowed','LineHeight'),'lineHeightLicenseKeyEvaluationLimit'==_0x54e8dc&&_0x214611['_showLicenseError']('evaluationLimit'),'lineHeightLicenseKeyUsageLimit'==_0x54e8dc&&_0x214611['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_shouldRenderCustomValueOption'](){return this['editor']['config']['get']('lineHeight.supportAllValues');}['_getLocalizedLineHeightOptions'](){const _0x5a7026=this['editor'],t=_0x5a7026['t'],_0x3df291=_0x5a7026['config']['get']('lineHeight'),_0x520c92={'Single':t({'string':'Single','id':'LINE_HEIGHT_SINGLE_OPTION_LABEL'}),'Double':t({'string':'Double','id':'LINE_HEIGHT_DOUBLE_OPTION_LABEL'})};return normalizeOptions(_0x3df291)['map'](_0x30e9c9=>{const _0x24e041=_0x520c92[_0x30e9c9['title']];return _0x24e041&&_0x24e041!=_0x30e9c9['title']&&(_0x30e9c9=Object['assign']({},_0x30e9c9,{'title':_0x24e041})),_0x30e9c9;});}['_prepareListOptions'](){const _0x5a9f85=this['editor']['commands']['get']('lineHeight'),_0x1d797d=this['editor']['config']['get']('lineHeight.defaultValue'),_0x415650=this['_getLocalizedLineHeightOptions'](),_0x43d60f=new Collection(),_0x1b5f4f=_0xf59ec7=>'default'===_0xf59ec7||String(_0x1d797d)===_0xf59ec7;for(const _0x59bb75 of _0x415650){const _0x48a3d6={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','label':_0x59bb75['title'],'withText':!0x0})};_0x1b5f4f(_0x59bb75['model'])?(_0x48a3d6['model']['bind']('isOn')['to'](_0x5a9f85,'value',_0x127bec=>!_0x127bec),_0x48a3d6['model']['commandParam']=void 0x0):(_0x48a3d6['model']['bind']('isOn')['to'](_0x5a9f85,'value',_0x2ff557=>_0x2ff557===_0x59bb75['model']),_0x48a3d6['model']['commandParam']=_0x59bb75['model']),_0x43d60f['add'](_0x48a3d6);}if(this['_shouldRenderCustomValueOption']()){const _0x51bbb1=this['_getCustomValueOptionDefinition'](_0x415650);_0x43d60f['add'](_0x51bbb1);}return _0x43d60f;}['_getCustomValueOptionDefinition'](_0x1fd1a2){const _0x5b4e52=this['editor'],t=_0x5b4e52['t'],_0x4c94c1=_0x5b4e52['commands']['get']('lineHeight'),_0x56173d=_0x1fd1a2['map'](_0x55c489=>_0x55c489['model']),_0x43cdeb={'type':'button','model':new UIModel({'commandName':'lineHeight','class':'ck-line-height-option','role':'menuitemradio','withText':!0x0})};return _0x43cdeb['model']['bind']('commandParam')['to'](_0x4c94c1,'value'),_0x43cdeb['model']['bind']('isOn')['to'](_0x4c94c1,'value',_0x2a9216=>!!_0x2a9216&&!_0x56173d['includes'](String(_0x2a9216))),_0x43cdeb['model']['bind']('label')['to'](_0x4c94c1,'value',_0x466bf4=>t({'string':'Custom:\x20%0','id':'LINE_HEIGHT_CUSTOM_OPTION_LABEL'},String(_0x466bf4))),_0x43cdeb;}['_registerToolbarComponent']({accessibleLabel:_0x31335e,options:_0x3ad138}){const _0x78a2a7=this['editor'],_0x451543=_0x78a2a7['commands']['get']('lineHeight');_0x78a2a7['ui']['componentFactory']['add']('lineHeight',_0x346554=>{const _0x4e73a1=createDropdown(_0x346554);return addListToDropdown(_0x4e73a1,_0x3ad138,{'role':'menu','ariaLabel':_0x31335e}),_0x4e73a1['buttonView']['set']({'label':_0x31335e,'tooltip':!0x0,'icon':IconLineHeight}),_0x4e73a1['extendTemplate']({'attributes':{'class':['ck-line-height-dropdown']}}),_0x4e73a1['bind']('isEnabled')['to'](_0x451543),this['listenTo'](_0x4e73a1,'execute',_0xb40011=>{_0x78a2a7['execute'](_0xb40011['source']['commandName'],{'value':_0xb40011['source']['commandParam']}),_0x78a2a7['editing']['view']['focus']();}),_0x4e73a1['once']('change:isOpen',()=>{const _0x3c570a=_0x4e73a1['panelView']['children']['first'];this['_attachCustomOptionVisibilityHandler'](_0x4e73a1,_0x3ad138,_0x3c570a);}),_0x4e73a1;});}['_registerMenuBarComponent']({accessibleLabel:_0x576672,options:_0x4e2433}){const _0x3f5af3=this['editor'],_0x515932=_0x3f5af3['commands']['get']('lineHeight');_0x3f5af3['ui']['componentFactory']['add']('menuBar:lineHeight',_0xcdde6b=>{const _0x44fa39=new MenuBarMenuView(_0xcdde6b);_0x44fa39['buttonView']['set']({'label':_0x576672,'icon':IconLineHeight}),_0x44fa39['bind']('isEnabled')['to'](_0x515932);const _0x40bace=new MenuBarMenuListView(_0xcdde6b);for(const _0x26c40d of _0x4e2433){const _0x42c3a2=new MenuBarMenuListItemView(_0xcdde6b,_0x44fa39),_0x2bc205=new MenuBarMenuListItemButtonView(_0xcdde6b);_0x2bc205['set']({'role':'menuitemradio','isToggleable':!0x0}),_0x2bc205['bind'](...Object['keys'](_0x26c40d['model']))['to'](_0x26c40d['model']),_0x2bc205['delegate']('execute')['to'](_0x44fa39),_0x2bc205['on']('execute',()=>{_0x3f5af3['execute'](_0x26c40d['model']['commandName'],{'value':_0x26c40d['model']['commandParam']}),_0x3f5af3['editing']['view']['focus']();}),_0x42c3a2['children']['add'](_0x2bc205),_0x40bace['items']['add'](_0x42c3a2);}return _0x44fa39['panelView']['children']['add'](_0x40bace),this['_attachCustomOptionVisibilityHandler'](_0x44fa39,_0x4e2433,_0x40bace),_0x44fa39;});}['_attachCustomOptionVisibilityHandler'](_0x930640,_0x2663c6,_0x202086){if(!this['_shouldRenderCustomValueOption']())return;const _0xaa14ac=()=>{if(!_0x930640['isOpen'])return;_0x202086['items']['last']['isVisible']=Boolean(_0x2663c6['last']['model']['isOn']);};_0xaa14ac(),_0x930640['on']('change:isOpen',()=>{_0xaa14ac();});}}class LineHeight extends Plugin{static get['requires'](){return[LineHeightEditing,LineHeightUI];}static get['pluginName'](){return'LineHeight';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class MultiLevelListCommand extends Command{['defaultListMarkerStyle'];['_listDefinitions'];['_listUtils'];constructor(_0x1c6d67,_0x4a127d,_0x2a216a){super(_0x1c6d67),this['defaultListMarkerStyle']=_0x4a127d,this['_listDefinitions']=_0x2a216a,this['_listUtils']=this['editor']['plugins']['get']('ListUtils');}['refresh'](){this['value']=this['_getValue'](),this['isEnabled']=this['_checkEnabled']();}['execute'](_0x341a74={}){const _0x1cb4a4=this['editor']['model'],_0x189a9c=_0x341a74['listMarkerStyle']||this['defaultListMarkerStyle'];_0x1cb4a4['change'](()=>{const _0x392ed7=this['_getListTypeFromListMarkerStyle'](_0x189a9c);if(!_0x392ed7)return;const _0x4b3c73=_0x392ed7+'List';this['editor']['execute'](_0x4b3c73,{'additionalAttributes':{'listMarkerStyle':_0x189a9c}});});}['_getValue'](){const _0x1bf907=first(this['editor']['model']['document']['selection']['getSelectedBlocks']());return this['_listUtils']['isListItemBlock'](_0x1bf907)?_0x1bf907['getAttribute']('listMarkerStyle'):null;}['_checkEnabled'](){const _0x3a868b=this['editor'],_0x31ca0c=_0x3a868b['commands']['get']('customNumberedList'),_0x5b7e2d=_0x3a868b['commands']['get']('customBulletedList');return _0x31ca0c['isEnabled']||_0x5b7e2d['isEnabled'];}['_getListTypeFromListMarkerStyle'](_0x14d323){const _0x505c50=this['_listDefinitions']['find'](_0x14e2dd=>_0x14e2dd['listMarkerStyle']==_0x14d323);return _0x505c50?_0x505c50['listType']:null;}}class MultiLevelListEditing extends Plugin{['_listDefinitions'];static get['pluginName'](){return'MultiLevelListEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['ListEditing'];}constructor(_0x83a7ad){super(_0x83a7ad);const _0x443491=this['editor']['config']['get']('listMultiLevel.listDefinitions')||[];this['_listDefinitions']=[{'listType':'customNumbered','listMarkerStyle':'legal','className':'legal-list','listMarkers':[{'marker':_0x5a61fc=>_0x5a61fc+'.'}]},..._0x443491];}['init'](){const _0x2834da=this['editor'],_0x1955fc=_0x2834da['model'],_0x2aacae=_0x2834da['editing']['view'],_0x50d0cd=_0x2834da['plugins']['get']('ListEditing');_0x2834da['commands']['add']('multiLevelList',new MultiLevelListCommand(_0x2834da,'legal',this['_listDefinitions'])),_0x1955fc['schema']['extend']('$listItem',{'allowAttributes':['listMarkerStyle','listMarker']}),_0x1955fc['schema']['addAttributeCheck']((_0x275192,_0x5a86fe)=>{const _0x102c2f=_0x275192['last'];if('listMarker'==_0x5a86fe||'listMarkerStyle'==_0x5a86fe)return!(!_0x102c2f['getAttribute']('listItemId')||!this['_listDefinitions']['find'](_0x5071f5=>_0x5071f5['listType']==_0x102c2f['getAttribute']('listType')))&&void 0x0;});for(const _0x3f25d5 of this['_listDefinitions'])_0x2834da['conversion']['for']('upcast')['add'](_0x3c426a=>{_0x3c426a['on']('element:'+('customNumbered'==_0x3f25d5['listType']?'ol':'ul'),multiLevelListUpcastConverter(_0x3f25d5,_0x1955fc['schema']),{'priority':'low'});}),_0x50d0cd['registerDowncastStrategy']({'scope':'list','attributeName':'listMarkerStyle','setAttributeOnDowncast'(_0x491681,_0x448083,_0x555693){_0x448083==_0x3f25d5['listMarkerStyle']?(_0x491681['addClass'](['multi-level-list',_0x3f25d5['className']],_0x555693),_0x491681['setStyle']('list-style-type','none',_0x555693)):(_0x491681['removeClass'](['multi-level-list',_0x3f25d5['className']],_0x555693),_0x491681['removeStyle']('list-style-type',_0x555693));}}),_0x50d0cd['registerDowncastStrategy']({'scope':'itemMarker','attributeName':'listMarker','createElement'(_0xd4bbc7,_0xed0fea,{dataPipeline:_0x3c7a34}){if(!_0xed0fea['hasAttribute']('listMarker'))return null;if(_0xed0fea['getAttribute']('listType')!=_0x3f25d5['listType']||_0xed0fea['getAttribute']('listMarkerStyle')!=_0x3f25d5['listMarkerStyle'])return null;const _0x5bfddd=String(_0xed0fea['getAttribute']('listMarker')),_0x4e64c2=this['canInjectMarkerIntoElement'](_0xed0fea);return _0xd4bbc7['createUIElement']('span',{'class':'multi-level-list__marker',...!_0x3c7a34&&{'contenteditable':'false','data-multi-level-list-marker':_0x5bfddd}},function(_0x44e3fc){const _0x38fdd5=this['toDomElement'](_0x44e3fc);return _0x4e64c2?(_0x38fdd5['appendChild'](createElement(_0x44e3fc,'span',{},_0x3c7a34?_0x44e3fc['createTextNode'](_0x5bfddd):[])),_0x38fdd5['appendChild'](_0x44e3fc['createTextNode']('\u00a0'))):_0x3c7a34&&_0x38fdd5['appendChild'](_0x44e3fc['createTextNode'](_0x5bfddd)),_0x38fdd5;});},'canInjectMarkerIntoElement':_0x995043=>_0x1955fc['schema']['checkChild'](_0x995043,'$text')&&_0x1955fc['schema']['checkChild'](_0x995043,'$inlineObject')&&!_0x1955fc['schema']['isLimit'](_0x995043)&&_0x995043['getAttribute']('listType')==_0x3f25d5['listType']&&_0x995043['getAttribute']('listMarkerStyle')==_0x3f25d5['listMarkerStyle']});_0x2834da['conversion']['for']('upcast')['add'](_0x5a3d53=>{_0x5a3d53['on']('element:span',multiLevelListMarkerUpcastConverter(_0x2aacae));}),_0x50d0cd['on']('postFixer',(_0xd701c1,{listNodes:_0x2aefc0,writer:_0x25b9ed})=>{const _0x2e08af=[];for(const {node:_0x480172,previousNodeInList:_0x7b8da5}of _0x2aefc0){const _0x4c42ab=_0x480172['getAttribute']('listType'),_0x2d24b0=_0x480172['getAttribute']('listMarkerStyle')||('customNumbered'==_0x4c42ab?'legal':void 0x0),_0x452c61=this['_listDefinitions']['find'](_0x3ab35d=>_0x3ab35d['listType']==_0x4c42ab&&_0x3ab35d['listMarkerStyle']==_0x2d24b0);if('customNumbered'!=_0x4c42ab&&'customBulleted'!=_0x4c42ab&&(_0x480172['hasAttribute']('listMarker')&&(_0x25b9ed['removeAttribute']('listMarker',_0x480172),_0xd701c1['return']=!0x0),_0x480172['hasAttribute']('listMarkerStyle')&&(_0x25b9ed['removeAttribute']('listMarkerStyle',_0x480172),_0xd701c1['return']=!0x0)),!_0x452c61){'customBulleted'!=_0x4c42ab||_0x2d24b0||(_0x25b9ed['setAttribute']('listType','bulleted',_0x480172),_0xd701c1['return']=!0x0);continue;}_0x480172['hasAttribute']('listMarkerStyle')||(_0x25b9ed['setAttribute']('listMarkerStyle',_0x2d24b0,_0x480172),_0xd701c1['return']=!0x0);const _0x39b41e=_0x480172['getAttribute']('listIndent');if(_0x7b8da5&&_0x7b8da5['getAttribute']('listItemId')==_0x480172['getAttribute']('listItemId'))continue;_0x2e08af['length']=_0x39b41e+0x1,_0x7b8da5||_0x2e08af[_0x39b41e]?_0x7b8da5&&_0x7b8da5['getAttribute']('listType')!=_0x452c61['listType']?_0x2e08af[_0x39b41e]=0x1:_0x2e08af[_0x39b41e]++:_0x2e08af[_0x39b41e]=_0x480172['getAttribute']('listStart')||0x1;const _0x127dcf=generateMarker(_0x39b41e,_0x452c61,_0x2e08af);_0x480172['getAttribute']('listMarker')!=_0x127dcf&&(_0x25b9ed['setAttribute']('listMarker',_0x127dcf,_0x480172),_0xd701c1['return']=!0x0);}});const _0xa2073e=_0x2834da['editing']['view']['document'];this['listenTo'](_0xa2073e,'clipboardOutput',(_0x290c21,_0x3cc3e3)=>{const _0x7e45b2=new Matcher({'name':'span','classes':'multi-level-list__marker'}),_0x309d70=new Matcher({'name':'ol','classes':'multi-level-list','styles':{'list-style-type':'none'}}),_0x3d0d70=new ViewUpcastWriter(_0x3cc3e3['content']['document']),_0x5a2ed6=[];for(const _0x586591 of _0x3d0d70['createRangeIn'](_0x3cc3e3['content'])['getItems']())_0x586591['is']('element')&&_0x7e45b2['match'](_0x586591)&&_0x5a2ed6['push'](_0x586591),_0x586591['is']('element')&&_0x309d70['match'](_0x586591)&&_0x3d0d70['removeStyle']('list-style-type',_0x586591);for(const _0x256ead of _0x5a2ed6)_0x3d0d70['remove'](_0x256ead);});}['afterInit'](){checkLicense$9(this);}}function generateMarker(_0x2b229c,_0x35cb4b,_0x5993e4){let _0x551226=_0x35cb4b['listMarkers'][_0x2b229c%_0x35cb4b['listMarkers']['length']];if(void 0x0===_0x551226['showMarkerPath']||_0x551226['showMarkerPath'])return _0x5993e4['slice'](0x0,_0x2b229c+0x1)['map']((_0x4976e4,_0x413847)=>(_0x551226=_0x35cb4b['listMarkers'][_0x413847%_0x35cb4b['listMarkers']['length']],getMarkerString(_0x551226['marker'],_0x4976e4)))['join']('');{const _0x46a238=_0x5993e4[_0x5993e4['length']-0x1];return getMarkerString(_0x551226['marker'],_0x46a238);}}function getMarkerString(_0xe68911,_0xd289ca){return'function'==typeof _0xe68911?_0xe68911(_0xd289ca):_0xe68911;}function multiLevelListUpcastConverter(_0x318c51,_0x517e8d){return(_0x52810a,_0x174969,_0x2dc881)=>{const _0x6a62ee=_0x174969['viewItem'];if(_0x174969['modelRange']||Object['assign'](_0x174969,_0x2dc881['convertChildren'](_0x174969['viewItem'],_0x174969['modelCursor'])),!_0x2dc881['consumable']['test'](_0x6a62ee,{'classes':_0x318c51['className']}))return;const _0x195bf5=Array['from'](_0x174969['modelRange']['getItems']({'shallow':!0x0}))['filter'](_0x4d4535=>_0x517e8d['checkAttribute'](_0x4d4535,'listItemId'));if(!_0x195bf5['length'])return;_0x2dc881['consumable']['consume'](_0x6a62ee,{'classes':_0x318c51['className']}),_0x2dc881['consumable']['consume'](_0x6a62ee,{'classes':'multi-level-list'}),_0x2dc881['consumable']['consume'](_0x6a62ee,{'styles':'list-style-type'});const _0xa09b29=_0x195bf5[0x0]['getAttribute']('listIndent');for(const _0x1dbb3b of _0x195bf5)_0x1dbb3b['getAttribute']('listIndent')==_0xa09b29&&(_0x2dc881['writer']['setAttribute']('listType',_0x318c51['listType'],_0x1dbb3b),_0x2dc881['writer']['setAttribute']('listMarkerStyle',_0x318c51['listMarkerStyle'],_0x1dbb3b));};}function multiLevelListMarkerUpcastConverter(_0x3e8128){return(_0x559d6c,_0x4cbbc1,{writer:_0x30df54,consumable:_0x271261})=>{const _0x42fbd0=_0x4cbbc1['modelCursor'],_0x317c50=_0x42fbd0['parent'],_0x15edae=_0x4cbbc1['viewItem'];if(_0x271261['consume'](_0x15edae,{'name':!0x0,'classes':'multi-level-list__marker'})&&_0x42fbd0['isAtStart']&&_0x317c50['hasAttribute']('listType')&&_0x15edae['childCount']>0x0){const _0x52d011=_0x3e8128['createRangeIn'](_0x15edae);let _0x2809f4='';for(const _0x15c55f of _0x52d011['getItems']())_0x15c55f['is']('$textProxy')?(_0x2809f4+=_0x15c55f['data']['trim'](),_0x271261['consume'](_0x15c55f['textNode'])):_0x271261['consume'](_0x15c55f,{'name':!0x0});_0x30df54['setAttribute']('listMarker',_0x2809f4['trim'](),_0x317c50);}};}async function checkLicense$9(_0xca9317){const _0x11732e=_0x23cf48([0x75,0x6e,0x30,0x4e,0x46,0x51,0x55,0x6f,0x58,0x31,0x65,0x76,0x7a,0x6b,0x33,0x79,0x4d,0x45,0x66,0x77,0x6c,0x37,0x54,0x78,0x62,0x44,0x72,0x69,0x73,0x4f,0x5a,0x61,0x57,0x74,0x4b,0x71,0x35,0x32,0x50,0x39,0x38,0x64,0x63,0x68,0x42,0x56,0x70,0x6a,0x53,0x34,0x6d,0x59,0x4c,0x43,0x36,0x67,0x4a,0x49,0x48,0x47,0x52,0x41]),_0xad8a59=window[_0x23cf48([0x44,0x61,0x74,0x65])][_0x23cf48([0x6e,0x6f,0x77])](),_0x35270d=_0xca9317[_0x23cf48([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a884b=new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbe792=>{_0x35270d[_0x23cf48([0x6f,0x6e,0x63,0x65])](_0x23cf48([0x72,0x65,0x61,0x64,0x79]),_0xfbe792);}),_0x119c73={[_0x23cf48([0x6b,0x74,0x79])]:_0x23cf48([0x45,0x43]),[_0x23cf48([0x75,0x73,0x65])]:_0x23cf48([0x73,0x69,0x67]),[_0x23cf48([0x63,0x72,0x76])]:_0x23cf48([0x50,0x2d,0x32,0x35,0x36]),[_0x23cf48([0x78])]:_0x23cf48([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x23cf48([0x79])]:_0x23cf48([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x23cf48([0x61,0x6c,0x67])]:_0x23cf48([0x45,0x53,0x32,0x35,0x36])},_0x31b18a=_0x35270d[_0x23cf48([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23cf48([0x67,0x65,0x74])](_0x23cf48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x154f44=await(async function(){let _0x2fa5f1,_0x27d1c4=null,_0x567112=null;try{if(_0x31b18a==_0x23cf48([0x47,0x50,0x4c]))return _0x23cf48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fa5f1=(function(){const _0x3fec18=_0x31b18a[_0x23cf48([0x73,0x70,0x6c,0x69,0x74])](_0x23cf48([0x2e]));if(0x3!=_0x3fec18[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x5a4cd2=_0x3fec18[0x1];return _0x2d533d(_0x5a4cd2);function _0x2d533d(_0x91d3ec){const _0x12d3cb=_0x510603(_0x91d3ec);return _0x12d3cb&&_0x450dcf()?_0x12d3cb:null;function _0x450dcf(){const _0x448675=_0x12d3cb[_0x23cf48([0x6a,0x74,0x69])],_0x41557c=window[_0x23cf48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x448675[_0x23cf48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x448675[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe118e={..._0x12d3cb,[_0x23cf48([0x6a,0x74,0x69])]:_0x448675[_0x23cf48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x448675[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe118e[_0x23cf48([0x76,0x63])],_0x135963(_0xe118e)==_0x41557c;}}}()),!_0x2fa5f1)return _0x23cf48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x2fa5f1[_0x23cf48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x567112=function(_0x4d120e,_0x1be5eb){return new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403f65=>{if(_0x29063c())return _0x403f65(_0x23cf48([0x56,0x61,0x6c,0x69,0x64]));_0x1757ba(),_0x35270d[_0x23cf48([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23cf48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36a4ac=!0x1;const _0xf87a77=uid();function _0x2d9b9c(_0xc2545d){return!!_0xc2545d&&(typeof _0xc2545d===_0x23cf48([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xc2545d===_0x23cf48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xc2545d[_0x23cf48([0x74,0x68,0x65,0x6e])]===_0x23cf48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xc2545d[_0x23cf48([0x63,0x61,0x74,0x63,0x68])]===_0x23cf48([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x182bc3(_0x37f89a){_0x5d214d(_0x37f89a)[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x1be7d2=>{if(!_0x1be7d2||_0x1be7d2[_0x23cf48([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23cf48([0x6f,0x6b]))return _0x23cf48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c41aa(_0x135963(_0xf87a77+_0x1be5eb))!=_0x1be7d2[_0x23cf48([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23cf48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23cf48([0x56,0x61,0x6c,0x69,0x64]);})[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x5194ec=>(_0x228fa5(),_0x5194ec),()=>{const _0x536870=_0x52a109();return null==_0x536870?(_0x228fa5(),_0x23cf48([0x56,0x61,0x6c,0x69,0x64])):_0x23cf48(_0xad8a59-_0x536870>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x403f65)[_0x23cf48([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403f65(_0x23cf48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4496e8=0x36ee80;function _0x228fa5(){const _0x368629=_0x23cf48([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c41aa(_0x135963(_0x4d120e)),_0xaa5527=_0x11cdf(_0x3c41aa(window[_0x23cf48([0x4d,0x61,0x74,0x68])][_0x23cf48([0x63,0x65,0x69,0x6c])](_0xad8a59/_0x4496e8)));window[_0x23cf48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23cf48([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x368629,_0xaa5527);}function _0x52a109(){const _0x15b5c5=_0x23cf48([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c41aa(_0x135963(_0x4d120e)),_0x17eccf=window[_0x23cf48([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23cf48([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b5c5);return _0x17eccf?window[_0x23cf48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11cdf(_0x17eccf),0x10)*_0x4496e8:null;}function _0x5d214d(_0x2e1784){return new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c3508,_0x5d2276)=>{_0x2e1784[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x3c3508,_0x5d2276),window[_0x23cf48([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d2276,0x1d4c0);});}}_0x35270d[_0x23cf48([0x6f,0x6e])](_0x23cf48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2933f0,_0x26434b)=>{if(_0x26434b[0x0]!=_0x4d120e)return _0x403f65(_0x23cf48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26434b[0x1]={..._0x26434b[0x1],[_0x23cf48([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf87a77};},{[_0x23cf48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23cf48([0x68,0x69,0x67,0x68])}),_0x35270d[_0x23cf48([0x6f,0x6e])](_0x23cf48([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47cc9f=>{_0x2d9b9c(_0x47cc9f[_0x23cf48([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36a4ac=!0x0,_0x182bc3(_0x47cc9f[_0x23cf48([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23cf48([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23cf48([0x6c,0x6f,0x77])}),_0x1a884b[_0x23cf48([0x74,0x68,0x65,0x6e])](()=>{_0x36a4ac||_0x403f65(_0x23cf48([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29063c(){return _0x35270d[_0x23cf48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23cf48([0x76,0x69,0x65,0x77])][_0x23cf48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23cf48([0x61,0x75,0x74,0x6f]);}function _0x1757ba(){_0x35270d[_0x23cf48([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23cf48([0x76,0x69,0x65,0x77])][_0x23cf48([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23cf48([0x61,0x75,0x74,0x6f]);}}(_0x2fa5f1[_0x23cf48([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fa5f1[_0x23cf48([0x6a,0x74,0x69])]));const _0x39b5bb=await(async function(){let _0x411fe1=!0x0;try{const _0x25e13=_0x31b18a[_0x23cf48([0x73,0x70,0x6c,0x69,0x74])](_0x23cf48([0x2e])),[_0xf75711,_0x4cae2c,_0x410bde]=_0x25e13;return _0x132cbc(_0xf75711),await _0x4bc789(_0xf75711,_0x4cae2c,_0x410bde),_0x411fe1;}catch{return!0x1;}function _0x132cbc(_0x4dc23e){const _0x568b5b=_0x510603(_0x4dc23e);_0x568b5b&&_0x568b5b[_0x23cf48([0x61,0x6c,0x67])]==_0x23cf48([0x45,0x53,0x32,0x35,0x36])||(_0x411fe1=!0x1);}async function _0x4bc789(_0x14b240,_0xfa99d7,_0x2874b5){const _0x5da870=window[_0x23cf48([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23cf48([0x66,0x72,0x6f,0x6d])](_0x576031(_0x2874b5),_0x107304=>_0x107304[_0x23cf48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc376be=new window[(_0x23cf48([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23cf48([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14b240+_0x23cf48([0x2e])+_0xfa99d7),_0x2bf253=window[_0x23cf48([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23cf48([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2bf253)return;const _0x348a3b=await _0x2bf253[_0x23cf48([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23cf48([0x6a,0x77,0x6b]),_0x119c73,{[_0x23cf48([0x6e,0x61,0x6d,0x65])]:_0x23cf48([0x45,0x43,0x44,0x53,0x41]),[_0x23cf48([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23cf48([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23cf48([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2bf253[_0x23cf48([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23cf48([0x6e,0x61,0x6d,0x65])]:_0x23cf48([0x45,0x43,0x44,0x53,0x41]),[_0x23cf48([0x68,0x61,0x73,0x68])]:{[_0x23cf48([0x6e,0x61,0x6d,0x65])]:_0x23cf48([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x348a3b,_0x5da870,_0xc376be)||(_0x411fe1=!0x1);}}());return _0x39b5bb?(function(){const _0xa5f24f=_0x2fa5f1[_0x23cf48([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa5f24f)return!0x1;if(_0xa5f24f[_0x23cf48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cf48([0x2a])))return!0x0;if(_0xa5f24f[_0x23cf48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cf48([0x4d,0x4c,0x4c])))return!0x0;return!0x1;}())?(function(){const _0x1d3a1f=[_0x23cf48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23cf48([0x74,0x72,0x69,0x61,0x6c])][_0x23cf48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fa5f1[_0x23cf48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xad8a59/0x3e8:0x69e02680;return _0x2fa5f1[_0x23cf48([0x65,0x78,0x70])]<_0x1d3a1f;}())?_0x23cf48([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xfb0da5=_0x2fa5f1[_0x23cf48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xfb0da5||0x0==_0xfb0da5[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d1cf3}=new URL(window[_0x23cf48([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xfb0da5[_0x23cf48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d1cf3))return!0x0;const _0x262a5c=_0x2d1cf3[_0x23cf48([0x73,0x70,0x6c,0x69,0x74])](_0x23cf48([0x2e]));return _0xfb0da5[_0x23cf48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49f612=>_0x49f612[_0x23cf48([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23cf48([0x2a])))[_0x23cf48([0x6d,0x61,0x70])](_0x14cece=>_0x14cece[_0x23cf48([0x73,0x70,0x6c,0x69,0x74])](_0x23cf48([0x2e])))[_0x23cf48([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c3303=>_0x1c3303[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x262a5c[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23cf48([0x6d,0x61,0x70])](_0x10ab6d=>Array(_0x262a5c[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10ab6d[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23cf48([0x66,0x69,0x6c,0x6c])](_0x10ab6d[0x0]===_0x23cf48([0x2a])?_0x23cf48([0x2a]):'')[_0x23cf48([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10ab6d))[_0x23cf48([0x73,0x6f,0x6d,0x65])](_0x4d7277=>_0x262a5c[_0x23cf48([0x65,0x76,0x65,0x72,0x79])]((_0x1b81a8,_0x140577)=>_0x4d7277[_0x140577]===_0x1b81a8||_0x4d7277[_0x140577]===_0x23cf48([0x2a])));}())?(_0x2fa5f1[_0x23cf48([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23cf48([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27d1c4=function(_0x558a58){const _0x3a8c97=new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191778=>setTimeout(_0x191778,0x93ecc)),_0x22323d=_0x1a884b[_0x23cf48([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1dcd47=>{let _0x5250f5=0x0;_0x35270d[_0x23cf48([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cf48([0x6f,0x6e])](_0x23cf48([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x350fee,_0x5ddc62)=>{_0x5ddc62[0x0][_0x23cf48([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5250f5++,0x5e8==_0x5250f5&&(_0x1dcd47(),_0x350fee[_0x23cf48([0x6f,0x66,0x66])]());});})),_0x25ec11=[_0x3a8c97,_0x22323d];return window[_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23cf48([0x72,0x61,0x63,0x65])](_0x25ec11)[_0x23cf48([0x74,0x68,0x65,0x6e])](()=>_0x558a58);}(_0x23cf48([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x27d1c4&&_0x567112)return new window[(_0x23cf48([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24c005,_0x5c5d16)=>{_0x27d1c4[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x24c005,_0x5c5d16),_0x567112[_0x23cf48([0x74,0x68,0x65,0x6e])](_0x1a0083=>{_0x1a0083!=_0x23cf48([0x56,0x61,0x6c,0x69,0x64])&&_0x24c005(_0x1a0083);},_0x5c5d16);});return _0x27d1c4||_0x567112||_0x23cf48([0x56,0x61,0x6c,0x69,0x64]);}())):_0x23cf48([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23cf48([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23cf48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23cf48([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x510603(_0x42402f){return _0x42402f[_0x23cf48([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23cf48([0x65,0x79]))?JSON[_0x23cf48([0x70,0x61,0x72,0x73,0x65])](_0x576031(_0x42402f)):null;}function _0x576031(_0x41b724){return window[_0x23cf48([0x61,0x74,0x6f,0x62])](_0x41b724[_0x23cf48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23cf48([0x2b]))[_0x23cf48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23cf48([0x2f])));}function _0x135963(_0xb623a3){let _0x4e3eda=0x1505;function _0x513659(_0x1d9b61){for(let _0x36b8ff=0x0;_0x36b8ff<_0x1d9b61[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b8ff++){const _0x5efb17=_0x1d9b61[_0x23cf48([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36b8ff);_0x4e3eda=(_0x4e3eda<<0x5)+_0x4e3eda+_0x5efb17,_0x4e3eda&=_0x4e3eda;}}return function _0x24535b(_0x49e256){Array[_0x23cf48([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x49e256)?_0x49e256[_0x23cf48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24535b):_0x49e256&&typeof _0x49e256==_0x23cf48([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23cf48([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x49e256)[_0x23cf48([0x73,0x6f,0x72,0x74])]()[_0x23cf48([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc40074,_0x4245cd])=>{_0x513659(_0xc40074),_0x24535b(_0x4245cd);}):_0x513659(window[_0x23cf48([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x49e256));}(_0xb623a3),_0x4e3eda>>>0x0;}function _0x3c41aa(_0x49d4d6){return _0x49d4d6[_0x23cf48([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23cf48([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23cf48([0x30]));}function _0x11cdf(_0x27eb01){return _0x27eb01[_0x23cf48([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23cf48([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23cf48([0x6a,0x6f,0x69,0x6e])]('');}function _0x81532d(){}function _0x23cf48(_0x5296aa){return _0x5296aa['map'](_0x1d1ad3=>String['fromCharCode'](_0x1d1ad3))['join']('');}!function(_0x3484f5){const _0x48f99e=(function(){const _0x8f528c=window[_0x23cf48([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23cf48([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23cf48([0x6e,0x6f,0x77])]())[_0x23cf48([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23cf48([0x2e]),'');let _0x37fed1=_0x23cf48([0x75]);for(let _0xef1e94=0x0;_0xef1e94<_0x8f528c[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xef1e94+=0x2){let _0x1e7d67=window[_0x23cf48([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8f528c[_0x23cf48([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xef1e94,_0xef1e94+0x2));_0x1e7d67>=_0x11732e[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e7d67-=_0x11732e[_0x23cf48([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37fed1+=_0x11732e[_0x1e7d67];}return _0x37fed1;}());_0x35270d[_0x48f99e]=_0x23cf48([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3484f5,_0x3484f5!=_0x23cf48([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1a884b,_0x35270d[_0x23cf48([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cf48([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x81532d,_0x35270d[_0x23cf48([0x6d,0x6f,0x64,0x65,0x6c])][_0x23cf48([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x81532d,_0x35270d[_0x23cf48([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23cf48([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x154f44);}function getTranslation$9(_0x366beb,_0x3431f9){const _0xa703f7=_0x366beb['t'],t=_0x366beb['t'];switch(_0x3431f9){case'Start\x20at':return _0xa703f7('Start\x20at');case'Start\x20index\x20must\x20be\x20greater\x20than\x200.':return _0xa703f7('Start\x20index\x20must\x20be\x20greater\x20than\x200.');case'Invalid\x20start\x20index\x20value.':return _0xa703f7('Invalid\x20start\x20index\x20value.');case'List\x20properties':return _0xa703f7('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 _0x3431f9;}}class MultiLevelListView extends View{['children'];['stylesView']=null;['additionalPropertiesCollapsibleView']=null;['startIndexFieldView']=null;['focusTracker']=new FocusTracker();['keystrokes']=new KeystrokeHandler();['focusables']=new ViewCollection();['focusCycler'];constructor(_0x39fb40,{enabledProperties:_0xe1788f,styleButtonViews:_0x51e9b8,styleGridAriaLabel:_0x18a74a}){super(_0x39fb40);const _0x1b909b=['ck','ck-multi-level-list-properties'];this['children']=this['createCollection'](),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),_0xe1788f['styles']?(this['stylesView']=this['_createStylesView'](_0x51e9b8,_0x18a74a),this['children']['add'](this['stylesView'])):_0x1b909b['push']('ck-multi-level-list-properties_without-styles'),_0xe1788f['startIndex']&&(this['_addListPropertyViews'](_0xe1788f),_0x1b909b['push']('ck-multi-level-list-properties_with-multi-level-properties')),this['setTemplate']({'tag':'div','attributes':{'class':_0x1b909b},'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 _0x228332 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x228332['element']);addKeyboardHandlingForGrid({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x59f9c1['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 _0x1c4c4d=_0x99e79e=>_0x99e79e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c4c4d),this['keystrokes']['set']('arrowleft',_0x1c4c4d),this['keystrokes']['set']('arrowup',_0x1c4c4d),this['keystrokes']['set']('arrowdown',_0x1c4c4d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_createStylesView'](_0x3a38df,_0x137042){const _0x4bd59d=new View(this['locale']);return _0x4bd59d['children']=_0x4bd59d['createCollection'](),_0x4bd59d['children']['addMany'](_0x3a38df),_0x4bd59d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x137042,'class':['ck','ck-multi-level-list-styles']},'children':_0x4bd59d['children']}),_0x4bd59d['children']['delegate']('execute')['to'](this),_0x4bd59d['focus']=function(){this['children']['first']['focus']();},_0x4bd59d['focusTracker']=new FocusTracker(),_0x4bd59d['keystrokes']=new KeystrokeHandler(),_0x4bd59d['render'](),_0x4bd59d['keystrokes']['listenTo'](_0x4bd59d['element']),_0x4bd59d;}['_addListPropertyViews'](_0x57ff28){const _0x35cf78=[];_0x57ff28['startIndex']&&(this['startIndexFieldView']=this['_createStartIndexField'](),_0x35cf78['push'](this['startIndexFieldView'])),_0x57ff28['styles']?(this['additionalPropertiesCollapsibleView']=new CollapsibleView(this['locale'],_0x35cf78),this['additionalPropertiesCollapsibleView']['set']({'label':getTranslation$9(this['locale'],'List\x20properties'),'isCollapsed':!0x0}),this['additionalPropertiesCollapsibleView']['buttonView']['bind']('isEnabled')['toMany'](_0x35cf78,'isEnabled',(..._0x297fd2)=>_0x297fd2['some'](_0x67725c=>_0x67725c)),this['additionalPropertiesCollapsibleView']['buttonView']['on']('change:isEnabled',(_0xcf527d,_0x3dc120,_0x4887ce)=>{_0x4887ce||(this['additionalPropertiesCollapsibleView']['isCollapsed']=!0x0);}),this['children']['add'](this['additionalPropertiesCollapsibleView'])):this['children']['addMany'](_0x35cf78);}['_createStartIndexField'](){const _0xa6c749=new LabeledFieldView(this['locale'],createLabeledInputNumber);return _0xa6c749['set']({'label':getTranslation$9(this['locale'],'Start\x20at'),'class':'ck-multi-level-list-properties__start-index'}),_0xa6c749['fieldView']['set']({'min':0x0,'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xa6c749['fieldView']['on']('input',()=>{const _0x52f6a0=_0xa6c749['fieldView']['element'],_0x183578=_0x52f6a0['valueAsNumber'];Number['isNaN'](_0x183578)?_0xa6c749['errorText']=getTranslation$9(this['locale'],'Invalid\x20start\x20index\x20value.'):_0x52f6a0['checkValidity']()?this['fire']('listStart',{'startIndex':_0x183578}):_0xa6c749['errorText']=getTranslation$9(this['locale'],'Start\x20index\x20must\x20be\x20greater\x20than\x200.');}),_0xa6c749;}}class MultiLevelListUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'MultiLevelListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x55d727=this['editor'];_0x55d727['ui']['componentFactory']['add']('multiLevelList',getViewCreator({'editor':_0x55d727,'parentCommandName':'multiLevelList','buttonLabel':getTranslation$9(_0x55d727['locale'],'Multi-level\x20List'),'buttonIcon':IconMultiLevelList,'styleGridAriaLabel':getTranslation$9(_0x55d727['locale'],'Multi-level\x20list\x20styles\x20toolbar'),'styleDefinitions':[]})),_0x55d727['ui']['componentFactory']['add']('menuBar:multiLevelList',()=>{const _0x151c98=_0x55d727['commands']['get']('multiLevelList'),_0x546dac=new MenuBarMenuListItemButtonView(_0x55d727['locale']);return _0x546dac['set']({'label':getTranslation$9(_0x55d727['locale'],'Multi-level\x20List'),'icon':IconMultiLevelList}),_0x546dac['bind']('isEnabled')['to'](_0x151c98),_0x546dac['bind']('isOn')['to'](_0x151c98,'value',_0x1917b8=>!!_0x1917b8),_0x546dac['on']('execute',()=>{_0x55d727['execute']('multiLevelList'),_0x55d727['editing']['view']['focus']();}),_0x546dac;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd55df0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x9bcea9;for(const _0x4c10bd in _0xd55df0){const _0x25c76d=_0x4c10bd,_0x341100=_0xd55df0[_0x25c76d];if('multiLevelListLicenseKeyValid'==_0x341100||'multiLevelListLicenseKeyInvalid'==_0x341100||'multiLevelListLicenseKeyExpired'==_0x341100||'multiLevelListLicenseKeyDomainLimit'==_0x341100||'multiLevelListLicenseKeyNotAllowed'==_0x341100||'multiLevelListLicenseKeyEvaluationLimit'==_0x341100||'multiLevelListLicenseKeyUsageLimit'==_0x341100){delete _0xd55df0[_0x25c76d],_0x9bcea9=_0x341100,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'multiLevelListLicenseKeyInvalid'==_0x9bcea9&&_0xd55df0['_showLicenseError']('invalid'),'multiLevelListLicenseKeyExpired'==_0x9bcea9&&_0xd55df0['_showLicenseError']('expired'),'multiLevelListLicenseKeyDomainLimit'==_0x9bcea9&&_0xd55df0['_showLicenseError']('domainLimit'),'multiLevelListLicenseKeyNotAllowed'==_0x9bcea9&&_0xd55df0['_showLicenseError']('featureNotAllowed','MultiLevelList'),'multiLevelListLicenseKeyEvaluationLimit'==_0x9bcea9&&_0xd55df0['_showLicenseError']('evaluationLimit'),'multiLevelListLicenseKeyUsageLimit'==_0x9bcea9&&_0xd55df0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function getViewCreator({editor:_0x30be28,parentCommandName:_0x4ebc46,buttonLabel:_0x24fee2,buttonIcon:_0x1c738d,styleGridAriaLabel:_0x4c5b17,styleDefinitions:_0x23eb27}){const _0x4519c2=_0x30be28['commands']['get'](_0x4ebc46),_0x208454=_0x30be28['config']['get']('list.properties')||{},_0x2e57ca=_0x30be28['plugins']['has']('ListProperties'),_0x3aef69=_0x208454['startIndex'];return _0x2e57ca&&_0x3aef69?_0x5ce268=>{const _0x559330=createDropdown(_0x5ce268,SplitButtonView),_0x13344b=_0x559330['buttonView'];return _0x559330['bind']('isEnabled')['to'](_0x4519c2),_0x559330['class']='ck-list-styles-dropdown',_0x13344b['on']('execute',()=>{_0x30be28['execute'](_0x4ebc46),_0x30be28['editing']['view']['focus']();}),_0x13344b['set']({'label':_0x24fee2,'icon':_0x1c738d,'tooltip':!0x0,'isToggleable':!0x0}),_0x13344b['bind']('isOn')['to'](_0x4519c2,'value',_0x356dd3=>!!_0x356dd3),_0x559330['once']('change:isOpen',()=>{const _0x375640=createListPropertiesView({'editor':_0x30be28,'dropdownView':_0x559330,'styleGridAriaLabel':_0x4c5b17,'styleDefinitions':_0x23eb27});_0x559330['panelView']['children']['add'](_0x375640);}),_0x559330['on']('execute',()=>{_0x30be28['editing']['view']['focus']();}),_0x559330;}:_0x4d537b=>{const _0x3069b8=new ButtonView(_0x4d537b);return _0x3069b8['set']({'label':_0x24fee2,'icon':_0x1c738d,'tooltip':!0x0,'isToggleable':!0x0}),_0x3069b8['bind']('isOn')['to'](_0x4519c2,'value',_0x348a26=>!!_0x348a26),_0x3069b8['on']('execute',()=>{_0x30be28['execute'](_0x4ebc46),_0x30be28['editing']['view']['focus']();}),_0x3069b8;};}function createListPropertiesView({editor:_0x24b41c,dropdownView:_0x3b3c27,styleDefinitions:_0x485665,styleGridAriaLabel:_0x35ad2b}){const _0x48bf53=_0x24b41c['locale'],_0x3599a1=_0x24b41c['config']['get']('list.properties');_0x3599a1['reversed']=!0x1,_0x485665['length']||(_0x3599a1['styles']=!0x1);const _0x52f903=new MultiLevelListView(_0x48bf53,{'styleGridAriaLabel':_0x35ad2b,'enabledProperties':_0x3599a1,'styleButtonViews':null});if(_0x3599a1['startIndex']){const _0x26dd74=_0x24b41c['commands']['get']('listStart');_0x52f903['startIndexFieldView']['bind']('isEnabled')['to'](_0x26dd74),_0x52f903['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x26dd74),_0x52f903['on']('listStart',(_0x45464a,_0x3883ad)=>_0x24b41c['execute']('listStart',_0x3883ad));}return _0x52f903['delegate']('execute')['to'](_0x3b3c27),_0x52f903;}class MultiLevelList extends Plugin{static get['pluginName'](){return'MultiLevelList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[MultiLevelListEditing,MultiLevelListUI];}}class InsertMergeFieldCommand extends Command{['refresh'](){const _0x47034a=this['editor']['model'],_0xe7bd26=_0x47034a['schema']['checkChild'](_0x47034a['document']['selection']['focus'],'mergeField');this['isEnabled']=_0xe7bd26;}['execute'](_0x3f13ea){if(!_0x3f13ea||'string'!=typeof _0x3f13ea)return;const _0xf44266=this['editor']['model'];_0xf44266['change'](_0x1d58c2=>{_0xf44266['deleteContent'](_0xf44266['document']['selection']);const _0x43a371=_0x1d58c2['createElement']('mergeField',{'id':_0x3f13ea});for(const [_0xd9c961,_0x669ed3]of _0xf44266['document']['selection']['getAttributes']())_0xf44266['schema']['checkAttribute'](_0x43a371,_0xd9c961)&&_0x1d58c2['setAttribute'](_0xd9c961,_0x669ed3,_0x43a371);_0xf44266['insertContent'](_0x43a371,_0xf44266['document']['selection'],0x0,{'setSelection':'after'});});}}class InsertMergeFieldBlockCommand extends Command{['refresh'](){const _0x32e039=this['editor']['model'],_0x3c45ce=_0x32e039['document']['selection'];this['isEnabled']=isAllowedInParent(_0x3c45ce,_0x32e039);}['execute'](_0x5e244d,_0xcaf379){if(!_0x5e244d||'string'!=typeof _0x5e244d)return;const _0x426d9c=this['editor']['model'];_0x426d9c['change'](_0x19d1fc=>{const _0x2b1ff3=_0x19d1fc['createElement']('mergeFieldBlock',{'id':_0x5e244d});_0x426d9c['insertObject'](_0x2b1ff3,_0x426d9c['document']['selection'],null,{'setSelection':'on','findOptimalPosition':!0x1===_0xcaf379?void 0x0:'auto'});});}}function isAllowedInParent(_0x5dfe91,_0x32d519){let _0x310a6d=findOptimalInsertionRange(_0x5dfe91,_0x32d519)['start']['parent'];return _0x310a6d['isEmpty']&&!_0x32d519['schema']['isLimit'](_0x310a6d)&&(_0x310a6d=_0x310a6d['parent']),_0x32d519['schema']['checkChild'](_0x310a6d,'mergeFieldBlock');}class InsertMergeFieldImageCommand extends Command{constructor(_0x4a6c85){super(_0x4a6c85),this['bind']('isEnabled')['to'](this['editor']['commands']['get']('insertImage'));}['execute'](_0x22c62a,_0x4682eb){if(!_0x22c62a||'string'!=typeof _0x22c62a)return;const _0xd94e76=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1eff5b=_0xd94e76['getMergeFieldWidth'](_0x22c62a),_0x366648=_0xd94e76['getMergeFieldHeight'](_0x22c62a);this['editor']['execute']('insertImage',{'source':{'src':_0xd94e76['wrapInAffixes'](_0x22c62a),'width':_0x1eff5b,'height':_0x366648},'breakBlock':_0x4682eb&&_0x4682eb['breakBlock']});}}class PreviewMergeFieldsCommand extends Command{constructor(_0x58dd2a){super(_0x58dd2a);const _0x318ca4=this['editor']['plugins']['get']('MergeFieldsEditing');this['bind']('value')['to'](_0x318ca4,'previewMode'),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b613e){this['editor']['plugins']['get']('MergeFieldsEditing')['previewMode']=_0x3b613e;}}const DEFAULT_MERGE_FIELD_BLOCK_HEIGHT=0x78,DEFAULT_MERGE_FIELD_IMAGE_HEIGHT=0x190,DEFAULT_MERGE_FIELD_IMAGE_WIDTH=0x190,ALLOWED_IN_IDS=/^[a-zA-Z0-9_.-]+$/;class MergeFieldsEditing extends Plugin{['availablePreviewModes'];['flattenedMergeFieldDefinitions']=[];['_mergeFieldElements'];['_mergeFieldPrefix'];['_mergeFieldSuffix'];['_mergeFieldRegExp'];['_shouldPreviewHtmlValues'];static get['requires'](){return['ImageUtils','ImageEditing'];}static get['pluginName'](){return'MergeFieldsEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcaa913){super(_0xcaa913),_0xcaa913['config']['define']('mergeFields.previewModes',['$labels','$defaultValues','$dataSets']),_0xcaa913['config']['define']('mergeFields.dataSets',[]),_0xcaa913['config']['define']('mergeFields.definitions',[]),_0xcaa913['config']['define']('mergeFields.prefix','{{'),_0xcaa913['config']['define']('mergeFields.suffix','}}'),_0xcaa913['config']['define']('mergeFields.previewHtmlValues',!0x1),_0xcaa913['config']['define']('mergeFields.sanitizeHtml',_0x43b2a7=>(logWarning('merge-fields-provide-sanitize-function'),{'html':_0x43b2a7,'hasChanged':!0x1})),this['_mergeFieldPrefix']=_0xcaa913['config']['get']('mergeFields.prefix'),this['_mergeFieldSuffix']=_0xcaa913['config']['get']('mergeFields.suffix'),this['_shouldPreviewHtmlValues']=_0xcaa913['config']['get']('mergeFields.previewHtmlValues'),this['flattenedMergeFieldDefinitions']=this['_getFlattenedMergeFieldDefinitions'](),this['_validateConfig']();const _0x35ee66='\x5c'+this['_mergeFieldPrefix']['split']('')['join']('\x5c'),_0xeeb612='\x5c'+this['_mergeFieldSuffix']['split']('')['join']('\x5c');this['_mergeFieldRegExp']=new RegExp('('+_0x35ee66+'[^'+(_0x35ee66+_0xeeb612)+'\x20]+'+_0xeeb612+')','g'),this['availablePreviewModes']=this['_getAvailablePreviewModes']();const _0xbc6491=_0xcaa913['config']['get']('mergeFields.initialPreviewMode')||this['availablePreviewModes'][0x0];this['_validatePreviewMode'](_0xbc6491),this['set']('previewMode',_0xbc6491),this['_mergeFieldElements']=new Set();}['init'](){const _0x319f46=this['editor'];_0x319f46['commands']['add']('insertMergeField',new InsertMergeFieldCommand(_0x319f46)),_0x319f46['commands']['add']('insertMergeFieldBlock',new InsertMergeFieldBlockCommand(_0x319f46)),_0x319f46['commands']['add']('insertMergeFieldImage',new InsertMergeFieldImageCommand(_0x319f46)),_0x319f46['commands']['add']('previewMergeFields',new PreviewMergeFieldsCommand(_0x319f46)),this['_defineSchema'](),this['_defineConverters'](),this['_registerConversionPostFixer'](),this['listenTo'](this['editor']['editing']['view']['document'],'imageLoaded',this['_setupTooltipsTogglingForImageMergeField']),this['on']('change:previewMode',(_0x25808e,_0x5b6d2f,_0x5c7d32)=>{this['_validatePreviewMode'](_0x5c7d32),this['refreshMergeFields']();}),this['listenTo'](_0x319f46['model']['document'],'change:data',()=>{this['_trackAddedMergeFields']();}),_0x319f46['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x319f46['model'],_0x55682e=>_0x55682e['hasClass']('ck-merge-field'))),_0x319f46['editing']['mapper']['on']('viewToModelPosition',viewToModelPositionOutsideModelElement(_0x319f46['model'],_0x497ab9=>_0x497ab9['hasClass']('ck-merge-field-block'))),_0x319f46['editing']['view']['domConverter']['registerInlineObjectMatcher']({'name':'span','classes':['ck-merge-field']});}['afterInit'](){this['_disableCommandOnMergeFields']('ckboxImageEdit'),this['_disableCommandOnMergeFields']('uploadcareImageEdit'),checkLicense$8(this);}['isMergeField'](_0x38930e){return'mergeField'===_0x38930e['name']||'mergeFieldBlock'===_0x38930e['name']||!!('imageBlock'===_0x38930e['name']||'imageInline'===_0x38930e['name']&&_0x38930e['getAttribute']('src'))&&!!_0x38930e['getAttribute']('src')['match'](this['_mergeFieldRegExp']);}['getDefaultValues'](){const _0x714fc2={},_0x2b3af5=this['getMergeFieldsIds']();for(const _0x5d1b8a of _0x2b3af5)_0x714fc2[_0x5d1b8a]=this['getMergeFieldDefaultValue'](_0x5d1b8a);return _0x714fc2;}['getDataSetValues'](_0x48a210,_0x2adf3e=!0x1){const _0x56cf93={},_0xb8cfa8=this['getMergeFieldsIds']();for(const _0x1809b6 of _0xb8cfa8){let _0x2d8272=this['getMergeFieldValue'](_0x1809b6,_0x48a210);null===_0x2d8272&&_0x2adf3e&&(_0x2d8272=this['getMergeFieldDefaultValue'](_0x1809b6)),_0x56cf93[_0x1809b6]=_0x2d8272;}return _0x56cf93;}['getLabel'](_0x29f36e){const _0x5f9716=this['getDefinition'](_0x29f36e);return _0x5f9716&&_0x5f9716['label']?_0x5f9716['label']:null;}['getMergeFieldDefaultValue'](_0x42d5d5){const _0x263c28=this['getDefinition'](_0x42d5d5);if(!_0x263c28||void 0x0===_0x263c28['defaultValue'])return null;const _0x1a04b8='function'==typeof _0x263c28['defaultValue']?_0x263c28['defaultValue'](this['editor']):_0x263c28['defaultValue'];return String(_0x1a04b8);}['getMergeFieldValue'](_0xa60d0d,_0x579950){const _0x595b73=this['editor']['config']['get']('mergeFields.dataSets')['find'](_0x4f50cf=>_0x4f50cf['id']===_0x579950);if(!_0x595b73)throw new CKEditorError('merge-fields-data-set-not-found',null);const _0x5a0923=_0x595b73['values'][_0xa60d0d];if(void 0x0===_0x5a0923)return null;const _0x2d20a0='function'==typeof _0x5a0923?_0x5a0923(this['editor']):_0x5a0923;return String(_0x2d20a0);}['getMergeFieldType'](_0x3731a0){if('string'!=typeof _0x3731a0){const _0x5387ba=_0x3731a0;return'mergeField'===_0x5387ba['name']?'text':'mergeFieldBlock'===_0x5387ba['name']?'block':'imageBlock'!==_0x5387ba['name']&&'imageInline'!==_0x5387ba['name']||!_0x5387ba['getAttribute']('src')?null:_0x5387ba['getAttribute']('src')['match'](this['_mergeFieldRegExp'])?'image':null;}const _0x2e4aa2=this['getDefinition'](_0x3731a0);return _0x2e4aa2&&_0x2e4aa2['type']?_0x2e4aa2['type']:'text';}['getMergeFieldHeight'](_0x3a5c2b){const _0x13389e=this['getDefinition'](_0x3a5c2b);return _0x13389e&&'block'===_0x13389e['type']?_0x13389e['height']||DEFAULT_MERGE_FIELD_BLOCK_HEIGHT:_0x13389e&&'image'===_0x13389e['type']?_0x13389e['height']||DEFAULT_MERGE_FIELD_IMAGE_HEIGHT:null;}['getMergeFieldWidth'](_0x10501c){const _0x450f2c=this['getDefinition'](_0x10501c);return _0x450f2c&&'image'===_0x450f2c['type']?_0x450f2c['width']||DEFAULT_MERGE_FIELD_IMAGE_WIDTH:null;}['getDocumentMergeFieldsIds'](){const _0x48fcc9=new Set();for(const _0xa3c7dd of this['_mergeFieldElements'])'$graveyard'!==_0xa3c7dd['root']['rootName']&&('image'===this['getMergeFieldType'](_0xa3c7dd)?_0x48fcc9['add'](this['unwrapAffixes'](_0xa3c7dd['getAttribute']('src'))):_0x48fcc9['add'](_0xa3c7dd['getAttribute']('id')));return Array['from'](_0x48fcc9);}['getMergeFieldsIds'](){const _0x15dc0a=this['flattenedMergeFieldDefinitions']['map'](_0x374479=>_0x374479['id']),_0x2ba0de=this['getDocumentMergeFieldsIds']();return Array['from'](new Set([..._0x15dc0a,..._0x2ba0de]));}['getDefinition'](_0x551e89){return this['flattenedMergeFieldDefinitions']['find'](_0x1ba141=>_0x1ba141['id']===_0x551e89)||null;}['refreshMergeFields'](){this['_mergeFieldElements']['forEach'](_0xb6af78=>{'$graveyard'!==_0xb6af78['root']['rootName']&&this['editor']['editing']['reconvertItem'](_0xb6af78);});}['wrapInAffixes'](_0x58b742){return this['_mergeFieldPrefix']+_0x58b742+this['_mergeFieldSuffix'];}['unwrapAffixes'](_0x713702){return _0x713702['slice'](this['_mergeFieldPrefix']['length'],_0x713702['length']-this['_mergeFieldSuffix']['length']);}['_getFlattenedMergeFieldDefinitions'](){const _0x2b553d=new Set(),_0x1a32da=this['editor'];return _0x1a32da['config']['get']('mergeFields.definitions')['reduce']((_0x1814d8,_0x10f3ef)=>{if('groupId'in _0x10f3ef){if(_0x2b553d['has'](_0x10f3ef['groupId']))throw new CKEditorError('merge-fields-duplicate-group-id',_0x1a32da,{'duplicateId':_0x10f3ef['groupId']});_0x2b553d['add'](_0x10f3ef['groupId']);}return'groupId'in _0x10f3ef?function(_0x1a7f92,_0x183949){for(const _0x3c4cdd of _0x183949['definitions'])_0x1a7f92=_0x1a7f92['concat'](_0x3c4cdd);return _0x1a7f92;}['bind'](_0x1a32da)(_0x1814d8,_0x10f3ef):_0x1814d8['concat'](_0x10f3ef);},new Array());}['_validateConfig'](){const _0x277b2c=/^['"`!#%:;=@{}~$()*+/?[\\\]^|]+$/;if(!_0x277b2c['test'](this['_mergeFieldPrefix'])||!_0x277b2c['test'](this['_mergeFieldSuffix']))throw new CKEditorError('merge-fields-invalid-prefix-or-suffix',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix']});if(this['_mergeFieldPrefix']['length']>0x8||this['_mergeFieldSuffix']['length']>0x8)throw new CKEditorError('merge-fields-prefix-or-suffix-too-long',this,{'prefix':this['_mergeFieldPrefix'],'suffix':this['_mergeFieldSuffix'],'limit':0x8});const _0x439c96=new Set();if(this['flattenedMergeFieldDefinitions']['map'](_0x22937a=>{if(!ALLOWED_IN_IDS['test'](_0x22937a['id']))throw new CKEditorError('merge-fields-invalid-id',this,{'incorrectId':_0x22937a['id']});if(_0x439c96['has'](_0x22937a['id']))throw new CKEditorError('merge-fields-duplicate-merge-field-id',this,{'duplicateId':_0x22937a['id']});_0x439c96['add'](_0x22937a['id']);}),this['_mergeFieldPrefix']===this['_mergeFieldSuffix'])throw new CKEditorError('merge-fields-prefix-and-suffix-must-differ',this);const _0x6cbb96=this['editor']['config']['get']('mergeFields.previewModes'),_0x549495=['$labels','$defaultValues','$dataSets'];if(!_0x6cbb96['length']||!_0x6cbb96['every'](_0x14aa8a=>_0x549495['includes'](_0x14aa8a)))throw new CKEditorError('merge-fields-invalid-preview-modes-configuration',this,{'invalidConfig':_0x6cbb96});const _0x18c9d1=new Set(),_0x13ea36=this['editor']['config']['get']('mergeFields.dataSets');for(const _0x446000 of _0x13ea36){if(_0x18c9d1['has'](_0x446000['id']))throw new CKEditorError('merge-fields-duplicate-data-set-id',this,{'duplicateId':_0x446000['id']});_0x18c9d1['add'](_0x446000['id']);}}['_getAvailablePreviewModes'](){const _0x22064b=this['editor']['config']['get']('mergeFields.previewModes'),_0x41a178=[];if(_0x22064b['includes']('$labels')&&_0x41a178['push']('$labels'),_0x22064b['includes']('$defaultValues')&&_0x41a178['push']('$defaultValues'),_0x22064b['includes']('$dataSets')){const _0x3d2348=this['editor']['config']['get']('mergeFields.dataSets');_0x41a178['push'](..._0x3d2348['map'](_0x35bc5e=>_0x35bc5e['id']));}return _0x41a178;}['_defineSchema'](){const _0x50934b=this['editor']['model']['schema'];_0x50934b['register']('mergeField',{'inheritAllFrom':'$inlineObject','allowAttributes':['id'],'allowWhere':'$text'}),_0x50934b['register']('mergeFieldBlock',{'inheritAllFrom':'$blockObject','allowAttributes':['id']});}['_defineConverters'](){const _0x5d7cc5=this['editor']['conversion'];_0x5d7cc5['for']('upcast')['add'](_0x593d01=>{_0x593d01['on']('text',(_0x92b664,_0x4648b5,_0x1eb254)=>{const {writer:_0x199850,safeInsert:_0x1df827}=_0x1eb254,{viewItem:_0x1c6f81}=_0x4648b5,_0x4b84ef=_0x1c6f81['data']['split'](this['_mergeFieldRegExp'])['filter'](_0x4bbdff=>_0x4bbdff);if(0x1===_0x4b84ef['length']&&!_0x4b84ef[0x0]['match'](this['_mergeFieldRegExp']))return;if(!_0x4648b5['modelRange'])return;const _0x4b38e2=_0x199850['createElement']('$cursor');_0x199850['insert'](_0x4b38e2,_0x4648b5['modelCursor']);const _0x133f7d=[];for(const _0x32a3d9 of _0x4648b5['modelRange']['getItems']()){if(!_0x32a3d9['is']('$textProxy'))continue;const _0x2dcc0b=_0x32a3d9['textNode']['data']['matchAll'](this['_mergeFieldRegExp']),_0x113270=_0x32a3d9['parent'],_0x272af9=_0x32a3d9['textNode']['startOffset'];for(const _0x2b6ed5 of[..._0x2dcc0b]['reverse']()){const _0x41ac5=_0x2b6ed5[0x0],_0xb9124f=_0x199850['createPositionAt'](_0x113270,_0x2b6ed5['index']+_0x272af9),_0x53db38=_0xb9124f['getShiftedBy'](_0x41ac5['length']),_0x29f998=_0x199850['createRange'](_0xb9124f,_0x53db38),_0x44c1c3=this['unwrapAffixes'](_0x41ac5),_0xad962c=this['getMergeFieldType'](_0x44c1c3),_0x2f5daa='block'==_0xad962c?'mergeFieldBlock':'mergeField',_0x3fd180=_0x199850['createElement'](_0x2f5daa,{'id':_0x44c1c3});_0x199850['remove'](_0x29f998),_0x199850['insert'](_0x3fd180,_0xb9124f),'block'==_0xad962c&&_0x133f7d['push'](_0x3fd180);}}_0x133f7d['reverse']();for(const _0x12cfe7 of _0x133f7d){const _0x42dce2=_0x199850['createPositionBefore'](_0x12cfe7),_0x30a6b7=_0x12cfe7['nextSibling']==_0x4b38e2;_0x199850['remove'](_0x12cfe7),_0x1df827(_0x12cfe7,_0x42dce2)&&_0x30a6b7&&_0x199850['move'](_0x199850['createRangeOn'](_0x4b38e2),_0x199850['createPositionAfter'](_0x12cfe7));}_0x4648b5['modelCursor']=_0x199850['createPositionBefore'](_0x4b38e2),_0x4648b5['modelRange']=_0x199850['createRange'](_0x4648b5['modelRange']['start'],_0x4648b5['modelCursor']),_0x199850['remove'](_0x4b38e2);},{'priority':priorities['get']('lowest')-0x1});}),_0x5d7cc5['for']('upcast')['elementToElement']({'view':{'name':'span','attributes':'data-ck-merge-field'},'model':(_0xc56fbe,{writer:_0x384ee5})=>_0x384ee5['createElement']('mergeField',{'id':_0xc56fbe['getAttribute']('data-ck-merge-field')})}),_0x5d7cc5['for']('upcast')['elementToElement']({'view':{'name':'div','attributes':'data-ck-merge-field'},'model':(_0x5f579d,{writer:_0x76582d})=>_0x76582d['createElement']('mergeFieldBlock',{'id':_0x5f579d['getAttribute']('data-ck-merge-field')})}),_0x5d7cc5['for']('upcast')['add'](this['_upcastSrcAttributeFromClipboard']()),_0x5d7cc5['for']('editingDowncast')['elementToElement']({'model':'mergeField','view':(_0x272e37,{writer:_0x5ef150})=>this['_createMergeFieldWidget'](_0x272e37,_0x5ef150,'text')}),_0x5d7cc5['for']('dataDowncast')['elementToElement']({'model':'mergeField','view':(_0x19cd25,{writer:_0x15779,options:_0x544afa})=>this['_createTextualMergeField'](_0x19cd25,_0x15779,_0x544afa)}),_0x5d7cc5['for']('editingDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x4757f9,{writer:_0x2c009a})=>this['_createMergeFieldWidget'](_0x4757f9,_0x2c009a,'block')}),_0x5d7cc5['for']('dataDowncast')['elementToElement']({'model':'mergeFieldBlock','view':(_0x1f0f4c,{writer:_0x414535,options:_0x4d792e})=>this['_createTextualMergeField'](_0x1f0f4c,_0x414535,_0x4d792e)}),_0x5d7cc5['for']('editingDowncast')['add'](this['_downcastSrcAttributeToEditing']('imageBlock'))['add'](this['_downcastSrcAttributeToEditing']('imageInline')),_0x5d7cc5['for']('dataDowncast')['add'](this['_downcastSrcAttributeToData']('imageBlock'))['add'](this['_downcastSrcAttributeToData']('imageInline'));}['_upcastSrcAttributeFromClipboard'](){return _0x464b0f=>{_0x464b0f['on']('element:img',(_0x573850,_0x3905d6,_0x3ad700)=>{_0x3ad700['consumable']['test'](_0x3905d6['viewItem'],{'attributes':'data-ck-merge-field'})&&(_0x3ad700['writer']['setAttribute']('src',this['wrapInAffixes'](_0x3905d6['viewItem']['getAttribute']('data-ck-merge-field')),_0x3905d6['modelCursor']['nodeBefore']),_0x3ad700['consumable']['consume'](_0x3905d6['viewItem'],{'attributes':'data-ck-merge-field'}));},{'priority':'low'});};}['_downcastSrcAttributeToData'](_0x5bdf9b){const _0x49a306=this['editor']['plugins']['get']('ImageUtils'),_0x15575f=(_0xfd6480,_0x5022ad,_0x22ab5c)=>{if(!0x1!==_0x22ab5c['consumable']['test'](_0x5022ad['item'],_0xfd6480['name']))return;if(!String(_0x5022ad['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x283d06=_0x22ab5c['writer'],_0x2a37de=_0x22ab5c['mapper']['toViewElement'](_0x5022ad['item']),_0x40cbba=_0x49a306['findViewImgElement'](_0x2a37de),_0x39e05c=String(_0x5022ad['attributeNewValue']),_0x582985=this['unwrapAffixes'](_0x39e05c),_0x2d02f1=_0x22ab5c['options']['mergeFieldsData'];if(_0x22ab5c['options']['isClipboardPipeline']&&'$labels'!==this['previewMode']){let _0x2b8401;return _0x2b8401='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x582985)||this['getLabel'](_0x582985)||this['wrapInAffixes'](_0x582985):this['getMergeFieldValue'](_0x582985,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x582985)||this['getLabel'](_0x582985)||this['wrapInAffixes'](_0x582985),_0x283d06['setAttribute']('data-ck-merge-field',_0x582985,_0x40cbba),void _0x283d06['setAttribute'](_0x5022ad['attributeKey'],_0x2b8401,_0x40cbba);}const _0xd36361=_0x2d02f1&&_0x2d02f1[_0x582985]?_0x2d02f1[_0x582985]:_0x39e05c;_0x283d06['setAttribute'](_0x5022ad['attributeKey'],_0xd36361,_0x40cbba);};return _0x1d83ff=>{_0x1d83ff['on']('attribute:src:'+_0x5bdf9b,_0x15575f,{'priority':'low'});};}['_downcastSrcAttributeToEditing'](_0x592613){const _0x1c9196=this['editor']['plugins']['get']('ImageUtils'),_0x343a3e=(_0x469d4b,_0x2a4244,_0x1060a8)=>{if(!0x1!==_0x1060a8['consumable']['test'](_0x2a4244['item'],_0x469d4b['name']))return;if(!String(_0x2a4244['attributeNewValue'])['match'](this['_mergeFieldRegExp']))return;const _0x5e90bc=_0x1060a8['writer'],_0x2f9274=_0x1060a8['mapper']['toViewElement'](_0x2a4244['item']),_0x213fae=_0x1c9196['findViewImgElement'](_0x2f9274),_0x57af92=String(_0x2a4244['attributeNewValue']),_0x6805e8=this['unwrapAffixes'](_0x57af92),_0xa0d3a=this['getMergeFieldDefaultValue'](_0x6805e8),_0x2a36e1='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC';let _0x1d63ae,_0xf93c1f='',_0x313dd7='';if('$labels'===this['previewMode'])_0x1d63ae=_0x2a36e1;else{if('$defaultValues'===this['previewMode'])_0xa0d3a?(_0x1d63ae=_0xa0d3a,_0x313dd7='\x20ck-merge-field-image_with-value'):(_0x1d63ae=_0x2a36e1,_0xf93c1f='WARNING_MISSING_DEFAULT_VALUE',_0x313dd7='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_no-default');else{const _0x1b6dff=this['getMergeFieldValue'](_0x6805e8,this['previewMode']);_0x1b6dff?(_0x1d63ae=_0x1b6dff,_0x313dd7='\x20ck-merge-field-image_with-value'):_0xa0d3a?(_0x1d63ae=_0xa0d3a,_0x313dd7='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_default-value-used',_0xf93c1f='WARNING_MISSING_DATA_USED_DEFAULT_VALUE'):(_0x1d63ae=_0x2a36e1,_0x313dd7='\x20ck-merge-field-image_with-warning\x20ck-merge-field-image_with-warning_missing-data',_0xf93c1f='WARNING_MISSING_DATA');}}if(_0x5e90bc['addClass']('ck-merge-field-image'+_0x313dd7,_0x2f9274),_0x5e90bc['setAttribute'](_0x2a4244['attributeKey'],_0x1d63ae,_0x213fae),'$labels'===this['previewMode']){const _0x51b17f='imageInline'===_0x592613?'span':'div',_0x5f2b36=this['_mergeFieldPrefix'],_0x52f2fa=this['_mergeFieldSuffix'],_0x1e1b0d=_0x5e90bc['createContainerElement'](_0x51b17f,{'class':'ck-merge-field','data-cke-tooltip-instant':'true'},[_0x5e90bc['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x24cc78){const _0x39000e=this['toDomElement'](_0x24cc78);return _0x39000e['innerHTML']=_0x5f2b36,_0x39000e;}),_0x5e90bc['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5e90bc['createText'](this['getLabel'](_0x6805e8)||_0x6805e8)),_0x5e90bc['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x58b332){const _0x3019cf=this['toDomElement'](_0x58b332);return _0x3019cf['innerHTML']=_0x52f2fa,_0x3019cf;})]);_0x5e90bc['insert'](_0x5e90bc['createPositionAt'](_0x2f9274,'end'),_0x1e1b0d),_0x5e90bc['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x6805e8)||_0x6805e8,_0x1e1b0d);}else{if(_0xf93c1f&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0xf93c1f)){const _0x2609a1='imageInline'===_0x592613?'span':'div',_0xe6005=_0x313dd7['replace'](/ck-merge-field-image/g,'ck-merge-field'),_0x2f6375=_0x5e90bc['createContainerElement'](_0x2609a1,{'class':'ck-merge-field'+_0xe6005,'data-cke-tooltip-instant':'true'},[_0x5e90bc['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x5e90bc['createText'](this['getLabel'](_0x6805e8)||_0x6805e8))]),_0x149e7e=_0x5e90bc['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x577b7f){const _0x515f5a=this['toDomElement'](_0x577b7f),_0x5f307a=new IconView();return _0x5f307a['set']({'content':IconWarning}),_0x5f307a['render'](),_0x515f5a['appendChild'](_0x5f307a['element']),_0x515f5a;});_0x5e90bc['insert'](_0x5e90bc['createPositionAt'](_0x2f6375,'end'),_0x149e7e),_0x5e90bc['insert'](_0x5e90bc['createPositionAt'](_0x2f9274,'end'),_0x2f6375),_0x5e90bc['setCustomProperty']('mergeFieldStatus',_0xf93c1f,_0x2f6375),_0x5e90bc['setAttribute']('data-cke-tooltip-text',this['getLabel'](_0x6805e8)||_0x6805e8,_0x2f6375);}}_0x5e90bc['setAttribute']('data-merge-field-name',_0x6805e8,_0x2f9274),_0xf93c1f&&_0x5e90bc['setCustomProperty']('mergeFieldStatus',_0xf93c1f,_0x2f9274);};return _0x1f2385=>{_0x1f2385['on']('attribute:src:'+_0x592613,_0x343a3e,{'priority':'low'});};}['_setupTooltipsTogglingForImageMergeField'](_0x5693b0,_0x392143){if(!_0x392143['target'])return null;const _0x562328=_0x392143['target']['parentElement'];return _0x562328&&_0x562328['classList']['contains']('ck-merge-field-image')?new _0x3ccca1(_0x562328,_0x240d1b=>{const _0x3c0889=_0x240d1b['target'],_0x3b85e0=_0x3c0889['querySelector']('.ck-merge-field'),_0x5679b7=_0x3c0889['querySelector']('.ck-merge-field__content');_0x3b85e0&&_0x5679b7&&(_0x5679b7['scrollWidth']>_0x5679b7['getBoundingClientRect']()['width']?_0x3b85e0['removeAttribute']('data-cke-tooltip-disabled'):_0x3b85e0['setAttribute']('data-cke-tooltip-disabled','true'));}):null;}['_createMergeFieldWidget'](_0x634f8,_0x2078a3,_0x2c5c25){const {label:_0x249bbc,classes:_0x34c345,status:_0x47e64b,height:_0x28700a}=this['_prepareViewElementData'](_0x634f8),_0x36f709=this['_mergeFieldPrefix'],_0x50d7b6=this['_mergeFieldSuffix'],_0x4d83c9=this['editor']['config']['get']('mergeFields.sanitizeHtml'),_0x2cdef8='text'===_0x2c5c25?'span':'div';let _0x3eb78d;if('$labels'===this['previewMode'])_0x3eb78d=_0x2078a3['createContainerElement'](_0x2cdef8,{'class':_0x34c345},[_0x2078a3['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x1bfabe){const _0x4d279b=this['toDomElement'](_0x1bfabe);return _0x4d279b['innerHTML']=_0x36f709,_0x4d279b;}),_0x2078a3['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x2078a3['createText'](String(_0x249bbc))),_0x2078a3['createUIElement']('span',{'class':'ck-merge-field__affix'},function(_0x41522e){const _0x1ce276=this['toDomElement'](_0x41522e);return _0x1ce276['innerHTML']=_0x50d7b6,_0x1ce276;})]);else{if(_0x47e64b){const _0x4191cd=this['_shouldPreviewHtmlValues']?_0x2078a3['createRawElement']('span',{'class':'ck-merge-field__content'},function(_0x15de4a,_0x2aaee4){_0x2aaee4['setContentOf'](_0x15de4a,_0x4d83c9(_0x249bbc)['html']);}):_0x2078a3['createContainerElement']('span',{'class':'ck-merge-field__content'},_0x2078a3['createText'](_0x249bbc));if(_0x3eb78d=_0x2078a3['createContainerElement'](_0x2cdef8,{'class':_0x34c345},[_0x4191cd]),'text'===_0x2c5c25||['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x47e64b)){const _0xeaee30=_0x2078a3['createUIElement']('span',{'class':'ck-merge-field__icon'},function(_0x214086){const _0x52dadd=this['toDomElement'](_0x214086),_0x264889=new IconView();return _0x264889['set']({'content':IconWarning}),_0x264889['render'](),_0x52dadd['appendChild'](_0x264889['element']),_0x52dadd;});_0x2078a3['insert'](_0x2078a3['createPositionAt'](_0x3eb78d,'end'),_0xeaee30);}_0x2078a3['setCustomProperty']('mergeFieldStatus',_0x47e64b,_0x3eb78d);}else{const _0x10412d=this['_shouldPreviewHtmlValues']?_0x2078a3['createRawElement'](_0x2cdef8,{},function(_0x27e3f6,_0x4dde59){_0x4dde59['setContentOf'](_0x27e3f6,_0x4d83c9(_0x249bbc)['html']);}):_0x2078a3['createText'](_0x249bbc);_0x3eb78d=_0x2078a3['createContainerElement'](_0x2cdef8,{'class':_0x34c345},_0x10412d);}}if('block'===_0x2c5c25){const _0x5e82f9=_0x2078a3['createContainerElement']('div',{'class':'ck-merge-field-block'},[_0x3eb78d]);if(('$labels'===this['previewMode']||_0x47e64b&&['WARNING_MISSING_DEFAULT_VALUE','WARNING_MISSING_DATA']['includes'](_0x47e64b))&&_0x2078a3['setAttribute']('style','height:\x20'+_0x28700a+'px',_0x5e82f9),_0x3eb78d['hasClass']('ck-merge-field_with-value'))_0x2078a3['addClass']('ck-merge-field-block_with-value',_0x5e82f9);else{if(_0x3eb78d['hasClass']('ck-merge-field_with-warning')){for(const _0x5f0df9 of _0x3eb78d['getClassNames']())if('ck-merge-field'!==_0x5f0df9){const _0x3c5950=_0x5f0df9['replace']('ck-merge-field','ck-merge-field-block');_0x2078a3['addClass'](_0x3c5950,_0x5e82f9);}_0x2078a3['setCustomProperty']('mergeFieldStatus',_0x47e64b,_0x5e82f9);}}return _0x2078a3['setCustomProperty']('mergeFieldBlock',!0x0,_0x5e82f9),_0x2078a3['setAttribute']('data-merge-field-name',_0x634f8['getAttribute']('id'),_0x5e82f9),toWidget(_0x5e82f9,_0x2078a3,{'hasSelectionHandle':!0x0});}return _0x2078a3['setCustomProperty']('mergeField',!0x0,_0x3eb78d),_0x2078a3['setAttribute']('data-merge-field-name',_0x634f8['getAttribute']('id'),_0x3eb78d),toWidget(_0x3eb78d,_0x2078a3);}['_prepareViewElementData'](_0xa66cce){const _0x512e8c=_0xa66cce['getAttribute']('id'),_0x392569=this['getDefinition'](_0x512e8c);if(!_0x392569)return'$labels'===this['previewMode']?{'label':_0x512e8c,'classes':'ck-merge-field'}:{'label':_0x512e8c,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-definition','status':'WARNING_MISSING_DATA'};const _0x491bda=this['getLabel'](_0x512e8c)||_0x512e8c,_0xc1f97b=this['getMergeFieldDefaultValue'](_0x512e8c),_0x4ef8e9=this['getMergeFieldHeight'](_0x512e8c);if('$labels'===this['previewMode'])return{'label':_0x491bda,'height':_0x4ef8e9,'classes':'ck-merge-field'};if('$defaultValues'===this['previewMode'])return _0xc1f97b?{'label':_0xc1f97b,'height':_0x4ef8e9,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:{'label':_0x491bda,'height':_0x4ef8e9,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_no-default','status':'WARNING_MISSING_DEFAULT_VALUE'};const _0x2704bb=this['getMergeFieldValue'](_0x392569['id'],this['previewMode']);return _0x2704bb?{'label':_0x2704bb,'height':_0x4ef8e9,'classes':'ck-merge-field\x20ck-merge-field_with-value'}:_0xc1f97b?{'label':_0xc1f97b,'height':_0x4ef8e9,'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':_0x491bda,'height':_0x4ef8e9,'classes':'ck-merge-field\x20ck-merge-field_with-warning\x20ck-merge-field_with-warning_missing-data','status':'WARNING_MISSING_DATA'};}['_createTextualMergeField'](_0x52d319,_0x1c7df9,_0x37df19){const _0x3f99b6=_0x52d319['getAttribute']('id');let _0x2b4ddd;if(_0x37df19['isClipboardPipeline']&&'$labels'!==this['previewMode'])return this['_downcastForClipboard'](_0x3f99b6,_0x1c7df9);const _0x52ae45=_0x37df19['mergeFieldsData'],_0x1d3139=_0x52ae45&&_0x52ae45[_0x3f99b6]?_0x52ae45[_0x3f99b6]:this['wrapInAffixes'](_0x3f99b6);if(_0x52ae45)_0x2b4ddd=_0x1c7df9['createRawElement']('span',{},function(_0x150d0b,_0x48c1a9){_0x48c1a9['setContentOf'](_0x150d0b,String(_0x1d3139));});else{_0x2b4ddd=_0x1c7df9['createContainerElement']('span');const _0x435e7b=_0x1c7df9['createText'](_0x1d3139);_0x1c7df9['insert'](_0x1c7df9['createPositionAt'](_0x2b4ddd,'end'),_0x435e7b);}return _0x1c7df9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b4ddd),_0x2b4ddd;}['_downcastForClipboard'](_0x504c86,_0x2b1c29){const _0x37bcfc='block'===this['getMergeFieldType'](_0x504c86)?'div':'span';let _0x297ba9,_0x113c97;_0x297ba9='$defaultValues'===this['previewMode']?this['getMergeFieldDefaultValue'](_0x504c86)||this['getLabel'](_0x504c86)||this['wrapInAffixes'](_0x504c86):this['getMergeFieldValue'](_0x504c86,this['previewMode'])||this['getMergeFieldDefaultValue'](_0x504c86)||this['getLabel'](_0x504c86)||this['wrapInAffixes'](_0x504c86);const _0x4110c7=this['editor']['config']['get']('mergeFields.sanitizeHtml');return _0x113c97=this['_shouldPreviewHtmlValues']?_0x2b1c29['createRawElement'](_0x37bcfc,{'data-ck-merge-field':_0x504c86},function(_0x4cefa3,_0x3ecaad){_0x3ecaad['setContentOf'](_0x4cefa3,_0x4110c7(_0x297ba9)['html']);}):_0x2b1c29['createContainerElement'](_0x37bcfc,{'data-ck-merge-field':_0x504c86},_0x2b1c29['createText'](_0x297ba9)),_0x113c97;}['_validatePreviewMode'](_0x165af0){if(!this['availablePreviewModes']['includes'](_0x165af0))throw new CKEditorError('merge-fields-invalid-preview-mode-set',this,{'availablePreviewModes':this['availablePreviewModes'],'previewMode':_0x165af0});}['_trackAddedMergeFields'](){for(const _0x5ccd5a of this['editor']['model']['document']['differ']['getChanges']({'includeChangesInGraveyard':!0x0})){if('insert'!==_0x5ccd5a['type']||'$text'===_0x5ccd5a['name'])continue;if('mergeField'===_0x5ccd5a['name']||'mergeFieldBlock'===_0x5ccd5a['name']){this['_mergeFieldElements']['add'](_0x5ccd5a['position']['nodeAfter']);continue;}if('imageInline'===_0x5ccd5a['name']||'imageBlock'===_0x5ccd5a['name']&&_0x5ccd5a['attributes']['get']('src')&&String(_0x5ccd5a['attributes']['get']('src'))['match'](this['_mergeFieldRegExp'])){this['_mergeFieldElements']['add'](_0x5ccd5a['position']['nodeAfter']);continue;}const _0x6d33fc=this['editor']['model']['createRangeIn'](_0x5ccd5a['position']['nodeAfter']);for(const _0x44cccd of _0x6d33fc['getItems']())_0x44cccd['is']('element')&&this['isMergeField'](_0x44cccd)&&this['_mergeFieldElements']['add'](_0x44cccd);}}['_registerConversionPostFixer'](){const _0x4947ca=this['editor'];_0x4947ca['model']['document']['registerPostFixer'](_0x506003=>{if(!_0x506003['batch']['isLocal'])return!0x1;const _0x2d7ae1=[],_0xc6d042=new Set(),_0x321236=this['_mergeFieldRegExp'];let _0x1145a4=!0x1;for(const _0x4d3f48 of _0x4947ca['model']['document']['differ']['getChanges']())if('insert'===_0x4d3f48['type']||'remove'===_0x4d3f48['type']){let _0x45780b='$text'==_0x4d3f48['name']?_0x4d3f48['position']['parent']:_0x4d3f48['position']['nodeAfter'];if(!_0x45780b)continue;_0x45780b['is']('$text')&&(_0x45780b=_0x45780b['parent']),_0x4bce98(_0x45780b);}for(const _0x2e5ad7 of _0x2d7ae1['reverse']()){const {match:_0x59eae2,item:_0x5fc3f6}=_0x2e5ad7,_0x3e8df4=_0x506003['createPositionAt'](_0x5fc3f6,_0x59eae2['index']),_0x280974=_0x3e8df4['getShiftedBy'](_0x59eae2[0x0]['length']),_0x14e723=_0x506003['createRange'](_0x3e8df4,_0x280974),_0x2c449d=_0x59eae2[0x0],_0x29bca3=this['unwrapAffixes'](_0x2c449d),_0x1a8f89=_0x17b6e3(_0x14e723),_0x1f5419=this['getMergeFieldType'](_0x29bca3);if(ALLOWED_IN_IDS['test'](_0x29bca3)){if(_0x1a8f89['set']('id',_0x29bca3),'block'===_0x1f5419){const _0x20a332=_0x506003['createElement']('mergeFieldBlock',{'id':_0x29bca3});_0x506003['remove'](_0x14e723),_0x4947ca['model']['insertObject'](_0x20a332,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{if('image'===_0x1f5419){const _0x261889=_0x506003['createElement']('imageBlock',{'src':this['wrapInAffixes'](_0x29bca3)});_0x506003['remove'](_0x14e723),_0x4947ca['model']['insertObject'](_0x261889,null,null,{'setSelection':'on','findOptimalPosition':void 0x0});}else{const _0x75d909=_0x506003['createElement']('mergeField',_0x1a8f89);_0x4947ca['model']['schema']['checkChild'](_0x14e723['start'],'mergeField')?_0x4947ca['model']['insertObject'](_0x75d909,_0x14e723):_0x506003['remove'](_0x14e723);}}_0x1145a4=!0x0;}}return _0x1145a4;function _0x4bce98(_0x18fa02){let _0x2d74a0='',_0x3a63a0=0x0;if(!_0xc6d042['has'](_0x18fa02))for(const _0xe6f59 of _0x18fa02['getChildren']()){const _0x36270d=_0xe6f59['nextSibling'];if(_0xe6f59['is']('$text')&&(''===_0x2d74a0&&_0xe6f59['startOffset']&&(_0x3a63a0=_0xe6f59['startOffset']),_0x2d74a0+=_0xe6f59['data']),!_0x36270d||_0x36270d['is']('element')){for(const _0x3d34dd of _0x2d74a0['matchAll'](_0x321236))_0x3d34dd['index']=_0x3d34dd['index']+_0x3a63a0,_0x2d7ae1['push']({'match':_0x3d34dd,'item':_0x18fa02});_0xc6d042['add'](_0x18fa02),_0x2d74a0='';}_0xe6f59['is']('element')&&_0x4bce98(_0xe6f59);}}function _0x17b6e3(_0x3f174a){const _0x158f2d=_0x3f174a['getItems'](),_0x2dd059=_0x158f2d['next']()['value'],_0x3aeb50=new Map(_0x2dd059['getAttributes']());for(const _0x2e1ca6 of _0x158f2d)for(const [_0x6ffbd7,_0xe8f0b0]of _0x3aeb50)_0x2e1ca6['getAttribute'](_0x6ffbd7)!==_0xe8f0b0&&_0x3aeb50['delete'](_0x6ffbd7);return _0x3aeb50;}});}['_disableCommandOnMergeFields'](_0x4b7200){const _0xa344cc=this['editor'],_0x51fec6=_0xa344cc['commands']['get'](_0x4b7200);_0x51fec6&&_0x51fec6['on']('set:isEnabled',(_0xff2fdb,_0x2f0ccd,_0x2dce82)=>{if(0x1==_0x2dce82){const _0x4046f7=_0xa344cc['model']['document']['selection']['getSelectedElement']();_0x4046f7&&this['isMergeField'](_0x4046f7)&&(_0xff2fdb['return']=!0x1,_0xff2fdb['stop']());}});}}async function checkLicense$8(_0x174dc7){const _0x44e316=_0x73d476([0x63,0x76,0x71,0x43,0x59,0x4d,0x38,0x69,0x61,0x39,0x54,0x44,0x50,0x36,0x6e,0x35,0x64,0x6d,0x72,0x7a,0x62,0x4a,0x74,0x6c,0x6a,0x30,0x33,0x46,0x77,0x4c,0x78,0x49,0x70,0x45,0x57,0x53,0x55,0x47,0x37,0x41,0x52,0x75,0x32,0x31,0x4b,0x66,0x51,0x6f,0x58,0x4e,0x79,0x67,0x34,0x5a,0x42,0x65,0x4f,0x68,0x73,0x6b,0x48,0x56]),_0x2f6172=window[_0x73d476([0x44,0x61,0x74,0x65])][_0x73d476([0x6e,0x6f,0x77])](),_0x12b3cf=_0x174dc7[_0x73d476([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x482ed4=new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a79b2=>{_0x12b3cf[_0x73d476([0x6f,0x6e,0x63,0x65])](_0x73d476([0x72,0x65,0x61,0x64,0x79]),_0x5a79b2);}),_0x1959e5={[_0x73d476([0x6b,0x74,0x79])]:_0x73d476([0x45,0x43]),[_0x73d476([0x75,0x73,0x65])]:_0x73d476([0x73,0x69,0x67]),[_0x73d476([0x63,0x72,0x76])]:_0x73d476([0x50,0x2d,0x32,0x35,0x36]),[_0x73d476([0x78])]:_0x73d476([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x73d476([0x79])]:_0x73d476([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x73d476([0x61,0x6c,0x67])]:_0x73d476([0x45,0x53,0x32,0x35,0x36])},_0x437b46=_0x12b3cf[_0x73d476([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x73d476([0x67,0x65,0x74])](_0x73d476([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4e6881=await(async function(){let _0x1ff18a,_0x5851d5=null,_0x25d838=null;try{if(_0x437b46==_0x73d476([0x47,0x50,0x4c]))return _0x73d476([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ff18a=(function(){const _0x2c8215=_0x437b46[_0x73d476([0x73,0x70,0x6c,0x69,0x74])](_0x73d476([0x2e]));if(0x3!=_0x2c8215[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1a6932=_0x2c8215[0x1];return _0x4f74b9(_0x1a6932);function _0x4f74b9(_0x4ce1a3){const _0x2c3f2b=_0x581852(_0x4ce1a3);return _0x2c3f2b&&_0x52c23c()?_0x2c3f2b:null;function _0x52c23c(){const _0x2a773f=_0x2c3f2b[_0x73d476([0x6a,0x74,0x69])],_0x511acd=window[_0x73d476([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a773f[_0x73d476([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a773f[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34f286={..._0x2c3f2b,[_0x73d476([0x6a,0x74,0x69])]:_0x2a773f[_0x73d476([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a773f[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34f286[_0x73d476([0x76,0x63])],_0x19dbf7(_0x34f286)==_0x511acd;}}}()),!_0x1ff18a)return _0x73d476([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1ff18a[_0x73d476([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25d838=function(_0x19f631,_0x51b950){return new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fdfa6=>{if(_0x4030e1())return _0x4fdfa6(_0x73d476([0x56,0x61,0x6c,0x69,0x64]));_0x4d4bfa(),_0x12b3cf[_0x73d476([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x73d476([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd173b=!0x1;const _0x582ae1=uid();function _0x18f05c(_0x3d0263){return!!_0x3d0263&&(typeof _0x3d0263===_0x73d476([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d0263===_0x73d476([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d0263[_0x73d476([0x74,0x68,0x65,0x6e])]===_0x73d476([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d0263[_0x73d476([0x63,0x61,0x74,0x63,0x68])]===_0x73d476([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c1458(_0x1e4b54){_0x517e08(_0x1e4b54)[_0x73d476([0x74,0x68,0x65,0x6e])](_0x10e58c=>{if(!_0x10e58c||_0x10e58c[_0x73d476([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x73d476([0x6f,0x6b]))return _0x73d476([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38e187(_0x19dbf7(_0x582ae1+_0x51b950))!=_0x10e58c[_0x73d476([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x73d476([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x73d476([0x56,0x61,0x6c,0x69,0x64]);})[_0x73d476([0x74,0x68,0x65,0x6e])](_0x10e422=>(_0x202cb7(),_0x10e422),()=>{const _0x8614c7=_0x133c3f();return null==_0x8614c7?(_0x202cb7(),_0x73d476([0x56,0x61,0x6c,0x69,0x64])):_0x73d476(_0x2f6172-_0x8614c7>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x73d476([0x74,0x68,0x65,0x6e])](_0x4fdfa6)[_0x73d476([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fdfa6(_0x73d476([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3dd449=0x36ee80;function _0x202cb7(){const _0x489236=_0x73d476([0x6c,0x6c,0x63,0x74,0x2d])+_0x38e187(_0x19dbf7(_0x19f631)),_0x5cd98c=_0x43a542(_0x38e187(window[_0x73d476([0x4d,0x61,0x74,0x68])][_0x73d476([0x63,0x65,0x69,0x6c])](_0x2f6172/_0x3dd449)));window[_0x73d476([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73d476([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x489236,_0x5cd98c);}function _0x133c3f(){const _0x156049=_0x73d476([0x6c,0x6c,0x63,0x74,0x2d])+_0x38e187(_0x19dbf7(_0x19f631)),_0x5ce393=window[_0x73d476([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x73d476([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156049);return _0x5ce393?window[_0x73d476([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43a542(_0x5ce393),0x10)*_0x3dd449:null;}function _0x517e08(_0x858164){return new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33116c,_0x23ad2a)=>{_0x858164[_0x73d476([0x74,0x68,0x65,0x6e])](_0x33116c,_0x23ad2a),window[_0x73d476([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23ad2a,0x1d4c0);});}}_0x12b3cf[_0x73d476([0x6f,0x6e])](_0x73d476([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48d6dd,_0x38fc97)=>{if(_0x38fc97[0x0]!=_0x19f631)return _0x4fdfa6(_0x73d476([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38fc97[0x1]={..._0x38fc97[0x1],[_0x73d476([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x582ae1};},{[_0x73d476([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73d476([0x68,0x69,0x67,0x68])}),_0x12b3cf[_0x73d476([0x6f,0x6e])](_0x73d476([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17892c=>{_0x18f05c(_0x17892c[_0x73d476([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd173b=!0x0,_0x3c1458(_0x17892c[_0x73d476([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x73d476([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x73d476([0x6c,0x6f,0x77])}),_0x482ed4[_0x73d476([0x74,0x68,0x65,0x6e])](()=>{_0xd173b||_0x4fdfa6(_0x73d476([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4030e1(){return _0x12b3cf[_0x73d476([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73d476([0x76,0x69,0x65,0x77])][_0x73d476([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x73d476([0x61,0x75,0x74,0x6f]);}function _0x4d4bfa(){_0x12b3cf[_0x73d476([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x73d476([0x76,0x69,0x65,0x77])][_0x73d476([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x73d476([0x61,0x75,0x74,0x6f]);}}(_0x1ff18a[_0x73d476([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ff18a[_0x73d476([0x6a,0x74,0x69])]));const _0xcf8d1e=await(async function(){let _0x3483be=!0x0;try{const _0x4f1be0=_0x437b46[_0x73d476([0x73,0x70,0x6c,0x69,0x74])](_0x73d476([0x2e])),[_0x46912d,_0x4e1d85,_0x4f2264]=_0x4f1be0;return _0x3adfcd(_0x46912d),await _0x1d4684(_0x46912d,_0x4e1d85,_0x4f2264),_0x3483be;}catch{return!0x1;}function _0x3adfcd(_0x2c15cf){const _0x44178d=_0x581852(_0x2c15cf);_0x44178d&&_0x44178d[_0x73d476([0x61,0x6c,0x67])]==_0x73d476([0x45,0x53,0x32,0x35,0x36])||(_0x3483be=!0x1);}async function _0x1d4684(_0x50ef65,_0x2cde66,_0x1a2a4d){const _0x5b7ab0=window[_0x73d476([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x73d476([0x66,0x72,0x6f,0x6d])](_0x3b378c(_0x1a2a4d),_0xf15e23=>_0xf15e23[_0x73d476([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35e66e=new window[(_0x73d476([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x73d476([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50ef65+_0x73d476([0x2e])+_0x2cde66),_0x16ef82=window[_0x73d476([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x73d476([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16ef82)return;const _0x1e3698=await _0x16ef82[_0x73d476([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x73d476([0x6a,0x77,0x6b]),_0x1959e5,{[_0x73d476([0x6e,0x61,0x6d,0x65])]:_0x73d476([0x45,0x43,0x44,0x53,0x41]),[_0x73d476([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x73d476([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x73d476([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16ef82[_0x73d476([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x73d476([0x6e,0x61,0x6d,0x65])]:_0x73d476([0x45,0x43,0x44,0x53,0x41]),[_0x73d476([0x68,0x61,0x73,0x68])]:{[_0x73d476([0x6e,0x61,0x6d,0x65])]:_0x73d476([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e3698,_0x5b7ab0,_0x35e66e)||(_0x3483be=!0x1);}}());return _0xcf8d1e?(function(){const _0x5b0e35=_0x1ff18a[_0x73d476([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5b0e35)return!0x1;if(_0x5b0e35[_0x73d476([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73d476([0x2a])))return!0x0;if(_0x5b0e35[_0x73d476([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73d476([0x4d,0x46])))return!0x0;return!0x1;}())?(function(){const _0x367b6c=[_0x73d476([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x73d476([0x74,0x72,0x69,0x61,0x6c])][_0x73d476([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ff18a[_0x73d476([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f6172/0x3e8:0x69e02680;return _0x1ff18a[_0x73d476([0x65,0x78,0x70])]<_0x367b6c;}())?_0x73d476([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2e795c=_0x1ff18a[_0x73d476([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2e795c||0x0==_0x2e795c[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4d47e3}=new URL(window[_0x73d476([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2e795c[_0x73d476([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d47e3))return!0x0;const _0x129a20=_0x4d47e3[_0x73d476([0x73,0x70,0x6c,0x69,0x74])](_0x73d476([0x2e]));return _0x2e795c[_0x73d476([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x99f369=>_0x99f369[_0x73d476([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x73d476([0x2a])))[_0x73d476([0x6d,0x61,0x70])](_0x4c0760=>_0x4c0760[_0x73d476([0x73,0x70,0x6c,0x69,0x74])](_0x73d476([0x2e])))[_0x73d476([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4dc558=>_0x4dc558[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x129a20[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x73d476([0x6d,0x61,0x70])](_0x98e0c=>Array(_0x129a20[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x98e0c[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x73d476([0x66,0x69,0x6c,0x6c])](_0x98e0c[0x0]===_0x73d476([0x2a])?_0x73d476([0x2a]):'')[_0x73d476([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x98e0c))[_0x73d476([0x73,0x6f,0x6d,0x65])](_0x11ebbb=>_0x129a20[_0x73d476([0x65,0x76,0x65,0x72,0x79])]((_0x26c850,_0x38490b)=>_0x11ebbb[_0x38490b]===_0x26c850||_0x11ebbb[_0x38490b]===_0x73d476([0x2a])));}())?(_0x1ff18a[_0x73d476([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x73d476([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5851d5=function(_0x4e0217){const _0x2a0139=new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4188db=>setTimeout(_0x4188db,0x93ecc)),_0x2bc053=_0x482ed4[_0x73d476([0x74,0x68,0x65,0x6e])](()=>new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fbe9=>{let _0x4a5a82=0x0;_0x12b3cf[_0x73d476([0x6d,0x6f,0x64,0x65,0x6c])][_0x73d476([0x6f,0x6e])](_0x73d476([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xab9df5,_0x59c7a0)=>{_0x59c7a0[0x0][_0x73d476([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5a82++,0x5e8==_0x4a5a82&&(_0x12fbe9(),_0xab9df5[_0x73d476([0x6f,0x66,0x66])]());});})),_0x34f06b=[_0x2a0139,_0x2bc053];return window[_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x73d476([0x72,0x61,0x63,0x65])](_0x34f06b)[_0x73d476([0x74,0x68,0x65,0x6e])](()=>_0x4e0217);}(_0x73d476([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5851d5&&_0x25d838)return new window[(_0x73d476([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22a63d,_0x216928)=>{_0x5851d5[_0x73d476([0x74,0x68,0x65,0x6e])](_0x22a63d,_0x216928),_0x25d838[_0x73d476([0x74,0x68,0x65,0x6e])](_0x2fa57d=>{_0x2fa57d!=_0x73d476([0x56,0x61,0x6c,0x69,0x64])&&_0x22a63d(_0x2fa57d);},_0x216928);});return _0x5851d5||_0x25d838||_0x73d476([0x56,0x61,0x6c,0x69,0x64]);}())):_0x73d476([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x73d476([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x73d476([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x73d476([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x581852(_0xdcce87){return _0xdcce87[_0x73d476([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x73d476([0x65,0x79]))?JSON[_0x73d476([0x70,0x61,0x72,0x73,0x65])](_0x3b378c(_0xdcce87)):null;}function _0x3b378c(_0x958285){return window[_0x73d476([0x61,0x74,0x6f,0x62])](_0x958285[_0x73d476([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x73d476([0x2b]))[_0x73d476([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x73d476([0x2f])));}function _0x19dbf7(_0x5b512d){let _0x4f7040=0x1505;function _0x82e146(_0x2a221d){for(let _0x185d14=0x0;_0x185d14<_0x2a221d[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x185d14++){const _0x5b84d9=_0x2a221d[_0x73d476([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x185d14);_0x4f7040=(_0x4f7040<<0x5)+_0x4f7040+_0x5b84d9,_0x4f7040&=_0x4f7040;}}return function _0x1f86de(_0x530a41){Array[_0x73d476([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x530a41)?_0x530a41[_0x73d476([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f86de):_0x530a41&&typeof _0x530a41==_0x73d476([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x73d476([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x530a41)[_0x73d476([0x73,0x6f,0x72,0x74])]()[_0x73d476([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x17c8eb,_0x3a7c30])=>{_0x82e146(_0x17c8eb),_0x1f86de(_0x3a7c30);}):_0x82e146(window[_0x73d476([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x530a41));}(_0x5b512d),_0x4f7040>>>0x0;}function _0x38e187(_0x1d3e8f){return _0x1d3e8f[_0x73d476([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x73d476([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x73d476([0x30]));}function _0x43a542(_0x9c65eb){return _0x9c65eb[_0x73d476([0x73,0x70,0x6c,0x69,0x74])]('')[_0x73d476([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x73d476([0x6a,0x6f,0x69,0x6e])]('');}function _0x17c284(){}function _0x73d476(_0x4b7867){return _0x4b7867['map'](_0x365bc2=>String['fromCharCode'](_0x365bc2))['join']('');}!function(_0x259e1a){const _0x5dec1a=(function(){const _0x17e967=window[_0x73d476([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x73d476([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x73d476([0x6e,0x6f,0x77])]())[_0x73d476([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x73d476([0x2e]),'');let _0x33d955=_0x73d476([0x63]);for(let _0x5b7e6c=0x0;_0x5b7e6c<_0x17e967[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b7e6c+=0x2){let _0x117840=window[_0x73d476([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e967[_0x73d476([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b7e6c,_0x5b7e6c+0x2));_0x117840>=_0x44e316[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x117840-=_0x44e316[_0x73d476([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33d955+=_0x44e316[_0x117840];}return _0x33d955;}());_0x12b3cf[_0x5dec1a]=_0x73d476([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x259e1a,_0x259e1a!=_0x73d476([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x482ed4,_0x12b3cf[_0x73d476([0x6d,0x6f,0x64,0x65,0x6c])][_0x73d476([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17c284,_0x12b3cf[_0x73d476([0x6d,0x6f,0x64,0x65,0x6c])][_0x73d476([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17c284,_0x12b3cf[_0x73d476([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x73d476([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4e6881);}class MergeFieldsListView extends ListView{['filter'](_0x32addf){return filterGroupAndItemNames(_0x32addf,this['items']);}}class MergeFieldsPanelView extends View{constructor(_0x4738d9){super(_0x4738d9),this['set']('text','');const _0x19345e=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':_0x19345e['to']('text')}]}]});}}function getTranslation$8(_0x57d7d2,_0x5ee299){const t=_0x57d7d2['t'];switch(_0x5ee299){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 _0x5ee299;}}class MergeFieldsUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_balloon'];['_balloonPanelView']=null;static get['requires'](){return['Mention',MergeFieldsEditing,ContextualBalloon,Widget];}static get['pluginName'](){return'MergeFieldsUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x165fd2){super(_0x165fd2),this['_removeDefaultValuesPreviewIfUnnecessary'](),this['_removeMenuBarButtonIfUnnecessary'](),this['_setupMentionConfiguration']();}['init'](){const _0x55a890=this['editor'];_0x55a890['ui']['componentFactory']['add']('insertMergeField',_0x594168=>{const _0x347723=createInsertMergeFieldDropdown(_0x594168);return _0x347723['bind']('isEnabled')['toMany']([_0x55a890['commands']['get']('insertMergeField'),_0x55a890['commands']['get']('insertMergeFieldBlock'),_0x55a890['commands']['get']('insertMergeFieldImage')],'isEnabled',(..._0x4107fa)=>_0x4107fa['some'](_0x314dc0=>_0x314dc0)),_0x347723['once']('change:isOpen',()=>{const _0x1b7fd9={'insertInline':_0x55a890['commands']['get']('insertMergeField'),'insertBlock':_0x55a890['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x55a890['commands']['get']('insertMergeFieldImage')},_0x103155=createMergeFieldsListView(_0x594168,_0x55a890['config']['get']('mergeFields.definitions'),_0x1b7fd9);_0x103155['delegate']('execute')['to'](_0x347723),_0x347723['on']('execute',(_0xd59d35,_0x407704)=>{const _0x439e9f=_0x55a890['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x407704);'image'===_0x439e9f?_0x55a890['execute']('insertMergeFieldImage',_0x407704):'block'===_0x439e9f?_0x55a890['execute']('insertMergeFieldBlock',_0x407704):_0x55a890['execute']('insertMergeField',_0x407704),_0x55a890['editing']['view']['focus']();});const _0x1ae64f=createMergeFieldsSearchTextView(_0x594168,_0x103155);_0x347723['panelView']['children']['add'](_0x1ae64f),_0x347723['on']('change:isOpen',(_0x380e67,_0x56c193,_0x449c00)=>{_0x449c00&&_0x1ae64f['reset']();});}),_0x347723;}),_0x55a890['ui']['componentFactory']['add']('menuBar:insertMergeField',_0x808132=>{const _0x5d4a0c=new MenuBarMenuView(_0x808132),_0x3069f3={'insertInline':_0x55a890['commands']['get']('insertMergeField'),'insertBlock':_0x55a890['commands']['get']('insertMergeFieldBlock'),'insertImage':_0x55a890['commands']['get']('insertMergeFieldImage')};_0x5d4a0c['buttonView']['set']({'label':getTranslation$8(_0x808132,'Merge\x20field'),'icon':IconInsertMergeField}),_0x5d4a0c['bind']('isEnabled')['toMany']([...Object['values'](_0x3069f3)],'isEnabled',(..._0x3cc42f)=>_0x3cc42f['some'](_0x5905d1=>_0x5905d1));const _0x3b4c3b=[],_0x5a05f7=new MenuBarMenuListView(_0x808132);for(const _0x3ea69c of _0x55a890['config']['get']('mergeFields.definitions'))if('groupId'in _0x3ea69c){const _0x50d50f=new MenuBarMenuListItemView(_0x808132,_0x5d4a0c),_0x57cb84=createMenuBarSubmenu(_0x808132,_0x3ea69c,_0x3069f3);_0x50d50f['children']['add'](_0x57cb84),_0x57cb84['delegate']('execute')['to'](_0x5d4a0c),_0x5a05f7['items']['add'](_0x50d50f);}else _0x3b4c3b['push'](_0x3ea69c);if(_0x3b4c3b['length']){if(0x0===_0x5a05f7['items']['length'])for(const _0x93ac1f of _0x3b4c3b){let _0x1a7d27;_0x1a7d27='block'===_0x93ac1f['type']?_0x3069f3['insertBlock']:'image'===_0x93ac1f['type']?_0x3069f3['insertImage']:_0x3069f3['insertInline'];const _0x1f240b=createMenuBarListItem(_0x808132,_0x93ac1f,_0x5d4a0c,_0x1a7d27);_0x5a05f7['items']['add'](_0x1f240b);}else{const _0x2dce05=new MenuBarMenuListItemView(_0x808132,_0x5d4a0c),_0x256a97=createMenuBarSubmenu(_0x808132,{'groupId':'Other','definitions':_0x3b4c3b},_0x3069f3);_0x2dce05['children']['add'](_0x256a97),_0x256a97['delegate']('execute')['to'](_0x5d4a0c),_0x5a05f7['items']['add'](_0x2dce05);}}return _0x5d4a0c['panelView']['children']['add'](_0x5a05f7),_0x5d4a0c['on']('execute',(_0x4eebf3,_0x5d8527)=>{const _0xd52db=_0x55a890['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x5d8527);'image'===_0xd52db?_0x55a890['execute']('insertMergeFieldImage',_0x5d8527):'block'===_0xd52db?_0x55a890['execute']('insertMergeFieldBlock',_0x5d8527):_0x55a890['execute']('insertMergeField',_0x5d8527),_0x55a890['editing']['view']['focus']();}),_0x5d4a0c;});const _0x1434fd=_0x55a890['config']['get']('mergeFields.previewModes'),_0x5c2871=[];if(_0x1434fd['includes']('$labels')&&_0x5c2871['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Labels'),'commandValue':'$labels'})}),_0x1434fd['includes']('$defaultValues')&&_0x5c2871['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':getTranslation$8(this['editor']['locale'],'Default\x20values'),'commandValue':'$defaultValues'})}),_0x1434fd['includes']('$dataSets')){const _0x34dea2=_0x55a890['config']['get']('mergeFields.dataSets');if(_0x34dea2['length']){for(const _0x414654 of _0x34dea2)_0x5c2871['push']({'type':'button','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x414654['label']||_0x414654['id'],'commandValue':_0x414654['id']})});}}_0x55a890['ui']['componentFactory']['add']('previewMergeFields',_0x324cc4=>{const _0x3e9737=_0x55a890['commands']['get']('previewMergeFields'),_0x1b8264=new Collection();for(const _0x212777 of cloneDeep(_0x5c2871))_0x212777['model']['bind']('isOn')['to'](_0x3e9737,'value',_0x3e8a08=>_0x3e8a08===_0x212777['model']['commandValue']),_0x1b8264['add'](_0x212777);const _0x3c59de=createDropdown(_0x324cc4),_0x23cd3d=getTranslation$8(_0x324cc4,'Merge\x20fields\x20preview');return _0x3c59de['bind']('isEnabled')['to'](_0x3e9737),addListToDropdown(_0x3c59de,_0x1b8264,{'ariaLabel':_0x23cd3d,'role':'menu'}),_0x3c59de['set']({'class':'ck-merge-fields-preview-dropdown'}),_0x3c59de['buttonView']['set']({'label':_0x23cd3d,'ariaLabel':_0x23cd3d,'ariaLabelledBy':void 0x0,'isOn':!0x1,'icon':IconPreviewMergeFields,'tooltip':!0x0}),this['listenTo'](_0x3c59de,'execute',_0x241e02=>{const {commandValue:_0x43cfc8}=_0x241e02['source'];_0x55a890['execute']('previewMergeFields',_0x43cfc8),_0x55a890['editing']['view']['focus']();}),_0x3c59de;}),_0x55a890['ui']['componentFactory']['add']('menuBar:previewMergeFields',_0x3c9e16=>{const _0x559be5=new MenuBarMenuView(_0x3c9e16),_0x4d740d=_0x55a890['commands']['get']('previewMergeFields');_0x559be5['buttonView']['set']({'label':getTranslation$8(_0x3c9e16,'Merge\x20fields\x20preview'),'icon':IconPreviewMergeFields}),_0x559be5['bind']('isEnabled')['to'](_0x4d740d);const _0x119244=new MenuBarMenuListView(_0x3c9e16);_0x119244['set']({'ariaLabel':getTranslation$8(_0x3c9e16,'Merge\x20fields\x20preview')});for(const _0x1b0d95 of cloneDeep(_0x5c2871)){const _0x4031c1=new MenuBarMenuListItemView(_0x3c9e16,_0x559be5),_0x166a05=new MenuBarMenuListItemButtonView(_0x3c9e16);_0x1b0d95['model']['bind']('isOn')['to'](_0x4d740d,'value',_0x32dcfc=>_0x32dcfc===_0x1b0d95['model']['commandValue']),_0x166a05['isToggleable']=!0x0,_0x166a05['bind'](...Object['keys'](_0x1b0d95['model']))['to'](_0x1b0d95['model']),_0x166a05['delegate']('execute')['to'](_0x559be5),_0x166a05['on']('execute',_0xeea316=>{const {commandValue:_0x54a221}=_0xeea316['source'];_0x55a890['execute']('previewMergeFields',_0x54a221),_0x55a890['editing']['view']['focus']();}),_0x4031c1['children']['add'](_0x166a05),_0x119244['items']['add'](_0x4031c1);}return _0x559be5['panelView']['children']['add'](_0x119244),_0x559be5;}),this['_balloon']=_0x55a890['plugins']['get'](ContextualBalloon),this['listenTo'](_0x55a890['ui'],'update',()=>{this['_updateBalloonVisibility']();},{'priority':'low'}),this['listenTo'](_0x55a890['ui']['focusTracker'],'change:isFocused',(_0x166867,_0x3f2cdd,_0x4c40b4)=>{this['_balloon']['visibleView']&&this['_balloon']['visibleView']===this['_balloonPanelView']&&(_0x4c40b4?this['_updateBalloonVisibility']():this['_hideBalloon']());},{'priority':'low'}),this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32d43b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x296b06;for(const _0x116aa2 in _0x32d43b){const _0x25b3a9=_0x116aa2,_0x9a841c=_0x32d43b[_0x25b3a9];if('mergeFieldsLicenseKeyValid'==_0x9a841c||'mergeFieldsLicenseKeyInvalid'==_0x9a841c||'mergeFieldsLicenseKeyExpired'==_0x9a841c||'mergeFieldsLicenseKeyDomainLimit'==_0x9a841c||'mergeFieldsLicenseKeyNotAllowed'==_0x9a841c||'mergeFieldsLicenseKeyEvaluationLimit'==_0x9a841c||'mergeFieldsLicenseKeyUsageLimit'==_0x9a841c){delete _0x32d43b[_0x25b3a9],_0x296b06=_0x9a841c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'mergeFieldsLicenseKeyInvalid'==_0x296b06&&_0x32d43b['_showLicenseError']('invalid'),'mergeFieldsLicenseKeyExpired'==_0x296b06&&_0x32d43b['_showLicenseError']('expired'),'mergeFieldsLicenseKeyDomainLimit'==_0x296b06&&_0x32d43b['_showLicenseError']('domainLimit'),'mergeFieldsLicenseKeyNotAllowed'==_0x296b06&&_0x32d43b['_showLicenseError']('featureNotAllowed','MergeFields'),'mergeFieldsLicenseKeyEvaluationLimit'==_0x296b06&&_0x32d43b['_showLicenseError']('evaluationLimit'),'mergeFieldsLicenseKeyUsageLimit'==_0x296b06&&_0x32d43b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_updateBalloonVisibility'](){const _0x8eda79=this['editor']['editing']['view']['document']['selection']['getSelectedElement'](),_0x1dc11b=!(!_0x8eda79||!_0x8eda79['getCustomProperty']('mergeFieldStatus'));if(this['_balloon']['hasView'](this['_balloonPanelView'])&&this['_balloon']['visibleView']===this['_balloonPanelView']){if(_0x1dc11b){const _0x3f964a=_0x8eda79['getCustomProperty']('mergeFieldStatus');this['_balloonPanelView']['text']=getTranslation$8(this['editor']['locale'],_0x3f964a),this['_balloon']['updatePosition'](this['_getBalloonPositionData']());}else this['_hideBalloon']();}else{if(_0x1dc11b){const _0x42729a=_0x8eda79['getCustomProperty']('mergeFieldStatus');this['_showBalloon'](getTranslation$8(this['editor']['locale'],_0x42729a));}}}['_showBalloon'](_0x59bb92){this['_balloonPanelView']||(this['_balloonPanelView']=new MergeFieldsPanelView(this['editor']['locale']),this['_balloonPanelView']['text']=_0x59bb92),this['_balloon']['hasView'](this['_balloonPanelView'])||(this['_balloon']['add']({'stackId':'mergeFieldsStatus','view':this['_balloonPanelView'],'position':this['_getBalloonPositionData']()}),this['_balloon']['showStack']('mergeFieldsStatus'));}['_getBalloonPositionData'](){const _0x4f4a21=this['editor']['editing']['view'];return{'target':()=>{const _0x286eae=_0x4f4a21['document']['selection']['getFirstRange'](),_0x320705=_0x4f4a21['domConverter']['mapViewToDom'](_0x286eae['getContainedElement']());return _0x320705?Array['from'](_0x320705['getClientRects']())[0x0]:_0x4f4a21['domConverter']['viewRangeToDom'](_0x286eae);}};}['_hideBalloon'](){this['_balloon']['remove'](this['_balloonPanelView']);}['_removeDefaultValuesPreviewIfUnnecessary'](){if(Object['values'](this['editor']['plugins']['get']('MergeFieldsEditing')['getDefaultValues']())['some'](_0xd19a72=>_0xd19a72))return;const _0x52ea75=this['editor']['config']['get']('mergeFields.previewModes');_0x52ea75['indexOf']('$defaultValues')>-0x1&&_0x52ea75['length']>0x1&&(_0x52ea75['splice'](_0x52ea75['indexOf']('$defaultValues'),0x1),this['editor']['config']['set']('mergeFields.previewModes',_0x52ea75));}['_removeMenuBarButtonIfUnnecessary'](){const _0x34bccb=this['editor']['config'];if(_0x34bccb['get']('mergeFields.previewModes')){const _0x258852=_0x34bccb['get']('mergeFields.previewModes');if(0x1===_0x258852['length']){if(_0x258852['includes']('$dataSets'))0x1===_0x34bccb['get']('mergeFields.dataSets')['length']&&_0x5209b0();else _0x5209b0();}}function _0x5209b0(){const _0x1b4b4f=_0x34bccb['get']('menuBar.removeItems');_0x1b4b4f?(_0x1b4b4f['push']('menuBar:previewMergeFields'),_0x34bccb['set']('menuBar.removeItems',_0x1b4b4f)):_0x34bccb['set']('menuBar.removeItems',['menuBar:previewMergeFields']);}}['_setupMentionConfiguration'](){const _0x2fa08c=this['editor'],_0x3ece72=_0x2fa08c['config']['get']('mention.feeds'),_0x4eeff7=_0x2fa08c['config']['get']('mergeFields.prefix');_0x3ece72['push']({'marker':_0x4eeff7,'dropdownLimit':0xa,'feed':_0x13c814=>_0x2fa08c['plugins']['get']('MergeFieldsEditing')['flattenedMergeFieldDefinitions']['filter'](_0x4b9311=>{const _0x187a22=_0x2fa08c['commands']['get']('insertMergeField')['isEnabled'],_0x1db54a=_0x2fa08c['commands']['get']('insertMergeFieldBlock')['isEnabled'],_0x55065c=_0x2fa08c['commands']['get']('insertMergeFieldImage')['isEnabled'],_0x5bf9cc=_0x2fa08c['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x4b9311['id']);if('text'===_0x5bf9cc&&!_0x187a22)return!0x1;if('block'===_0x5bf9cc&&!_0x1db54a)return!0x1;if('image'===_0x5bf9cc&&!_0x55065c)return!0x1;return(_0x2fa08c['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4b9311['id'])||_0x4b9311['id'])['toLowerCase']()['includes'](_0x13c814['toLowerCase']());}),'itemRenderer':_0x3d845b=>{const _0x2f7417=document['createElement']('button');return _0x2f7417['innerHTML']=''+(_0x3d845b['label']||_0x3d845b['id']),_0x2f7417;}}),_0x2fa08c['config']['set']('mention.feeds',_0x3ece72);}['_overrideMentionExecuteListener'](){const _0x3d3e57=this['editor'];_0x3d3e57['commands']['get']('mention')['on']('execute',(_0x2ec2fe,_0xb41727)=>{const _0x3cd2fb=_0xb41727[0x0];_0x3cd2fb['marker']===_0x3d3e57['config']['get']('mergeFields.prefix')&&_0x3d3e57['model']['change'](_0x12a312=>{_0x12a312['remove'](_0x3cd2fb['range']);const _0x130d5d=_0x3cd2fb['mention']['id'],_0x44e455=_0x3d3e57['plugins']['get']('MergeFieldsEditing')['getMergeFieldType'](_0x130d5d);'text'===_0x44e455?_0x3d3e57['execute']('insertMergeField',_0x130d5d):'block'===_0x44e455?_0x3d3e57['execute']('insertMergeFieldBlock',_0x130d5d,!0x1):_0x3d3e57['execute']('insertMergeFieldImage',_0x130d5d,{'breakBlock':!0x0}),_0x2ec2fe['stop']();});},{'priority':'high'});}}function createInsertMergeFieldDropdown(_0x1b0ecd){const _0x47d740=createDropdown(_0x1b0ecd);return _0x47d740['set']({'class':'ck-insert-merge-field-dropdown','isEnabled':!0x0}),_0x47d740['buttonView']['set']({'label':getTranslation$8(_0x1b0ecd,'Insert\x20merge\x20field'),'icon':IconInsertMergeField,'tooltip':!0x0}),_0x47d740;}function createMergeFieldsListView(_0x4224c2,_0x3dfa86,_0x578c9d){const _0x204f49=new MergeFieldsListView(_0x4224c2),_0x3b3969=[],_0x8682de=[];for(const _0x466112 of _0x3dfa86)if('groupId'in _0x466112){const _0x483398=createMergeFieldsGroupView(_0x4224c2,_0x466112['groupLabel']||_0x466112['groupId'],_0x466112['definitions'],_0x578c9d);_0x483398['delegate']('execute')['to'](_0x204f49),_0x8682de['push'](_0x483398);}else _0x3b3969['push'](_0x466112);if(_0x3b3969['length']){const _0x25e619=createMergeFieldsGroupView(_0x4224c2,'Other',_0x3b3969,_0x578c9d);_0x25e619['delegate']('execute')['to'](_0x204f49),_0x8682de['push'](_0x25e619);}return _0x204f49['items']['addMany'](_0x8682de),_0x204f49;}function createMergeFieldsGroupView(_0x58c1fc,_0x5498cf,_0x58e629,_0x119051){const _0x5c3110=new ListItemGroupView(_0x58c1fc,new LabelWithHighlightView());_0x5c3110['label']=_0x5498cf;for(const _0x4a96c5 of _0x58e629){let _0x3f1457;_0x3f1457='block'===_0x4a96c5['type']?_0x119051['insertBlock']:'image'===_0x4a96c5['type']?_0x119051['insertImage']:_0x119051['insertInline'];const _0x5b4184=createMergeFieldListItemView(_0x58c1fc,_0x4a96c5,_0x3f1457);_0x5b4184['delegate']('execute')['to'](_0x5c3110),_0x5c3110['items']['add'](_0x5b4184);}return _0x5c3110;}function createMergeFieldListItemView(_0x1b2c6f,_0x3a96b0,_0x341d6c){const _0x93b039=new ListItemView(_0x1b2c6f),_0x5d63f2=new ButtonLabelWithHighlightView(),_0xf9c363=new ButtonView(_0x1b2c6f,_0x5d63f2);return _0x93b039['children']['add'](_0xf9c363),_0xf9c363['set']({'label':_0x3a96b0['label']||_0x3a96b0['id'],'withText':!0x0}),_0xf9c363['bind']('isEnabled')['to'](_0x341d6c),_0xf9c363['on']('execute',()=>{_0x93b039['fire']('execute',_0x3a96b0['id']);}),_0x93b039;}function createMergeFieldsSearchTextView(_0x5d281c,_0x13b7dd){return new SearchTextView(_0x5d281c,{'filteredView':_0x13b7dd,'queryView':{'label':getTranslation$8(_0x5d281c,'Search\x20merge\x20field')},'class':'ck-merge-fields-search','infoView':{'text':{'notFound':{'primary':getTranslation$8(_0x5d281c,'No\x20merge\x20fields\x20found')},'noSearchableItems':{'primary':getTranslation$8(_0x5d281c,'No\x20merge\x20fields\x20available')}}}});}function createMenuBarSubmenu(_0x594ad6,_0x236d99,_0x3fd298){const _0x3889db=new MenuBarMenuView(_0x594ad6),_0xa0fcbd=new MenuBarMenuListView(_0x594ad6);for(const _0x50934f of _0x236d99['definitions']){let _0x511581;_0x511581='block'===_0x50934f['type']?_0x3fd298['insertBlock']:'image'===_0x50934f['type']?_0x3fd298['insertImage']:_0x3fd298['insertInline'];const _0x523ee6=createMenuBarListItem(_0x594ad6,_0x50934f,_0x3889db,_0x511581);_0xa0fcbd['items']['add'](_0x523ee6);}return _0x3889db['set']({'class':'ck-menu-bar__merge-fields-submenu'}),_0x3889db['buttonView']['set']({'label':_0x236d99['groupLabel']||_0x236d99['groupId']}),_0x3889db['panelView']['children']['add'](_0xa0fcbd),_0x3889db;}function createMenuBarListItem(_0x53cdb7,_0x47359d,_0x1da115,_0x315dfc){const _0x5189b6=new MenuBarMenuListItemView(_0x53cdb7,_0x1da115),_0xdd5e82=new MenuBarMenuListItemButtonView(_0x53cdb7);return _0xdd5e82['set']({'label':_0x47359d['label']||_0x47359d['id']}),_0x5189b6['delegate']('execute')['to'](_0x1da115),_0x5189b6['children']['add'](_0xdd5e82),_0xdd5e82['bind']('isEnabled')['to'](_0x315dfc),_0xdd5e82['on']('execute',()=>{_0x5189b6['fire']('execute',_0x47359d['id']);}),_0x5189b6;}class MergeFields extends Plugin{static get['requires'](){return[MergeFieldsEditing,MergeFieldsUI];}static get['pluginName'](){return'MergeFields';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const COLUMN_GAP=0x64,EDITING_RENDER_TIMEOUT=0xc8;class PaginationLookup extends Plugin{['_recalculatePageBreaksDebounced']=debounce$1(()=>this['_recalculatePageBreaks'](),EDITING_RENDER_TIMEOUT);['_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 logWarning('pagination-config-not-found',this['editor']['config']);const _0x41839b=this['editor']['plugins']['get']('PaginationEditing');this['bind']('isEnabled')['to'](_0x41839b),this['editor']['ui']['once']('ready',()=>this['_onUiReady']()),this['on']('change:isEnabled',(_0x43b312,_0x34734b,_0x3c60d6)=>{_0x3c60d6&&this['_recalculatePageBreaksDebounced']();});}['afterInit'](){checkLicense$7(this);}['destroy'](){super['destroy'](),this['_pagesContainer']&&(this['_recalculatePageBreaksDebounced']['cancel'](),this['_pagesContainer']['destroy'](),this['_pagesContainer']['element']['remove']());}['_onUiReady'](){const _0x5b448d=this['editor'],_0x23f9c0=_0x5b448d['editing']['view'],_0x13f732=this['_getAttachedDomRoot']();if(!_0x13f732||0x0===_0x13f732['childElementCount'])return void _0x5b448d['ui']['once']('update',()=>this['_onUiReady']());const {pageWidth:_0x220242,pageHeight:_0x6e4ff}=_0x5b448d['config']['get']('pagination'),{top:_0x558db8,left:_0x112071,bottom:_0x493ac7,right:_0x4b9ffd}=this['_configuredPaddings'];this['_pagesContainer']=new View(_0x5b448d['locale']);const _0x1a6104=this['_pagesContainer'];_0x1a6104['set']('class',''),_0x1a6104['setTemplate']({'tag':'div','attributes':{'style':{'columnWidth':_0x220242,'width':_0x220242,'height':'calc(\x20'+_0x6e4ff+'\x20-\x20'+_0x558db8+'\x20-\x20'+_0x493ac7+'\x20+\x200.5mm\x20)','minWidth':'auto','minHeight':'auto','padding':'0\x20'+_0x4b9ffd+'\x200\x20'+_0x112071,'columnGap':'calc('+_0x112071+'\x20+\x20'+_0x4b9ffd+'\x20+\x20'+COLUMN_GAP+'px)','border':0x0,'boxSizing':'border-box','columnCount':'auto','columnFill':'auto','overflow':'hidden','position':'absolute','top':'-99999px','left':'-99999px'},'class':_0x1a6104['bindTemplate']['to']('class')}}),_0x1a6104['render'](),_0x13f732['parentNode']['insertBefore'](_0x1a6104['element'],_0x13f732['nextSibling']),this['listenTo'](_0x23f9c0,'render',()=>this['_recalculatePageBreaksDebounced'](),{'priority':'low'}),this['_recalculatePageBreaksDebounced']();}['_getAttachedDomRoot'](){for(const _0x2ff2b3 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2ff2b3['ownerDocument']['body']['contains'](_0x2ff2b3))return _0x2ff2b3;return null;}['_recalculatePageBreaks'](){if(!this['isEnabled'])return Promise['resolve']();const _0x415add=this['editor']['editing']['view'],_0x13496b=this['_pagesContainer'],_0x2854a0=this['_getAttachedDomRoot']();if(!_0x2854a0)return Promise['resolve']();for(_0x13496b['class']=['ck-reset','ck-pagination-view',..._0x2854a0['classList']]['join']('\x20');_0x13496b['element']['firstChild'];)_0x13496b['element']['firstChild']['remove']();const _0x566a91=Array['from'](_0x415add['domRoots']);_0x566a91['sort'](([,_0x4b070d],[,_0x4291d9])=>_0x4b070d['compareDocumentPosition'](_0x4291d9)==Node['DOCUMENT_POSITION_PRECEDING']?0x1:-0x1);for(const [_0x6ad6c9,_0x29c466]of _0x566a91){const _0x388674=_0x29c466['cloneNode'](!0x0);'attributeStyleMap'in _0x388674&&_0x388674['attributeStyleMap']['clear'](),_0x388674['dataset']['rootName']=_0x6ad6c9,_0x388674['className']='ck-content\x20ck-pagination_enabled',_0x388674['removeAttribute']('id'),_0x388674['tabIndex']=-0x1,_0x13496b['element']['append'](_0x388674);}const _0x2834b5=Array['from'](_0x13496b['element']['querySelectorAll']('img'));return allImagesAreReady(_0x2834b5)['then'](()=>{for(const _0x5b460a of _0x2834b5['filter'](_0x5f0a5a=>!_0x5f0a5a['closest']('table')))if(_0x5b460a['offsetParent']){const _0x3a37a8=_0x59f9c1['window']['getComputedStyle'](_0x5b460a),_0x24d1ec=_0x59f9c1['document']['createElement']('span');for(const _0xd81101 of _0x3a37a8)_0x24d1ec['style']['setProperty'](_0xd81101,_0x3a37a8[_0xd81101]);_0x24d1ec['style']['backgroundImage']='url(\x20'+_0x5b460a['src']+'\x20)',_0x24d1ec['style']['breakInside']='avoid','PICTURE'==_0x5b460a['parentElement']?.['tagName']?_0x5b460a['parentElement']['replaceWith'](_0x24d1ec):_0x5b460a['replaceWith'](_0x24d1ec);}return nextAnimationFrame();})['then'](()=>{this['_updatePageBreaksData']();});}['_updatePageBreaksData'](){const _0x5a9c50=this['_pagesContainer']['element'];if(!_0x5a9c50['ownerDocument']['body']['contains'](_0x5a9c50))return;const _0x25aa4f=new Rect(_0x5a9c50)['excludeScrollbarsAndBorders'](),_0x1ca28f=Math['floor'](_0x25aa4f['width']+COLUMN_GAP),_0x5b2062=findPageStarterInfos(_0x5a9c50,Math['floor'](_0x25aa4f['left']-_0x5a9c50['scrollLeft']),_0x1ca28f,_0x25aa4f['height'])['map'](_0x160ac8=>this['_mapPageStarterInfoToPageBreakInfo'](_0x160ac8))['filter'](_0xa1f01a=>!0x1!==_0xa1f01a);_0x5b2062['every'](_0x3dbce2=>!!_0x3dbce2)&&(this['pageBreaks']=_0x5b2062);}['_mapPageStarterInfoToPageBreakInfo'](_0x17e2b8){const _0x3b674b=this['editor']['editing']['view'],_0x4d2ebd=this['editor']['editing']['mapper'],_0x56ea33=_0x3b674b['domConverter'],_0x37e872=_0x17e2b8['path']['shift'](),_0x227e54=this['_pagesContainer']['element']['childNodes'][_0x37e872]['dataset']['rootName'],_0x3bc196=_0x3b674b['getDomRoot'](_0x227e54);if(!_0x3bc196)return null;const _0x116346=pageElementToViewElement(_0x3bc196,_0x17e2b8);if(!_0x116346)return null;const _0x442fe4=_0x56ea33['domPositionToView'](_0x116346,_0x17e2b8['textOffset']||0x0);return _0x442fe4?'manual'==_0x17e2b8['type']?this['_mapManualPageStarterInfoToPageBreakInfo'](_0x442fe4,_0x116346):'text'==_0x17e2b8['type']&&_0x4d2ebd['toModelPosition'](_0x442fe4)['offset']?this['_mapTextPageStarterInfoToPageBreakInfo'](_0x442fe4,_0x116346,_0x17e2b8['textOffset']):this['_mapElementPageStarterInfoToPageBreakInfo'](_0x442fe4,_0x116346,_0x17e2b8['offset']):null;}['_mapManualPageStarterInfoToPageBreakInfo'](_0x302481,_0x565469){const _0x2c08f8=this['editor']['model'],_0x59350e=this['editor']['editing']['mapper']['toModelElement'](_0x302481['parent']),_0x28a8b8=_0x2c08f8['createRangeOn'](_0x59350e);return new PageBreakInfo({'type':'manual','modelRange':_0x28a8b8,'domNode':_0x565469,'offset':0x0});}['_mapTextPageStarterInfoToPageBreakInfo'](_0x3f305b,_0x5c29e8,_0x5563b2){const _0x51cc3c=this['editor']['model'],_0x51089a=this['editor']['editing']['mapper'],_0x5361f8=this['editor']['editing']['view']['domConverter'];if(_0x5563b2>=_0x5c29e8['length'])return null;const _0x2d3df5=_0x51089a['toModelPosition'](_0x3f305b),_0x408e2a=_0x51cc3c['createRange'](_0x2d3df5),_0x585d94=_0x51089a['findMappedViewAncestor'](_0x3f305b),_0x3d4d86=_0x5361f8['mapViewToDom'](_0x585d94);return new PageBreakInfo({'type':'text','modelRange':_0x408e2a,'domNode':_0x5c29e8,'offset':findOffsetTopForTextOffset(_0x5c29e8,_0x5563b2,_0x3d4d86)});}['_mapElementPageStarterInfoToPageBreakInfo'](_0x306c9d,_0x1ea405,_0x55e0dd){const _0x29ae3f=this['editor']['model'],_0x453af5=this['editor']['editing'],_0x108376=_0x453af5['mapper'],_0x5b5264=_0x453af5['view']['domConverter'],_0x3ca93c=_0x108376['findMappedViewAncestor'](_0x306c9d),_0x6d236e=_0x108376['toModelElement'](_0x3ca93c);if(!_0x6d236e||_0x6d236e['is']('element','$root'))return!0x1;const _0x2de7ab=getTopMostParentBlockTouchingPosition(_0x29ae3f['createPositionBefore'](_0x6d236e))||_0x6d236e;let _0x2be01c=_0x108376['toViewElement'](_0x2de7ab),_0x57f50f=_0x29ae3f['createRangeOn'](_0x2de7ab);const _0x3e1a5e=_0x29ae3f['createPositionBefore'](_0x2de7ab)['nodeBefore'];if(_0x3e1a5e&&_0x3e1a5e['is']('element','imageBlock')){const _0x1a8939=_0x108376['toViewElement'](_0x3e1a5e),_0x258b26=_0x5b5264['mapViewToDom'](_0x1a8939),_0x2ec2b0=_0x59f9c1['window']['getComputedStyle'](_0x258b26)['float'];'left'!=_0x2ec2b0&&'right'!=_0x2ec2b0||(_0x57f50f=_0x29ae3f['createRangeOn'](_0x3e1a5e));}for(;_0x2be01c['parent']!==_0x2be01c['root']&&0x0===_0x2be01c['index'];)_0x2be01c=_0x2be01c['parent'];const _0xf72ece=new Rect(isHTMLElement(_0x1ea405)?_0x1ea405:createDomRangeOn(_0x1ea405)),_0x23f680=_0x55e0dd?_0xf72ece['height']-_0x55e0dd:0x0,_0x463752=_0x5b5264['mapViewToDom'](_0x2be01c),_0x1c12e6=new Rect(_0x463752);return new PageBreakInfo({'type':'element','modelRange':_0x57f50f,'domNode':_0x463752,'offset':Math['round'](_0x23f680)||_0x3ca93c!=findBlockAncestor(_0x306c9d)?_0x23f680+_0xf72ece['top']-_0x1c12e6['top']:0x0});}get['_configuredPaddings'](){const _0xc437fb=this['editor']['config']['get']('pagination.pageMargins');return Object['assign']({'top':'10mm','bottom':'10mm','left':'10mm','right':'10mm'},_0xc437fb);}static['_findPageStarterInfos'](_0x4a1704,_0x275593,_0x5af479,_0x5c65bd,_0x45ff8c){return findPageStarterInfos(_0x4a1704,_0x275593,_0x5af479,_0x5c65bd,_0x45ff8c);}}class PageBreakInfo{['type'];['modelRange'];['_domNode'];['_offset'];constructor({type:_0x2f7e9f,modelRange:_0x275a20,domNode:_0x49ad0f,offset:_0x218ae4}){this['type']=_0x2f7e9f,this['modelRange']=_0x275a20,this['_domNode']=_0x49ad0f,this['_offset']=_0x218ae4;}get['offset'](){if(!this['_domNode']['ownerDocument']['body']['contains'](this['_domNode']))return 0x0;const _0x576fa6=new Rect(isHTMLElement(this['_domNode'])?this['_domNode']:createDomRangeOn(this['_domNode']));return'manual'==this['type']?_0x576fa6['top']+_0x576fa6['height']/0x2:_0x576fa6['top']+this['_offset'];}}function isPageBreak(_0x534094){return!(!_0x534094||!isHTMLElement(_0x534094))&&Boolean(_0x534094['classList']['contains']('page-break')||_0x534094['closest']('.page-break'));}function pageElementToViewElement(_0x5ece5e,_0x42c300){let _0x443488=_0x5ece5e;for(const _0x572570 of _0x42c300['path']){if(!_0x443488)return null;_0x443488=_0x443488['childNodes'][_0x572570];}return _0x443488;}function findOffsetTopForTextOffset(_0x32fb0b,_0x7f0a8e,_0x42133e){const _0x399987=createDomRangeOn(_0x32fb0b),_0x3567fa=createDomRangeIn(_0x42133e);let _0x6904f9;_0x6904f9=0x0==_0x7f0a8e?createDomRangeMultiNode(_0x3567fa['startContainer'],_0x3567fa['startOffset'],_0x32fb0b['parentNode'],Array['from'](_0x32fb0b['parentNode']['childNodes'])['indexOf'](_0x32fb0b)):createDomRangeMultiNode(_0x3567fa['startContainer'],_0x3567fa['startOffset'],_0x32fb0b,_0x7f0a8e);const _0x1275a4=createDomRangeMultiNode(_0x32fb0b,_0x7f0a8e,_0x3567fa['endContainer'],_0x3567fa['endOffset']),_0x1eb431=new Rect(_0x6904f9)['bottom'];return(new Rect(_0x1275a4)['top']+_0x1eb431)/0x2-new Rect(_0x399987)['top'];}function getTopMostParentBlockTouchingPosition(_0x4fee80){const _0x539cb5=_0x4fee80['parent'],_0x52d97f=_0x539cb5['root']['document']['model'],_0x2e4e1d=_0x539cb5['getAncestors']({'parentFirst':!0x0,'includeSelf':!0x0});let _0x3f1ecd=null;for(const _0x17fa8c of _0x2e4e1d){if(_0x17fa8c['is']('rootElement'))return _0x3f1ecd;if(!_0x52d97f['createPositionBefore'](_0x17fa8c)['isTouching'](_0x4fee80))return _0x3f1ecd;_0x3f1ecd=_0x17fa8c;}}function findBlockAncestor(_0x4ef1ea){let _0x5c1cd8=_0x4ef1ea['parent'];for(;_0x5c1cd8['is']('$text')||_0x5c1cd8['is']('attributeElement');)_0x5c1cd8=_0x5c1cd8['parent'];return _0x5c1cd8;}function allImagesAreReady(_0x1815b5){return Promise['all'](_0x1815b5['map'](_0x563441=>Promise['race']([imageReady(_0x563441),timeout(0x3e8)])));}function imageReady(_0x4b3016){return _0x4b3016['hasAttribute']('width')&&_0x4b3016['hasAttribute']('height')?Promise['resolve']():new Promise(_0x4dc4b8=>{function _0x14c7d2(){_0x4b3016['removeEventListener']('load',_0x14c7d2),_0x4b3016['removeEventListener']('error',_0x14c7d2),_0x4dc4b8();}_0x4b3016['complete']?_0x4dc4b8():(_0x4b3016['addEventListener']('load',_0x14c7d2),_0x4b3016['addEventListener']('error',_0x14c7d2));});}function timeout(_0x3b94b6){return new Promise(_0x55467a=>setTimeout(_0x55467a,_0x3b94b6));}function nextAnimationFrame(){return new Promise(_0x3e6695=>_0x59f9c1['window']['requestAnimationFrame'](()=>_0x3e6695()));}function createDomRangeOn(_0x188818){const _0x54b72c=_0x59f9c1['document']['createRange']();return _0x54b72c['selectNode'](_0x188818),_0x54b72c;}function createDomRangeIn(_0x1693cb){const _0x502e3e=_0x59f9c1['document']['createRange']();return _0x502e3e['selectNodeContents'](_0x1693cb),_0x502e3e;}function createDomRange(_0x220d6f,_0x28ff60,_0x29a857){const _0x1e63f4=_0x59f9c1['document']['createRange']();return _0x1e63f4['setStart'](_0x220d6f,_0x28ff60),_0x1e63f4['setEnd'](_0x220d6f,_0x29a857),_0x1e63f4;}function createDomRangeMultiNode(_0x5e11f7,_0x533574,_0xf5b039,_0x3fc960){const _0xa2e43a=_0x59f9c1['document']['createRange']();return _0xa2e43a['setStart'](_0x5e11f7,_0x533574),_0xa2e43a['setEnd'](_0xf5b039,_0x3fc960),_0xa2e43a;}function findPageStarterInfos(_0x347fd8,_0x5c546c,_0x429835,_0x303fd6,_0x58f57c){const _0x74ea15=[];for(const [_0x1190f2,_0x412920]of _0x347fd8['childNodes']['entries']()){let _0x44f83d=[];isHTMLElement(_0x412920)&&_0x412920['offsetParent']&&['static','relative']['includes'](_0x59f9c1['window']['getComputedStyle'](_0x412920)['position'])?_0x44f83d=findPageStartersInElementNode(_0x412920,_0x1190f2,_0x5c546c,_0x429835,_0x303fd6,_0x58f57c):isText(_0x412920)&&(_0x44f83d=findPageStartersInTextNode(_0x412920,_0x1190f2,_0x5c546c,_0x429835,_0x58f57c)),_0x44f83d['length']&&(_0x74ea15['push'](..._0x44f83d),_0x5c546c+=_0x44f83d['length']*_0x429835,_0x58f57c=!0x1);}return _0x74ea15;}function findPageStartersInElementNode(_0x2fb7cd,_0x1659a3,_0x4b9353,_0x2ec53e,_0x2739c9,_0x4cdfb6){const _0x2547fa=[];if(isPageBreak(_0x2fb7cd['previousSibling'])&&(_0x2547fa['push']({'type':'manual','offset':0x0,'path':[_0x1659a3-0x1]}),_0x4cdfb6=!0x0),'table-row'==_0x59f9c1['window']['getComputedStyle'](_0x2fb7cd)['display']){let _0xe14dc0=0x0,_0x4e39bb=!0x1;for(const _0x2708a0 of _0x2fb7cd['getClientRects']())_0xe14dc0+=_0x2708a0['height'],_0x2708a0['left']>=_0x4b9353&&(_0x4e39bb=!0x0);if(_0xe14dc0<_0x2739c9&&_0x4e39bb)return _0x4cdfb6||_0x2547fa['push']({'type':'element','offset':0x0,'path':[_0x1659a3]}),_0x2547fa;}const _0x5d925e=_0x2fb7cd['closest']('figure.image');if(_0x5d925e&&shouldIgnoreFigure(_0x5d925e)){const _0x2b2f23=_0x59f9c1['window']['getComputedStyle'](_0x5d925e)['float'];if('left'==_0x2b2f23||'right'==_0x2b2f23)return _0x2547fa;}const _0x2b93ee=findPageStarterInfos(_0x2fb7cd,_0x4b9353,_0x2ec53e,_0x2739c9,_0x4cdfb6);if(_0x2b93ee['length']){for(const _0xe04365 of _0x2b93ee)_0x2547fa['push']({'type':_0xe04365['type'],'offset':_0xe04365['offset'],'textOffset':_0xe04365['textOffset'],'path':[_0x1659a3,..._0xe04365['path']]}),_0x4b9353+=_0x2ec53e,_0x4cdfb6=!0x1;return _0x2547fa;}return _0x2547fa['push'](...findPageStartersInLeafElementNode(_0x2fb7cd,_0x1659a3,_0x4b9353,_0x2ec53e,_0x4cdfb6)),_0x2547fa;}function findPageStartersInLeafElementNode(_0xce80d2,_0x463367,_0x42dacb,_0x51337d,_0x3e5d07){const _0x2747b8=[];if('table-cell'==_0x59f9c1['window']['getComputedStyle'](_0xce80d2)['display'])return[];const _0x464c7f=[];for(const _0x1fadf8 of _0xce80d2['getClientRects']())if(_0x1fadf8['left']>=_0x42dacb){for(const _0x4119bc of _0x464c7f)_0x4119bc['height']+=_0x1fadf8['height'];_0x464c7f['push']({'height':_0x1fadf8['height']}),_0x42dacb+=_0x51337d;}for(const _0x509a45 of _0x464c7f)_0x3e5d07||_0x2747b8['push']({'type':'element','offset':_0x509a45['height'],'textOffset':0x0,'path':[_0x463367]}),_0x3e5d07=!0x1;return _0x2747b8;}function findPageStartersInTextNode(_0xd51e8,_0x49419e,_0x5d864b,_0x44ca7f,_0x41008d){const _0xf6e6cd=createDomRangeOn(_0xd51e8),_0x3aec97=[];let _0x436ad1=0x0;for(const _0x37c50d of _0xf6e6cd['getClientRects']())if(_0x37c50d['left']>=_0x5d864b){const _0x37c43d=findLastTextOffsetOnPage(_0xd51e8,_0x436ad1,_0x5d864b,_0x44ca7f);_0x41008d||_0x3aec97['push']({'type':'text','path':[_0x49419e],'textOffset':_0x37c43d}),_0x436ad1=_0x37c43d,_0x5d864b+=_0x44ca7f,_0x41008d=!0x1;}return _0x3aec97;}function findLastTextOffsetOnPage(_0x45789c,_0x5c7fb4,_0x5b6b52,_0x2706f1){let _0xdc9042=_0x5c7fb4,_0x512c2f=_0x45789c['length'];for(;_0x512c2f-_0xdc9042>0x1;){const _0x58f596=Math['ceil']((_0xdc9042+_0x512c2f)/0x2);domRangeContainsPageBreak(createDomRange(_0x45789c,_0xdc9042,_0x58f596),_0x5b6b52,_0x2706f1)?_0x512c2f=_0x58f596:_0xdc9042=_0x58f596;}return _0xdc9042;}function domRangeContainsPageBreak(_0x1533b3,_0x5d582d,_0x1389d7){for(const _0x43feb5 of _0x1533b3['getClientRects']())if(_0x43feb5['left']>=_0x5d582d&&_0x43feb5['left']<_0x5d582d+_0x1389d7)return!0x0;return!0x1;}function shouldIgnoreFigure(_0x5b808a){let _0x32717c=!0x1;const _0xdac762=_0x5b808a['parentElement']['dataset']['rootName'],_0x271827=_0x5b808a['nextElementSibling'],_0x41bc98=_0x5b808a['previousElementSibling'],_0x22a2aa=_0x271827&&_0x59f9c1['window']['getComputedStyle'](_0x271827)['float'],_0x11f681=_0x271827&&'ck-fake-selection-container'===_0x271827['className'];return!_0xdac762||_0x271827||_0x41bc98||(_0x32717c=!0x0),_0xdac762&&!_0x41bc98&&_0x11f681&&(_0x32717c=!0x0),_0xdac762&&!_0x41bc98&&'none'!==_0x22a2aa&&(_0x32717c=!0x0),!_0x32717c;}function isHTMLElement(_0x34e029){return _0x34e029['nodeType']==Node['ELEMENT_NODE'];}function isText(_0x548047){return _0x548047['nodeType']==Node['TEXT_NODE'];}async function checkLicense$7(_0x53e5ab){const _0x47fc23=_0x5078ed([0x49,0x39,0x73,0x43,0x6d,0x67,0x33,0x44,0x4a,0x69,0x47,0x35,0x4c,0x46,0x4d,0x75,0x51,0x6a,0x77,0x68,0x54,0x30,0x58,0x42,0x59,0x79,0x78,0x53,0x71,0x76,0x64,0x50,0x4f,0x34,0x36,0x4e,0x5a,0x41,0x63,0x56,0x7a,0x62,0x37,0x31,0x52,0x57,0x6b,0x66,0x65,0x38,0x6f,0x4b,0x70,0x74,0x6e,0x72,0x55,0x45,0x61,0x6c,0x32,0x48]),_0x4129f3=window[_0x5078ed([0x44,0x61,0x74,0x65])][_0x5078ed([0x6e,0x6f,0x77])](),_0x3fa712=_0x53e5ab[_0x5078ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e960c=new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa9691f=>{_0x3fa712[_0x5078ed([0x6f,0x6e,0x63,0x65])](_0x5078ed([0x72,0x65,0x61,0x64,0x79]),_0xa9691f);}),_0x18be42={[_0x5078ed([0x6b,0x74,0x79])]:_0x5078ed([0x45,0x43]),[_0x5078ed([0x75,0x73,0x65])]:_0x5078ed([0x73,0x69,0x67]),[_0x5078ed([0x63,0x72,0x76])]:_0x5078ed([0x50,0x2d,0x32,0x35,0x36]),[_0x5078ed([0x78])]:_0x5078ed([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5078ed([0x79])]:_0x5078ed([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5078ed([0x61,0x6c,0x67])]:_0x5078ed([0x45,0x53,0x32,0x35,0x36])},_0x1e0988=_0x3fa712[_0x5078ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5078ed([0x67,0x65,0x74])](_0x5078ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5e624c=await(async function(){let _0x3b68be,_0x277f1b=null,_0x1f898c=null;try{if(_0x1e0988==_0x5078ed([0x47,0x50,0x4c]))return _0x5078ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b68be=(function(){const _0x360626=_0x1e0988[_0x5078ed([0x73,0x70,0x6c,0x69,0x74])](_0x5078ed([0x2e]));if(0x3!=_0x360626[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x51cffb=_0x360626[0x1];return _0x5ab658(_0x51cffb);function _0x5ab658(_0x3e744e){const _0x51c4e8=_0x5b21c5(_0x3e744e);return _0x51c4e8&&_0xe7129d()?_0x51c4e8:null;function _0xe7129d(){const _0x35c1ce=_0x51c4e8[_0x5078ed([0x6a,0x74,0x69])],_0x1378be=window[_0x5078ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35c1ce[_0x5078ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35c1ce[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd6d0c1={..._0x51c4e8,[_0x5078ed([0x6a,0x74,0x69])]:_0x35c1ce[_0x5078ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35c1ce[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd6d0c1[_0x5078ed([0x76,0x63])],_0x29d865(_0xd6d0c1)==_0x1378be;}}}()),!_0x3b68be)return _0x5078ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3b68be[_0x5078ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f898c=function(_0x38afa8,_0x2b34a3){return new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3374b7=>{if(_0x41bbc5())return _0x3374b7(_0x5078ed([0x56,0x61,0x6c,0x69,0x64]));_0x4573e5(),_0x3fa712[_0x5078ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5078ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd0cfef=!0x1;const _0x20c23d=uid();function _0xca179d(_0x17b919){return!!_0x17b919&&(typeof _0x17b919===_0x5078ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17b919===_0x5078ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17b919[_0x5078ed([0x74,0x68,0x65,0x6e])]===_0x5078ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17b919[_0x5078ed([0x63,0x61,0x74,0x63,0x68])]===_0x5078ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x26b779(_0x21eab3){_0x3e1d62(_0x21eab3)[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x5bd410=>{if(!_0x5bd410||_0x5bd410[_0x5078ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5078ed([0x6f,0x6b]))return _0x5078ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b5005(_0x29d865(_0x20c23d+_0x2b34a3))!=_0x5bd410[_0x5078ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5078ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5078ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x15f9c1=>(_0x532e1d(),_0x15f9c1),()=>{const _0x100332=_0x55193a();return null==_0x100332?(_0x532e1d(),_0x5078ed([0x56,0x61,0x6c,0x69,0x64])):_0x5078ed(_0x4129f3-_0x100332>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x3374b7)[_0x5078ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3374b7(_0x5078ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c47b8=0x36ee80;function _0x532e1d(){const _0x5bd5af=_0x5078ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5005(_0x29d865(_0x38afa8)),_0x386be8=_0x1d2b9e(_0x1b5005(window[_0x5078ed([0x4d,0x61,0x74,0x68])][_0x5078ed([0x63,0x65,0x69,0x6c])](_0x4129f3/_0x4c47b8)));window[_0x5078ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5078ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bd5af,_0x386be8);}function _0x55193a(){const _0x15da85=_0x5078ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5005(_0x29d865(_0x38afa8)),_0xe1c957=window[_0x5078ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5078ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15da85);return _0xe1c957?window[_0x5078ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d2b9e(_0xe1c957),0x10)*_0x4c47b8:null;}function _0x3e1d62(_0x54e10f){return new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x375655,_0x454c93)=>{_0x54e10f[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x375655,_0x454c93),window[_0x5078ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x454c93,0x1d4c0);});}}_0x3fa712[_0x5078ed([0x6f,0x6e])](_0x5078ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cd587,_0x5cd3d4)=>{if(_0x5cd3d4[0x0]!=_0x38afa8)return _0x3374b7(_0x5078ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cd3d4[0x1]={..._0x5cd3d4[0x1],[_0x5078ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20c23d};},{[_0x5078ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5078ed([0x68,0x69,0x67,0x68])}),_0x3fa712[_0x5078ed([0x6f,0x6e])](_0x5078ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a7ecd=>{_0xca179d(_0x1a7ecd[_0x5078ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd0cfef=!0x0,_0x26b779(_0x1a7ecd[_0x5078ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5078ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5078ed([0x6c,0x6f,0x77])}),_0x2e960c[_0x5078ed([0x74,0x68,0x65,0x6e])](()=>{_0xd0cfef||_0x3374b7(_0x5078ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41bbc5(){return _0x3fa712[_0x5078ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5078ed([0x76,0x69,0x65,0x77])][_0x5078ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5078ed([0x61,0x75,0x74,0x6f]);}function _0x4573e5(){_0x3fa712[_0x5078ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5078ed([0x76,0x69,0x65,0x77])][_0x5078ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5078ed([0x61,0x75,0x74,0x6f]);}}(_0x3b68be[_0x5078ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b68be[_0x5078ed([0x6a,0x74,0x69])]));const _0x119135=await(async function(){let _0x6e7094=!0x0;try{const _0x50a806=_0x1e0988[_0x5078ed([0x73,0x70,0x6c,0x69,0x74])](_0x5078ed([0x2e])),[_0x2a6250,_0x3b76e5,_0x754b28]=_0x50a806;return _0xb20a31(_0x2a6250),await _0x596b91(_0x2a6250,_0x3b76e5,_0x754b28),_0x6e7094;}catch{return!0x1;}function _0xb20a31(_0x39f129){const _0x38e6de=_0x5b21c5(_0x39f129);_0x38e6de&&_0x38e6de[_0x5078ed([0x61,0x6c,0x67])]==_0x5078ed([0x45,0x53,0x32,0x35,0x36])||(_0x6e7094=!0x1);}async function _0x596b91(_0x372254,_0x5e3432,_0x500536){const _0x128b99=window[_0x5078ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5078ed([0x66,0x72,0x6f,0x6d])](_0x2322da(_0x500536),_0x26374d=>_0x26374d[_0x5078ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc8b9d5=new window[(_0x5078ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5078ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x372254+_0x5078ed([0x2e])+_0x5e3432),_0x3b7e73=window[_0x5078ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5078ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b7e73)return;const _0x50c372=await _0x3b7e73[_0x5078ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5078ed([0x6a,0x77,0x6b]),_0x18be42,{[_0x5078ed([0x6e,0x61,0x6d,0x65])]:_0x5078ed([0x45,0x43,0x44,0x53,0x41]),[_0x5078ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5078ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5078ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b7e73[_0x5078ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5078ed([0x6e,0x61,0x6d,0x65])]:_0x5078ed([0x45,0x43,0x44,0x53,0x41]),[_0x5078ed([0x68,0x61,0x73,0x68])]:{[_0x5078ed([0x6e,0x61,0x6d,0x65])]:_0x5078ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50c372,_0x128b99,_0xc8b9d5)||(_0x6e7094=!0x1);}}());return _0x119135?(function(){const _0x9c8760=_0x3b68be[_0x5078ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x9c8760)return!0x1;if(_0x9c8760[_0x5078ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5078ed([0x2a])))return!0x0;if(_0x9c8760[_0x5078ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5078ed([0x50,0x41,0x47])))return!0x0;return!0x1;}())?(function(){const _0x4750ba=[_0x5078ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5078ed([0x74,0x72,0x69,0x61,0x6c])][_0x5078ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b68be[_0x5078ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4129f3/0x3e8:0x69e02680;return _0x3b68be[_0x5078ed([0x65,0x78,0x70])]<_0x4750ba;}())?_0x5078ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x1fa9bd=_0x3b68be[_0x5078ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fa9bd||0x0==_0x1fa9bd[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x26e6ca}=new URL(window[_0x5078ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fa9bd[_0x5078ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26e6ca))return!0x0;const _0x4d6e24=_0x26e6ca[_0x5078ed([0x73,0x70,0x6c,0x69,0x74])](_0x5078ed([0x2e]));return _0x1fa9bd[_0x5078ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59b191=>_0x59b191[_0x5078ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5078ed([0x2a])))[_0x5078ed([0x6d,0x61,0x70])](_0x4925ef=>_0x4925ef[_0x5078ed([0x73,0x70,0x6c,0x69,0x74])](_0x5078ed([0x2e])))[_0x5078ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x440a7b=>_0x440a7b[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d6e24[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5078ed([0x6d,0x61,0x70])](_0x17295f=>Array(_0x4d6e24[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x17295f[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5078ed([0x66,0x69,0x6c,0x6c])](_0x17295f[0x0]===_0x5078ed([0x2a])?_0x5078ed([0x2a]):'')[_0x5078ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x17295f))[_0x5078ed([0x73,0x6f,0x6d,0x65])](_0x4416cc=>_0x4d6e24[_0x5078ed([0x65,0x76,0x65,0x72,0x79])]((_0x5a8c5c,_0x5679e0)=>_0x4416cc[_0x5679e0]===_0x5a8c5c||_0x4416cc[_0x5679e0]===_0x5078ed([0x2a])));}())?(_0x3b68be[_0x5078ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5078ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x277f1b=function(_0x1154ed){const _0x2286e6=new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5656d1=>setTimeout(_0x5656d1,0x93ecc)),_0x5bb6b5=_0x2e960c[_0x5078ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x511f92=>{let _0x9fac93=0x0;_0x3fa712[_0x5078ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5078ed([0x6f,0x6e])](_0x5078ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bc439,_0x28abe7)=>{_0x28abe7[0x0][_0x5078ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9fac93++,0x5e8==_0x9fac93&&(_0x511f92(),_0x5bc439[_0x5078ed([0x6f,0x66,0x66])]());});})),_0x152b88=[_0x2286e6,_0x5bb6b5];return window[_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5078ed([0x72,0x61,0x63,0x65])](_0x152b88)[_0x5078ed([0x74,0x68,0x65,0x6e])](()=>_0x1154ed);}(_0x5078ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x277f1b&&_0x1f898c)return new window[(_0x5078ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31398a,_0x561897)=>{_0x277f1b[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x31398a,_0x561897),_0x1f898c[_0x5078ed([0x74,0x68,0x65,0x6e])](_0x5c6ad1=>{_0x5c6ad1!=_0x5078ed([0x56,0x61,0x6c,0x69,0x64])&&_0x31398a(_0x5c6ad1);},_0x561897);});return _0x277f1b||_0x1f898c||_0x5078ed([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5078ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5078ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5078ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5078ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x5b21c5(_0x236221){return _0x236221[_0x5078ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5078ed([0x65,0x79]))?JSON[_0x5078ed([0x70,0x61,0x72,0x73,0x65])](_0x2322da(_0x236221)):null;}function _0x2322da(_0x52e742){return window[_0x5078ed([0x61,0x74,0x6f,0x62])](_0x52e742[_0x5078ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5078ed([0x2b]))[_0x5078ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5078ed([0x2f])));}function _0x29d865(_0x585cf3){let _0x53c88d=0x1505;function _0x18eb13(_0x582f73){for(let _0x28fd65=0x0;_0x28fd65<_0x582f73[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28fd65++){const _0x210310=_0x582f73[_0x5078ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28fd65);_0x53c88d=(_0x53c88d<<0x5)+_0x53c88d+_0x210310,_0x53c88d&=_0x53c88d;}}return function _0x6d2a5a(_0x2b8a76){Array[_0x5078ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b8a76)?_0x2b8a76[_0x5078ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x6d2a5a):_0x2b8a76&&typeof _0x2b8a76==_0x5078ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5078ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b8a76)[_0x5078ed([0x73,0x6f,0x72,0x74])]()[_0x5078ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13d076,_0x288cf2])=>{_0x18eb13(_0x13d076),_0x6d2a5a(_0x288cf2);}):_0x18eb13(window[_0x5078ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b8a76));}(_0x585cf3),_0x53c88d>>>0x0;}function _0x1b5005(_0x529e89){return _0x529e89[_0x5078ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5078ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5078ed([0x30]));}function _0x1d2b9e(_0x4075ec){return _0x4075ec[_0x5078ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5078ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5078ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x297cee(){}function _0x5078ed(_0xe3df9f){return _0xe3df9f['map'](_0x441e6f=>String['fromCharCode'](_0x441e6f))['join']('');}!function(_0x587109){const _0x49d1a9=(function(){const _0x4c4a8a=window[_0x5078ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5078ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5078ed([0x6e,0x6f,0x77])]())[_0x5078ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5078ed([0x2e]),'');let _0x165858=_0x5078ed([0x49]);for(let _0x40e3b7=0x0;_0x40e3b7<_0x4c4a8a[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e3b7+=0x2){let _0x1ee811=window[_0x5078ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c4a8a[_0x5078ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e3b7,_0x40e3b7+0x2));_0x1ee811>=_0x47fc23[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1ee811-=_0x47fc23[_0x5078ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x165858+=_0x47fc23[_0x1ee811];}return _0x165858;}());_0x3fa712[_0x49d1a9]=_0x5078ed([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x587109,_0x587109!=_0x5078ed([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x2e960c,_0x3fa712[_0x5078ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5078ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x297cee,_0x3fa712[_0x5078ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x5078ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x297cee,_0x3fa712[_0x5078ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5078ed([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5e624c);}const toPx=/* #__PURE__ -- @preserve */
toUnit('px');let LineView$1=class extends View{constructor(){super();const _0x496a84=this['bindTemplate'];this['set']({'isVisible':!0x1,'left':null,'top':null,'width':null,'pageNumber':null}),this['setTemplate']({'tag':'div','attributes':{'data-page-number':_0x496a84['to']('pageNumber'),'class':['ck','ck-pagination-view-line',_0x496a84['if']('isVisible','ck-hidden',_0x3da8a9=>!_0x3da8a9)],'style':{'left':_0x496a84['to']('left',_0x1564a0=>toPx(_0x1564a0)),'top':_0x496a84['to']('top',_0x1a7aa8=>toPx(_0x1a7aa8)),'width':_0x496a84['to']('width',_0xe5d038=>toPx(_0xe5d038))}}});}};class LinesRepository{['_viewCollection'];['_visibleLines']=new Set();['_hiddenLines']=new Set();constructor(_0x1f9b9c){this['_viewCollection']=_0x1f9b9c['ui']['view']['body'];}['destroy'](){for(const _0x52ec1b of this['_hiddenLines'])_0x52ec1b['destroy']();}['cleanLines'](){for(const _0x122f54 of this['_visibleLines'])_0x122f54['isVisible']=!0x1,this['_hiddenLines']['add'](_0x122f54);this['_visibleLines']['clear']();}['showLine'](_0x26d168,_0x40c840,_0x20ea26,_0x5e3dcd){let _0x36daa2;this['_hiddenLines']['size']?(_0x36daa2=first(this['_hiddenLines']['values']()),this['_hiddenLines']['delete'](_0x36daa2)):_0x36daa2=new LineView$1(),_0x36daa2['set']({'pageNumber':_0x5e3dcd,'left':_0x26d168,'top':_0x40c840,'width':_0x20ea26}),_0x36daa2['isVisible']=!0x0,this['_viewCollection']['has'](_0x36daa2)||this['_viewCollection']['add'](_0x36daa2),this['_visibleLines']['add'](_0x36daa2);}['setViewCollection'](_0x3981d8){for(const _0x2d3f15 of[...this['_visibleLines'],...this['_hiddenLines']])this['_viewCollection']['has'](_0x2d3f15)&&this['_viewCollection']['remove'](_0x2d3f15);this['_viewCollection']=_0x3981d8;}}const PLUGIN_ENABLED_CLASS='ck-pagination_enabled';class PaginationRenderer extends Plugin{['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 LinesRepository(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'](PLUGIN_ENABLED_CLASS),this['on']('change:isEnabled',(_0x3ae7e6,_0x32777d,_0x13bb7b)=>{_0x13bb7b||this['linesRepository']['cleanLines'](),this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,_0x13bb7b);});}['destroy'](){this['_toggleEditingRootsClass'](PLUGIN_ENABLED_CLASS,!0x1),this['linesRepository']['destroy'](),this['_scrollableEditingRootDomAncestor']=null,this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['scrollToPage'](_0xb0ff01){if(!this['isEnabled'])return;const _0x4c0640=_0xb0ff01>0x1?this['_getPageBreakLineOffset'](_0xb0ff01-0x1):0x0;this['_scrollableEditingRootDomAncestor']['scrollTo']({'top':_0x4c0640-0xa,'left':this['_scrollableEditingRootDomAncestor']['scrollLeft'],'behavior':env['isMotionReduced']?'instant':'smooth'});}['setupScrollableAncestor'](){const _0x5c7db5=this['editor'],_0x52292c=this['_getAttachedDomRoot']();_0x52292c?(this['_scrollableEditingRootDomAncestor']&&_0x5c7db5['ui']['view']['stopListening'](this['_scrollableEditingRootDomAncestor'],'scroll'),this['_scrollableEditingRootDomAncestor']=findScrollableElement(_0x52292c),_0x5c7db5['ui']['view']['listenTo'](this['_scrollableEditingRootDomAncestor'],'scroll',()=>{this['_updatePageBreakLines']();},{'usePassive':!0x0}),this['_resizeObserver']&&this['_resizeObserver']['destroy'](),this['_resizeObserver']=new _0x3ccca1(this['_scrollableEditingRootDomAncestor'],()=>{this['_updatePageBreakLines']();})):_0x5c7db5['ui']['once']('update',()=>this['setupScrollableAncestor']());}['_onUiReady'](){const _0x41e061=this['editor'];this['_getAttachedDomRoot']()?(this['setupScrollableAncestor'](),_0x41e061['ui']['view']['listenTo'](_0x59f9c1['window'],'resize',()=>this['_updatePageBreakLines']()),this['listenTo'](this['_paginationLookupPlugin'],'change:pageBreaks',()=>this['_updatePageBreakLines']())):_0x41e061['ui']['once']('update',()=>this['_onUiReady']());}['_getAttachedDomRoot'](){for(const _0x2c3c46 of this['editor']['editing']['view']['domRoots']['values']())if(_0x2c3c46['ownerDocument']['body']['contains'](_0x2c3c46))return _0x2c3c46;return null;}['_updatePageBreakLines'](){if(!this['isEnabled'])return;const _0x48d074=this['_getAttachedDomRoot'](),_0x4bedc8=this['_paginationLookupPlugin']['pageBreaks'];if(this['linesRepository']['cleanLines'](),!_0x48d074||0x1==_0x4bedc8['length'])return void(this['pageNumber']=0x1);const _0x1dd9d7=new Rect(_0x48d074)['excludeScrollbarsAndBorders'](),_0x71b3d4=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders'](),_0xb07195=_0x71b3d4['top']+_0x71b3d4['height']/0x3;let _0x1c8c79=!0x1;const _0x38d71e=[];for(let _0x14ff34=0x1;_0x14ff34<_0x4bedc8['length'];_0x14ff34++){const _0x398dce=this['_getPageBreakLineOffset'](_0x14ff34,_0x71b3d4);if(!_0x398dce)continue;const _0x118da8=_0x71b3d4['top']+_0x398dce-this['_scrollableEditingRootDomAncestor']['scrollTop'];_0x38d71e['push']({'pageOffsetTop':_0x118da8,'domRootRect':_0x1dd9d7,'domScrollableRect':_0x71b3d4,'pageNumber':_0x14ff34}),_0x118da8>_0xb07195&&!_0x1c8c79&&(this['pageNumber']=_0x14ff34,_0x1c8c79=!0x0);}this['_renderPageBreakLines'](_0x38d71e),_0x1c8c79||(this['pageNumber']=_0x4bedc8['length']);}['_renderPageBreakLines'](_0x28b25e){const {scrollX:_0x981c47,scrollY:_0x3860e8}=_0x59f9c1['window'];if(_0x28b25e['length']){for(const {domScrollableRect:_0x57106d,pageOffsetTop:_0x4839d2,domRootRect:_0x1f1aff,pageNumber:_0x1406cf}of _0x28b25e)_0x57106d['top']<_0x4839d2&&_0x4839d2<_0x57106d['bottom']&&this['linesRepository']['showLine'](_0x1f1aff['left']+_0x981c47,_0x4839d2+_0x3860e8,_0x1f1aff['width'],_0x1406cf+0x1);}}['_getPageBreakLineOffset'](_0x5d3863,_0x2544ea=null){const _0x306f6d=this['_paginationLookupPlugin']['pageBreaks'][_0x5d3863]['offset'];return _0x306f6d?(_0x2544ea||(_0x2544ea=new Rect(this['_scrollableEditingRootDomAncestor'])['excludeScrollbarsAndBorders']()),_0x306f6d-_0x2544ea['top']+this['_scrollableEditingRootDomAncestor']['scrollTop']):0x0;}['_toggleEditingRootsClass'](_0x1d6ad0,_0x4b7638=!0x0){const _0x2d12c0=this['editor']['editing']['view'];_0x2d12c0['change'](_0x571987=>{for(const _0x1ac830 of _0x2d12c0['document']['roots'])_0x4b7638?_0x571987['addClass'](_0x1d6ad0,_0x1ac830):_0x571987['removeClass'](_0x1d6ad0,_0x1ac830);});}}function findScrollableElement(_0x519ea2){let _0x27e680=_0x519ea2;do{_0x27e680=_0x27e680['parentElement'];const _0x4a5a11=_0x59f9c1['window']['getComputedStyle'](_0x27e680)['overflowY'];if('auto'==_0x4a5a11||'scroll'==_0x4a5a11)break;}while('BODY'!=_0x27e680['tagName']);return _0x27e680;}function getTranslation$7(_0x3f2439,_0x2024a6,..._0x4bf4d1){const t=_0x3f2439['t'];switch(_0x2024a6){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)',..._0x4bf4d1);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 _0x2024a6;}}class PaginationEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PaginationEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationLookup,PaginationRenderer];}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x585135=this['editor']['plugins']['get']('Pagination'),_0x2752b9=this['editor']['plugins']['get'](PaginationLookup),_0x44b3ac=this['editor']['plugins']['get'](PaginationRenderer);this['bind']('isEnabled')['to'](_0x585135),this['_setUpDataDowncastConversion'](),this['bind']('pageNumber')['to'](_0x44b3ac),this['listenTo'](_0x2752b9,'change:pageBreaks',(_0x3be47d,_0x595e8c,_0x8270b6,_0x108a89)=>{this['totalPages']=_0x8270b6['length'],this['_updatePageBreakMarkers'](_0x8270b6,_0x108a89);}),this['_setupKeystrokes'](),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48bb81=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32f7b0;for(const _0x3957b0 in _0x48bb81){const _0x3d15fe=_0x3957b0,_0x63da54=_0x48bb81[_0x3d15fe];if('paginationLicenseKeyValid'==_0x63da54||'paginationLicenseKeyInvalid'==_0x63da54||'paginationLicenseKeyExpired'==_0x63da54||'paginationLicenseKeyDomainLimit'==_0x63da54||'paginationLicenseKeyNotAllowed'==_0x63da54||'paginationLicenseKeyEvaluationLimit'==_0x63da54||'paginationLicenseKeyUsageLimit'==_0x63da54){delete _0x48bb81[_0x3d15fe],_0x32f7b0=_0x63da54,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'paginationLicenseKeyInvalid'==_0x32f7b0&&_0x48bb81['_showLicenseError']('invalid'),'paginationLicenseKeyExpired'==_0x32f7b0&&_0x48bb81['_showLicenseError']('expired'),'paginationLicenseKeyDomainLimit'==_0x32f7b0&&_0x48bb81['_showLicenseError']('domainLimit'),'paginationLicenseKeyNotAllowed'==_0x32f7b0&&_0x48bb81['_showLicenseError']('featureNotAllowed','Pagination'),'paginationLicenseKeyEvaluationLimit'==_0x32f7b0&&_0x48bb81['_showLicenseError']('evaluationLimit'),'paginationLicenseKeyUsageLimit'==_0x32f7b0&&_0x48bb81['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['scrollToPage'](_0x3a170c){if(!this['isEnabled'])return;this['editor']['plugins']['get'](PaginationRenderer)['scrollToPage'](this['_validatePageNumber'](_0x3a170c));}['moveSelectionToPage'](_0x442fa3){if(!this['isEnabled'])return;const _0x324f04=this['editor'],_0x379c66=this['editor']['plugins']['get'](PaginationLookup)['pageBreaks'][_0x442fa3-0x1];_0x379c66&&_0x324f04['model']['change'](_0x454f4d=>{switch(_0x379c66['type']){case'manual':{const _0x467c11=_0x324f04['model']['schema']['getNearestSelectionRange'](_0x379c66['modelRange']['end'],'forward');_0x454f4d['setSelection'](_0x467c11);break;}case'element':{const _0x2691cf=_0x324f04['model']['schema']['getNearestSelectionRange'](_0x379c66['modelRange']['start'],'forward');_0x454f4d['setSelection'](_0x2691cf);break;}case'text':{const _0x2c20cc=_0x379c66['modelRange']['start'];if(_0x2c20cc['textNode']&&'\x20'===_0x2c20cc['textNode']['data'][_0x2c20cc['offset']]){const _0x231357=_0x454f4d['createPositionAt'](_0x2c20cc['parent'],_0x2c20cc['offset']+0x1);_0x454f4d['setSelection'](_0x231357);}else _0x454f4d['setSelection'](_0x379c66['modelRange']);}}_0x324f04['editing']['view']['focus']();});}['goToNextPage'](){const _0x8eff10=this['_validatePageNumber'](this['pageNumber']+0x1);this['moveSelectionToPage'](_0x8eff10),this['scrollToPage'](_0x8eff10);}['goToPreviousPage'](){const _0x23eca4=this['_validatePageNumber'](this['pageNumber']-0x1);this['moveSelectionToPage'](_0x23eca4),this['scrollToPage'](_0x23eca4);}['_updatePageBreakMarkers'](_0x308bb7,_0x306b38){const _0x122ac9=this['editor']['model'];this['isEnabled']&&_0x122ac9['change'](_0x30094e=>{for(let _0x4ada65=0x1;_0x4ada65<_0x308bb7['length'];_0x4ada65++){const _0x170e0d=_0x308bb7[_0x4ada65]['modelRange'],_0xb4ac1a='pagination:'+(_0x4ada65+0x1);_0x122ac9['markers']['has'](_0xb4ac1a)?_0x30094e['updateMarker'](_0xb4ac1a,{'range':_0x170e0d}):_0x30094e['addMarker'](_0xb4ac1a,{'range':_0x170e0d,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x5bbc98=_0x308bb7['length'];_0x5bbc98<_0x306b38['length'];_0x5bbc98++){const _0x142683='pagination:'+(_0x5bbc98+0x1);_0x122ac9['markers']['has'](_0x142683)&&_0x30094e['removeMarker'](_0x142683);}});}['_setUpDataDowncastConversion'](){const _0x24bf57='pagination';this['editor']['conversion']['for']('dataDowncast')['add'](_0x286f89=>{_0x286f89['on']('addMarker:'+_0x24bf57,(_0x30bcf5,{markerRange:_0x51b9e0,markerName:_0x2a6794},_0xf69d3b)=>{if(!_0xf69d3b['options']['pagination'])return;if(!_0xf69d3b['consumable']['consume'](_0x51b9e0,_0x30bcf5['name']))return;const _0x546358=_0x51b9e0['getContainedElement']();let _0x51ddb7=_0x546358?_0xf69d3b['mapper']['toViewElement'](_0x546358):null;if(!_0x51ddb7){const _0x3239f1=_0x51b9e0['start'];if(_0xf69d3b['schema']['checkChild'](_0x3239f1,'$text')){const _0x4ba7f5=_0xf69d3b['mapper']['toViewPosition'](_0x3239f1);_0x51ddb7=_0xf69d3b['writer']['createContainerElement']('span'),_0x51ddb7['getFillerOffset']=()=>null,_0xf69d3b['writer']['insert'](_0x4ba7f5,_0x51ddb7);}else{const _0x2c9f00=_0x3239f1['nodeAfter'];_0x51ddb7=_0xf69d3b['mapper']['toViewElement'](_0x2c9f00);}}for(;_0x51ddb7['parent']!==_0x51ddb7['root']&&0x0===_0x51ddb7['index'];)_0x51ddb7=_0x51ddb7['parent'];const _0x3fa23f=_0x2a6794['substring'](0xb);_0x51ddb7['hasClass']('page-break')||(_0xf69d3b['writer']['setStyle']('page-break-before','always',_0x51ddb7),_0xf69d3b['writer']['setAttribute']('data-pagination-page',_0x3fa23f,_0x51ddb7),_0xf69d3b['mapper']['bindElementToMarker'](_0x51ddb7,_0x2a6794)),_0x30bcf5['stop']();});});}['_setupKeystrokes'](){const _0x58d39e=this['editor'];_0x58d39e['keystrokes']['set']('Shift+Pageup',(_0x554bb4,_0x4791f5)=>{this['goToPreviousPage'](),_0x4791f5();}),_0x58d39e['keystrokes']['set']('Shift+Pagedown',(_0x3815ab,_0x36ebb5)=>{this['goToNextPage'](),_0x36ebb5();}),_0x58d39e['accessibility']['addKeystrokeInfoGroup']({'id':'pagination','label':getTranslation$7(_0x58d39e['locale'],'Keystrokes\x20for\x20navigating\x20through\x20documents'),'keystrokes':[{'label':getTranslation$7(_0x58d39e['locale'],'Go\x20to\x20the\x20previous\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pageup','mayRequireFn':!0x0},{'label':getTranslation$7(_0x58d39e['locale'],'Go\x20to\x20the\x20next\x20page\x20(also\x20move\x20selection)'),'keystroke':'Shift+Pagedown','mayRequireFn':!0x0}]});}['_validatePageNumber'](_0x43cc60){return _0x43cc60<0x1&&(_0x43cc60=0x1),_0x43cc60>this['totalPages']&&(_0x43cc60=this['totalPages']),_0x43cc60;}}class PageNavigatorView extends View{['pageNumberView'];constructor(_0x29bb6f){super(_0x29bb6f);const _0x10e625=this['bindTemplate'];this['set']({'pageNumber':0x1,'totalPages':0x1,'isEnabled':!0x0}),this['pageNumberView']=new InputNumberView(_0x29bb6f,{'min':0x1,'step':0x1}),this['pageNumberView']['set']({'inputMode':'numeric','tabIndex':-0x1}),this['pageNumberView']['bind']('ariaLabel')['to'](this,'totalPages',_0x477e02=>getTranslation$7(_0x29bb6f,'Current\x20page\x20number\x20(from\x201\x20to\x20%0)',_0x477e02)),this['pageNumberView']['bind']('max')['to'](this,'totalPages'),this['pageNumberView']['bind']('isReadOnly')['to'](this,'isEnabled',_0x3c43f5=>!_0x3c43f5),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-page-navigator',_0x10e625['if']('isEnabled','ck-disabled',_0x42af1d=>!_0x42af1d)]},'children':[this['pageNumberView'],{'tag':'span','children':[{'text':_0x10e625['to']('totalPages')}]}]});}['render'](){super['render']();const _0x2ae9d7=this['pageNumberView']['element'],_0x90c544=_0x60bd0c=>{this['pageNumberView']['element']['value']=String(_0x60bd0c);};_0x90c544(this['pageNumber']),this['on']('change:pageNumber',(_0x2bf6e8,_0x513334,_0xb57a38)=>{_0x90c544(_0xb57a38);}),this['listenTo'](_0x2ae9d7,'keydown',(_0x34c419,_0x19701b)=>{if('ArrowUp'===_0x19701b['key']||'ArrowDown'===_0x19701b['key'])return void _0x19701b['stopPropagation']();if(_0x19701b['keyCode']!==keyCodes['enter'])return;_0x19701b['preventDefault']();const _0x2d05b0=_0x2ae9d7['valueAsNumber'];Number['isNaN'](_0x2d05b0)?_0x2ae9d7['value']=String(this['pageNumber']):(_0x2ae9d7['checkValidity']()?this['pageNumber']=_0x2d05b0:_0x2d05b0>this['totalPages']?(this['pageNumber']=this['totalPages'],_0x2ae9d7['value']=String(this['totalPages'])):(this['pageNumber']=0x1,_0x2ae9d7['value']='1'),this['fire']('navigation',this['pageNumber']));}),this['listenTo'](_0x2ae9d7,'blur',()=>{_0x2ae9d7['value']=String(this['pageNumber']);}),this['listenTo'](_0x2ae9d7,'focus',()=>{this['pageNumberView']['select']();});}['focus'](){this['element']['firstChild']['focus']();}}class PaginationUI extends Plugin{static get['pluginName'](){return'PaginationUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5ab190=this['editor'],_0x5e2881=_0x5ab190['plugins']['get']('PaginationEditing');_0x5ab190['ui']['componentFactory']['add']('pageNavigation',_0x309aed=>{const _0x283301=new PageNavigatorView(_0x309aed);return _0x283301['bind']('pageNumber')['to'](_0x5e2881),_0x283301['bind']('totalPages')['to'](_0x5e2881),_0x283301['bind']('isEnabled')['to'](_0x5e2881),_0x283301['on']('navigation',(_0x3faf55,_0x2b36b4)=>{_0x5e2881['moveSelectionToPage'](_0x2b36b4),_0x5e2881['scrollToPage'](_0x2b36b4);}),_0x283301;}),_0x5ab190['ui']['componentFactory']['add']('nextPage',_0x2cf634=>{const _0x5d7acb=new ButtonView(_0x2cf634);return _0x5d7acb['isEnabled']=!0x0,_0x5d7acb['label']=getTranslation$7(_0x5ab190['locale'],'Go\x20to\x20next\x20page'),_0x5d7acb['icon']=IconArrowDown,_0x5d7acb['tooltip']=!0x0,_0x5d7acb['keystroke']='Shift+PageDown',_0x5d7acb['bind']('isEnabled')['to'](_0x5e2881),this['listenTo'](_0x5d7acb,'execute',()=>{_0x5e2881['goToNextPage']();}),_0x5d7acb;}),_0x5ab190['ui']['componentFactory']['add']('previousPage',_0xb3414b=>{const _0x461e1a=new ButtonView(_0xb3414b);return _0x461e1a['isEnabled']=!0x0,_0x461e1a['label']=getTranslation$7(_0x5ab190['locale'],'Go\x20to\x20previous\x20page'),_0x461e1a['icon']=IconArrowUp,_0x461e1a['tooltip']=!0x0,_0x461e1a['keystroke']='Shift+PageUp',_0x461e1a['bind']('isEnabled')['to'](_0x5e2881),this['listenTo'](_0x461e1a,'execute',()=>{_0x5e2881['goToPreviousPage']();}),_0x461e1a;});}}class Pagination extends Plugin{static get['pluginName'](){return'Pagination';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[PaginationEditing,PaginationUI];}constructor(_0x301058){super(_0x301058),this['isEnabled']=!0x1;}['init'](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x33f919=this['editor']['plugins']['get'](PaginationEditing);this['bind']('pageNumber')['to'](_0x33f919),this['bind']('totalPages')['to'](_0x33f919),env['isBlink']||this['editor']['config']['get']('pagination.enableOnUnsupportedBrowsers')?this['editor']['on']('ready',()=>{this['isEnabled']=!0x0;}):this['forceDisabled']('browserCheck');}['scrollToPage'](_0x15bb9e){this['editor']['plugins']['get'](PaginationEditing)['scrollToPage'](_0x15bb9e);}}const MS_EXCEL_META_REGEX=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function isMSExcelContent(_0x3e2713){return MS_EXCEL_META_REGEX['test'](_0x3e2713);}const CSS_SELECTOR_REGEX=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function getMatchingStyles(_0xabcf87,_0x1066b8){const _0x5b1f88=new Map();for(const [_0xc7dc2e,_0x1d98cf]of _0x1066b8){if(!_0xc7dc2e['tagName']&&!_0xc7dc2e['className'])continue;const _0x57f1e3=!_0xc7dc2e['tagName']||_0xabcf87['name']===_0xc7dc2e['tagName'],_0x22785a=!_0xc7dc2e['className']||_0xabcf87['hasClass'](_0xc7dc2e['className']);_0x57f1e3&&_0x22785a&&_0x5b1f88['set'](_0xc7dc2e,_0x1d98cf);}return _0x5b1f88;}function extractStyles(_0x54483e){const _0x59559b={};for(const _0x507418 of _0x54483e)for(const _0x850c5b of _0x507418['cssRules'])if(_0x850c5b instanceof CSSStyleRule){const _0x2d3c08=parseCSSStyleDeclaration(_0x850c5b['style']);_0x59559b[_0x850c5b['selectorText']]=Object['assign']({},_0x59559b[_0x850c5b['selectorText']]||{},_0x2d3c08);}return _0x59559b;}function expandStyles(_0x3bcde8){const _0x106c84=new Map();for(const _0x2dbd32 in _0x3bcde8){const _0x553cbc=parseCSSSelector(_0x2dbd32),_0x6059bf=_0x3bcde8[_0x2dbd32];for(const _0x5dec35 of _0x553cbc)_0x106c84['set'](_0x5dec35,_0x6059bf);}return _0x106c84;}function parseCSSStyleDeclaration(_0x4c4623){const _0x19ad1f={};for(let _0x495e25=0x0;_0x495e25<_0x4c4623['length'];_0x495e25++){const _0x183452=_0x4c4623[_0x495e25],_0x4f08c1=_0x4c4623['getPropertyValue'](_0x183452);'initial'!==_0x4f08c1&&(_0x19ad1f[_0x183452]=_0x4f08c1);}return _0x19ad1f;}function parseCSSSelector(_0x37f5b8){const _0x5d942f=_0x37f5b8['split'](',')['map'](_0x52a38f=>_0x52a38f['trim']()),_0x845b77=[];for(const _0x7bf972 of _0x5d942f){const _0x3ee460=CSS_SELECTOR_REGEX['exec'](_0x7bf972);_0x3ee460&&_0x845b77['push'](_0x3ee460['groups']);}return _0x845b77;}function flattenStyleDefinitions(_0x33aa7b){const _0x150f51={};for(const _0x31d397 of _0x33aa7b)Object['assign'](_0x150f51,_0x31d397);return _0x150f51;}class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormalizer{['execute'](_0x28dc74){const {body:_0x2a5851,styles:_0x504437}=_0x28dc74['_parsedData'],_0x5b6c61=new ViewUpcastWriter(_0x2a5851['document']),_0x42521d=_0x5b6c61['createRangeIn'](_0x2a5851),_0xc1b8b0=expandStyles(extractStyles(_0x504437));for(const _0x39549d of _0x42521d){if('elementStart'!==_0x39549d['type'])continue;const _0x2afa02=getMatchingStyles(_0x39549d['item'],_0xc1b8b0);if(_0x2afa02['size']){const _0x3458da=flattenStyleDefinitions(Array['from'](_0x2afa02['values']()));for(const _0x46d3e8 in _0x3458da){const _0x3a1e48=_0x39549d['item'];_0x3a1e48['hasStyle'](_0x46d3e8)||_0x5b6c61['setStyle'](_0x46d3e8,_0x3458da[_0x46d3e8],_0x3a1e48);}}}_0x28dc74['content']=_0x2a5851;}['isActive'](_0x383550){return super['isActive'](_0x383550)||isMSExcelContent(_0x383550);}}class PasteFromOfficeEnhancedInliner extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice'];}['init'](){const _0x4a42c3=this['editor'],_0x35f06e=_0x4a42c3['plugins']['get']('ClipboardPipeline'),_0x465910=_0x4a42c3['editing']['view']['document'],_0x395806=new MSOfficeStylesInliner(_0x465910);_0x35f06e['on']('inputTransformation',(_0x512a45,_0x5a4f7a)=>{const _0x5c795d=_0x5a4f7a['dataTransfer']['getData']('text/html');_0x395806['isActive'](_0x5c795d)&&(_0x5a4f7a['_parsedData']||(_0x5a4f7a['_parsedData']=parsePasteOfficeHtml(_0x5c795d,_0x465910['stylesProcessor'])),_0x395806['execute'](_0x5a4f7a));},{'priority':priorities['get']('high')+0xb});}['afterInit'](){checkLicense$6(this);}}async function checkLicense$6(_0x5b323d){const _0x2aea32=_0x409a8e([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x223ad6=window[_0x409a8e([0x44,0x61,0x74,0x65])][_0x409a8e([0x6e,0x6f,0x77])](),_0x30b749=_0x5b323d[_0x409a8e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3dcda4=new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27d099=>{_0x30b749[_0x409a8e([0x6f,0x6e,0x63,0x65])](_0x409a8e([0x72,0x65,0x61,0x64,0x79]),_0x27d099);}),_0x12d6ab={[_0x409a8e([0x6b,0x74,0x79])]:_0x409a8e([0x45,0x43]),[_0x409a8e([0x75,0x73,0x65])]:_0x409a8e([0x73,0x69,0x67]),[_0x409a8e([0x63,0x72,0x76])]:_0x409a8e([0x50,0x2d,0x32,0x35,0x36]),[_0x409a8e([0x78])]:_0x409a8e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x409a8e([0x79])]:_0x409a8e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x409a8e([0x61,0x6c,0x67])]:_0x409a8e([0x45,0x53,0x32,0x35,0x36])},_0x3ad79d=_0x30b749[_0x409a8e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x409a8e([0x67,0x65,0x74])](_0x409a8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x362b89=await(async function(){let _0x311edb,_0x424a74=null,_0x2ac043=null;try{if(_0x3ad79d==_0x409a8e([0x47,0x50,0x4c]))return _0x409a8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x311edb=(function(){const _0x3aa923=_0x3ad79d[_0x409a8e([0x73,0x70,0x6c,0x69,0x74])](_0x409a8e([0x2e]));if(0x3!=_0x3aa923[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x261b0a=_0x3aa923[0x1];return _0xd51135(_0x261b0a);function _0xd51135(_0x139a61){const _0xe46ad7=_0x17df4c(_0x139a61);return _0xe46ad7&&_0x13f66d()?_0xe46ad7:null;function _0x13f66d(){const _0xcc57e4=_0xe46ad7[_0x409a8e([0x6a,0x74,0x69])],_0x2968e8=window[_0x409a8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcc57e4[_0x409a8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcc57e4[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3735db={..._0xe46ad7,[_0x409a8e([0x6a,0x74,0x69])]:_0xcc57e4[_0x409a8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcc57e4[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3735db[_0x409a8e([0x76,0x63])],_0x139f2d(_0x3735db)==_0x2968e8;}}}()),!_0x311edb)return _0x409a8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x311edb[_0x409a8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ac043=function(_0x47b91a,_0x2b3a4b){return new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5732b8=>{if(_0x5b2b3b())return _0x5732b8(_0x409a8e([0x56,0x61,0x6c,0x69,0x64]));_0x5d17ad(),_0x30b749[_0x409a8e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x409a8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f01f0=!0x1;const _0x46e8b1=uid();function _0x22aa7a(_0x5e8873){return!!_0x5e8873&&(typeof _0x5e8873===_0x409a8e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e8873===_0x409a8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e8873[_0x409a8e([0x74,0x68,0x65,0x6e])]===_0x409a8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e8873[_0x409a8e([0x63,0x61,0x74,0x63,0x68])]===_0x409a8e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3354ab(_0x1b02c3){_0x283713(_0x1b02c3)[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x33486a=>{if(!_0x33486a||_0x33486a[_0x409a8e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x409a8e([0x6f,0x6b]))return _0x409a8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28bf92(_0x139f2d(_0x46e8b1+_0x2b3a4b))!=_0x33486a[_0x409a8e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x409a8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x409a8e([0x56,0x61,0x6c,0x69,0x64]);})[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x8ba315=>(_0x4fefe2(),_0x8ba315),()=>{const _0x4e0dce=_0x3a0109();return null==_0x4e0dce?(_0x4fefe2(),_0x409a8e([0x56,0x61,0x6c,0x69,0x64])):_0x409a8e(_0x223ad6-_0x4e0dce>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x5732b8)[_0x409a8e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5732b8(_0x409a8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5516a5=0x36ee80;function _0x4fefe2(){const _0x1624c2=_0x409a8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28bf92(_0x139f2d(_0x47b91a)),_0x32262e=_0x53ceca(_0x28bf92(window[_0x409a8e([0x4d,0x61,0x74,0x68])][_0x409a8e([0x63,0x65,0x69,0x6c])](_0x223ad6/_0x5516a5)));window[_0x409a8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409a8e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1624c2,_0x32262e);}function _0x3a0109(){const _0x25e846=_0x409a8e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28bf92(_0x139f2d(_0x47b91a)),_0x5f21b0=window[_0x409a8e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x409a8e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25e846);return _0x5f21b0?window[_0x409a8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53ceca(_0x5f21b0),0x10)*_0x5516a5:null;}function _0x283713(_0x2e3f45){return new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7b4a,_0x469b4b)=>{_0x2e3f45[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x2e7b4a,_0x469b4b),window[_0x409a8e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x469b4b,0x1d4c0);});}}_0x30b749[_0x409a8e([0x6f,0x6e])](_0x409a8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c24f7,_0x3418da)=>{if(_0x3418da[0x0]!=_0x47b91a)return _0x5732b8(_0x409a8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3418da[0x1]={..._0x3418da[0x1],[_0x409a8e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46e8b1};},{[_0x409a8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409a8e([0x68,0x69,0x67,0x68])}),_0x30b749[_0x409a8e([0x6f,0x6e])](_0x409a8e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x532c40=>{_0x22aa7a(_0x532c40[_0x409a8e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f01f0=!0x0,_0x3354ab(_0x532c40[_0x409a8e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x409a8e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x409a8e([0x6c,0x6f,0x77])}),_0x3dcda4[_0x409a8e([0x74,0x68,0x65,0x6e])](()=>{_0x3f01f0||_0x5732b8(_0x409a8e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b2b3b(){return _0x30b749[_0x409a8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409a8e([0x76,0x69,0x65,0x77])][_0x409a8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x409a8e([0x61,0x75,0x74,0x6f]);}function _0x5d17ad(){_0x30b749[_0x409a8e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x409a8e([0x76,0x69,0x65,0x77])][_0x409a8e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x409a8e([0x61,0x75,0x74,0x6f]);}}(_0x311edb[_0x409a8e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x311edb[_0x409a8e([0x6a,0x74,0x69])]));const _0x1f7d89=await(async function(){let _0x3d97f7=!0x0;try{const _0x5412fa=_0x3ad79d[_0x409a8e([0x73,0x70,0x6c,0x69,0x74])](_0x409a8e([0x2e])),[_0x43c152,_0x1442fb,_0xbafcc3]=_0x5412fa;return _0x2a66c6(_0x43c152),await _0x55b705(_0x43c152,_0x1442fb,_0xbafcc3),_0x3d97f7;}catch{return!0x1;}function _0x2a66c6(_0x391609){const _0x140793=_0x17df4c(_0x391609);_0x140793&&_0x140793[_0x409a8e([0x61,0x6c,0x67])]==_0x409a8e([0x45,0x53,0x32,0x35,0x36])||(_0x3d97f7=!0x1);}async function _0x55b705(_0x491126,_0x3b3d6c,_0x32ead5){const _0x16afbc=window[_0x409a8e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x409a8e([0x66,0x72,0x6f,0x6d])](_0x5302c2(_0x32ead5),_0x57273d=>_0x57273d[_0x409a8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x179486=new window[(_0x409a8e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x409a8e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x491126+_0x409a8e([0x2e])+_0x3b3d6c),_0x571d3e=window[_0x409a8e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x409a8e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x571d3e)return;const _0x963668=await _0x571d3e[_0x409a8e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x409a8e([0x6a,0x77,0x6b]),_0x12d6ab,{[_0x409a8e([0x6e,0x61,0x6d,0x65])]:_0x409a8e([0x45,0x43,0x44,0x53,0x41]),[_0x409a8e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x409a8e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x409a8e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x571d3e[_0x409a8e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x409a8e([0x6e,0x61,0x6d,0x65])]:_0x409a8e([0x45,0x43,0x44,0x53,0x41]),[_0x409a8e([0x68,0x61,0x73,0x68])]:{[_0x409a8e([0x6e,0x61,0x6d,0x65])]:_0x409a8e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x963668,_0x16afbc,_0x179486)||(_0x3d97f7=!0x1);}}());return _0x1f7d89?(function(){const _0x317e3e=_0x311edb[_0x409a8e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x317e3e)return!0x1;if(_0x317e3e[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409a8e([0x2a])))return!0x0;if(_0x317e3e[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409a8e([0x50,0x4f,0x45])))return!0x0;if(_0x317e3e[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409a8e([0x50,0x50])))return!0x0;if(_0x317e3e[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409a8e([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x409a8e([0x67,0x6c,0x6f,0x62])]&&window[_0x409a8e([0x67,0x6c,0x6f,0x62])][_0x409a8e([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x129f08=[_0x409a8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x409a8e([0x74,0x72,0x69,0x61,0x6c])][_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x311edb[_0x409a8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x223ad6/0x3e8:0x69e02680;return _0x311edb[_0x409a8e([0x65,0x78,0x70])]<_0x129f08;}())?_0x409a8e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x2222a9=_0x311edb[_0x409a8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2222a9||0x0==_0x2222a9[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x535233}=new URL(window[_0x409a8e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2222a9[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x535233))return!0x0;const _0x36bcbb=_0x535233[_0x409a8e([0x73,0x70,0x6c,0x69,0x74])](_0x409a8e([0x2e]));return _0x2222a9[_0x409a8e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d0f89=>_0x2d0f89[_0x409a8e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x409a8e([0x2a])))[_0x409a8e([0x6d,0x61,0x70])](_0x439244=>_0x439244[_0x409a8e([0x73,0x70,0x6c,0x69,0x74])](_0x409a8e([0x2e])))[_0x409a8e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x320475=>_0x320475[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36bcbb[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409a8e([0x6d,0x61,0x70])](_0x4bc89=>Array(_0x36bcbb[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bc89[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x409a8e([0x66,0x69,0x6c,0x6c])](_0x4bc89[0x0]===_0x409a8e([0x2a])?_0x409a8e([0x2a]):'')[_0x409a8e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bc89))[_0x409a8e([0x73,0x6f,0x6d,0x65])](_0x3462d6=>_0x36bcbb[_0x409a8e([0x65,0x76,0x65,0x72,0x79])]((_0x247497,_0x5759ae)=>_0x3462d6[_0x5759ae]===_0x247497||_0x3462d6[_0x5759ae]===_0x409a8e([0x2a])));}())?(_0x311edb[_0x409a8e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x409a8e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x424a74=function(_0x3b118d){const _0x492048=new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5af7=>setTimeout(_0x3b5af7,0x93ecc)),_0x1db422=_0x3dcda4[_0x409a8e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf09240=>{let _0x481c76=0x0;_0x30b749[_0x409a8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x409a8e([0x6f,0x6e])](_0x409a8e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42a1c7,_0x3fd02e)=>{_0x3fd02e[0x0][_0x409a8e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x481c76++,0x5e8==_0x481c76&&(_0xf09240(),_0x42a1c7[_0x409a8e([0x6f,0x66,0x66])]());});})),_0x13f497=[_0x492048,_0x1db422];return window[_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x409a8e([0x72,0x61,0x63,0x65])](_0x13f497)[_0x409a8e([0x74,0x68,0x65,0x6e])](()=>_0x3b118d);}(_0x409a8e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x424a74&&_0x2ac043)return new window[(_0x409a8e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31aec6,_0x41b84f)=>{_0x424a74[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x31aec6,_0x41b84f),_0x2ac043[_0x409a8e([0x74,0x68,0x65,0x6e])](_0x1057f9=>{_0x1057f9!=_0x409a8e([0x56,0x61,0x6c,0x69,0x64])&&_0x31aec6(_0x1057f9);},_0x41b84f);});return _0x424a74||_0x2ac043||_0x409a8e([0x56,0x61,0x6c,0x69,0x64]);}())):_0x409a8e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x409a8e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x409a8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x409a8e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x17df4c(_0x57a051){return _0x57a051[_0x409a8e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x409a8e([0x65,0x79]))?JSON[_0x409a8e([0x70,0x61,0x72,0x73,0x65])](_0x5302c2(_0x57a051)):null;}function _0x5302c2(_0x39119d){return window[_0x409a8e([0x61,0x74,0x6f,0x62])](_0x39119d[_0x409a8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x409a8e([0x2b]))[_0x409a8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x409a8e([0x2f])));}function _0x139f2d(_0x40624){let _0x41a768=0x1505;function _0x2bf026(_0x58ad29){for(let _0x2351e7=0x0;_0x2351e7<_0x58ad29[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2351e7++){const _0x24cd70=_0x58ad29[_0x409a8e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2351e7);_0x41a768=(_0x41a768<<0x5)+_0x41a768+_0x24cd70,_0x41a768&=_0x41a768;}}return function _0x318103(_0x62d943){Array[_0x409a8e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x62d943)?_0x62d943[_0x409a8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x318103):_0x62d943&&typeof _0x62d943==_0x409a8e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x409a8e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x62d943)[_0x409a8e([0x73,0x6f,0x72,0x74])]()[_0x409a8e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f1dae,_0x10e0e2])=>{_0x2bf026(_0x2f1dae),_0x318103(_0x10e0e2);}):_0x2bf026(window[_0x409a8e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x62d943));}(_0x40624),_0x41a768>>>0x0;}function _0x28bf92(_0x32f964){return _0x32f964[_0x409a8e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x409a8e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x409a8e([0x30]));}function _0x53ceca(_0x23197c){return _0x23197c[_0x409a8e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x409a8e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x409a8e([0x6a,0x6f,0x69,0x6e])]('');}function _0x36f8a1(){}function _0x409a8e(_0x4fe258){return _0x4fe258['map'](_0x505a41=>String['fromCharCode'](_0x505a41))['join']('');}!function(_0x2dac2e){const _0x5e7067=(function(){const _0x46c2c7=window[_0x409a8e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x409a8e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x409a8e([0x6e,0x6f,0x77])]())[_0x409a8e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x409a8e([0x2e]),'');let _0x3b6a4e=_0x409a8e([0x73]);for(let _0x33c902=0x0;_0x33c902<_0x46c2c7[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33c902+=0x2){let _0x558ced=window[_0x409a8e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46c2c7[_0x409a8e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33c902,_0x33c902+0x2));_0x558ced>=_0x2aea32[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x558ced-=_0x2aea32[_0x409a8e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b6a4e+=_0x2aea32[_0x558ced];}return _0x3b6a4e;}());_0x30b749[_0x5e7067]=_0x409a8e([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2dac2e,_0x2dac2e!=_0x409a8e([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x3dcda4,_0x30b749[_0x409a8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x409a8e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36f8a1,_0x30b749[_0x409a8e([0x6d,0x6f,0x64,0x65,0x6c])][_0x409a8e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36f8a1,_0x30b749[_0x409a8e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x409a8e([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x362b89);}const CSS_PROPERTIES_TO_PROPAGATE=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],CSS_PROPERTIES_TO_BE_SPANS=['color','font-family','font-size'],CSS_PROPERTIES_TO_BE_HTML_ELEMENTS={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x4d3431=>Number(_0x4d3431)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function isPropertyToBePropagated(_0x531e0e){return CSS_PROPERTIES_TO_PROPAGATE['includes'](_0x531e0e);}function isPropertyToBePropagatedAsSpan(_0x448dee){return CSS_PROPERTIES_TO_BE_SPANS['includes'](_0x448dee);}function isPropertyToBePropagatedAsHTMLElement(_0x2cb2b1){return _0x2cb2b1 in CSS_PROPERTIES_TO_BE_HTML_ELEMENTS;}function getStylePropertyNamesToPropagate(_0x3c42fd){return Array['from'](_0x3c42fd['getStyleNames']())['filter'](isPropertyToBePropagated);}function propagateStyleProperties(_0x22fc5c,_0x4cd43b,_0x52b555){const {spanStyles:_0x2c90b6,stylesToBeHtmlElements:_0x21799d}=getStylesToPropagate(_0x22fc5c,_0x52b555);propagateStylesAsHTMLElements(_0x22fc5c,_0x4cd43b,_0x21799d),propagateStylesAsSpan(_0x22fc5c,_0x4cd43b,_0x2c90b6);}function propagateStylesAsHTMLElements(_0x3f3b85,_0x38e024,_0x13c25a){for(const _0x3c2b11 in _0x13c25a){_0x13c25a[_0x3c2b11]['forEach'](([,_0x488702])=>{const _0x498f43=_0x38e024['createElement'](_0x488702,[],_0x3f3b85['getChildren']());_0x38e024['insertChild'](0x0,_0x498f43,_0x3f3b85);}),_0x38e024['removeStyle'](_0x3c2b11,_0x3f3b85);}}function propagateStylesAsSpan(_0x2fd653,_0x257d7d,_0x26afc8){if(!Object['keys'](_0x26afc8)['length'])return;const _0x3d032b=_0x257d7d['createElement']('span',[],_0x2fd653['getChildren']());_0x257d7d['setStyle'](_0x26afc8,_0x3d032b),_0x257d7d['insertChild'](0x0,_0x3d032b,_0x2fd653),_0x257d7d['removeStyle'](Object['keys'](_0x26afc8),_0x2fd653);}function getStylesToPropagate(_0x3136bf,_0xf97a56){const _0x3b7797={},_0x59918d={};return _0xf97a56['forEach'](_0x4ca8e5=>{const _0x2b16a7=_0x3136bf['getStyle'](_0x4ca8e5);if(_0x2b16a7){if(isPropertyToBePropagatedAsSpan(_0x4ca8e5))_0x3b7797[_0x4ca8e5]=_0x2b16a7;else{if(isPropertyToBePropagatedAsHTMLElement(_0x4ca8e5)){const _0x90d9c4=_0x2b16a7['split']('\x20');CSS_PROPERTIES_TO_BE_HTML_ELEMENTS[_0x4ca8e5]['forEach'](([_0x46658f,_0x568cca])=>{for(const _0x2aaa15 of _0x90d9c4){('function'==typeof _0x46658f&&_0x46658f(_0x2aaa15)||_0x46658f===_0x2aaa15)&&(_0x59918d[_0x4ca8e5]=[..._0x59918d[_0x4ca8e5]||[],[_0x46658f,_0x568cca]]);}});}}}}),{'spanStyles':_0x3b7797,'stylesToBeHtmlElements':_0x59918d};}class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWordNormalizer{['execute'](_0x5708fe){const {body:_0x5b05cb}=_0x5708fe['_parsedData'],_0x31ab47=new ViewUpcastWriter(_0x5b05cb['document']),_0x553446=_0x31ab47['createRangeIn'](_0x5b05cb),_0x4cf0b5=new ViewDocument(_0x31ab47['document']['stylesProcessor']),_0x19aa94=[...new ViewDomConverter(_0x4cf0b5)['blockElements'],'font'],_0x51c833=_0x553446['getItems']();for(const _0x53adda of _0x51c833)_0x53adda['is']('element')&&_0x19aa94['includes'](_0x53adda['name'])&&propagateStyleProperties(_0x53adda,_0x31ab47,getStylePropertyNamesToPropagate(_0x53adda));_0x5708fe['content']=_0x5b05cb;}['isActive'](_0x2d6573){return super['isActive'](_0x2d6573)||isMSExcelContent(_0x2d6573);}}class PasteFromOfficeEnhancedPropagator extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice'];}['init'](){const _0x17fa7d=this['editor'],_0x5dd906=_0x17fa7d['plugins']['get']('ClipboardPipeline'),_0x381390=_0x17fa7d['editing']['view']['document'],_0x329d42=new MSOfficeInlineStylePropagator(_0x381390);_0x5dd906['on']('inputTransformation',(_0x163bce,_0x41dc98)=>{const _0x3f7d9b=_0x41dc98['dataTransfer']['getData']('text/html');_0x329d42['isActive'](_0x3f7d9b)&&(_0x41dc98['_parsedData']||(_0x41dc98['_parsedData']=parsePasteOfficeHtml(_0x3f7d9b,_0x381390['stylesProcessor'])),_0x329d42['execute'](_0x41dc98));},{'priority':priorities['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54d456=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45792e;for(const _0x2f441c in _0x54d456){const _0x24df28=_0x2f441c,_0x48e816=_0x54d456[_0x24df28];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x48e816||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x48e816){delete _0x54d456[_0x24df28],_0x45792e=_0x48e816,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x45792e&&_0x54d456['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x45792e&&_0x54d456['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x45792e&&_0x54d456['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x45792e&&_0x54d456['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x45792e&&_0x54d456['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x45792e&&_0x54d456['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends Plugin{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return['PasteFromOffice',PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}var commonjsGlobal='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{},indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=0x1,aspromise=function(_0x58543a,_0x178397){var _0x2754b1=new Array(arguments['length']-0x1),_0x23c6ac=0x0,_0x310550=0x2,_0x4279d4=!0x0;for(;_0x310550<arguments['length'];)_0x2754b1[_0x23c6ac++]=arguments[_0x310550++];return new Promise(function(_0x5c6181,_0xa0f7f2){_0x2754b1[_0x23c6ac]=function(_0x24aef4){if(_0x4279d4){if(_0x4279d4=!0x1,_0x24aef4)_0xa0f7f2(_0x24aef4);else{for(var _0x123089=new Array(arguments['length']-0x1),_0x45324d=0x0;_0x45324d<_0x123089['length'];)_0x123089[_0x45324d++]=arguments[_0x45324d];_0x5c6181['apply'](null,_0x123089);}}};try{_0x58543a['apply'](_0x178397||null,_0x2754b1);}catch(_0xe925b7){_0x4279d4&&(_0x4279d4=!0x1,_0xa0f7f2(_0xe925b7));}});},aspromise;}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=0x1,function(_0x4b72b2){var _0x2969c0=_0x4b72b2;_0x2969c0['length']=function(_0x1a7667){var _0x37de70=_0x1a7667['length'];if(!_0x37de70)return 0x0;for(var _0x144d1f=0x0;--_0x37de70%0x4>0x1&&'='===_0x1a7667['charAt'](_0x37de70);)++_0x144d1f;return Math['ceil'](0x3*_0x1a7667['length'])/0x4-_0x144d1f;};for(var _0x2eba2d=new Array(0x40),_0x56317c=new Array(0x7b),_0x3b73a9=0x0;_0x3b73a9<0x40;)_0x56317c[_0x2eba2d[_0x3b73a9]=_0x3b73a9<0x1a?_0x3b73a9+0x41:_0x3b73a9<0x34?_0x3b73a9+0x47:_0x3b73a9<0x3e?_0x3b73a9-0x4:_0x3b73a9-0x3b|0x2b]=_0x3b73a9++;_0x2969c0['encode']=function(_0x17f747,_0x109282,_0x455530){for(var t,_0x43c76d=null,_0x7535f1=[],_0x5e70a9=0x0,_0x33de99=0x0;_0x109282<_0x455530;){var _0x4c1108=_0x17f747[_0x109282++];switch(_0x33de99){case 0x0:_0x7535f1[_0x5e70a9++]=_0x2eba2d[_0x4c1108>>0x2],t=(0x3&_0x4c1108)<<0x4,_0x33de99=0x1;break;case 0x1:_0x7535f1[_0x5e70a9++]=_0x2eba2d[t|_0x4c1108>>0x4],t=(0xf&_0x4c1108)<<0x2,_0x33de99=0x2;break;case 0x2:_0x7535f1[_0x5e70a9++]=_0x2eba2d[t|_0x4c1108>>0x6],_0x7535f1[_0x5e70a9++]=_0x2eba2d[0x3f&_0x4c1108],_0x33de99=0x0;}_0x5e70a9>0x1fff&&((_0x43c76d||(_0x43c76d=[]))['push'](String['fromCharCode']['apply'](String,_0x7535f1)),_0x5e70a9=0x0);}return _0x33de99&&(_0x7535f1[_0x5e70a9++]=_0x2eba2d[t],_0x7535f1[_0x5e70a9++]=0x3d,0x1===_0x33de99&&(_0x7535f1[_0x5e70a9++]=0x3d)),_0x43c76d?(_0x5e70a9&&_0x43c76d['push'](String['fromCharCode']['apply'](String,_0x7535f1['slice'](0x0,_0x5e70a9))),_0x43c76d['join']('')):String['fromCharCode']['apply'](String,_0x7535f1['slice'](0x0,_0x5e70a9));};var _0x3b8763='invalid\x20encoding';_0x2969c0['decode']=function(_0x339f2f,_0x48071e,_0x198b6f){for(var t,_0xc37a99=_0x198b6f,_0x3f12b4=0x0,_0x1cb178=0x0;_0x1cb178<_0x339f2f['length'];){var _0x45aaa9=_0x339f2f['charCodeAt'](_0x1cb178++);if(0x3d===_0x45aaa9&&_0x3f12b4>0x1)break;if(void 0x0===(_0x45aaa9=_0x56317c[_0x45aaa9]))throw Error(_0x3b8763);switch(_0x3f12b4){case 0x0:t=_0x45aaa9,_0x3f12b4=0x1;break;case 0x1:_0x48071e[_0x198b6f++]=t<<0x2|(0x30&_0x45aaa9)>>0x4,t=_0x45aaa9,_0x3f12b4=0x2;break;case 0x2:_0x48071e[_0x198b6f++]=(0xf&t)<<0x4|(0x3c&_0x45aaa9)>>0x2,t=_0x45aaa9,_0x3f12b4=0x3;break;case 0x3:_0x48071e[_0x198b6f++]=(0x3&t)<<0x6|_0x45aaa9,_0x3f12b4=0x0;}}if(0x1===_0x3f12b4)throw Error(_0x3b8763);return _0x198b6f-_0xc37a99;},_0x2969c0['test']=function(_0x5a554b){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x5a554b);};}(base64)),base64;}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function _0x755aa4(){this['_listeners']={};}return hasRequiredEventemitter=0x1,eventemitter=_0x755aa4,_0x755aa4['prototype']['on']=function(_0x588203,_0x17a69a,_0x555835){return(this['_listeners'][_0x588203]||(this['_listeners'][_0x588203]=[]))['push']({'fn':_0x17a69a,'ctx':_0x555835||this}),this;},_0x755aa4['prototype']['off']=function(_0x40d4d4,_0x120c52){if(void 0x0===_0x40d4d4)this['_listeners']={};else{if(void 0x0===_0x120c52)this['_listeners'][_0x40d4d4]=[];else{for(var _0xb92a5b=this['_listeners'][_0x40d4d4],_0x169e82=0x0;_0x169e82<_0xb92a5b['length'];)_0xb92a5b[_0x169e82]['fn']===_0x120c52?_0xb92a5b['splice'](_0x169e82,0x1):++_0x169e82;}}return this;},_0x755aa4['prototype']['emit']=function(_0x2b5e52){var _0x5c8e4a=this['_listeners'][_0x2b5e52];if(_0x5c8e4a){for(var _0x153411=[],_0x27805e=0x1;_0x27805e<arguments['length'];)_0x153411['push'](arguments[_0x27805e++]);for(_0x27805e=0x0;_0x27805e<_0x5c8e4a['length'];)_0x5c8e4a[_0x27805e]['fn']['apply'](_0x5c8e4a[_0x27805e++]['ctx'],_0x153411);}return this;},eventemitter;}function requireFloat(){if(hasRequiredFloat)return float;function _0x4c5ccb(_0x1338a5){return'undefined'!=typeof Float32Array?(function(){var _0xdd0896=new Float32Array([-0x0]),_0x3b0b6f=new Uint8Array(_0xdd0896['buffer']),_0x2d3758=0x80===_0x3b0b6f[0x3];function _0x447662(_0x405fdc,_0x55e660,_0x35786c){_0xdd0896[0x0]=_0x405fdc,_0x55e660[_0x35786c]=_0x3b0b6f[0x0],_0x55e660[_0x35786c+0x1]=_0x3b0b6f[0x1],_0x55e660[_0x35786c+0x2]=_0x3b0b6f[0x2],_0x55e660[_0x35786c+0x3]=_0x3b0b6f[0x3];}function _0x3a3cf5(_0x307994,_0x357416,_0x5bee90){_0xdd0896[0x0]=_0x307994,_0x357416[_0x5bee90]=_0x3b0b6f[0x3],_0x357416[_0x5bee90+0x1]=_0x3b0b6f[0x2],_0x357416[_0x5bee90+0x2]=_0x3b0b6f[0x1],_0x357416[_0x5bee90+0x3]=_0x3b0b6f[0x0];}function _0x58b6d4(_0x2a598c,_0x542228){return _0x3b0b6f[0x0]=_0x2a598c[_0x542228],_0x3b0b6f[0x1]=_0x2a598c[_0x542228+0x1],_0x3b0b6f[0x2]=_0x2a598c[_0x542228+0x2],_0x3b0b6f[0x3]=_0x2a598c[_0x542228+0x3],_0xdd0896[0x0];}function _0x2029e2(_0x4615c3,_0xe87346){return _0x3b0b6f[0x3]=_0x4615c3[_0xe87346],_0x3b0b6f[0x2]=_0x4615c3[_0xe87346+0x1],_0x3b0b6f[0x1]=_0x4615c3[_0xe87346+0x2],_0x3b0b6f[0x0]=_0x4615c3[_0xe87346+0x3],_0xdd0896[0x0];}_0x1338a5['writeFloatLE']=_0x2d3758?_0x447662:_0x3a3cf5,_0x1338a5['writeFloatBE']=_0x2d3758?_0x3a3cf5:_0x447662,_0x1338a5['readFloatLE']=_0x2d3758?_0x58b6d4:_0x2029e2,_0x1338a5['readFloatBE']=_0x2d3758?_0x2029e2:_0x58b6d4;}()):(function(){function _0x42187e(_0x4be7b7,_0x3d590b,_0x4d9109,_0x31ea57){var _0x5c48ee=_0x3d590b<0x0?0x1:0x0;if(_0x5c48ee&&(_0x3d590b=-_0x3d590b),0x0===_0x3d590b)_0x4be7b7(0x1/_0x3d590b>0x0?0x0:0x80000000,_0x4d9109,_0x31ea57);else{if(isNaN(_0x3d590b))_0x4be7b7(0x7fc00000,_0x4d9109,_0x31ea57);else{if(_0x3d590b>0xffffff00000000000000000000000000)_0x4be7b7((_0x5c48ee<<0x1f|0x7f800000)>>>0x0,_0x4d9109,_0x31ea57);else{if(_0x3d590b<1.1754943508222875e-38)_0x4be7b7((_0x5c48ee<<0x1f|Math['round'](_0x3d590b/1.401298464324817e-45))>>>0x0,_0x4d9109,_0x31ea57);else{var _0x568015=Math['floor'](Math['log'](_0x3d590b)/Math['LN2']);_0x4be7b7((_0x5c48ee<<0x1f|_0x568015+0x7f<<0x17|0x7fffff&Math['round'](_0x3d590b*Math['pow'](0x2,-_0x568015)*0x800000))>>>0x0,_0x4d9109,_0x31ea57);}}}}}function _0x21aa63(_0x57ee7b,_0x5a8747,_0xac1782){var _0x3f7fca=_0x57ee7b(_0x5a8747,_0xac1782),_0x13b9de=0x2*(_0x3f7fca>>0x1f)+0x1,_0x1c9e13=_0x3f7fca>>>0x17&0xff,_0xfe97e4=0x7fffff&_0x3f7fca;return 0xff===_0x1c9e13?_0xfe97e4?NaN:_0x13b9de*(0x1/0x0):0x0===_0x1c9e13?1.401298464324817e-45*_0x13b9de*_0xfe97e4:_0x13b9de*Math['pow'](0x2,_0x1c9e13-0x96)*(_0xfe97e4+0x800000);}_0x1338a5['writeFloatLE']=_0x42187e['bind'](null,_0x4fb150),_0x1338a5['writeFloatBE']=_0x42187e['bind'](null,_0x5f041b),_0x1338a5['readFloatLE']=_0x21aa63['bind'](null,_0x268733),_0x1338a5['readFloatBE']=_0x21aa63['bind'](null,_0x4c5fbb);}()),'undefined'!=typeof Float64Array?(function(){var _0x442e37=new Float64Array([-0x0]),_0x282a4d=new Uint8Array(_0x442e37['buffer']),_0x343a5e=0x80===_0x282a4d[0x7];function _0x3ca08c(_0x310922,_0x3f4130,_0x21bd87){_0x442e37[0x0]=_0x310922,_0x3f4130[_0x21bd87]=_0x282a4d[0x0],_0x3f4130[_0x21bd87+0x1]=_0x282a4d[0x1],_0x3f4130[_0x21bd87+0x2]=_0x282a4d[0x2],_0x3f4130[_0x21bd87+0x3]=_0x282a4d[0x3],_0x3f4130[_0x21bd87+0x4]=_0x282a4d[0x4],_0x3f4130[_0x21bd87+0x5]=_0x282a4d[0x5],_0x3f4130[_0x21bd87+0x6]=_0x282a4d[0x6],_0x3f4130[_0x21bd87+0x7]=_0x282a4d[0x7];}function _0x48be23(_0x22ef09,_0x481465,_0x40bba1){_0x442e37[0x0]=_0x22ef09,_0x481465[_0x40bba1]=_0x282a4d[0x7],_0x481465[_0x40bba1+0x1]=_0x282a4d[0x6],_0x481465[_0x40bba1+0x2]=_0x282a4d[0x5],_0x481465[_0x40bba1+0x3]=_0x282a4d[0x4],_0x481465[_0x40bba1+0x4]=_0x282a4d[0x3],_0x481465[_0x40bba1+0x5]=_0x282a4d[0x2],_0x481465[_0x40bba1+0x6]=_0x282a4d[0x1],_0x481465[_0x40bba1+0x7]=_0x282a4d[0x0];}function _0x1a08bc(_0x4e961d,_0x35bcdd){return _0x282a4d[0x0]=_0x4e961d[_0x35bcdd],_0x282a4d[0x1]=_0x4e961d[_0x35bcdd+0x1],_0x282a4d[0x2]=_0x4e961d[_0x35bcdd+0x2],_0x282a4d[0x3]=_0x4e961d[_0x35bcdd+0x3],_0x282a4d[0x4]=_0x4e961d[_0x35bcdd+0x4],_0x282a4d[0x5]=_0x4e961d[_0x35bcdd+0x5],_0x282a4d[0x6]=_0x4e961d[_0x35bcdd+0x6],_0x282a4d[0x7]=_0x4e961d[_0x35bcdd+0x7],_0x442e37[0x0];}function _0x13c645(_0xc55fdb,_0x587a4f){return _0x282a4d[0x7]=_0xc55fdb[_0x587a4f],_0x282a4d[0x6]=_0xc55fdb[_0x587a4f+0x1],_0x282a4d[0x5]=_0xc55fdb[_0x587a4f+0x2],_0x282a4d[0x4]=_0xc55fdb[_0x587a4f+0x3],_0x282a4d[0x3]=_0xc55fdb[_0x587a4f+0x4],_0x282a4d[0x2]=_0xc55fdb[_0x587a4f+0x5],_0x282a4d[0x1]=_0xc55fdb[_0x587a4f+0x6],_0x282a4d[0x0]=_0xc55fdb[_0x587a4f+0x7],_0x442e37[0x0];}_0x1338a5['writeDoubleLE']=_0x343a5e?_0x3ca08c:_0x48be23,_0x1338a5['writeDoubleBE']=_0x343a5e?_0x48be23:_0x3ca08c,_0x1338a5['readDoubleLE']=_0x343a5e?_0x1a08bc:_0x13c645,_0x1338a5['readDoubleBE']=_0x343a5e?_0x13c645:_0x1a08bc;}()):(function(){function _0x2459ef(_0xa6f9f3,_0x4abdde,_0x485888,_0x762f01,_0x205271,_0x24b95e){var _0x2270e1=_0x762f01<0x0?0x1:0x0;if(_0x2270e1&&(_0x762f01=-_0x762f01),0x0===_0x762f01)_0xa6f9f3(0x0,_0x205271,_0x24b95e+_0x4abdde),_0xa6f9f3(0x1/_0x762f01>0x0?0x0:0x80000000,_0x205271,_0x24b95e+_0x485888);else{if(isNaN(_0x762f01))_0xa6f9f3(0x0,_0x205271,_0x24b95e+_0x4abdde),_0xa6f9f3(0x7ff80000,_0x205271,_0x24b95e+_0x485888);else{if(_0x762f01>0xfffffffffffff800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)_0xa6f9f3(0x0,_0x205271,_0x24b95e+_0x4abdde),_0xa6f9f3((_0x2270e1<<0x1f|0x7ff00000)>>>0x0,_0x205271,_0x24b95e+_0x485888);else{var _0x21cd8c;if(_0x762f01<2.2250738585072014e-308)_0xa6f9f3((_0x21cd8c=_0x762f01/5e-324)>>>0x0,_0x205271,_0x24b95e+_0x4abdde),_0xa6f9f3((_0x2270e1<<0x1f|_0x21cd8c/0x100000000)>>>0x0,_0x205271,_0x24b95e+_0x485888);else{var _0x3ee7f2=Math['floor'](Math['log'](_0x762f01)/Math['LN2']);0x400===_0x3ee7f2&&(_0x3ee7f2=0x3ff),_0xa6f9f3(0x10000000000000*(_0x21cd8c=_0x762f01*Math['pow'](0x2,-_0x3ee7f2))>>>0x0,_0x205271,_0x24b95e+_0x4abdde),_0xa6f9f3((_0x2270e1<<0x1f|_0x3ee7f2+0x3ff<<0x14|0x100000*_0x21cd8c&0xfffff)>>>0x0,_0x205271,_0x24b95e+_0x485888);}}}}}function _0x45da60(_0x152709,_0x4e1efa,_0x3fc47f,_0x4a3f6b,_0x59d818){var _0x5e1e18=_0x152709(_0x4a3f6b,_0x59d818+_0x4e1efa),_0x3bd6ec=_0x152709(_0x4a3f6b,_0x59d818+_0x3fc47f),_0x13c46e=0x2*(_0x3bd6ec>>0x1f)+0x1,_0x52ed49=_0x3bd6ec>>>0x14&0x7ff,_0x219634=0x100000000*(0xfffff&_0x3bd6ec)+_0x5e1e18;return 0x7ff===_0x52ed49?_0x219634?NaN:_0x13c46e*(0x1/0x0):0x0===_0x52ed49?5e-324*_0x13c46e*_0x219634:_0x13c46e*Math['pow'](0x2,_0x52ed49-0x433)*(_0x219634+0x10000000000000);}_0x1338a5['writeDoubleLE']=_0x2459ef['bind'](null,_0x4fb150,0x0,0x4),_0x1338a5['writeDoubleBE']=_0x2459ef['bind'](null,_0x5f041b,0x4,0x0),_0x1338a5['readDoubleLE']=_0x45da60['bind'](null,_0x268733,0x0,0x4),_0x1338a5['readDoubleBE']=_0x45da60['bind'](null,_0x4c5fbb,0x4,0x0);}()),_0x1338a5;}function _0x4fb150(_0x58e407,_0x43772,_0x58fa1e){_0x43772[_0x58fa1e]=0xff&_0x58e407,_0x43772[_0x58fa1e+0x1]=_0x58e407>>>0x8&0xff,_0x43772[_0x58fa1e+0x2]=_0x58e407>>>0x10&0xff,_0x43772[_0x58fa1e+0x3]=_0x58e407>>>0x18;}function _0x5f041b(_0xd8a0c,_0x482aa8,_0x43168b){_0x482aa8[_0x43168b]=_0xd8a0c>>>0x18,_0x482aa8[_0x43168b+0x1]=_0xd8a0c>>>0x10&0xff,_0x482aa8[_0x43168b+0x2]=_0xd8a0c>>>0x8&0xff,_0x482aa8[_0x43168b+0x3]=0xff&_0xd8a0c;}function _0x268733(_0x239be3,_0x15ba96){return(_0x239be3[_0x15ba96]|_0x239be3[_0x15ba96+0x1]<<0x8|_0x239be3[_0x15ba96+0x2]<<0x10|_0x239be3[_0x15ba96+0x3]<<0x18)>>>0x0;}function _0x4c5fbb(_0x319fe7,_0x41f740){return(_0x319fe7[_0x41f740]<<0x18|_0x319fe7[_0x41f740+0x1]<<0x10|_0x319fe7[_0x41f740+0x2]<<0x8|_0x319fe7[_0x41f740+0x3])>>>0x0;}return hasRequiredFloat=0x1,float=_0x4c5ccb(_0x4c5ccb);}function requireInquire(){if(hasRequiredInquire)return inquire_1;function _0x51bd86(_0x2b5dbc){try{var _0x1a5686=eval('quire'['replace'](/^/,'re'))(_0x2b5dbc);if(_0x1a5686&&(_0x1a5686['length']||Object['keys'](_0x1a5686)['length']))return _0x1a5686;}catch(_0x4b144d){}return null;}return hasRequiredInquire=0x1,inquire_1=_0x51bd86,inquire_1;}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=0x1,function(_0x3ec3f1){var _0x4c20c5=_0x3ec3f1;_0x4c20c5['length']=function(_0x492fb3){for(var _0x433b58=0x0,_0xd870f1=0x0,_0x358373=0x0;_0x358373<_0x492fb3['length'];++_0x358373)(_0xd870f1=_0x492fb3['charCodeAt'](_0x358373))<0x80?_0x433b58+=0x1:_0xd870f1<0x800?_0x433b58+=0x2:0xd800==(0xfc00&_0xd870f1)&&0xdc00==(0xfc00&_0x492fb3['charCodeAt'](_0x358373+0x1))?(++_0x358373,_0x433b58+=0x4):_0x433b58+=0x3;return _0x433b58;},_0x4c20c5['read']=function(_0x3be50b,_0x3426d1,_0x25a728){if(_0x25a728-_0x3426d1<0x1)return'';for(var t,_0x339144=null,_0x4ca4dc=[],_0x301a13=0x0;_0x3426d1<_0x25a728;)(t=_0x3be50b[_0x3426d1++])<0x80?_0x4ca4dc[_0x301a13++]=t:t>0xbf&&t<0xe0?_0x4ca4dc[_0x301a13++]=(0x1f&t)<<0x6|0x3f&_0x3be50b[_0x3426d1++]:t>0xef&&t<0x16d?(t=((0x7&t)<<0x12|(0x3f&_0x3be50b[_0x3426d1++])<<0xc|(0x3f&_0x3be50b[_0x3426d1++])<<0x6|0x3f&_0x3be50b[_0x3426d1++])-0x10000,_0x4ca4dc[_0x301a13++]=0xd800+(t>>0xa),_0x4ca4dc[_0x301a13++]=0xdc00+(0x3ff&t)):_0x4ca4dc[_0x301a13++]=(0xf&t)<<0xc|(0x3f&_0x3be50b[_0x3426d1++])<<0x6|0x3f&_0x3be50b[_0x3426d1++],_0x301a13>0x1fff&&((_0x339144||(_0x339144=[]))['push'](String['fromCharCode']['apply'](String,_0x4ca4dc)),_0x301a13=0x0);return _0x339144?(_0x301a13&&_0x339144['push'](String['fromCharCode']['apply'](String,_0x4ca4dc['slice'](0x0,_0x301a13))),_0x339144['join']('')):String['fromCharCode']['apply'](String,_0x4ca4dc['slice'](0x0,_0x301a13));},_0x4c20c5['write']=function(_0xa0cc73,_0x3f5616,_0xe8c15d){for(var _0x1fadeb,_0x49875f,_0x19e610=_0xe8c15d,_0xe3548=0x0;_0xe3548<_0xa0cc73['length'];++_0xe3548)(_0x1fadeb=_0xa0cc73['charCodeAt'](_0xe3548))<0x80?_0x3f5616[_0xe8c15d++]=_0x1fadeb:_0x1fadeb<0x800?(_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0x6|0xc0,_0x3f5616[_0xe8c15d++]=0x3f&_0x1fadeb|0x80):0xd800==(0xfc00&_0x1fadeb)&&0xdc00==(0xfc00&(_0x49875f=_0xa0cc73['charCodeAt'](_0xe3548+0x1)))?(_0x1fadeb=0x10000+((0x3ff&_0x1fadeb)<<0xa)+(0x3ff&_0x49875f),++_0xe3548,_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0x12|0xf0,_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0xc&0x3f|0x80,_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0x6&0x3f|0x80,_0x3f5616[_0xe8c15d++]=0x3f&_0x1fadeb|0x80):(_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0xc|0xe0,_0x3f5616[_0xe8c15d++]=_0x1fadeb>>0x6&0x3f|0x80,_0x3f5616[_0xe8c15d++]=0x3f&_0x1fadeb|0x80);return _0xe8c15d-_0x19e610;};}(utf8)),utf8;}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=0x1,pool_1=function(_0x4b80f0,_0x5b7938,_0x193b64){var _0x5dfc8b=_0x193b64||0x2000,_0x4b9400=_0x5dfc8b>>>0x1,_0x59974=null,_0x568ea9=_0x5dfc8b;return function(_0x326e2d){if(_0x326e2d<0x1||_0x326e2d>_0x4b9400)return _0x4b80f0(_0x326e2d);_0x568ea9+_0x326e2d>_0x5dfc8b&&(_0x59974=_0x4b80f0(_0x5dfc8b),_0x568ea9=0x0);var _0x55731a=_0x5b7938['call'](_0x59974,_0x568ea9,_0x568ea9+=_0x326e2d);return 0x7&_0x568ea9&&(_0x568ea9=0x1+(0x7|_0x568ea9)),_0x55731a;};},pool_1;}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=0x1,longbits=_0x2199af;var _0xb0f1e2=requireMinimal$1();function _0x2199af(_0xb07a39,_0x4ff383){this['lo']=_0xb07a39>>>0x0,this['hi']=_0x4ff383>>>0x0;}var _0x307643=_0x2199af['zero']=new _0x2199af(0x0,0x0);_0x307643['toNumber']=function(){return 0x0;},_0x307643['zzEncode']=_0x307643['zzDecode']=function(){return this;},_0x307643['length']=function(){return 0x1;};var _0x51f8d5=_0x2199af['zeroHash']='\x00\x00\x00\x00\x00\x00\x00\x00';_0x2199af['fromNumber']=function(_0x243cf7){if(0x0===_0x243cf7)return _0x307643;var _0x511d27=_0x243cf7<0x0;_0x511d27&&(_0x243cf7=-_0x243cf7);var _0x1eae10=_0x243cf7>>>0x0,_0x7a3f7b=(_0x243cf7-_0x1eae10)/0x100000000>>>0x0;return _0x511d27&&(_0x7a3f7b=~_0x7a3f7b>>>0x0,_0x1eae10=~_0x1eae10>>>0x0,++_0x1eae10>0xffffffff&&(_0x1eae10=0x0,++_0x7a3f7b>0xffffffff&&(_0x7a3f7b=0x0))),new _0x2199af(_0x1eae10,_0x7a3f7b);},_0x2199af['from']=function(_0x238f76){if('number'==typeof _0x238f76)return _0x2199af['fromNumber'](_0x238f76);if(_0xb0f1e2['isString'](_0x238f76)){if(!_0xb0f1e2['Long'])return _0x2199af['fromNumber'](parseInt(_0x238f76,0xa));_0x238f76=_0xb0f1e2['Long']['fromString'](_0x238f76);}return _0x238f76['low']||_0x238f76['high']?new _0x2199af(_0x238f76['low']>>>0x0,_0x238f76['high']>>>0x0):_0x307643;},_0x2199af['prototype']['toNumber']=function(_0x360f5b){if(!_0x360f5b&&this['hi']>>>0x1f){var _0x1c4767=0x1+~this['lo']>>>0x0,_0x29fd9e=~this['hi']>>>0x0;return _0x1c4767||(_0x29fd9e=_0x29fd9e+0x1>>>0x0),-(_0x1c4767+0x100000000*_0x29fd9e);}return this['lo']+0x100000000*this['hi'];},_0x2199af['prototype']['toLong']=function(_0x45e3ec){return _0xb0f1e2['Long']?new _0xb0f1e2['Long'](0x0|this['lo'],0x0|this['hi'],Boolean(_0x45e3ec)):{'low':0x0|this['lo'],'high':0x0|this['hi'],'unsigned':Boolean(_0x45e3ec)};};var _0x80caed=String['prototype']['charCodeAt'];return _0x2199af['fromHash']=function(_0xa9fd8e){return _0xa9fd8e===_0x51f8d5?_0x307643:new _0x2199af((_0x80caed['call'](_0xa9fd8e,0x0)|_0x80caed['call'](_0xa9fd8e,0x1)<<0x8|_0x80caed['call'](_0xa9fd8e,0x2)<<0x10|_0x80caed['call'](_0xa9fd8e,0x3)<<0x18)>>>0x0,(_0x80caed['call'](_0xa9fd8e,0x4)|_0x80caed['call'](_0xa9fd8e,0x5)<<0x8|_0x80caed['call'](_0xa9fd8e,0x6)<<0x10|_0x80caed['call'](_0xa9fd8e,0x7)<<0x18)>>>0x0);},_0x2199af['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);},_0x2199af['prototype']['zzEncode']=function(){var _0x44d169=this['hi']>>0x1f;return this['hi']=((this['hi']<<0x1|this['lo']>>>0x1f)^_0x44d169)>>>0x0,this['lo']=(this['lo']<<0x1^_0x44d169)>>>0x0,this;},_0x2199af['prototype']['zzDecode']=function(){var _0x1802d4=-(0x1&this['lo']);return this['lo']=((this['lo']>>>0x1|this['hi']<<0x1f)^_0x1802d4)>>>0x0,this['hi']=(this['hi']>>>0x1^_0x1802d4)>>>0x0,this;},_0x2199af['prototype']['length']=function(){var _0x5680a5=this['lo'],_0x14caf4=(this['lo']>>>0x1c|this['hi']<<0x4)>>>0x0,_0x55b740=this['hi']>>>0x18;return 0x0===_0x55b740?0x0===_0x14caf4?_0x5680a5<0x4000?_0x5680a5<0x80?0x1:0x2:_0x5680a5<0x200000?0x3:0x4:_0x14caf4<0x4000?_0x14caf4<0x80?0x5:0x6:_0x14caf4<0x200000?0x7:0x8:_0x55b740<0x80?0x9:0xa;},longbits;}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=0x1,(function(){var _0x3e302c=minimal$1;function _0x5643d4(_0x33279d,_0x28d1bf,_0x28af9a){for(var _0x312949=Object['keys'](_0x28d1bf),_0x15f27c=0x0;_0x15f27c<_0x312949['length'];++_0x15f27c)void 0x0!==_0x33279d[_0x312949[_0x15f27c]]&&_0x28af9a||(_0x33279d[_0x312949[_0x15f27c]]=_0x28d1bf[_0x312949[_0x15f27c]]);return _0x33279d;}function _0x6fffa9(_0x396954){function _0x277314(_0x569975,_0x4ecd1d){if(!(this instanceof _0x277314))return new _0x277314(_0x569975,_0x4ecd1d);Object['defineProperty'](this,'message',{'get':function(){return _0x569975;}}),Error['captureStackTrace']?Error['captureStackTrace'](this,_0x277314):Object['defineProperty'](this,'stack',{'value':new Error()['stack']||''}),_0x4ecd1d&&_0x5643d4(this,_0x4ecd1d);}return _0x277314['prototype']=Object['create'](Error['prototype'],{'constructor':{'value':_0x277314,'writable':!0x0,'enumerable':!0x1,'configurable':!0x0},'name':{'get':function(){return _0x396954;},'set':void 0x0,'enumerable':!0x1,'configurable':!0x0},'toString':{'value':function(){return this['name']+':\x20'+this['message'];},'writable':!0x0,'enumerable':!0x1,'configurable':!0x0}}),_0x277314;}_0x3e302c['asPromise']=requireAspromise(),_0x3e302c['base64']=requireBase64(),_0x3e302c['EventEmitter']=requireEventemitter(),_0x3e302c['float']=requireFloat(),_0x3e302c['inquire']=requireInquire(),_0x3e302c['utf8']=requireUtf8(),_0x3e302c['pool']=requirePool(),_0x3e302c['LongBits']=requireLongbits(),_0x3e302c['isNode']=Boolean(void 0x0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal['process']&&commonjsGlobal['process']['versions']&&commonjsGlobal['process']['versions']['node']),_0x3e302c['global']=_0x3e302c['isNode']&&commonjsGlobal||'undefined'!=typeof window&&window||'undefined'!=typeof self&&self||minimal$1,_0x3e302c['emptyArray']=Object['freeze']?Object['freeze']([]):[],_0x3e302c['emptyObject']=Object['freeze']?Object['freeze']({}):{},_0x3e302c['isInteger']=Number['isInteger']||function(_0x1ebffe){return'number'==typeof _0x1ebffe&&isFinite(_0x1ebffe)&&Math['floor'](_0x1ebffe)===_0x1ebffe;},_0x3e302c['isString']=function(_0x47e670){return'string'==typeof _0x47e670||_0x47e670 instanceof String;},_0x3e302c['isObject']=function(_0x3e1249){return _0x3e1249&&'object'==typeof _0x3e1249;},_0x3e302c['isset']=_0x3e302c['isSet']=function(_0x4bb514,_0x1dc145){var _0x13ffdc=_0x4bb514[_0x1dc145];return!(null==_0x13ffdc||!_0x4bb514['hasOwnProperty'](_0x1dc145))&&('object'!=typeof _0x13ffdc||(Array['isArray'](_0x13ffdc)?_0x13ffdc['length']:Object['keys'](_0x13ffdc)['length'])>0x0);},_0x3e302c['Buffer']=(function(){try{var _0x60155d=_0x3e302c['inquire']('buffer')['Buffer'];return _0x60155d['prototype']['utf8Write']?_0x60155d:null;}catch(_0x3238da){return null;}}()),_0x3e302c['_Buffer_from']=null,_0x3e302c['_Buffer_allocUnsafe']=null,_0x3e302c['newBuffer']=function(_0x21c1c8){return'number'==typeof _0x21c1c8?_0x3e302c['Buffer']?_0x3e302c['_Buffer_allocUnsafe'](_0x21c1c8):new _0x3e302c['Array'](_0x21c1c8):_0x3e302c['Buffer']?_0x3e302c['_Buffer_from'](_0x21c1c8):'undefined'==typeof Uint8Array?_0x21c1c8:new Uint8Array(_0x21c1c8);},_0x3e302c['Array']='undefined'!=typeof Uint8Array?Uint8Array:Array,_0x3e302c['Long']=_0x3e302c['global']['dcodeIO']&&_0x3e302c['global']['dcodeIO']['Long']||_0x3e302c['global']['Long']||_0x3e302c['inquire']('long'),_0x3e302c['key2Re']=/^true|false|0|1$/,_0x3e302c['key32Re']=/^-?(?:0|[1-9][0-9]*)$/,_0x3e302c['key64Re']=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,_0x3e302c['longToHash']=function(_0x4bf9bb){return _0x4bf9bb?_0x3e302c['LongBits']['from'](_0x4bf9bb)['toHash']():_0x3e302c['LongBits']['zeroHash'];},_0x3e302c['longFromHash']=function(_0x90d593,_0x4cb847){var _0x58326d=_0x3e302c['LongBits']['fromHash'](_0x90d593);return _0x3e302c['Long']?_0x3e302c['Long']['fromBits'](_0x58326d['lo'],_0x58326d['hi'],_0x4cb847):_0x58326d['toNumber'](Boolean(_0x4cb847));},_0x3e302c['merge']=_0x5643d4,_0x3e302c['lcFirst']=function(_0x3e23bb){return _0x3e23bb['charAt'](0x0)['toLowerCase']()+_0x3e23bb['substring'](0x1);},_0x3e302c['newError']=_0x6fffa9,_0x3e302c['ProtocolError']=_0x6fffa9('ProtocolError'),_0x3e302c['oneOfGetter']=function(_0x41d7b4){for(var _0x514ab0={},_0x4ef567=0x0;_0x4ef567<_0x41d7b4['length'];++_0x4ef567)_0x514ab0[_0x41d7b4[_0x4ef567]]=0x1;return function(){for(var _0x5c0271=Object['keys'](this),_0x35f781=_0x5c0271['length']-0x1;_0x35f781>-0x1;--_0x35f781)if(0x1===_0x514ab0[_0x5c0271[_0x35f781]]&&void 0x0!==this[_0x5c0271[_0x35f781]]&&null!==this[_0x5c0271[_0x35f781]])return _0x5c0271[_0x35f781];};},_0x3e302c['oneOfSetter']=function(_0x3eb118){return function(_0x2872d5){for(var _0x98dad=0x0;_0x98dad<_0x3eb118['length'];++_0x98dad)_0x3eb118[_0x98dad]!==_0x2872d5&&delete this[_0x3eb118[_0x98dad]];};},_0x3e302c['toJSONOptions']={'longs':String,'enums':String,'bytes':String,'json':!0x0},_0x3e302c['_configure']=function(){var _0x30d502=_0x3e302c['Buffer'];_0x30d502?(_0x3e302c['_Buffer_from']=_0x30d502['from']!==Uint8Array['from']&&_0x30d502['from']||function(_0x427f70,_0x87bbcc){return new _0x30d502(_0x427f70,_0x87bbcc);},_0x3e302c['_Buffer_allocUnsafe']=_0x30d502['allocUnsafe']||function(_0x1cf086){return new _0x30d502(_0x1cf086);}):_0x3e302c['_Buffer_from']=_0x3e302c['_Buffer_allocUnsafe']=null;};}())),minimal$1;}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=0x1,writer=_0x2cbb61;var _0x58e677,_0x449a2f=requireMinimal$1(),_0x31974a=_0x449a2f['LongBits'],_0x58d143=_0x449a2f['base64'],_0x3c0ede=_0x449a2f['utf8'];function _0x3cf3e0(_0x4308f4,_0x296b23,_0x3a4e89){this['fn']=_0x4308f4,this['len']=_0x296b23,this['next']=void 0x0,this['val']=_0x3a4e89;}function _0x3a7bb4(){}function _0x1fdc95(_0x189d16){this['head']=_0x189d16['head'],this['tail']=_0x189d16['tail'],this['len']=_0x189d16['len'],this['next']=_0x189d16['states'];}function _0x2cbb61(){this['len']=0x0,this['head']=new _0x3cf3e0(_0x3a7bb4,0x0,0x0),this['tail']=this['head'],this['states']=null;}var _0x3390cd=function(){return _0x449a2f['Buffer']?function(){return(_0x2cbb61['create']=function(){return new _0x58e677();})();}:function(){return new _0x2cbb61();};};function _0x59ab83(_0x491dde,_0x30e98c,_0x2fc115){_0x30e98c[_0x2fc115]=0xff&_0x491dde;}function _0x301d98(_0x21c175,_0x46b187){this['len']=_0x21c175,this['next']=void 0x0,this['val']=_0x46b187;}function _0x18775f(_0xabb796,_0x1ba1d0,_0x36640c){for(;_0xabb796['hi'];)_0x1ba1d0[_0x36640c++]=0x7f&_0xabb796['lo']|0x80,_0xabb796['lo']=(_0xabb796['lo']>>>0x7|_0xabb796['hi']<<0x19)>>>0x0,_0xabb796['hi']>>>=0x7;for(;_0xabb796['lo']>0x7f;)_0x1ba1d0[_0x36640c++]=0x7f&_0xabb796['lo']|0x80,_0xabb796['lo']=_0xabb796['lo']>>>0x7;_0x1ba1d0[_0x36640c++]=_0xabb796['lo'];}function _0x49334b(_0x24395b,_0x2ee626,_0xf60cdf){_0x2ee626[_0xf60cdf]=0xff&_0x24395b,_0x2ee626[_0xf60cdf+0x1]=_0x24395b>>>0x8&0xff,_0x2ee626[_0xf60cdf+0x2]=_0x24395b>>>0x10&0xff,_0x2ee626[_0xf60cdf+0x3]=_0x24395b>>>0x18;}_0x2cbb61['create']=_0x3390cd(),_0x2cbb61['alloc']=function(_0x212f2e){return new _0x449a2f['Array'](_0x212f2e);},_0x449a2f['Array']!==Array&&(_0x2cbb61['alloc']=_0x449a2f['pool'](_0x2cbb61['alloc'],_0x449a2f['Array']['prototype']['subarray'])),_0x2cbb61['prototype']['_push']=function(_0x4ada77,_0x29acf2,_0x398584){return this['tail']=this['tail']['next']=new _0x3cf3e0(_0x4ada77,_0x29acf2,_0x398584),this['len']+=_0x29acf2,this;},_0x301d98['prototype']=Object['create'](_0x3cf3e0['prototype']),_0x301d98['prototype']['fn']=function(_0x1deb4f,_0x2e8253,_0x6efaed){for(;_0x1deb4f>0x7f;)_0x2e8253[_0x6efaed++]=0x7f&_0x1deb4f|0x80,_0x1deb4f>>>=0x7;_0x2e8253[_0x6efaed]=_0x1deb4f;},_0x2cbb61['prototype']['uint32']=function(_0x5d13f5){return this['len']+=(this['tail']=this['tail']['next']=new _0x301d98((_0x5d13f5>>>=0x0)<0x80?0x1:_0x5d13f5<0x4000?0x2:_0x5d13f5<0x200000?0x3:_0x5d13f5<0x10000000?0x4:0x5,_0x5d13f5))['len'],this;},_0x2cbb61['prototype']['int32']=function(_0x3dc104){return _0x3dc104<0x0?this['_push'](_0x18775f,0xa,_0x31974a['fromNumber'](_0x3dc104)):this['uint32'](_0x3dc104);},_0x2cbb61['prototype']['sint32']=function(_0xfc6124){return this['uint32']((_0xfc6124<<0x1^_0xfc6124>>0x1f)>>>0x0);},_0x2cbb61['prototype']['uint64']=function(_0x22d48b){var _0x4c1cd1=_0x31974a['from'](_0x22d48b);return this['_push'](_0x18775f,_0x4c1cd1['length'](),_0x4c1cd1);},_0x2cbb61['prototype']['int64']=_0x2cbb61['prototype']['uint64'],_0x2cbb61['prototype']['sint64']=function(_0x15f214){var _0x56b754=_0x31974a['from'](_0x15f214)['zzEncode']();return this['_push'](_0x18775f,_0x56b754['length'](),_0x56b754);},_0x2cbb61['prototype']['bool']=function(_0x3efec5){return this['_push'](_0x59ab83,0x1,_0x3efec5?0x1:0x0);},_0x2cbb61['prototype']['fixed32']=function(_0x37dbf3){return this['_push'](_0x49334b,0x4,_0x37dbf3>>>0x0);},_0x2cbb61['prototype']['sfixed32']=_0x2cbb61['prototype']['fixed32'],_0x2cbb61['prototype']['fixed64']=function(_0x84d286){var _0x1fc1ab=_0x31974a['from'](_0x84d286);return this['_push'](_0x49334b,0x4,_0x1fc1ab['lo'])['_push'](_0x49334b,0x4,_0x1fc1ab['hi']);},_0x2cbb61['prototype']['sfixed64']=_0x2cbb61['prototype']['fixed64'],_0x2cbb61['prototype']['float']=function(_0x1defe0){return this['_push'](_0x449a2f['float']['writeFloatLE'],0x4,_0x1defe0);},_0x2cbb61['prototype']['double']=function(_0x3fa668){return this['_push'](_0x449a2f['float']['writeDoubleLE'],0x8,_0x3fa668);};var _0x4aa734=_0x449a2f['Array']['prototype']['set']?function(_0x5f334d,_0x170a17,_0x35801e){_0x170a17['set'](_0x5f334d,_0x35801e);}:function(_0x125948,_0x471747,_0xfb5292){for(var _0x49fd3b=0x0;_0x49fd3b<_0x125948['length'];++_0x49fd3b)_0x471747[_0xfb5292+_0x49fd3b]=_0x125948[_0x49fd3b];};return _0x2cbb61['prototype']['bytes']=function(_0x3d3085){var _0x5dcb02=_0x3d3085['length']>>>0x0;if(!_0x5dcb02)return this['_push'](_0x59ab83,0x1,0x0);if(_0x449a2f['isString'](_0x3d3085)){var _0x1789e9=_0x2cbb61['alloc'](_0x5dcb02=_0x58d143['length'](_0x3d3085));_0x58d143['decode'](_0x3d3085,_0x1789e9,0x0),_0x3d3085=_0x1789e9;}return this['uint32'](_0x5dcb02)['_push'](_0x4aa734,_0x5dcb02,_0x3d3085);},_0x2cbb61['prototype']['string']=function(_0x51b753){var _0x422cb1=_0x3c0ede['length'](_0x51b753);return _0x422cb1?this['uint32'](_0x422cb1)['_push'](_0x3c0ede['write'],_0x422cb1,_0x51b753):this['_push'](_0x59ab83,0x1,0x0);},_0x2cbb61['prototype']['fork']=function(){return this['states']=new _0x1fdc95(this),this['head']=this['tail']=new _0x3cf3e0(_0x3a7bb4,0x0,0x0),this['len']=0x0,this;},_0x2cbb61['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 _0x3cf3e0(_0x3a7bb4,0x0,0x0),this['len']=0x0),this;},_0x2cbb61['prototype']['ldelim']=function(){var _0x753ad4=this['head'],_0x1540a6=this['tail'],_0x2506fa=this['len'];return this['reset']()['uint32'](_0x2506fa),_0x2506fa&&(this['tail']['next']=_0x753ad4['next'],this['tail']=_0x1540a6,this['len']+=_0x2506fa),this;},_0x2cbb61['prototype']['finish']=function(){for(var _0x2a7a53=this['head']['next'],_0x52d9ac=this['constructor']['alloc'](this['len']),_0x324131=0x0;_0x2a7a53;)_0x2a7a53['fn'](_0x2a7a53['val'],_0x52d9ac,_0x324131),_0x324131+=_0x2a7a53['len'],_0x2a7a53=_0x2a7a53['next'];return _0x52d9ac;},_0x2cbb61['_configure']=function(_0xa693b9){_0x58e677=_0xa693b9,_0x2cbb61['create']=_0x3390cd(),_0x58e677['_configure']();},writer;}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=0x1,writer_buffer=_0x30a778;var _0x31602a=requireWriter();(_0x30a778['prototype']=Object['create'](_0x31602a['prototype']))['constructor']=_0x30a778;var _0x57f669=requireMinimal$1();function _0x30a778(){_0x31602a['call'](this);}function _0x478b86(_0x43aa49,_0x40fb8c,_0x6ba0ac){_0x43aa49['length']<0x28?_0x57f669['utf8']['write'](_0x43aa49,_0x40fb8c,_0x6ba0ac):_0x40fb8c['utf8Write']?_0x40fb8c['utf8Write'](_0x43aa49,_0x6ba0ac):_0x40fb8c['write'](_0x43aa49,_0x6ba0ac);}return _0x30a778['_configure']=function(){_0x30a778['alloc']=_0x57f669['_Buffer_allocUnsafe'],_0x30a778['writeBytesBuffer']=_0x57f669['Buffer']&&_0x57f669['Buffer']['prototype']instanceof Uint8Array&&'set'===_0x57f669['Buffer']['prototype']['set']['name']?function(_0x473be3,_0x5f496f,_0x54d5af){_0x5f496f['set'](_0x473be3,_0x54d5af);}:function(_0x1c0e4a,_0x5c12e8,_0x5ba96c){if(_0x1c0e4a['copy'])_0x1c0e4a['copy'](_0x5c12e8,_0x5ba96c,0x0,_0x1c0e4a['length']);else{for(var _0x28b853=0x0;_0x28b853<_0x1c0e4a['length'];)_0x5c12e8[_0x5ba96c++]=_0x1c0e4a[_0x28b853++];}};},_0x30a778['prototype']['bytes']=function(_0x50585d){_0x57f669['isString'](_0x50585d)&&(_0x50585d=_0x57f669['_Buffer_from'](_0x50585d,'base64'));var _0x1b861c=_0x50585d['length']>>>0x0;return this['uint32'](_0x1b861c),_0x1b861c&&this['_push'](_0x30a778['writeBytesBuffer'],_0x1b861c,_0x50585d),this;},_0x30a778['prototype']['string']=function(_0x2f227c){var _0x47e531=_0x57f669['Buffer']['byteLength'](_0x2f227c);return this['uint32'](_0x47e531),_0x47e531&&this['_push'](_0x478b86,_0x47e531,_0x2f227c),this;},_0x30a778['_configure'](),writer_buffer;}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=0x1,reader=_0x2667d0;var _0x5c995d,_0x2af195=requireMinimal$1(),_0x2a4352=_0x2af195['LongBits'],_0x15409b=_0x2af195['utf8'];function _0x15c28a(_0x365447,_0x2a1488){return RangeError('index\x20out\x20of\x20range:\x20'+_0x365447['pos']+'\x20+\x20'+(_0x2a1488||0x1)+'\x20>\x20'+_0x365447['len']);}function _0x2667d0(_0xc50e96){this['buf']=_0xc50e96,this['pos']=0x0,this['len']=_0xc50e96['length'];}var _0x46416d='undefined'!=typeof Uint8Array?function(_0x103f54){if(_0x103f54 instanceof Uint8Array||Array['isArray'](_0x103f54))return new _0x2667d0(_0x103f54);throw Error('illegal\x20buffer');}:function(_0x4cd92d){if(Array['isArray'](_0x4cd92d))return new _0x2667d0(_0x4cd92d);throw Error('illegal\x20buffer');},_0xe2630=function(){return _0x2af195['Buffer']?function(_0xbd0f0c){return(_0x2667d0['create']=function(_0x2b5d3b){return _0x2af195['Buffer']['isBuffer'](_0x2b5d3b)?new _0x5c995d(_0x2b5d3b):_0x46416d(_0x2b5d3b);})(_0xbd0f0c);}:_0x46416d;};function _0x5d97ce(){var _0x1c94fc=new _0x2a4352(0x0,0x0),_0x4c7275=0x0;if(!(this['len']-this['pos']>0x4)){for(;_0x4c7275<0x3;++_0x4c7275){if(this['pos']>=this['len'])throw _0x15c28a(this);if(_0x1c94fc['lo']=(_0x1c94fc['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x4c7275)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x1c94fc;}return _0x1c94fc['lo']=(_0x1c94fc['lo']|(0x7f&this['buf'][this['pos']++])<<0x7*_0x4c7275)>>>0x0,_0x1c94fc;}for(;_0x4c7275<0x4;++_0x4c7275)if(_0x1c94fc['lo']=(_0x1c94fc['lo']|(0x7f&this['buf'][this['pos']])<<0x7*_0x4c7275)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x1c94fc;if(_0x1c94fc['lo']=(_0x1c94fc['lo']|(0x7f&this['buf'][this['pos']])<<0x1c)>>>0x0,_0x1c94fc['hi']=(_0x1c94fc['hi']|(0x7f&this['buf'][this['pos']])>>0x4)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x1c94fc;if(_0x4c7275=0x0,this['len']-this['pos']>0x4){for(;_0x4c7275<0x5;++_0x4c7275)if(_0x1c94fc['hi']=(_0x1c94fc['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x4c7275+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x1c94fc;}else for(;_0x4c7275<0x5;++_0x4c7275){if(this['pos']>=this['len'])throw _0x15c28a(this);if(_0x1c94fc['hi']=(_0x1c94fc['hi']|(0x7f&this['buf'][this['pos']])<<0x7*_0x4c7275+0x3)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x1c94fc;}throw Error('invalid\x20varint\x20encoding');}function _0x58affe(_0x5bd16d,_0x119360){return(_0x5bd16d[_0x119360-0x4]|_0x5bd16d[_0x119360-0x3]<<0x8|_0x5bd16d[_0x119360-0x2]<<0x10|_0x5bd16d[_0x119360-0x1]<<0x18)>>>0x0;}function _0x358011(){if(this['pos']+0x8>this['len'])throw _0x15c28a(this,0x8);return new _0x2a4352(_0x58affe(this['buf'],this['pos']+=0x4),_0x58affe(this['buf'],this['pos']+=0x4));}return _0x2667d0['create']=_0xe2630(),_0x2667d0['prototype']['_slice']=_0x2af195['Array']['prototype']['subarray']||_0x2af195['Array']['prototype']['slice'],_0x2667d0['prototype']['uint32']=(function(){var _0x17df38=0xffffffff;return function(){if(_0x17df38=(0x7f&this['buf'][this['pos']])>>>0x0,this['buf'][this['pos']++]<0x80)return _0x17df38;if(_0x17df38=(_0x17df38|(0x7f&this['buf'][this['pos']])<<0x7)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x17df38;if(_0x17df38=(_0x17df38|(0x7f&this['buf'][this['pos']])<<0xe)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x17df38;if(_0x17df38=(_0x17df38|(0x7f&this['buf'][this['pos']])<<0x15)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x17df38;if(_0x17df38=(_0x17df38|(0xf&this['buf'][this['pos']])<<0x1c)>>>0x0,this['buf'][this['pos']++]<0x80)return _0x17df38;if((this['pos']+=0x5)>this['len'])throw this['pos']=this['len'],_0x15c28a(this,0xa);return _0x17df38;};}()),_0x2667d0['prototype']['int32']=function(){return 0x0|this['uint32']();},_0x2667d0['prototype']['sint32']=function(){var _0x336015=this['uint32']();return _0x336015>>>0x1^-(0x1&_0x336015);},_0x2667d0['prototype']['bool']=function(){return 0x0!==this['uint32']();},_0x2667d0['prototype']['fixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x15c28a(this,0x4);return _0x58affe(this['buf'],this['pos']+=0x4);},_0x2667d0['prototype']['sfixed32']=function(){if(this['pos']+0x4>this['len'])throw _0x15c28a(this,0x4);return 0x0|_0x58affe(this['buf'],this['pos']+=0x4);},_0x2667d0['prototype']['float']=function(){if(this['pos']+0x4>this['len'])throw _0x15c28a(this,0x4);var _0x191808=_0x2af195['float']['readFloatLE'](this['buf'],this['pos']);return this['pos']+=0x4,_0x191808;},_0x2667d0['prototype']['double']=function(){if(this['pos']+0x8>this['len'])throw _0x15c28a(this,0x4);var _0x29fde4=_0x2af195['float']['readDoubleLE'](this['buf'],this['pos']);return this['pos']+=0x8,_0x29fde4;},_0x2667d0['prototype']['bytes']=function(){var _0x4cc195=this['uint32'](),_0x4dd4b2=this['pos'],_0x4a97e9=this['pos']+_0x4cc195;if(_0x4a97e9>this['len'])throw _0x15c28a(this,_0x4cc195);if(this['pos']+=_0x4cc195,Array['isArray'](this['buf']))return this['buf']['slice'](_0x4dd4b2,_0x4a97e9);if(_0x4dd4b2===_0x4a97e9){var _0x5696c6=_0x2af195['Buffer'];return _0x5696c6?_0x5696c6['alloc'](0x0):new this['buf']['constructor'](0x0);}return this['_slice']['call'](this['buf'],_0x4dd4b2,_0x4a97e9);},_0x2667d0['prototype']['string']=function(){var _0x238db5=this['bytes']();return _0x15409b['read'](_0x238db5,0x0,_0x238db5['length']);},_0x2667d0['prototype']['skip']=function(_0x4b7d17){if('number'==typeof _0x4b7d17){if(this['pos']+_0x4b7d17>this['len'])throw _0x15c28a(this,_0x4b7d17);this['pos']+=_0x4b7d17;}else do{if(this['pos']>=this['len'])throw _0x15c28a(this);}while(0x80&this['buf'][this['pos']++]);return this;},_0x2667d0['prototype']['skipType']=function(_0x6807b1){switch(_0x6807b1){case 0x0:this['skip']();break;case 0x1:this['skip'](0x8);break;case 0x2:this['skip'](this['uint32']());break;case 0x3:for(;0x4!=(_0x6807b1=0x7&this['uint32']());)this['skipType'](_0x6807b1);break;case 0x5:this['skip'](0x4);break;default:throw Error('invalid\x20wire\x20type\x20'+_0x6807b1+'\x20at\x20offset\x20'+this['pos']);}return this;},_0x2667d0['_configure']=function(_0x15b329){_0x5c995d=_0x15b329,_0x2667d0['create']=_0xe2630(),_0x5c995d['_configure']();var _0x2f0cd7=_0x2af195['Long']?'toLong':'toNumber';_0x2af195['merge'](_0x2667d0['prototype'],{'int64':function(){return _0x5d97ce['call'](this)[_0x2f0cd7](!0x1);},'uint64':function(){return _0x5d97ce['call'](this)[_0x2f0cd7](!0x0);},'sint64':function(){return _0x5d97ce['call'](this)['zzDecode']()[_0x2f0cd7](!0x1);},'fixed64':function(){return _0x358011['call'](this)[_0x2f0cd7](!0x0);},'sfixed64':function(){return _0x358011['call'](this)[_0x2f0cd7](!0x1);}});},reader;}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=0x1,reader_buffer=_0x2013e5;var _0x470c1f=requireReader();(_0x2013e5['prototype']=Object['create'](_0x470c1f['prototype']))['constructor']=_0x2013e5;var _0x558240=requireMinimal$1();function _0x2013e5(_0x352bd9){_0x470c1f['call'](this,_0x352bd9);}return _0x2013e5['_configure']=function(){_0x558240['Buffer']&&(_0x2013e5['prototype']['_slice']=_0x558240['Buffer']['prototype']['slice']);},_0x2013e5['prototype']['string']=function(){var _0x502f30=this['uint32']();return this['buf']['utf8Slice']?this['buf']['utf8Slice'](this['pos'],this['pos']=Math['min'](this['pos']+_0x502f30,this['len'])):this['buf']['toString']('utf-8',this['pos'],this['pos']=Math['min'](this['pos']+_0x502f30,this['len']));},_0x2013e5['_configure'](),reader_buffer;}var rpc={},service,hasRequiredService,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal,minimal,hasRequiredMinimal;function requireService(){if(hasRequiredService)return service;hasRequiredService=0x1,service=_0xbcf3e7;var _0x6b4efc=requireMinimal$1();function _0xbcf3e7(_0x5c7e20,_0x5546a5,_0x4f00b4){if('function'!=typeof _0x5c7e20)throw TypeError('rpcImpl\x20must\x20be\x20a\x20function');_0x6b4efc['EventEmitter']['call'](this),this['rpcImpl']=_0x5c7e20,this['requestDelimited']=Boolean(_0x5546a5),this['responseDelimited']=Boolean(_0x4f00b4);}return(_0xbcf3e7['prototype']=Object['create'](_0x6b4efc['EventEmitter']['prototype']))['constructor']=_0xbcf3e7,_0xbcf3e7['prototype']['rpcCall']=function _0xc0814d(_0x1115b5,_0x42e887,_0x1807e4,_0x4e9cbd,_0x32a449){if(!_0x4e9cbd)throw TypeError('request\x20must\x20be\x20specified');var _0x1937b1=this;if(!_0x32a449)return _0x6b4efc['asPromise'](_0xc0814d,_0x1937b1,_0x1115b5,_0x42e887,_0x1807e4,_0x4e9cbd);if(_0x1937b1['rpcImpl'])try{return _0x1937b1['rpcImpl'](_0x1115b5,_0x42e887[_0x1937b1['requestDelimited']?'encodeDelimited':'encode'](_0x4e9cbd)['finish'](),function(_0x1b72c7,_0x371481){if(_0x1b72c7)return _0x1937b1['emit']('error',_0x1b72c7,_0x1115b5),_0x32a449(_0x1b72c7);if(null!==_0x371481){if(!(_0x371481 instanceof _0x1807e4))try{_0x371481=_0x1807e4[_0x1937b1['responseDelimited']?'decodeDelimited':'decode'](_0x371481);}catch(_0x3ea580){return _0x1937b1['emit']('error',_0x3ea580,_0x1115b5),_0x32a449(_0x3ea580);}return _0x1937b1['emit']('data',_0x371481,_0x1115b5),_0x32a449(null,_0x371481);}_0x1937b1['end'](!0x0);});}catch(_0x301942){return _0x1937b1['emit']('error',_0x301942,_0x1115b5),void setTimeout(function(){_0x32a449(_0x301942);},0x0);}else setTimeout(function(){_0x32a449(Error('already\x20ended'));},0x0);},_0xbcf3e7['prototype']['end']=function(_0x18fa3c){return this['rpcImpl']&&(_0x18fa3c||this['rpcImpl'](null,null,null),this['rpcImpl']=null,this['emit']('end')['off']()),this;},service;}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=0x1,rpc['Service']=requireService()),rpc;}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=0x1,roots={});}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=0x1,(function(){var _0x4002e4=indexMinimal;function _0x1eca9b(){_0x4002e4['util']['_configure'](),_0x4002e4['Writer']['_configure'](_0x4002e4['BufferWriter']),_0x4002e4['Reader']['_configure'](_0x4002e4['BufferReader']);}_0x4002e4['build']='minimal',_0x4002e4['Writer']=requireWriter(),_0x4002e4['BufferWriter']=requireWriter_buffer(),_0x4002e4['Reader']=requireReader(),_0x4002e4['BufferReader']=requireReader_buffer(),_0x4002e4['util']=requireMinimal$1(),_0x4002e4['rpc']=requireRpc(),_0x4002e4['roots']=requireRoots(),_0x4002e4['configure']=_0x1eca9b,_0x1eca9b();}())),indexMinimal;}function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=0x1,minimal=requireIndexMinimal());}var minimalExports=requireMinimal();const PACKET_TYPES=Object['create'](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES['ping']='2',PACKET_TYPES['pong']='3',PACKET_TYPES['message']='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object['keys'](PACKET_TYPES)['forEach'](_0x4ffde2=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x4ffde2]]=_0x4ffde2;});const ERROR_PACKET={'type':'error','data':'parser\x20error'},withNativeBlob$1='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===Object['prototype']['toString']['call'](Blob),withNativeArrayBuffer$2='function'==typeof ArrayBuffer,isView$1=_0x201ce9=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x201ce9):_0x201ce9&&_0x201ce9['buffer']instanceof ArrayBuffer,encodePacket=({type:_0x2eaa0c,data:_0x3a3fd3},_0x23921a,_0x29d8b0)=>withNativeBlob$1&&_0x3a3fd3 instanceof Blob?_0x23921a?_0x29d8b0(_0x3a3fd3):encodeBlobAsBase64(_0x3a3fd3,_0x29d8b0):withNativeArrayBuffer$2&&(_0x3a3fd3 instanceof ArrayBuffer||isView$1(_0x3a3fd3))?_0x23921a?_0x29d8b0(_0x3a3fd3):encodeBlobAsBase64(new Blob([_0x3a3fd3]),_0x29d8b0):_0x29d8b0(PACKET_TYPES[_0x2eaa0c]+(_0x3a3fd3||'')),encodeBlobAsBase64=(_0x3022a8,_0x1cbf87)=>{const _0x2a18e2=new FileReader();return _0x2a18e2['onload']=function(){const _0x515315=_0x2a18e2['result']['split'](',')[0x1];_0x1cbf87('b'+(_0x515315||''));},_0x2a18e2['readAsDataURL'](_0x3022a8);};function toArray(_0x358cf5){return _0x358cf5 instanceof Uint8Array?_0x358cf5:_0x358cf5 instanceof ArrayBuffer?new Uint8Array(_0x358cf5):new Uint8Array(_0x358cf5['buffer'],_0x358cf5['byteOffset'],_0x358cf5['byteLength']);}let TEXT_ENCODER;function encodePacketToBinary(_0x566792,_0x4ffb11){return withNativeBlob$1&&_0x566792['data']instanceof Blob?_0x566792['data']['arrayBuffer']()['then'](toArray)['then'](_0x4ffb11):withNativeArrayBuffer$2&&(_0x566792['data']instanceof ArrayBuffer||isView$1(_0x566792['data']))?_0x4ffb11(toArray(_0x566792['data'])):void encodePacket(_0x566792,!0x1,_0x240e19=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder()),_0x4ffb11(TEXT_ENCODER['encode'](_0x240e19));});}const chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1='undefined'==typeof Uint8Array?[]:new Uint8Array(0x100);for(let e=0x0;e<chars['length'];e++)lookup$1[chars['charCodeAt'](e)]=e;const decode$1=_0x2f6bc0=>{let _0x138e79,_0x52d080,_0x1a141c,_0x4c13d5,_0x5d962b,_0xb8613=0.75*_0x2f6bc0['length'],_0x2f4371=_0x2f6bc0['length'],_0x16c2cc=0x0;'='===_0x2f6bc0[_0x2f6bc0['length']-0x1]&&(_0xb8613--,'='===_0x2f6bc0[_0x2f6bc0['length']-0x2]&&_0xb8613--);const _0x2076b4=new ArrayBuffer(_0xb8613),_0x42a1c1=new Uint8Array(_0x2076b4);for(_0x138e79=0x0;_0x138e79<_0x2f4371;_0x138e79+=0x4)_0x52d080=lookup$1[_0x2f6bc0['charCodeAt'](_0x138e79)],_0x1a141c=lookup$1[_0x2f6bc0['charCodeAt'](_0x138e79+0x1)],_0x4c13d5=lookup$1[_0x2f6bc0['charCodeAt'](_0x138e79+0x2)],_0x5d962b=lookup$1[_0x2f6bc0['charCodeAt'](_0x138e79+0x3)],_0x42a1c1[_0x16c2cc++]=_0x52d080<<0x2|_0x1a141c>>0x4,_0x42a1c1[_0x16c2cc++]=(0xf&_0x1a141c)<<0x4|_0x4c13d5>>0x2,_0x42a1c1[_0x16c2cc++]=(0x3&_0x4c13d5)<<0x6|0x3f&_0x5d962b;return _0x2076b4;},withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(_0x3a8d84,_0x496c77)=>{if('string'!=typeof _0x3a8d84)return{'type':'message','data':mapBinary(_0x3a8d84,_0x496c77)};const _0x561d73=_0x3a8d84['charAt'](0x0);if('b'===_0x561d73)return{'type':'message','data':decodeBase64Packet(_0x3a8d84['substring'](0x1),_0x496c77)};return PACKET_TYPES_REVERSE[_0x561d73]?_0x3a8d84['length']>0x1?{'type':PACKET_TYPES_REVERSE[_0x561d73],'data':_0x3a8d84['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[_0x561d73]}:ERROR_PACKET;},decodeBase64Packet=(_0x397a0b,_0x3afabd)=>{if(withNativeArrayBuffer$1){const _0x5703db=decode$1(_0x397a0b);return mapBinary(_0x5703db,_0x3afabd);}return{'base64':!0x0,'data':_0x397a0b};},mapBinary=(_0x1d94c9,_0x5676ca)=>'blob'===_0x5676ca?_0x1d94c9 instanceof Blob?_0x1d94c9:new Blob([_0x1d94c9]):_0x1d94c9 instanceof ArrayBuffer?_0x1d94c9:_0x1d94c9['buffer'],SEPARATOR$2=String['fromCharCode'](0x1e),encodePayload=(_0x2b5c30,_0x5beb1a)=>{const _0xc259ed=_0x2b5c30['length'],_0x5eb447=new Array(_0xc259ed);let _0x4a40a1=0x0;_0x2b5c30['forEach']((_0x2b020e,_0x3520c9)=>{encodePacket(_0x2b020e,!0x1,_0x39347d=>{_0x5eb447[_0x3520c9]=_0x39347d,++_0x4a40a1===_0xc259ed&&_0x5beb1a(_0x5eb447['join'](SEPARATOR$2));});});},decodePayload=(_0x406511,_0x2854a6)=>{const _0x5751aa=_0x406511['split'](SEPARATOR$2),_0x37f4b9=[];for(let _0x263d6c=0x0;_0x263d6c<_0x5751aa['length'];_0x263d6c++){const _0x787167=decodePacket(_0x5751aa[_0x263d6c],_0x2854a6);if(_0x37f4b9['push'](_0x787167),'error'===_0x787167['type'])break;}return _0x37f4b9;};function createPacketEncoderStream(){return new TransformStream({'transform'(_0x545291,_0x25bf42){encodePacketToBinary(_0x545291,_0x11d7d9=>{const _0x2ee4bb=_0x11d7d9['length'];let _0x30afb0;if(_0x2ee4bb<0x7e)_0x30afb0=new Uint8Array(0x1),new DataView(_0x30afb0['buffer'])['setUint8'](0x0,_0x2ee4bb);else{if(_0x2ee4bb<0x10000){_0x30afb0=new Uint8Array(0x3);const _0x416243=new DataView(_0x30afb0['buffer']);_0x416243['setUint8'](0x0,0x7e),_0x416243['setUint16'](0x1,_0x2ee4bb);}else{_0x30afb0=new Uint8Array(0x9);const _0x58164f=new DataView(_0x30afb0['buffer']);_0x58164f['setUint8'](0x0,0x7f),_0x58164f['setBigUint64'](0x1,BigInt(_0x2ee4bb));}}_0x545291['data']&&'string'!=typeof _0x545291['data']&&(_0x30afb0[0x0]|=0x80),_0x25bf42['enqueue'](_0x30afb0),_0x25bf42['enqueue'](_0x11d7d9);});}});}let TEXT_DECODER;function totalLength(_0x5a5d9c){return _0x5a5d9c['reduce']((_0x5d0359,_0x3fae63)=>_0x5d0359+_0x3fae63['length'],0x0);}function concatChunks(_0x55c351,_0x1b4770){if(_0x55c351[0x0]['length']===_0x1b4770)return _0x55c351['shift']();const _0xf89f6b=new Uint8Array(_0x1b4770);let _0x40a5ed=0x0;for(let _0x3fed04=0x0;_0x3fed04<_0x1b4770;_0x3fed04++)_0xf89f6b[_0x3fed04]=_0x55c351[0x0][_0x40a5ed++],_0x40a5ed===_0x55c351[0x0]['length']&&(_0x55c351['shift'](),_0x40a5ed=0x0);return _0x55c351['length']&&_0x40a5ed<_0x55c351[0x0]['length']&&(_0x55c351[0x0]=_0x55c351[0x0]['slice'](_0x40a5ed)),_0xf89f6b;}function createPacketDecoderStream(_0x167dcb,_0x5af204){TEXT_DECODER||(TEXT_DECODER=new TextDecoder());const _0x451265=[];let _0x315fc0=0x0,_0x3b9e29=-0x1,_0x2d65c0=!0x1;return new TransformStream({'transform'(_0x5568ba,_0x380fb3){for(_0x451265['push'](_0x5568ba);;){if(0x0===_0x315fc0){if(totalLength(_0x451265)<0x1)break;const _0x5b6351=concatChunks(_0x451265,0x1);_0x2d65c0=!(0x80&~_0x5b6351[0x0]),_0x3b9e29=0x7f&_0x5b6351[0x0],_0x315fc0=_0x3b9e29<0x7e?0x3:0x7e===_0x3b9e29?0x1:0x2;}else{if(0x1===_0x315fc0){if(totalLength(_0x451265)<0x2)break;const _0x410602=concatChunks(_0x451265,0x2);_0x3b9e29=new DataView(_0x410602['buffer'],_0x410602['byteOffset'],_0x410602['length'])['getUint16'](0x0),_0x315fc0=0x3;}else{if(0x2===_0x315fc0){if(totalLength(_0x451265)<0x8)break;const _0x4e3707=concatChunks(_0x451265,0x8),_0x2c1ec2=new DataView(_0x4e3707['buffer'],_0x4e3707['byteOffset'],_0x4e3707['length']),_0x8898f6=_0x2c1ec2['getUint32'](0x0);if(_0x8898f6>Math['pow'](0x2,0x15)-0x1){_0x380fb3['enqueue'](ERROR_PACKET);break;}_0x3b9e29=_0x8898f6*Math['pow'](0x2,0x20)+_0x2c1ec2['getUint32'](0x4),_0x315fc0=0x3;}else{if(totalLength(_0x451265)<_0x3b9e29)break;const _0x5c90f4=concatChunks(_0x451265,_0x3b9e29);_0x380fb3['enqueue'](decodePacket(_0x2d65c0?_0x5c90f4:TEXT_DECODER['decode'](_0x5c90f4),_0x5af204)),_0x315fc0=0x0;}}}if(0x0===_0x3b9e29||_0x3b9e29>_0x167dcb){_0x380fb3['enqueue'](ERROR_PACKET);break;}}}});}const protocol=0x4;function Emitter(_0xccfdc6){if(_0xccfdc6)return mixin(_0xccfdc6);}function mixin(_0x2fcf84){for(var _0x59c521 in Emitter['prototype'])_0x2fcf84[_0x59c521]=Emitter['prototype'][_0x59c521];return _0x2fcf84;}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(_0x34564a,_0x32018a){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+_0x34564a]=this['_callbacks']['$'+_0x34564a]||[])['push'](_0x32018a),this;},Emitter['prototype']['once']=function(_0x33ff41,_0x11d027){function _0x221dfa(){this['off'](_0x33ff41,_0x221dfa),_0x11d027['apply'](this,arguments);}return _0x221dfa['fn']=_0x11d027,this['on'](_0x33ff41,_0x221dfa),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(_0x2559cc,_0x5f542c){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x526bbe,_0x531fb2=this['_callbacks']['$'+_0x2559cc];if(!_0x531fb2)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+_0x2559cc],this;for(var _0xf132b1=0x0;_0xf132b1<_0x531fb2['length'];_0xf132b1++)if((_0x526bbe=_0x531fb2[_0xf132b1])===_0x5f542c||_0x526bbe['fn']===_0x5f542c){_0x531fb2['splice'](_0xf132b1,0x1);break;}return 0x0===_0x531fb2['length']&&delete this['_callbacks']['$'+_0x2559cc],this;},Emitter['prototype']['emit']=function(_0x4950bf){this['_callbacks']=this['_callbacks']||{};for(var _0x1ada22=new Array(arguments['length']-0x1),_0x55ba98=this['_callbacks']['$'+_0x4950bf],_0x5f3118=0x1;_0x5f3118<arguments['length'];_0x5f3118++)_0x1ada22[_0x5f3118-0x1]=arguments[_0x5f3118];if(_0x55ba98){_0x5f3118=0x0;for(var _0x33338b=(_0x55ba98=_0x55ba98['slice'](0x0))['length'];_0x5f3118<_0x33338b;++_0x5f3118)_0x55ba98[_0x5f3118]['apply'](this,_0x1ada22);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(_0x2d866e){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+_0x2d866e]||[];},Emitter['prototype']['hasListeners']=function(_0xe0a539){return!!this['listeners'](_0xe0a539)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick$1(_0x26c7fa,..._0x37cb4c){return _0x37cb4c['reduce']((_0x31bccc,_0x25410e)=>(_0x26c7fa['hasOwnProperty'](_0x25410e)&&(_0x31bccc[_0x25410e]=_0x26c7fa[_0x25410e]),_0x31bccc),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x3e69c1,_0x2f987f){_0x2f987f['useNativeTimers']?(_0x3e69c1['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x3e69c1['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x3e69c1['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x3e69c1['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}const BASE64_OVERHEAD=1.33;function byteLength(_0x3a3b83){return'string'==typeof _0x3a3b83?utf8Length(_0x3a3b83):Math['ceil']((_0x3a3b83['byteLength']||_0x3a3b83['size'])*BASE64_OVERHEAD);}function utf8Length(_0x216016){let _0x3f56e1=0x0,_0x32874c=0x0;for(let _0x5143f3=0x0,_0x1a2a70=_0x216016['length'];_0x5143f3<_0x1a2a70;_0x5143f3++)_0x3f56e1=_0x216016['charCodeAt'](_0x5143f3),_0x3f56e1<0x80?_0x32874c+=0x1:_0x3f56e1<0x800?_0x32874c+=0x2:_0x3f56e1<0xd800||_0x3f56e1>=0xe000?_0x32874c+=0x3:(_0x5143f3++,_0x32874c+=0x4);return _0x32874c;}function encode$1(_0x2be31e){let _0x365e76='';for(let _0x356762 in _0x2be31e)_0x2be31e['hasOwnProperty'](_0x356762)&&(_0x365e76['length']&&(_0x365e76+='&'),_0x365e76+=encodeURIComponent(_0x356762)+'='+encodeURIComponent(_0x2be31e[_0x356762]));return _0x365e76;}function decode(_0x4fe09d){let _0x1ddeab={},_0xfb62d1=_0x4fe09d['split']('&');for(let _0x49f75e=0x0,_0x2935ee=_0xfb62d1['length'];_0x49f75e<_0x2935ee;_0x49f75e++){let _0x20336f=_0xfb62d1[_0x49f75e]['split']('=');_0x1ddeab[decodeURIComponent(_0x20336f[0x0])]=decodeURIComponent(_0x20336f[0x1]);}return _0x1ddeab;}class TransportError extends Error{constructor(_0x516049,_0xe27b63,_0x2ea138){super(_0x516049),this['description']=_0xe27b63,this['context']=_0x2ea138,this['type']='TransportError';}}class Transport extends Emitter{constructor(_0x5bc83f){super(),this['writable']=!0x1,installTimerFunctions(this,_0x5bc83f),this['opts']=_0x5bc83f,this['query']=_0x5bc83f['query'],this['socket']=_0x5bc83f['socket'];}['onError'](_0xbea787,_0x11c9de,_0x1a1a65){return super['emitReserved']('error',new TransportError(_0xbea787,_0x11c9de,_0x1a1a65)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](_0xc04135){'open'===this['readyState']&&this['write'](_0xc04135);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](_0x4e2daf){const _0x2740e9=decodePacket(_0x4e2daf,this['socket']['binaryType']);this['onPacket'](_0x2740e9);}['onPacket'](_0x3c1d41){super['emitReserved']('packet',_0x3c1d41);}['onClose'](_0x8b606e){this['readyState']='closed',super['emitReserved']('close',_0x8b606e);}['pause'](_0x53c501){}['createUri'](_0x573993,_0x1a621a={}){return _0x573993+'://'+this['_hostname']()+this['_port']()+this['opts']['path']+this['_query'](_0x1a621a);}['_hostname'](){const _0x4f23cb=this['opts']['hostname'];return-0x1===_0x4f23cb['indexOf'](':')?_0x4f23cb:'['+_0x4f23cb+']';}['_port'](){return this['opts']['port']&&(this['opts']['secure']&&Number(0x1bb!==this['opts']['port'])||!this['opts']['secure']&&0x50!==Number(this['opts']['port']))?':'+this['opts']['port']:'';}['_query'](_0x4dd2b8){const _0x32a830=encode$1(_0x4dd2b8);return _0x32a830['length']?'?'+_0x32a830:'';}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let seed=0x0,i$3=0x0,prev;function encode(_0x5acee7){let _0x53c3a9='';do{_0x53c3a9=alphabet[_0x5acee7%length]+_0x53c3a9,_0x5acee7=Math['floor'](_0x5acee7/length);}while(_0x5acee7>0x0);return _0x53c3a9;}function yeast(){const _0x4b4c25=encode(+new Date());return _0x4b4c25!==prev?(seed=0x0,prev=_0x4b4c25):_0x4b4c25+'.'+encode(seed++);}for(;i$3<length;i$3++)map[alphabet[i$3]]=i$3;let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x191061){}const hasCORS=value;function XHR(_0xb6b140){const _0x16a786=_0xb6b140['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x16a786||hasCORS))return new XMLHttpRequest();}catch(_0x345fe6){}if(!_0x16a786)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x461c80){}}function createCookieJar(){}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Polling extends Transport{constructor(_0x14123b){if(super(_0x14123b),this['polling']=!0x1,'undefined'!=typeof location){const _0x3140a5='https:'===location['protocol'];let _0x131ce5=location['port'];_0x131ce5||(_0x131ce5=_0x3140a5?'443':'80'),this['xd']='undefined'!=typeof location&&_0x14123b['hostname']!==location['hostname']||_0x131ce5!==_0x14123b['port'];}const _0x34ece8=_0x14123b&&_0x14123b['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x34ece8,this['opts']['withCredentials']&&(this['cookieJar']=createCookieJar());}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x4b0f69){this['readyState']='pausing';const _0xe9481b=()=>{this['readyState']='paused',_0x4b0f69();};if(this['polling']||!this['writable']){let _0x2844e1=0x0;this['polling']&&(_0x2844e1++,this['once']('pollComplete',function(){--_0x2844e1||_0xe9481b();})),this['writable']||(_0x2844e1++,this['once']('drain',function(){--_0x2844e1||_0xe9481b();}));}else _0xe9481b();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](_0x580ad5){decodePayload(_0x580ad5,this['socket']['binaryType'])['forEach'](_0x42a568=>{if('opening'===this['readyState']&&'open'===_0x42a568['type']&&this['onOpen'](),'close'===_0x42a568['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](_0x42a568);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x11919b=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x11919b():this['once']('open',_0x11919b);}['write'](_0x3d9a2f){this['writable']=!0x1,encodePayload(_0x3d9a2f,_0x1fcbc6=>{this['doWrite'](_0x1fcbc6,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){const _0x1dfaf7=this['opts']['secure']?'https':'http',_0x40d450=this['query']||{};return!0x1!==this['opts']['timestampRequests']&&(_0x40d450[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x40d450['sid']||(_0x40d450['b64']=0x1),this['createUri'](_0x1dfaf7,_0x40d450);}['request'](_0x391310={}){return Object['assign'](_0x391310,{'xd':this['xd'],'cookieJar':this['cookieJar']},this['opts']),new Request(this['uri'](),_0x391310);}['doWrite'](_0x2d6586,_0x2b0c04){const _0x3f4b70=this['request']({'method':'POST','data':_0x2d6586});_0x3f4b70['on']('success',_0x2b0c04),_0x3f4b70['on']('error',(_0x141b86,_0x446083)=>{this['onError']('xhr\x20post\x20error',_0x141b86,_0x446083);});}['doPoll'](){const _0x67a761=this['request']();_0x67a761['on']('data',this['onData']['bind'](this)),_0x67a761['on']('error',(_0x17ff8d,_0x348779)=>{this['onError']('xhr\x20poll\x20error',_0x17ff8d,_0x348779);}),this['pollXhr']=_0x67a761;}}class Request extends Emitter{constructor(_0x1523a9,_0x3f88fc){super(),installTimerFunctions(this,_0x3f88fc),this['opts']=_0x3f88fc,this['method']=_0x3f88fc['method']||'GET',this['uri']=_0x1523a9,this['data']=void 0x0!==_0x3f88fc['data']?_0x3f88fc['data']:null,this['create']();}['create'](){var _0x563a12;const _0x11cb88=pick$1(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');_0x11cb88['xdomain']=!!this['opts']['xd'];const _0x3a49ac=this['xhr']=new XHR(_0x11cb88);try{_0x3a49ac['open'](this['method'],this['uri'],!0x0);try{if(this['opts']['extraHeaders']){_0x3a49ac['setDisableHeaderCheck']&&_0x3a49ac['setDisableHeaderCheck'](!0x0);for(let _0x1d1552 in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x1d1552)&&_0x3a49ac['setRequestHeader'](_0x1d1552,this['opts']['extraHeaders'][_0x1d1552]);}}catch(_0x1bee14){}if('POST'===this['method'])try{_0x3a49ac['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x10eea9){}try{_0x3a49ac['setRequestHeader']('Accept','*/*');}catch(_0x1749b0){}null===(_0x563a12=this['opts']['cookieJar'])||void 0x0===_0x563a12||_0x563a12['addCookies'](_0x3a49ac),'withCredentials'in _0x3a49ac&&(_0x3a49ac['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x3a49ac['timeout']=this['opts']['requestTimeout']),_0x3a49ac['onreadystatechange']=()=>{var _0x459637;0x3===_0x3a49ac['readyState']&&(null===(_0x459637=this['opts']['cookieJar'])||void 0x0===_0x459637||_0x459637['parseCookies'](_0x3a49ac)),0x4===_0x3a49ac['readyState']&&(0xc8===_0x3a49ac['status']||0x4c7===_0x3a49ac['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x3a49ac['status']?_0x3a49ac['status']:0x0);},0x0));},_0x3a49ac['send'](this['data']);}catch(_0x2c93df){return void this['setTimeoutFn'](()=>{this['onError'](_0x2c93df);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0xa6aa78){this['emitReserved']('error',_0xa6aa78,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x265774){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x265774)try{this['xhr']['abort']();}catch(_0x1ba4f7){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const _0x5c55d5=this['xhr']['responseText'];null!==_0x5c55d5&&(this['emitReserved']('data',_0x5c55d5),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}}if(Request['requestsCount']=0x0,Request['requests']={},'undefined'!=typeof document){if('function'==typeof attachEvent)attachEvent('onunload',unloadHandler);else{if('function'==typeof addEventListener){const e='onpagehide'in globalThisShim?'pagehide':'unload';addEventListener(e,unloadHandler,!0x1);}}}function unloadHandler(){for(let _0x39fe04 in Request['requests'])Request['requests']['hasOwnProperty'](_0x39fe04)&&Request['requests'][_0x39fe04]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x24d959=>Promise['resolve']()['then'](_0x24d959):(_0x24263c,_0x340bb5)=>_0x340bb5(_0x24263c,0x0),WebSocket$2=globalThisShim['WebSocket']||globalThisShim['MozWebSocket'],usingBrowserWebSocket=!0x0,defaultBinaryType='arraybuffer',isReactNative='undefined'!=typeof navigator&&'string'==typeof navigator['product']&&'reactnative'===navigator['product']['toLowerCase']();class WS extends Transport{constructor(_0x35f255){super(_0x35f255),this['supportsBinary']=!_0x35f255['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x232c91=this['uri'](),_0x3f265f=this['opts']['protocols'],_0x3b2ba1=isReactNative?{}:pick$1(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(_0x3b2ba1['headers']=this['opts']['extraHeaders']);try{this['ws']=usingBrowserWebSocket&&!isReactNative?_0x3f265f?new WebSocket$2(_0x232c91,_0x3f265f):new WebSocket$2(_0x232c91):new WebSocket$2(_0x232c91,_0x3f265f,_0x3b2ba1);}catch(_0x298aff){return this['emitReserved']('error',_0x298aff);}this['ws']['binaryType']=this['socket']['binaryType'],this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=_0x493b8e=>this['onClose']({'description':'websocket\x20connection\x20closed','context':_0x493b8e}),this['ws']['onmessage']=_0x2504b0=>this['onData'](_0x2504b0['data']),this['ws']['onerror']=_0x273e10=>this['onError']('websocket\x20error',_0x273e10);}['write'](_0x194808){this['writable']=!0x1;for(let _0x13366e=0x0;_0x13366e<_0x194808['length'];_0x13366e++){const _0xbe522f=_0x194808[_0x13366e],_0x369e6d=_0x13366e===_0x194808['length']-0x1;encodePacket(_0xbe522f,this['supportsBinary'],_0x34d901=>{try{usingBrowserWebSocket&&this['ws']['send'](_0x34d901);}catch(_0x165147){}_0x369e6d&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){const _0x4b843a=this['opts']['secure']?'wss':'ws',_0x14c01d=this['query']||{};return this['opts']['timestampRequests']&&(_0x14c01d[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x14c01d['b64']=0x1),this['createUri'](_0x4b843a,_0x14c01d);}['check'](){return!!WebSocket$2;}}class WT extends Transport{get['name'](){return'webtransport';}['doOpen'](){'function'==typeof WebTransport&&(this['transport']=new WebTransport(this['createUri']('https'),this['opts']['transportOptions'][this['name']]),this['transport']['closed']['then'](()=>{this['onClose']();})['catch'](_0x3a54b0=>{this['onError']('webtransport\x20error',_0x3a54b0);}),this['transport']['ready']['then'](()=>{this['transport']['createBidirectionalStream']()['then'](_0x5afb69=>{const _0x46ba35=createPacketDecoderStream(Number['MAX_SAFE_INTEGER'],this['socket']['binaryType']),_0x3120a6=_0x5afb69['readable']['pipeThrough'](_0x46ba35)['getReader'](),_0x5b28c6=createPacketEncoderStream();_0x5b28c6['readable']['pipeTo'](_0x5afb69['writable']),this['writer']=_0x5b28c6['writable']['getWriter']();const _0x4475fc=()=>{_0x3120a6['read']()['then'](({done:_0xc72b88,value:_0x18b54a})=>{_0xc72b88||(this['onPacket'](_0x18b54a),_0x4475fc());})['catch'](_0x15a4e6=>{});};_0x4475fc();const _0x12368e={'type':'open'};this['query']['sid']&&(_0x12368e['data']='{\x22sid\x22:\x22'+this['query']['sid']+'\x22}'),this['writer']['write'](_0x12368e)['then'](()=>this['onOpen']());});}));}['write'](_0x55253){this['writable']=!0x1;for(let _0x47c002=0x0;_0x47c002<_0x55253['length'];_0x47c002++){const _0x3c30ec=_0x55253[_0x47c002],_0x428d63=_0x47c002===_0x55253['length']-0x1;this['writer']['write'](_0x3c30ec)['then'](()=>{_0x428d63&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){var _0x521dad;null===(_0x521dad=this['transport'])||void 0x0===_0x521dad||_0x521dad['close']();}}const transports={'websocket':WS,'webtransport':WT,'polling':Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];function parse(_0x297618){if(_0x297618['length']>0x7d0)throw'URI\x20too\x20long';const _0x2f5c92=_0x297618,_0x50795e=_0x297618['indexOf']('['),_0x5aaee8=_0x297618['indexOf'](']');-0x1!=_0x50795e&&-0x1!=_0x5aaee8&&(_0x297618=_0x297618['substring'](0x0,_0x50795e)+_0x297618['substring'](_0x50795e,_0x5aaee8)['replace'](/:/g,';')+_0x297618['substring'](_0x5aaee8,_0x297618['length']));let _0x27a1fd=re['exec'](_0x297618||''),_0x5a7490={},_0x232c78=0xe;for(;_0x232c78--;)_0x5a7490[parts[_0x232c78]]=_0x27a1fd[_0x232c78]||'';return-0x1!=_0x50795e&&-0x1!=_0x5aaee8&&(_0x5a7490['source']=_0x2f5c92,_0x5a7490['host']=_0x5a7490['host']['substring'](0x1,_0x5a7490['host']['length']-0x1)['replace'](/;/g,':'),_0x5a7490['authority']=_0x5a7490['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x5a7490['ipv6uri']=!0x0),_0x5a7490['pathNames']=pathNames(_0x5a7490,_0x5a7490['path']),_0x5a7490['queryKey']=queryKey(_0x5a7490,_0x5a7490['query']),_0x5a7490;}function pathNames(_0x4708e6,_0x570e59){const _0x2b70ec=_0x570e59['replace'](/\/{2,9}/g,'/')['split']('/');return'/'!=_0x570e59['slice'](0x0,0x1)&&0x0!==_0x570e59['length']||_0x2b70ec['splice'](0x0,0x1),'/'==_0x570e59['slice'](-0x1)&&_0x2b70ec['splice'](_0x2b70ec['length']-0x1,0x1),_0x2b70ec;}function queryKey(_0x8c45b4,_0x5426b8){const _0x1918ce={};return _0x5426b8['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x3b4842,_0x23bd1e,_0x37c78f){_0x23bd1e&&(_0x1918ce[_0x23bd1e]=_0x37c78f);}),_0x1918ce;}let Socket$1=class e extends Emitter{constructor(_0x4a926d,_0x5d2f69={}){super(),this['binaryType']=defaultBinaryType,this['writeBuffer']=[],_0x4a926d&&'object'==typeof _0x4a926d&&(_0x5d2f69=_0x4a926d,_0x4a926d=null),_0x4a926d?(_0x4a926d=parse(_0x4a926d),_0x5d2f69['hostname']=_0x4a926d['host'],_0x5d2f69['secure']='https'===_0x4a926d['protocol']||'wss'===_0x4a926d['protocol'],_0x5d2f69['port']=_0x4a926d['port'],_0x4a926d['query']&&(_0x5d2f69['query']=_0x4a926d['query'])):_0x5d2f69['host']&&(_0x5d2f69['hostname']=parse(_0x5d2f69['host'])['host']),installTimerFunctions(this,_0x5d2f69),this['secure']=null!=_0x5d2f69['secure']?_0x5d2f69['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],_0x5d2f69['hostname']&&!_0x5d2f69['port']&&(_0x5d2f69['port']=this['secure']?'443':'80'),this['hostname']=_0x5d2f69['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=_0x5d2f69['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=_0x5d2f69['transports']||['polling','websocket','webtransport'],this['writeBuffer']=[],this['prevBufferLen']=0x0,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},_0x5d2f69),this['opts']['path']=this['opts']['path']['replace'](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),'string'==typeof this['opts']['query']&&(this['opts']['query']=decode(this['opts']['query'])),this['id']=null,this['upgrades']=null,this['pingInterval']=null,this['pingTimeout']=null,this['pingTimeoutTimer']=null,'function'==typeof addEventListener&&(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'});},addEventListener('offline',this['offlineEventListener'],!0x1))),this['open']();}['createTransport'](_0x5cdc1e){const _0x11a837=Object['assign']({},this['opts']['query']);_0x11a837['EIO']=protocol,_0x11a837['transport']=_0x5cdc1e,this['id']&&(_0x11a837['sid']=this['id']);const _0x156eb1=Object['assign']({},this['opts'],{'query':_0x11a837,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']},this['opts']['transportOptions'][_0x5cdc1e]);return new transports[_0x5cdc1e](_0x156eb1);}['open'](){let _0x5d1b67;if(this['opts']['rememberUpgrade']&&e['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))_0x5d1b67='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);_0x5d1b67=this['transports'][0x0];}this['readyState']='opening';try{_0x5d1b67=this['createTransport'](_0x5d1b67);}catch(_0x46a3cc){return this['transports']['shift'](),void this['open']();}_0x5d1b67['open'](),this['setTransport'](_0x5d1b67);}['setTransport'](_0x3660e0){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=_0x3660e0,_0x3660e0['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x3f88cc=>this['onClose']('transport\x20close',_0x3f88cc));}['probe'](_0x55e90c){let _0x1d85c0=this['createTransport'](_0x55e90c),_0x83b4ae=!0x1;e['priorWebsocketSuccess']=!0x1;const _0x580bc3=()=>{_0x83b4ae||(_0x1d85c0['send']([{'type':'ping','data':'probe'}]),_0x1d85c0['once']('packet',_0x5899dd=>{if(!_0x83b4ae){if('pong'===_0x5899dd['type']&&'probe'===_0x5899dd['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',_0x1d85c0),!_0x1d85c0)return;e['priorWebsocketSuccess']='websocket'===_0x1d85c0['name'],this['transport']['pause'](()=>{_0x83b4ae||'closed'!==this['readyState']&&(_0x4f4740(),this['setTransport'](_0x1d85c0),_0x1d85c0['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',_0x1d85c0),_0x1d85c0=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x14234e=new Error('probe\x20error');_0x14234e['transport']=_0x1d85c0['name'],this['emitReserved']('upgradeError',_0x14234e);}}}));};function _0x2f3d95(){_0x83b4ae||(_0x83b4ae=!0x0,_0x4f4740(),_0x1d85c0['close'](),_0x1d85c0=null);}const _0x4bfdd3=_0xe968c4=>{const _0x19dbad=new Error('probe\x20error:\x20'+_0xe968c4);_0x19dbad['transport']=_0x1d85c0['name'],_0x2f3d95(),this['emitReserved']('upgradeError',_0x19dbad);};function _0x5be4f7(){_0x4bfdd3('transport\x20closed');}function _0x168675(){_0x4bfdd3('socket\x20closed');}function _0x3526bf(_0x31c2b8){_0x1d85c0&&_0x31c2b8['name']!==_0x1d85c0['name']&&_0x2f3d95();}const _0x4f4740=()=>{_0x1d85c0['removeListener']('open',_0x580bc3),_0x1d85c0['removeListener']('error',_0x4bfdd3),_0x1d85c0['removeListener']('close',_0x5be4f7),this['off']('close',_0x168675),this['off']('upgrading',_0x3526bf);};_0x1d85c0['once']('open',_0x580bc3),_0x1d85c0['once']('error',_0x4bfdd3),_0x1d85c0['once']('close',_0x5be4f7),this['once']('close',_0x168675),this['once']('upgrading',_0x3526bf),-0x1!==this['upgrades']['indexOf']('webtransport')&&'webtransport'!==_0x55e90c?this['setTimeoutFn'](()=>{_0x83b4ae||_0x1d85c0['open']();},0xc8):_0x1d85c0['open']();}['onOpen'](){if(this['readyState']='open',e['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x172158=0x0;const _0x23162e=this['upgrades']['length'];for(;_0x172158<_0x23162e;_0x172158++)this['probe'](this['upgrades'][_0x172158]);}}['onPacket'](_0x564230){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',_0x564230),this['emitReserved']('heartbeat'),this['resetPingTimeout'](),_0x564230['type']){case'open':this['onHandshake'](JSON['parse'](_0x564230['data']));break;case'ping':this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x1254d8=new Error('server\x20error');_0x1254d8['code']=_0x564230['data'],this['onError'](_0x1254d8);break;case'message':this['emitReserved']('data',_0x564230['data']),this['emitReserved']('message',_0x564230['data']);}}['onHandshake'](_0x393283){this['emitReserved']('handshake',_0x393283),this['id']=_0x393283['sid'],this['transport']['query']['sid']=_0x393283['sid'],this['upgrades']=this['filterUpgrades'](_0x393283['upgrades']),this['pingInterval']=_0x393283['pingInterval'],this['pingTimeout']=_0x393283['pingTimeout'],this['maxPayload']=_0x393283['maxPayload'],this['onOpen'](),'closed'!==this['readyState']&&this['resetPingTimeout']();}['resetPingTimeout'](){this['clearTimeoutFn'](this['pingTimeoutTimer']),this['pingTimeoutTimer']=this['setTimeoutFn'](()=>{this['onClose']('ping\x20timeout');},this['pingInterval']+this['pingTimeout']),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 _0xef0219=this['getWritablePackets']();this['transport']['send'](_0xef0219),this['prevBufferLen']=_0xef0219['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x440835=0x1;for(let _0x58d1dc=0x0;_0x58d1dc<this['writeBuffer']['length'];_0x58d1dc++){const _0x3aa4f6=this['writeBuffer'][_0x58d1dc]['data'];if(_0x3aa4f6&&(_0x440835+=byteLength(_0x3aa4f6)),_0x58d1dc>0x0&&_0x440835>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x58d1dc);_0x440835+=0x2;}return this['writeBuffer'];}['write'](_0x1a03ca,_0x154570,_0x56817c){return this['sendPacket']('message',_0x1a03ca,_0x154570,_0x56817c),this;}['send'](_0x5eee0b,_0x5c8f82,_0x468ed5){return this['sendPacket']('message',_0x5eee0b,_0x5c8f82,_0x468ed5),this;}['sendPacket'](_0x24aaec,_0x1b990b,_0x18c4b0,_0x3e2d35){if('function'==typeof _0x1b990b&&(_0x3e2d35=_0x1b990b,_0x1b990b=void 0x0),'function'==typeof _0x18c4b0&&(_0x3e2d35=_0x18c4b0,_0x18c4b0=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(_0x18c4b0=_0x18c4b0||{})['compress']=!0x1!==_0x18c4b0['compress'];const _0x9689a9={'type':_0x24aaec,'data':_0x1b990b,'options':_0x18c4b0};this['emitReserved']('packetCreate',_0x9689a9),this['writeBuffer']['push'](_0x9689a9),_0x3e2d35&&this['once']('flush',_0x3e2d35),this['flush']();}['close'](){const _0x321cad=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x29c381=()=>{this['off']('upgrade',_0x29c381),this['off']('upgradeError',_0x29c381),_0x321cad();},_0x5b8059=()=>{this['once']('upgrade',_0x29c381),this['once']('upgradeError',_0x29c381);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?_0x5b8059():_0x321cad();}):this['upgrading']?_0x5b8059():_0x321cad()),this;}['onError'](_0x4a8b57){e['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0x4a8b57),this['onClose']('transport\x20error',_0x4a8b57);}['onClose'](_0x2cc354,_0x55f345){'opening'!==this['readyState']&&'open'!==this['readyState']&&'closing'!==this['readyState']||(this['clearTimeoutFn'](this['pingTimeoutTimer']),this['transport']['removeAllListeners']('close'),this['transport']['close'](),this['transport']['removeAllListeners'](),'function'==typeof removeEventListener&&(removeEventListener('beforeunload',this['beforeunloadEventListener'],!0x1),removeEventListener('offline',this['offlineEventListener'],!0x1)),this['readyState']='closed',this['id']=null,this['emitReserved']('close',_0x2cc354,_0x55f345),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x453b29){const _0x16b4bb=[];let _0x40785d=0x0;const _0x5ac9c2=_0x453b29['length'];for(;_0x40785d<_0x5ac9c2;_0x40785d++)~this['transports']['indexOf'](_0x453b29[_0x40785d])&&_0x16b4bb['push'](_0x453b29[_0x40785d]);return _0x16b4bb;}};function url(_0x3ba04f,_0x207cfa='',_0x4fd4ad){let _0x1a90e7=_0x3ba04f;_0x4fd4ad=_0x4fd4ad||'undefined'!=typeof location&&location,null==_0x3ba04f&&(_0x3ba04f=_0x4fd4ad['protocol']+'//'+_0x4fd4ad['host']),'string'==typeof _0x3ba04f&&('/'===_0x3ba04f['charAt'](0x0)&&(_0x3ba04f='/'===_0x3ba04f['charAt'](0x1)?_0x4fd4ad['protocol']+_0x3ba04f:_0x4fd4ad['host']+_0x3ba04f),/^(https?|wss?):\/\//['test'](_0x3ba04f)||(_0x3ba04f=void 0x0!==_0x4fd4ad?_0x4fd4ad['protocol']+'//'+_0x3ba04f:'https://'+_0x3ba04f),_0x1a90e7=parse(_0x3ba04f)),_0x1a90e7['port']||(/^(http|ws)$/['test'](_0x1a90e7['protocol'])?_0x1a90e7['port']='80':/^(http|ws)s$/['test'](_0x1a90e7['protocol'])&&(_0x1a90e7['port']='443')),_0x1a90e7['path']=_0x1a90e7['path']||'/';const _0xc8a04e=-0x1!==_0x1a90e7['host']['indexOf'](':')?'['+_0x1a90e7['host']+']':_0x1a90e7['host'];return _0x1a90e7['id']=_0x1a90e7['protocol']+'://'+_0xc8a04e+':'+_0x1a90e7['port']+_0x207cfa,_0x1a90e7['href']=_0x1a90e7['protocol']+'://'+_0xc8a04e+(_0x4fd4ad&&_0x4fd4ad['port']===_0x1a90e7['port']?'':':'+_0x1a90e7['port']),_0x1a90e7;}Socket$1['protocol']=protocol;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x9b0f76=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x9b0f76):_0x9b0f76['buffer']instanceof ArrayBuffer,toString=Object['prototype']['toString'],withNativeBlob='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===toString['call'](Blob),withNativeFile='function'==typeof File||'undefined'!=typeof File&&'[object\x20FileConstructor]'===toString['call'](File);function isBinary(_0x3edce8){return withNativeArrayBuffer&&(_0x3edce8 instanceof ArrayBuffer||isView(_0x3edce8))||withNativeBlob&&_0x3edce8 instanceof Blob||withNativeFile&&_0x3edce8 instanceof File;}function hasBinary(_0x470e66,_0x54575a){if(!_0x470e66||'object'!=typeof _0x470e66)return!0x1;if(Array['isArray'](_0x470e66)){for(let _0x19bdc=0x0,_0x592dd6=_0x470e66['length'];_0x19bdc<_0x592dd6;_0x19bdc++)if(hasBinary(_0x470e66[_0x19bdc]))return!0x0;return!0x1;}if(isBinary(_0x470e66))return!0x0;if(_0x470e66['toJSON']&&'function'==typeof _0x470e66['toJSON']&&0x1===arguments['length'])return hasBinary(_0x470e66['toJSON'](),!0x0);for(const _0x3d1783 in _0x470e66)if(Object['prototype']['hasOwnProperty']['call'](_0x470e66,_0x3d1783)&&hasBinary(_0x470e66[_0x3d1783]))return!0x0;return!0x1;}function deconstructPacket(_0x1691fd){const _0x42069e=[],_0x52ebcc=_0x1691fd['data'],_0x1f3169=_0x1691fd;return _0x1f3169['data']=_deconstructPacket(_0x52ebcc,_0x42069e),_0x1f3169['attachments']=_0x42069e['length'],{'packet':_0x1f3169,'buffers':_0x42069e};}function _deconstructPacket(_0x50245d,_0x3b24bf){if(!_0x50245d)return _0x50245d;if(isBinary(_0x50245d)){const _0xd06e3a={'_placeholder':!0x0,'num':_0x3b24bf['length']};return _0x3b24bf['push'](_0x50245d),_0xd06e3a;}if(Array['isArray'](_0x50245d)){const _0x4fb014=new Array(_0x50245d['length']);for(let _0x536c71=0x0;_0x536c71<_0x50245d['length'];_0x536c71++)_0x4fb014[_0x536c71]=_deconstructPacket(_0x50245d[_0x536c71],_0x3b24bf);return _0x4fb014;}if('object'==typeof _0x50245d&&!(_0x50245d instanceof Date)){const _0x210e5a={};for(const _0x28e266 in _0x50245d)Object['prototype']['hasOwnProperty']['call'](_0x50245d,_0x28e266)&&(_0x210e5a[_0x28e266]=_deconstructPacket(_0x50245d[_0x28e266],_0x3b24bf));return _0x210e5a;}return _0x50245d;}function reconstructPacket(_0x543118,_0x3a452a){return _0x543118['data']=_reconstructPacket(_0x543118['data'],_0x3a452a),delete _0x543118['attachments'],_0x543118;}function _reconstructPacket(_0x2bd4f7,_0x1b32af){if(!_0x2bd4f7)return _0x2bd4f7;if(_0x2bd4f7&&!0x0===_0x2bd4f7['_placeholder']){if('number'==typeof _0x2bd4f7['num']&&_0x2bd4f7['num']>=0x0&&_0x2bd4f7['num']<_0x1b32af['length'])return _0x1b32af[_0x2bd4f7['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](_0x2bd4f7)){for(let _0x4e91ee=0x0;_0x4e91ee<_0x2bd4f7['length'];_0x4e91ee++)_0x2bd4f7[_0x4e91ee]=_reconstructPacket(_0x2bd4f7[_0x4e91ee],_0x1b32af);}else{if('object'==typeof _0x2bd4f7){for(const _0x21621a in _0x2bd4f7)Object['prototype']['hasOwnProperty']['call'](_0x2bd4f7,_0x21621a)&&(_0x2bd4f7[_0x21621a]=_reconstructPacket(_0x2bd4f7[_0x21621a],_0x1b32af));}}return _0x2bd4f7;}const RESERVED_EVENTS$1=['connect','connect_error','disconnect','disconnecting','newListener','removeListener'];var PacketType;!function(_0x42ad87){_0x42ad87[_0x42ad87['CONNECT']=0x0]='CONNECT',_0x42ad87[_0x42ad87['DISCONNECT']=0x1]='DISCONNECT',_0x42ad87[_0x42ad87['EVENT']=0x2]='EVENT',_0x42ad87[_0x42ad87['ACK']=0x3]='ACK',_0x42ad87[_0x42ad87['CONNECT_ERROR']=0x4]='CONNECT_ERROR',_0x42ad87[_0x42ad87['BINARY_EVENT']=0x5]='BINARY_EVENT',_0x42ad87[_0x42ad87['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x36a546){this['replacer']=_0x36a546;}['encode'](_0x14cbc2){return _0x14cbc2['type']!==PacketType['EVENT']&&_0x14cbc2['type']!==PacketType['ACK']||!hasBinary(_0x14cbc2)?[this['encodeAsString'](_0x14cbc2)]:this['encodeAsBinary']({'type':_0x14cbc2['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x14cbc2['nsp'],'data':_0x14cbc2['data'],'id':_0x14cbc2['id']});}['encodeAsString'](_0x32a82a){let _0x1aa6dd=''+_0x32a82a['type'];return _0x32a82a['type']!==PacketType['BINARY_EVENT']&&_0x32a82a['type']!==PacketType['BINARY_ACK']||(_0x1aa6dd+=_0x32a82a['attachments']+'-'),_0x32a82a['nsp']&&'/'!==_0x32a82a['nsp']&&(_0x1aa6dd+=_0x32a82a['nsp']+','),null!=_0x32a82a['id']&&(_0x1aa6dd+=_0x32a82a['id']),null!=_0x32a82a['data']&&(_0x1aa6dd+=JSON['stringify'](_0x32a82a['data'],this['replacer'])),_0x1aa6dd;}['encodeAsBinary'](_0x38af0a){const _0x1e7d70=deconstructPacket(_0x38af0a),_0xba23d7=this['encodeAsString'](_0x1e7d70['packet']),_0x4b895e=_0x1e7d70['buffers'];return _0x4b895e['unshift'](_0xba23d7),_0x4b895e;}},Decoder$1=class e extends Emitter{constructor(_0x79dfc4){super(),this['opts']=Object['assign']({'reviver':void 0x0,'maxAttachments':0xa},'function'==typeof _0x79dfc4?{'reviver':_0x79dfc4}:_0x79dfc4);}['add'](_0x499294){let _0x2d230b;if('string'==typeof _0x499294){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');_0x2d230b=this['decodeString'](_0x499294);const _0x29ae7e=_0x2d230b['type']===PacketType['BINARY_EVENT'];_0x29ae7e||_0x2d230b['type']===PacketType['BINARY_ACK']?(_0x2d230b['type']=_0x29ae7e?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(_0x2d230b),0x0===_0x2d230b['attachments']&&super['emitReserved']('decoded',_0x2d230b)):super['emitReserved']('decoded',_0x2d230b);}else{if(!isBinary(_0x499294)&&!_0x499294['base64'])throw new Error('Unknown\x20type:\x20'+_0x499294);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');_0x2d230b=this['reconstructor']['takeBinaryData'](_0x499294),_0x2d230b&&(this['reconstructor']=null,super['emitReserved']('decoded',_0x2d230b));}}['decodeString'](_0xb48726){let _0x5631b8=0x0;const _0x109570={'type':Number(_0xb48726['charAt'](0x0))};if(void 0x0===PacketType[_0x109570['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x109570['type']);if(_0x109570['type']===PacketType['BINARY_EVENT']||_0x109570['type']===PacketType['BINARY_ACK']){const _0x335562=_0x5631b8+0x1;for(;'-'!==_0xb48726['charAt'](++_0x5631b8)&&_0x5631b8!=_0xb48726['length'];);const _0x30d899=_0xb48726['substring'](_0x335562,_0x5631b8);if(_0x30d899!=Number(_0x30d899)||'-'!==_0xb48726['charAt'](_0x5631b8))throw new Error('Illegal\x20attachments');const _0x575a96=Number(_0x30d899);if(!isInteger(_0x575a96)||_0x575a96<0x0)throw new Error('Illegal\x20attachments');if(_0x575a96>this['opts']['maxAttachments'])throw new Error('too\x20many\x20attachments');_0x109570['attachments']=_0x575a96;}if('/'===_0xb48726['charAt'](_0x5631b8+0x1)){const _0x7171ee=_0x5631b8+0x1;for(;++_0x5631b8;){if(','===_0xb48726['charAt'](_0x5631b8))break;if(_0x5631b8===_0xb48726['length'])break;}_0x109570['nsp']=_0xb48726['substring'](_0x7171ee,_0x5631b8);}else _0x109570['nsp']='/';const _0x3b5b97=_0xb48726['charAt'](_0x5631b8+0x1);if(''!==_0x3b5b97&&Number(_0x3b5b97)==_0x3b5b97){const _0x206ba3=_0x5631b8+0x1;for(;++_0x5631b8;){const _0x5132f6=_0xb48726['charAt'](_0x5631b8);if(null==_0x5132f6||Number(_0x5132f6)!=_0x5132f6){--_0x5631b8;break;}if(_0x5631b8===_0xb48726['length'])break;}_0x109570['id']=Number(_0xb48726['substring'](_0x206ba3,_0x5631b8+0x1));}if(_0xb48726['charAt'](++_0x5631b8)){const _0x32b2ec=this['tryParse'](_0xb48726['substr'](_0x5631b8));if(!e['isPayloadValid'](_0x109570['type'],_0x32b2ec))throw new Error('invalid\x20payload');_0x109570['data']=_0x32b2ec;}return _0x109570;}['tryParse'](_0x455124){try{return JSON['parse'](_0x455124,this['opts']['reviver']);}catch(_0x57ec4e){return!0x1;}}static['isPayloadValid'](_0x2f2494,_0x19e554){switch(_0x2f2494){case PacketType['CONNECT']:return isObject$2(_0x19e554);case PacketType['DISCONNECT']:return void 0x0===_0x19e554;case PacketType['CONNECT_ERROR']:return'string'==typeof _0x19e554||isObject$2(_0x19e554);case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0x19e554)&&('number'==typeof _0x19e554[0x0]||'string'==typeof _0x19e554[0x0]&&-0x1===RESERVED_EVENTS$1['indexOf'](_0x19e554[0x0]));case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0x19e554);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(_0x20a74a){this['packet']=_0x20a74a,this['buffers']=[],this['reconPack']=_0x20a74a;}['takeBinaryData'](_0x1980ac){if(this['buffers']['push'](_0x1980ac),this['buffers']['length']===this['reconPack']['attachments']){const _0x300db0=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),_0x300db0;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}const isInteger=Number['isInteger']||function(_0x370782){return'number'==typeof _0x370782&&isFinite(_0x370782)&&Math['floor'](_0x370782)===_0x370782;};function isObject$2(_0x5b57c5){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5b57c5);}var parser$4=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;}});function on(_0x22ed10,_0x2b99de,_0xc00893){return _0x22ed10['on'](_0x2b99de,_0xc00893),function(){_0x22ed10['off'](_0x2b99de,_0xc00893);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x412b24,_0x4ef0f6,_0x3172e6){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']=_0x412b24,this['nsp']=_0x4ef0f6,_0x3172e6&&_0x3172e6['auth']&&(this['auth']=_0x3172e6['auth']),this['_opts']=Object['assign']({},_0x3172e6),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0xfb9026=this['io'];this['subs']=[on(_0xfb9026,'open',this['onopen']['bind'](this)),on(_0xfb9026,'packet',this['onpacket']['bind'](this)),on(_0xfb9026,'error',this['onerror']['bind'](this)),on(_0xfb9026,'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'](..._0x2b893e){return _0x2b893e['unshift']('message'),this['emit']['apply'](this,_0x2b893e),this;}['emit'](_0x40efd9,..._0x1bf7a7){if(RESERVED_EVENTS['hasOwnProperty'](_0x40efd9))throw new Error('\x22'+_0x40efd9['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x1bf7a7['unshift'](_0x40efd9),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x1bf7a7),this;const _0x37682c={'type':PacketType['EVENT'],'data':_0x1bf7a7,'options':{}};if(_0x37682c['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x1bf7a7[_0x1bf7a7['length']-0x1]){const _0x32e8af=this['ids']++,_0xd92b6=_0x1bf7a7['pop']();this['_registerAckCallback'](_0x32e8af,_0xd92b6),_0x37682c['id']=_0x32e8af;}const _0x53ad20=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!_0x53ad20||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](_0x37682c),this['packet'](_0x37682c)):this['sendBuffer']['push'](_0x37682c)),this['flags']={},this;}['_registerAckCallback'](_0x4cc4c7,_0x330cdd){var _0x195b99;const _0x17924e=null!==(_0x195b99=this['flags']['timeout'])&&void 0x0!==_0x195b99?_0x195b99:this['_opts']['ackTimeout'];if(void 0x0===_0x17924e)return void(this['acks'][_0x4cc4c7]=_0x330cdd);const _0x45519d=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x4cc4c7];for(let _0x4fb21a=0x0;_0x4fb21a<this['sendBuffer']['length'];_0x4fb21a++)this['sendBuffer'][_0x4fb21a]['id']===_0x4cc4c7&&this['sendBuffer']['splice'](_0x4fb21a,0x1);_0x330cdd['call'](this,new Error('operation\x20has\x20timed\x20out'));},_0x17924e);this['acks'][_0x4cc4c7]=(..._0x5022c3)=>{this['io']['clearTimeoutFn'](_0x45519d),_0x330cdd['apply'](this,[null,..._0x5022c3]);};}['emitWithAck'](_0x26b801,..._0x190a97){const _0x7c40e0=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x3fb57f,_0x15108d)=>{_0x190a97['push']((_0x31a22e,_0x719e4f)=>_0x7c40e0?_0x31a22e?_0x15108d(_0x31a22e):_0x3fb57f(_0x719e4f):_0x3fb57f(_0x31a22e)),this['emit'](_0x26b801,..._0x190a97);});}['_addToQueue'](_0x41640c){let _0x198c4d;'function'==typeof _0x41640c[_0x41640c['length']-0x1]&&(_0x198c4d=_0x41640c['pop']());const _0x583bb4={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x41640c,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x41640c['push']((_0x238b36,..._0x49f82d)=>{if(_0x583bb4!==this['_queue'][0x0])return;return null!==_0x238b36?_0x583bb4['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x198c4d&&_0x198c4d(_0x238b36)):(this['_queue']['shift'](),_0x198c4d&&_0x198c4d(null,..._0x49f82d)),_0x583bb4['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](_0x583bb4),this['_drainQueue']();}['_drainQueue'](_0x3d62fc=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const _0x36ed3f=this['_queue'][0x0];_0x36ed3f['pending']&&!_0x3d62fc||(_0x36ed3f['pending']=!0x0,_0x36ed3f['tryCount']++,this['flags']=_0x36ed3f['flags'],this['emit']['apply'](this,_0x36ed3f['args']));}['packet'](_0x214812){_0x214812['nsp']=this['nsp'],this['io']['_packet'](_0x214812);}['onopen'](){'function'==typeof this['auth']?this['auth'](_0x249bff=>{this['_sendConnectPacket'](_0x249bff);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](_0x5cd65e){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},_0x5cd65e):_0x5cd65e});}['onerror'](_0x5cceaf){this['connected']||this['emitReserved']('connect_error',_0x5cceaf);}['onclose'](_0x49e338,_0x46a8a4){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x49e338,_0x46a8a4);}['onpacket'](_0x409c2f){if(_0x409c2f['nsp']===this['nsp'])switch(_0x409c2f['type']){case PacketType['CONNECT']:_0x409c2f['data']&&_0x409c2f['data']['sid']?this['onconnect'](_0x409c2f['data']['sid'],_0x409c2f['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 PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](_0x409c2f);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](_0x409c2f);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0xe4d6b2=new Error(_0x409c2f['data']['message']);_0xe4d6b2['data']=_0x409c2f['data']['data'],this['emitReserved']('connect_error',_0xe4d6b2);}}['onevent'](_0x5a292d){const _0x1d2bd5=_0x5a292d['data']||[];null!=_0x5a292d['id']&&_0x1d2bd5['push'](this['ack'](_0x5a292d['id'])),this['connected']?this['emitEvent'](_0x1d2bd5):this['receiveBuffer']['push'](Object['freeze'](_0x1d2bd5));}['emitEvent'](_0x3168d9){if(this['_anyListeners']&&this['_anyListeners']['length']){const _0x401046=this['_anyListeners']['slice']();for(const _0x253431 of _0x401046)_0x253431['apply'](this,_0x3168d9);}super['emit']['apply'](this,_0x3168d9),this['_pid']&&_0x3168d9['length']&&'string'==typeof _0x3168d9[_0x3168d9['length']-0x1]&&(this['_lastOffset']=_0x3168d9[_0x3168d9['length']-0x1]);}['ack'](_0x213de8){const _0x15f541=this;let _0x489180=!0x1;return function(..._0x4f35d0){_0x489180||(_0x489180=!0x0,_0x15f541['packet']({'type':PacketType['ACK'],'id':_0x213de8,'data':_0x4f35d0}));};}['onack'](_0x2fef37){const _0x2229a3=this['acks'][_0x2fef37['id']];'function'==typeof _0x2229a3&&(_0x2229a3['apply'](this,_0x2fef37['data']),delete this['acks'][_0x2fef37['id']]);}['onconnect'](_0x12cbc7,_0xc62fba){this['id']=_0x12cbc7,this['recovered']=_0xc62fba&&this['_pid']===_0xc62fba,this['_pid']=_0xc62fba,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x45d6c7=>this['emitEvent'](_0x45d6c7)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](_0x432f62=>{this['notifyOutgoingListeners'](_0x432f62),this['packet'](_0x432f62);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](_0x45aff4=>_0x45aff4()),this['subs']=void 0x0),this['io']['_destroy'](this);}['disconnect'](){return this['connected']&&this['packet']({'type':PacketType['DISCONNECT']}),this['destroy'](),this['connected']&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){return this['disconnect']();}['compress'](_0x406f19){return this['flags']['compress']=_0x406f19,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](_0x304a98){return this['flags']['timeout']=_0x304a98,this;}['onAny'](_0x15e721){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](_0x15e721),this;}['prependAny'](_0x568228){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](_0x568228),this;}['offAny'](_0x1b15ca){if(!this['_anyListeners'])return this;if(_0x1b15ca){const _0x39c74e=this['_anyListeners'];for(let _0xed52d9=0x0;_0xed52d9<_0x39c74e['length'];_0xed52d9++)if(_0x1b15ca===_0x39c74e[_0xed52d9])return _0x39c74e['splice'](_0xed52d9,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](_0x20c543){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](_0x20c543),this;}['prependAnyOutgoing'](_0x51f5df){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](_0x51f5df),this;}['offAnyOutgoing'](_0x22f16f){if(!this['_anyOutgoingListeners'])return this;if(_0x22f16f){const _0x1d21f5=this['_anyOutgoingListeners'];for(let _0x1e0679=0x0;_0x1e0679<_0x1d21f5['length'];_0x1e0679++)if(_0x22f16f===_0x1d21f5[_0x1e0679])return _0x1d21f5['splice'](_0x1e0679,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](_0x2f5cd2){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const _0x3482c8=this['_anyOutgoingListeners']['slice']();for(const _0x984b89 of _0x3482c8)_0x984b89['apply'](this,_0x2f5cd2['data']);}}}function Backoff(_0x2a8331){_0x2a8331=_0x2a8331||{},this['ms']=_0x2a8331['min']||0x64,this['max']=_0x2a8331['max']||0x2710,this['factor']=_0x2a8331['factor']||0x2,this['jitter']=_0x2a8331['jitter']>0x0&&_0x2a8331['jitter']<=0x1?_0x2a8331['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0xf5b79d=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x14bfaf=Math['random'](),_0x5ab75c=Math['floor'](_0x14bfaf*this['jitter']*_0xf5b79d);_0xf5b79d=0x1&Math['floor'](0xa*_0x14bfaf)?_0xf5b79d+_0x5ab75c:_0xf5b79d-_0x5ab75c;}return 0x0|Math['min'](_0xf5b79d,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0xeb8db1){this['ms']=_0xeb8db1;},Backoff['prototype']['setMax']=function(_0x3afb7a){this['max']=_0x3afb7a;},Backoff['prototype']['setJitter']=function(_0x2de5d0){this['jitter']=_0x2de5d0;};class Manager extends Emitter{constructor(_0x432b4c,_0x5974ab){var _0x37fdf1;super(),this['nsps']={},this['subs']=[],_0x432b4c&&'object'==typeof _0x432b4c&&(_0x5974ab=_0x432b4c,_0x432b4c=void 0x0),(_0x5974ab=_0x5974ab||{})['path']=_0x5974ab['path']||'/socket.io',this['opts']=_0x5974ab,installTimerFunctions(this,_0x5974ab),this['reconnection'](!0x1!==_0x5974ab['reconnection']),this['reconnectionAttempts'](_0x5974ab['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](_0x5974ab['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](_0x5974ab['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x37fdf1=_0x5974ab['randomizationFactor'])&&void 0x0!==_0x37fdf1?_0x37fdf1:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==_0x5974ab['timeout']?0x4e20:_0x5974ab['timeout']),this['_readyState']='closed',this['uri']=_0x432b4c;const _0x1a5de1=_0x5974ab['parser']||parser$4;this['encoder']=new _0x1a5de1['Encoder'](),this['decoder']=new _0x1a5de1['Decoder'](),this['_autoConnect']=!0x1!==_0x5974ab['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x41feeb){return arguments['length']?(this['_reconnection']=!!_0x41feeb,this):this['_reconnection'];}['reconnectionAttempts'](_0x23aa39){return void 0x0===_0x23aa39?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x23aa39,this);}['reconnectionDelay'](_0x3fd25e){var _0x44fede;return void 0x0===_0x3fd25e?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x3fd25e,null===(_0x44fede=this['backoff'])||void 0x0===_0x44fede||_0x44fede['setMin'](_0x3fd25e),this);}['randomizationFactor'](_0x4385c4){var _0x5cda68;return void 0x0===_0x4385c4?this['_randomizationFactor']:(this['_randomizationFactor']=_0x4385c4,null===(_0x5cda68=this['backoff'])||void 0x0===_0x5cda68||_0x5cda68['setJitter'](_0x4385c4),this);}['reconnectionDelayMax'](_0x1923c4){var _0x466fdb;return void 0x0===_0x1923c4?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x1923c4,null===(_0x466fdb=this['backoff'])||void 0x0===_0x466fdb||_0x466fdb['setMax'](_0x1923c4),this);}['timeout'](_0x3ace68){return arguments['length']?(this['_timeout']=_0x3ace68,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x38b153){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const _0x14e3a4=this['engine'],_0x162718=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const _0x417c74=on(_0x14e3a4,'open',function(){_0x162718['onopen'](),_0x38b153&&_0x38b153();}),_0x10423a=_0x1f3297=>{this['cleanup'](),this['_readyState']='closed',this['emitReserved']('error',_0x1f3297),_0x38b153?_0x38b153(_0x1f3297):this['maybeReconnectOnOpen']();},_0x1e1c02=on(_0x14e3a4,'error',_0x10423a);if(!0x1!==this['_timeout']){const _0x2b9e4d=this['_timeout'],_0x16c764=this['setTimeoutFn'](()=>{_0x417c74(),_0x10423a(new Error('timeout')),_0x14e3a4['close']();},_0x2b9e4d);this['opts']['autoUnref']&&_0x16c764['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x16c764);});}return this['subs']['push'](_0x417c74),this['subs']['push'](_0x1e1c02),this;}['connect'](_0x4bea31){return this['open'](_0x4bea31);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const _0x2a46cd=this['engine'];this['subs']['push'](on(_0x2a46cd,'ping',this['onping']['bind'](this)),on(_0x2a46cd,'data',this['ondata']['bind'](this)),on(_0x2a46cd,'error',this['onerror']['bind'](this)),on(_0x2a46cd,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](_0x12ee4f){try{this['decoder']['add'](_0x12ee4f);}catch(_0x51b9b1){this['onclose']('parse\x20error',_0x51b9b1);}}['ondecoded'](_0x3a20db){nextTick(()=>{this['emitReserved']('packet',_0x3a20db);},this['setTimeoutFn']);}['onerror'](_0x9d1e66){this['emitReserved']('error',_0x9d1e66);}['socket'](_0x4111f7,_0x6fb0fa){let _0x49eecd=this['nsps'][_0x4111f7];return _0x49eecd?this['_autoConnect']&&!_0x49eecd['active']&&_0x49eecd['connect']():(_0x49eecd=new Socket(this,_0x4111f7,_0x6fb0fa),this['nsps'][_0x4111f7]=_0x49eecd),_0x49eecd;}['_destroy'](_0x110d94){const _0x33a707=Object['keys'](this['nsps']);for(const _0x12ae9f of _0x33a707){if(this['nsps'][_0x12ae9f]['active'])return;}this['_close']();}['_packet'](_0x3e7537){const _0x4835ec=this['encoder']['encode'](_0x3e7537);for(let _0x34c8a0=0x0;_0x34c8a0<_0x4835ec['length'];_0x34c8a0++)this['engine']['write'](_0x4835ec[_0x34c8a0],_0x3e7537['options']);}['cleanup'](){this['subs']['forEach'](_0x219c80=>_0x219c80()),this['subs']['length']=0x0,this['decoder']['destroy']();}['_close'](){this['skipReconnect']=!0x0,this['_reconnecting']=!0x1,this['onclose']('forced\x20close'),this['engine']&&this['engine']['close']();}['disconnect'](){return this['_close']();}['onclose'](_0x8833d6,_0xd9682e){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x8833d6,_0xd9682e),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x2251f2=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x167e9b=this['backoff']['duration']();this['_reconnecting']=!0x0;const _0x420b6b=this['setTimeoutFn'](()=>{_0x2251f2['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x2251f2['backoff']['attempts']),_0x2251f2['skipReconnect']||_0x2251f2['open'](_0x54296d=>{_0x54296d?(_0x2251f2['_reconnecting']=!0x1,_0x2251f2['reconnect'](),this['emitReserved']('reconnect_error',_0x54296d)):_0x2251f2['onreconnect']();}));},_0x167e9b);this['opts']['autoUnref']&&_0x420b6b['unref'](),this['subs']['push'](()=>{this['clearTimeoutFn'](_0x420b6b);});}}['onreconnect'](){const _0x1889ef=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',_0x1889ef);}}const cache$1={};function lookup(_0x17f602,_0x30628e){'object'==typeof _0x17f602&&(_0x30628e=_0x17f602,_0x17f602=void 0x0);const _0x1c0ac0=url(_0x17f602,(_0x30628e=_0x30628e||{})['path']||'/socket.io'),_0x549cd9=_0x1c0ac0['source'],_0x1f36f6=_0x1c0ac0['id'],_0x397c2b=_0x1c0ac0['path'],_0x59f2be=cache$1[_0x1f36f6]&&_0x397c2b in cache$1[_0x1f36f6]['nsps'];let _0x2f04b1;return _0x30628e['forceNew']||_0x30628e['force\x20new\x20connection']||!0x1===_0x30628e['multiplex']||_0x59f2be?_0x2f04b1=new Manager(_0x549cd9,_0x30628e):(cache$1[_0x1f36f6]||(cache$1[_0x1f36f6]=new Manager(_0x549cd9,_0x30628e)),_0x2f04b1=cache$1[_0x1f36f6]),_0x1c0ac0['query']&&!_0x30628e['query']&&(_0x30628e['query']=_0x1c0ac0['queryKey']),_0x2f04b1['socket'](_0x1c0ac0['path'],_0x30628e);}var requiresPort,hasRequiredRequiresPort;function requireRequiresPort(){return hasRequiredRequiresPort||(hasRequiredRequiresPort=0x1,requiresPort=function(_0x4148cb,_0x3ba0a4){if(_0x3ba0a4=_0x3ba0a4['split'](':')[0x0],!(_0x4148cb=+_0x4148cb))return!0x1;switch(_0x3ba0a4){case'http':case'ws':return 0x50!==_0x4148cb;case'https':case'wss':return 0x1bb!==_0x4148cb;case'ftp':return 0x15!==_0x4148cb;case'gopher':return 0x46!==_0x4148cb;case'file':return!0x1;}return 0x0!==_0x4148cb;}),requiresPort;}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});var querystringify={},hasRequiredQuerystringify,urlParse,hasRequiredUrlParse;function requireQuerystringify(){if(hasRequiredQuerystringify)return querystringify;hasRequiredQuerystringify=0x1;var _0x57b6c9=Object['prototype']['hasOwnProperty'];function _0x2e2779(_0x102dfa){try{return decodeURIComponent(_0x102dfa['replace'](/\+/g,'\x20'));}catch(_0x2cb6eb){return null;}}function _0x591184(_0x472cff){try{return encodeURIComponent(_0x472cff);}catch(_0x46df29){return null;}}return querystringify['stringify']=function(_0x58d45f,_0x12130c){_0x12130c=_0x12130c||'';var _0x1dcb78,_0x3ed5e7,_0xd7b44b=[];for(_0x3ed5e7 in('string'!=typeof _0x12130c&&(_0x12130c='?'),_0x58d45f))if(_0x57b6c9['call'](_0x58d45f,_0x3ed5e7)){if((_0x1dcb78=_0x58d45f[_0x3ed5e7])||null!=_0x1dcb78&&!isNaN(_0x1dcb78)||(_0x1dcb78=''),_0x3ed5e7=_0x591184(_0x3ed5e7),_0x1dcb78=_0x591184(_0x1dcb78),null===_0x3ed5e7||null===_0x1dcb78)continue;_0xd7b44b['push'](_0x3ed5e7+'='+_0x1dcb78);}return _0xd7b44b['length']?_0x12130c+_0xd7b44b['join']('&'):'';},querystringify['parse']=function(_0x3df15c){for(var _0x1e3178,_0x2b2ed3=/([^=?#&]+)=?([^&]*)/g,_0x124993={};_0x1e3178=_0x2b2ed3['exec'](_0x3df15c);){var _0x45017f=_0x2e2779(_0x1e3178[0x1]),_0x40874d=_0x2e2779(_0x1e3178[0x2]);null===_0x45017f||null===_0x40874d||_0x45017f in _0x124993||(_0x124993[_0x45017f]=_0x40874d);}return _0x124993;},querystringify;}function requireUrlParse(){if(hasRequiredUrlParse)return urlParse;hasRequiredUrlParse=0x1;var _0x4e73b5=requireRequiresPort(),_0x17f753=requireQuerystringify(),_0x1ff301=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,_0x4478be=/[\n\r\t]/g,_0x43aa41=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_0x120f7c=/:\d+$/,_0x1b1b23=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,_0x41e867=/^[a-zA-Z]:/;function _0x323c72(_0x3b4f89){return(_0x3b4f89||'')['toString']()['replace'](_0x1ff301,'');}var _0x20a847=[['#','hash'],['?','query'],function(_0x51477e,_0x3b436a){return _0x1dfdec(_0x3b436a['protocol'])?_0x51477e['replace'](/\\/g,'/'):_0x51477e;},['/','pathname'],['@','auth',0x1],[NaN,'host',void 0x0,0x1,0x1],[/:(\d*)$/,'port',void 0x0,0x1],[NaN,'hostname',void 0x0,0x1,0x1]],_0x47f50c={'hash':0x1,'query':0x1};function _0x5af56c(_0x525708){var _0x4cd4bd,_0x5e5c29=('undefined'!=typeof window?window:void 0x0!==commonjsGlobal?commonjsGlobal:'undefined'!=typeof self?self:{})['location']||{},_0xf5c7c7={},_0x594103=typeof(_0x525708=_0x525708||_0x5e5c29);if('blob:'===_0x525708['protocol'])_0xf5c7c7=new _0x7da85f(unescape(_0x525708['pathname']),{});else{if('string'===_0x594103){for(_0x4cd4bd in(_0xf5c7c7=new _0x7da85f(_0x525708,{}),_0x47f50c))delete _0xf5c7c7[_0x4cd4bd];}else{if('object'===_0x594103){for(_0x4cd4bd in _0x525708)_0x4cd4bd in _0x47f50c||(_0xf5c7c7[_0x4cd4bd]=_0x525708[_0x4cd4bd]);void 0x0===_0xf5c7c7['slashes']&&(_0xf5c7c7['slashes']=_0x43aa41['test'](_0x525708['href']));}}}return _0xf5c7c7;}function _0x1dfdec(_0x206154){return'file:'===_0x206154||'ftp:'===_0x206154||'http:'===_0x206154||'https:'===_0x206154||'ws:'===_0x206154||'wss:'===_0x206154;}function _0x1455fb(_0xde35db,_0x2c16fe){_0xde35db=(_0xde35db=_0x323c72(_0xde35db))['replace'](_0x4478be,''),_0x2c16fe=_0x2c16fe||{};var _0x4e2464,_0x4503e6=_0x1b1b23['exec'](_0xde35db),_0x1af706=_0x4503e6[0x1]?_0x4503e6[0x1]['toLowerCase']():'',_0x42e6c3=!!_0x4503e6[0x2],_0x5a8b92=!!_0x4503e6[0x3],_0x103f7b=0x0;return _0x42e6c3?_0x5a8b92?(_0x4e2464=_0x4503e6[0x2]+_0x4503e6[0x3]+_0x4503e6[0x4],_0x103f7b=_0x4503e6[0x2]['length']+_0x4503e6[0x3]['length']):(_0x4e2464=_0x4503e6[0x2]+_0x4503e6[0x4],_0x103f7b=_0x4503e6[0x2]['length']):_0x5a8b92?(_0x4e2464=_0x4503e6[0x3]+_0x4503e6[0x4],_0x103f7b=_0x4503e6[0x3]['length']):_0x4e2464=_0x4503e6[0x4],'file:'===_0x1af706?_0x103f7b>=0x2&&(_0x4e2464=_0x4e2464['slice'](0x2)):_0x1dfdec(_0x1af706)?_0x4e2464=_0x4503e6[0x4]:_0x1af706?_0x42e6c3&&(_0x4e2464=_0x4e2464['slice'](0x2)):_0x103f7b>=0x2&&_0x1dfdec(_0x2c16fe['protocol'])&&(_0x4e2464=_0x4503e6[0x4]),{'protocol':_0x1af706,'slashes':_0x42e6c3||_0x1dfdec(_0x1af706),'slashesCount':_0x103f7b,'rest':_0x4e2464};}function _0x7da85f(_0x5b5ee3,_0x1a6511,_0x39cb61){if(_0x5b5ee3=(_0x5b5ee3=_0x323c72(_0x5b5ee3))['replace'](_0x4478be,''),!(this instanceof _0x7da85f))return new _0x7da85f(_0x5b5ee3,_0x1a6511,_0x39cb61);var _0x3e66ce,_0x54b81b,_0x5e290a,_0x26c5b7,_0xbd516f,_0x5c6d60,_0x1b20cf=_0x20a847['slice'](),_0x28b6b6=typeof _0x1a6511,_0x240bdb=this,_0x30a986=0x0;for('object'!==_0x28b6b6&&'string'!==_0x28b6b6&&(_0x39cb61=_0x1a6511,_0x1a6511=null),_0x39cb61&&'function'!=typeof _0x39cb61&&(_0x39cb61=_0x17f753['parse']),_0x3e66ce=!(_0x54b81b=_0x1455fb(_0x5b5ee3||'',_0x1a6511=_0x5af56c(_0x1a6511)))['protocol']&&!_0x54b81b['slashes'],_0x240bdb['slashes']=_0x54b81b['slashes']||_0x3e66ce&&_0x1a6511['slashes'],_0x240bdb['protocol']=_0x54b81b['protocol']||_0x1a6511['protocol']||'',_0x5b5ee3=_0x54b81b['rest'],('file:'===_0x54b81b['protocol']&&(0x2!==_0x54b81b['slashesCount']||_0x41e867['test'](_0x5b5ee3))||!_0x54b81b['slashes']&&(_0x54b81b['protocol']||_0x54b81b['slashesCount']<0x2||!_0x1dfdec(_0x240bdb['protocol'])))&&(_0x1b20cf[0x3]=[/(.*)/,'pathname']);_0x30a986<_0x1b20cf['length'];_0x30a986++)'function'!=typeof(_0x26c5b7=_0x1b20cf[_0x30a986])?(_0x5e290a=_0x26c5b7[0x0],_0x5c6d60=_0x26c5b7[0x1],_0x5e290a!=_0x5e290a?_0x240bdb[_0x5c6d60]=_0x5b5ee3:'string'==typeof _0x5e290a?~(_0xbd516f='@'===_0x5e290a?_0x5b5ee3['lastIndexOf'](_0x5e290a):_0x5b5ee3['indexOf'](_0x5e290a))&&('number'==typeof _0x26c5b7[0x2]?(_0x240bdb[_0x5c6d60]=_0x5b5ee3['slice'](0x0,_0xbd516f),_0x5b5ee3=_0x5b5ee3['slice'](_0xbd516f+_0x26c5b7[0x2])):(_0x240bdb[_0x5c6d60]=_0x5b5ee3['slice'](_0xbd516f),_0x5b5ee3=_0x5b5ee3['slice'](0x0,_0xbd516f))):(_0xbd516f=_0x5e290a['exec'](_0x5b5ee3))&&(_0x240bdb[_0x5c6d60]=_0xbd516f[0x1],_0x5b5ee3=_0x5b5ee3['slice'](0x0,_0xbd516f['index'])),_0x240bdb[_0x5c6d60]=_0x240bdb[_0x5c6d60]||_0x3e66ce&&_0x26c5b7[0x3]&&_0x1a6511[_0x5c6d60]||'',_0x26c5b7[0x4]&&(_0x240bdb[_0x5c6d60]=_0x240bdb[_0x5c6d60]['toLowerCase']())):_0x5b5ee3=_0x26c5b7(_0x5b5ee3,_0x240bdb);_0x39cb61&&(_0x240bdb['query']=_0x39cb61(_0x240bdb['query'])),_0x3e66ce&&_0x1a6511['slashes']&&'/'!==_0x240bdb['pathname']['charAt'](0x0)&&(''!==_0x240bdb['pathname']||''!==_0x1a6511['pathname'])&&(_0x240bdb['pathname']=function(_0xe85980,_0x5a446f){if(''===_0xe85980)return _0x5a446f;for(var _0x3255e2=(_0x5a446f||'/')['split']('/')['slice'](0x0,-0x1)['concat'](_0xe85980['split']('/')),_0x28b874=_0x3255e2['length'],_0x62931d=_0x3255e2[_0x28b874-0x1],_0x381d6e=!0x1,_0x43985f=0x0;_0x28b874--;)'.'===_0x3255e2[_0x28b874]?_0x3255e2['splice'](_0x28b874,0x1):'..'===_0x3255e2[_0x28b874]?(_0x3255e2['splice'](_0x28b874,0x1),_0x43985f++):_0x43985f&&(0x0===_0x28b874&&(_0x381d6e=!0x0),_0x3255e2['splice'](_0x28b874,0x1),_0x43985f--);return _0x381d6e&&_0x3255e2['unshift'](''),'.'!==_0x62931d&&'..'!==_0x62931d||_0x3255e2['push'](''),_0x3255e2['join']('/');}(_0x240bdb['pathname'],_0x1a6511['pathname'])),'/'!==_0x240bdb['pathname']['charAt'](0x0)&&_0x1dfdec(_0x240bdb['protocol'])&&(_0x240bdb['pathname']='/'+_0x240bdb['pathname']),_0x4e73b5(_0x240bdb['port'],_0x240bdb['protocol'])||(_0x240bdb['host']=_0x240bdb['hostname'],_0x240bdb['port']=''),_0x240bdb['username']=_0x240bdb['password']='',_0x240bdb['auth']&&(~(_0xbd516f=_0x240bdb['auth']['indexOf'](':'))?(_0x240bdb['username']=_0x240bdb['auth']['slice'](0x0,_0xbd516f),_0x240bdb['username']=encodeURIComponent(decodeURIComponent(_0x240bdb['username'])),_0x240bdb['password']=_0x240bdb['auth']['slice'](_0xbd516f+0x1),_0x240bdb['password']=encodeURIComponent(decodeURIComponent(_0x240bdb['password']))):_0x240bdb['username']=encodeURIComponent(decodeURIComponent(_0x240bdb['auth'])),_0x240bdb['auth']=_0x240bdb['password']?_0x240bdb['username']+':'+_0x240bdb['password']:_0x240bdb['username']),_0x240bdb['origin']='file:'!==_0x240bdb['protocol']&&_0x1dfdec(_0x240bdb['protocol'])&&_0x240bdb['host']?_0x240bdb['protocol']+'//'+_0x240bdb['host']:'null',_0x240bdb['href']=_0x240bdb['toString']();}return _0x7da85f['prototype']={'set':function(_0x32e070,_0x5ad439,_0x44086c){var _0x2b7e1d=this;switch(_0x32e070){case'query':'string'==typeof _0x5ad439&&_0x5ad439['length']&&(_0x5ad439=(_0x44086c||_0x17f753['parse'])(_0x5ad439)),_0x2b7e1d[_0x32e070]=_0x5ad439;break;case'port':_0x2b7e1d[_0x32e070]=_0x5ad439,_0x4e73b5(_0x5ad439,_0x2b7e1d['protocol'])?_0x5ad439&&(_0x2b7e1d['host']=_0x2b7e1d['hostname']+':'+_0x5ad439):(_0x2b7e1d['host']=_0x2b7e1d['hostname'],_0x2b7e1d[_0x32e070]='');break;case'hostname':_0x2b7e1d[_0x32e070]=_0x5ad439,_0x2b7e1d['port']&&(_0x5ad439+=':'+_0x2b7e1d['port']),_0x2b7e1d['host']=_0x5ad439;break;case'host':_0x2b7e1d[_0x32e070]=_0x5ad439,_0x120f7c['test'](_0x5ad439)?(_0x5ad439=_0x5ad439['split'](':'),_0x2b7e1d['port']=_0x5ad439['pop'](),_0x2b7e1d['hostname']=_0x5ad439['join'](':')):(_0x2b7e1d['hostname']=_0x5ad439,_0x2b7e1d['port']='');break;case'protocol':_0x2b7e1d['protocol']=_0x5ad439['toLowerCase'](),_0x2b7e1d['slashes']=!_0x44086c;break;case'pathname':case'hash':if(_0x5ad439){var _0x46f3b1='pathname'===_0x32e070?'/':'#';_0x2b7e1d[_0x32e070]=_0x5ad439['charAt'](0x0)!==_0x46f3b1?_0x46f3b1+_0x5ad439:_0x5ad439;}else _0x2b7e1d[_0x32e070]=_0x5ad439;break;case'username':case'password':_0x2b7e1d[_0x32e070]=encodeURIComponent(_0x5ad439);break;case'auth':var _0x524b47=_0x5ad439['indexOf'](':');~_0x524b47?(_0x2b7e1d['username']=_0x5ad439['slice'](0x0,_0x524b47),_0x2b7e1d['username']=encodeURIComponent(decodeURIComponent(_0x2b7e1d['username'])),_0x2b7e1d['password']=_0x5ad439['slice'](_0x524b47+0x1),_0x2b7e1d['password']=encodeURIComponent(decodeURIComponent(_0x2b7e1d['password']))):_0x2b7e1d['username']=encodeURIComponent(decodeURIComponent(_0x5ad439));}for(var _0x4c0c07=0x0;_0x4c0c07<_0x20a847['length'];_0x4c0c07++){var _0x62d09=_0x20a847[_0x4c0c07];_0x62d09[0x4]&&(_0x2b7e1d[_0x62d09[0x1]]=_0x2b7e1d[_0x62d09[0x1]]['toLowerCase']());}return _0x2b7e1d['auth']=_0x2b7e1d['password']?_0x2b7e1d['username']+':'+_0x2b7e1d['password']:_0x2b7e1d['username'],_0x2b7e1d['origin']='file:'!==_0x2b7e1d['protocol']&&_0x1dfdec(_0x2b7e1d['protocol'])&&_0x2b7e1d['host']?_0x2b7e1d['protocol']+'//'+_0x2b7e1d['host']:'null',_0x2b7e1d['href']=_0x2b7e1d['toString'](),_0x2b7e1d;},'toString':function(_0x5b43cd){_0x5b43cd&&'function'==typeof _0x5b43cd||(_0x5b43cd=_0x17f753['stringify']);var _0x40b05d,_0x4ac834=this,_0x432008=_0x4ac834['host'],_0x158e99=_0x4ac834['protocol'];_0x158e99&&':'!==_0x158e99['charAt'](_0x158e99['length']-0x1)&&(_0x158e99+=':');var _0x50e865=_0x158e99+(_0x4ac834['protocol']&&_0x4ac834['slashes']||_0x1dfdec(_0x4ac834['protocol'])?'//':'');return _0x4ac834['username']?(_0x50e865+=_0x4ac834['username'],_0x4ac834['password']&&(_0x50e865+=':'+_0x4ac834['password']),_0x50e865+='@'):_0x4ac834['password']?(_0x50e865+=':'+_0x4ac834['password'],_0x50e865+='@'):'file:'!==_0x4ac834['protocol']&&_0x1dfdec(_0x4ac834['protocol'])&&!_0x432008&&'/'!==_0x4ac834['pathname']&&(_0x50e865+='@'),(':'===_0x432008[_0x432008['length']-0x1]||_0x120f7c['test'](_0x4ac834['hostname'])&&!_0x4ac834['port'])&&(_0x432008+=':'),_0x50e865+=_0x432008+_0x4ac834['pathname'],(_0x40b05d='object'==typeof _0x4ac834['query']?_0x5b43cd(_0x4ac834['query']):_0x4ac834['query'])&&(_0x50e865+='?'!==_0x40b05d['charAt'](0x0)?'?'+_0x40b05d:_0x40b05d),_0x4ac834['hash']&&(_0x50e865+=_0x4ac834['hash']),_0x50e865;}},_0x7da85f['extractProtocol']=_0x1455fb,_0x7da85f['location']=_0x5af56c,_0x7da85f['trimLeft']=_0x323c72,_0x7da85f['qs']=_0x17f753,urlParse=_0x7da85f;}var urlParseExports=requireUrlParse();let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){if(!getRandomValues&&(getRandomValues='undefined'!=typeof crypto&&crypto['getRandomValues']&&crypto['getRandomValues']['bind'](crypto),!getRandomValues))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return getRandomValues(rnds8);}const byteToHex=[];for(let e=0x0;e<0x100;++e)byteToHex['push']((e+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0x1047f0,_0x18e453=0x0){return byteToHex[_0x1047f0[_0x18e453+0x0]]+byteToHex[_0x1047f0[_0x18e453+0x1]]+byteToHex[_0x1047f0[_0x18e453+0x2]]+byteToHex[_0x1047f0[_0x18e453+0x3]]+'-'+byteToHex[_0x1047f0[_0x18e453+0x4]]+byteToHex[_0x1047f0[_0x18e453+0x5]]+'-'+byteToHex[_0x1047f0[_0x18e453+0x6]]+byteToHex[_0x1047f0[_0x18e453+0x7]]+'-'+byteToHex[_0x1047f0[_0x18e453+0x8]]+byteToHex[_0x1047f0[_0x18e453+0x9]]+'-'+byteToHex[_0x1047f0[_0x18e453+0xa]]+byteToHex[_0x1047f0[_0x18e453+0xb]]+byteToHex[_0x1047f0[_0x18e453+0xc]]+byteToHex[_0x1047f0[_0x18e453+0xd]]+byteToHex[_0x1047f0[_0x18e453+0xe]]+byteToHex[_0x1047f0[_0x18e453+0xf]];}const randomUUID='undefined'!=typeof crypto&&crypto['randomUUID']&&crypto['randomUUID']['bind'](crypto);var native$1={'randomUUID':randomUUID};function v4(_0x439ec6,_0x4e18dd,_0x554417){if(native$1['randomUUID']&&!_0x439ec6)return native$1['randomUUID']();const _0x417df7=(_0x439ec6=_0x439ec6||{})['random']||(_0x439ec6['rng']||rng)();return _0x417df7[0x6]=0xf&_0x417df7[0x6]|0x40,_0x417df7[0x8]=0x3f&_0x417df7[0x8]|0x80,unsafeStringify(_0x417df7);}class Descriptor{static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x4e6188){}}class Message extends Descriptor{static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x2a252b){super();}static['fromJSON'](_0x5e5842){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x3f34c4){super(),this['id']=_0x3f34c4;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x240fd9){return new GetUserMessage(_0x240fd9['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(_0x2fa265){super(),this['attributes']=_0x2fa265;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x10cb26=>({'key':_0x10cb26,'value':JSON['stringify'](this['attributes'][_0x10cb26])}))};}static['fromJSON'](_0x4800f5){const _0x25c29a=_0x4800f5['attributes']['reduce']((_0x3956a5,_0x25b4a9)=>(_0x3956a5[_0x25b4a9['key']]=_0x25b4a9['value']?JSON['parse'](_0x25b4a9['value']):null,_0x3956a5),{});return new GetUserResponse(_0x25c29a);}}const messages$1=/* #__PURE__ -- @preserve */
((()=>{var _0x546f05=minimalExports['Reader'],_0x5e31a7=minimalExports['Writer'],_0x1967e8=minimalExports['util'],_0x17fc8f=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x17fc8f['StringStringPacketDataMessage']=(function(){function _0x8b93dd(_0x36d590){if(_0x36d590){for(var _0x148bd9=Object['keys'](_0x36d590),_0x1a398d=0x0;_0x1a398d<_0x148bd9['length'];++_0x1a398d)null!=_0x36d590[_0x148bd9[_0x1a398d]]&&(this[_0x148bd9[_0x1a398d]]=_0x36d590[_0x148bd9[_0x1a398d]]);}}return _0x8b93dd['prototype']['data']='',_0x8b93dd['prototype']['data1']='',_0x8b93dd['create']=function(_0x46dc2a){return new _0x8b93dd(_0x46dc2a);},_0x8b93dd['encode']=function(_0x2ee1aa,_0x5c42b3){return _0x5c42b3||(_0x5c42b3=_0x5e31a7['create']()),null!=_0x2ee1aa['data']&&Object['hasOwnProperty']['call'](_0x2ee1aa,'data')&&_0x5c42b3['uint32'](0xa)['string'](_0x2ee1aa['data']),null!=_0x2ee1aa['data1']&&Object['hasOwnProperty']['call'](_0x2ee1aa,'data1')&&_0x5c42b3['uint32'](0x12)['string'](_0x2ee1aa['data1']),_0x5c42b3;},_0x8b93dd['encodeDelimited']=function(_0x8073a1,_0x18f3a3){return this['encode'](_0x8073a1,_0x18f3a3)['ldelim']();},_0x8b93dd['decode']=function(_0x5e80f7,_0xaf82da,_0x38f38e){_0x5e80f7 instanceof _0x546f05||(_0x5e80f7=_0x546f05['create'](_0x5e80f7));for(var _0x5cbe02=void 0x0===_0xaf82da?_0x5e80f7['len']:_0x5e80f7['pos']+_0xaf82da,_0x4e2309=new _0x17fc8f['StringStringPacketDataMessage']();_0x5e80f7['pos']<_0x5cbe02;){var _0x4a11ed=_0x5e80f7['uint32']();if(_0x4a11ed===_0x38f38e)break;switch(_0x4a11ed>>>0x3){case 0x1:_0x4e2309['data']=_0x5e80f7['string']();break;case 0x2:_0x4e2309['data1']=_0x5e80f7['string']();break;default:_0x5e80f7['skipType'](0x7&_0x4a11ed);}}return _0x4e2309;},_0x8b93dd['decodeDelimited']=function(_0x114ba8){return _0x114ba8 instanceof _0x546f05||(_0x114ba8=new _0x546f05(_0x114ba8)),this['decode'](_0x114ba8,_0x114ba8['uint32']());},_0x8b93dd['verify']=function(_0xc02983){return'object'!=typeof _0xc02983||null===_0xc02983?'object\x20expected':null!=_0xc02983['data']&&_0xc02983['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0xc02983['data'])?'data:\x20string\x20expected':null!=_0xc02983['data1']&&_0xc02983['hasOwnProperty']('data1')&&!_0x1967e8['isString'](_0xc02983['data1'])?'data1:\x20string\x20expected':null;},_0x8b93dd['fromObject']=function(_0x39e5d7){if(_0x39e5d7 instanceof _0x17fc8f['StringStringPacketDataMessage'])return _0x39e5d7;var _0x549330=new _0x17fc8f['StringStringPacketDataMessage']();return null!=_0x39e5d7['data']&&(_0x549330['data']=String(_0x39e5d7['data'])),null!=_0x39e5d7['data1']&&(_0x549330['data1']=String(_0x39e5d7['data1'])),_0x549330;},_0x8b93dd['toObject']=function(_0x36b1ff,_0x4e8b05){_0x4e8b05||(_0x4e8b05={});var _0x494cec={};return _0x4e8b05['defaults']&&(_0x494cec['data']='',_0x494cec['data1']=''),null!=_0x36b1ff['data']&&_0x36b1ff['hasOwnProperty']('data')&&(_0x494cec['data']=_0x36b1ff['data']),null!=_0x36b1ff['data1']&&_0x36b1ff['hasOwnProperty']('data1')&&(_0x494cec['data1']=_0x36b1ff['data1']),_0x494cec;},_0x8b93dd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8b93dd['getTypeUrl']=function(_0x3c2df0){return void 0x0===_0x3c2df0&&(_0x3c2df0='type.googleapis.com'),_0x3c2df0+'/StringStringPacketDataMessage';},_0x8b93dd;}()),_0x17fc8f['StringObjectPacketDataMessage']=(function(){function _0x554551(_0x50a133){if(_0x50a133){for(var _0x1de0d2=Object['keys'](_0x50a133),_0x1f32e0=0x0;_0x1f32e0<_0x1de0d2['length'];++_0x1f32e0)null!=_0x50a133[_0x1de0d2[_0x1f32e0]]&&(this[_0x1de0d2[_0x1f32e0]]=_0x50a133[_0x1de0d2[_0x1f32e0]]);}}return _0x554551['prototype']['data']='',_0x554551['prototype']['data1']='',_0x554551['create']=function(_0xfee47d){return new _0x554551(_0xfee47d);},_0x554551['encode']=function(_0x3981cb,_0x3cfa09){return _0x3cfa09||(_0x3cfa09=_0x5e31a7['create']()),null!=_0x3981cb['data']&&Object['hasOwnProperty']['call'](_0x3981cb,'data')&&_0x3cfa09['uint32'](0xa)['string'](_0x3981cb['data']),null!=_0x3981cb['data1']&&Object['hasOwnProperty']['call'](_0x3981cb,'data1')&&_0x3cfa09['uint32'](0x12)['string'](_0x3981cb['data1']),_0x3cfa09;},_0x554551['encodeDelimited']=function(_0x9616a,_0x17bee5){return this['encode'](_0x9616a,_0x17bee5)['ldelim']();},_0x554551['decode']=function(_0x53d886,_0x2e6edf,_0xdeceb2){_0x53d886 instanceof _0x546f05||(_0x53d886=_0x546f05['create'](_0x53d886));for(var _0x4a2d8b=void 0x0===_0x2e6edf?_0x53d886['len']:_0x53d886['pos']+_0x2e6edf,_0x378c84=new _0x17fc8f['StringObjectPacketDataMessage']();_0x53d886['pos']<_0x4a2d8b;){var _0x585f41=_0x53d886['uint32']();if(_0x585f41===_0xdeceb2)break;switch(_0x585f41>>>0x3){case 0x1:_0x378c84['data']=_0x53d886['string']();break;case 0x2:_0x378c84['data1']=_0x53d886['string']();break;default:_0x53d886['skipType'](0x7&_0x585f41);}}return _0x378c84;},_0x554551['decodeDelimited']=function(_0xf2aab8){return _0xf2aab8 instanceof _0x546f05||(_0xf2aab8=new _0x546f05(_0xf2aab8)),this['decode'](_0xf2aab8,_0xf2aab8['uint32']());},_0x554551['verify']=function(_0x5e3863){return'object'!=typeof _0x5e3863||null===_0x5e3863?'object\x20expected':null!=_0x5e3863['data']&&_0x5e3863['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x5e3863['data'])?'data:\x20string\x20expected':null!=_0x5e3863['data1']&&_0x5e3863['hasOwnProperty']('data1')&&!_0x1967e8['isString'](_0x5e3863['data1'])?'data1:\x20string\x20expected':null;},_0x554551['fromObject']=function(_0x290846){if(_0x290846 instanceof _0x17fc8f['StringObjectPacketDataMessage'])return _0x290846;var _0x11d338=new _0x17fc8f['StringObjectPacketDataMessage']();return null!=_0x290846['data']&&(_0x11d338['data']=String(_0x290846['data'])),null!=_0x290846['data1']&&(_0x11d338['data1']=String(_0x290846['data1'])),_0x11d338;},_0x554551['toObject']=function(_0x11af0c,_0x1f2ff4){_0x1f2ff4||(_0x1f2ff4={});var _0x5559e5={};return _0x1f2ff4['defaults']&&(_0x5559e5['data']='',_0x5559e5['data1']=''),null!=_0x11af0c['data']&&_0x11af0c['hasOwnProperty']('data')&&(_0x5559e5['data']=_0x11af0c['data']),null!=_0x11af0c['data1']&&_0x11af0c['hasOwnProperty']('data1')&&(_0x5559e5['data1']=_0x11af0c['data1']),_0x5559e5;},_0x554551['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x554551['getTypeUrl']=function(_0x1f66c1){return void 0x0===_0x1f66c1&&(_0x1f66c1='type.googleapis.com'),_0x1f66c1+'/StringObjectPacketDataMessage';},_0x554551;}()),_0x17fc8f['StringNumberPacketDataMessage']=(function(){function _0x466b7f(_0x40bc9e){if(_0x40bc9e){for(var _0x557684=Object['keys'](_0x40bc9e),_0x4a4270=0x0;_0x4a4270<_0x557684['length'];++_0x4a4270)null!=_0x40bc9e[_0x557684[_0x4a4270]]&&(this[_0x557684[_0x4a4270]]=_0x40bc9e[_0x557684[_0x4a4270]]);}}return _0x466b7f['prototype']['data']='',_0x466b7f['prototype']['data1']=0x0,_0x466b7f['create']=function(_0x154452){return new _0x466b7f(_0x154452);},_0x466b7f['encode']=function(_0x132aad,_0x1ba483){return _0x1ba483||(_0x1ba483=_0x5e31a7['create']()),null!=_0x132aad['data']&&Object['hasOwnProperty']['call'](_0x132aad,'data')&&_0x1ba483['uint32'](0xa)['string'](_0x132aad['data']),null!=_0x132aad['data1']&&Object['hasOwnProperty']['call'](_0x132aad,'data1')&&_0x1ba483['uint32'](0x10)['uint32'](_0x132aad['data1']),_0x1ba483;},_0x466b7f['encodeDelimited']=function(_0xf79193,_0x2fb9f5){return this['encode'](_0xf79193,_0x2fb9f5)['ldelim']();},_0x466b7f['decode']=function(_0x2b8c83,_0x4510d0,_0x31f0ff){_0x2b8c83 instanceof _0x546f05||(_0x2b8c83=_0x546f05['create'](_0x2b8c83));for(var _0x63680f=void 0x0===_0x4510d0?_0x2b8c83['len']:_0x2b8c83['pos']+_0x4510d0,_0x318892=new _0x17fc8f['StringNumberPacketDataMessage']();_0x2b8c83['pos']<_0x63680f;){var _0x5f3b87=_0x2b8c83['uint32']();if(_0x5f3b87===_0x31f0ff)break;switch(_0x5f3b87>>>0x3){case 0x1:_0x318892['data']=_0x2b8c83['string']();break;case 0x2:_0x318892['data1']=_0x2b8c83['uint32']();break;default:_0x2b8c83['skipType'](0x7&_0x5f3b87);}}return _0x318892;},_0x466b7f['decodeDelimited']=function(_0x45d7c4){return _0x45d7c4 instanceof _0x546f05||(_0x45d7c4=new _0x546f05(_0x45d7c4)),this['decode'](_0x45d7c4,_0x45d7c4['uint32']());},_0x466b7f['verify']=function(_0xd4e469){return'object'!=typeof _0xd4e469||null===_0xd4e469?'object\x20expected':null!=_0xd4e469['data']&&_0xd4e469['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0xd4e469['data'])?'data:\x20string\x20expected':null!=_0xd4e469['data1']&&_0xd4e469['hasOwnProperty']('data1')&&!_0x1967e8['isInteger'](_0xd4e469['data1'])?'data1:\x20integer\x20expected':null;},_0x466b7f['fromObject']=function(_0x1f734e){if(_0x1f734e instanceof _0x17fc8f['StringNumberPacketDataMessage'])return _0x1f734e;var _0x4c0664=new _0x17fc8f['StringNumberPacketDataMessage']();return null!=_0x1f734e['data']&&(_0x4c0664['data']=String(_0x1f734e['data'])),null!=_0x1f734e['data1']&&(_0x4c0664['data1']=_0x1f734e['data1']>>>0x0),_0x4c0664;},_0x466b7f['toObject']=function(_0x44b5cf,_0x50c9dd){_0x50c9dd||(_0x50c9dd={});var _0x3cdfba={};return _0x50c9dd['defaults']&&(_0x3cdfba['data']='',_0x3cdfba['data1']=0x0),null!=_0x44b5cf['data']&&_0x44b5cf['hasOwnProperty']('data')&&(_0x3cdfba['data']=_0x44b5cf['data']),null!=_0x44b5cf['data1']&&_0x44b5cf['hasOwnProperty']('data1')&&(_0x3cdfba['data1']=_0x44b5cf['data1']),_0x3cdfba;},_0x466b7f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x466b7f['getTypeUrl']=function(_0x1d66ca){return void 0x0===_0x1d66ca&&(_0x1d66ca='type.googleapis.com'),_0x1d66ca+'/StringNumberPacketDataMessage';},_0x466b7f;}()),_0x17fc8f['StringBytesPacketDataMessage']=(function(){function _0x8ed36(_0x16761d){if(_0x16761d){for(var _0x32301a=Object['keys'](_0x16761d),_0xf20049=0x0;_0xf20049<_0x32301a['length'];++_0xf20049)null!=_0x16761d[_0x32301a[_0xf20049]]&&(this[_0x32301a[_0xf20049]]=_0x16761d[_0x32301a[_0xf20049]]);}}return _0x8ed36['prototype']['data']='',_0x8ed36['prototype']['data1']=_0x1967e8['newBuffer']([]),_0x8ed36['create']=function(_0x5a51a2){return new _0x8ed36(_0x5a51a2);},_0x8ed36['encode']=function(_0x30b0ff,_0x1d4f89){return _0x1d4f89||(_0x1d4f89=_0x5e31a7['create']()),null!=_0x30b0ff['data']&&Object['hasOwnProperty']['call'](_0x30b0ff,'data')&&_0x1d4f89['uint32'](0xa)['string'](_0x30b0ff['data']),null!=_0x30b0ff['data1']&&Object['hasOwnProperty']['call'](_0x30b0ff,'data1')&&_0x1d4f89['uint32'](0x12)['bytes'](_0x30b0ff['data1']),_0x1d4f89;},_0x8ed36['encodeDelimited']=function(_0x50f452,_0x19fe91){return this['encode'](_0x50f452,_0x19fe91)['ldelim']();},_0x8ed36['decode']=function(_0xd7613d,_0x2d6e52,_0x268c2a){_0xd7613d instanceof _0x546f05||(_0xd7613d=_0x546f05['create'](_0xd7613d));for(var _0x2968b0=void 0x0===_0x2d6e52?_0xd7613d['len']:_0xd7613d['pos']+_0x2d6e52,_0x28b3cc=new _0x17fc8f['StringBytesPacketDataMessage']();_0xd7613d['pos']<_0x2968b0;){var _0x947524=_0xd7613d['uint32']();if(_0x947524===_0x268c2a)break;switch(_0x947524>>>0x3){case 0x1:_0x28b3cc['data']=_0xd7613d['string']();break;case 0x2:_0x28b3cc['data1']=_0xd7613d['bytes']();break;default:_0xd7613d['skipType'](0x7&_0x947524);}}return _0x28b3cc;},_0x8ed36['decodeDelimited']=function(_0x1e384a){return _0x1e384a instanceof _0x546f05||(_0x1e384a=new _0x546f05(_0x1e384a)),this['decode'](_0x1e384a,_0x1e384a['uint32']());},_0x8ed36['verify']=function(_0x45b309){return'object'!=typeof _0x45b309||null===_0x45b309?'object\x20expected':null!=_0x45b309['data']&&_0x45b309['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x45b309['data'])?'data:\x20string\x20expected':null!=_0x45b309['data1']&&_0x45b309['hasOwnProperty']('data1')&&!(_0x45b309['data1']&&'number'==typeof _0x45b309['data1']['length']||_0x1967e8['isString'](_0x45b309['data1']))?'data1:\x20buffer\x20expected':null;},_0x8ed36['fromObject']=function(_0xc60230){if(_0xc60230 instanceof _0x17fc8f['StringBytesPacketDataMessage'])return _0xc60230;var _0x3eeb57=new _0x17fc8f['StringBytesPacketDataMessage']();return null!=_0xc60230['data']&&(_0x3eeb57['data']=String(_0xc60230['data'])),null!=_0xc60230['data1']&&('string'==typeof _0xc60230['data1']?_0x1967e8['base64']['decode'](_0xc60230['data1'],_0x3eeb57['data1']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0xc60230['data1'])),0x0):_0xc60230['data1']['length']>=0x0&&(_0x3eeb57['data1']=_0xc60230['data1'])),_0x3eeb57;},_0x8ed36['toObject']=function(_0x576f4c,_0x1e2aaf){_0x1e2aaf||(_0x1e2aaf={});var _0x4012a3={};return _0x1e2aaf['defaults']&&(_0x4012a3['data']='',_0x1e2aaf['bytes']===String?_0x4012a3['data1']='':(_0x4012a3['data1']=[],_0x1e2aaf['bytes']!==Array&&(_0x4012a3['data1']=_0x1967e8['newBuffer'](_0x4012a3['data1'])))),null!=_0x576f4c['data']&&_0x576f4c['hasOwnProperty']('data')&&(_0x4012a3['data']=_0x576f4c['data']),null!=_0x576f4c['data1']&&_0x576f4c['hasOwnProperty']('data1')&&(_0x4012a3['data1']=_0x1e2aaf['bytes']===String?_0x1967e8['base64']['encode'](_0x576f4c['data1'],0x0,_0x576f4c['data1']['length']):_0x1e2aaf['bytes']===Array?Array['prototype']['slice']['call'](_0x576f4c['data1']):_0x576f4c['data1']),_0x4012a3;},_0x8ed36['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8ed36['getTypeUrl']=function(_0x32b1eb){return void 0x0===_0x32b1eb&&(_0x32b1eb='type.googleapis.com'),_0x32b1eb+'/StringBytesPacketDataMessage';},_0x8ed36;}()),_0x17fc8f['PacketOptionsMessage']=(function(){function _0x48aed2(_0x1dc7dc){if(this['rooms']=[],this['except']=[],_0x1dc7dc){for(var _0x2fd44b=Object['keys'](_0x1dc7dc),_0x158e62=0x0;_0x158e62<_0x2fd44b['length'];++_0x158e62)null!=_0x1dc7dc[_0x2fd44b[_0x158e62]]&&(this[_0x2fd44b[_0x158e62]]=_0x1dc7dc[_0x2fd44b[_0x158e62]]);}}return _0x48aed2['prototype']['flags']='',_0x48aed2['prototype']['rooms']=_0x1967e8['emptyArray'],_0x48aed2['prototype']['except']=_0x1967e8['emptyArray'],_0x48aed2['create']=function(_0x25218e){return new _0x48aed2(_0x25218e);},_0x48aed2['encode']=function(_0x43d21c,_0x16d51f){if(_0x16d51f||(_0x16d51f=_0x5e31a7['create']()),null!=_0x43d21c['flags']&&Object['hasOwnProperty']['call'](_0x43d21c,'flags')&&_0x16d51f['uint32'](0xa)['string'](_0x43d21c['flags']),null!=_0x43d21c['rooms']&&_0x43d21c['rooms']['length']){for(var _0x48f177=0x0;_0x48f177<_0x43d21c['rooms']['length'];++_0x48f177)_0x16d51f['uint32'](0x12)['string'](_0x43d21c['rooms'][_0x48f177]);}if(null!=_0x43d21c['except']&&_0x43d21c['except']['length']){for(_0x48f177=0x0;_0x48f177<_0x43d21c['except']['length'];++_0x48f177)_0x16d51f['uint32'](0x1a)['string'](_0x43d21c['except'][_0x48f177]);}return _0x16d51f;},_0x48aed2['encodeDelimited']=function(_0x315813,_0x1727ab){return this['encode'](_0x315813,_0x1727ab)['ldelim']();},_0x48aed2['decode']=function(_0x3da7ea,_0x3369ae,_0x1b2b1c){_0x3da7ea instanceof _0x546f05||(_0x3da7ea=_0x546f05['create'](_0x3da7ea));for(var _0x3979f8=void 0x0===_0x3369ae?_0x3da7ea['len']:_0x3da7ea['pos']+_0x3369ae,_0x1fc27c=new _0x17fc8f['PacketOptionsMessage']();_0x3da7ea['pos']<_0x3979f8;){var _0x5272c9=_0x3da7ea['uint32']();if(_0x5272c9===_0x1b2b1c)break;switch(_0x5272c9>>>0x3){case 0x1:_0x1fc27c['flags']=_0x3da7ea['string']();break;case 0x2:_0x1fc27c['rooms']&&_0x1fc27c['rooms']['length']||(_0x1fc27c['rooms']=[]),_0x1fc27c['rooms']['push'](_0x3da7ea['string']());break;case 0x3:_0x1fc27c['except']&&_0x1fc27c['except']['length']||(_0x1fc27c['except']=[]),_0x1fc27c['except']['push'](_0x3da7ea['string']());break;default:_0x3da7ea['skipType'](0x7&_0x5272c9);}}return _0x1fc27c;},_0x48aed2['decodeDelimited']=function(_0x124b09){return _0x124b09 instanceof _0x546f05||(_0x124b09=new _0x546f05(_0x124b09)),this['decode'](_0x124b09,_0x124b09['uint32']());},_0x48aed2['verify']=function(_0x4a86cb){if('object'!=typeof _0x4a86cb||null===_0x4a86cb)return'object\x20expected';if(null!=_0x4a86cb['flags']&&_0x4a86cb['hasOwnProperty']('flags')&&!_0x1967e8['isString'](_0x4a86cb['flags']))return'flags:\x20string\x20expected';if(null!=_0x4a86cb['rooms']&&_0x4a86cb['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x4a86cb['rooms']))return'rooms:\x20array\x20expected';for(var _0x358e79=0x0;_0x358e79<_0x4a86cb['rooms']['length'];++_0x358e79)if(!_0x1967e8['isString'](_0x4a86cb['rooms'][_0x358e79]))return'rooms:\x20string[]\x20expected';}if(null!=_0x4a86cb['except']&&_0x4a86cb['hasOwnProperty']('except')){if(!Array['isArray'](_0x4a86cb['except']))return'except:\x20array\x20expected';for(_0x358e79=0x0;_0x358e79<_0x4a86cb['except']['length'];++_0x358e79)if(!_0x1967e8['isString'](_0x4a86cb['except'][_0x358e79]))return'except:\x20string[]\x20expected';}return null;},_0x48aed2['fromObject']=function(_0x269a18){if(_0x269a18 instanceof _0x17fc8f['PacketOptionsMessage'])return _0x269a18;var _0x4d42c7=new _0x17fc8f['PacketOptionsMessage']();if(null!=_0x269a18['flags']&&(_0x4d42c7['flags']=String(_0x269a18['flags'])),_0x269a18['rooms']){if(!Array['isArray'](_0x269a18['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x4d42c7['rooms']=[];for(var _0x111883=0x0;_0x111883<_0x269a18['rooms']['length'];++_0x111883)_0x4d42c7['rooms'][_0x111883]=String(_0x269a18['rooms'][_0x111883]);}if(_0x269a18['except']){if(!Array['isArray'](_0x269a18['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');for(_0x4d42c7['except']=[],_0x111883=0x0;_0x111883<_0x269a18['except']['length'];++_0x111883)_0x4d42c7['except'][_0x111883]=String(_0x269a18['except'][_0x111883]);}return _0x4d42c7;},_0x48aed2['toObject']=function(_0x16f9ae,_0x5408b2){_0x5408b2||(_0x5408b2={});var _0x2d599e={};if((_0x5408b2['arrays']||_0x5408b2['defaults'])&&(_0x2d599e['rooms']=[],_0x2d599e['except']=[]),_0x5408b2['defaults']&&(_0x2d599e['flags']=''),null!=_0x16f9ae['flags']&&_0x16f9ae['hasOwnProperty']('flags')&&(_0x2d599e['flags']=_0x16f9ae['flags']),_0x16f9ae['rooms']&&_0x16f9ae['rooms']['length']){_0x2d599e['rooms']=[];for(var _0x43b8ff=0x0;_0x43b8ff<_0x16f9ae['rooms']['length'];++_0x43b8ff)_0x2d599e['rooms'][_0x43b8ff]=_0x16f9ae['rooms'][_0x43b8ff];}if(_0x16f9ae['except']&&_0x16f9ae['except']['length']){for(_0x2d599e['except']=[],_0x43b8ff=0x0;_0x43b8ff<_0x16f9ae['except']['length'];++_0x43b8ff)_0x2d599e['except'][_0x43b8ff]=_0x16f9ae['except'][_0x43b8ff];}return _0x2d599e;},_0x48aed2['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x48aed2['getTypeUrl']=function(_0x21e5cf){return void 0x0===_0x21e5cf&&(_0x21e5cf='type.googleapis.com'),_0x21e5cf+'/PacketOptionsMessage';},_0x48aed2;}()),_0x17fc8f['PacketMessage']=(function(){function _0x54b9ad(_0x3b32d1){if(_0x3b32d1){for(var _0x48d418=Object['keys'](_0x3b32d1),_0x102586=0x0;_0x102586<_0x48d418['length'];++_0x102586)null!=_0x3b32d1[_0x48d418[_0x102586]]&&(this[_0x48d418[_0x102586]]=_0x3b32d1[_0x48d418[_0x102586]]);}}return _0x54b9ad['prototype']['type']=0x0,_0x54b9ad['prototype']['id']=0x0,_0x54b9ad['prototype']['nsp']='',_0x54b9ad['prototype']['data']=_0x1967e8['newBuffer']([]),_0x54b9ad['prototype']['options']=_0x1967e8['newBuffer']([]),_0x54b9ad['create']=function(_0x53f565){return new _0x54b9ad(_0x53f565);},_0x54b9ad['encode']=function(_0x49d558,_0x46cf6f){return _0x46cf6f||(_0x46cf6f=_0x5e31a7['create']()),null!=_0x49d558['type']&&Object['hasOwnProperty']['call'](_0x49d558,'type')&&_0x46cf6f['uint32'](0x8)['uint32'](_0x49d558['type']),null!=_0x49d558['id']&&Object['hasOwnProperty']['call'](_0x49d558,'id')&&_0x46cf6f['uint32'](0x10)['uint32'](_0x49d558['id']),null!=_0x49d558['nsp']&&Object['hasOwnProperty']['call'](_0x49d558,'nsp')&&_0x46cf6f['uint32'](0x1a)['string'](_0x49d558['nsp']),null!=_0x49d558['data']&&Object['hasOwnProperty']['call'](_0x49d558,'data')&&_0x46cf6f['uint32'](0x22)['bytes'](_0x49d558['data']),null!=_0x49d558['options']&&Object['hasOwnProperty']['call'](_0x49d558,'options')&&_0x46cf6f['uint32'](0x2a)['bytes'](_0x49d558['options']),_0x46cf6f;},_0x54b9ad['encodeDelimited']=function(_0x20bcde,_0x2e1e31){return this['encode'](_0x20bcde,_0x2e1e31)['ldelim']();},_0x54b9ad['decode']=function(_0x3a6536,_0x2d4054,_0x3dee9e){_0x3a6536 instanceof _0x546f05||(_0x3a6536=_0x546f05['create'](_0x3a6536));for(var _0x5d880f=void 0x0===_0x2d4054?_0x3a6536['len']:_0x3a6536['pos']+_0x2d4054,_0x1a7169=new _0x17fc8f['PacketMessage']();_0x3a6536['pos']<_0x5d880f;){var _0x12e8ec=_0x3a6536['uint32']();if(_0x12e8ec===_0x3dee9e)break;switch(_0x12e8ec>>>0x3){case 0x1:_0x1a7169['type']=_0x3a6536['uint32']();break;case 0x2:_0x1a7169['id']=_0x3a6536['uint32']();break;case 0x3:_0x1a7169['nsp']=_0x3a6536['string']();break;case 0x4:_0x1a7169['data']=_0x3a6536['bytes']();break;case 0x5:_0x1a7169['options']=_0x3a6536['bytes']();break;default:_0x3a6536['skipType'](0x7&_0x12e8ec);}}return _0x1a7169;},_0x54b9ad['decodeDelimited']=function(_0x289d11){return _0x289d11 instanceof _0x546f05||(_0x289d11=new _0x546f05(_0x289d11)),this['decode'](_0x289d11,_0x289d11['uint32']());},_0x54b9ad['verify']=function(_0x5251fa){return'object'!=typeof _0x5251fa||null===_0x5251fa?'object\x20expected':null!=_0x5251fa['type']&&_0x5251fa['hasOwnProperty']('type')&&!_0x1967e8['isInteger'](_0x5251fa['type'])?'type:\x20integer\x20expected':null!=_0x5251fa['id']&&_0x5251fa['hasOwnProperty']('id')&&!_0x1967e8['isInteger'](_0x5251fa['id'])?'id:\x20integer\x20expected':null!=_0x5251fa['nsp']&&_0x5251fa['hasOwnProperty']('nsp')&&!_0x1967e8['isString'](_0x5251fa['nsp'])?'nsp:\x20string\x20expected':null!=_0x5251fa['data']&&_0x5251fa['hasOwnProperty']('data')&&!(_0x5251fa['data']&&'number'==typeof _0x5251fa['data']['length']||_0x1967e8['isString'](_0x5251fa['data']))?'data:\x20buffer\x20expected':null!=_0x5251fa['options']&&_0x5251fa['hasOwnProperty']('options')&&!(_0x5251fa['options']&&'number'==typeof _0x5251fa['options']['length']||_0x1967e8['isString'](_0x5251fa['options']))?'options:\x20buffer\x20expected':null;},_0x54b9ad['fromObject']=function(_0x3299f9){if(_0x3299f9 instanceof _0x17fc8f['PacketMessage'])return _0x3299f9;var _0x4d473d=new _0x17fc8f['PacketMessage']();return null!=_0x3299f9['type']&&(_0x4d473d['type']=_0x3299f9['type']>>>0x0),null!=_0x3299f9['id']&&(_0x4d473d['id']=_0x3299f9['id']>>>0x0),null!=_0x3299f9['nsp']&&(_0x4d473d['nsp']=String(_0x3299f9['nsp'])),null!=_0x3299f9['data']&&('string'==typeof _0x3299f9['data']?_0x1967e8['base64']['decode'](_0x3299f9['data'],_0x4d473d['data']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x3299f9['data'])),0x0):_0x3299f9['data']['length']>=0x0&&(_0x4d473d['data']=_0x3299f9['data'])),null!=_0x3299f9['options']&&('string'==typeof _0x3299f9['options']?_0x1967e8['base64']['decode'](_0x3299f9['options'],_0x4d473d['options']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x3299f9['options'])),0x0):_0x3299f9['options']['length']>=0x0&&(_0x4d473d['options']=_0x3299f9['options'])),_0x4d473d;},_0x54b9ad['toObject']=function(_0x5e794e,_0x4eb83d){_0x4eb83d||(_0x4eb83d={});var _0x3be5f7={};return _0x4eb83d['defaults']&&(_0x3be5f7['type']=0x0,_0x3be5f7['id']=0x0,_0x3be5f7['nsp']='',_0x4eb83d['bytes']===String?_0x3be5f7['data']='':(_0x3be5f7['data']=[],_0x4eb83d['bytes']!==Array&&(_0x3be5f7['data']=_0x1967e8['newBuffer'](_0x3be5f7['data']))),_0x4eb83d['bytes']===String?_0x3be5f7['options']='':(_0x3be5f7['options']=[],_0x4eb83d['bytes']!==Array&&(_0x3be5f7['options']=_0x1967e8['newBuffer'](_0x3be5f7['options'])))),null!=_0x5e794e['type']&&_0x5e794e['hasOwnProperty']('type')&&(_0x3be5f7['type']=_0x5e794e['type']),null!=_0x5e794e['id']&&_0x5e794e['hasOwnProperty']('id')&&(_0x3be5f7['id']=_0x5e794e['id']),null!=_0x5e794e['nsp']&&_0x5e794e['hasOwnProperty']('nsp')&&(_0x3be5f7['nsp']=_0x5e794e['nsp']),null!=_0x5e794e['data']&&_0x5e794e['hasOwnProperty']('data')&&(_0x3be5f7['data']=_0x4eb83d['bytes']===String?_0x1967e8['base64']['encode'](_0x5e794e['data'],0x0,_0x5e794e['data']['length']):_0x4eb83d['bytes']===Array?Array['prototype']['slice']['call'](_0x5e794e['data']):_0x5e794e['data']),null!=_0x5e794e['options']&&_0x5e794e['hasOwnProperty']('options')&&(_0x3be5f7['options']=_0x4eb83d['bytes']===String?_0x1967e8['base64']['encode'](_0x5e794e['options'],0x0,_0x5e794e['options']['length']):_0x4eb83d['bytes']===Array?Array['prototype']['slice']['call'](_0x5e794e['options']):_0x5e794e['options']),_0x3be5f7;},_0x54b9ad['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54b9ad['getTypeUrl']=function(_0x502fc3){return void 0x0===_0x502fc3&&(_0x502fc3='type.googleapis.com'),_0x502fc3+'/PacketMessage';},_0x54b9ad;}()),_0x17fc8f['ObjectObjectPacketDataMessage']=(function(){function _0x2b01c6(_0x145114){if(_0x145114){for(var _0x1f0ded=Object['keys'](_0x145114),_0x2b81ab=0x0;_0x2b81ab<_0x1f0ded['length'];++_0x2b81ab)null!=_0x145114[_0x1f0ded[_0x2b81ab]]&&(this[_0x1f0ded[_0x2b81ab]]=_0x145114[_0x1f0ded[_0x2b81ab]]);}}return _0x2b01c6['prototype']['data']='',_0x2b01c6['prototype']['data1']='',_0x2b01c6['create']=function(_0x3340fb){return new _0x2b01c6(_0x3340fb);},_0x2b01c6['encode']=function(_0x76f95b,_0x570263){return _0x570263||(_0x570263=_0x5e31a7['create']()),null!=_0x76f95b['data']&&Object['hasOwnProperty']['call'](_0x76f95b,'data')&&_0x570263['uint32'](0xa)['string'](_0x76f95b['data']),null!=_0x76f95b['data1']&&Object['hasOwnProperty']['call'](_0x76f95b,'data1')&&_0x570263['uint32'](0x12)['string'](_0x76f95b['data1']),_0x570263;},_0x2b01c6['encodeDelimited']=function(_0x32b477,_0x5decfb){return this['encode'](_0x32b477,_0x5decfb)['ldelim']();},_0x2b01c6['decode']=function(_0x34d3c3,_0x14e1a4,_0x5d4f45){_0x34d3c3 instanceof _0x546f05||(_0x34d3c3=_0x546f05['create'](_0x34d3c3));for(var _0x44cb01=void 0x0===_0x14e1a4?_0x34d3c3['len']:_0x34d3c3['pos']+_0x14e1a4,_0x588052=new _0x17fc8f['ObjectObjectPacketDataMessage']();_0x34d3c3['pos']<_0x44cb01;){var _0x20f432=_0x34d3c3['uint32']();if(_0x20f432===_0x5d4f45)break;switch(_0x20f432>>>0x3){case 0x1:_0x588052['data']=_0x34d3c3['string']();break;case 0x2:_0x588052['data1']=_0x34d3c3['string']();break;default:_0x34d3c3['skipType'](0x7&_0x20f432);}}return _0x588052;},_0x2b01c6['decodeDelimited']=function(_0x25bb46){return _0x25bb46 instanceof _0x546f05||(_0x25bb46=new _0x546f05(_0x25bb46)),this['decode'](_0x25bb46,_0x25bb46['uint32']());},_0x2b01c6['verify']=function(_0x1c12f0){return'object'!=typeof _0x1c12f0||null===_0x1c12f0?'object\x20expected':null!=_0x1c12f0['data']&&_0x1c12f0['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x1c12f0['data'])?'data:\x20string\x20expected':null!=_0x1c12f0['data1']&&_0x1c12f0['hasOwnProperty']('data1')&&!_0x1967e8['isString'](_0x1c12f0['data1'])?'data1:\x20string\x20expected':null;},_0x2b01c6['fromObject']=function(_0xfc59d6){if(_0xfc59d6 instanceof _0x17fc8f['ObjectObjectPacketDataMessage'])return _0xfc59d6;var _0x1acbe7=new _0x17fc8f['ObjectObjectPacketDataMessage']();return null!=_0xfc59d6['data']&&(_0x1acbe7['data']=String(_0xfc59d6['data'])),null!=_0xfc59d6['data1']&&(_0x1acbe7['data1']=String(_0xfc59d6['data1'])),_0x1acbe7;},_0x2b01c6['toObject']=function(_0x352d35,_0x4cbca1){_0x4cbca1||(_0x4cbca1={});var _0x4bc4dc={};return _0x4cbca1['defaults']&&(_0x4bc4dc['data']='',_0x4bc4dc['data1']=''),null!=_0x352d35['data']&&_0x352d35['hasOwnProperty']('data')&&(_0x4bc4dc['data']=_0x352d35['data']),null!=_0x352d35['data1']&&_0x352d35['hasOwnProperty']('data1')&&(_0x4bc4dc['data1']=_0x352d35['data1']),_0x4bc4dc;},_0x2b01c6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2b01c6['getTypeUrl']=function(_0x14892a){return void 0x0===_0x14892a&&(_0x14892a='type.googleapis.com'),_0x14892a+'/ObjectObjectPacketDataMessage';},_0x2b01c6;}()),_0x17fc8f['ObjectBufferPacketDataMessage']=(function(){function _0x48e034(_0x4db41f){if(_0x4db41f){for(var _0x4e6d51=Object['keys'](_0x4db41f),_0x18982e=0x0;_0x18982e<_0x4e6d51['length'];++_0x18982e)null!=_0x4db41f[_0x4e6d51[_0x18982e]]&&(this[_0x4e6d51[_0x18982e]]=_0x4db41f[_0x4e6d51[_0x18982e]]);}}return _0x48e034['prototype']['data']='',_0x48e034['prototype']['data1']=_0x1967e8['newBuffer']([]),_0x48e034['create']=function(_0x42159c){return new _0x48e034(_0x42159c);},_0x48e034['encode']=function(_0x32710e,_0x24578e){return _0x24578e||(_0x24578e=_0x5e31a7['create']()),null!=_0x32710e['data']&&Object['hasOwnProperty']['call'](_0x32710e,'data')&&_0x24578e['uint32'](0xa)['string'](_0x32710e['data']),null!=_0x32710e['data1']&&Object['hasOwnProperty']['call'](_0x32710e,'data1')&&_0x24578e['uint32'](0x12)['bytes'](_0x32710e['data1']),_0x24578e;},_0x48e034['encodeDelimited']=function(_0x28fac4,_0x3624e8){return this['encode'](_0x28fac4,_0x3624e8)['ldelim']();},_0x48e034['decode']=function(_0x6fcba4,_0x457fd4,_0x180507){_0x6fcba4 instanceof _0x546f05||(_0x6fcba4=_0x546f05['create'](_0x6fcba4));for(var _0x12a779=void 0x0===_0x457fd4?_0x6fcba4['len']:_0x6fcba4['pos']+_0x457fd4,_0x4f4d33=new _0x17fc8f['ObjectBufferPacketDataMessage']();_0x6fcba4['pos']<_0x12a779;){var _0x4a2ef0=_0x6fcba4['uint32']();if(_0x4a2ef0===_0x180507)break;switch(_0x4a2ef0>>>0x3){case 0x1:_0x4f4d33['data']=_0x6fcba4['string']();break;case 0x2:_0x4f4d33['data1']=_0x6fcba4['bytes']();break;default:_0x6fcba4['skipType'](0x7&_0x4a2ef0);}}return _0x4f4d33;},_0x48e034['decodeDelimited']=function(_0x51064c){return _0x51064c instanceof _0x546f05||(_0x51064c=new _0x546f05(_0x51064c)),this['decode'](_0x51064c,_0x51064c['uint32']());},_0x48e034['verify']=function(_0x1bfe5a){return'object'!=typeof _0x1bfe5a||null===_0x1bfe5a?'object\x20expected':null!=_0x1bfe5a['data']&&_0x1bfe5a['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x1bfe5a['data'])?'data:\x20string\x20expected':null!=_0x1bfe5a['data1']&&_0x1bfe5a['hasOwnProperty']('data1')&&!(_0x1bfe5a['data1']&&'number'==typeof _0x1bfe5a['data1']['length']||_0x1967e8['isString'](_0x1bfe5a['data1']))?'data1:\x20buffer\x20expected':null;},_0x48e034['fromObject']=function(_0x131f9e){if(_0x131f9e instanceof _0x17fc8f['ObjectBufferPacketDataMessage'])return _0x131f9e;var _0x500a49=new _0x17fc8f['ObjectBufferPacketDataMessage']();return null!=_0x131f9e['data']&&(_0x500a49['data']=String(_0x131f9e['data'])),null!=_0x131f9e['data1']&&('string'==typeof _0x131f9e['data1']?_0x1967e8['base64']['decode'](_0x131f9e['data1'],_0x500a49['data1']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x131f9e['data1'])),0x0):_0x131f9e['data1']['length']>=0x0&&(_0x500a49['data1']=_0x131f9e['data1'])),_0x500a49;},_0x48e034['toObject']=function(_0xe0cad3,_0x567b16){_0x567b16||(_0x567b16={});var _0x4cb197={};return _0x567b16['defaults']&&(_0x4cb197['data']='',_0x567b16['bytes']===String?_0x4cb197['data1']='':(_0x4cb197['data1']=[],_0x567b16['bytes']!==Array&&(_0x4cb197['data1']=_0x1967e8['newBuffer'](_0x4cb197['data1'])))),null!=_0xe0cad3['data']&&_0xe0cad3['hasOwnProperty']('data')&&(_0x4cb197['data']=_0xe0cad3['data']),null!=_0xe0cad3['data1']&&_0xe0cad3['hasOwnProperty']('data1')&&(_0x4cb197['data1']=_0x567b16['bytes']===String?_0x1967e8['base64']['encode'](_0xe0cad3['data1'],0x0,_0xe0cad3['data1']['length']):_0x567b16['bytes']===Array?Array['prototype']['slice']['call'](_0xe0cad3['data1']):_0xe0cad3['data1']),_0x4cb197;},_0x48e034['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x48e034['getTypeUrl']=function(_0x1688cb){return void 0x0===_0x1688cb&&(_0x1688cb='type.googleapis.com'),_0x1688cb+'/ObjectBufferPacketDataMessage';},_0x48e034;}()),_0x17fc8f['NumberStringPacketDataMessage']=(function(){function _0x2bdf63(_0x4ff9db){if(_0x4ff9db){for(var _0x3dc42d=Object['keys'](_0x4ff9db),_0x29405f=0x0;_0x29405f<_0x3dc42d['length'];++_0x29405f)null!=_0x4ff9db[_0x3dc42d[_0x29405f]]&&(this[_0x3dc42d[_0x29405f]]=_0x4ff9db[_0x3dc42d[_0x29405f]]);}}return _0x2bdf63['prototype']['data']=0x0,_0x2bdf63['prototype']['data1']='',_0x2bdf63['create']=function(_0x2c289f){return new _0x2bdf63(_0x2c289f);},_0x2bdf63['encode']=function(_0x2d54b5,_0x499b3f){return _0x499b3f||(_0x499b3f=_0x5e31a7['create']()),null!=_0x2d54b5['data']&&Object['hasOwnProperty']['call'](_0x2d54b5,'data')&&_0x499b3f['uint32'](0x8)['uint32'](_0x2d54b5['data']),null!=_0x2d54b5['data1']&&Object['hasOwnProperty']['call'](_0x2d54b5,'data1')&&_0x499b3f['uint32'](0x12)['string'](_0x2d54b5['data1']),_0x499b3f;},_0x2bdf63['encodeDelimited']=function(_0x1e7a6d,_0x17d233){return this['encode'](_0x1e7a6d,_0x17d233)['ldelim']();},_0x2bdf63['decode']=function(_0x3a8104,_0x3d4ae7,_0x3486c3){_0x3a8104 instanceof _0x546f05||(_0x3a8104=_0x546f05['create'](_0x3a8104));for(var _0x39005f=void 0x0===_0x3d4ae7?_0x3a8104['len']:_0x3a8104['pos']+_0x3d4ae7,_0x237061=new _0x17fc8f['NumberStringPacketDataMessage']();_0x3a8104['pos']<_0x39005f;){var _0x589f72=_0x3a8104['uint32']();if(_0x589f72===_0x3486c3)break;switch(_0x589f72>>>0x3){case 0x1:_0x237061['data']=_0x3a8104['uint32']();break;case 0x2:_0x237061['data1']=_0x3a8104['string']();break;default:_0x3a8104['skipType'](0x7&_0x589f72);}}return _0x237061;},_0x2bdf63['decodeDelimited']=function(_0x1220ae){return _0x1220ae instanceof _0x546f05||(_0x1220ae=new _0x546f05(_0x1220ae)),this['decode'](_0x1220ae,_0x1220ae['uint32']());},_0x2bdf63['verify']=function(_0x3f1e67){return'object'!=typeof _0x3f1e67||null===_0x3f1e67?'object\x20expected':null!=_0x3f1e67['data']&&_0x3f1e67['hasOwnProperty']('data')&&!_0x1967e8['isInteger'](_0x3f1e67['data'])?'data:\x20integer\x20expected':null!=_0x3f1e67['data1']&&_0x3f1e67['hasOwnProperty']('data1')&&!_0x1967e8['isString'](_0x3f1e67['data1'])?'data1:\x20string\x20expected':null;},_0x2bdf63['fromObject']=function(_0xd57c5d){if(_0xd57c5d instanceof _0x17fc8f['NumberStringPacketDataMessage'])return _0xd57c5d;var _0x44c1dc=new _0x17fc8f['NumberStringPacketDataMessage']();return null!=_0xd57c5d['data']&&(_0x44c1dc['data']=_0xd57c5d['data']>>>0x0),null!=_0xd57c5d['data1']&&(_0x44c1dc['data1']=String(_0xd57c5d['data1'])),_0x44c1dc;},_0x2bdf63['toObject']=function(_0x5b78a4,_0xf164aa){_0xf164aa||(_0xf164aa={});var _0x56e81c={};return _0xf164aa['defaults']&&(_0x56e81c['data']=0x0,_0x56e81c['data1']=''),null!=_0x5b78a4['data']&&_0x5b78a4['hasOwnProperty']('data')&&(_0x56e81c['data']=_0x5b78a4['data']),null!=_0x5b78a4['data1']&&_0x5b78a4['hasOwnProperty']('data1')&&(_0x56e81c['data1']=_0x5b78a4['data1']),_0x56e81c;},_0x2bdf63['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2bdf63['getTypeUrl']=function(_0x33499a){return void 0x0===_0x33499a&&(_0x33499a='type.googleapis.com'),_0x33499a+'/NumberStringPacketDataMessage';},_0x2bdf63;}()),_0x17fc8f['NumberObjectPacketDataMessage']=(function(){function _0x4bf950(_0x11209e){if(_0x11209e){for(var _0x34f8c1=Object['keys'](_0x11209e),_0xb6ff7e=0x0;_0xb6ff7e<_0x34f8c1['length'];++_0xb6ff7e)null!=_0x11209e[_0x34f8c1[_0xb6ff7e]]&&(this[_0x34f8c1[_0xb6ff7e]]=_0x11209e[_0x34f8c1[_0xb6ff7e]]);}}return _0x4bf950['prototype']['data']=0x0,_0x4bf950['prototype']['data1']='',_0x4bf950['create']=function(_0x14c135){return new _0x4bf950(_0x14c135);},_0x4bf950['encode']=function(_0x55490e,_0x84c4cf){return _0x84c4cf||(_0x84c4cf=_0x5e31a7['create']()),null!=_0x55490e['data']&&Object['hasOwnProperty']['call'](_0x55490e,'data')&&_0x84c4cf['uint32'](0x8)['uint32'](_0x55490e['data']),null!=_0x55490e['data1']&&Object['hasOwnProperty']['call'](_0x55490e,'data1')&&_0x84c4cf['uint32'](0x12)['string'](_0x55490e['data1']),_0x84c4cf;},_0x4bf950['encodeDelimited']=function(_0x1f0332,_0x3fd676){return this['encode'](_0x1f0332,_0x3fd676)['ldelim']();},_0x4bf950['decode']=function(_0x567f90,_0x4720cb,_0x3c3d37){_0x567f90 instanceof _0x546f05||(_0x567f90=_0x546f05['create'](_0x567f90));for(var _0x224b4f=void 0x0===_0x4720cb?_0x567f90['len']:_0x567f90['pos']+_0x4720cb,_0x1e2216=new _0x17fc8f['NumberObjectPacketDataMessage']();_0x567f90['pos']<_0x224b4f;){var _0x3db6bf=_0x567f90['uint32']();if(_0x3db6bf===_0x3c3d37)break;switch(_0x3db6bf>>>0x3){case 0x1:_0x1e2216['data']=_0x567f90['uint32']();break;case 0x2:_0x1e2216['data1']=_0x567f90['string']();break;default:_0x567f90['skipType'](0x7&_0x3db6bf);}}return _0x1e2216;},_0x4bf950['decodeDelimited']=function(_0x221921){return _0x221921 instanceof _0x546f05||(_0x221921=new _0x546f05(_0x221921)),this['decode'](_0x221921,_0x221921['uint32']());},_0x4bf950['verify']=function(_0x1eff68){return'object'!=typeof _0x1eff68||null===_0x1eff68?'object\x20expected':null!=_0x1eff68['data']&&_0x1eff68['hasOwnProperty']('data')&&!_0x1967e8['isInteger'](_0x1eff68['data'])?'data:\x20integer\x20expected':null!=_0x1eff68['data1']&&_0x1eff68['hasOwnProperty']('data1')&&!_0x1967e8['isString'](_0x1eff68['data1'])?'data1:\x20string\x20expected':null;},_0x4bf950['fromObject']=function(_0x2fb792){if(_0x2fb792 instanceof _0x17fc8f['NumberObjectPacketDataMessage'])return _0x2fb792;var _0x24c279=new _0x17fc8f['NumberObjectPacketDataMessage']();return null!=_0x2fb792['data']&&(_0x24c279['data']=_0x2fb792['data']>>>0x0),null!=_0x2fb792['data1']&&(_0x24c279['data1']=String(_0x2fb792['data1'])),_0x24c279;},_0x4bf950['toObject']=function(_0x119b74,_0x299f5b){_0x299f5b||(_0x299f5b={});var _0x233e8a={};return _0x299f5b['defaults']&&(_0x233e8a['data']=0x0,_0x233e8a['data1']=''),null!=_0x119b74['data']&&_0x119b74['hasOwnProperty']('data')&&(_0x233e8a['data']=_0x119b74['data']),null!=_0x119b74['data1']&&_0x119b74['hasOwnProperty']('data1')&&(_0x233e8a['data1']=_0x119b74['data1']),_0x233e8a;},_0x4bf950['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4bf950['getTypeUrl']=function(_0x9504b5){return void 0x0===_0x9504b5&&(_0x9504b5='type.googleapis.com'),_0x9504b5+'/NumberObjectPacketDataMessage';},_0x4bf950;}()),_0x17fc8f['NumberNumberPacketDataMessage']=(function(){function _0x58436d(_0x50ba2b){if(_0x50ba2b){for(var _0x4edd31=Object['keys'](_0x50ba2b),_0x455ac3=0x0;_0x455ac3<_0x4edd31['length'];++_0x455ac3)null!=_0x50ba2b[_0x4edd31[_0x455ac3]]&&(this[_0x4edd31[_0x455ac3]]=_0x50ba2b[_0x4edd31[_0x455ac3]]);}}return _0x58436d['prototype']['data']=0x0,_0x58436d['prototype']['data1']=0x0,_0x58436d['create']=function(_0x51506c){return new _0x58436d(_0x51506c);},_0x58436d['encode']=function(_0x2115cd,_0xcf891f){return _0xcf891f||(_0xcf891f=_0x5e31a7['create']()),null!=_0x2115cd['data']&&Object['hasOwnProperty']['call'](_0x2115cd,'data')&&_0xcf891f['uint32'](0x8)['uint32'](_0x2115cd['data']),null!=_0x2115cd['data1']&&Object['hasOwnProperty']['call'](_0x2115cd,'data1')&&_0xcf891f['uint32'](0x10)['uint32'](_0x2115cd['data1']),_0xcf891f;},_0x58436d['encodeDelimited']=function(_0x106fec,_0x169388){return this['encode'](_0x106fec,_0x169388)['ldelim']();},_0x58436d['decode']=function(_0xb37cc3,_0x53c67f,_0xbd3724){_0xb37cc3 instanceof _0x546f05||(_0xb37cc3=_0x546f05['create'](_0xb37cc3));for(var _0x167dfb=void 0x0===_0x53c67f?_0xb37cc3['len']:_0xb37cc3['pos']+_0x53c67f,_0x217069=new _0x17fc8f['NumberNumberPacketDataMessage']();_0xb37cc3['pos']<_0x167dfb;){var _0x1b7e82=_0xb37cc3['uint32']();if(_0x1b7e82===_0xbd3724)break;switch(_0x1b7e82>>>0x3){case 0x1:_0x217069['data']=_0xb37cc3['uint32']();break;case 0x2:_0x217069['data1']=_0xb37cc3['uint32']();break;default:_0xb37cc3['skipType'](0x7&_0x1b7e82);}}return _0x217069;},_0x58436d['decodeDelimited']=function(_0x187c1d){return _0x187c1d instanceof _0x546f05||(_0x187c1d=new _0x546f05(_0x187c1d)),this['decode'](_0x187c1d,_0x187c1d['uint32']());},_0x58436d['verify']=function(_0x20cd38){return'object'!=typeof _0x20cd38||null===_0x20cd38?'object\x20expected':null!=_0x20cd38['data']&&_0x20cd38['hasOwnProperty']('data')&&!_0x1967e8['isInteger'](_0x20cd38['data'])?'data:\x20integer\x20expected':null!=_0x20cd38['data1']&&_0x20cd38['hasOwnProperty']('data1')&&!_0x1967e8['isInteger'](_0x20cd38['data1'])?'data1:\x20integer\x20expected':null;},_0x58436d['fromObject']=function(_0x38901b){if(_0x38901b instanceof _0x17fc8f['NumberNumberPacketDataMessage'])return _0x38901b;var _0x379f01=new _0x17fc8f['NumberNumberPacketDataMessage']();return null!=_0x38901b['data']&&(_0x379f01['data']=_0x38901b['data']>>>0x0),null!=_0x38901b['data1']&&(_0x379f01['data1']=_0x38901b['data1']>>>0x0),_0x379f01;},_0x58436d['toObject']=function(_0x55587d,_0xdfe18f){_0xdfe18f||(_0xdfe18f={});var _0x2094e6={};return _0xdfe18f['defaults']&&(_0x2094e6['data']=0x0,_0x2094e6['data1']=0x0),null!=_0x55587d['data']&&_0x55587d['hasOwnProperty']('data')&&(_0x2094e6['data']=_0x55587d['data']),null!=_0x55587d['data1']&&_0x55587d['hasOwnProperty']('data1')&&(_0x2094e6['data1']=_0x55587d['data1']),_0x2094e6;},_0x58436d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x58436d['getTypeUrl']=function(_0x111410){return void 0x0===_0x111410&&(_0x111410='type.googleapis.com'),_0x111410+'/NumberNumberPacketDataMessage';},_0x58436d;}()),_0x17fc8f['NumberBytesPacketDataMessage']=(function(){function _0x1fbfb6(_0x537831){if(_0x537831){for(var _0xdfa43b=Object['keys'](_0x537831),_0x43dd8e=0x0;_0x43dd8e<_0xdfa43b['length'];++_0x43dd8e)null!=_0x537831[_0xdfa43b[_0x43dd8e]]&&(this[_0xdfa43b[_0x43dd8e]]=_0x537831[_0xdfa43b[_0x43dd8e]]);}}return _0x1fbfb6['prototype']['data']=0x0,_0x1fbfb6['prototype']['data1']=_0x1967e8['newBuffer']([]),_0x1fbfb6['create']=function(_0x1b3818){return new _0x1fbfb6(_0x1b3818);},_0x1fbfb6['encode']=function(_0x36d3c2,_0x511bc4){return _0x511bc4||(_0x511bc4=_0x5e31a7['create']()),null!=_0x36d3c2['data']&&Object['hasOwnProperty']['call'](_0x36d3c2,'data')&&_0x511bc4['uint32'](0x8)['uint32'](_0x36d3c2['data']),null!=_0x36d3c2['data1']&&Object['hasOwnProperty']['call'](_0x36d3c2,'data1')&&_0x511bc4['uint32'](0x12)['bytes'](_0x36d3c2['data1']),_0x511bc4;},_0x1fbfb6['encodeDelimited']=function(_0x4ee7dd,_0x27ff79){return this['encode'](_0x4ee7dd,_0x27ff79)['ldelim']();},_0x1fbfb6['decode']=function(_0x88c130,_0xbc4dca,_0x2d7cc9){_0x88c130 instanceof _0x546f05||(_0x88c130=_0x546f05['create'](_0x88c130));for(var _0x3fb5c9=void 0x0===_0xbc4dca?_0x88c130['len']:_0x88c130['pos']+_0xbc4dca,_0x3a8bf0=new _0x17fc8f['NumberBytesPacketDataMessage']();_0x88c130['pos']<_0x3fb5c9;){var _0x14b1a6=_0x88c130['uint32']();if(_0x14b1a6===_0x2d7cc9)break;switch(_0x14b1a6>>>0x3){case 0x1:_0x3a8bf0['data']=_0x88c130['uint32']();break;case 0x2:_0x3a8bf0['data1']=_0x88c130['bytes']();break;default:_0x88c130['skipType'](0x7&_0x14b1a6);}}return _0x3a8bf0;},_0x1fbfb6['decodeDelimited']=function(_0x242500){return _0x242500 instanceof _0x546f05||(_0x242500=new _0x546f05(_0x242500)),this['decode'](_0x242500,_0x242500['uint32']());},_0x1fbfb6['verify']=function(_0x49fe7f){return'object'!=typeof _0x49fe7f||null===_0x49fe7f?'object\x20expected':null!=_0x49fe7f['data']&&_0x49fe7f['hasOwnProperty']('data')&&!_0x1967e8['isInteger'](_0x49fe7f['data'])?'data:\x20integer\x20expected':null!=_0x49fe7f['data1']&&_0x49fe7f['hasOwnProperty']('data1')&&!(_0x49fe7f['data1']&&'number'==typeof _0x49fe7f['data1']['length']||_0x1967e8['isString'](_0x49fe7f['data1']))?'data1:\x20buffer\x20expected':null;},_0x1fbfb6['fromObject']=function(_0x4d19fa){if(_0x4d19fa instanceof _0x17fc8f['NumberBytesPacketDataMessage'])return _0x4d19fa;var _0x40f752=new _0x17fc8f['NumberBytesPacketDataMessage']();return null!=_0x4d19fa['data']&&(_0x40f752['data']=_0x4d19fa['data']>>>0x0),null!=_0x4d19fa['data1']&&('string'==typeof _0x4d19fa['data1']?_0x1967e8['base64']['decode'](_0x4d19fa['data1'],_0x40f752['data1']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x4d19fa['data1'])),0x0):_0x4d19fa['data1']['length']>=0x0&&(_0x40f752['data1']=_0x4d19fa['data1'])),_0x40f752;},_0x1fbfb6['toObject']=function(_0x3cb86c,_0x212b80){_0x212b80||(_0x212b80={});var _0x34360a={};return _0x212b80['defaults']&&(_0x34360a['data']=0x0,_0x212b80['bytes']===String?_0x34360a['data1']='':(_0x34360a['data1']=[],_0x212b80['bytes']!==Array&&(_0x34360a['data1']=_0x1967e8['newBuffer'](_0x34360a['data1'])))),null!=_0x3cb86c['data']&&_0x3cb86c['hasOwnProperty']('data')&&(_0x34360a['data']=_0x3cb86c['data']),null!=_0x3cb86c['data1']&&_0x3cb86c['hasOwnProperty']('data1')&&(_0x34360a['data1']=_0x212b80['bytes']===String?_0x1967e8['base64']['encode'](_0x3cb86c['data1'],0x0,_0x3cb86c['data1']['length']):_0x212b80['bytes']===Array?Array['prototype']['slice']['call'](_0x3cb86c['data1']):_0x3cb86c['data1']),_0x34360a;},_0x1fbfb6['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1fbfb6['getTypeUrl']=function(_0x4cdd9b){return void 0x0===_0x4cdd9b&&(_0x4cdd9b='type.googleapis.com'),_0x4cdd9b+'/NumberBytesPacketDataMessage';},_0x1fbfb6;}()),_0x17fc8f['BytesBytesPacketDataMessage']=(function(){function _0x4e8455(_0x2e722f){if(_0x2e722f){for(var _0x1583c6=Object['keys'](_0x2e722f),_0x4d7374=0x0;_0x4d7374<_0x1583c6['length'];++_0x4d7374)null!=_0x2e722f[_0x1583c6[_0x4d7374]]&&(this[_0x1583c6[_0x4d7374]]=_0x2e722f[_0x1583c6[_0x4d7374]]);}}return _0x4e8455['prototype']['data']=_0x1967e8['newBuffer']([]),_0x4e8455['prototype']['data1']=_0x1967e8['newBuffer']([]),_0x4e8455['create']=function(_0xe2b5c9){return new _0x4e8455(_0xe2b5c9);},_0x4e8455['encode']=function(_0xf4de7d,_0x2e42a6){return _0x2e42a6||(_0x2e42a6=_0x5e31a7['create']()),null!=_0xf4de7d['data']&&Object['hasOwnProperty']['call'](_0xf4de7d,'data')&&_0x2e42a6['uint32'](0xa)['bytes'](_0xf4de7d['data']),null!=_0xf4de7d['data1']&&Object['hasOwnProperty']['call'](_0xf4de7d,'data1')&&_0x2e42a6['uint32'](0x12)['bytes'](_0xf4de7d['data1']),_0x2e42a6;},_0x4e8455['encodeDelimited']=function(_0x20a8a1,_0x19ed82){return this['encode'](_0x20a8a1,_0x19ed82)['ldelim']();},_0x4e8455['decode']=function(_0x3034f4,_0x3633b9,_0x137925){_0x3034f4 instanceof _0x546f05||(_0x3034f4=_0x546f05['create'](_0x3034f4));for(var _0x3045ae=void 0x0===_0x3633b9?_0x3034f4['len']:_0x3034f4['pos']+_0x3633b9,_0x176ec1=new _0x17fc8f['BytesBytesPacketDataMessage']();_0x3034f4['pos']<_0x3045ae;){var _0x35f9a3=_0x3034f4['uint32']();if(_0x35f9a3===_0x137925)break;switch(_0x35f9a3>>>0x3){case 0x1:_0x176ec1['data']=_0x3034f4['bytes']();break;case 0x2:_0x176ec1['data1']=_0x3034f4['bytes']();break;default:_0x3034f4['skipType'](0x7&_0x35f9a3);}}return _0x176ec1;},_0x4e8455['decodeDelimited']=function(_0x2b61f2){return _0x2b61f2 instanceof _0x546f05||(_0x2b61f2=new _0x546f05(_0x2b61f2)),this['decode'](_0x2b61f2,_0x2b61f2['uint32']());},_0x4e8455['verify']=function(_0x47da2e){return'object'!=typeof _0x47da2e||null===_0x47da2e?'object\x20expected':null!=_0x47da2e['data']&&_0x47da2e['hasOwnProperty']('data')&&!(_0x47da2e['data']&&'number'==typeof _0x47da2e['data']['length']||_0x1967e8['isString'](_0x47da2e['data']))?'data:\x20buffer\x20expected':null!=_0x47da2e['data1']&&_0x47da2e['hasOwnProperty']('data1')&&!(_0x47da2e['data1']&&'number'==typeof _0x47da2e['data1']['length']||_0x1967e8['isString'](_0x47da2e['data1']))?'data1:\x20buffer\x20expected':null;},_0x4e8455['fromObject']=function(_0x3efa70){if(_0x3efa70 instanceof _0x17fc8f['BytesBytesPacketDataMessage'])return _0x3efa70;var _0x234be6=new _0x17fc8f['BytesBytesPacketDataMessage']();return null!=_0x3efa70['data']&&('string'==typeof _0x3efa70['data']?_0x1967e8['base64']['decode'](_0x3efa70['data'],_0x234be6['data']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x3efa70['data'])),0x0):_0x3efa70['data']['length']>=0x0&&(_0x234be6['data']=_0x3efa70['data'])),null!=_0x3efa70['data1']&&('string'==typeof _0x3efa70['data1']?_0x1967e8['base64']['decode'](_0x3efa70['data1'],_0x234be6['data1']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x3efa70['data1'])),0x0):_0x3efa70['data1']['length']>=0x0&&(_0x234be6['data1']=_0x3efa70['data1'])),_0x234be6;},_0x4e8455['toObject']=function(_0x191d95,_0xda3beb){_0xda3beb||(_0xda3beb={});var _0x11a285={};return _0xda3beb['defaults']&&(_0xda3beb['bytes']===String?_0x11a285['data']='':(_0x11a285['data']=[],_0xda3beb['bytes']!==Array&&(_0x11a285['data']=_0x1967e8['newBuffer'](_0x11a285['data']))),_0xda3beb['bytes']===String?_0x11a285['data1']='':(_0x11a285['data1']=[],_0xda3beb['bytes']!==Array&&(_0x11a285['data1']=_0x1967e8['newBuffer'](_0x11a285['data1'])))),null!=_0x191d95['data']&&_0x191d95['hasOwnProperty']('data')&&(_0x11a285['data']=_0xda3beb['bytes']===String?_0x1967e8['base64']['encode'](_0x191d95['data'],0x0,_0x191d95['data']['length']):_0xda3beb['bytes']===Array?Array['prototype']['slice']['call'](_0x191d95['data']):_0x191d95['data']),null!=_0x191d95['data1']&&_0x191d95['hasOwnProperty']('data1')&&(_0x11a285['data1']=_0xda3beb['bytes']===String?_0x1967e8['base64']['encode'](_0x191d95['data1'],0x0,_0x191d95['data1']['length']):_0xda3beb['bytes']===Array?Array['prototype']['slice']['call'](_0x191d95['data1']):_0x191d95['data1']),_0x11a285;},_0x4e8455['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4e8455['getTypeUrl']=function(_0x5eaae5){return void 0x0===_0x5eaae5&&(_0x5eaae5='type.googleapis.com'),_0x5eaae5+'/BytesBytesPacketDataMessage';},_0x4e8455;}()),_0x17fc8f['ChannelMessage']=(function(){function _0x3b9518(_0x332b8c){if(_0x332b8c){for(var _0x58d204=Object['keys'](_0x332b8c),_0x5bdb3f=0x0;_0x5bdb3f<_0x58d204['length'];++_0x5bdb3f)null!=_0x332b8c[_0x58d204[_0x5bdb3f]]&&(this[_0x58d204[_0x5bdb3f]]=_0x332b8c[_0x58d204[_0x5bdb3f]]);}}return _0x3b9518['prototype']['type']=0x0,_0x3b9518['prototype']['socketId']='',_0x3b9518['prototype']['data']=_0x1967e8['newBuffer']([]),_0x3b9518['create']=function(_0x31e67a){return new _0x3b9518(_0x31e67a);},_0x3b9518['encode']=function(_0xb1e20e,_0x4da166){return _0x4da166||(_0x4da166=_0x5e31a7['create']()),null!=_0xb1e20e['type']&&Object['hasOwnProperty']['call'](_0xb1e20e,'type')&&_0x4da166['uint32'](0x8)['uint32'](_0xb1e20e['type']),null!=_0xb1e20e['socketId']&&Object['hasOwnProperty']['call'](_0xb1e20e,'socketId')&&_0x4da166['uint32'](0x12)['string'](_0xb1e20e['socketId']),null!=_0xb1e20e['data']&&Object['hasOwnProperty']['call'](_0xb1e20e,'data')&&_0x4da166['uint32'](0x1a)['bytes'](_0xb1e20e['data']),_0x4da166;},_0x3b9518['encodeDelimited']=function(_0x3f1915,_0x22146b){return this['encode'](_0x3f1915,_0x22146b)['ldelim']();},_0x3b9518['decode']=function(_0x5a13a2,_0x1984a8,_0x1d35aa){_0x5a13a2 instanceof _0x546f05||(_0x5a13a2=_0x546f05['create'](_0x5a13a2));for(var _0x2296cf=void 0x0===_0x1984a8?_0x5a13a2['len']:_0x5a13a2['pos']+_0x1984a8,_0x572fa1=new _0x17fc8f['ChannelMessage']();_0x5a13a2['pos']<_0x2296cf;){var _0x268556=_0x5a13a2['uint32']();if(_0x268556===_0x1d35aa)break;switch(_0x268556>>>0x3){case 0x1:_0x572fa1['type']=_0x5a13a2['uint32']();break;case 0x2:_0x572fa1['socketId']=_0x5a13a2['string']();break;case 0x3:_0x572fa1['data']=_0x5a13a2['bytes']();break;default:_0x5a13a2['skipType'](0x7&_0x268556);}}return _0x572fa1;},_0x3b9518['decodeDelimited']=function(_0x31db96){return _0x31db96 instanceof _0x546f05||(_0x31db96=new _0x546f05(_0x31db96)),this['decode'](_0x31db96,_0x31db96['uint32']());},_0x3b9518['verify']=function(_0x4d21a9){return'object'!=typeof _0x4d21a9||null===_0x4d21a9?'object\x20expected':null!=_0x4d21a9['type']&&_0x4d21a9['hasOwnProperty']('type')&&!_0x1967e8['isInteger'](_0x4d21a9['type'])?'type:\x20integer\x20expected':null!=_0x4d21a9['socketId']&&_0x4d21a9['hasOwnProperty']('socketId')&&!_0x1967e8['isString'](_0x4d21a9['socketId'])?'socketId:\x20string\x20expected':null!=_0x4d21a9['data']&&_0x4d21a9['hasOwnProperty']('data')&&!(_0x4d21a9['data']&&'number'==typeof _0x4d21a9['data']['length']||_0x1967e8['isString'](_0x4d21a9['data']))?'data:\x20buffer\x20expected':null;},_0x3b9518['fromObject']=function(_0x22b908){if(_0x22b908 instanceof _0x17fc8f['ChannelMessage'])return _0x22b908;var _0x507c12=new _0x17fc8f['ChannelMessage']();return null!=_0x22b908['type']&&(_0x507c12['type']=_0x22b908['type']>>>0x0),null!=_0x22b908['socketId']&&(_0x507c12['socketId']=String(_0x22b908['socketId'])),null!=_0x22b908['data']&&('string'==typeof _0x22b908['data']?_0x1967e8['base64']['decode'](_0x22b908['data'],_0x507c12['data']=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x22b908['data'])),0x0):_0x22b908['data']['length']>=0x0&&(_0x507c12['data']=_0x22b908['data'])),_0x507c12;},_0x3b9518['toObject']=function(_0x571c88,_0x5131ef){_0x5131ef||(_0x5131ef={});var _0x49697b={};return _0x5131ef['defaults']&&(_0x49697b['type']=0x0,_0x49697b['socketId']='',_0x5131ef['bytes']===String?_0x49697b['data']='':(_0x49697b['data']=[],_0x5131ef['bytes']!==Array&&(_0x49697b['data']=_0x1967e8['newBuffer'](_0x49697b['data'])))),null!=_0x571c88['type']&&_0x571c88['hasOwnProperty']('type')&&(_0x49697b['type']=_0x571c88['type']),null!=_0x571c88['socketId']&&_0x571c88['hasOwnProperty']('socketId')&&(_0x49697b['socketId']=_0x571c88['socketId']),null!=_0x571c88['data']&&_0x571c88['hasOwnProperty']('data')&&(_0x49697b['data']=_0x5131ef['bytes']===String?_0x1967e8['base64']['encode'](_0x571c88['data'],0x0,_0x571c88['data']['length']):_0x5131ef['bytes']===Array?Array['prototype']['slice']['call'](_0x571c88['data']):_0x571c88['data']),_0x49697b;},_0x3b9518['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3b9518['getTypeUrl']=function(_0x2fbc79){return void 0x0===_0x2fbc79&&(_0x2fbc79='type.googleapis.com'),_0x2fbc79+'/ChannelMessage';},_0x3b9518;}()),_0x17fc8f['GetUserResponse']=(function(){function _0x511075(_0x2b7edd){if(this['attributes']=[],_0x2b7edd){for(var _0x1dace0=Object['keys'](_0x2b7edd),_0x5dfea0=0x0;_0x5dfea0<_0x1dace0['length'];++_0x5dfea0)null!=_0x2b7edd[_0x1dace0[_0x5dfea0]]&&(this[_0x1dace0[_0x5dfea0]]=_0x2b7edd[_0x1dace0[_0x5dfea0]]);}}return _0x511075['prototype']['attributes']=_0x1967e8['emptyArray'],_0x511075['create']=function(_0x4d4af8){return new _0x511075(_0x4d4af8);},_0x511075['encode']=function(_0x4aa2d0,_0x516670){if(_0x516670||(_0x516670=_0x5e31a7['create']()),null!=_0x4aa2d0['attributes']&&_0x4aa2d0['attributes']['length']){for(var _0x5beeab=0x0;_0x5beeab<_0x4aa2d0['attributes']['length'];++_0x5beeab)_0x17fc8f['KeyValueDescriptor']['encode'](_0x4aa2d0['attributes'][_0x5beeab],_0x516670['uint32'](0xa)['fork']())['ldelim']();}return _0x516670;},_0x511075['encodeDelimited']=function(_0x144a1c,_0x459aa5){return this['encode'](_0x144a1c,_0x459aa5)['ldelim']();},_0x511075['decode']=function(_0x7ba5fb,_0x31b07c,_0x4653d6){_0x7ba5fb instanceof _0x546f05||(_0x7ba5fb=_0x546f05['create'](_0x7ba5fb));for(var _0x654f47=void 0x0===_0x31b07c?_0x7ba5fb['len']:_0x7ba5fb['pos']+_0x31b07c,_0x3cd611=new _0x17fc8f['GetUserResponse']();_0x7ba5fb['pos']<_0x654f47;){var _0x49d491=_0x7ba5fb['uint32']();if(_0x49d491===_0x4653d6)break;_0x49d491>>>0x3==0x1?(_0x3cd611['attributes']&&_0x3cd611['attributes']['length']||(_0x3cd611['attributes']=[]),_0x3cd611['attributes']['push'](_0x17fc8f['KeyValueDescriptor']['decode'](_0x7ba5fb,_0x7ba5fb['uint32']()))):_0x7ba5fb['skipType'](0x7&_0x49d491);}return _0x3cd611;},_0x511075['decodeDelimited']=function(_0x43211a){return _0x43211a instanceof _0x546f05||(_0x43211a=new _0x546f05(_0x43211a)),this['decode'](_0x43211a,_0x43211a['uint32']());},_0x511075['verify']=function(_0x2d202b){if('object'!=typeof _0x2d202b||null===_0x2d202b)return'object\x20expected';if(null!=_0x2d202b['attributes']&&_0x2d202b['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x2d202b['attributes']))return'attributes:\x20array\x20expected';for(var _0x350d11=0x0;_0x350d11<_0x2d202b['attributes']['length'];++_0x350d11){var _0x3ddcd6=_0x17fc8f['KeyValueDescriptor']['verify'](_0x2d202b['attributes'][_0x350d11]);if(_0x3ddcd6)return'attributes.'+_0x3ddcd6;}}return null;},_0x511075['fromObject']=function(_0x13cced){if(_0x13cced instanceof _0x17fc8f['GetUserResponse'])return _0x13cced;var _0x12fa77=new _0x17fc8f['GetUserResponse']();if(_0x13cced['attributes']){if(!Array['isArray'](_0x13cced['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x12fa77['attributes']=[];for(var _0x22a2fd=0x0;_0x22a2fd<_0x13cced['attributes']['length'];++_0x22a2fd){if('object'!=typeof _0x13cced['attributes'][_0x22a2fd])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x12fa77['attributes'][_0x22a2fd]=_0x17fc8f['KeyValueDescriptor']['fromObject'](_0x13cced['attributes'][_0x22a2fd]);}}return _0x12fa77;},_0x511075['toObject']=function(_0x5270cc,_0x31f95e){_0x31f95e||(_0x31f95e={});var _0x55227f={};if((_0x31f95e['arrays']||_0x31f95e['defaults'])&&(_0x55227f['attributes']=[]),_0x5270cc['attributes']&&_0x5270cc['attributes']['length']){_0x55227f['attributes']=[];for(var _0xb09c15=0x0;_0xb09c15<_0x5270cc['attributes']['length'];++_0xb09c15)_0x55227f['attributes'][_0xb09c15]=_0x17fc8f['KeyValueDescriptor']['toObject'](_0x5270cc['attributes'][_0xb09c15],_0x31f95e);}return _0x55227f;},_0x511075['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x511075['getTypeUrl']=function(_0x13a0b2){return void 0x0===_0x13a0b2&&(_0x13a0b2='type.googleapis.com'),_0x13a0b2+'/GetUserResponse';},_0x511075;}()),_0x17fc8f['GetManyUsersResponse']=(function(){function _0x6f892(_0x33b00f){if(this['users']=[],_0x33b00f){for(var _0x27b966=Object['keys'](_0x33b00f),_0x47ded3=0x0;_0x47ded3<_0x27b966['length'];++_0x47ded3)null!=_0x33b00f[_0x27b966[_0x47ded3]]&&(this[_0x27b966[_0x47ded3]]=_0x33b00f[_0x27b966[_0x47ded3]]);}}return _0x6f892['prototype']['users']=_0x1967e8['emptyArray'],_0x6f892['create']=function(_0x2353db){return new _0x6f892(_0x2353db);},_0x6f892['encode']=function(_0x191d6d,_0x26f420){if(_0x26f420||(_0x26f420=_0x5e31a7['create']()),null!=_0x191d6d['users']&&_0x191d6d['users']['length']){for(var _0x2e0595=0x0;_0x2e0595<_0x191d6d['users']['length'];++_0x2e0595)_0x17fc8f['UserDescriptor']['encode'](_0x191d6d['users'][_0x2e0595],_0x26f420['uint32'](0xa)['fork']())['ldelim']();}return _0x26f420;},_0x6f892['encodeDelimited']=function(_0x3df8e7,_0xd7fb67){return this['encode'](_0x3df8e7,_0xd7fb67)['ldelim']();},_0x6f892['decode']=function(_0x130d0c,_0x37383a,_0x2291ec){_0x130d0c instanceof _0x546f05||(_0x130d0c=_0x546f05['create'](_0x130d0c));for(var _0x1d4d0f=void 0x0===_0x37383a?_0x130d0c['len']:_0x130d0c['pos']+_0x37383a,_0x47e96b=new _0x17fc8f['GetManyUsersResponse']();_0x130d0c['pos']<_0x1d4d0f;){var _0x49947f=_0x130d0c['uint32']();if(_0x49947f===_0x2291ec)break;_0x49947f>>>0x3==0x1?(_0x47e96b['users']&&_0x47e96b['users']['length']||(_0x47e96b['users']=[]),_0x47e96b['users']['push'](_0x17fc8f['UserDescriptor']['decode'](_0x130d0c,_0x130d0c['uint32']()))):_0x130d0c['skipType'](0x7&_0x49947f);}return _0x47e96b;},_0x6f892['decodeDelimited']=function(_0x2f7677){return _0x2f7677 instanceof _0x546f05||(_0x2f7677=new _0x546f05(_0x2f7677)),this['decode'](_0x2f7677,_0x2f7677['uint32']());},_0x6f892['verify']=function(_0x35d6fb){if('object'!=typeof _0x35d6fb||null===_0x35d6fb)return'object\x20expected';if(null!=_0x35d6fb['users']&&_0x35d6fb['hasOwnProperty']('users')){if(!Array['isArray'](_0x35d6fb['users']))return'users:\x20array\x20expected';for(var _0x38daea=0x0;_0x38daea<_0x35d6fb['users']['length'];++_0x38daea){var _0x3a8806=_0x17fc8f['UserDescriptor']['verify'](_0x35d6fb['users'][_0x38daea]);if(_0x3a8806)return'users.'+_0x3a8806;}}return null;},_0x6f892['fromObject']=function(_0x5a7e67){if(_0x5a7e67 instanceof _0x17fc8f['GetManyUsersResponse'])return _0x5a7e67;var _0x434427=new _0x17fc8f['GetManyUsersResponse']();if(_0x5a7e67['users']){if(!Array['isArray'](_0x5a7e67['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x434427['users']=[];for(var _0x10d9c7=0x0;_0x10d9c7<_0x5a7e67['users']['length'];++_0x10d9c7){if('object'!=typeof _0x5a7e67['users'][_0x10d9c7])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x434427['users'][_0x10d9c7]=_0x17fc8f['UserDescriptor']['fromObject'](_0x5a7e67['users'][_0x10d9c7]);}}return _0x434427;},_0x6f892['toObject']=function(_0x5b366d,_0x5adcb4){_0x5adcb4||(_0x5adcb4={});var _0xe922ce={};if((_0x5adcb4['arrays']||_0x5adcb4['defaults'])&&(_0xe922ce['users']=[]),_0x5b366d['users']&&_0x5b366d['users']['length']){_0xe922ce['users']=[];for(var _0x17bea1=0x0;_0x17bea1<_0x5b366d['users']['length'];++_0x17bea1)_0xe922ce['users'][_0x17bea1]=_0x17fc8f['UserDescriptor']['toObject'](_0x5b366d['users'][_0x17bea1],_0x5adcb4);}return _0xe922ce;},_0x6f892['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x6f892['getTypeUrl']=function(_0x423fcc){return void 0x0===_0x423fcc&&(_0x423fcc='type.googleapis.com'),_0x423fcc+'/GetManyUsersResponse';},_0x6f892;}()),_0x17fc8f['GetUserMessage']=(function(){function _0x4ac5bb(_0x274682){if(_0x274682){for(var _0x2a2ca5=Object['keys'](_0x274682),_0x2762c4=0x0;_0x2762c4<_0x2a2ca5['length'];++_0x2762c4)null!=_0x274682[_0x2a2ca5[_0x2762c4]]&&(this[_0x2a2ca5[_0x2762c4]]=_0x274682[_0x2a2ca5[_0x2762c4]]);}}return _0x4ac5bb['prototype']['id']='',_0x4ac5bb['create']=function(_0x3f0ed1){return new _0x4ac5bb(_0x3f0ed1);},_0x4ac5bb['encode']=function(_0x24e73c,_0x4a8c42){return _0x4a8c42||(_0x4a8c42=_0x5e31a7['create']()),null!=_0x24e73c['id']&&Object['hasOwnProperty']['call'](_0x24e73c,'id')&&_0x4a8c42['uint32'](0xa)['string'](_0x24e73c['id']),_0x4a8c42;},_0x4ac5bb['encodeDelimited']=function(_0x47a16b,_0x501b61){return this['encode'](_0x47a16b,_0x501b61)['ldelim']();},_0x4ac5bb['decode']=function(_0x2057bf,_0x31d383,_0x2bda55){_0x2057bf instanceof _0x546f05||(_0x2057bf=_0x546f05['create'](_0x2057bf));for(var _0x431a0f=void 0x0===_0x31d383?_0x2057bf['len']:_0x2057bf['pos']+_0x31d383,_0x207907=new _0x17fc8f['GetUserMessage']();_0x2057bf['pos']<_0x431a0f;){var _0x78cc=_0x2057bf['uint32']();if(_0x78cc===_0x2bda55)break;_0x78cc>>>0x3==0x1?_0x207907['id']=_0x2057bf['string']():_0x2057bf['skipType'](0x7&_0x78cc);}return _0x207907;},_0x4ac5bb['decodeDelimited']=function(_0xa200c5){return _0xa200c5 instanceof _0x546f05||(_0xa200c5=new _0x546f05(_0xa200c5)),this['decode'](_0xa200c5,_0xa200c5['uint32']());},_0x4ac5bb['verify']=function(_0x938eaf){return'object'!=typeof _0x938eaf||null===_0x938eaf?'object\x20expected':null!=_0x938eaf['id']&&_0x938eaf['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x938eaf['id'])?'id:\x20string\x20expected':null;},_0x4ac5bb['fromObject']=function(_0xffe3a9){if(_0xffe3a9 instanceof _0x17fc8f['GetUserMessage'])return _0xffe3a9;var _0x2e72a8=new _0x17fc8f['GetUserMessage']();return null!=_0xffe3a9['id']&&(_0x2e72a8['id']=String(_0xffe3a9['id'])),_0x2e72a8;},_0x4ac5bb['toObject']=function(_0x3a286c,_0x434d4){_0x434d4||(_0x434d4={});var _0x3e2a5b={};return _0x434d4['defaults']&&(_0x3e2a5b['id']=''),null!=_0x3a286c['id']&&_0x3a286c['hasOwnProperty']('id')&&(_0x3e2a5b['id']=_0x3a286c['id']),_0x3e2a5b;},_0x4ac5bb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ac5bb['getTypeUrl']=function(_0x1e43b7){return void 0x0===_0x1e43b7&&(_0x1e43b7='type.googleapis.com'),_0x1e43b7+'/GetUserMessage';},_0x4ac5bb;}()),_0x17fc8f['GetManyUsersMessage']=(function(){function _0x53cfd0(_0x52741c){if(this['ids']=[],_0x52741c){for(var _0x4bc981=Object['keys'](_0x52741c),_0x51e079=0x0;_0x51e079<_0x4bc981['length'];++_0x51e079)null!=_0x52741c[_0x4bc981[_0x51e079]]&&(this[_0x4bc981[_0x51e079]]=_0x52741c[_0x4bc981[_0x51e079]]);}}return _0x53cfd0['prototype']['ids']=_0x1967e8['emptyArray'],_0x53cfd0['create']=function(_0x9c729f){return new _0x53cfd0(_0x9c729f);},_0x53cfd0['encode']=function(_0xd59905,_0x29cf4a){if(_0x29cf4a||(_0x29cf4a=_0x5e31a7['create']()),null!=_0xd59905['ids']&&_0xd59905['ids']['length']){for(var _0xc1359c=0x0;_0xc1359c<_0xd59905['ids']['length'];++_0xc1359c)_0x29cf4a['uint32'](0xa)['string'](_0xd59905['ids'][_0xc1359c]);}return _0x29cf4a;},_0x53cfd0['encodeDelimited']=function(_0x13943a,_0x471d9a){return this['encode'](_0x13943a,_0x471d9a)['ldelim']();},_0x53cfd0['decode']=function(_0x3f4e4a,_0x31e8cd,_0x3675ff){_0x3f4e4a instanceof _0x546f05||(_0x3f4e4a=_0x546f05['create'](_0x3f4e4a));for(var _0x34a527=void 0x0===_0x31e8cd?_0x3f4e4a['len']:_0x3f4e4a['pos']+_0x31e8cd,_0x1a9423=new _0x17fc8f['GetManyUsersMessage']();_0x3f4e4a['pos']<_0x34a527;){var _0x1c12d5=_0x3f4e4a['uint32']();if(_0x1c12d5===_0x3675ff)break;_0x1c12d5>>>0x3==0x1?(_0x1a9423['ids']&&_0x1a9423['ids']['length']||(_0x1a9423['ids']=[]),_0x1a9423['ids']['push'](_0x3f4e4a['string']())):_0x3f4e4a['skipType'](0x7&_0x1c12d5);}return _0x1a9423;},_0x53cfd0['decodeDelimited']=function(_0x43b97b){return _0x43b97b instanceof _0x546f05||(_0x43b97b=new _0x546f05(_0x43b97b)),this['decode'](_0x43b97b,_0x43b97b['uint32']());},_0x53cfd0['verify']=function(_0x2b24c6){if('object'!=typeof _0x2b24c6||null===_0x2b24c6)return'object\x20expected';if(null!=_0x2b24c6['ids']&&_0x2b24c6['hasOwnProperty']('ids')){if(!Array['isArray'](_0x2b24c6['ids']))return'ids:\x20array\x20expected';for(var _0x2449ff=0x0;_0x2449ff<_0x2b24c6['ids']['length'];++_0x2449ff)if(!_0x1967e8['isString'](_0x2b24c6['ids'][_0x2449ff]))return'ids:\x20string[]\x20expected';}return null;},_0x53cfd0['fromObject']=function(_0x2e83d2){if(_0x2e83d2 instanceof _0x17fc8f['GetManyUsersMessage'])return _0x2e83d2;var _0xb5cfdd=new _0x17fc8f['GetManyUsersMessage']();if(_0x2e83d2['ids']){if(!Array['isArray'](_0x2e83d2['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0xb5cfdd['ids']=[];for(var _0x158c3a=0x0;_0x158c3a<_0x2e83d2['ids']['length'];++_0x158c3a)_0xb5cfdd['ids'][_0x158c3a]=String(_0x2e83d2['ids'][_0x158c3a]);}return _0xb5cfdd;},_0x53cfd0['toObject']=function(_0x33046d,_0x2a521e){_0x2a521e||(_0x2a521e={});var _0x81e77d={};if((_0x2a521e['arrays']||_0x2a521e['defaults'])&&(_0x81e77d['ids']=[]),_0x33046d['ids']&&_0x33046d['ids']['length']){_0x81e77d['ids']=[];for(var _0x2beb85=0x0;_0x2beb85<_0x33046d['ids']['length'];++_0x2beb85)_0x81e77d['ids'][_0x2beb85]=_0x33046d['ids'][_0x2beb85];}return _0x81e77d;},_0x53cfd0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53cfd0['getTypeUrl']=function(_0x2139b2){return void 0x0===_0x2139b2&&(_0x2139b2='type.googleapis.com'),_0x2139b2+'/GetManyUsersMessage';},_0x53cfd0;}()),_0x17fc8f['UserDescriptor']=(function(){function _0x445c66(_0x22b556){if(this['attributes']=[],_0x22b556){for(var _0x3b0dcc=Object['keys'](_0x22b556),_0x2eb1d2=0x0;_0x2eb1d2<_0x3b0dcc['length'];++_0x2eb1d2)null!=_0x22b556[_0x3b0dcc[_0x2eb1d2]]&&(this[_0x3b0dcc[_0x2eb1d2]]=_0x22b556[_0x3b0dcc[_0x2eb1d2]]);}}return _0x445c66['prototype']['attributes']=_0x1967e8['emptyArray'],_0x445c66['create']=function(_0xaa75ac){return new _0x445c66(_0xaa75ac);},_0x445c66['encode']=function(_0x5cdd4f,_0xb12e2d){if(_0xb12e2d||(_0xb12e2d=_0x5e31a7['create']()),null!=_0x5cdd4f['attributes']&&_0x5cdd4f['attributes']['length']){for(var _0x2c2ea8=0x0;_0x2c2ea8<_0x5cdd4f['attributes']['length'];++_0x2c2ea8)_0x17fc8f['KeyValueDescriptor']['encode'](_0x5cdd4f['attributes'][_0x2c2ea8],_0xb12e2d['uint32'](0xa)['fork']())['ldelim']();}return _0xb12e2d;},_0x445c66['encodeDelimited']=function(_0x4ad2b1,_0x326a8a){return this['encode'](_0x4ad2b1,_0x326a8a)['ldelim']();},_0x445c66['decode']=function(_0x45084e,_0x4ba892,_0xf494fe){_0x45084e instanceof _0x546f05||(_0x45084e=_0x546f05['create'](_0x45084e));for(var _0x3d5172=void 0x0===_0x4ba892?_0x45084e['len']:_0x45084e['pos']+_0x4ba892,_0x337705=new _0x17fc8f['UserDescriptor']();_0x45084e['pos']<_0x3d5172;){var _0x164ab2=_0x45084e['uint32']();if(_0x164ab2===_0xf494fe)break;_0x164ab2>>>0x3==0x1?(_0x337705['attributes']&&_0x337705['attributes']['length']||(_0x337705['attributes']=[]),_0x337705['attributes']['push'](_0x17fc8f['KeyValueDescriptor']['decode'](_0x45084e,_0x45084e['uint32']()))):_0x45084e['skipType'](0x7&_0x164ab2);}return _0x337705;},_0x445c66['decodeDelimited']=function(_0x686003){return _0x686003 instanceof _0x546f05||(_0x686003=new _0x546f05(_0x686003)),this['decode'](_0x686003,_0x686003['uint32']());},_0x445c66['verify']=function(_0x5707fb){if('object'!=typeof _0x5707fb||null===_0x5707fb)return'object\x20expected';if(null!=_0x5707fb['attributes']&&_0x5707fb['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x5707fb['attributes']))return'attributes:\x20array\x20expected';for(var _0x727047=0x0;_0x727047<_0x5707fb['attributes']['length'];++_0x727047){var _0x376d7f=_0x17fc8f['KeyValueDescriptor']['verify'](_0x5707fb['attributes'][_0x727047]);if(_0x376d7f)return'attributes.'+_0x376d7f;}}return null;},_0x445c66['fromObject']=function(_0x273bab){if(_0x273bab instanceof _0x17fc8f['UserDescriptor'])return _0x273bab;var _0x2611ad=new _0x17fc8f['UserDescriptor']();if(_0x273bab['attributes']){if(!Array['isArray'](_0x273bab['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x2611ad['attributes']=[];for(var _0x4d5b40=0x0;_0x4d5b40<_0x273bab['attributes']['length'];++_0x4d5b40){if('object'!=typeof _0x273bab['attributes'][_0x4d5b40])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x2611ad['attributes'][_0x4d5b40]=_0x17fc8f['KeyValueDescriptor']['fromObject'](_0x273bab['attributes'][_0x4d5b40]);}}return _0x2611ad;},_0x445c66['toObject']=function(_0x4e37de,_0x5047fd){_0x5047fd||(_0x5047fd={});var _0x2b161c={};if((_0x5047fd['arrays']||_0x5047fd['defaults'])&&(_0x2b161c['attributes']=[]),_0x4e37de['attributes']&&_0x4e37de['attributes']['length']){_0x2b161c['attributes']=[];for(var _0x134be1=0x0;_0x134be1<_0x4e37de['attributes']['length'];++_0x134be1)_0x2b161c['attributes'][_0x134be1]=_0x17fc8f['KeyValueDescriptor']['toObject'](_0x4e37de['attributes'][_0x134be1],_0x5047fd);}return _0x2b161c;},_0x445c66['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x445c66['getTypeUrl']=function(_0x21e49b){return void 0x0===_0x21e49b&&(_0x21e49b='type.googleapis.com'),_0x21e49b+'/UserDescriptor';},_0x445c66;}()),_0x17fc8f['TrackChangesGetSuggestionResponse']=(function(){function _0x3a9021(_0x3d421f){if(_0x3d421f){for(var _0x434c96=Object['keys'](_0x3d421f),_0x2d7f84=0x0;_0x2d7f84<_0x434c96['length'];++_0x2d7f84)null!=_0x3d421f[_0x434c96[_0x2d7f84]]&&(this[_0x434c96[_0x2d7f84]]=_0x3d421f[_0x434c96[_0x2d7f84]]);}}return _0x3a9021['prototype']['id']='',_0x3a9021['prototype']['authorId']='',_0x3a9021['prototype']['type']='',_0x3a9021['prototype']['createdAt']='',_0x3a9021['prototype']['data']='',_0x3a9021['prototype']['hasComments']=!0x1,_0x3a9021['prototype']['state']='',_0x3a9021['prototype']['attributes']='',_0x3a9021['create']=function(_0x461f87){return new _0x3a9021(_0x461f87);},_0x3a9021['encode']=function(_0x2f54d5,_0x49efbf){return _0x49efbf||(_0x49efbf=_0x5e31a7['create']()),null!=_0x2f54d5['id']&&Object['hasOwnProperty']['call'](_0x2f54d5,'id')&&_0x49efbf['uint32'](0xa)['string'](_0x2f54d5['id']),null!=_0x2f54d5['authorId']&&Object['hasOwnProperty']['call'](_0x2f54d5,'authorId')&&_0x49efbf['uint32'](0x12)['string'](_0x2f54d5['authorId']),null!=_0x2f54d5['type']&&Object['hasOwnProperty']['call'](_0x2f54d5,'type')&&_0x49efbf['uint32'](0x1a)['string'](_0x2f54d5['type']),null!=_0x2f54d5['createdAt']&&Object['hasOwnProperty']['call'](_0x2f54d5,'createdAt')&&_0x49efbf['uint32'](0x22)['string'](_0x2f54d5['createdAt']),null!=_0x2f54d5['data']&&Object['hasOwnProperty']['call'](_0x2f54d5,'data')&&_0x49efbf['uint32'](0x2a)['string'](_0x2f54d5['data']),null!=_0x2f54d5['hasComments']&&Object['hasOwnProperty']['call'](_0x2f54d5,'hasComments')&&_0x49efbf['uint32'](0x30)['bool'](_0x2f54d5['hasComments']),null!=_0x2f54d5['state']&&Object['hasOwnProperty']['call'](_0x2f54d5,'state')&&_0x49efbf['uint32'](0x3a)['string'](_0x2f54d5['state']),null!=_0x2f54d5['attributes']&&Object['hasOwnProperty']['call'](_0x2f54d5,'attributes')&&_0x49efbf['uint32'](0x42)['string'](_0x2f54d5['attributes']),_0x49efbf;},_0x3a9021['encodeDelimited']=function(_0x981af1,_0x49f01a){return this['encode'](_0x981af1,_0x49f01a)['ldelim']();},_0x3a9021['decode']=function(_0x530e25,_0x3fc980,_0x56f0f3){_0x530e25 instanceof _0x546f05||(_0x530e25=_0x546f05['create'](_0x530e25));for(var _0xddaf0d=void 0x0===_0x3fc980?_0x530e25['len']:_0x530e25['pos']+_0x3fc980,_0xdd3a7e=new _0x17fc8f['TrackChangesGetSuggestionResponse']();_0x530e25['pos']<_0xddaf0d;){var _0xd160a8=_0x530e25['uint32']();if(_0xd160a8===_0x56f0f3)break;switch(_0xd160a8>>>0x3){case 0x1:_0xdd3a7e['id']=_0x530e25['string']();break;case 0x2:_0xdd3a7e['authorId']=_0x530e25['string']();break;case 0x3:_0xdd3a7e['type']=_0x530e25['string']();break;case 0x4:_0xdd3a7e['createdAt']=_0x530e25['string']();break;case 0x5:_0xdd3a7e['data']=_0x530e25['string']();break;case 0x6:_0xdd3a7e['hasComments']=_0x530e25['bool']();break;case 0x7:_0xdd3a7e['state']=_0x530e25['string']();break;case 0x8:_0xdd3a7e['attributes']=_0x530e25['string']();break;default:_0x530e25['skipType'](0x7&_0xd160a8);}}return _0xdd3a7e;},_0x3a9021['decodeDelimited']=function(_0x1ead98){return _0x1ead98 instanceof _0x546f05||(_0x1ead98=new _0x546f05(_0x1ead98)),this['decode'](_0x1ead98,_0x1ead98['uint32']());},_0x3a9021['verify']=function(_0x5d14d5){return'object'!=typeof _0x5d14d5||null===_0x5d14d5?'object\x20expected':null!=_0x5d14d5['id']&&_0x5d14d5['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x5d14d5['id'])?'id:\x20string\x20expected':null!=_0x5d14d5['authorId']&&_0x5d14d5['hasOwnProperty']('authorId')&&!_0x1967e8['isString'](_0x5d14d5['authorId'])?'authorId:\x20string\x20expected':null!=_0x5d14d5['type']&&_0x5d14d5['hasOwnProperty']('type')&&!_0x1967e8['isString'](_0x5d14d5['type'])?'type:\x20string\x20expected':null!=_0x5d14d5['createdAt']&&_0x5d14d5['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x5d14d5['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5d14d5['data']&&_0x5d14d5['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x5d14d5['data'])?'data:\x20string\x20expected':null!=_0x5d14d5['hasComments']&&_0x5d14d5['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5d14d5['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5d14d5['state']&&_0x5d14d5['hasOwnProperty']('state')&&!_0x1967e8['isString'](_0x5d14d5['state'])?'state:\x20string\x20expected':null!=_0x5d14d5['attributes']&&_0x5d14d5['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x5d14d5['attributes'])?'attributes:\x20string\x20expected':null;},_0x3a9021['fromObject']=function(_0x206e84){if(_0x206e84 instanceof _0x17fc8f['TrackChangesGetSuggestionResponse'])return _0x206e84;var _0x2ed874=new _0x17fc8f['TrackChangesGetSuggestionResponse']();return null!=_0x206e84['id']&&(_0x2ed874['id']=String(_0x206e84['id'])),null!=_0x206e84['authorId']&&(_0x2ed874['authorId']=String(_0x206e84['authorId'])),null!=_0x206e84['type']&&(_0x2ed874['type']=String(_0x206e84['type'])),null!=_0x206e84['createdAt']&&(_0x2ed874['createdAt']=String(_0x206e84['createdAt'])),null!=_0x206e84['data']&&(_0x2ed874['data']=String(_0x206e84['data'])),null!=_0x206e84['hasComments']&&(_0x2ed874['hasComments']=Boolean(_0x206e84['hasComments'])),null!=_0x206e84['state']&&(_0x2ed874['state']=String(_0x206e84['state'])),null!=_0x206e84['attributes']&&(_0x2ed874['attributes']=String(_0x206e84['attributes'])),_0x2ed874;},_0x3a9021['toObject']=function(_0x433be9,_0x32d19f){_0x32d19f||(_0x32d19f={});var _0x29faa4={};return _0x32d19f['defaults']&&(_0x29faa4['id']='',_0x29faa4['authorId']='',_0x29faa4['type']='',_0x29faa4['createdAt']='',_0x29faa4['data']='',_0x29faa4['hasComments']=!0x1,_0x29faa4['state']='',_0x29faa4['attributes']=''),null!=_0x433be9['id']&&_0x433be9['hasOwnProperty']('id')&&(_0x29faa4['id']=_0x433be9['id']),null!=_0x433be9['authorId']&&_0x433be9['hasOwnProperty']('authorId')&&(_0x29faa4['authorId']=_0x433be9['authorId']),null!=_0x433be9['type']&&_0x433be9['hasOwnProperty']('type')&&(_0x29faa4['type']=_0x433be9['type']),null!=_0x433be9['createdAt']&&_0x433be9['hasOwnProperty']('createdAt')&&(_0x29faa4['createdAt']=_0x433be9['createdAt']),null!=_0x433be9['data']&&_0x433be9['hasOwnProperty']('data')&&(_0x29faa4['data']=_0x433be9['data']),null!=_0x433be9['hasComments']&&_0x433be9['hasOwnProperty']('hasComments')&&(_0x29faa4['hasComments']=_0x433be9['hasComments']),null!=_0x433be9['state']&&_0x433be9['hasOwnProperty']('state')&&(_0x29faa4['state']=_0x433be9['state']),null!=_0x433be9['attributes']&&_0x433be9['hasOwnProperty']('attributes')&&(_0x29faa4['attributes']=_0x433be9['attributes']),_0x29faa4;},_0x3a9021['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a9021['getTypeUrl']=function(_0x44de9c){return void 0x0===_0x44de9c&&(_0x44de9c='type.googleapis.com'),_0x44de9c+'/TrackChangesGetSuggestionResponse';},_0x3a9021;}()),_0x17fc8f['TrackChangesGetAllSuggestionsResponse']=(function(){function _0x200253(_0x1a1467){if(this['suggestions']=[],this['suggestionsV2']=[],_0x1a1467){for(var _0x28941f=Object['keys'](_0x1a1467),_0x2fb7ae=0x0;_0x2fb7ae<_0x28941f['length'];++_0x2fb7ae)null!=_0x1a1467[_0x28941f[_0x2fb7ae]]&&(this[_0x28941f[_0x2fb7ae]]=_0x1a1467[_0x28941f[_0x2fb7ae]]);}}return _0x200253['prototype']['suggestions']=_0x1967e8['emptyArray'],_0x200253['prototype']['suggestionsV2']=_0x1967e8['emptyArray'],_0x200253['create']=function(_0x2b685f){return new _0x200253(_0x2b685f);},_0x200253['encode']=function(_0x3d07ab,_0x49b643){if(_0x49b643||(_0x49b643=_0x5e31a7['create']()),null!=_0x3d07ab['suggestions']&&_0x3d07ab['suggestions']['length']){for(var _0x14614c=0x0;_0x14614c<_0x3d07ab['suggestions']['length'];++_0x14614c)_0x49b643['uint32'](0xa)['string'](_0x3d07ab['suggestions'][_0x14614c]);}if(null!=_0x3d07ab['suggestionsV2']&&_0x3d07ab['suggestionsV2']['length']){for(_0x14614c=0x0;_0x14614c<_0x3d07ab['suggestionsV2']['length'];++_0x14614c)_0x17fc8f['SuggestionDescriptor']['encode'](_0x3d07ab['suggestionsV2'][_0x14614c],_0x49b643['uint32'](0x12)['fork']())['ldelim']();}return _0x49b643;},_0x200253['encodeDelimited']=function(_0x5af768,_0x36be59){return this['encode'](_0x5af768,_0x36be59)['ldelim']();},_0x200253['decode']=function(_0x10734c,_0x93c4f8,_0x477be5){_0x10734c instanceof _0x546f05||(_0x10734c=_0x546f05['create'](_0x10734c));for(var _0x1e0867=void 0x0===_0x93c4f8?_0x10734c['len']:_0x10734c['pos']+_0x93c4f8,_0x1b7fbf=new _0x17fc8f['TrackChangesGetAllSuggestionsResponse']();_0x10734c['pos']<_0x1e0867;){var _0x3c6909=_0x10734c['uint32']();if(_0x3c6909===_0x477be5)break;switch(_0x3c6909>>>0x3){case 0x1:_0x1b7fbf['suggestions']&&_0x1b7fbf['suggestions']['length']||(_0x1b7fbf['suggestions']=[]),_0x1b7fbf['suggestions']['push'](_0x10734c['string']());break;case 0x2:_0x1b7fbf['suggestionsV2']&&_0x1b7fbf['suggestionsV2']['length']||(_0x1b7fbf['suggestionsV2']=[]),_0x1b7fbf['suggestionsV2']['push'](_0x17fc8f['SuggestionDescriptor']['decode'](_0x10734c,_0x10734c['uint32']()));break;default:_0x10734c['skipType'](0x7&_0x3c6909);}}return _0x1b7fbf;},_0x200253['decodeDelimited']=function(_0x13370e){return _0x13370e instanceof _0x546f05||(_0x13370e=new _0x546f05(_0x13370e)),this['decode'](_0x13370e,_0x13370e['uint32']());},_0x200253['verify']=function(_0xfbb0b){if('object'!=typeof _0xfbb0b||null===_0xfbb0b)return'object\x20expected';if(null!=_0xfbb0b['suggestions']&&_0xfbb0b['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0xfbb0b['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x3fd929=0x0;_0x3fd929<_0xfbb0b['suggestions']['length'];++_0x3fd929)if(!_0x1967e8['isString'](_0xfbb0b['suggestions'][_0x3fd929]))return'suggestions:\x20string[]\x20expected';}if(null!=_0xfbb0b['suggestionsV2']&&_0xfbb0b['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0xfbb0b['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x3fd929=0x0;_0x3fd929<_0xfbb0b['suggestionsV2']['length'];++_0x3fd929){var _0x5a8b19=_0x17fc8f['SuggestionDescriptor']['verify'](_0xfbb0b['suggestionsV2'][_0x3fd929]);if(_0x5a8b19)return'suggestionsV2.'+_0x5a8b19;}}return null;},_0x200253['fromObject']=function(_0x546fc3){if(_0x546fc3 instanceof _0x17fc8f['TrackChangesGetAllSuggestionsResponse'])return _0x546fc3;var _0x323869=new _0x17fc8f['TrackChangesGetAllSuggestionsResponse']();if(_0x546fc3['suggestions']){if(!Array['isArray'](_0x546fc3['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x323869['suggestions']=[];for(var _0x3baaab=0x0;_0x3baaab<_0x546fc3['suggestions']['length'];++_0x3baaab)_0x323869['suggestions'][_0x3baaab]=String(_0x546fc3['suggestions'][_0x3baaab]);}if(_0x546fc3['suggestionsV2']){if(!Array['isArray'](_0x546fc3['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');for(_0x323869['suggestionsV2']=[],_0x3baaab=0x0;_0x3baaab<_0x546fc3['suggestionsV2']['length'];++_0x3baaab){if('object'!=typeof _0x546fc3['suggestionsV2'][_0x3baaab])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x323869['suggestionsV2'][_0x3baaab]=_0x17fc8f['SuggestionDescriptor']['fromObject'](_0x546fc3['suggestionsV2'][_0x3baaab]);}}return _0x323869;},_0x200253['toObject']=function(_0x28feb2,_0x169786){_0x169786||(_0x169786={});var _0x43f951={};if((_0x169786['arrays']||_0x169786['defaults'])&&(_0x43f951['suggestions']=[],_0x43f951['suggestionsV2']=[]),_0x28feb2['suggestions']&&_0x28feb2['suggestions']['length']){_0x43f951['suggestions']=[];for(var _0x5a5a1a=0x0;_0x5a5a1a<_0x28feb2['suggestions']['length'];++_0x5a5a1a)_0x43f951['suggestions'][_0x5a5a1a]=_0x28feb2['suggestions'][_0x5a5a1a];}if(_0x28feb2['suggestionsV2']&&_0x28feb2['suggestionsV2']['length']){for(_0x43f951['suggestionsV2']=[],_0x5a5a1a=0x0;_0x5a5a1a<_0x28feb2['suggestionsV2']['length'];++_0x5a5a1a)_0x43f951['suggestionsV2'][_0x5a5a1a]=_0x17fc8f['SuggestionDescriptor']['toObject'](_0x28feb2['suggestionsV2'][_0x5a5a1a],_0x169786);}return _0x43f951;},_0x200253['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x200253['getTypeUrl']=function(_0x595acc){return void 0x0===_0x595acc&&(_0x595acc='type.googleapis.com'),_0x595acc+'/TrackChangesGetAllSuggestionsResponse';},_0x200253;}()),_0x17fc8f['TrackChangesConnectResponse']=(function(){function _0xb54454(_0x4987ce){if(this['suggestions']=[],this['suggestionsV2']=[],_0x4987ce){for(var _0x2e8c5a=Object['keys'](_0x4987ce),_0x346ca9=0x0;_0x346ca9<_0x2e8c5a['length'];++_0x346ca9)null!=_0x4987ce[_0x2e8c5a[_0x346ca9]]&&(this[_0x2e8c5a[_0x346ca9]]=_0x4987ce[_0x2e8c5a[_0x346ca9]]);}}return _0xb54454['prototype']['channel']='',_0xb54454['prototype']['suggestions']=_0x1967e8['emptyArray'],_0xb54454['prototype']['suggestionsV2']=_0x1967e8['emptyArray'],_0xb54454['create']=function(_0x468439){return new _0xb54454(_0x468439);},_0xb54454['encode']=function(_0xd12720,_0x525227){if(_0x525227||(_0x525227=_0x5e31a7['create']()),null!=_0xd12720['channel']&&Object['hasOwnProperty']['call'](_0xd12720,'channel')&&_0x525227['uint32'](0xa)['string'](_0xd12720['channel']),null!=_0xd12720['suggestions']&&_0xd12720['suggestions']['length']){for(var _0x3faff3=0x0;_0x3faff3<_0xd12720['suggestions']['length'];++_0x3faff3)_0x525227['uint32'](0x12)['string'](_0xd12720['suggestions'][_0x3faff3]);}if(null!=_0xd12720['suggestionsV2']&&_0xd12720['suggestionsV2']['length']){for(_0x3faff3=0x0;_0x3faff3<_0xd12720['suggestionsV2']['length'];++_0x3faff3)_0x17fc8f['SuggestionDescriptor']['encode'](_0xd12720['suggestionsV2'][_0x3faff3],_0x525227['uint32'](0x1a)['fork']())['ldelim']();}return _0x525227;},_0xb54454['encodeDelimited']=function(_0x5b47db,_0x2a1e75){return this['encode'](_0x5b47db,_0x2a1e75)['ldelim']();},_0xb54454['decode']=function(_0x5ac87b,_0x1864b3,_0x4bd4d3){_0x5ac87b instanceof _0x546f05||(_0x5ac87b=_0x546f05['create'](_0x5ac87b));for(var _0x1bd611=void 0x0===_0x1864b3?_0x5ac87b['len']:_0x5ac87b['pos']+_0x1864b3,_0x138546=new _0x17fc8f['TrackChangesConnectResponse']();_0x5ac87b['pos']<_0x1bd611;){var _0xa5d3ec=_0x5ac87b['uint32']();if(_0xa5d3ec===_0x4bd4d3)break;switch(_0xa5d3ec>>>0x3){case 0x1:_0x138546['channel']=_0x5ac87b['string']();break;case 0x2:_0x138546['suggestions']&&_0x138546['suggestions']['length']||(_0x138546['suggestions']=[]),_0x138546['suggestions']['push'](_0x5ac87b['string']());break;case 0x3:_0x138546['suggestionsV2']&&_0x138546['suggestionsV2']['length']||(_0x138546['suggestionsV2']=[]),_0x138546['suggestionsV2']['push'](_0x17fc8f['SuggestionDescriptor']['decode'](_0x5ac87b,_0x5ac87b['uint32']()));break;default:_0x5ac87b['skipType'](0x7&_0xa5d3ec);}}return _0x138546;},_0xb54454['decodeDelimited']=function(_0x259ea4){return _0x259ea4 instanceof _0x546f05||(_0x259ea4=new _0x546f05(_0x259ea4)),this['decode'](_0x259ea4,_0x259ea4['uint32']());},_0xb54454['verify']=function(_0x31093a){if('object'!=typeof _0x31093a||null===_0x31093a)return'object\x20expected';if(null!=_0x31093a['channel']&&_0x31093a['hasOwnProperty']('channel')&&!_0x1967e8['isString'](_0x31093a['channel']))return'channel:\x20string\x20expected';if(null!=_0x31093a['suggestions']&&_0x31093a['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x31093a['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x17f8bd=0x0;_0x17f8bd<_0x31093a['suggestions']['length'];++_0x17f8bd)if(!_0x1967e8['isString'](_0x31093a['suggestions'][_0x17f8bd]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x31093a['suggestionsV2']&&_0x31093a['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x31093a['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x17f8bd=0x0;_0x17f8bd<_0x31093a['suggestionsV2']['length'];++_0x17f8bd){var _0x3643c8=_0x17fc8f['SuggestionDescriptor']['verify'](_0x31093a['suggestionsV2'][_0x17f8bd]);if(_0x3643c8)return'suggestionsV2.'+_0x3643c8;}}return null;},_0xb54454['fromObject']=function(_0x3f8479){if(_0x3f8479 instanceof _0x17fc8f['TrackChangesConnectResponse'])return _0x3f8479;var _0xc824a0=new _0x17fc8f['TrackChangesConnectResponse']();if(null!=_0x3f8479['channel']&&(_0xc824a0['channel']=String(_0x3f8479['channel'])),_0x3f8479['suggestions']){if(!Array['isArray'](_0x3f8479['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0xc824a0['suggestions']=[];for(var _0x260c03=0x0;_0x260c03<_0x3f8479['suggestions']['length'];++_0x260c03)_0xc824a0['suggestions'][_0x260c03]=String(_0x3f8479['suggestions'][_0x260c03]);}if(_0x3f8479['suggestionsV2']){if(!Array['isArray'](_0x3f8479['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');for(_0xc824a0['suggestionsV2']=[],_0x260c03=0x0;_0x260c03<_0x3f8479['suggestionsV2']['length'];++_0x260c03){if('object'!=typeof _0x3f8479['suggestionsV2'][_0x260c03])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0xc824a0['suggestionsV2'][_0x260c03]=_0x17fc8f['SuggestionDescriptor']['fromObject'](_0x3f8479['suggestionsV2'][_0x260c03]);}}return _0xc824a0;},_0xb54454['toObject']=function(_0x345b21,_0x330e79){_0x330e79||(_0x330e79={});var _0x48f24b={};if((_0x330e79['arrays']||_0x330e79['defaults'])&&(_0x48f24b['suggestions']=[],_0x48f24b['suggestionsV2']=[]),_0x330e79['defaults']&&(_0x48f24b['channel']=''),null!=_0x345b21['channel']&&_0x345b21['hasOwnProperty']('channel')&&(_0x48f24b['channel']=_0x345b21['channel']),_0x345b21['suggestions']&&_0x345b21['suggestions']['length']){_0x48f24b['suggestions']=[];for(var _0x4e6499=0x0;_0x4e6499<_0x345b21['suggestions']['length'];++_0x4e6499)_0x48f24b['suggestions'][_0x4e6499]=_0x345b21['suggestions'][_0x4e6499];}if(_0x345b21['suggestionsV2']&&_0x345b21['suggestionsV2']['length']){for(_0x48f24b['suggestionsV2']=[],_0x4e6499=0x0;_0x4e6499<_0x345b21['suggestionsV2']['length'];++_0x4e6499)_0x48f24b['suggestionsV2'][_0x4e6499]=_0x17fc8f['SuggestionDescriptor']['toObject'](_0x345b21['suggestionsV2'][_0x4e6499],_0x330e79);}return _0x48f24b;},_0xb54454['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xb54454['getTypeUrl']=function(_0x14317d){return void 0x0===_0x14317d&&(_0x14317d='type.googleapis.com'),_0x14317d+'/TrackChangesConnectResponse';},_0xb54454;}()),_0x17fc8f['TrackChangesAddSuggestionResponse']=(function(){function _0x458c25(_0x12a7ed){if(_0x12a7ed){for(var _0xdc4b12=Object['keys'](_0x12a7ed),_0x4f24c6=0x0;_0x4f24c6<_0xdc4b12['length'];++_0x4f24c6)null!=_0x12a7ed[_0xdc4b12[_0x4f24c6]]&&(this[_0xdc4b12[_0x4f24c6]]=_0x12a7ed[_0xdc4b12[_0x4f24c6]]);}}return _0x458c25['prototype']['id']='',_0x458c25['prototype']['authorId']='',_0x458c25['prototype']['type']='',_0x458c25['prototype']['createdAt']='',_0x458c25['prototype']['data']='',_0x458c25['prototype']['hasComments']=!0x1,_0x458c25['prototype']['state']='',_0x458c25['prototype']['attributes']='',_0x458c25['create']=function(_0x4d11bd){return new _0x458c25(_0x4d11bd);},_0x458c25['encode']=function(_0x130340,_0x38b4e1){return _0x38b4e1||(_0x38b4e1=_0x5e31a7['create']()),null!=_0x130340['id']&&Object['hasOwnProperty']['call'](_0x130340,'id')&&_0x38b4e1['uint32'](0xa)['string'](_0x130340['id']),null!=_0x130340['authorId']&&Object['hasOwnProperty']['call'](_0x130340,'authorId')&&_0x38b4e1['uint32'](0x12)['string'](_0x130340['authorId']),null!=_0x130340['type']&&Object['hasOwnProperty']['call'](_0x130340,'type')&&_0x38b4e1['uint32'](0x1a)['string'](_0x130340['type']),null!=_0x130340['createdAt']&&Object['hasOwnProperty']['call'](_0x130340,'createdAt')&&_0x38b4e1['uint32'](0x22)['string'](_0x130340['createdAt']),null!=_0x130340['data']&&Object['hasOwnProperty']['call'](_0x130340,'data')&&_0x38b4e1['uint32'](0x2a)['string'](_0x130340['data']),null!=_0x130340['hasComments']&&Object['hasOwnProperty']['call'](_0x130340,'hasComments')&&_0x38b4e1['uint32'](0x30)['bool'](_0x130340['hasComments']),null!=_0x130340['state']&&Object['hasOwnProperty']['call'](_0x130340,'state')&&_0x38b4e1['uint32'](0x3a)['string'](_0x130340['state']),null!=_0x130340['attributes']&&Object['hasOwnProperty']['call'](_0x130340,'attributes')&&_0x38b4e1['uint32'](0x42)['string'](_0x130340['attributes']),_0x38b4e1;},_0x458c25['encodeDelimited']=function(_0xd0cf0d,_0x250cc6){return this['encode'](_0xd0cf0d,_0x250cc6)['ldelim']();},_0x458c25['decode']=function(_0x2a1f89,_0x5a42be,_0x491c0f){_0x2a1f89 instanceof _0x546f05||(_0x2a1f89=_0x546f05['create'](_0x2a1f89));for(var _0x2eb0a0=void 0x0===_0x5a42be?_0x2a1f89['len']:_0x2a1f89['pos']+_0x5a42be,_0x3ba69b=new _0x17fc8f['TrackChangesAddSuggestionResponse']();_0x2a1f89['pos']<_0x2eb0a0;){var _0x1eba5b=_0x2a1f89['uint32']();if(_0x1eba5b===_0x491c0f)break;switch(_0x1eba5b>>>0x3){case 0x1:_0x3ba69b['id']=_0x2a1f89['string']();break;case 0x2:_0x3ba69b['authorId']=_0x2a1f89['string']();break;case 0x3:_0x3ba69b['type']=_0x2a1f89['string']();break;case 0x4:_0x3ba69b['createdAt']=_0x2a1f89['string']();break;case 0x5:_0x3ba69b['data']=_0x2a1f89['string']();break;case 0x6:_0x3ba69b['hasComments']=_0x2a1f89['bool']();break;case 0x7:_0x3ba69b['state']=_0x2a1f89['string']();break;case 0x8:_0x3ba69b['attributes']=_0x2a1f89['string']();break;default:_0x2a1f89['skipType'](0x7&_0x1eba5b);}}return _0x3ba69b;},_0x458c25['decodeDelimited']=function(_0x466d16){return _0x466d16 instanceof _0x546f05||(_0x466d16=new _0x546f05(_0x466d16)),this['decode'](_0x466d16,_0x466d16['uint32']());},_0x458c25['verify']=function(_0x36019a){return'object'!=typeof _0x36019a||null===_0x36019a?'object\x20expected':null!=_0x36019a['id']&&_0x36019a['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x36019a['id'])?'id:\x20string\x20expected':null!=_0x36019a['authorId']&&_0x36019a['hasOwnProperty']('authorId')&&!_0x1967e8['isString'](_0x36019a['authorId'])?'authorId:\x20string\x20expected':null!=_0x36019a['type']&&_0x36019a['hasOwnProperty']('type')&&!_0x1967e8['isString'](_0x36019a['type'])?'type:\x20string\x20expected':null!=_0x36019a['createdAt']&&_0x36019a['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x36019a['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x36019a['data']&&_0x36019a['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x36019a['data'])?'data:\x20string\x20expected':null!=_0x36019a['hasComments']&&_0x36019a['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x36019a['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x36019a['state']&&_0x36019a['hasOwnProperty']('state')&&!_0x1967e8['isString'](_0x36019a['state'])?'state:\x20string\x20expected':null!=_0x36019a['attributes']&&_0x36019a['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x36019a['attributes'])?'attributes:\x20string\x20expected':null;},_0x458c25['fromObject']=function(_0x282d4f){if(_0x282d4f instanceof _0x17fc8f['TrackChangesAddSuggestionResponse'])return _0x282d4f;var _0x316c8b=new _0x17fc8f['TrackChangesAddSuggestionResponse']();return null!=_0x282d4f['id']&&(_0x316c8b['id']=String(_0x282d4f['id'])),null!=_0x282d4f['authorId']&&(_0x316c8b['authorId']=String(_0x282d4f['authorId'])),null!=_0x282d4f['type']&&(_0x316c8b['type']=String(_0x282d4f['type'])),null!=_0x282d4f['createdAt']&&(_0x316c8b['createdAt']=String(_0x282d4f['createdAt'])),null!=_0x282d4f['data']&&(_0x316c8b['data']=String(_0x282d4f['data'])),null!=_0x282d4f['hasComments']&&(_0x316c8b['hasComments']=Boolean(_0x282d4f['hasComments'])),null!=_0x282d4f['state']&&(_0x316c8b['state']=String(_0x282d4f['state'])),null!=_0x282d4f['attributes']&&(_0x316c8b['attributes']=String(_0x282d4f['attributes'])),_0x316c8b;},_0x458c25['toObject']=function(_0x29c51d,_0x20f7b3){_0x20f7b3||(_0x20f7b3={});var _0x8c5271={};return _0x20f7b3['defaults']&&(_0x8c5271['id']='',_0x8c5271['authorId']='',_0x8c5271['type']='',_0x8c5271['createdAt']='',_0x8c5271['data']='',_0x8c5271['hasComments']=!0x1,_0x8c5271['state']='',_0x8c5271['attributes']=''),null!=_0x29c51d['id']&&_0x29c51d['hasOwnProperty']('id')&&(_0x8c5271['id']=_0x29c51d['id']),null!=_0x29c51d['authorId']&&_0x29c51d['hasOwnProperty']('authorId')&&(_0x8c5271['authorId']=_0x29c51d['authorId']),null!=_0x29c51d['type']&&_0x29c51d['hasOwnProperty']('type')&&(_0x8c5271['type']=_0x29c51d['type']),null!=_0x29c51d['createdAt']&&_0x29c51d['hasOwnProperty']('createdAt')&&(_0x8c5271['createdAt']=_0x29c51d['createdAt']),null!=_0x29c51d['data']&&_0x29c51d['hasOwnProperty']('data')&&(_0x8c5271['data']=_0x29c51d['data']),null!=_0x29c51d['hasComments']&&_0x29c51d['hasOwnProperty']('hasComments')&&(_0x8c5271['hasComments']=_0x29c51d['hasComments']),null!=_0x29c51d['state']&&_0x29c51d['hasOwnProperty']('state')&&(_0x8c5271['state']=_0x29c51d['state']),null!=_0x29c51d['attributes']&&_0x29c51d['hasOwnProperty']('attributes')&&(_0x8c5271['attributes']=_0x29c51d['attributes']),_0x8c5271;},_0x458c25['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x458c25['getTypeUrl']=function(_0x362926){return void 0x0===_0x362926&&(_0x362926='type.googleapis.com'),_0x362926+'/TrackChangesAddSuggestionResponse';},_0x458c25;}()),_0x17fc8f['TrackChangesUpdateSuggestionMessage']=(function(){function _0x3da0e3(_0x345f11){if(_0x345f11){for(var _0x4f7c26=Object['keys'](_0x345f11),_0x3dc028=0x0;_0x3dc028<_0x4f7c26['length'];++_0x3dc028)null!=_0x345f11[_0x4f7c26[_0x3dc028]]&&(this[_0x4f7c26[_0x3dc028]]=_0x345f11[_0x4f7c26[_0x3dc028]]);}}return _0x3da0e3['prototype']['id']='',_0x3da0e3['prototype']['documentId']='',_0x3da0e3['prototype']['hasComments']=!0x1,_0x3da0e3['prototype']['isHasCommentsModified']=!0x1,_0x3da0e3['prototype']['state']='',_0x3da0e3['prototype']['attributes']='',_0x3da0e3['create']=function(_0x24a522){return new _0x3da0e3(_0x24a522);},_0x3da0e3['encode']=function(_0x46881b,_0x1d9748){return _0x1d9748||(_0x1d9748=_0x5e31a7['create']()),null!=_0x46881b['id']&&Object['hasOwnProperty']['call'](_0x46881b,'id')&&_0x1d9748['uint32'](0xa)['string'](_0x46881b['id']),null!=_0x46881b['documentId']&&Object['hasOwnProperty']['call'](_0x46881b,'documentId')&&_0x1d9748['uint32'](0x12)['string'](_0x46881b['documentId']),null!=_0x46881b['hasComments']&&Object['hasOwnProperty']['call'](_0x46881b,'hasComments')&&_0x1d9748['uint32'](0x18)['bool'](_0x46881b['hasComments']),null!=_0x46881b['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x46881b,'isHasCommentsModified')&&_0x1d9748['uint32'](0x20)['bool'](_0x46881b['isHasCommentsModified']),null!=_0x46881b['state']&&Object['hasOwnProperty']['call'](_0x46881b,'state')&&_0x1d9748['uint32'](0x2a)['string'](_0x46881b['state']),null!=_0x46881b['attributes']&&Object['hasOwnProperty']['call'](_0x46881b,'attributes')&&_0x1d9748['uint32'](0x32)['string'](_0x46881b['attributes']),_0x1d9748;},_0x3da0e3['encodeDelimited']=function(_0x24b291,_0x1a3212){return this['encode'](_0x24b291,_0x1a3212)['ldelim']();},_0x3da0e3['decode']=function(_0x1a7bd0,_0x3d47da,_0xd873e4){_0x1a7bd0 instanceof _0x546f05||(_0x1a7bd0=_0x546f05['create'](_0x1a7bd0));for(var _0x56dd3d=void 0x0===_0x3d47da?_0x1a7bd0['len']:_0x1a7bd0['pos']+_0x3d47da,_0x3757a5=new _0x17fc8f['TrackChangesUpdateSuggestionMessage']();_0x1a7bd0['pos']<_0x56dd3d;){var _0x4fccef=_0x1a7bd0['uint32']();if(_0x4fccef===_0xd873e4)break;switch(_0x4fccef>>>0x3){case 0x1:_0x3757a5['id']=_0x1a7bd0['string']();break;case 0x2:_0x3757a5['documentId']=_0x1a7bd0['string']();break;case 0x3:_0x3757a5['hasComments']=_0x1a7bd0['bool']();break;case 0x4:_0x3757a5['isHasCommentsModified']=_0x1a7bd0['bool']();break;case 0x5:_0x3757a5['state']=_0x1a7bd0['string']();break;case 0x6:_0x3757a5['attributes']=_0x1a7bd0['string']();break;default:_0x1a7bd0['skipType'](0x7&_0x4fccef);}}return _0x3757a5;},_0x3da0e3['decodeDelimited']=function(_0x31bce0){return _0x31bce0 instanceof _0x546f05||(_0x31bce0=new _0x546f05(_0x31bce0)),this['decode'](_0x31bce0,_0x31bce0['uint32']());},_0x3da0e3['verify']=function(_0x35479b){return'object'!=typeof _0x35479b||null===_0x35479b?'object\x20expected':null!=_0x35479b['id']&&_0x35479b['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x35479b['id'])?'id:\x20string\x20expected':null!=_0x35479b['documentId']&&_0x35479b['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x35479b['documentId'])?'documentId:\x20string\x20expected':null!=_0x35479b['hasComments']&&_0x35479b['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x35479b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x35479b['isHasCommentsModified']&&_0x35479b['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x35479b['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x35479b['state']&&_0x35479b['hasOwnProperty']('state')&&!_0x1967e8['isString'](_0x35479b['state'])?'state:\x20string\x20expected':null!=_0x35479b['attributes']&&_0x35479b['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x35479b['attributes'])?'attributes:\x20string\x20expected':null;},_0x3da0e3['fromObject']=function(_0x1b63a6){if(_0x1b63a6 instanceof _0x17fc8f['TrackChangesUpdateSuggestionMessage'])return _0x1b63a6;var _0x5bb8bb=new _0x17fc8f['TrackChangesUpdateSuggestionMessage']();return null!=_0x1b63a6['id']&&(_0x5bb8bb['id']=String(_0x1b63a6['id'])),null!=_0x1b63a6['documentId']&&(_0x5bb8bb['documentId']=String(_0x1b63a6['documentId'])),null!=_0x1b63a6['hasComments']&&(_0x5bb8bb['hasComments']=Boolean(_0x1b63a6['hasComments'])),null!=_0x1b63a6['isHasCommentsModified']&&(_0x5bb8bb['isHasCommentsModified']=Boolean(_0x1b63a6['isHasCommentsModified'])),null!=_0x1b63a6['state']&&(_0x5bb8bb['state']=String(_0x1b63a6['state'])),null!=_0x1b63a6['attributes']&&(_0x5bb8bb['attributes']=String(_0x1b63a6['attributes'])),_0x5bb8bb;},_0x3da0e3['toObject']=function(_0x57a534,_0x322777){_0x322777||(_0x322777={});var _0x565fac={};return _0x322777['defaults']&&(_0x565fac['id']='',_0x565fac['documentId']='',_0x565fac['hasComments']=!0x1,_0x565fac['isHasCommentsModified']=!0x1,_0x565fac['state']='',_0x565fac['attributes']=''),null!=_0x57a534['id']&&_0x57a534['hasOwnProperty']('id')&&(_0x565fac['id']=_0x57a534['id']),null!=_0x57a534['documentId']&&_0x57a534['hasOwnProperty']('documentId')&&(_0x565fac['documentId']=_0x57a534['documentId']),null!=_0x57a534['hasComments']&&_0x57a534['hasOwnProperty']('hasComments')&&(_0x565fac['hasComments']=_0x57a534['hasComments']),null!=_0x57a534['isHasCommentsModified']&&_0x57a534['hasOwnProperty']('isHasCommentsModified')&&(_0x565fac['isHasCommentsModified']=_0x57a534['isHasCommentsModified']),null!=_0x57a534['state']&&_0x57a534['hasOwnProperty']('state')&&(_0x565fac['state']=_0x57a534['state']),null!=_0x57a534['attributes']&&_0x57a534['hasOwnProperty']('attributes')&&(_0x565fac['attributes']=_0x57a534['attributes']),_0x565fac;},_0x3da0e3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3da0e3['getTypeUrl']=function(_0xadc8a9){return void 0x0===_0xadc8a9&&(_0xadc8a9='type.googleapis.com'),_0xadc8a9+'/TrackChangesUpdateSuggestionMessage';},_0x3da0e3;}()),_0x17fc8f['TrackChangesGetSuggestionMessage']=(function(){function _0x4ac484(_0x3e0a1a){if(_0x3e0a1a){for(var _0xb888e3=Object['keys'](_0x3e0a1a),_0x2f1551=0x0;_0x2f1551<_0xb888e3['length'];++_0x2f1551)null!=_0x3e0a1a[_0xb888e3[_0x2f1551]]&&(this[_0xb888e3[_0x2f1551]]=_0x3e0a1a[_0xb888e3[_0x2f1551]]);}}return _0x4ac484['prototype']['id']='',_0x4ac484['prototype']['documentId']='',_0x4ac484['create']=function(_0x53ebd7){return new _0x4ac484(_0x53ebd7);},_0x4ac484['encode']=function(_0x53f67a,_0x334281){return _0x334281||(_0x334281=_0x5e31a7['create']()),null!=_0x53f67a['id']&&Object['hasOwnProperty']['call'](_0x53f67a,'id')&&_0x334281['uint32'](0xa)['string'](_0x53f67a['id']),null!=_0x53f67a['documentId']&&Object['hasOwnProperty']['call'](_0x53f67a,'documentId')&&_0x334281['uint32'](0x12)['string'](_0x53f67a['documentId']),_0x334281;},_0x4ac484['encodeDelimited']=function(_0x24f435,_0x156532){return this['encode'](_0x24f435,_0x156532)['ldelim']();},_0x4ac484['decode']=function(_0x1aafc1,_0x44e3f9,_0x4a92e7){_0x1aafc1 instanceof _0x546f05||(_0x1aafc1=_0x546f05['create'](_0x1aafc1));for(var _0xb3a1d1=void 0x0===_0x44e3f9?_0x1aafc1['len']:_0x1aafc1['pos']+_0x44e3f9,_0x38d2e1=new _0x17fc8f['TrackChangesGetSuggestionMessage']();_0x1aafc1['pos']<_0xb3a1d1;){var _0x36cedc=_0x1aafc1['uint32']();if(_0x36cedc===_0x4a92e7)break;switch(_0x36cedc>>>0x3){case 0x1:_0x38d2e1['id']=_0x1aafc1['string']();break;case 0x2:_0x38d2e1['documentId']=_0x1aafc1['string']();break;default:_0x1aafc1['skipType'](0x7&_0x36cedc);}}return _0x38d2e1;},_0x4ac484['decodeDelimited']=function(_0x682c0f){return _0x682c0f instanceof _0x546f05||(_0x682c0f=new _0x546f05(_0x682c0f)),this['decode'](_0x682c0f,_0x682c0f['uint32']());},_0x4ac484['verify']=function(_0x49ad03){return'object'!=typeof _0x49ad03||null===_0x49ad03?'object\x20expected':null!=_0x49ad03['id']&&_0x49ad03['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x49ad03['id'])?'id:\x20string\x20expected':null!=_0x49ad03['documentId']&&_0x49ad03['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x49ad03['documentId'])?'documentId:\x20string\x20expected':null;},_0x4ac484['fromObject']=function(_0x571383){if(_0x571383 instanceof _0x17fc8f['TrackChangesGetSuggestionMessage'])return _0x571383;var _0x25368b=new _0x17fc8f['TrackChangesGetSuggestionMessage']();return null!=_0x571383['id']&&(_0x25368b['id']=String(_0x571383['id'])),null!=_0x571383['documentId']&&(_0x25368b['documentId']=String(_0x571383['documentId'])),_0x25368b;},_0x4ac484['toObject']=function(_0x308815,_0x3a50df){_0x3a50df||(_0x3a50df={});var _0x1306f0={};return _0x3a50df['defaults']&&(_0x1306f0['id']='',_0x1306f0['documentId']=''),null!=_0x308815['id']&&_0x308815['hasOwnProperty']('id')&&(_0x1306f0['id']=_0x308815['id']),null!=_0x308815['documentId']&&_0x308815['hasOwnProperty']('documentId')&&(_0x1306f0['documentId']=_0x308815['documentId']),_0x1306f0;},_0x4ac484['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ac484['getTypeUrl']=function(_0x7f8d23){return void 0x0===_0x7f8d23&&(_0x7f8d23='type.googleapis.com'),_0x7f8d23+'/TrackChangesGetSuggestionMessage';},_0x4ac484;}()),_0x17fc8f['TrackChangesGetAllSuggestionMessage']=(function(){function _0x15e5c1(_0xb24f50){if(_0xb24f50){for(var _0x1c1d6a=Object['keys'](_0xb24f50),_0x1cf494=0x0;_0x1cf494<_0x1c1d6a['length'];++_0x1cf494)null!=_0xb24f50[_0x1c1d6a[_0x1cf494]]&&(this[_0x1c1d6a[_0x1cf494]]=_0xb24f50[_0x1c1d6a[_0x1cf494]]);}}return _0x15e5c1['prototype']['documentId']='',_0x15e5c1['create']=function(_0xb4c7a1){return new _0x15e5c1(_0xb4c7a1);},_0x15e5c1['encode']=function(_0x26aaa6,_0x4826eb){return _0x4826eb||(_0x4826eb=_0x5e31a7['create']()),null!=_0x26aaa6['documentId']&&Object['hasOwnProperty']['call'](_0x26aaa6,'documentId')&&_0x4826eb['uint32'](0xa)['string'](_0x26aaa6['documentId']),_0x4826eb;},_0x15e5c1['encodeDelimited']=function(_0x359153,_0x3d1a2c){return this['encode'](_0x359153,_0x3d1a2c)['ldelim']();},_0x15e5c1['decode']=function(_0x1ef033,_0x43e35d,_0x4dfe0a){_0x1ef033 instanceof _0x546f05||(_0x1ef033=_0x546f05['create'](_0x1ef033));for(var _0x4550d4=void 0x0===_0x43e35d?_0x1ef033['len']:_0x1ef033['pos']+_0x43e35d,_0x31c1b6=new _0x17fc8f['TrackChangesGetAllSuggestionMessage']();_0x1ef033['pos']<_0x4550d4;){var _0xc752c9=_0x1ef033['uint32']();if(_0xc752c9===_0x4dfe0a)break;_0xc752c9>>>0x3==0x1?_0x31c1b6['documentId']=_0x1ef033['string']():_0x1ef033['skipType'](0x7&_0xc752c9);}return _0x31c1b6;},_0x15e5c1['decodeDelimited']=function(_0x911ef3){return _0x911ef3 instanceof _0x546f05||(_0x911ef3=new _0x546f05(_0x911ef3)),this['decode'](_0x911ef3,_0x911ef3['uint32']());},_0x15e5c1['verify']=function(_0xbc2845){return'object'!=typeof _0xbc2845||null===_0xbc2845?'object\x20expected':null!=_0xbc2845['documentId']&&_0xbc2845['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0xbc2845['documentId'])?'documentId:\x20string\x20expected':null;},_0x15e5c1['fromObject']=function(_0x160236){if(_0x160236 instanceof _0x17fc8f['TrackChangesGetAllSuggestionMessage'])return _0x160236;var _0xdc7683=new _0x17fc8f['TrackChangesGetAllSuggestionMessage']();return null!=_0x160236['documentId']&&(_0xdc7683['documentId']=String(_0x160236['documentId'])),_0xdc7683;},_0x15e5c1['toObject']=function(_0x527a29,_0x572c2a){_0x572c2a||(_0x572c2a={});var _0x147f54={};return _0x572c2a['defaults']&&(_0x147f54['documentId']=''),null!=_0x527a29['documentId']&&_0x527a29['hasOwnProperty']('documentId')&&(_0x147f54['documentId']=_0x527a29['documentId']),_0x147f54;},_0x15e5c1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x15e5c1['getTypeUrl']=function(_0x3d926e){return void 0x0===_0x3d926e&&(_0x3d926e='type.googleapis.com'),_0x3d926e+'/TrackChangesGetAllSuggestionMessage';},_0x15e5c1;}()),_0x17fc8f['TrackChangesConnectMessage']=(function(){function _0x3e7715(_0x10ffd8){if(_0x10ffd8){for(var _0x194e96=Object['keys'](_0x10ffd8),_0x4f4d7e=0x0;_0x4f4d7e<_0x194e96['length'];++_0x4f4d7e)null!=_0x10ffd8[_0x194e96[_0x4f4d7e]]&&(this[_0x194e96[_0x4f4d7e]]=_0x10ffd8[_0x194e96[_0x4f4d7e]]);}}return _0x3e7715['prototype']['documentId']='',_0x3e7715['create']=function(_0x1a13dd){return new _0x3e7715(_0x1a13dd);},_0x3e7715['encode']=function(_0x21523f,_0x52b162){return _0x52b162||(_0x52b162=_0x5e31a7['create']()),null!=_0x21523f['documentId']&&Object['hasOwnProperty']['call'](_0x21523f,'documentId')&&_0x52b162['uint32'](0xa)['string'](_0x21523f['documentId']),_0x52b162;},_0x3e7715['encodeDelimited']=function(_0x233df5,_0x360689){return this['encode'](_0x233df5,_0x360689)['ldelim']();},_0x3e7715['decode']=function(_0x9e53ae,_0x3777cc,_0x3dbf95){_0x9e53ae instanceof _0x546f05||(_0x9e53ae=_0x546f05['create'](_0x9e53ae));for(var _0x4f4f70=void 0x0===_0x3777cc?_0x9e53ae['len']:_0x9e53ae['pos']+_0x3777cc,_0x345e8f=new _0x17fc8f['TrackChangesConnectMessage']();_0x9e53ae['pos']<_0x4f4f70;){var _0x1723e7=_0x9e53ae['uint32']();if(_0x1723e7===_0x3dbf95)break;_0x1723e7>>>0x3==0x1?_0x345e8f['documentId']=_0x9e53ae['string']():_0x9e53ae['skipType'](0x7&_0x1723e7);}return _0x345e8f;},_0x3e7715['decodeDelimited']=function(_0x127af9){return _0x127af9 instanceof _0x546f05||(_0x127af9=new _0x546f05(_0x127af9)),this['decode'](_0x127af9,_0x127af9['uint32']());},_0x3e7715['verify']=function(_0x4ad5c3){return'object'!=typeof _0x4ad5c3||null===_0x4ad5c3?'object\x20expected':null!=_0x4ad5c3['documentId']&&_0x4ad5c3['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x4ad5c3['documentId'])?'documentId:\x20string\x20expected':null;},_0x3e7715['fromObject']=function(_0x4bfc50){if(_0x4bfc50 instanceof _0x17fc8f['TrackChangesConnectMessage'])return _0x4bfc50;var _0x2402a7=new _0x17fc8f['TrackChangesConnectMessage']();return null!=_0x4bfc50['documentId']&&(_0x2402a7['documentId']=String(_0x4bfc50['documentId'])),_0x2402a7;},_0x3e7715['toObject']=function(_0x3cc198,_0x1deff7){_0x1deff7||(_0x1deff7={});var _0x22314d={};return _0x1deff7['defaults']&&(_0x22314d['documentId']=''),null!=_0x3cc198['documentId']&&_0x3cc198['hasOwnProperty']('documentId')&&(_0x22314d['documentId']=_0x3cc198['documentId']),_0x22314d;},_0x3e7715['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3e7715['getTypeUrl']=function(_0x23cd60){return void 0x0===_0x23cd60&&(_0x23cd60='type.googleapis.com'),_0x23cd60+'/TrackChangesConnectMessage';},_0x3e7715;}()),_0x17fc8f['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function _0x8518cb(_0x4e1e50){if(this['ids']=[],_0x4e1e50){for(var _0x4a2a93=Object['keys'](_0x4e1e50),_0x1bf27b=0x0;_0x1bf27b<_0x4a2a93['length'];++_0x1bf27b)null!=_0x4e1e50[_0x4a2a93[_0x1bf27b]]&&(this[_0x4a2a93[_0x1bf27b]]=_0x4e1e50[_0x4a2a93[_0x1bf27b]]);}}return _0x8518cb['prototype']['ids']=_0x1967e8['emptyArray'],_0x8518cb['prototype']['documentId']='',_0x8518cb['prototype']['state']='',_0x8518cb['create']=function(_0x279e95){return new _0x8518cb(_0x279e95);},_0x8518cb['encode']=function(_0x50f6b8,_0x16c4a5){if(_0x16c4a5||(_0x16c4a5=_0x5e31a7['create']()),null!=_0x50f6b8['ids']&&_0x50f6b8['ids']['length']){for(var _0x3dc19d=0x0;_0x3dc19d<_0x50f6b8['ids']['length'];++_0x3dc19d)_0x16c4a5['uint32'](0xa)['string'](_0x50f6b8['ids'][_0x3dc19d]);}return null!=_0x50f6b8['documentId']&&Object['hasOwnProperty']['call'](_0x50f6b8,'documentId')&&_0x16c4a5['uint32'](0x12)['string'](_0x50f6b8['documentId']),null!=_0x50f6b8['state']&&Object['hasOwnProperty']['call'](_0x50f6b8,'state')&&_0x16c4a5['uint32'](0x1a)['string'](_0x50f6b8['state']),_0x16c4a5;},_0x8518cb['encodeDelimited']=function(_0x26e94f,_0x797ee2){return this['encode'](_0x26e94f,_0x797ee2)['ldelim']();},_0x8518cb['decode']=function(_0x4e8c94,_0x1bf3ea,_0x48acd7){_0x4e8c94 instanceof _0x546f05||(_0x4e8c94=_0x546f05['create'](_0x4e8c94));for(var _0x837941=void 0x0===_0x1bf3ea?_0x4e8c94['len']:_0x4e8c94['pos']+_0x1bf3ea,_0x36ecdf=new _0x17fc8f['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x4e8c94['pos']<_0x837941;){var _0x5bf344=_0x4e8c94['uint32']();if(_0x5bf344===_0x48acd7)break;switch(_0x5bf344>>>0x3){case 0x1:_0x36ecdf['ids']&&_0x36ecdf['ids']['length']||(_0x36ecdf['ids']=[]),_0x36ecdf['ids']['push'](_0x4e8c94['string']());break;case 0x2:_0x36ecdf['documentId']=_0x4e8c94['string']();break;case 0x3:_0x36ecdf['state']=_0x4e8c94['string']();break;default:_0x4e8c94['skipType'](0x7&_0x5bf344);}}return _0x36ecdf;},_0x8518cb['decodeDelimited']=function(_0x54ab7b){return _0x54ab7b instanceof _0x546f05||(_0x54ab7b=new _0x546f05(_0x54ab7b)),this['decode'](_0x54ab7b,_0x54ab7b['uint32']());},_0x8518cb['verify']=function(_0x2c0a97){if('object'!=typeof _0x2c0a97||null===_0x2c0a97)return'object\x20expected';if(null!=_0x2c0a97['ids']&&_0x2c0a97['hasOwnProperty']('ids')){if(!Array['isArray'](_0x2c0a97['ids']))return'ids:\x20array\x20expected';for(var _0x10cbb4=0x0;_0x10cbb4<_0x2c0a97['ids']['length'];++_0x10cbb4)if(!_0x1967e8['isString'](_0x2c0a97['ids'][_0x10cbb4]))return'ids:\x20string[]\x20expected';}return null!=_0x2c0a97['documentId']&&_0x2c0a97['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x2c0a97['documentId'])?'documentId:\x20string\x20expected':null!=_0x2c0a97['state']&&_0x2c0a97['hasOwnProperty']('state')&&!_0x1967e8['isString'](_0x2c0a97['state'])?'state:\x20string\x20expected':null;},_0x8518cb['fromObject']=function(_0x202155){if(_0x202155 instanceof _0x17fc8f['TrackChangesBatchUpdateSuggestionsStateMessage'])return _0x202155;var _0x109fc0=new _0x17fc8f['TrackChangesBatchUpdateSuggestionsStateMessage']();if(_0x202155['ids']){if(!Array['isArray'](_0x202155['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x109fc0['ids']=[];for(var _0x515fd3=0x0;_0x515fd3<_0x202155['ids']['length'];++_0x515fd3)_0x109fc0['ids'][_0x515fd3]=String(_0x202155['ids'][_0x515fd3]);}return null!=_0x202155['documentId']&&(_0x109fc0['documentId']=String(_0x202155['documentId'])),null!=_0x202155['state']&&(_0x109fc0['state']=String(_0x202155['state'])),_0x109fc0;},_0x8518cb['toObject']=function(_0x30b02b,_0x295926){_0x295926||(_0x295926={});var _0x1fa1db={};if((_0x295926['arrays']||_0x295926['defaults'])&&(_0x1fa1db['ids']=[]),_0x295926['defaults']&&(_0x1fa1db['documentId']='',_0x1fa1db['state']=''),_0x30b02b['ids']&&_0x30b02b['ids']['length']){_0x1fa1db['ids']=[];for(var _0x10dcf4=0x0;_0x10dcf4<_0x30b02b['ids']['length'];++_0x10dcf4)_0x1fa1db['ids'][_0x10dcf4]=_0x30b02b['ids'][_0x10dcf4];}return null!=_0x30b02b['documentId']&&_0x30b02b['hasOwnProperty']('documentId')&&(_0x1fa1db['documentId']=_0x30b02b['documentId']),null!=_0x30b02b['state']&&_0x30b02b['hasOwnProperty']('state')&&(_0x1fa1db['state']=_0x30b02b['state']),_0x1fa1db;},_0x8518cb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x8518cb['getTypeUrl']=function(_0x38252d){return void 0x0===_0x38252d&&(_0x38252d='type.googleapis.com'),_0x38252d+'/TrackChangesBatchUpdateSuggestionsStateMessage';},_0x8518cb;}()),_0x17fc8f['TrackChangesAddSuggestionMessage']=(function(){function _0x40b1dc(_0x3083ba){if(_0x3083ba){for(var _0x16f405=Object['keys'](_0x3083ba),_0x538f7e=0x0;_0x538f7e<_0x16f405['length'];++_0x538f7e)null!=_0x3083ba[_0x16f405[_0x538f7e]]&&(this[_0x16f405[_0x538f7e]]=_0x3083ba[_0x16f405[_0x538f7e]]);}}return _0x40b1dc['prototype']['id']='',_0x40b1dc['prototype']['documentId']='',_0x40b1dc['prototype']['type']='',_0x40b1dc['prototype']['data']='',_0x40b1dc['prototype']['originalSuggestionId']='',_0x40b1dc['prototype']['attributes']='',_0x40b1dc['create']=function(_0x5a61a0){return new _0x40b1dc(_0x5a61a0);},_0x40b1dc['encode']=function(_0x173dda,_0x5c86ef){return _0x5c86ef||(_0x5c86ef=_0x5e31a7['create']()),null!=_0x173dda['id']&&Object['hasOwnProperty']['call'](_0x173dda,'id')&&_0x5c86ef['uint32'](0xa)['string'](_0x173dda['id']),null!=_0x173dda['documentId']&&Object['hasOwnProperty']['call'](_0x173dda,'documentId')&&_0x5c86ef['uint32'](0x12)['string'](_0x173dda['documentId']),null!=_0x173dda['type']&&Object['hasOwnProperty']['call'](_0x173dda,'type')&&_0x5c86ef['uint32'](0x1a)['string'](_0x173dda['type']),null!=_0x173dda['data']&&Object['hasOwnProperty']['call'](_0x173dda,'data')&&_0x5c86ef['uint32'](0x22)['string'](_0x173dda['data']),null!=_0x173dda['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x173dda,'originalSuggestionId')&&_0x5c86ef['uint32'](0x2a)['string'](_0x173dda['originalSuggestionId']),null!=_0x173dda['attributes']&&Object['hasOwnProperty']['call'](_0x173dda,'attributes')&&_0x5c86ef['uint32'](0x32)['string'](_0x173dda['attributes']),_0x5c86ef;},_0x40b1dc['encodeDelimited']=function(_0x167936,_0x3d0265){return this['encode'](_0x167936,_0x3d0265)['ldelim']();},_0x40b1dc['decode']=function(_0x289d98,_0x25c5d4,_0x1b52f3){_0x289d98 instanceof _0x546f05||(_0x289d98=_0x546f05['create'](_0x289d98));for(var _0x1e72a8=void 0x0===_0x25c5d4?_0x289d98['len']:_0x289d98['pos']+_0x25c5d4,_0x59f889=new _0x17fc8f['TrackChangesAddSuggestionMessage']();_0x289d98['pos']<_0x1e72a8;){var _0x56b2e7=_0x289d98['uint32']();if(_0x56b2e7===_0x1b52f3)break;switch(_0x56b2e7>>>0x3){case 0x1:_0x59f889['id']=_0x289d98['string']();break;case 0x2:_0x59f889['documentId']=_0x289d98['string']();break;case 0x3:_0x59f889['type']=_0x289d98['string']();break;case 0x4:_0x59f889['data']=_0x289d98['string']();break;case 0x5:_0x59f889['originalSuggestionId']=_0x289d98['string']();break;case 0x6:_0x59f889['attributes']=_0x289d98['string']();break;default:_0x289d98['skipType'](0x7&_0x56b2e7);}}return _0x59f889;},_0x40b1dc['decodeDelimited']=function(_0x520c04){return _0x520c04 instanceof _0x546f05||(_0x520c04=new _0x546f05(_0x520c04)),this['decode'](_0x520c04,_0x520c04['uint32']());},_0x40b1dc['verify']=function(_0xd2e164){return'object'!=typeof _0xd2e164||null===_0xd2e164?'object\x20expected':null!=_0xd2e164['id']&&_0xd2e164['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0xd2e164['id'])?'id:\x20string\x20expected':null!=_0xd2e164['documentId']&&_0xd2e164['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0xd2e164['documentId'])?'documentId:\x20string\x20expected':null!=_0xd2e164['type']&&_0xd2e164['hasOwnProperty']('type')&&!_0x1967e8['isString'](_0xd2e164['type'])?'type:\x20string\x20expected':null!=_0xd2e164['data']&&_0xd2e164['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0xd2e164['data'])?'data:\x20string\x20expected':null!=_0xd2e164['originalSuggestionId']&&_0xd2e164['hasOwnProperty']('originalSuggestionId')&&!_0x1967e8['isString'](_0xd2e164['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0xd2e164['attributes']&&_0xd2e164['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0xd2e164['attributes'])?'attributes:\x20string\x20expected':null;},_0x40b1dc['fromObject']=function(_0x4a0745){if(_0x4a0745 instanceof _0x17fc8f['TrackChangesAddSuggestionMessage'])return _0x4a0745;var _0x1bb7b6=new _0x17fc8f['TrackChangesAddSuggestionMessage']();return null!=_0x4a0745['id']&&(_0x1bb7b6['id']=String(_0x4a0745['id'])),null!=_0x4a0745['documentId']&&(_0x1bb7b6['documentId']=String(_0x4a0745['documentId'])),null!=_0x4a0745['type']&&(_0x1bb7b6['type']=String(_0x4a0745['type'])),null!=_0x4a0745['data']&&(_0x1bb7b6['data']=String(_0x4a0745['data'])),null!=_0x4a0745['originalSuggestionId']&&(_0x1bb7b6['originalSuggestionId']=String(_0x4a0745['originalSuggestionId'])),null!=_0x4a0745['attributes']&&(_0x1bb7b6['attributes']=String(_0x4a0745['attributes'])),_0x1bb7b6;},_0x40b1dc['toObject']=function(_0x579cd2,_0x171409){_0x171409||(_0x171409={});var _0x2f14a0={};return _0x171409['defaults']&&(_0x2f14a0['id']='',_0x2f14a0['documentId']='',_0x2f14a0['type']='',_0x2f14a0['data']='',_0x2f14a0['originalSuggestionId']='',_0x2f14a0['attributes']=''),null!=_0x579cd2['id']&&_0x579cd2['hasOwnProperty']('id')&&(_0x2f14a0['id']=_0x579cd2['id']),null!=_0x579cd2['documentId']&&_0x579cd2['hasOwnProperty']('documentId')&&(_0x2f14a0['documentId']=_0x579cd2['documentId']),null!=_0x579cd2['type']&&_0x579cd2['hasOwnProperty']('type')&&(_0x2f14a0['type']=_0x579cd2['type']),null!=_0x579cd2['data']&&_0x579cd2['hasOwnProperty']('data')&&(_0x2f14a0['data']=_0x579cd2['data']),null!=_0x579cd2['originalSuggestionId']&&_0x579cd2['hasOwnProperty']('originalSuggestionId')&&(_0x2f14a0['originalSuggestionId']=_0x579cd2['originalSuggestionId']),null!=_0x579cd2['attributes']&&_0x579cd2['hasOwnProperty']('attributes')&&(_0x2f14a0['attributes']=_0x579cd2['attributes']),_0x2f14a0;},_0x40b1dc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x40b1dc['getTypeUrl']=function(_0x5d2d47){return void 0x0===_0x5d2d47&&(_0x5d2d47='type.googleapis.com'),_0x5d2d47+'/TrackChangesAddSuggestionMessage';},_0x40b1dc;}()),_0x17fc8f['SuggestionDescriptor']=(function(){function _0x1583ac(_0x491908){if(_0x491908){for(var _0x372268=Object['keys'](_0x491908),_0x40dfa6=0x0;_0x40dfa6<_0x372268['length'];++_0x40dfa6)null!=_0x491908[_0x372268[_0x40dfa6]]&&(this[_0x372268[_0x40dfa6]]=_0x491908[_0x372268[_0x40dfa6]]);}}return _0x1583ac['prototype']['id']='',_0x1583ac['prototype']['authorId']='',_0x1583ac['prototype']['type']='',_0x1583ac['prototype']['createdAt']='',_0x1583ac['prototype']['data']='',_0x1583ac['prototype']['hasComments']=!0x1,_0x1583ac['prototype']['state']='',_0x1583ac['prototype']['attributes']='',_0x1583ac['create']=function(_0x18bf0d){return new _0x1583ac(_0x18bf0d);},_0x1583ac['encode']=function(_0xb92637,_0x10e6f4){return _0x10e6f4||(_0x10e6f4=_0x5e31a7['create']()),null!=_0xb92637['id']&&Object['hasOwnProperty']['call'](_0xb92637,'id')&&_0x10e6f4['uint32'](0xa)['string'](_0xb92637['id']),null!=_0xb92637['authorId']&&Object['hasOwnProperty']['call'](_0xb92637,'authorId')&&_0x10e6f4['uint32'](0x12)['string'](_0xb92637['authorId']),null!=_0xb92637['type']&&Object['hasOwnProperty']['call'](_0xb92637,'type')&&_0x10e6f4['uint32'](0x1a)['string'](_0xb92637['type']),null!=_0xb92637['createdAt']&&Object['hasOwnProperty']['call'](_0xb92637,'createdAt')&&_0x10e6f4['uint32'](0x22)['string'](_0xb92637['createdAt']),null!=_0xb92637['data']&&Object['hasOwnProperty']['call'](_0xb92637,'data')&&_0x10e6f4['uint32'](0x2a)['string'](_0xb92637['data']),null!=_0xb92637['hasComments']&&Object['hasOwnProperty']['call'](_0xb92637,'hasComments')&&_0x10e6f4['uint32'](0x30)['bool'](_0xb92637['hasComments']),null!=_0xb92637['state']&&Object['hasOwnProperty']['call'](_0xb92637,'state')&&_0x10e6f4['uint32'](0x3a)['string'](_0xb92637['state']),null!=_0xb92637['attributes']&&Object['hasOwnProperty']['call'](_0xb92637,'attributes')&&_0x10e6f4['uint32'](0x42)['string'](_0xb92637['attributes']),_0x10e6f4;},_0x1583ac['encodeDelimited']=function(_0x22ef37,_0x1c2010){return this['encode'](_0x22ef37,_0x1c2010)['ldelim']();},_0x1583ac['decode']=function(_0x49c374,_0x4d617d,_0x88e73e){_0x49c374 instanceof _0x546f05||(_0x49c374=_0x546f05['create'](_0x49c374));for(var _0xf0f4bb=void 0x0===_0x4d617d?_0x49c374['len']:_0x49c374['pos']+_0x4d617d,_0x499e72=new _0x17fc8f['SuggestionDescriptor']();_0x49c374['pos']<_0xf0f4bb;){var _0x578f00=_0x49c374['uint32']();if(_0x578f00===_0x88e73e)break;switch(_0x578f00>>>0x3){case 0x1:_0x499e72['id']=_0x49c374['string']();break;case 0x2:_0x499e72['authorId']=_0x49c374['string']();break;case 0x3:_0x499e72['type']=_0x49c374['string']();break;case 0x4:_0x499e72['createdAt']=_0x49c374['string']();break;case 0x5:_0x499e72['data']=_0x49c374['string']();break;case 0x6:_0x499e72['hasComments']=_0x49c374['bool']();break;case 0x7:_0x499e72['state']=_0x49c374['string']();break;case 0x8:_0x499e72['attributes']=_0x49c374['string']();break;default:_0x49c374['skipType'](0x7&_0x578f00);}}return _0x499e72;},_0x1583ac['decodeDelimited']=function(_0x37bae2){return _0x37bae2 instanceof _0x546f05||(_0x37bae2=new _0x546f05(_0x37bae2)),this['decode'](_0x37bae2,_0x37bae2['uint32']());},_0x1583ac['verify']=function(_0x1c3843){return'object'!=typeof _0x1c3843||null===_0x1c3843?'object\x20expected':null!=_0x1c3843['id']&&_0x1c3843['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x1c3843['id'])?'id:\x20string\x20expected':null!=_0x1c3843['authorId']&&_0x1c3843['hasOwnProperty']('authorId')&&!_0x1967e8['isString'](_0x1c3843['authorId'])?'authorId:\x20string\x20expected':null!=_0x1c3843['type']&&_0x1c3843['hasOwnProperty']('type')&&!_0x1967e8['isString'](_0x1c3843['type'])?'type:\x20string\x20expected':null!=_0x1c3843['createdAt']&&_0x1c3843['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x1c3843['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x1c3843['data']&&_0x1c3843['hasOwnProperty']('data')&&!_0x1967e8['isString'](_0x1c3843['data'])?'data:\x20string\x20expected':null!=_0x1c3843['hasComments']&&_0x1c3843['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x1c3843['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x1c3843['state']&&_0x1c3843['hasOwnProperty']('state')&&!_0x1967e8['isString'](_0x1c3843['state'])?'state:\x20string\x20expected':null!=_0x1c3843['attributes']&&_0x1c3843['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x1c3843['attributes'])?'attributes:\x20string\x20expected':null;},_0x1583ac['fromObject']=function(_0x32ab53){if(_0x32ab53 instanceof _0x17fc8f['SuggestionDescriptor'])return _0x32ab53;var _0x37e6ea=new _0x17fc8f['SuggestionDescriptor']();return null!=_0x32ab53['id']&&(_0x37e6ea['id']=String(_0x32ab53['id'])),null!=_0x32ab53['authorId']&&(_0x37e6ea['authorId']=String(_0x32ab53['authorId'])),null!=_0x32ab53['type']&&(_0x37e6ea['type']=String(_0x32ab53['type'])),null!=_0x32ab53['createdAt']&&(_0x37e6ea['createdAt']=String(_0x32ab53['createdAt'])),null!=_0x32ab53['data']&&(_0x37e6ea['data']=String(_0x32ab53['data'])),null!=_0x32ab53['hasComments']&&(_0x37e6ea['hasComments']=Boolean(_0x32ab53['hasComments'])),null!=_0x32ab53['state']&&(_0x37e6ea['state']=String(_0x32ab53['state'])),null!=_0x32ab53['attributes']&&(_0x37e6ea['attributes']=String(_0x32ab53['attributes'])),_0x37e6ea;},_0x1583ac['toObject']=function(_0x4bab6a,_0x349cf9){_0x349cf9||(_0x349cf9={});var _0x1a022d={};return _0x349cf9['defaults']&&(_0x1a022d['id']='',_0x1a022d['authorId']='',_0x1a022d['type']='',_0x1a022d['createdAt']='',_0x1a022d['data']='',_0x1a022d['hasComments']=!0x1,_0x1a022d['state']='',_0x1a022d['attributes']=''),null!=_0x4bab6a['id']&&_0x4bab6a['hasOwnProperty']('id')&&(_0x1a022d['id']=_0x4bab6a['id']),null!=_0x4bab6a['authorId']&&_0x4bab6a['hasOwnProperty']('authorId')&&(_0x1a022d['authorId']=_0x4bab6a['authorId']),null!=_0x4bab6a['type']&&_0x4bab6a['hasOwnProperty']('type')&&(_0x1a022d['type']=_0x4bab6a['type']),null!=_0x4bab6a['createdAt']&&_0x4bab6a['hasOwnProperty']('createdAt')&&(_0x1a022d['createdAt']=_0x4bab6a['createdAt']),null!=_0x4bab6a['data']&&_0x4bab6a['hasOwnProperty']('data')&&(_0x1a022d['data']=_0x4bab6a['data']),null!=_0x4bab6a['hasComments']&&_0x4bab6a['hasOwnProperty']('hasComments')&&(_0x1a022d['hasComments']=_0x4bab6a['hasComments']),null!=_0x4bab6a['state']&&_0x4bab6a['hasOwnProperty']('state')&&(_0x1a022d['state']=_0x4bab6a['state']),null!=_0x4bab6a['attributes']&&_0x4bab6a['hasOwnProperty']('attributes')&&(_0x1a022d['attributes']=_0x4bab6a['attributes']),_0x1a022d;},_0x1583ac['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1583ac['getTypeUrl']=function(_0x4bafe0){return void 0x0===_0x4bafe0&&(_0x4bafe0='type.googleapis.com'),_0x4bafe0+'/SuggestionDescriptor';},_0x1583ac;}()),_0x17fc8f['SessionsConnectResponse']=(function(){function _0x6a37f9(_0x48171a){if(this['sockets']=[],_0x48171a){for(var _0x2b710f=Object['keys'](_0x48171a),_0x2cfa96=0x0;_0x2cfa96<_0x2b710f['length'];++_0x2cfa96)null!=_0x48171a[_0x2b710f[_0x2cfa96]]&&(this[_0x2b710f[_0x2cfa96]]=_0x48171a[_0x2b710f[_0x2cfa96]]);}}return _0x6a37f9['prototype']['channel']='',_0x6a37f9['prototype']['sockets']=_0x1967e8['emptyArray'],_0x6a37f9['create']=function(_0xbaff12){return new _0x6a37f9(_0xbaff12);},_0x6a37f9['encode']=function(_0x38f276,_0xdc544b){if(_0xdc544b||(_0xdc544b=_0x5e31a7['create']()),null!=_0x38f276['channel']&&Object['hasOwnProperty']['call'](_0x38f276,'channel')&&_0xdc544b['uint32'](0xa)['string'](_0x38f276['channel']),null!=_0x38f276['sockets']&&_0x38f276['sockets']['length']){for(var _0x5085ee=0x0;_0x5085ee<_0x38f276['sockets']['length'];++_0x5085ee)_0x17fc8f['SessionsSocketDescriptor']['encode'](_0x38f276['sockets'][_0x5085ee],_0xdc544b['uint32'](0x12)['fork']())['ldelim']();}return _0xdc544b;},_0x6a37f9['encodeDelimited']=function(_0x1f219e,_0x3c02a9){return this['encode'](_0x1f219e,_0x3c02a9)['ldelim']();},_0x6a37f9['decode']=function(_0x2294cd,_0x368f30,_0x4c68b1){_0x2294cd instanceof _0x546f05||(_0x2294cd=_0x546f05['create'](_0x2294cd));for(var _0x2e3f81=void 0x0===_0x368f30?_0x2294cd['len']:_0x2294cd['pos']+_0x368f30,_0x197660=new _0x17fc8f['SessionsConnectResponse']();_0x2294cd['pos']<_0x2e3f81;){var _0x1423ab=_0x2294cd['uint32']();if(_0x1423ab===_0x4c68b1)break;switch(_0x1423ab>>>0x3){case 0x1:_0x197660['channel']=_0x2294cd['string']();break;case 0x2:_0x197660['sockets']&&_0x197660['sockets']['length']||(_0x197660['sockets']=[]),_0x197660['sockets']['push'](_0x17fc8f['SessionsSocketDescriptor']['decode'](_0x2294cd,_0x2294cd['uint32']()));break;default:_0x2294cd['skipType'](0x7&_0x1423ab);}}return _0x197660;},_0x6a37f9['decodeDelimited']=function(_0x1a98a8){return _0x1a98a8 instanceof _0x546f05||(_0x1a98a8=new _0x546f05(_0x1a98a8)),this['decode'](_0x1a98a8,_0x1a98a8['uint32']());},_0x6a37f9['verify']=function(_0x5aa036){if('object'!=typeof _0x5aa036||null===_0x5aa036)return'object\x20expected';if(null!=_0x5aa036['channel']&&_0x5aa036['hasOwnProperty']('channel')&&!_0x1967e8['isString'](_0x5aa036['channel']))return'channel:\x20string\x20expected';if(null!=_0x5aa036['sockets']&&_0x5aa036['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x5aa036['sockets']))return'sockets:\x20array\x20expected';for(var _0x4b12da=0x0;_0x4b12da<_0x5aa036['sockets']['length'];++_0x4b12da){var _0x243026=_0x17fc8f['SessionsSocketDescriptor']['verify'](_0x5aa036['sockets'][_0x4b12da]);if(_0x243026)return'sockets.'+_0x243026;}}return null;},_0x6a37f9['fromObject']=function(_0xae8630){if(_0xae8630 instanceof _0x17fc8f['SessionsConnectResponse'])return _0xae8630;var _0x407854=new _0x17fc8f['SessionsConnectResponse']();if(null!=_0xae8630['channel']&&(_0x407854['channel']=String(_0xae8630['channel'])),_0xae8630['sockets']){if(!Array['isArray'](_0xae8630['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x407854['sockets']=[];for(var _0xd11200=0x0;_0xd11200<_0xae8630['sockets']['length'];++_0xd11200){if('object'!=typeof _0xae8630['sockets'][_0xd11200])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x407854['sockets'][_0xd11200]=_0x17fc8f['SessionsSocketDescriptor']['fromObject'](_0xae8630['sockets'][_0xd11200]);}}return _0x407854;},_0x6a37f9['toObject']=function(_0x36e159,_0x260a1a){_0x260a1a||(_0x260a1a={});var _0x4eff7c={};if((_0x260a1a['arrays']||_0x260a1a['defaults'])&&(_0x4eff7c['sockets']=[]),_0x260a1a['defaults']&&(_0x4eff7c['channel']=''),null!=_0x36e159['channel']&&_0x36e159['hasOwnProperty']('channel')&&(_0x4eff7c['channel']=_0x36e159['channel']),_0x36e159['sockets']&&_0x36e159['sockets']['length']){_0x4eff7c['sockets']=[];for(var _0x405c02=0x0;_0x405c02<_0x36e159['sockets']['length'];++_0x405c02)_0x4eff7c['sockets'][_0x405c02]=_0x17fc8f['SessionsSocketDescriptor']['toObject'](_0x36e159['sockets'][_0x405c02],_0x260a1a);}return _0x4eff7c;},_0x6a37f9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x6a37f9['getTypeUrl']=function(_0x2308ca){return void 0x0===_0x2308ca&&(_0x2308ca='type.googleapis.com'),_0x2308ca+'/SessionsConnectResponse';},_0x6a37f9;}()),_0x17fc8f['SocketDisconnectMessage']=(function(){function _0x4314e8(_0xc97a7d){if(_0xc97a7d){for(var _0x1517da=Object['keys'](_0xc97a7d),_0x16cd16=0x0;_0x16cd16<_0x1517da['length'];++_0x16cd16)null!=_0xc97a7d[_0x1517da[_0x16cd16]]&&(this[_0x1517da[_0x16cd16]]=_0xc97a7d[_0x1517da[_0x16cd16]]);}}return _0x4314e8['prototype']['id']='',_0x4314e8['create']=function(_0x18462f){return new _0x4314e8(_0x18462f);},_0x4314e8['encode']=function(_0x52f806,_0x29eafe){return _0x29eafe||(_0x29eafe=_0x5e31a7['create']()),null!=_0x52f806['id']&&Object['hasOwnProperty']['call'](_0x52f806,'id')&&_0x29eafe['uint32'](0xa)['string'](_0x52f806['id']),_0x29eafe;},_0x4314e8['encodeDelimited']=function(_0xcbb179,_0x5d622c){return this['encode'](_0xcbb179,_0x5d622c)['ldelim']();},_0x4314e8['decode']=function(_0x1396ac,_0x42d5bf,_0x24c700){_0x1396ac instanceof _0x546f05||(_0x1396ac=_0x546f05['create'](_0x1396ac));for(var _0x2f801b=void 0x0===_0x42d5bf?_0x1396ac['len']:_0x1396ac['pos']+_0x42d5bf,_0x4e3882=new _0x17fc8f['SocketDisconnectMessage']();_0x1396ac['pos']<_0x2f801b;){var _0x3738ae=_0x1396ac['uint32']();if(_0x3738ae===_0x24c700)break;_0x3738ae>>>0x3==0x1?_0x4e3882['id']=_0x1396ac['string']():_0x1396ac['skipType'](0x7&_0x3738ae);}return _0x4e3882;},_0x4314e8['decodeDelimited']=function(_0x5762d6){return _0x5762d6 instanceof _0x546f05||(_0x5762d6=new _0x546f05(_0x5762d6)),this['decode'](_0x5762d6,_0x5762d6['uint32']());},_0x4314e8['verify']=function(_0x29d94b){return'object'!=typeof _0x29d94b||null===_0x29d94b?'object\x20expected':null!=_0x29d94b['id']&&_0x29d94b['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x29d94b['id'])?'id:\x20string\x20expected':null;},_0x4314e8['fromObject']=function(_0x39cdb){if(_0x39cdb instanceof _0x17fc8f['SocketDisconnectMessage'])return _0x39cdb;var _0x525978=new _0x17fc8f['SocketDisconnectMessage']();return null!=_0x39cdb['id']&&(_0x525978['id']=String(_0x39cdb['id'])),_0x525978;},_0x4314e8['toObject']=function(_0x25d2b6,_0x3f5708){_0x3f5708||(_0x3f5708={});var _0x30dfe7={};return _0x3f5708['defaults']&&(_0x30dfe7['id']=''),null!=_0x25d2b6['id']&&_0x25d2b6['hasOwnProperty']('id')&&(_0x30dfe7['id']=_0x25d2b6['id']),_0x30dfe7;},_0x4314e8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4314e8['getTypeUrl']=function(_0x208d51){return void 0x0===_0x208d51&&(_0x208d51='type.googleapis.com'),_0x208d51+'/SocketDisconnectMessage';},_0x4314e8;}()),_0x17fc8f['SocketConnectMessage']=(function(){function _0x1502cc(_0x4ba108){if(this['permissions']=[],_0x4ba108){for(var _0x3022a2=Object['keys'](_0x4ba108),_0x2537ce=0x0;_0x2537ce<_0x3022a2['length'];++_0x2537ce)null!=_0x4ba108[_0x3022a2[_0x2537ce]]&&(this[_0x3022a2[_0x2537ce]]=_0x4ba108[_0x3022a2[_0x2537ce]]);}}return _0x1502cc['prototype']['id']='',_0x1502cc['prototype']['userId']='',_0x1502cc['prototype']['role']='',_0x1502cc['prototype']['permissions']=_0x1967e8['emptyArray'],_0x1502cc['create']=function(_0x192ff6){return new _0x1502cc(_0x192ff6);},_0x1502cc['encode']=function(_0x50c7a9,_0x1f85ab){if(_0x1f85ab||(_0x1f85ab=_0x5e31a7['create']()),null!=_0x50c7a9['id']&&Object['hasOwnProperty']['call'](_0x50c7a9,'id')&&_0x1f85ab['uint32'](0xa)['string'](_0x50c7a9['id']),null!=_0x50c7a9['userId']&&Object['hasOwnProperty']['call'](_0x50c7a9,'userId')&&_0x1f85ab['uint32'](0x12)['string'](_0x50c7a9['userId']),null!=_0x50c7a9['role']&&Object['hasOwnProperty']['call'](_0x50c7a9,'role')&&_0x1f85ab['uint32'](0x1a)['string'](_0x50c7a9['role']),null!=_0x50c7a9['permissions']&&_0x50c7a9['permissions']['length']){for(var _0x37d76e=0x0;_0x37d76e<_0x50c7a9['permissions']['length'];++_0x37d76e)_0x1f85ab['uint32'](0x22)['string'](_0x50c7a9['permissions'][_0x37d76e]);}return _0x1f85ab;},_0x1502cc['encodeDelimited']=function(_0x3c8ca3,_0x3e295c){return this['encode'](_0x3c8ca3,_0x3e295c)['ldelim']();},_0x1502cc['decode']=function(_0x3044d2,_0x531caf,_0x255d68){_0x3044d2 instanceof _0x546f05||(_0x3044d2=_0x546f05['create'](_0x3044d2));for(var _0x255bb4=void 0x0===_0x531caf?_0x3044d2['len']:_0x3044d2['pos']+_0x531caf,_0x2de1c4=new _0x17fc8f['SocketConnectMessage']();_0x3044d2['pos']<_0x255bb4;){var _0x3e4f39=_0x3044d2['uint32']();if(_0x3e4f39===_0x255d68)break;switch(_0x3e4f39>>>0x3){case 0x1:_0x2de1c4['id']=_0x3044d2['string']();break;case 0x2:_0x2de1c4['userId']=_0x3044d2['string']();break;case 0x3:_0x2de1c4['role']=_0x3044d2['string']();break;case 0x4:_0x2de1c4['permissions']&&_0x2de1c4['permissions']['length']||(_0x2de1c4['permissions']=[]),_0x2de1c4['permissions']['push'](_0x3044d2['string']());break;default:_0x3044d2['skipType'](0x7&_0x3e4f39);}}return _0x2de1c4;},_0x1502cc['decodeDelimited']=function(_0x56b1b9){return _0x56b1b9 instanceof _0x546f05||(_0x56b1b9=new _0x546f05(_0x56b1b9)),this['decode'](_0x56b1b9,_0x56b1b9['uint32']());},_0x1502cc['verify']=function(_0x12eec1){if('object'!=typeof _0x12eec1||null===_0x12eec1)return'object\x20expected';if(null!=_0x12eec1['id']&&_0x12eec1['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x12eec1['id']))return'id:\x20string\x20expected';if(null!=_0x12eec1['userId']&&_0x12eec1['hasOwnProperty']('userId')&&!_0x1967e8['isString'](_0x12eec1['userId']))return'userId:\x20string\x20expected';if(null!=_0x12eec1['role']&&_0x12eec1['hasOwnProperty']('role')&&!_0x1967e8['isString'](_0x12eec1['role']))return'role:\x20string\x20expected';if(null!=_0x12eec1['permissions']&&_0x12eec1['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x12eec1['permissions']))return'permissions:\x20array\x20expected';for(var _0x4f3a5b=0x0;_0x4f3a5b<_0x12eec1['permissions']['length'];++_0x4f3a5b)if(!_0x1967e8['isString'](_0x12eec1['permissions'][_0x4f3a5b]))return'permissions:\x20string[]\x20expected';}return null;},_0x1502cc['fromObject']=function(_0x3fe223){if(_0x3fe223 instanceof _0x17fc8f['SocketConnectMessage'])return _0x3fe223;var _0x157dc1=new _0x17fc8f['SocketConnectMessage']();if(null!=_0x3fe223['id']&&(_0x157dc1['id']=String(_0x3fe223['id'])),null!=_0x3fe223['userId']&&(_0x157dc1['userId']=String(_0x3fe223['userId'])),null!=_0x3fe223['role']&&(_0x157dc1['role']=String(_0x3fe223['role'])),_0x3fe223['permissions']){if(!Array['isArray'](_0x3fe223['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x157dc1['permissions']=[];for(var _0x2052d5=0x0;_0x2052d5<_0x3fe223['permissions']['length'];++_0x2052d5)_0x157dc1['permissions'][_0x2052d5]=String(_0x3fe223['permissions'][_0x2052d5]);}return _0x157dc1;},_0x1502cc['toObject']=function(_0x5ecbc8,_0x291500){_0x291500||(_0x291500={});var _0x1593ad={};if((_0x291500['arrays']||_0x291500['defaults'])&&(_0x1593ad['permissions']=[]),_0x291500['defaults']&&(_0x1593ad['id']='',_0x1593ad['userId']='',_0x1593ad['role']=''),null!=_0x5ecbc8['id']&&_0x5ecbc8['hasOwnProperty']('id')&&(_0x1593ad['id']=_0x5ecbc8['id']),null!=_0x5ecbc8['userId']&&_0x5ecbc8['hasOwnProperty']('userId')&&(_0x1593ad['userId']=_0x5ecbc8['userId']),null!=_0x5ecbc8['role']&&_0x5ecbc8['hasOwnProperty']('role')&&(_0x1593ad['role']=_0x5ecbc8['role']),_0x5ecbc8['permissions']&&_0x5ecbc8['permissions']['length']){_0x1593ad['permissions']=[];for(var _0x5e7214=0x0;_0x5e7214<_0x5ecbc8['permissions']['length'];++_0x5e7214)_0x1593ad['permissions'][_0x5e7214]=_0x5ecbc8['permissions'][_0x5e7214];}return _0x1593ad;},_0x1502cc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1502cc['getTypeUrl']=function(_0x597cd8){return void 0x0===_0x597cd8&&(_0x597cd8='type.googleapis.com'),_0x597cd8+'/SocketConnectMessage';},_0x1502cc;}()),_0x17fc8f['SessionsConnectMessage']=(function(){function _0x37ca35(_0x20ad4d){if(_0x20ad4d){for(var _0x463f59=Object['keys'](_0x20ad4d),_0x45952e=0x0;_0x45952e<_0x463f59['length'];++_0x45952e)null!=_0x20ad4d[_0x463f59[_0x45952e]]&&(this[_0x463f59[_0x45952e]]=_0x20ad4d[_0x463f59[_0x45952e]]);}}return _0x37ca35['prototype']['id']='',_0x37ca35['prototype']['sessionType']=0x0,_0x37ca35['create']=function(_0x3cc7b5){return new _0x37ca35(_0x3cc7b5);},_0x37ca35['encode']=function(_0x33ec02,_0x145c22){return _0x145c22||(_0x145c22=_0x5e31a7['create']()),null!=_0x33ec02['id']&&Object['hasOwnProperty']['call'](_0x33ec02,'id')&&_0x145c22['uint32'](0xa)['string'](_0x33ec02['id']),null!=_0x33ec02['sessionType']&&Object['hasOwnProperty']['call'](_0x33ec02,'sessionType')&&_0x145c22['uint32'](0x10)['uint32'](_0x33ec02['sessionType']),_0x145c22;},_0x37ca35['encodeDelimited']=function(_0x4ca781,_0x2b0b86){return this['encode'](_0x4ca781,_0x2b0b86)['ldelim']();},_0x37ca35['decode']=function(_0x26d417,_0x2d0590,_0x2d2730){_0x26d417 instanceof _0x546f05||(_0x26d417=_0x546f05['create'](_0x26d417));for(var _0x45bec9=void 0x0===_0x2d0590?_0x26d417['len']:_0x26d417['pos']+_0x2d0590,_0x29a6c1=new _0x17fc8f['SessionsConnectMessage']();_0x26d417['pos']<_0x45bec9;){var _0x42dbb2=_0x26d417['uint32']();if(_0x42dbb2===_0x2d2730)break;switch(_0x42dbb2>>>0x3){case 0x1:_0x29a6c1['id']=_0x26d417['string']();break;case 0x2:_0x29a6c1['sessionType']=_0x26d417['uint32']();break;default:_0x26d417['skipType'](0x7&_0x42dbb2);}}return _0x29a6c1;},_0x37ca35['decodeDelimited']=function(_0x5540bf){return _0x5540bf instanceof _0x546f05||(_0x5540bf=new _0x546f05(_0x5540bf)),this['decode'](_0x5540bf,_0x5540bf['uint32']());},_0x37ca35['verify']=function(_0x466a71){return'object'!=typeof _0x466a71||null===_0x466a71?'object\x20expected':null!=_0x466a71['id']&&_0x466a71['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x466a71['id'])?'id:\x20string\x20expected':null!=_0x466a71['sessionType']&&_0x466a71['hasOwnProperty']('sessionType')&&!_0x1967e8['isInteger'](_0x466a71['sessionType'])?'sessionType:\x20integer\x20expected':null;},_0x37ca35['fromObject']=function(_0x5822bf){if(_0x5822bf instanceof _0x17fc8f['SessionsConnectMessage'])return _0x5822bf;var _0x2af747=new _0x17fc8f['SessionsConnectMessage']();return null!=_0x5822bf['id']&&(_0x2af747['id']=String(_0x5822bf['id'])),null!=_0x5822bf['sessionType']&&(_0x2af747['sessionType']=_0x5822bf['sessionType']>>>0x0),_0x2af747;},_0x37ca35['toObject']=function(_0xd06ce1,_0x4dc5e6){_0x4dc5e6||(_0x4dc5e6={});var _0x1693d0={};return _0x4dc5e6['defaults']&&(_0x1693d0['id']='',_0x1693d0['sessionType']=0x0),null!=_0xd06ce1['id']&&_0xd06ce1['hasOwnProperty']('id')&&(_0x1693d0['id']=_0xd06ce1['id']),null!=_0xd06ce1['sessionType']&&_0xd06ce1['hasOwnProperty']('sessionType')&&(_0x1693d0['sessionType']=_0xd06ce1['sessionType']),_0x1693d0;},_0x37ca35['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x37ca35['getTypeUrl']=function(_0x4e5f5c){return void 0x0===_0x4e5f5c&&(_0x4e5f5c='type.googleapis.com'),_0x4e5f5c+'/SessionsConnectMessage';},_0x37ca35;}()),_0x17fc8f['SessionsSocketDescriptor']=(function(){function _0x37ed94(_0x23390d){if(this['permissions']=[],_0x23390d){for(var _0x4e24af=Object['keys'](_0x23390d),_0x18b645=0x0;_0x18b645<_0x4e24af['length'];++_0x18b645)null!=_0x23390d[_0x4e24af[_0x18b645]]&&(this[_0x4e24af[_0x18b645]]=_0x23390d[_0x4e24af[_0x18b645]]);}}return _0x37ed94['prototype']['session']='',_0x37ed94['prototype']['user']='',_0x37ed94['prototype']['role']='',_0x37ed94['prototype']['permissions']=_0x1967e8['emptyArray'],_0x37ed94['create']=function(_0x2b270b){return new _0x37ed94(_0x2b270b);},_0x37ed94['encode']=function(_0x52e7d7,_0x98a86){if(_0x98a86||(_0x98a86=_0x5e31a7['create']()),null!=_0x52e7d7['session']&&Object['hasOwnProperty']['call'](_0x52e7d7,'session')&&_0x98a86['uint32'](0xa)['string'](_0x52e7d7['session']),null!=_0x52e7d7['user']&&Object['hasOwnProperty']['call'](_0x52e7d7,'user')&&_0x98a86['uint32'](0x12)['string'](_0x52e7d7['user']),null!=_0x52e7d7['role']&&Object['hasOwnProperty']['call'](_0x52e7d7,'role')&&_0x98a86['uint32'](0x1a)['string'](_0x52e7d7['role']),null!=_0x52e7d7['permissions']&&_0x52e7d7['permissions']['length']){for(var _0xb4bd05=0x0;_0xb4bd05<_0x52e7d7['permissions']['length'];++_0xb4bd05)_0x98a86['uint32'](0x22)['string'](_0x52e7d7['permissions'][_0xb4bd05]);}return _0x98a86;},_0x37ed94['encodeDelimited']=function(_0x310896,_0x3aac25){return this['encode'](_0x310896,_0x3aac25)['ldelim']();},_0x37ed94['decode']=function(_0x29e274,_0x3b6d9b,_0x5880d2){_0x29e274 instanceof _0x546f05||(_0x29e274=_0x546f05['create'](_0x29e274));for(var _0x122107=void 0x0===_0x3b6d9b?_0x29e274['len']:_0x29e274['pos']+_0x3b6d9b,_0x4c0fe3=new _0x17fc8f['SessionsSocketDescriptor']();_0x29e274['pos']<_0x122107;){var _0xd5a237=_0x29e274['uint32']();if(_0xd5a237===_0x5880d2)break;switch(_0xd5a237>>>0x3){case 0x1:_0x4c0fe3['session']=_0x29e274['string']();break;case 0x2:_0x4c0fe3['user']=_0x29e274['string']();break;case 0x3:_0x4c0fe3['role']=_0x29e274['string']();break;case 0x4:_0x4c0fe3['permissions']&&_0x4c0fe3['permissions']['length']||(_0x4c0fe3['permissions']=[]),_0x4c0fe3['permissions']['push'](_0x29e274['string']());break;default:_0x29e274['skipType'](0x7&_0xd5a237);}}return _0x4c0fe3;},_0x37ed94['decodeDelimited']=function(_0x453cb1){return _0x453cb1 instanceof _0x546f05||(_0x453cb1=new _0x546f05(_0x453cb1)),this['decode'](_0x453cb1,_0x453cb1['uint32']());},_0x37ed94['verify']=function(_0xb0b17b){if('object'!=typeof _0xb0b17b||null===_0xb0b17b)return'object\x20expected';if(null!=_0xb0b17b['session']&&_0xb0b17b['hasOwnProperty']('session')&&!_0x1967e8['isString'](_0xb0b17b['session']))return'session:\x20string\x20expected';if(null!=_0xb0b17b['user']&&_0xb0b17b['hasOwnProperty']('user')&&!_0x1967e8['isString'](_0xb0b17b['user']))return'user:\x20string\x20expected';if(null!=_0xb0b17b['role']&&_0xb0b17b['hasOwnProperty']('role')&&!_0x1967e8['isString'](_0xb0b17b['role']))return'role:\x20string\x20expected';if(null!=_0xb0b17b['permissions']&&_0xb0b17b['hasOwnProperty']('permissions')){if(!Array['isArray'](_0xb0b17b['permissions']))return'permissions:\x20array\x20expected';for(var _0x16206d=0x0;_0x16206d<_0xb0b17b['permissions']['length'];++_0x16206d)if(!_0x1967e8['isString'](_0xb0b17b['permissions'][_0x16206d]))return'permissions:\x20string[]\x20expected';}return null;},_0x37ed94['fromObject']=function(_0x54ab35){if(_0x54ab35 instanceof _0x17fc8f['SessionsSocketDescriptor'])return _0x54ab35;var _0x38f55d=new _0x17fc8f['SessionsSocketDescriptor']();if(null!=_0x54ab35['session']&&(_0x38f55d['session']=String(_0x54ab35['session'])),null!=_0x54ab35['user']&&(_0x38f55d['user']=String(_0x54ab35['user'])),null!=_0x54ab35['role']&&(_0x38f55d['role']=String(_0x54ab35['role'])),_0x54ab35['permissions']){if(!Array['isArray'](_0x54ab35['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x38f55d['permissions']=[];for(var _0x227e03=0x0;_0x227e03<_0x54ab35['permissions']['length'];++_0x227e03)_0x38f55d['permissions'][_0x227e03]=String(_0x54ab35['permissions'][_0x227e03]);}return _0x38f55d;},_0x37ed94['toObject']=function(_0x5e8267,_0x4d80f0){_0x4d80f0||(_0x4d80f0={});var _0x42f5cc={};if((_0x4d80f0['arrays']||_0x4d80f0['defaults'])&&(_0x42f5cc['permissions']=[]),_0x4d80f0['defaults']&&(_0x42f5cc['session']='',_0x42f5cc['user']='',_0x42f5cc['role']=''),null!=_0x5e8267['session']&&_0x5e8267['hasOwnProperty']('session')&&(_0x42f5cc['session']=_0x5e8267['session']),null!=_0x5e8267['user']&&_0x5e8267['hasOwnProperty']('user')&&(_0x42f5cc['user']=_0x5e8267['user']),null!=_0x5e8267['role']&&_0x5e8267['hasOwnProperty']('role')&&(_0x42f5cc['role']=_0x5e8267['role']),_0x5e8267['permissions']&&_0x5e8267['permissions']['length']){_0x42f5cc['permissions']=[];for(var _0x113388=0x0;_0x113388<_0x5e8267['permissions']['length'];++_0x113388)_0x42f5cc['permissions'][_0x113388]=_0x5e8267['permissions'][_0x113388];}return _0x42f5cc;},_0x37ed94['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x37ed94['getTypeUrl']=function(_0x1b2a29){return void 0x0===_0x1b2a29&&(_0x1b2a29='type.googleapis.com'),_0x1b2a29+'/SessionsSocketDescriptor';},_0x37ed94;}()),_0x17fc8f['RevisionHistoryUpdateRevisionsResponse']=(function(){function _0x2febda(_0x38c04e){if(_0x38c04e){for(var _0x49bc0e=Object['keys'](_0x38c04e),_0x128326=0x0;_0x128326<_0x49bc0e['length'];++_0x128326)null!=_0x38c04e[_0x49bc0e[_0x128326]]&&(this[_0x49bc0e[_0x128326]]=_0x38c04e[_0x49bc0e[_0x128326]]);}}return _0x2febda['prototype']['requestId']=0x0,_0x2febda['create']=function(_0x55f5fe){return new _0x2febda(_0x55f5fe);},_0x2febda['encode']=function(_0x321748,_0x1c2860){return _0x1c2860||(_0x1c2860=_0x5e31a7['create']()),null!=_0x321748['requestId']&&Object['hasOwnProperty']['call'](_0x321748,'requestId')&&_0x1c2860['uint32'](0x8)['uint32'](_0x321748['requestId']),_0x1c2860;},_0x2febda['encodeDelimited']=function(_0x1de3b8,_0x1b9de6){return this['encode'](_0x1de3b8,_0x1b9de6)['ldelim']();},_0x2febda['decode']=function(_0x20aa31,_0x29a991,_0x7b0fe2){_0x20aa31 instanceof _0x546f05||(_0x20aa31=_0x546f05['create'](_0x20aa31));for(var _0x218f2b=void 0x0===_0x29a991?_0x20aa31['len']:_0x20aa31['pos']+_0x29a991,_0x648857=new _0x17fc8f['RevisionHistoryUpdateRevisionsResponse']();_0x20aa31['pos']<_0x218f2b;){var _0x75f1c5=_0x20aa31['uint32']();if(_0x75f1c5===_0x7b0fe2)break;_0x75f1c5>>>0x3==0x1?_0x648857['requestId']=_0x20aa31['uint32']():_0x20aa31['skipType'](0x7&_0x75f1c5);}return _0x648857;},_0x2febda['decodeDelimited']=function(_0x3ab450){return _0x3ab450 instanceof _0x546f05||(_0x3ab450=new _0x546f05(_0x3ab450)),this['decode'](_0x3ab450,_0x3ab450['uint32']());},_0x2febda['verify']=function(_0x7e0f2c){return'object'!=typeof _0x7e0f2c||null===_0x7e0f2c?'object\x20expected':null!=_0x7e0f2c['requestId']&&_0x7e0f2c['hasOwnProperty']('requestId')&&!_0x1967e8['isInteger'](_0x7e0f2c['requestId'])?'requestId:\x20integer\x20expected':null;},_0x2febda['fromObject']=function(_0x53a626){if(_0x53a626 instanceof _0x17fc8f['RevisionHistoryUpdateRevisionsResponse'])return _0x53a626;var _0x1ebe78=new _0x17fc8f['RevisionHistoryUpdateRevisionsResponse']();return null!=_0x53a626['requestId']&&(_0x1ebe78['requestId']=_0x53a626['requestId']>>>0x0),_0x1ebe78;},_0x2febda['toObject']=function(_0x2da2ff,_0x323ac9){_0x323ac9||(_0x323ac9={});var _0x31dd9d={};return _0x323ac9['defaults']&&(_0x31dd9d['requestId']=0x0),null!=_0x2da2ff['requestId']&&_0x2da2ff['hasOwnProperty']('requestId')&&(_0x31dd9d['requestId']=_0x2da2ff['requestId']),_0x31dd9d;},_0x2febda['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2febda['getTypeUrl']=function(_0x1b8c39){return void 0x0===_0x1b8c39&&(_0x1b8c39='type.googleapis.com'),_0x1b8c39+'/RevisionHistoryUpdateRevisionsResponse';},_0x2febda;}()),_0x17fc8f['RevisionHistoryGetRevisionResponse']=(function(){function _0xabeecf(_0x1a5ce4){if(_0x1a5ce4){for(var _0x44f8ef=Object['keys'](_0x1a5ce4),_0x2684b9=0x0;_0x2684b9<_0x44f8ef['length'];++_0x2684b9)null!=_0x1a5ce4[_0x44f8ef[_0x2684b9]]&&(this[_0x44f8ef[_0x2684b9]]=_0x1a5ce4[_0x44f8ef[_0x2684b9]]);}}return _0xabeecf['prototype']['revisionId']='',_0xabeecf['prototype']['name']='',_0xabeecf['prototype']['creatorId']='',_0xabeecf['prototype']['authorsIds']='',_0xabeecf['prototype']['diffData']='',_0xabeecf['prototype']['createdAt']='',_0xabeecf['prototype']['attributes']='',_0xabeecf['prototype']['toVersion']=0x0,_0xabeecf['prototype']['fromVersion']=0x0,_0xabeecf['prototype']['isEmptyCurrent']=!0x1,_0xabeecf['create']=function(_0x3ea4e6){return new _0xabeecf(_0x3ea4e6);},_0xabeecf['encode']=function(_0x19fe2f,_0x73b059){return _0x73b059||(_0x73b059=_0x5e31a7['create']()),null!=_0x19fe2f['revisionId']&&Object['hasOwnProperty']['call'](_0x19fe2f,'revisionId')&&_0x73b059['uint32'](0xa)['string'](_0x19fe2f['revisionId']),null!=_0x19fe2f['name']&&Object['hasOwnProperty']['call'](_0x19fe2f,'name')&&_0x73b059['uint32'](0x12)['string'](_0x19fe2f['name']),null!=_0x19fe2f['creatorId']&&Object['hasOwnProperty']['call'](_0x19fe2f,'creatorId')&&_0x73b059['uint32'](0x1a)['string'](_0x19fe2f['creatorId']),null!=_0x19fe2f['authorsIds']&&Object['hasOwnProperty']['call'](_0x19fe2f,'authorsIds')&&_0x73b059['uint32'](0x22)['string'](_0x19fe2f['authorsIds']),null!=_0x19fe2f['diffData']&&Object['hasOwnProperty']['call'](_0x19fe2f,'diffData')&&_0x73b059['uint32'](0x2a)['string'](_0x19fe2f['diffData']),null!=_0x19fe2f['createdAt']&&Object['hasOwnProperty']['call'](_0x19fe2f,'createdAt')&&_0x73b059['uint32'](0x32)['string'](_0x19fe2f['createdAt']),null!=_0x19fe2f['attributes']&&Object['hasOwnProperty']['call'](_0x19fe2f,'attributes')&&_0x73b059['uint32'](0x3a)['string'](_0x19fe2f['attributes']),null!=_0x19fe2f['toVersion']&&Object['hasOwnProperty']['call'](_0x19fe2f,'toVersion')&&_0x73b059['uint32'](0x40)['uint32'](_0x19fe2f['toVersion']),null!=_0x19fe2f['fromVersion']&&Object['hasOwnProperty']['call'](_0x19fe2f,'fromVersion')&&_0x73b059['uint32'](0x48)['uint32'](_0x19fe2f['fromVersion']),null!=_0x19fe2f['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x19fe2f,'isEmptyCurrent')&&_0x73b059['uint32'](0x50)['bool'](_0x19fe2f['isEmptyCurrent']),_0x73b059;},_0xabeecf['encodeDelimited']=function(_0x562c84,_0x1b156e){return this['encode'](_0x562c84,_0x1b156e)['ldelim']();},_0xabeecf['decode']=function(_0x54218a,_0x5c0f38,_0x51e25e){_0x54218a instanceof _0x546f05||(_0x54218a=_0x546f05['create'](_0x54218a));for(var _0xbb265=void 0x0===_0x5c0f38?_0x54218a['len']:_0x54218a['pos']+_0x5c0f38,_0x202387=new _0x17fc8f['RevisionHistoryGetRevisionResponse']();_0x54218a['pos']<_0xbb265;){var _0x12e9b1=_0x54218a['uint32']();if(_0x12e9b1===_0x51e25e)break;switch(_0x12e9b1>>>0x3){case 0x1:_0x202387['revisionId']=_0x54218a['string']();break;case 0x2:_0x202387['name']=_0x54218a['string']();break;case 0x3:_0x202387['creatorId']=_0x54218a['string']();break;case 0x4:_0x202387['authorsIds']=_0x54218a['string']();break;case 0x5:_0x202387['diffData']=_0x54218a['string']();break;case 0x6:_0x202387['createdAt']=_0x54218a['string']();break;case 0x7:_0x202387['attributes']=_0x54218a['string']();break;case 0x8:_0x202387['toVersion']=_0x54218a['uint32']();break;case 0x9:_0x202387['fromVersion']=_0x54218a['uint32']();break;case 0xa:_0x202387['isEmptyCurrent']=_0x54218a['bool']();break;default:_0x54218a['skipType'](0x7&_0x12e9b1);}}return _0x202387;},_0xabeecf['decodeDelimited']=function(_0x183956){return _0x183956 instanceof _0x546f05||(_0x183956=new _0x546f05(_0x183956)),this['decode'](_0x183956,_0x183956['uint32']());},_0xabeecf['verify']=function(_0x349653){return'object'!=typeof _0x349653||null===_0x349653?'object\x20expected':null!=_0x349653['revisionId']&&_0x349653['hasOwnProperty']('revisionId')&&!_0x1967e8['isString'](_0x349653['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x349653['name']&&_0x349653['hasOwnProperty']('name')&&!_0x1967e8['isString'](_0x349653['name'])?'name:\x20string\x20expected':null!=_0x349653['creatorId']&&_0x349653['hasOwnProperty']('creatorId')&&!_0x1967e8['isString'](_0x349653['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x349653['authorsIds']&&_0x349653['hasOwnProperty']('authorsIds')&&!_0x1967e8['isString'](_0x349653['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x349653['diffData']&&_0x349653['hasOwnProperty']('diffData')&&!_0x1967e8['isString'](_0x349653['diffData'])?'diffData:\x20string\x20expected':null!=_0x349653['createdAt']&&_0x349653['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x349653['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x349653['attributes']&&_0x349653['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x349653['attributes'])?'attributes:\x20string\x20expected':null!=_0x349653['toVersion']&&_0x349653['hasOwnProperty']('toVersion')&&!_0x1967e8['isInteger'](_0x349653['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x349653['fromVersion']&&_0x349653['hasOwnProperty']('fromVersion')&&!_0x1967e8['isInteger'](_0x349653['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x349653['isEmptyCurrent']&&_0x349653['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x349653['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0xabeecf['fromObject']=function(_0x22e473){if(_0x22e473 instanceof _0x17fc8f['RevisionHistoryGetRevisionResponse'])return _0x22e473;var _0x55b8a3=new _0x17fc8f['RevisionHistoryGetRevisionResponse']();return null!=_0x22e473['revisionId']&&(_0x55b8a3['revisionId']=String(_0x22e473['revisionId'])),null!=_0x22e473['name']&&(_0x55b8a3['name']=String(_0x22e473['name'])),null!=_0x22e473['creatorId']&&(_0x55b8a3['creatorId']=String(_0x22e473['creatorId'])),null!=_0x22e473['authorsIds']&&(_0x55b8a3['authorsIds']=String(_0x22e473['authorsIds'])),null!=_0x22e473['diffData']&&(_0x55b8a3['diffData']=String(_0x22e473['diffData'])),null!=_0x22e473['createdAt']&&(_0x55b8a3['createdAt']=String(_0x22e473['createdAt'])),null!=_0x22e473['attributes']&&(_0x55b8a3['attributes']=String(_0x22e473['attributes'])),null!=_0x22e473['toVersion']&&(_0x55b8a3['toVersion']=_0x22e473['toVersion']>>>0x0),null!=_0x22e473['fromVersion']&&(_0x55b8a3['fromVersion']=_0x22e473['fromVersion']>>>0x0),null!=_0x22e473['isEmptyCurrent']&&(_0x55b8a3['isEmptyCurrent']=Boolean(_0x22e473['isEmptyCurrent'])),_0x55b8a3;},_0xabeecf['toObject']=function(_0x5397a9,_0x2f5e13){_0x2f5e13||(_0x2f5e13={});var _0xd82abc={};return _0x2f5e13['defaults']&&(_0xd82abc['revisionId']='',_0xd82abc['name']='',_0xd82abc['creatorId']='',_0xd82abc['authorsIds']='',_0xd82abc['diffData']='',_0xd82abc['createdAt']='',_0xd82abc['attributes']='',_0xd82abc['toVersion']=0x0,_0xd82abc['fromVersion']=0x0,_0xd82abc['isEmptyCurrent']=!0x1),null!=_0x5397a9['revisionId']&&_0x5397a9['hasOwnProperty']('revisionId')&&(_0xd82abc['revisionId']=_0x5397a9['revisionId']),null!=_0x5397a9['name']&&_0x5397a9['hasOwnProperty']('name')&&(_0xd82abc['name']=_0x5397a9['name']),null!=_0x5397a9['creatorId']&&_0x5397a9['hasOwnProperty']('creatorId')&&(_0xd82abc['creatorId']=_0x5397a9['creatorId']),null!=_0x5397a9['authorsIds']&&_0x5397a9['hasOwnProperty']('authorsIds')&&(_0xd82abc['authorsIds']=_0x5397a9['authorsIds']),null!=_0x5397a9['diffData']&&_0x5397a9['hasOwnProperty']('diffData')&&(_0xd82abc['diffData']=_0x5397a9['diffData']),null!=_0x5397a9['createdAt']&&_0x5397a9['hasOwnProperty']('createdAt')&&(_0xd82abc['createdAt']=_0x5397a9['createdAt']),null!=_0x5397a9['attributes']&&_0x5397a9['hasOwnProperty']('attributes')&&(_0xd82abc['attributes']=_0x5397a9['attributes']),null!=_0x5397a9['toVersion']&&_0x5397a9['hasOwnProperty']('toVersion')&&(_0xd82abc['toVersion']=_0x5397a9['toVersion']),null!=_0x5397a9['fromVersion']&&_0x5397a9['hasOwnProperty']('fromVersion')&&(_0xd82abc['fromVersion']=_0x5397a9['fromVersion']),null!=_0x5397a9['isEmptyCurrent']&&_0x5397a9['hasOwnProperty']('isEmptyCurrent')&&(_0xd82abc['isEmptyCurrent']=_0x5397a9['isEmptyCurrent']),_0xd82abc;},_0xabeecf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xabeecf['getTypeUrl']=function(_0x3428a2){return void 0x0===_0x3428a2&&(_0x3428a2='type.googleapis.com'),_0x3428a2+'/RevisionHistoryGetRevisionResponse';},_0xabeecf;}()),_0x17fc8f['RevisionHistoryConnectResponse']=(function(){function _0x3877c3(_0x33b78a){if(this['revisions']=[],_0x33b78a){for(var _0x325473=Object['keys'](_0x33b78a),_0x4cfdec=0x0;_0x4cfdec<_0x325473['length'];++_0x4cfdec)null!=_0x33b78a[_0x325473[_0x4cfdec]]&&(this[_0x325473[_0x4cfdec]]=_0x33b78a[_0x325473[_0x4cfdec]]);}}return _0x3877c3['prototype']['channel']='',_0x3877c3['prototype']['requestId']=0x0,_0x3877c3['prototype']['revisions']=_0x1967e8['emptyArray'],_0x3877c3['create']=function(_0x36f669){return new _0x3877c3(_0x36f669);},_0x3877c3['encode']=function(_0xc350f3,_0x498dd6){if(_0x498dd6||(_0x498dd6=_0x5e31a7['create']()),null!=_0xc350f3['channel']&&Object['hasOwnProperty']['call'](_0xc350f3,'channel')&&_0x498dd6['uint32'](0xa)['string'](_0xc350f3['channel']),null!=_0xc350f3['requestId']&&Object['hasOwnProperty']['call'](_0xc350f3,'requestId')&&_0x498dd6['uint32'](0x10)['uint32'](_0xc350f3['requestId']),null!=_0xc350f3['revisions']&&_0xc350f3['revisions']['length']){for(var _0x49d22f=0x0;_0x49d22f<_0xc350f3['revisions']['length'];++_0x49d22f)_0x17fc8f['RevisionDescriptor']['encode'](_0xc350f3['revisions'][_0x49d22f],_0x498dd6['uint32'](0x1a)['fork']())['ldelim']();}return _0x498dd6;},_0x3877c3['encodeDelimited']=function(_0x13261c,_0x8be883){return this['encode'](_0x13261c,_0x8be883)['ldelim']();},_0x3877c3['decode']=function(_0x475da9,_0x414b6f,_0x3a3c58){_0x475da9 instanceof _0x546f05||(_0x475da9=_0x546f05['create'](_0x475da9));for(var _0x33c228=void 0x0===_0x414b6f?_0x475da9['len']:_0x475da9['pos']+_0x414b6f,_0x5cb2e2=new _0x17fc8f['RevisionHistoryConnectResponse']();_0x475da9['pos']<_0x33c228;){var _0x989d7d=_0x475da9['uint32']();if(_0x989d7d===_0x3a3c58)break;switch(_0x989d7d>>>0x3){case 0x1:_0x5cb2e2['channel']=_0x475da9['string']();break;case 0x2:_0x5cb2e2['requestId']=_0x475da9['uint32']();break;case 0x3:_0x5cb2e2['revisions']&&_0x5cb2e2['revisions']['length']||(_0x5cb2e2['revisions']=[]),_0x5cb2e2['revisions']['push'](_0x17fc8f['RevisionDescriptor']['decode'](_0x475da9,_0x475da9['uint32']()));break;default:_0x475da9['skipType'](0x7&_0x989d7d);}}return _0x5cb2e2;},_0x3877c3['decodeDelimited']=function(_0x3adebb){return _0x3adebb instanceof _0x546f05||(_0x3adebb=new _0x546f05(_0x3adebb)),this['decode'](_0x3adebb,_0x3adebb['uint32']());},_0x3877c3['verify']=function(_0x45b9ec){if('object'!=typeof _0x45b9ec||null===_0x45b9ec)return'object\x20expected';if(null!=_0x45b9ec['channel']&&_0x45b9ec['hasOwnProperty']('channel')&&!_0x1967e8['isString'](_0x45b9ec['channel']))return'channel:\x20string\x20expected';if(null!=_0x45b9ec['requestId']&&_0x45b9ec['hasOwnProperty']('requestId')&&!_0x1967e8['isInteger'](_0x45b9ec['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x45b9ec['revisions']&&_0x45b9ec['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x45b9ec['revisions']))return'revisions:\x20array\x20expected';for(var _0x282368=0x0;_0x282368<_0x45b9ec['revisions']['length'];++_0x282368){var _0x366f7c=_0x17fc8f['RevisionDescriptor']['verify'](_0x45b9ec['revisions'][_0x282368]);if(_0x366f7c)return'revisions.'+_0x366f7c;}}return null;},_0x3877c3['fromObject']=function(_0x4b072a){if(_0x4b072a instanceof _0x17fc8f['RevisionHistoryConnectResponse'])return _0x4b072a;var _0x51355b=new _0x17fc8f['RevisionHistoryConnectResponse']();if(null!=_0x4b072a['channel']&&(_0x51355b['channel']=String(_0x4b072a['channel'])),null!=_0x4b072a['requestId']&&(_0x51355b['requestId']=_0x4b072a['requestId']>>>0x0),_0x4b072a['revisions']){if(!Array['isArray'](_0x4b072a['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x51355b['revisions']=[];for(var _0x4e22bb=0x0;_0x4e22bb<_0x4b072a['revisions']['length'];++_0x4e22bb){if('object'!=typeof _0x4b072a['revisions'][_0x4e22bb])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x51355b['revisions'][_0x4e22bb]=_0x17fc8f['RevisionDescriptor']['fromObject'](_0x4b072a['revisions'][_0x4e22bb]);}}return _0x51355b;},_0x3877c3['toObject']=function(_0x104832,_0x4f7703){_0x4f7703||(_0x4f7703={});var _0x4d9b8b={};if((_0x4f7703['arrays']||_0x4f7703['defaults'])&&(_0x4d9b8b['revisions']=[]),_0x4f7703['defaults']&&(_0x4d9b8b['channel']='',_0x4d9b8b['requestId']=0x0),null!=_0x104832['channel']&&_0x104832['hasOwnProperty']('channel')&&(_0x4d9b8b['channel']=_0x104832['channel']),null!=_0x104832['requestId']&&_0x104832['hasOwnProperty']('requestId')&&(_0x4d9b8b['requestId']=_0x104832['requestId']),_0x104832['revisions']&&_0x104832['revisions']['length']){_0x4d9b8b['revisions']=[];for(var _0x18c993=0x0;_0x18c993<_0x104832['revisions']['length'];++_0x18c993)_0x4d9b8b['revisions'][_0x18c993]=_0x17fc8f['RevisionDescriptor']['toObject'](_0x104832['revisions'][_0x18c993],_0x4f7703);}return _0x4d9b8b;},_0x3877c3['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3877c3['getTypeUrl']=function(_0x36641b){return void 0x0===_0x36641b&&(_0x36641b='type.googleapis.com'),_0x36641b+'/RevisionHistoryConnectResponse';},_0x3877c3;}()),_0x17fc8f['RevisionHistoryUpdateRevisionsMessage']=(function(){function _0x962524(_0x448907){if(this['revisions']=[],_0x448907){for(var _0x19d29a=Object['keys'](_0x448907),_0xebc197=0x0;_0xebc197<_0x19d29a['length'];++_0xebc197)null!=_0x448907[_0x19d29a[_0xebc197]]&&(this[_0x19d29a[_0xebc197]]=_0x448907[_0x19d29a[_0xebc197]]);}}return _0x962524['prototype']['documentId']='',_0x962524['prototype']['requestId']=0x0,_0x962524['prototype']['revisions']=_0x1967e8['emptyArray'],_0x962524['create']=function(_0x14221f){return new _0x962524(_0x14221f);},_0x962524['encode']=function(_0x187506,_0x3b8aaa){if(_0x3b8aaa||(_0x3b8aaa=_0x5e31a7['create']()),null!=_0x187506['documentId']&&Object['hasOwnProperty']['call'](_0x187506,'documentId')&&_0x3b8aaa['uint32'](0xa)['string'](_0x187506['documentId']),null!=_0x187506['requestId']&&Object['hasOwnProperty']['call'](_0x187506,'requestId')&&_0x3b8aaa['uint32'](0x10)['uint32'](_0x187506['requestId']),null!=_0x187506['revisions']&&_0x187506['revisions']['length']){for(var _0x4857ef=0x0;_0x4857ef<_0x187506['revisions']['length'];++_0x4857ef)_0x17fc8f['RevisionDescriptor']['encode'](_0x187506['revisions'][_0x4857ef],_0x3b8aaa['uint32'](0x1a)['fork']())['ldelim']();}return _0x3b8aaa;},_0x962524['encodeDelimited']=function(_0x17ec64,_0x316024){return this['encode'](_0x17ec64,_0x316024)['ldelim']();},_0x962524['decode']=function(_0x896556,_0x4159ce,_0x27e313){_0x896556 instanceof _0x546f05||(_0x896556=_0x546f05['create'](_0x896556));for(var _0x25a69d=void 0x0===_0x4159ce?_0x896556['len']:_0x896556['pos']+_0x4159ce,_0xdbdf52=new _0x17fc8f['RevisionHistoryUpdateRevisionsMessage']();_0x896556['pos']<_0x25a69d;){var _0x2d3522=_0x896556['uint32']();if(_0x2d3522===_0x27e313)break;switch(_0x2d3522>>>0x3){case 0x1:_0xdbdf52['documentId']=_0x896556['string']();break;case 0x2:_0xdbdf52['requestId']=_0x896556['uint32']();break;case 0x3:_0xdbdf52['revisions']&&_0xdbdf52['revisions']['length']||(_0xdbdf52['revisions']=[]),_0xdbdf52['revisions']['push'](_0x17fc8f['RevisionDescriptor']['decode'](_0x896556,_0x896556['uint32']()));break;default:_0x896556['skipType'](0x7&_0x2d3522);}}return _0xdbdf52;},_0x962524['decodeDelimited']=function(_0x4964ed){return _0x4964ed instanceof _0x546f05||(_0x4964ed=new _0x546f05(_0x4964ed)),this['decode'](_0x4964ed,_0x4964ed['uint32']());},_0x962524['verify']=function(_0x17562a){if('object'!=typeof _0x17562a||null===_0x17562a)return'object\x20expected';if(null!=_0x17562a['documentId']&&_0x17562a['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x17562a['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x17562a['requestId']&&_0x17562a['hasOwnProperty']('requestId')&&!_0x1967e8['isInteger'](_0x17562a['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x17562a['revisions']&&_0x17562a['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x17562a['revisions']))return'revisions:\x20array\x20expected';for(var _0x18b9c8=0x0;_0x18b9c8<_0x17562a['revisions']['length'];++_0x18b9c8){var _0x307ffe=_0x17fc8f['RevisionDescriptor']['verify'](_0x17562a['revisions'][_0x18b9c8]);if(_0x307ffe)return'revisions.'+_0x307ffe;}}return null;},_0x962524['fromObject']=function(_0x9fd97e){if(_0x9fd97e instanceof _0x17fc8f['RevisionHistoryUpdateRevisionsMessage'])return _0x9fd97e;var _0x1f05ff=new _0x17fc8f['RevisionHistoryUpdateRevisionsMessage']();if(null!=_0x9fd97e['documentId']&&(_0x1f05ff['documentId']=String(_0x9fd97e['documentId'])),null!=_0x9fd97e['requestId']&&(_0x1f05ff['requestId']=_0x9fd97e['requestId']>>>0x0),_0x9fd97e['revisions']){if(!Array['isArray'](_0x9fd97e['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x1f05ff['revisions']=[];for(var _0x1fb330=0x0;_0x1fb330<_0x9fd97e['revisions']['length'];++_0x1fb330){if('object'!=typeof _0x9fd97e['revisions'][_0x1fb330])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x1f05ff['revisions'][_0x1fb330]=_0x17fc8f['RevisionDescriptor']['fromObject'](_0x9fd97e['revisions'][_0x1fb330]);}}return _0x1f05ff;},_0x962524['toObject']=function(_0x187513,_0x109bd2){_0x109bd2||(_0x109bd2={});var _0x41c1ae={};if((_0x109bd2['arrays']||_0x109bd2['defaults'])&&(_0x41c1ae['revisions']=[]),_0x109bd2['defaults']&&(_0x41c1ae['documentId']='',_0x41c1ae['requestId']=0x0),null!=_0x187513['documentId']&&_0x187513['hasOwnProperty']('documentId')&&(_0x41c1ae['documentId']=_0x187513['documentId']),null!=_0x187513['requestId']&&_0x187513['hasOwnProperty']('requestId')&&(_0x41c1ae['requestId']=_0x187513['requestId']),_0x187513['revisions']&&_0x187513['revisions']['length']){_0x41c1ae['revisions']=[];for(var _0x1be18b=0x0;_0x1be18b<_0x187513['revisions']['length'];++_0x1be18b)_0x41c1ae['revisions'][_0x1be18b]=_0x17fc8f['RevisionDescriptor']['toObject'](_0x187513['revisions'][_0x1be18b],_0x109bd2);}return _0x41c1ae;},_0x962524['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x962524['getTypeUrl']=function(_0x411658){return void 0x0===_0x411658&&(_0x411658='type.googleapis.com'),_0x411658+'/RevisionHistoryUpdateRevisionsMessage';},_0x962524;}()),_0x17fc8f['RevisionHistoryReconnectMessage']=(function(){function _0x2f402d(_0x11f444){if(_0x11f444){for(var _0x1fee3=Object['keys'](_0x11f444),_0x8de20b=0x0;_0x8de20b<_0x1fee3['length'];++_0x8de20b)null!=_0x11f444[_0x1fee3[_0x8de20b]]&&(this[_0x1fee3[_0x8de20b]]=_0x11f444[_0x1fee3[_0x8de20b]]);}}return _0x2f402d['prototype']['documentId']='',_0x2f402d['prototype']['requestId']=0x0,_0x2f402d['create']=function(_0x23ce18){return new _0x2f402d(_0x23ce18);},_0x2f402d['encode']=function(_0x7f3547,_0x35f103){return _0x35f103||(_0x35f103=_0x5e31a7['create']()),null!=_0x7f3547['documentId']&&Object['hasOwnProperty']['call'](_0x7f3547,'documentId')&&_0x35f103['uint32'](0xa)['string'](_0x7f3547['documentId']),null!=_0x7f3547['requestId']&&Object['hasOwnProperty']['call'](_0x7f3547,'requestId')&&_0x35f103['uint32'](0x10)['uint32'](_0x7f3547['requestId']),_0x35f103;},_0x2f402d['encodeDelimited']=function(_0x20acc1,_0x210085){return this['encode'](_0x20acc1,_0x210085)['ldelim']();},_0x2f402d['decode']=function(_0x4cf403,_0x37b926,_0x23e120){_0x4cf403 instanceof _0x546f05||(_0x4cf403=_0x546f05['create'](_0x4cf403));for(var _0x476638=void 0x0===_0x37b926?_0x4cf403['len']:_0x4cf403['pos']+_0x37b926,_0x4b8d8f=new _0x17fc8f['RevisionHistoryReconnectMessage']();_0x4cf403['pos']<_0x476638;){var _0xa4f55c=_0x4cf403['uint32']();if(_0xa4f55c===_0x23e120)break;switch(_0xa4f55c>>>0x3){case 0x1:_0x4b8d8f['documentId']=_0x4cf403['string']();break;case 0x2:_0x4b8d8f['requestId']=_0x4cf403['uint32']();break;default:_0x4cf403['skipType'](0x7&_0xa4f55c);}}return _0x4b8d8f;},_0x2f402d['decodeDelimited']=function(_0x31ed0c){return _0x31ed0c instanceof _0x546f05||(_0x31ed0c=new _0x546f05(_0x31ed0c)),this['decode'](_0x31ed0c,_0x31ed0c['uint32']());},_0x2f402d['verify']=function(_0x2de21a){return'object'!=typeof _0x2de21a||null===_0x2de21a?'object\x20expected':null!=_0x2de21a['documentId']&&_0x2de21a['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x2de21a['documentId'])?'documentId:\x20string\x20expected':null!=_0x2de21a['requestId']&&_0x2de21a['hasOwnProperty']('requestId')&&!_0x1967e8['isInteger'](_0x2de21a['requestId'])?'requestId:\x20integer\x20expected':null;},_0x2f402d['fromObject']=function(_0x56d413){if(_0x56d413 instanceof _0x17fc8f['RevisionHistoryReconnectMessage'])return _0x56d413;var _0x5dc93e=new _0x17fc8f['RevisionHistoryReconnectMessage']();return null!=_0x56d413['documentId']&&(_0x5dc93e['documentId']=String(_0x56d413['documentId'])),null!=_0x56d413['requestId']&&(_0x5dc93e['requestId']=_0x56d413['requestId']>>>0x0),_0x5dc93e;},_0x2f402d['toObject']=function(_0x5152f2,_0x1ccce8){_0x1ccce8||(_0x1ccce8={});var _0x296f6f={};return _0x1ccce8['defaults']&&(_0x296f6f['documentId']='',_0x296f6f['requestId']=0x0),null!=_0x5152f2['documentId']&&_0x5152f2['hasOwnProperty']('documentId')&&(_0x296f6f['documentId']=_0x5152f2['documentId']),null!=_0x5152f2['requestId']&&_0x5152f2['hasOwnProperty']('requestId')&&(_0x296f6f['requestId']=_0x5152f2['requestId']),_0x296f6f;},_0x2f402d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2f402d['getTypeUrl']=function(_0x4df62e){return void 0x0===_0x4df62e&&(_0x4df62e='type.googleapis.com'),_0x4df62e+'/RevisionHistoryReconnectMessage';},_0x2f402d;}()),_0x17fc8f['RevisionHistoryGetRevisionMessage']=(function(){function _0x498fba(_0x2ed211){if(_0x2ed211){for(var _0x540f4c=Object['keys'](_0x2ed211),_0x828be1=0x0;_0x828be1<_0x540f4c['length'];++_0x828be1)null!=_0x2ed211[_0x540f4c[_0x828be1]]&&(this[_0x540f4c[_0x828be1]]=_0x2ed211[_0x540f4c[_0x828be1]]);}}return _0x498fba['prototype']['documentId']='',_0x498fba['prototype']['revisionId']='',_0x498fba['create']=function(_0x1c8076){return new _0x498fba(_0x1c8076);},_0x498fba['encode']=function(_0x1fcdf1,_0x48d2b8){return _0x48d2b8||(_0x48d2b8=_0x5e31a7['create']()),null!=_0x1fcdf1['documentId']&&Object['hasOwnProperty']['call'](_0x1fcdf1,'documentId')&&_0x48d2b8['uint32'](0xa)['string'](_0x1fcdf1['documentId']),null!=_0x1fcdf1['revisionId']&&Object['hasOwnProperty']['call'](_0x1fcdf1,'revisionId')&&_0x48d2b8['uint32'](0x12)['string'](_0x1fcdf1['revisionId']),_0x48d2b8;},_0x498fba['encodeDelimited']=function(_0x56b702,_0x5d5695){return this['encode'](_0x56b702,_0x5d5695)['ldelim']();},_0x498fba['decode']=function(_0x590ded,_0x3b1a96,_0x2f5b66){_0x590ded instanceof _0x546f05||(_0x590ded=_0x546f05['create'](_0x590ded));for(var _0x332afa=void 0x0===_0x3b1a96?_0x590ded['len']:_0x590ded['pos']+_0x3b1a96,_0x20da23=new _0x17fc8f['RevisionHistoryGetRevisionMessage']();_0x590ded['pos']<_0x332afa;){var _0xc5afee=_0x590ded['uint32']();if(_0xc5afee===_0x2f5b66)break;switch(_0xc5afee>>>0x3){case 0x1:_0x20da23['documentId']=_0x590ded['string']();break;case 0x2:_0x20da23['revisionId']=_0x590ded['string']();break;default:_0x590ded['skipType'](0x7&_0xc5afee);}}return _0x20da23;},_0x498fba['decodeDelimited']=function(_0x50b911){return _0x50b911 instanceof _0x546f05||(_0x50b911=new _0x546f05(_0x50b911)),this['decode'](_0x50b911,_0x50b911['uint32']());},_0x498fba['verify']=function(_0x55e426){return'object'!=typeof _0x55e426||null===_0x55e426?'object\x20expected':null!=_0x55e426['documentId']&&_0x55e426['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x55e426['documentId'])?'documentId:\x20string\x20expected':null!=_0x55e426['revisionId']&&_0x55e426['hasOwnProperty']('revisionId')&&!_0x1967e8['isString'](_0x55e426['revisionId'])?'revisionId:\x20string\x20expected':null;},_0x498fba['fromObject']=function(_0x791519){if(_0x791519 instanceof _0x17fc8f['RevisionHistoryGetRevisionMessage'])return _0x791519;var _0x4efec8=new _0x17fc8f['RevisionHistoryGetRevisionMessage']();return null!=_0x791519['documentId']&&(_0x4efec8['documentId']=String(_0x791519['documentId'])),null!=_0x791519['revisionId']&&(_0x4efec8['revisionId']=String(_0x791519['revisionId'])),_0x4efec8;},_0x498fba['toObject']=function(_0x446bdf,_0x24f2e0){_0x24f2e0||(_0x24f2e0={});var _0x3a81b0={};return _0x24f2e0['defaults']&&(_0x3a81b0['documentId']='',_0x3a81b0['revisionId']=''),null!=_0x446bdf['documentId']&&_0x446bdf['hasOwnProperty']('documentId')&&(_0x3a81b0['documentId']=_0x446bdf['documentId']),null!=_0x446bdf['revisionId']&&_0x446bdf['hasOwnProperty']('revisionId')&&(_0x3a81b0['revisionId']=_0x446bdf['revisionId']),_0x3a81b0;},_0x498fba['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x498fba['getTypeUrl']=function(_0x95cfa9){return void 0x0===_0x95cfa9&&(_0x95cfa9='type.googleapis.com'),_0x95cfa9+'/RevisionHistoryGetRevisionMessage';},_0x498fba;}()),_0x17fc8f['RevisionHistoryConnectMessage']=(function(){function _0x59aa65(_0x483603){if(_0x483603){for(var _0xcff234=Object['keys'](_0x483603),_0x42df39=0x0;_0x42df39<_0xcff234['length'];++_0x42df39)null!=_0x483603[_0xcff234[_0x42df39]]&&(this[_0xcff234[_0x42df39]]=_0x483603[_0xcff234[_0x42df39]]);}}return _0x59aa65['prototype']['documentId']='',_0x59aa65['create']=function(_0x3d6391){return new _0x59aa65(_0x3d6391);},_0x59aa65['encode']=function(_0x1fccd9,_0x1b1f43){return _0x1b1f43||(_0x1b1f43=_0x5e31a7['create']()),null!=_0x1fccd9['documentId']&&Object['hasOwnProperty']['call'](_0x1fccd9,'documentId')&&_0x1b1f43['uint32'](0xa)['string'](_0x1fccd9['documentId']),_0x1b1f43;},_0x59aa65['encodeDelimited']=function(_0x5a512d,_0x3f4c90){return this['encode'](_0x5a512d,_0x3f4c90)['ldelim']();},_0x59aa65['decode']=function(_0x18cba6,_0xcadea9,_0x4214aa){_0x18cba6 instanceof _0x546f05||(_0x18cba6=_0x546f05['create'](_0x18cba6));for(var _0x3346ff=void 0x0===_0xcadea9?_0x18cba6['len']:_0x18cba6['pos']+_0xcadea9,_0x1f1fbc=new _0x17fc8f['RevisionHistoryConnectMessage']();_0x18cba6['pos']<_0x3346ff;){var _0x163825=_0x18cba6['uint32']();if(_0x163825===_0x4214aa)break;_0x163825>>>0x3==0x1?_0x1f1fbc['documentId']=_0x18cba6['string']():_0x18cba6['skipType'](0x7&_0x163825);}return _0x1f1fbc;},_0x59aa65['decodeDelimited']=function(_0x333d47){return _0x333d47 instanceof _0x546f05||(_0x333d47=new _0x546f05(_0x333d47)),this['decode'](_0x333d47,_0x333d47['uint32']());},_0x59aa65['verify']=function(_0x3e07b3){return'object'!=typeof _0x3e07b3||null===_0x3e07b3?'object\x20expected':null!=_0x3e07b3['documentId']&&_0x3e07b3['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x3e07b3['documentId'])?'documentId:\x20string\x20expected':null;},_0x59aa65['fromObject']=function(_0x44d7c2){if(_0x44d7c2 instanceof _0x17fc8f['RevisionHistoryConnectMessage'])return _0x44d7c2;var _0x21a2a0=new _0x17fc8f['RevisionHistoryConnectMessage']();return null!=_0x44d7c2['documentId']&&(_0x21a2a0['documentId']=String(_0x44d7c2['documentId'])),_0x21a2a0;},_0x59aa65['toObject']=function(_0x6b0f7d,_0x199192){_0x199192||(_0x199192={});var _0xdc3a38={};return _0x199192['defaults']&&(_0xdc3a38['documentId']=''),null!=_0x6b0f7d['documentId']&&_0x6b0f7d['hasOwnProperty']('documentId')&&(_0xdc3a38['documentId']=_0x6b0f7d['documentId']),_0xdc3a38;},_0x59aa65['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x59aa65['getTypeUrl']=function(_0x4eb852){return void 0x0===_0x4eb852&&(_0x4eb852='type.googleapis.com'),_0x4eb852+'/RevisionHistoryConnectMessage';},_0x59aa65;}()),_0x17fc8f['RevisionDescriptor']=(function(){function _0x32afed(_0x2298ab){if(_0x2298ab){for(var _0x4f4e0d=Object['keys'](_0x2298ab),_0xc1c174=0x0;_0xc1c174<_0x4f4e0d['length'];++_0xc1c174)null!=_0x2298ab[_0x4f4e0d[_0xc1c174]]&&(this[_0x4f4e0d[_0xc1c174]]=_0x2298ab[_0x4f4e0d[_0xc1c174]]);}}return _0x32afed['prototype']['revisionId']='',_0x32afed['prototype']['name']='',_0x32afed['prototype']['creatorId']='',_0x32afed['prototype']['authorsIds']='',_0x32afed['prototype']['diffData']='',_0x32afed['prototype']['createdAt']='',_0x32afed['prototype']['attributes']='',_0x32afed['prototype']['toVersion']=0x0,_0x32afed['prototype']['fromVersion']=0x0,_0x32afed['prototype']['isEmptyCurrent']=!0x1,_0x32afed['create']=function(_0x2b1409){return new _0x32afed(_0x2b1409);},_0x32afed['encode']=function(_0x77ac6d,_0x47a256){return _0x47a256||(_0x47a256=_0x5e31a7['create']()),null!=_0x77ac6d['revisionId']&&Object['hasOwnProperty']['call'](_0x77ac6d,'revisionId')&&_0x47a256['uint32'](0xa)['string'](_0x77ac6d['revisionId']),null!=_0x77ac6d['name']&&Object['hasOwnProperty']['call'](_0x77ac6d,'name')&&_0x47a256['uint32'](0x12)['string'](_0x77ac6d['name']),null!=_0x77ac6d['creatorId']&&Object['hasOwnProperty']['call'](_0x77ac6d,'creatorId')&&_0x47a256['uint32'](0x1a)['string'](_0x77ac6d['creatorId']),null!=_0x77ac6d['authorsIds']&&Object['hasOwnProperty']['call'](_0x77ac6d,'authorsIds')&&_0x47a256['uint32'](0x22)['string'](_0x77ac6d['authorsIds']),null!=_0x77ac6d['diffData']&&Object['hasOwnProperty']['call'](_0x77ac6d,'diffData')&&_0x47a256['uint32'](0x2a)['string'](_0x77ac6d['diffData']),null!=_0x77ac6d['createdAt']&&Object['hasOwnProperty']['call'](_0x77ac6d,'createdAt')&&_0x47a256['uint32'](0x32)['string'](_0x77ac6d['createdAt']),null!=_0x77ac6d['attributes']&&Object['hasOwnProperty']['call'](_0x77ac6d,'attributes')&&_0x47a256['uint32'](0x3a)['string'](_0x77ac6d['attributes']),null!=_0x77ac6d['toVersion']&&Object['hasOwnProperty']['call'](_0x77ac6d,'toVersion')&&_0x47a256['uint32'](0x40)['uint32'](_0x77ac6d['toVersion']),null!=_0x77ac6d['fromVersion']&&Object['hasOwnProperty']['call'](_0x77ac6d,'fromVersion')&&_0x47a256['uint32'](0x48)['uint32'](_0x77ac6d['fromVersion']),null!=_0x77ac6d['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x77ac6d,'isEmptyCurrent')&&_0x47a256['uint32'](0x50)['bool'](_0x77ac6d['isEmptyCurrent']),_0x47a256;},_0x32afed['encodeDelimited']=function(_0x15ab57,_0x3edfc7){return this['encode'](_0x15ab57,_0x3edfc7)['ldelim']();},_0x32afed['decode']=function(_0x27bbf2,_0x32d4b7,_0x49c539){_0x27bbf2 instanceof _0x546f05||(_0x27bbf2=_0x546f05['create'](_0x27bbf2));for(var _0x3f8a9f=void 0x0===_0x32d4b7?_0x27bbf2['len']:_0x27bbf2['pos']+_0x32d4b7,_0x5024f3=new _0x17fc8f['RevisionDescriptor']();_0x27bbf2['pos']<_0x3f8a9f;){var _0x5887c3=_0x27bbf2['uint32']();if(_0x5887c3===_0x49c539)break;switch(_0x5887c3>>>0x3){case 0x1:_0x5024f3['revisionId']=_0x27bbf2['string']();break;case 0x2:_0x5024f3['name']=_0x27bbf2['string']();break;case 0x3:_0x5024f3['creatorId']=_0x27bbf2['string']();break;case 0x4:_0x5024f3['authorsIds']=_0x27bbf2['string']();break;case 0x5:_0x5024f3['diffData']=_0x27bbf2['string']();break;case 0x6:_0x5024f3['createdAt']=_0x27bbf2['string']();break;case 0x7:_0x5024f3['attributes']=_0x27bbf2['string']();break;case 0x8:_0x5024f3['toVersion']=_0x27bbf2['uint32']();break;case 0x9:_0x5024f3['fromVersion']=_0x27bbf2['uint32']();break;case 0xa:_0x5024f3['isEmptyCurrent']=_0x27bbf2['bool']();break;default:_0x27bbf2['skipType'](0x7&_0x5887c3);}}return _0x5024f3;},_0x32afed['decodeDelimited']=function(_0x49c80f){return _0x49c80f instanceof _0x546f05||(_0x49c80f=new _0x546f05(_0x49c80f)),this['decode'](_0x49c80f,_0x49c80f['uint32']());},_0x32afed['verify']=function(_0x5af6e7){return'object'!=typeof _0x5af6e7||null===_0x5af6e7?'object\x20expected':null!=_0x5af6e7['revisionId']&&_0x5af6e7['hasOwnProperty']('revisionId')&&!_0x1967e8['isString'](_0x5af6e7['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x5af6e7['name']&&_0x5af6e7['hasOwnProperty']('name')&&!_0x1967e8['isString'](_0x5af6e7['name'])?'name:\x20string\x20expected':null!=_0x5af6e7['creatorId']&&_0x5af6e7['hasOwnProperty']('creatorId')&&!_0x1967e8['isString'](_0x5af6e7['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x5af6e7['authorsIds']&&_0x5af6e7['hasOwnProperty']('authorsIds')&&!_0x1967e8['isString'](_0x5af6e7['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x5af6e7['diffData']&&_0x5af6e7['hasOwnProperty']('diffData')&&!_0x1967e8['isString'](_0x5af6e7['diffData'])?'diffData:\x20string\x20expected':null!=_0x5af6e7['createdAt']&&_0x5af6e7['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x5af6e7['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5af6e7['attributes']&&_0x5af6e7['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x5af6e7['attributes'])?'attributes:\x20string\x20expected':null!=_0x5af6e7['toVersion']&&_0x5af6e7['hasOwnProperty']('toVersion')&&!_0x1967e8['isInteger'](_0x5af6e7['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x5af6e7['fromVersion']&&_0x5af6e7['hasOwnProperty']('fromVersion')&&!_0x1967e8['isInteger'](_0x5af6e7['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x5af6e7['isEmptyCurrent']&&_0x5af6e7['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x5af6e7['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},_0x32afed['fromObject']=function(_0x3f8b9c){if(_0x3f8b9c instanceof _0x17fc8f['RevisionDescriptor'])return _0x3f8b9c;var _0x57f9c8=new _0x17fc8f['RevisionDescriptor']();return null!=_0x3f8b9c['revisionId']&&(_0x57f9c8['revisionId']=String(_0x3f8b9c['revisionId'])),null!=_0x3f8b9c['name']&&(_0x57f9c8['name']=String(_0x3f8b9c['name'])),null!=_0x3f8b9c['creatorId']&&(_0x57f9c8['creatorId']=String(_0x3f8b9c['creatorId'])),null!=_0x3f8b9c['authorsIds']&&(_0x57f9c8['authorsIds']=String(_0x3f8b9c['authorsIds'])),null!=_0x3f8b9c['diffData']&&(_0x57f9c8['diffData']=String(_0x3f8b9c['diffData'])),null!=_0x3f8b9c['createdAt']&&(_0x57f9c8['createdAt']=String(_0x3f8b9c['createdAt'])),null!=_0x3f8b9c['attributes']&&(_0x57f9c8['attributes']=String(_0x3f8b9c['attributes'])),null!=_0x3f8b9c['toVersion']&&(_0x57f9c8['toVersion']=_0x3f8b9c['toVersion']>>>0x0),null!=_0x3f8b9c['fromVersion']&&(_0x57f9c8['fromVersion']=_0x3f8b9c['fromVersion']>>>0x0),null!=_0x3f8b9c['isEmptyCurrent']&&(_0x57f9c8['isEmptyCurrent']=Boolean(_0x3f8b9c['isEmptyCurrent'])),_0x57f9c8;},_0x32afed['toObject']=function(_0x50a150,_0x14e03e){_0x14e03e||(_0x14e03e={});var _0x501a27={};return _0x14e03e['defaults']&&(_0x501a27['revisionId']='',_0x501a27['name']='',_0x501a27['creatorId']='',_0x501a27['authorsIds']='',_0x501a27['diffData']='',_0x501a27['createdAt']='',_0x501a27['attributes']='',_0x501a27['toVersion']=0x0,_0x501a27['fromVersion']=0x0,_0x501a27['isEmptyCurrent']=!0x1),null!=_0x50a150['revisionId']&&_0x50a150['hasOwnProperty']('revisionId')&&(_0x501a27['revisionId']=_0x50a150['revisionId']),null!=_0x50a150['name']&&_0x50a150['hasOwnProperty']('name')&&(_0x501a27['name']=_0x50a150['name']),null!=_0x50a150['creatorId']&&_0x50a150['hasOwnProperty']('creatorId')&&(_0x501a27['creatorId']=_0x50a150['creatorId']),null!=_0x50a150['authorsIds']&&_0x50a150['hasOwnProperty']('authorsIds')&&(_0x501a27['authorsIds']=_0x50a150['authorsIds']),null!=_0x50a150['diffData']&&_0x50a150['hasOwnProperty']('diffData')&&(_0x501a27['diffData']=_0x50a150['diffData']),null!=_0x50a150['createdAt']&&_0x50a150['hasOwnProperty']('createdAt')&&(_0x501a27['createdAt']=_0x50a150['createdAt']),null!=_0x50a150['attributes']&&_0x50a150['hasOwnProperty']('attributes')&&(_0x501a27['attributes']=_0x50a150['attributes']),null!=_0x50a150['toVersion']&&_0x50a150['hasOwnProperty']('toVersion')&&(_0x501a27['toVersion']=_0x50a150['toVersion']),null!=_0x50a150['fromVersion']&&_0x50a150['hasOwnProperty']('fromVersion')&&(_0x501a27['fromVersion']=_0x50a150['fromVersion']),null!=_0x50a150['isEmptyCurrent']&&_0x50a150['hasOwnProperty']('isEmptyCurrent')&&(_0x501a27['isEmptyCurrent']=_0x50a150['isEmptyCurrent']),_0x501a27;},_0x32afed['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x32afed['getTypeUrl']=function(_0x32ad71){return void 0x0===_0x32ad71&&(_0x32ad71='type.googleapis.com'),_0x32ad71+'/RevisionDescriptor';},_0x32afed;}()),_0x17fc8f['IsEditorBundleUploadedResponse']=(function(){function _0x3a7422(_0x285bb2){if(_0x285bb2){for(var _0x5715eb=Object['keys'](_0x285bb2),_0x3dd618=0x0;_0x3dd618<_0x5715eb['length'];++_0x3dd618)null!=_0x285bb2[_0x5715eb[_0x3dd618]]&&(this[_0x5715eb[_0x3dd618]]=_0x285bb2[_0x5715eb[_0x3dd618]]);}}return _0x3a7422['prototype']['isUploaded']=!0x1,_0x3a7422['create']=function(_0x561b14){return new _0x3a7422(_0x561b14);},_0x3a7422['encode']=function(_0x1a8b35,_0x54b64e){return _0x54b64e||(_0x54b64e=_0x5e31a7['create']()),null!=_0x1a8b35['isUploaded']&&Object['hasOwnProperty']['call'](_0x1a8b35,'isUploaded')&&_0x54b64e['uint32'](0x8)['bool'](_0x1a8b35['isUploaded']),_0x54b64e;},_0x3a7422['encodeDelimited']=function(_0x37cbcb,_0x29a9cb){return this['encode'](_0x37cbcb,_0x29a9cb)['ldelim']();},_0x3a7422['decode']=function(_0x140c95,_0x223813,_0x385f6c){_0x140c95 instanceof _0x546f05||(_0x140c95=_0x546f05['create'](_0x140c95));for(var _0xdc7e9d=void 0x0===_0x223813?_0x140c95['len']:_0x140c95['pos']+_0x223813,_0xba5571=new _0x17fc8f['IsEditorBundleUploadedResponse']();_0x140c95['pos']<_0xdc7e9d;){var _0x439f67=_0x140c95['uint32']();if(_0x439f67===_0x385f6c)break;_0x439f67>>>0x3==0x1?_0xba5571['isUploaded']=_0x140c95['bool']():_0x140c95['skipType'](0x7&_0x439f67);}return _0xba5571;},_0x3a7422['decodeDelimited']=function(_0x4364b2){return _0x4364b2 instanceof _0x546f05||(_0x4364b2=new _0x546f05(_0x4364b2)),this['decode'](_0x4364b2,_0x4364b2['uint32']());},_0x3a7422['verify']=function(_0xa4430b){return'object'!=typeof _0xa4430b||null===_0xa4430b?'object\x20expected':null!=_0xa4430b['isUploaded']&&_0xa4430b['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0xa4430b['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},_0x3a7422['fromObject']=function(_0x48428b){if(_0x48428b instanceof _0x17fc8f['IsEditorBundleUploadedResponse'])return _0x48428b;var _0x67f0e1=new _0x17fc8f['IsEditorBundleUploadedResponse']();return null!=_0x48428b['isUploaded']&&(_0x67f0e1['isUploaded']=Boolean(_0x48428b['isUploaded'])),_0x67f0e1;},_0x3a7422['toObject']=function(_0x5be4da,_0x2183b2){_0x2183b2||(_0x2183b2={});var _0x539a80={};return _0x2183b2['defaults']&&(_0x539a80['isUploaded']=!0x1),null!=_0x5be4da['isUploaded']&&_0x5be4da['hasOwnProperty']('isUploaded')&&(_0x539a80['isUploaded']=_0x5be4da['isUploaded']),_0x539a80;},_0x3a7422['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a7422['getTypeUrl']=function(_0x20c101){return void 0x0===_0x20c101&&(_0x20c101='type.googleapis.com'),_0x20c101+'/IsEditorBundleUploadedResponse';},_0x3a7422;}()),_0x17fc8f['IsEditorBundleUploadedMessage']=(function(){function _0x1cf8f0(_0x52952b){if(_0x52952b){for(var _0x5e42e7=Object['keys'](_0x52952b),_0x51962d=0x0;_0x51962d<_0x5e42e7['length'];++_0x51962d)null!=_0x52952b[_0x5e42e7[_0x51962d]]&&(this[_0x5e42e7[_0x51962d]]=_0x52952b[_0x5e42e7[_0x51962d]]);}}return _0x1cf8f0['prototype']['bundleVersion']='',_0x1cf8f0['create']=function(_0x355ac1){return new _0x1cf8f0(_0x355ac1);},_0x1cf8f0['encode']=function(_0x4e9fa6,_0x14aff7){return _0x14aff7||(_0x14aff7=_0x5e31a7['create']()),null!=_0x4e9fa6['bundleVersion']&&Object['hasOwnProperty']['call'](_0x4e9fa6,'bundleVersion')&&_0x14aff7['uint32'](0xa)['string'](_0x4e9fa6['bundleVersion']),_0x14aff7;},_0x1cf8f0['encodeDelimited']=function(_0x1606d4,_0x5be407){return this['encode'](_0x1606d4,_0x5be407)['ldelim']();},_0x1cf8f0['decode']=function(_0x1c099e,_0x448cd2,_0x416921){_0x1c099e instanceof _0x546f05||(_0x1c099e=_0x546f05['create'](_0x1c099e));for(var _0x39bf72=void 0x0===_0x448cd2?_0x1c099e['len']:_0x1c099e['pos']+_0x448cd2,_0x171e5c=new _0x17fc8f['IsEditorBundleUploadedMessage']();_0x1c099e['pos']<_0x39bf72;){var _0x4043ec=_0x1c099e['uint32']();if(_0x4043ec===_0x416921)break;_0x4043ec>>>0x3==0x1?_0x171e5c['bundleVersion']=_0x1c099e['string']():_0x1c099e['skipType'](0x7&_0x4043ec);}return _0x171e5c;},_0x1cf8f0['decodeDelimited']=function(_0x30eaf0){return _0x30eaf0 instanceof _0x546f05||(_0x30eaf0=new _0x546f05(_0x30eaf0)),this['decode'](_0x30eaf0,_0x30eaf0['uint32']());},_0x1cf8f0['verify']=function(_0x3f7cb5){return'object'!=typeof _0x3f7cb5||null===_0x3f7cb5?'object\x20expected':null!=_0x3f7cb5['bundleVersion']&&_0x3f7cb5['hasOwnProperty']('bundleVersion')&&!_0x1967e8['isString'](_0x3f7cb5['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},_0x1cf8f0['fromObject']=function(_0x270427){if(_0x270427 instanceof _0x17fc8f['IsEditorBundleUploadedMessage'])return _0x270427;var _0x31f446=new _0x17fc8f['IsEditorBundleUploadedMessage']();return null!=_0x270427['bundleVersion']&&(_0x31f446['bundleVersion']=String(_0x270427['bundleVersion'])),_0x31f446;},_0x1cf8f0['toObject']=function(_0x26bc9b,_0x5acace){_0x5acace||(_0x5acace={});var _0x1fbf54={};return _0x5acace['defaults']&&(_0x1fbf54['bundleVersion']=''),null!=_0x26bc9b['bundleVersion']&&_0x26bc9b['hasOwnProperty']('bundleVersion')&&(_0x1fbf54['bundleVersion']=_0x26bc9b['bundleVersion']),_0x1fbf54;},_0x1cf8f0['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1cf8f0['getTypeUrl']=function(_0x494db5){return void 0x0===_0x494db5&&(_0x494db5='type.googleapis.com'),_0x494db5+'/IsEditorBundleUploadedMessage';},_0x1cf8f0;}()),_0x17fc8f['KeyValueDescriptor']=(function(){function _0x1731f5(_0x23b6b4){if(_0x23b6b4){for(var _0x312773=Object['keys'](_0x23b6b4),_0x503621=0x0;_0x503621<_0x312773['length'];++_0x503621)null!=_0x23b6b4[_0x312773[_0x503621]]&&(this[_0x312773[_0x503621]]=_0x23b6b4[_0x312773[_0x503621]]);}}return _0x1731f5['prototype']['key']='',_0x1731f5['prototype']['value']='',_0x1731f5['create']=function(_0x366d57){return new _0x1731f5(_0x366d57);},_0x1731f5['encode']=function(_0x2ad913,_0x163abc){return _0x163abc||(_0x163abc=_0x5e31a7['create']()),null!=_0x2ad913['key']&&Object['hasOwnProperty']['call'](_0x2ad913,'key')&&_0x163abc['uint32'](0xa)['string'](_0x2ad913['key']),null!=_0x2ad913['value']&&Object['hasOwnProperty']['call'](_0x2ad913,'value')&&_0x163abc['uint32'](0x12)['string'](_0x2ad913['value']),_0x163abc;},_0x1731f5['encodeDelimited']=function(_0xc31177,_0x137a48){return this['encode'](_0xc31177,_0x137a48)['ldelim']();},_0x1731f5['decode']=function(_0x414139,_0x2e761b,_0x2af58c){_0x414139 instanceof _0x546f05||(_0x414139=_0x546f05['create'](_0x414139));for(var _0x5e1e39=void 0x0===_0x2e761b?_0x414139['len']:_0x414139['pos']+_0x2e761b,_0x196cc6=new _0x17fc8f['KeyValueDescriptor']();_0x414139['pos']<_0x5e1e39;){var _0x152ed8=_0x414139['uint32']();if(_0x152ed8===_0x2af58c)break;switch(_0x152ed8>>>0x3){case 0x1:_0x196cc6['key']=_0x414139['string']();break;case 0x2:_0x196cc6['value']=_0x414139['string']();break;default:_0x414139['skipType'](0x7&_0x152ed8);}}return _0x196cc6;},_0x1731f5['decodeDelimited']=function(_0x39da50){return _0x39da50 instanceof _0x546f05||(_0x39da50=new _0x546f05(_0x39da50)),this['decode'](_0x39da50,_0x39da50['uint32']());},_0x1731f5['verify']=function(_0x380f6d){return'object'!=typeof _0x380f6d||null===_0x380f6d?'object\x20expected':null!=_0x380f6d['key']&&_0x380f6d['hasOwnProperty']('key')&&!_0x1967e8['isString'](_0x380f6d['key'])?'key:\x20string\x20expected':null!=_0x380f6d['value']&&_0x380f6d['hasOwnProperty']('value')&&!_0x1967e8['isString'](_0x380f6d['value'])?'value:\x20string\x20expected':null;},_0x1731f5['fromObject']=function(_0x5c1df5){if(_0x5c1df5 instanceof _0x17fc8f['KeyValueDescriptor'])return _0x5c1df5;var _0x467715=new _0x17fc8f['KeyValueDescriptor']();return null!=_0x5c1df5['key']&&(_0x467715['key']=String(_0x5c1df5['key'])),null!=_0x5c1df5['value']&&(_0x467715['value']=String(_0x5c1df5['value'])),_0x467715;},_0x1731f5['toObject']=function(_0x520809,_0x172df1){_0x172df1||(_0x172df1={});var _0x2f76fd={};return _0x172df1['defaults']&&(_0x2f76fd['key']='',_0x2f76fd['value']=''),null!=_0x520809['key']&&_0x520809['hasOwnProperty']('key')&&(_0x2f76fd['key']=_0x520809['key']),null!=_0x520809['value']&&_0x520809['hasOwnProperty']('value')&&(_0x2f76fd['value']=_0x520809['value']),_0x2f76fd;},_0x1731f5['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1731f5['getTypeUrl']=function(_0x460bb6){return void 0x0===_0x460bb6&&(_0x460bb6='type.googleapis.com'),_0x460bb6+'/KeyValueDescriptor';},_0x1731f5;}()),_0x17fc8f['CommentsV2GetDocumentThreadsResponse']=(function(){function _0x1824d9(_0x4d324f){if(this['threads']=[],this['threadsV2']=[],_0x4d324f){for(var _0x1fe5d0=Object['keys'](_0x4d324f),_0x21f24e=0x0;_0x21f24e<_0x1fe5d0['length'];++_0x21f24e)null!=_0x4d324f[_0x1fe5d0[_0x21f24e]]&&(this[_0x1fe5d0[_0x21f24e]]=_0x4d324f[_0x1fe5d0[_0x21f24e]]);}}return _0x1824d9['prototype']['threads']=_0x1967e8['emptyArray'],_0x1824d9['prototype']['threadsV2']=_0x1967e8['emptyArray'],_0x1824d9['create']=function(_0xd3f287){return new _0x1824d9(_0xd3f287);},_0x1824d9['encode']=function(_0x3d7efe,_0x5ec3f4){if(_0x5ec3f4||(_0x5ec3f4=_0x5e31a7['create']()),null!=_0x3d7efe['threads']&&_0x3d7efe['threads']['length']){for(var _0x1f55ae=0x0;_0x1f55ae<_0x3d7efe['threads']['length'];++_0x1f55ae)_0x5ec3f4['uint32'](0xa)['string'](_0x3d7efe['threads'][_0x1f55ae]);}if(null!=_0x3d7efe['threadsV2']&&_0x3d7efe['threadsV2']['length']){for(_0x1f55ae=0x0;_0x1f55ae<_0x3d7efe['threadsV2']['length'];++_0x1f55ae)_0x17fc8f['CommentsThreadDescriptor']['encode'](_0x3d7efe['threadsV2'][_0x1f55ae],_0x5ec3f4['uint32'](0x12)['fork']())['ldelim']();}return _0x5ec3f4;},_0x1824d9['encodeDelimited']=function(_0x8cf029,_0x258049){return this['encode'](_0x8cf029,_0x258049)['ldelim']();},_0x1824d9['decode']=function(_0xfd0f66,_0x58120e,_0x540664){_0xfd0f66 instanceof _0x546f05||(_0xfd0f66=_0x546f05['create'](_0xfd0f66));for(var _0x3f5f72=void 0x0===_0x58120e?_0xfd0f66['len']:_0xfd0f66['pos']+_0x58120e,_0x499639=new _0x17fc8f['CommentsV2GetDocumentThreadsResponse']();_0xfd0f66['pos']<_0x3f5f72;){var _0xb19f1f=_0xfd0f66['uint32']();if(_0xb19f1f===_0x540664)break;switch(_0xb19f1f>>>0x3){case 0x1:_0x499639['threads']&&_0x499639['threads']['length']||(_0x499639['threads']=[]),_0x499639['threads']['push'](_0xfd0f66['string']());break;case 0x2:_0x499639['threadsV2']&&_0x499639['threadsV2']['length']||(_0x499639['threadsV2']=[]),_0x499639['threadsV2']['push'](_0x17fc8f['CommentsThreadDescriptor']['decode'](_0xfd0f66,_0xfd0f66['uint32']()));break;default:_0xfd0f66['skipType'](0x7&_0xb19f1f);}}return _0x499639;},_0x1824d9['decodeDelimited']=function(_0x54201b){return _0x54201b instanceof _0x546f05||(_0x54201b=new _0x546f05(_0x54201b)),this['decode'](_0x54201b,_0x54201b['uint32']());},_0x1824d9['verify']=function(_0x36005e){if('object'!=typeof _0x36005e||null===_0x36005e)return'object\x20expected';if(null!=_0x36005e['threads']&&_0x36005e['hasOwnProperty']('threads')){if(!Array['isArray'](_0x36005e['threads']))return'threads:\x20array\x20expected';for(var _0x23b72e=0x0;_0x23b72e<_0x36005e['threads']['length'];++_0x23b72e)if(!_0x1967e8['isString'](_0x36005e['threads'][_0x23b72e]))return'threads:\x20string[]\x20expected';}if(null!=_0x36005e['threadsV2']&&_0x36005e['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x36005e['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x23b72e=0x0;_0x23b72e<_0x36005e['threadsV2']['length'];++_0x23b72e){var _0x345987=_0x17fc8f['CommentsThreadDescriptor']['verify'](_0x36005e['threadsV2'][_0x23b72e]);if(_0x345987)return'threadsV2.'+_0x345987;}}return null;},_0x1824d9['fromObject']=function(_0x193bff){if(_0x193bff instanceof _0x17fc8f['CommentsV2GetDocumentThreadsResponse'])return _0x193bff;var _0x488ed2=new _0x17fc8f['CommentsV2GetDocumentThreadsResponse']();if(_0x193bff['threads']){if(!Array['isArray'](_0x193bff['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x488ed2['threads']=[];for(var _0x1babeb=0x0;_0x1babeb<_0x193bff['threads']['length'];++_0x1babeb)_0x488ed2['threads'][_0x1babeb]=String(_0x193bff['threads'][_0x1babeb]);}if(_0x193bff['threadsV2']){if(!Array['isArray'](_0x193bff['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');for(_0x488ed2['threadsV2']=[],_0x1babeb=0x0;_0x1babeb<_0x193bff['threadsV2']['length'];++_0x1babeb){if('object'!=typeof _0x193bff['threadsV2'][_0x1babeb])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x488ed2['threadsV2'][_0x1babeb]=_0x17fc8f['CommentsThreadDescriptor']['fromObject'](_0x193bff['threadsV2'][_0x1babeb]);}}return _0x488ed2;},_0x1824d9['toObject']=function(_0x4fc0b4,_0x191949){_0x191949||(_0x191949={});var _0x1da2c8={};if((_0x191949['arrays']||_0x191949['defaults'])&&(_0x1da2c8['threads']=[],_0x1da2c8['threadsV2']=[]),_0x4fc0b4['threads']&&_0x4fc0b4['threads']['length']){_0x1da2c8['threads']=[];for(var _0xe6fb5e=0x0;_0xe6fb5e<_0x4fc0b4['threads']['length'];++_0xe6fb5e)_0x1da2c8['threads'][_0xe6fb5e]=_0x4fc0b4['threads'][_0xe6fb5e];}if(_0x4fc0b4['threadsV2']&&_0x4fc0b4['threadsV2']['length']){for(_0x1da2c8['threadsV2']=[],_0xe6fb5e=0x0;_0xe6fb5e<_0x4fc0b4['threadsV2']['length'];++_0xe6fb5e)_0x1da2c8['threadsV2'][_0xe6fb5e]=_0x17fc8f['CommentsThreadDescriptor']['toObject'](_0x4fc0b4['threadsV2'][_0xe6fb5e],_0x191949);}return _0x1da2c8;},_0x1824d9['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1824d9['getTypeUrl']=function(_0x53db1c){return void 0x0===_0x53db1c&&(_0x53db1c='type.googleapis.com'),_0x53db1c+'/CommentsV2GetDocumentThreadsResponse';},_0x1824d9;}()),_0x17fc8f['CommentsV2GetCommentThreadResponse']=(function(){function _0x54d7da(_0x58e0a4){if(this['comments']=[],this['commentsV2']=[],_0x58e0a4){for(var _0x1fddbc=Object['keys'](_0x58e0a4),_0x36c77e=0x0;_0x36c77e<_0x1fddbc['length'];++_0x36c77e)null!=_0x58e0a4[_0x1fddbc[_0x36c77e]]&&(this[_0x1fddbc[_0x36c77e]]=_0x58e0a4[_0x1fddbc[_0x36c77e]]);}}return _0x54d7da['prototype']['commentThreadId']='',_0x54d7da['prototype']['comments']=_0x1967e8['emptyArray'],_0x54d7da['prototype']['commentsV2']=_0x1967e8['emptyArray'],_0x54d7da['prototype']['resolvedAt']='',_0x54d7da['prototype']['resolvedBy']='',_0x54d7da['prototype']['context']='',_0x54d7da['prototype']['createdAt']='',_0x54d7da['prototype']['deletedAt']='',_0x54d7da['prototype']['attributes']='',_0x54d7da['prototype']['unlinkedAt']='',_0x54d7da['create']=function(_0xa7d1e9){return new _0x54d7da(_0xa7d1e9);},_0x54d7da['encode']=function(_0x2de112,_0x13d3b7){if(_0x13d3b7||(_0x13d3b7=_0x5e31a7['create']()),null!=_0x2de112['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2de112,'commentThreadId')&&_0x13d3b7['uint32'](0xa)['string'](_0x2de112['commentThreadId']),null!=_0x2de112['comments']&&_0x2de112['comments']['length']){for(var _0x6e7b79=0x0;_0x6e7b79<_0x2de112['comments']['length'];++_0x6e7b79)_0x13d3b7['uint32'](0x12)['string'](_0x2de112['comments'][_0x6e7b79]);}if(null!=_0x2de112['commentsV2']&&_0x2de112['commentsV2']['length']){for(_0x6e7b79=0x0;_0x6e7b79<_0x2de112['commentsV2']['length'];++_0x6e7b79)_0x17fc8f['CommentDescriptor']['encode'](_0x2de112['commentsV2'][_0x6e7b79],_0x13d3b7['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x2de112['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2de112,'resolvedAt')&&_0x13d3b7['uint32'](0x22)['string'](_0x2de112['resolvedAt']),null!=_0x2de112['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2de112,'resolvedBy')&&_0x13d3b7['uint32'](0x2a)['string'](_0x2de112['resolvedBy']),null!=_0x2de112['context']&&Object['hasOwnProperty']['call'](_0x2de112,'context')&&_0x13d3b7['uint32'](0x32)['string'](_0x2de112['context']),null!=_0x2de112['createdAt']&&Object['hasOwnProperty']['call'](_0x2de112,'createdAt')&&_0x13d3b7['uint32'](0x3a)['string'](_0x2de112['createdAt']),null!=_0x2de112['deletedAt']&&Object['hasOwnProperty']['call'](_0x2de112,'deletedAt')&&_0x13d3b7['uint32'](0x42)['string'](_0x2de112['deletedAt']),null!=_0x2de112['attributes']&&Object['hasOwnProperty']['call'](_0x2de112,'attributes')&&_0x13d3b7['uint32'](0x4a)['string'](_0x2de112['attributes']),null!=_0x2de112['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x2de112,'unlinkedAt')&&_0x13d3b7['uint32'](0x52)['string'](_0x2de112['unlinkedAt']),_0x13d3b7;},_0x54d7da['encodeDelimited']=function(_0x409170,_0x5ec1d2){return this['encode'](_0x409170,_0x5ec1d2)['ldelim']();},_0x54d7da['decode']=function(_0x1a7227,_0x19e58d,_0x579e55){_0x1a7227 instanceof _0x546f05||(_0x1a7227=_0x546f05['create'](_0x1a7227));for(var _0x5ca419=void 0x0===_0x19e58d?_0x1a7227['len']:_0x1a7227['pos']+_0x19e58d,_0x16e479=new _0x17fc8f['CommentsV2GetCommentThreadResponse']();_0x1a7227['pos']<_0x5ca419;){var _0x14d583=_0x1a7227['uint32']();if(_0x14d583===_0x579e55)break;switch(_0x14d583>>>0x3){case 0x1:_0x16e479['commentThreadId']=_0x1a7227['string']();break;case 0x2:_0x16e479['comments']&&_0x16e479['comments']['length']||(_0x16e479['comments']=[]),_0x16e479['comments']['push'](_0x1a7227['string']());break;case 0x3:_0x16e479['commentsV2']&&_0x16e479['commentsV2']['length']||(_0x16e479['commentsV2']=[]),_0x16e479['commentsV2']['push'](_0x17fc8f['CommentDescriptor']['decode'](_0x1a7227,_0x1a7227['uint32']()));break;case 0x4:_0x16e479['resolvedAt']=_0x1a7227['string']();break;case 0x5:_0x16e479['resolvedBy']=_0x1a7227['string']();break;case 0x6:_0x16e479['context']=_0x1a7227['string']();break;case 0x7:_0x16e479['createdAt']=_0x1a7227['string']();break;case 0x8:_0x16e479['deletedAt']=_0x1a7227['string']();break;case 0x9:_0x16e479['attributes']=_0x1a7227['string']();break;case 0xa:_0x16e479['unlinkedAt']=_0x1a7227['string']();break;default:_0x1a7227['skipType'](0x7&_0x14d583);}}return _0x16e479;},_0x54d7da['decodeDelimited']=function(_0x4360ba){return _0x4360ba instanceof _0x546f05||(_0x4360ba=new _0x546f05(_0x4360ba)),this['decode'](_0x4360ba,_0x4360ba['uint32']());},_0x54d7da['verify']=function(_0x182311){if('object'!=typeof _0x182311||null===_0x182311)return'object\x20expected';if(null!=_0x182311['commentThreadId']&&_0x182311['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x182311['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x182311['comments']&&_0x182311['hasOwnProperty']('comments')){if(!Array['isArray'](_0x182311['comments']))return'comments:\x20array\x20expected';for(var _0x5b3c60=0x0;_0x5b3c60<_0x182311['comments']['length'];++_0x5b3c60)if(!_0x1967e8['isString'](_0x182311['comments'][_0x5b3c60]))return'comments:\x20string[]\x20expected';}if(null!=_0x182311['commentsV2']&&_0x182311['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x182311['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x5b3c60=0x0;_0x5b3c60<_0x182311['commentsV2']['length'];++_0x5b3c60){var _0x545648=_0x17fc8f['CommentDescriptor']['verify'](_0x182311['commentsV2'][_0x5b3c60]);if(_0x545648)return'commentsV2.'+_0x545648;}}return null!=_0x182311['resolvedAt']&&_0x182311['hasOwnProperty']('resolvedAt')&&!_0x1967e8['isString'](_0x182311['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x182311['resolvedBy']&&_0x182311['hasOwnProperty']('resolvedBy')&&!_0x1967e8['isString'](_0x182311['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x182311['context']&&_0x182311['hasOwnProperty']('context')&&!_0x1967e8['isString'](_0x182311['context'])?'context:\x20string\x20expected':null!=_0x182311['createdAt']&&_0x182311['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x182311['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x182311['deletedAt']&&_0x182311['hasOwnProperty']('deletedAt')&&!_0x1967e8['isString'](_0x182311['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x182311['attributes']&&_0x182311['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x182311['attributes'])?'attributes:\x20string\x20expected':null!=_0x182311['unlinkedAt']&&_0x182311['hasOwnProperty']('unlinkedAt')&&!_0x1967e8['isString'](_0x182311['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x54d7da['fromObject']=function(_0x11f405){if(_0x11f405 instanceof _0x17fc8f['CommentsV2GetCommentThreadResponse'])return _0x11f405;var _0x2356f5=new _0x17fc8f['CommentsV2GetCommentThreadResponse']();if(null!=_0x11f405['commentThreadId']&&(_0x2356f5['commentThreadId']=String(_0x11f405['commentThreadId'])),_0x11f405['comments']){if(!Array['isArray'](_0x11f405['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x2356f5['comments']=[];for(var _0x3a4c14=0x0;_0x3a4c14<_0x11f405['comments']['length'];++_0x3a4c14)_0x2356f5['comments'][_0x3a4c14]=String(_0x11f405['comments'][_0x3a4c14]);}if(_0x11f405['commentsV2']){if(!Array['isArray'](_0x11f405['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');for(_0x2356f5['commentsV2']=[],_0x3a4c14=0x0;_0x3a4c14<_0x11f405['commentsV2']['length'];++_0x3a4c14){if('object'!=typeof _0x11f405['commentsV2'][_0x3a4c14])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x2356f5['commentsV2'][_0x3a4c14]=_0x17fc8f['CommentDescriptor']['fromObject'](_0x11f405['commentsV2'][_0x3a4c14]);}}return null!=_0x11f405['resolvedAt']&&(_0x2356f5['resolvedAt']=String(_0x11f405['resolvedAt'])),null!=_0x11f405['resolvedBy']&&(_0x2356f5['resolvedBy']=String(_0x11f405['resolvedBy'])),null!=_0x11f405['context']&&(_0x2356f5['context']=String(_0x11f405['context'])),null!=_0x11f405['createdAt']&&(_0x2356f5['createdAt']=String(_0x11f405['createdAt'])),null!=_0x11f405['deletedAt']&&(_0x2356f5['deletedAt']=String(_0x11f405['deletedAt'])),null!=_0x11f405['attributes']&&(_0x2356f5['attributes']=String(_0x11f405['attributes'])),null!=_0x11f405['unlinkedAt']&&(_0x2356f5['unlinkedAt']=String(_0x11f405['unlinkedAt'])),_0x2356f5;},_0x54d7da['toObject']=function(_0x5bb4e6,_0x3fb4df){_0x3fb4df||(_0x3fb4df={});var _0x14cd89={};if((_0x3fb4df['arrays']||_0x3fb4df['defaults'])&&(_0x14cd89['comments']=[],_0x14cd89['commentsV2']=[]),_0x3fb4df['defaults']&&(_0x14cd89['commentThreadId']='',_0x14cd89['resolvedAt']='',_0x14cd89['resolvedBy']='',_0x14cd89['context']='',_0x14cd89['createdAt']='',_0x14cd89['deletedAt']='',_0x14cd89['attributes']='',_0x14cd89['unlinkedAt']=''),null!=_0x5bb4e6['commentThreadId']&&_0x5bb4e6['hasOwnProperty']('commentThreadId')&&(_0x14cd89['commentThreadId']=_0x5bb4e6['commentThreadId']),_0x5bb4e6['comments']&&_0x5bb4e6['comments']['length']){_0x14cd89['comments']=[];for(var _0x7607a=0x0;_0x7607a<_0x5bb4e6['comments']['length'];++_0x7607a)_0x14cd89['comments'][_0x7607a]=_0x5bb4e6['comments'][_0x7607a];}if(_0x5bb4e6['commentsV2']&&_0x5bb4e6['commentsV2']['length']){for(_0x14cd89['commentsV2']=[],_0x7607a=0x0;_0x7607a<_0x5bb4e6['commentsV2']['length'];++_0x7607a)_0x14cd89['commentsV2'][_0x7607a]=_0x17fc8f['CommentDescriptor']['toObject'](_0x5bb4e6['commentsV2'][_0x7607a],_0x3fb4df);}return null!=_0x5bb4e6['resolvedAt']&&_0x5bb4e6['hasOwnProperty']('resolvedAt')&&(_0x14cd89['resolvedAt']=_0x5bb4e6['resolvedAt']),null!=_0x5bb4e6['resolvedBy']&&_0x5bb4e6['hasOwnProperty']('resolvedBy')&&(_0x14cd89['resolvedBy']=_0x5bb4e6['resolvedBy']),null!=_0x5bb4e6['context']&&_0x5bb4e6['hasOwnProperty']('context')&&(_0x14cd89['context']=_0x5bb4e6['context']),null!=_0x5bb4e6['createdAt']&&_0x5bb4e6['hasOwnProperty']('createdAt')&&(_0x14cd89['createdAt']=_0x5bb4e6['createdAt']),null!=_0x5bb4e6['deletedAt']&&_0x5bb4e6['hasOwnProperty']('deletedAt')&&(_0x14cd89['deletedAt']=_0x5bb4e6['deletedAt']),null!=_0x5bb4e6['attributes']&&_0x5bb4e6['hasOwnProperty']('attributes')&&(_0x14cd89['attributes']=_0x5bb4e6['attributes']),null!=_0x5bb4e6['unlinkedAt']&&_0x5bb4e6['hasOwnProperty']('unlinkedAt')&&(_0x14cd89['unlinkedAt']=_0x5bb4e6['unlinkedAt']),_0x14cd89;},_0x54d7da['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x54d7da['getTypeUrl']=function(_0x2344a0){return void 0x0===_0x2344a0&&(_0x2344a0='type.googleapis.com'),_0x2344a0+'/CommentsV2GetCommentThreadResponse';},_0x54d7da;}()),_0x17fc8f['CommentsV2ConnectResponse']=(function(){function _0xcdeadc(_0x40f998){if(this['threads']=[],this['threadsV2']=[],_0x40f998){for(var _0x2b0ace=Object['keys'](_0x40f998),_0x2545d4=0x0;_0x2545d4<_0x2b0ace['length'];++_0x2545d4)null!=_0x40f998[_0x2b0ace[_0x2545d4]]&&(this[_0x2b0ace[_0x2545d4]]=_0x40f998[_0x2b0ace[_0x2545d4]]);}}return _0xcdeadc['prototype']['channel']='',_0xcdeadc['prototype']['threads']=_0x1967e8['emptyArray'],_0xcdeadc['prototype']['threadsV2']=_0x1967e8['emptyArray'],_0xcdeadc['create']=function(_0x43d631){return new _0xcdeadc(_0x43d631);},_0xcdeadc['encode']=function(_0x46c39c,_0x2a10ca){if(_0x2a10ca||(_0x2a10ca=_0x5e31a7['create']()),null!=_0x46c39c['channel']&&Object['hasOwnProperty']['call'](_0x46c39c,'channel')&&_0x2a10ca['uint32'](0xa)['string'](_0x46c39c['channel']),null!=_0x46c39c['threads']&&_0x46c39c['threads']['length']){for(var _0x33ea5b=0x0;_0x33ea5b<_0x46c39c['threads']['length'];++_0x33ea5b)_0x2a10ca['uint32'](0x12)['string'](_0x46c39c['threads'][_0x33ea5b]);}if(null!=_0x46c39c['threadsV2']&&_0x46c39c['threadsV2']['length']){for(_0x33ea5b=0x0;_0x33ea5b<_0x46c39c['threadsV2']['length'];++_0x33ea5b)_0x17fc8f['CommentsThreadDescriptor']['encode'](_0x46c39c['threadsV2'][_0x33ea5b],_0x2a10ca['uint32'](0x1a)['fork']())['ldelim']();}return _0x2a10ca;},_0xcdeadc['encodeDelimited']=function(_0x3c3e11,_0x2ff7ce){return this['encode'](_0x3c3e11,_0x2ff7ce)['ldelim']();},_0xcdeadc['decode']=function(_0x4088fd,_0x513c26,_0x6eb173){_0x4088fd instanceof _0x546f05||(_0x4088fd=_0x546f05['create'](_0x4088fd));for(var _0x432039=void 0x0===_0x513c26?_0x4088fd['len']:_0x4088fd['pos']+_0x513c26,_0x3040a3=new _0x17fc8f['CommentsV2ConnectResponse']();_0x4088fd['pos']<_0x432039;){var _0x52c053=_0x4088fd['uint32']();if(_0x52c053===_0x6eb173)break;switch(_0x52c053>>>0x3){case 0x1:_0x3040a3['channel']=_0x4088fd['string']();break;case 0x2:_0x3040a3['threads']&&_0x3040a3['threads']['length']||(_0x3040a3['threads']=[]),_0x3040a3['threads']['push'](_0x4088fd['string']());break;case 0x3:_0x3040a3['threadsV2']&&_0x3040a3['threadsV2']['length']||(_0x3040a3['threadsV2']=[]),_0x3040a3['threadsV2']['push'](_0x17fc8f['CommentsThreadDescriptor']['decode'](_0x4088fd,_0x4088fd['uint32']()));break;default:_0x4088fd['skipType'](0x7&_0x52c053);}}return _0x3040a3;},_0xcdeadc['decodeDelimited']=function(_0x304e89){return _0x304e89 instanceof _0x546f05||(_0x304e89=new _0x546f05(_0x304e89)),this['decode'](_0x304e89,_0x304e89['uint32']());},_0xcdeadc['verify']=function(_0x214143){if('object'!=typeof _0x214143||null===_0x214143)return'object\x20expected';if(null!=_0x214143['channel']&&_0x214143['hasOwnProperty']('channel')&&!_0x1967e8['isString'](_0x214143['channel']))return'channel:\x20string\x20expected';if(null!=_0x214143['threads']&&_0x214143['hasOwnProperty']('threads')){if(!Array['isArray'](_0x214143['threads']))return'threads:\x20array\x20expected';for(var _0x140552=0x0;_0x140552<_0x214143['threads']['length'];++_0x140552)if(!_0x1967e8['isString'](_0x214143['threads'][_0x140552]))return'threads:\x20string[]\x20expected';}if(null!=_0x214143['threadsV2']&&_0x214143['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x214143['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x140552=0x0;_0x140552<_0x214143['threadsV2']['length'];++_0x140552){var _0x588870=_0x17fc8f['CommentsThreadDescriptor']['verify'](_0x214143['threadsV2'][_0x140552]);if(_0x588870)return'threadsV2.'+_0x588870;}}return null;},_0xcdeadc['fromObject']=function(_0x5d21a8){if(_0x5d21a8 instanceof _0x17fc8f['CommentsV2ConnectResponse'])return _0x5d21a8;var _0x293f52=new _0x17fc8f['CommentsV2ConnectResponse']();if(null!=_0x5d21a8['channel']&&(_0x293f52['channel']=String(_0x5d21a8['channel'])),_0x5d21a8['threads']){if(!Array['isArray'](_0x5d21a8['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x293f52['threads']=[];for(var _0xb992de=0x0;_0xb992de<_0x5d21a8['threads']['length'];++_0xb992de)_0x293f52['threads'][_0xb992de]=String(_0x5d21a8['threads'][_0xb992de]);}if(_0x5d21a8['threadsV2']){if(!Array['isArray'](_0x5d21a8['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');for(_0x293f52['threadsV2']=[],_0xb992de=0x0;_0xb992de<_0x5d21a8['threadsV2']['length'];++_0xb992de){if('object'!=typeof _0x5d21a8['threadsV2'][_0xb992de])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x293f52['threadsV2'][_0xb992de]=_0x17fc8f['CommentsThreadDescriptor']['fromObject'](_0x5d21a8['threadsV2'][_0xb992de]);}}return _0x293f52;},_0xcdeadc['toObject']=function(_0x5ce549,_0x19ee70){_0x19ee70||(_0x19ee70={});var _0x3e6279={};if((_0x19ee70['arrays']||_0x19ee70['defaults'])&&(_0x3e6279['threads']=[],_0x3e6279['threadsV2']=[]),_0x19ee70['defaults']&&(_0x3e6279['channel']=''),null!=_0x5ce549['channel']&&_0x5ce549['hasOwnProperty']('channel')&&(_0x3e6279['channel']=_0x5ce549['channel']),_0x5ce549['threads']&&_0x5ce549['threads']['length']){_0x3e6279['threads']=[];for(var _0xb9bd73=0x0;_0xb9bd73<_0x5ce549['threads']['length'];++_0xb9bd73)_0x3e6279['threads'][_0xb9bd73]=_0x5ce549['threads'][_0xb9bd73];}if(_0x5ce549['threadsV2']&&_0x5ce549['threadsV2']['length']){for(_0x3e6279['threadsV2']=[],_0xb9bd73=0x0;_0xb9bd73<_0x5ce549['threadsV2']['length'];++_0xb9bd73)_0x3e6279['threadsV2'][_0xb9bd73]=_0x17fc8f['CommentsThreadDescriptor']['toObject'](_0x5ce549['threadsV2'][_0xb9bd73],_0x19ee70);}return _0x3e6279;},_0xcdeadc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0xcdeadc['getTypeUrl']=function(_0x5eaafc){return void 0x0===_0x5eaafc&&(_0x5eaafc='type.googleapis.com'),_0x5eaafc+'/CommentsV2ConnectResponse';},_0xcdeadc;}()),_0x17fc8f['CommentsV2AddCommentResponse']=(function(){function _0x44e391(_0x293850){if(_0x293850){for(var _0x17faad=Object['keys'](_0x293850),_0x2b5a12=0x0;_0x2b5a12<_0x17faad['length'];++_0x2b5a12)null!=_0x293850[_0x17faad[_0x2b5a12]]&&(this[_0x17faad[_0x2b5a12]]=_0x293850[_0x17faad[_0x2b5a12]]);}}return _0x44e391['prototype']['commentThreadId']='',_0x44e391['prototype']['commentId']='',_0x44e391['prototype']['createdAt']='',_0x44e391['create']=function(_0xcf1446){return new _0x44e391(_0xcf1446);},_0x44e391['encode']=function(_0x3459c8,_0x37e989){return _0x37e989||(_0x37e989=_0x5e31a7['create']()),null!=_0x3459c8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3459c8,'commentThreadId')&&_0x37e989['uint32'](0xa)['string'](_0x3459c8['commentThreadId']),null!=_0x3459c8['commentId']&&Object['hasOwnProperty']['call'](_0x3459c8,'commentId')&&_0x37e989['uint32'](0x12)['string'](_0x3459c8['commentId']),null!=_0x3459c8['createdAt']&&Object['hasOwnProperty']['call'](_0x3459c8,'createdAt')&&_0x37e989['uint32'](0x1a)['string'](_0x3459c8['createdAt']),_0x37e989;},_0x44e391['encodeDelimited']=function(_0x401307,_0x3af2fb){return this['encode'](_0x401307,_0x3af2fb)['ldelim']();},_0x44e391['decode']=function(_0xeabde3,_0x4452a9,_0x25baef){_0xeabde3 instanceof _0x546f05||(_0xeabde3=_0x546f05['create'](_0xeabde3));for(var _0x5d1d37=void 0x0===_0x4452a9?_0xeabde3['len']:_0xeabde3['pos']+_0x4452a9,_0x4c64f8=new _0x17fc8f['CommentsV2AddCommentResponse']();_0xeabde3['pos']<_0x5d1d37;){var _0xd570c5=_0xeabde3['uint32']();if(_0xd570c5===_0x25baef)break;switch(_0xd570c5>>>0x3){case 0x1:_0x4c64f8['commentThreadId']=_0xeabde3['string']();break;case 0x2:_0x4c64f8['commentId']=_0xeabde3['string']();break;case 0x3:_0x4c64f8['createdAt']=_0xeabde3['string']();break;default:_0xeabde3['skipType'](0x7&_0xd570c5);}}return _0x4c64f8;},_0x44e391['decodeDelimited']=function(_0x34363b){return _0x34363b instanceof _0x546f05||(_0x34363b=new _0x546f05(_0x34363b)),this['decode'](_0x34363b,_0x34363b['uint32']());},_0x44e391['verify']=function(_0x38106d){return'object'!=typeof _0x38106d||null===_0x38106d?'object\x20expected':null!=_0x38106d['commentThreadId']&&_0x38106d['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x38106d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x38106d['commentId']&&_0x38106d['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0x38106d['commentId'])?'commentId:\x20string\x20expected':null!=_0x38106d['createdAt']&&_0x38106d['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x38106d['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x44e391['fromObject']=function(_0x49562d){if(_0x49562d instanceof _0x17fc8f['CommentsV2AddCommentResponse'])return _0x49562d;var _0x169b32=new _0x17fc8f['CommentsV2AddCommentResponse']();return null!=_0x49562d['commentThreadId']&&(_0x169b32['commentThreadId']=String(_0x49562d['commentThreadId'])),null!=_0x49562d['commentId']&&(_0x169b32['commentId']=String(_0x49562d['commentId'])),null!=_0x49562d['createdAt']&&(_0x169b32['createdAt']=String(_0x49562d['createdAt'])),_0x169b32;},_0x44e391['toObject']=function(_0x544828,_0x30145f){_0x30145f||(_0x30145f={});var _0x4fe6d9={};return _0x30145f['defaults']&&(_0x4fe6d9['commentThreadId']='',_0x4fe6d9['commentId']='',_0x4fe6d9['createdAt']=''),null!=_0x544828['commentThreadId']&&_0x544828['hasOwnProperty']('commentThreadId')&&(_0x4fe6d9['commentThreadId']=_0x544828['commentThreadId']),null!=_0x544828['commentId']&&_0x544828['hasOwnProperty']('commentId')&&(_0x4fe6d9['commentId']=_0x544828['commentId']),null!=_0x544828['createdAt']&&_0x544828['hasOwnProperty']('createdAt')&&(_0x4fe6d9['createdAt']=_0x544828['createdAt']),_0x4fe6d9;},_0x44e391['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x44e391['getTypeUrl']=function(_0x22d8b2){return void 0x0===_0x22d8b2&&(_0x22d8b2='type.googleapis.com'),_0x22d8b2+'/CommentsV2AddCommentResponse';},_0x44e391;}()),_0x17fc8f['CommentsV2ResolveCommentThreadResponse']=(function(){function _0x4ea19a(_0x2bc03e){if(_0x2bc03e){for(var _0x26ac8b=Object['keys'](_0x2bc03e),_0xb34c=0x0;_0xb34c<_0x26ac8b['length'];++_0xb34c)null!=_0x2bc03e[_0x26ac8b[_0xb34c]]&&(this[_0x26ac8b[_0xb34c]]=_0x2bc03e[_0x26ac8b[_0xb34c]]);}}return _0x4ea19a['prototype']['commentThreadId']='',_0x4ea19a['prototype']['documentId']='',_0x4ea19a['prototype']['resolvedAt']='',_0x4ea19a['prototype']['resolvedBy']='',_0x4ea19a['create']=function(_0x4fa538){return new _0x4ea19a(_0x4fa538);},_0x4ea19a['encode']=function(_0x3ed0f9,_0xa306d6){return _0xa306d6||(_0xa306d6=_0x5e31a7['create']()),null!=_0x3ed0f9['commentThreadId']&&Object['hasOwnProperty']['call'](_0x3ed0f9,'commentThreadId')&&_0xa306d6['uint32'](0xa)['string'](_0x3ed0f9['commentThreadId']),null!=_0x3ed0f9['documentId']&&Object['hasOwnProperty']['call'](_0x3ed0f9,'documentId')&&_0xa306d6['uint32'](0x12)['string'](_0x3ed0f9['documentId']),null!=_0x3ed0f9['resolvedAt']&&Object['hasOwnProperty']['call'](_0x3ed0f9,'resolvedAt')&&_0xa306d6['uint32'](0x1a)['string'](_0x3ed0f9['resolvedAt']),null!=_0x3ed0f9['resolvedBy']&&Object['hasOwnProperty']['call'](_0x3ed0f9,'resolvedBy')&&_0xa306d6['uint32'](0x22)['string'](_0x3ed0f9['resolvedBy']),_0xa306d6;},_0x4ea19a['encodeDelimited']=function(_0x26f774,_0x2c2bc1){return this['encode'](_0x26f774,_0x2c2bc1)['ldelim']();},_0x4ea19a['decode']=function(_0x26d5b6,_0x32ff3b,_0x265152){_0x26d5b6 instanceof _0x546f05||(_0x26d5b6=_0x546f05['create'](_0x26d5b6));for(var _0x5e9d2c=void 0x0===_0x32ff3b?_0x26d5b6['len']:_0x26d5b6['pos']+_0x32ff3b,_0x32a0bc=new _0x17fc8f['CommentsV2ResolveCommentThreadResponse']();_0x26d5b6['pos']<_0x5e9d2c;){var _0x9b9fb7=_0x26d5b6['uint32']();if(_0x9b9fb7===_0x265152)break;switch(_0x9b9fb7>>>0x3){case 0x1:_0x32a0bc['commentThreadId']=_0x26d5b6['string']();break;case 0x2:_0x32a0bc['documentId']=_0x26d5b6['string']();break;case 0x3:_0x32a0bc['resolvedAt']=_0x26d5b6['string']();break;case 0x4:_0x32a0bc['resolvedBy']=_0x26d5b6['string']();break;default:_0x26d5b6['skipType'](0x7&_0x9b9fb7);}}return _0x32a0bc;},_0x4ea19a['decodeDelimited']=function(_0x448de2){return _0x448de2 instanceof _0x546f05||(_0x448de2=new _0x546f05(_0x448de2)),this['decode'](_0x448de2,_0x448de2['uint32']());},_0x4ea19a['verify']=function(_0x3102e6){return'object'!=typeof _0x3102e6||null===_0x3102e6?'object\x20expected':null!=_0x3102e6['commentThreadId']&&_0x3102e6['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x3102e6['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3102e6['documentId']&&_0x3102e6['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x3102e6['documentId'])?'documentId:\x20string\x20expected':null!=_0x3102e6['resolvedAt']&&_0x3102e6['hasOwnProperty']('resolvedAt')&&!_0x1967e8['isString'](_0x3102e6['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3102e6['resolvedBy']&&_0x3102e6['hasOwnProperty']('resolvedBy')&&!_0x1967e8['isString'](_0x3102e6['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},_0x4ea19a['fromObject']=function(_0x522189){if(_0x522189 instanceof _0x17fc8f['CommentsV2ResolveCommentThreadResponse'])return _0x522189;var _0x1c02b1=new _0x17fc8f['CommentsV2ResolveCommentThreadResponse']();return null!=_0x522189['commentThreadId']&&(_0x1c02b1['commentThreadId']=String(_0x522189['commentThreadId'])),null!=_0x522189['documentId']&&(_0x1c02b1['documentId']=String(_0x522189['documentId'])),null!=_0x522189['resolvedAt']&&(_0x1c02b1['resolvedAt']=String(_0x522189['resolvedAt'])),null!=_0x522189['resolvedBy']&&(_0x1c02b1['resolvedBy']=String(_0x522189['resolvedBy'])),_0x1c02b1;},_0x4ea19a['toObject']=function(_0x148f9d,_0x4d8d0c){_0x4d8d0c||(_0x4d8d0c={});var _0x462f0b={};return _0x4d8d0c['defaults']&&(_0x462f0b['commentThreadId']='',_0x462f0b['documentId']='',_0x462f0b['resolvedAt']='',_0x462f0b['resolvedBy']=''),null!=_0x148f9d['commentThreadId']&&_0x148f9d['hasOwnProperty']('commentThreadId')&&(_0x462f0b['commentThreadId']=_0x148f9d['commentThreadId']),null!=_0x148f9d['documentId']&&_0x148f9d['hasOwnProperty']('documentId')&&(_0x462f0b['documentId']=_0x148f9d['documentId']),null!=_0x148f9d['resolvedAt']&&_0x148f9d['hasOwnProperty']('resolvedAt')&&(_0x462f0b['resolvedAt']=_0x148f9d['resolvedAt']),null!=_0x148f9d['resolvedBy']&&_0x148f9d['hasOwnProperty']('resolvedBy')&&(_0x462f0b['resolvedBy']=_0x148f9d['resolvedBy']),_0x462f0b;},_0x4ea19a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4ea19a['getTypeUrl']=function(_0x18cdb6){return void 0x0===_0x18cdb6&&(_0x18cdb6='type.googleapis.com'),_0x18cdb6+'/CommentsV2ResolveCommentThreadResponse';},_0x4ea19a;}()),_0x17fc8f['CommentsV2AddCommentThreadResponse']=(function(){function _0x53eb0c(_0x2ccdeb){if(this['comments']=[],_0x2ccdeb){for(var _0x4f4b65=Object['keys'](_0x2ccdeb),_0x5e404a=0x0;_0x5e404a<_0x4f4b65['length'];++_0x5e404a)null!=_0x2ccdeb[_0x4f4b65[_0x5e404a]]&&(this[_0x4f4b65[_0x5e404a]]=_0x2ccdeb[_0x4f4b65[_0x5e404a]]);}}return _0x53eb0c['prototype']['commentThreadId']='',_0x53eb0c['prototype']['createdAt']='',_0x53eb0c['prototype']['comments']=_0x1967e8['emptyArray'],_0x53eb0c['create']=function(_0x221a33){return new _0x53eb0c(_0x221a33);},_0x53eb0c['encode']=function(_0x5bbd5d,_0x300f26){if(_0x300f26||(_0x300f26=_0x5e31a7['create']()),null!=_0x5bbd5d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x5bbd5d,'commentThreadId')&&_0x300f26['uint32'](0xa)['string'](_0x5bbd5d['commentThreadId']),null!=_0x5bbd5d['createdAt']&&Object['hasOwnProperty']['call'](_0x5bbd5d,'createdAt')&&_0x300f26['uint32'](0x12)['string'](_0x5bbd5d['createdAt']),null!=_0x5bbd5d['comments']&&_0x5bbd5d['comments']['length']){for(var _0x3231b8=0x0;_0x3231b8<_0x5bbd5d['comments']['length'];++_0x3231b8)_0x17fc8f['CommentThreadAddedCommentDescriptor']['encode'](_0x5bbd5d['comments'][_0x3231b8],_0x300f26['uint32'](0x1a)['fork']())['ldelim']();}return _0x300f26;},_0x53eb0c['encodeDelimited']=function(_0x89b8ce,_0x1eb72f){return this['encode'](_0x89b8ce,_0x1eb72f)['ldelim']();},_0x53eb0c['decode']=function(_0x572136,_0x4810e3,_0x5e1ac4){_0x572136 instanceof _0x546f05||(_0x572136=_0x546f05['create'](_0x572136));for(var _0x4f82e0=void 0x0===_0x4810e3?_0x572136['len']:_0x572136['pos']+_0x4810e3,_0x43fc50=new _0x17fc8f['CommentsV2AddCommentThreadResponse']();_0x572136['pos']<_0x4f82e0;){var _0x2d25a8=_0x572136['uint32']();if(_0x2d25a8===_0x5e1ac4)break;switch(_0x2d25a8>>>0x3){case 0x1:_0x43fc50['commentThreadId']=_0x572136['string']();break;case 0x2:_0x43fc50['createdAt']=_0x572136['string']();break;case 0x3:_0x43fc50['comments']&&_0x43fc50['comments']['length']||(_0x43fc50['comments']=[]),_0x43fc50['comments']['push'](_0x17fc8f['CommentThreadAddedCommentDescriptor']['decode'](_0x572136,_0x572136['uint32']()));break;default:_0x572136['skipType'](0x7&_0x2d25a8);}}return _0x43fc50;},_0x53eb0c['decodeDelimited']=function(_0x22d3c3){return _0x22d3c3 instanceof _0x546f05||(_0x22d3c3=new _0x546f05(_0x22d3c3)),this['decode'](_0x22d3c3,_0x22d3c3['uint32']());},_0x53eb0c['verify']=function(_0x3d356a){if('object'!=typeof _0x3d356a||null===_0x3d356a)return'object\x20expected';if(null!=_0x3d356a['commentThreadId']&&_0x3d356a['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x3d356a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3d356a['createdAt']&&_0x3d356a['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x3d356a['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x3d356a['comments']&&_0x3d356a['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3d356a['comments']))return'comments:\x20array\x20expected';for(var _0x4c48e8=0x0;_0x4c48e8<_0x3d356a['comments']['length'];++_0x4c48e8){var _0x2de028=_0x17fc8f['CommentThreadAddedCommentDescriptor']['verify'](_0x3d356a['comments'][_0x4c48e8]);if(_0x2de028)return'comments.'+_0x2de028;}}return null;},_0x53eb0c['fromObject']=function(_0x507d86){if(_0x507d86 instanceof _0x17fc8f['CommentsV2AddCommentThreadResponse'])return _0x507d86;var _0x5af6ee=new _0x17fc8f['CommentsV2AddCommentThreadResponse']();if(null!=_0x507d86['commentThreadId']&&(_0x5af6ee['commentThreadId']=String(_0x507d86['commentThreadId'])),null!=_0x507d86['createdAt']&&(_0x5af6ee['createdAt']=String(_0x507d86['createdAt'])),_0x507d86['comments']){if(!Array['isArray'](_0x507d86['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x5af6ee['comments']=[];for(var _0x506f66=0x0;_0x506f66<_0x507d86['comments']['length'];++_0x506f66){if('object'!=typeof _0x507d86['comments'][_0x506f66])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x5af6ee['comments'][_0x506f66]=_0x17fc8f['CommentThreadAddedCommentDescriptor']['fromObject'](_0x507d86['comments'][_0x506f66]);}}return _0x5af6ee;},_0x53eb0c['toObject']=function(_0x4deb83,_0x1d6bfa){_0x1d6bfa||(_0x1d6bfa={});var _0x6bfe0c={};if((_0x1d6bfa['arrays']||_0x1d6bfa['defaults'])&&(_0x6bfe0c['comments']=[]),_0x1d6bfa['defaults']&&(_0x6bfe0c['commentThreadId']='',_0x6bfe0c['createdAt']=''),null!=_0x4deb83['commentThreadId']&&_0x4deb83['hasOwnProperty']('commentThreadId')&&(_0x6bfe0c['commentThreadId']=_0x4deb83['commentThreadId']),null!=_0x4deb83['createdAt']&&_0x4deb83['hasOwnProperty']('createdAt')&&(_0x6bfe0c['createdAt']=_0x4deb83['createdAt']),_0x4deb83['comments']&&_0x4deb83['comments']['length']){_0x6bfe0c['comments']=[];for(var _0x3fd7d8=0x0;_0x3fd7d8<_0x4deb83['comments']['length'];++_0x3fd7d8)_0x6bfe0c['comments'][_0x3fd7d8]=_0x17fc8f['CommentThreadAddedCommentDescriptor']['toObject'](_0x4deb83['comments'][_0x3fd7d8],_0x1d6bfa);}return _0x6bfe0c;},_0x53eb0c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53eb0c['getTypeUrl']=function(_0x5f542e){return void 0x0===_0x5f542e&&(_0x5f542e='type.googleapis.com'),_0x5f542e+'/CommentsV2AddCommentThreadResponse';},_0x53eb0c;}()),_0x17fc8f['CommentsV2UpdateCommentMessage']=(function(){function _0x2b1ede(_0x50e6b3){if(_0x50e6b3){for(var _0x17e881=Object['keys'](_0x50e6b3),_0x5f3b34=0x0;_0x5f3b34<_0x17e881['length'];++_0x5f3b34)null!=_0x50e6b3[_0x17e881[_0x5f3b34]]&&(this[_0x17e881[_0x5f3b34]]=_0x50e6b3[_0x17e881[_0x5f3b34]]);}}return _0x2b1ede['prototype']['commentThreadId']='',_0x2b1ede['prototype']['commentId']='',_0x2b1ede['prototype']['content']='',_0x2b1ede['prototype']['documentId']='',_0x2b1ede['prototype']['attributes']='',_0x2b1ede['prototype']['isAttributesUpdated']=!0x1,_0x2b1ede['prototype']['commentThread']=null,_0x2b1ede['create']=function(_0x16b894){return new _0x2b1ede(_0x16b894);},_0x2b1ede['encode']=function(_0x132965,_0x2aaa1f){return _0x2aaa1f||(_0x2aaa1f=_0x5e31a7['create']()),null!=_0x132965['commentThreadId']&&Object['hasOwnProperty']['call'](_0x132965,'commentThreadId')&&_0x2aaa1f['uint32'](0xa)['string'](_0x132965['commentThreadId']),null!=_0x132965['commentId']&&Object['hasOwnProperty']['call'](_0x132965,'commentId')&&_0x2aaa1f['uint32'](0x12)['string'](_0x132965['commentId']),null!=_0x132965['content']&&Object['hasOwnProperty']['call'](_0x132965,'content')&&_0x2aaa1f['uint32'](0x1a)['string'](_0x132965['content']),null!=_0x132965['documentId']&&Object['hasOwnProperty']['call'](_0x132965,'documentId')&&_0x2aaa1f['uint32'](0x22)['string'](_0x132965['documentId']),null!=_0x132965['attributes']&&Object['hasOwnProperty']['call'](_0x132965,'attributes')&&_0x2aaa1f['uint32'](0x2a)['string'](_0x132965['attributes']),null!=_0x132965['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x132965,'isAttributesUpdated')&&_0x2aaa1f['uint32'](0x30)['bool'](_0x132965['isAttributesUpdated']),null!=_0x132965['commentThread']&&Object['hasOwnProperty']['call'](_0x132965,'commentThread')&&_0x17fc8f['CommentsThreadDescriptor']['encode'](_0x132965['commentThread'],_0x2aaa1f['uint32'](0x3a)['fork']())['ldelim'](),_0x2aaa1f;},_0x2b1ede['encodeDelimited']=function(_0xe8e3a6,_0x12dd73){return this['encode'](_0xe8e3a6,_0x12dd73)['ldelim']();},_0x2b1ede['decode']=function(_0xf43a64,_0x170e9b,_0x41ab3f){_0xf43a64 instanceof _0x546f05||(_0xf43a64=_0x546f05['create'](_0xf43a64));for(var _0x28332a=void 0x0===_0x170e9b?_0xf43a64['len']:_0xf43a64['pos']+_0x170e9b,_0x3b12bf=new _0x17fc8f['CommentsV2UpdateCommentMessage']();_0xf43a64['pos']<_0x28332a;){var _0x30b512=_0xf43a64['uint32']();if(_0x30b512===_0x41ab3f)break;switch(_0x30b512>>>0x3){case 0x1:_0x3b12bf['commentThreadId']=_0xf43a64['string']();break;case 0x2:_0x3b12bf['commentId']=_0xf43a64['string']();break;case 0x3:_0x3b12bf['content']=_0xf43a64['string']();break;case 0x4:_0x3b12bf['documentId']=_0xf43a64['string']();break;case 0x5:_0x3b12bf['attributes']=_0xf43a64['string']();break;case 0x6:_0x3b12bf['isAttributesUpdated']=_0xf43a64['bool']();break;case 0x7:_0x3b12bf['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['decode'](_0xf43a64,_0xf43a64['uint32']());break;default:_0xf43a64['skipType'](0x7&_0x30b512);}}return _0x3b12bf;},_0x2b1ede['decodeDelimited']=function(_0x2240c4){return _0x2240c4 instanceof _0x546f05||(_0x2240c4=new _0x546f05(_0x2240c4)),this['decode'](_0x2240c4,_0x2240c4['uint32']());},_0x2b1ede['verify']=function(_0x28898d){if('object'!=typeof _0x28898d||null===_0x28898d)return'object\x20expected';if(null!=_0x28898d['commentThreadId']&&_0x28898d['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x28898d['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x28898d['commentId']&&_0x28898d['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0x28898d['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x28898d['content']&&_0x28898d['hasOwnProperty']('content')&&!_0x1967e8['isString'](_0x28898d['content']))return'content:\x20string\x20expected';if(null!=_0x28898d['documentId']&&_0x28898d['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x28898d['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x28898d['attributes']&&_0x28898d['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x28898d['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x28898d['isAttributesUpdated']&&_0x28898d['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x28898d['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x28898d['commentThread']&&_0x28898d['hasOwnProperty']('commentThread')){var _0x2b1a16=_0x17fc8f['CommentsThreadDescriptor']['verify'](_0x28898d['commentThread']);if(_0x2b1a16)return'commentThread.'+_0x2b1a16;}return null;},_0x2b1ede['fromObject']=function(_0x44789a){if(_0x44789a instanceof _0x17fc8f['CommentsV2UpdateCommentMessage'])return _0x44789a;var _0x24ee3d=new _0x17fc8f['CommentsV2UpdateCommentMessage']();if(null!=_0x44789a['commentThreadId']&&(_0x24ee3d['commentThreadId']=String(_0x44789a['commentThreadId'])),null!=_0x44789a['commentId']&&(_0x24ee3d['commentId']=String(_0x44789a['commentId'])),null!=_0x44789a['content']&&(_0x24ee3d['content']=String(_0x44789a['content'])),null!=_0x44789a['documentId']&&(_0x24ee3d['documentId']=String(_0x44789a['documentId'])),null!=_0x44789a['attributes']&&(_0x24ee3d['attributes']=String(_0x44789a['attributes'])),null!=_0x44789a['isAttributesUpdated']&&(_0x24ee3d['isAttributesUpdated']=Boolean(_0x44789a['isAttributesUpdated'])),null!=_0x44789a['commentThread']){if('object'!=typeof _0x44789a['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x24ee3d['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['fromObject'](_0x44789a['commentThread']);}return _0x24ee3d;},_0x2b1ede['toObject']=function(_0x24485d,_0x3f5a7e){_0x3f5a7e||(_0x3f5a7e={});var _0x48050c={};return _0x3f5a7e['defaults']&&(_0x48050c['commentThreadId']='',_0x48050c['commentId']='',_0x48050c['content']='',_0x48050c['documentId']='',_0x48050c['attributes']='',_0x48050c['isAttributesUpdated']=!0x1,_0x48050c['commentThread']=null),null!=_0x24485d['commentThreadId']&&_0x24485d['hasOwnProperty']('commentThreadId')&&(_0x48050c['commentThreadId']=_0x24485d['commentThreadId']),null!=_0x24485d['commentId']&&_0x24485d['hasOwnProperty']('commentId')&&(_0x48050c['commentId']=_0x24485d['commentId']),null!=_0x24485d['content']&&_0x24485d['hasOwnProperty']('content')&&(_0x48050c['content']=_0x24485d['content']),null!=_0x24485d['documentId']&&_0x24485d['hasOwnProperty']('documentId')&&(_0x48050c['documentId']=_0x24485d['documentId']),null!=_0x24485d['attributes']&&_0x24485d['hasOwnProperty']('attributes')&&(_0x48050c['attributes']=_0x24485d['attributes']),null!=_0x24485d['isAttributesUpdated']&&_0x24485d['hasOwnProperty']('isAttributesUpdated')&&(_0x48050c['isAttributesUpdated']=_0x24485d['isAttributesUpdated']),null!=_0x24485d['commentThread']&&_0x24485d['hasOwnProperty']('commentThread')&&(_0x48050c['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['toObject'](_0x24485d['commentThread'],_0x3f5a7e)),_0x48050c;},_0x2b1ede['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2b1ede['getTypeUrl']=function(_0x4e62fc){return void 0x0===_0x4e62fc&&(_0x4e62fc='type.googleapis.com'),_0x4e62fc+'/CommentsV2UpdateCommentMessage';},_0x2b1ede;}()),_0x17fc8f['CommentsV2RemoveCommentThreadMessage']=(function(){function _0x28de1d(_0x159722){if(_0x159722){for(var _0x374dc4=Object['keys'](_0x159722),_0xe3af6d=0x0;_0xe3af6d<_0x374dc4['length'];++_0xe3af6d)null!=_0x159722[_0x374dc4[_0xe3af6d]]&&(this[_0x374dc4[_0xe3af6d]]=_0x159722[_0x374dc4[_0xe3af6d]]);}}return _0x28de1d['prototype']['commentThreadId']='',_0x28de1d['prototype']['documentId']='',_0x28de1d['create']=function(_0x3d59c6){return new _0x28de1d(_0x3d59c6);},_0x28de1d['encode']=function(_0x51bc6c,_0xa28bbe){return _0xa28bbe||(_0xa28bbe=_0x5e31a7['create']()),null!=_0x51bc6c['commentThreadId']&&Object['hasOwnProperty']['call'](_0x51bc6c,'commentThreadId')&&_0xa28bbe['uint32'](0xa)['string'](_0x51bc6c['commentThreadId']),null!=_0x51bc6c['documentId']&&Object['hasOwnProperty']['call'](_0x51bc6c,'documentId')&&_0xa28bbe['uint32'](0x12)['string'](_0x51bc6c['documentId']),_0xa28bbe;},_0x28de1d['encodeDelimited']=function(_0x406609,_0x2a9955){return this['encode'](_0x406609,_0x2a9955)['ldelim']();},_0x28de1d['decode']=function(_0x2f635a,_0x47da7c,_0xde398e){_0x2f635a instanceof _0x546f05||(_0x2f635a=_0x546f05['create'](_0x2f635a));for(var _0x31f265=void 0x0===_0x47da7c?_0x2f635a['len']:_0x2f635a['pos']+_0x47da7c,_0x4d231c=new _0x17fc8f['CommentsV2RemoveCommentThreadMessage']();_0x2f635a['pos']<_0x31f265;){var _0x5adfea=_0x2f635a['uint32']();if(_0x5adfea===_0xde398e)break;switch(_0x5adfea>>>0x3){case 0x1:_0x4d231c['commentThreadId']=_0x2f635a['string']();break;case 0x2:_0x4d231c['documentId']=_0x2f635a['string']();break;default:_0x2f635a['skipType'](0x7&_0x5adfea);}}return _0x4d231c;},_0x28de1d['decodeDelimited']=function(_0x5f3e97){return _0x5f3e97 instanceof _0x546f05||(_0x5f3e97=new _0x546f05(_0x5f3e97)),this['decode'](_0x5f3e97,_0x5f3e97['uint32']());},_0x28de1d['verify']=function(_0x4f6c4a){return'object'!=typeof _0x4f6c4a||null===_0x4f6c4a?'object\x20expected':null!=_0x4f6c4a['commentThreadId']&&_0x4f6c4a['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x4f6c4a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4f6c4a['documentId']&&_0x4f6c4a['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x4f6c4a['documentId'])?'documentId:\x20string\x20expected':null;},_0x28de1d['fromObject']=function(_0x3c4b2e){if(_0x3c4b2e instanceof _0x17fc8f['CommentsV2RemoveCommentThreadMessage'])return _0x3c4b2e;var _0x331b94=new _0x17fc8f['CommentsV2RemoveCommentThreadMessage']();return null!=_0x3c4b2e['commentThreadId']&&(_0x331b94['commentThreadId']=String(_0x3c4b2e['commentThreadId'])),null!=_0x3c4b2e['documentId']&&(_0x331b94['documentId']=String(_0x3c4b2e['documentId'])),_0x331b94;},_0x28de1d['toObject']=function(_0x4feccf,_0x28963f){_0x28963f||(_0x28963f={});var _0x30b6b3={};return _0x28963f['defaults']&&(_0x30b6b3['commentThreadId']='',_0x30b6b3['documentId']=''),null!=_0x4feccf['commentThreadId']&&_0x4feccf['hasOwnProperty']('commentThreadId')&&(_0x30b6b3['commentThreadId']=_0x4feccf['commentThreadId']),null!=_0x4feccf['documentId']&&_0x4feccf['hasOwnProperty']('documentId')&&(_0x30b6b3['documentId']=_0x4feccf['documentId']),_0x30b6b3;},_0x28de1d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x28de1d['getTypeUrl']=function(_0x5f2668){return void 0x0===_0x5f2668&&(_0x5f2668='type.googleapis.com'),_0x5f2668+'/CommentsV2RemoveCommentThreadMessage';},_0x28de1d;}()),_0x17fc8f['CommentsV2RemoveCommentMessage']=(function(){function _0x708ed4(_0x581d93){if(_0x581d93){for(var _0x8f6655=Object['keys'](_0x581d93),_0x5f1897=0x0;_0x5f1897<_0x8f6655['length'];++_0x5f1897)null!=_0x581d93[_0x8f6655[_0x5f1897]]&&(this[_0x8f6655[_0x5f1897]]=_0x581d93[_0x8f6655[_0x5f1897]]);}}return _0x708ed4['prototype']['commentThreadId']='',_0x708ed4['prototype']['commentId']='',_0x708ed4['prototype']['documentId']='',_0x708ed4['create']=function(_0x351c9a){return new _0x708ed4(_0x351c9a);},_0x708ed4['encode']=function(_0x4a1c58,_0x4922a0){return _0x4922a0||(_0x4922a0=_0x5e31a7['create']()),null!=_0x4a1c58['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4a1c58,'commentThreadId')&&_0x4922a0['uint32'](0xa)['string'](_0x4a1c58['commentThreadId']),null!=_0x4a1c58['commentId']&&Object['hasOwnProperty']['call'](_0x4a1c58,'commentId')&&_0x4922a0['uint32'](0x12)['string'](_0x4a1c58['commentId']),null!=_0x4a1c58['documentId']&&Object['hasOwnProperty']['call'](_0x4a1c58,'documentId')&&_0x4922a0['uint32'](0x1a)['string'](_0x4a1c58['documentId']),_0x4922a0;},_0x708ed4['encodeDelimited']=function(_0x44db2d,_0x233c43){return this['encode'](_0x44db2d,_0x233c43)['ldelim']();},_0x708ed4['decode']=function(_0x29b0af,_0x87d00e,_0xb77e5f){_0x29b0af instanceof _0x546f05||(_0x29b0af=_0x546f05['create'](_0x29b0af));for(var _0xfcf6fe=void 0x0===_0x87d00e?_0x29b0af['len']:_0x29b0af['pos']+_0x87d00e,_0xed1e8=new _0x17fc8f['CommentsV2RemoveCommentMessage']();_0x29b0af['pos']<_0xfcf6fe;){var _0x4c1d3c=_0x29b0af['uint32']();if(_0x4c1d3c===_0xb77e5f)break;switch(_0x4c1d3c>>>0x3){case 0x1:_0xed1e8['commentThreadId']=_0x29b0af['string']();break;case 0x2:_0xed1e8['commentId']=_0x29b0af['string']();break;case 0x3:_0xed1e8['documentId']=_0x29b0af['string']();break;default:_0x29b0af['skipType'](0x7&_0x4c1d3c);}}return _0xed1e8;},_0x708ed4['decodeDelimited']=function(_0x5796c5){return _0x5796c5 instanceof _0x546f05||(_0x5796c5=new _0x546f05(_0x5796c5)),this['decode'](_0x5796c5,_0x5796c5['uint32']());},_0x708ed4['verify']=function(_0xf84ae9){return'object'!=typeof _0xf84ae9||null===_0xf84ae9?'object\x20expected':null!=_0xf84ae9['commentThreadId']&&_0xf84ae9['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0xf84ae9['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xf84ae9['commentId']&&_0xf84ae9['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0xf84ae9['commentId'])?'commentId:\x20string\x20expected':null!=_0xf84ae9['documentId']&&_0xf84ae9['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0xf84ae9['documentId'])?'documentId:\x20string\x20expected':null;},_0x708ed4['fromObject']=function(_0x1716aa){if(_0x1716aa instanceof _0x17fc8f['CommentsV2RemoveCommentMessage'])return _0x1716aa;var _0x3fdf59=new _0x17fc8f['CommentsV2RemoveCommentMessage']();return null!=_0x1716aa['commentThreadId']&&(_0x3fdf59['commentThreadId']=String(_0x1716aa['commentThreadId'])),null!=_0x1716aa['commentId']&&(_0x3fdf59['commentId']=String(_0x1716aa['commentId'])),null!=_0x1716aa['documentId']&&(_0x3fdf59['documentId']=String(_0x1716aa['documentId'])),_0x3fdf59;},_0x708ed4['toObject']=function(_0x8356a3,_0x3b1841){_0x3b1841||(_0x3b1841={});var _0x5c1323={};return _0x3b1841['defaults']&&(_0x5c1323['commentThreadId']='',_0x5c1323['commentId']='',_0x5c1323['documentId']=''),null!=_0x8356a3['commentThreadId']&&_0x8356a3['hasOwnProperty']('commentThreadId')&&(_0x5c1323['commentThreadId']=_0x8356a3['commentThreadId']),null!=_0x8356a3['commentId']&&_0x8356a3['hasOwnProperty']('commentId')&&(_0x5c1323['commentId']=_0x8356a3['commentId']),null!=_0x8356a3['documentId']&&_0x8356a3['hasOwnProperty']('documentId')&&(_0x5c1323['documentId']=_0x8356a3['documentId']),_0x5c1323;},_0x708ed4['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x708ed4['getTypeUrl']=function(_0x38112){return void 0x0===_0x38112&&(_0x38112='type.googleapis.com'),_0x38112+'/CommentsV2RemoveCommentMessage';},_0x708ed4;}()),_0x17fc8f['CommentsV2GetDocumentThreadsMessage']=(function(){function _0x261d8f(_0x355c0a){if(_0x355c0a){for(var _0x487cf3=Object['keys'](_0x355c0a),_0x5cea9c=0x0;_0x5cea9c<_0x487cf3['length'];++_0x5cea9c)null!=_0x355c0a[_0x487cf3[_0x5cea9c]]&&(this[_0x487cf3[_0x5cea9c]]=_0x355c0a[_0x487cf3[_0x5cea9c]]);}}return _0x261d8f['prototype']['documentId']='',_0x261d8f['create']=function(_0x45fa7a){return new _0x261d8f(_0x45fa7a);},_0x261d8f['encode']=function(_0x5ca670,_0x39fd10){return _0x39fd10||(_0x39fd10=_0x5e31a7['create']()),null!=_0x5ca670['documentId']&&Object['hasOwnProperty']['call'](_0x5ca670,'documentId')&&_0x39fd10['uint32'](0xa)['string'](_0x5ca670['documentId']),_0x39fd10;},_0x261d8f['encodeDelimited']=function(_0xed47fb,_0xdaf25){return this['encode'](_0xed47fb,_0xdaf25)['ldelim']();},_0x261d8f['decode']=function(_0x2f24e8,_0x9b6201,_0x42415e){_0x2f24e8 instanceof _0x546f05||(_0x2f24e8=_0x546f05['create'](_0x2f24e8));for(var _0x523a7b=void 0x0===_0x9b6201?_0x2f24e8['len']:_0x2f24e8['pos']+_0x9b6201,_0x239548=new _0x17fc8f['CommentsV2GetDocumentThreadsMessage']();_0x2f24e8['pos']<_0x523a7b;){var _0x5c1bb3=_0x2f24e8['uint32']();if(_0x5c1bb3===_0x42415e)break;_0x5c1bb3>>>0x3==0x1?_0x239548['documentId']=_0x2f24e8['string']():_0x2f24e8['skipType'](0x7&_0x5c1bb3);}return _0x239548;},_0x261d8f['decodeDelimited']=function(_0x4b9ddd){return _0x4b9ddd instanceof _0x546f05||(_0x4b9ddd=new _0x546f05(_0x4b9ddd)),this['decode'](_0x4b9ddd,_0x4b9ddd['uint32']());},_0x261d8f['verify']=function(_0x47133f){return'object'!=typeof _0x47133f||null===_0x47133f?'object\x20expected':null!=_0x47133f['documentId']&&_0x47133f['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x47133f['documentId'])?'documentId:\x20string\x20expected':null;},_0x261d8f['fromObject']=function(_0x54851f){if(_0x54851f instanceof _0x17fc8f['CommentsV2GetDocumentThreadsMessage'])return _0x54851f;var _0x7c1b35=new _0x17fc8f['CommentsV2GetDocumentThreadsMessage']();return null!=_0x54851f['documentId']&&(_0x7c1b35['documentId']=String(_0x54851f['documentId'])),_0x7c1b35;},_0x261d8f['toObject']=function(_0x143944,_0x1357d1){_0x1357d1||(_0x1357d1={});var _0x1a2dc6={};return _0x1357d1['defaults']&&(_0x1a2dc6['documentId']=''),null!=_0x143944['documentId']&&_0x143944['hasOwnProperty']('documentId')&&(_0x1a2dc6['documentId']=_0x143944['documentId']),_0x1a2dc6;},_0x261d8f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x261d8f['getTypeUrl']=function(_0x407c04){return void 0x0===_0x407c04&&(_0x407c04='type.googleapis.com'),_0x407c04+'/CommentsV2GetDocumentThreadsMessage';},_0x261d8f;}()),_0x17fc8f['CommentsV2GetCommentThreadMessage']=(function(){function _0x277341(_0x2144d0){if(_0x2144d0){for(var _0x5b19b3=Object['keys'](_0x2144d0),_0x51b73a=0x0;_0x51b73a<_0x5b19b3['length'];++_0x51b73a)null!=_0x2144d0[_0x5b19b3[_0x51b73a]]&&(this[_0x5b19b3[_0x51b73a]]=_0x2144d0[_0x5b19b3[_0x51b73a]]);}}return _0x277341['prototype']['commentThreadId']='',_0x277341['prototype']['documentId']='',_0x277341['create']=function(_0x266e76){return new _0x277341(_0x266e76);},_0x277341['encode']=function(_0x17af70,_0x3d4743){return _0x3d4743||(_0x3d4743=_0x5e31a7['create']()),null!=_0x17af70['commentThreadId']&&Object['hasOwnProperty']['call'](_0x17af70,'commentThreadId')&&_0x3d4743['uint32'](0xa)['string'](_0x17af70['commentThreadId']),null!=_0x17af70['documentId']&&Object['hasOwnProperty']['call'](_0x17af70,'documentId')&&_0x3d4743['uint32'](0x12)['string'](_0x17af70['documentId']),_0x3d4743;},_0x277341['encodeDelimited']=function(_0xd2a1f5,_0x1eeff5){return this['encode'](_0xd2a1f5,_0x1eeff5)['ldelim']();},_0x277341['decode']=function(_0xf3d211,_0x1cd88e,_0x1aa714){_0xf3d211 instanceof _0x546f05||(_0xf3d211=_0x546f05['create'](_0xf3d211));for(var _0x1571fb=void 0x0===_0x1cd88e?_0xf3d211['len']:_0xf3d211['pos']+_0x1cd88e,_0xa3afac=new _0x17fc8f['CommentsV2GetCommentThreadMessage']();_0xf3d211['pos']<_0x1571fb;){var _0x22eca=_0xf3d211['uint32']();if(_0x22eca===_0x1aa714)break;switch(_0x22eca>>>0x3){case 0x1:_0xa3afac['commentThreadId']=_0xf3d211['string']();break;case 0x2:_0xa3afac['documentId']=_0xf3d211['string']();break;default:_0xf3d211['skipType'](0x7&_0x22eca);}}return _0xa3afac;},_0x277341['decodeDelimited']=function(_0x575089){return _0x575089 instanceof _0x546f05||(_0x575089=new _0x546f05(_0x575089)),this['decode'](_0x575089,_0x575089['uint32']());},_0x277341['verify']=function(_0x4831e4){return'object'!=typeof _0x4831e4||null===_0x4831e4?'object\x20expected':null!=_0x4831e4['commentThreadId']&&_0x4831e4['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x4831e4['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4831e4['documentId']&&_0x4831e4['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x4831e4['documentId'])?'documentId:\x20string\x20expected':null;},_0x277341['fromObject']=function(_0x27e291){if(_0x27e291 instanceof _0x17fc8f['CommentsV2GetCommentThreadMessage'])return _0x27e291;var _0x52113c=new _0x17fc8f['CommentsV2GetCommentThreadMessage']();return null!=_0x27e291['commentThreadId']&&(_0x52113c['commentThreadId']=String(_0x27e291['commentThreadId'])),null!=_0x27e291['documentId']&&(_0x52113c['documentId']=String(_0x27e291['documentId'])),_0x52113c;},_0x277341['toObject']=function(_0x383788,_0x673f9e){_0x673f9e||(_0x673f9e={});var _0x15c315={};return _0x673f9e['defaults']&&(_0x15c315['commentThreadId']='',_0x15c315['documentId']=''),null!=_0x383788['commentThreadId']&&_0x383788['hasOwnProperty']('commentThreadId')&&(_0x15c315['commentThreadId']=_0x383788['commentThreadId']),null!=_0x383788['documentId']&&_0x383788['hasOwnProperty']('documentId')&&(_0x15c315['documentId']=_0x383788['documentId']),_0x15c315;},_0x277341['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x277341['getTypeUrl']=function(_0x5033dd){return void 0x0===_0x5033dd&&(_0x5033dd='type.googleapis.com'),_0x5033dd+'/CommentsV2GetCommentThreadMessage';},_0x277341;}()),_0x17fc8f['CommentsV2ConnectMessage']=(function(){function _0x2c162e(_0x1de6ec){if(_0x1de6ec){for(var _0xa9056f=Object['keys'](_0x1de6ec),_0x2db7d7=0x0;_0x2db7d7<_0xa9056f['length'];++_0x2db7d7)null!=_0x1de6ec[_0xa9056f[_0x2db7d7]]&&(this[_0xa9056f[_0x2db7d7]]=_0x1de6ec[_0xa9056f[_0x2db7d7]]);}}return _0x2c162e['prototype']['documentId']='',_0x2c162e['create']=function(_0x501dc3){return new _0x2c162e(_0x501dc3);},_0x2c162e['encode']=function(_0x57eb0f,_0x5cdf1b){return _0x5cdf1b||(_0x5cdf1b=_0x5e31a7['create']()),null!=_0x57eb0f['documentId']&&Object['hasOwnProperty']['call'](_0x57eb0f,'documentId')&&_0x5cdf1b['uint32'](0xa)['string'](_0x57eb0f['documentId']),_0x5cdf1b;},_0x2c162e['encodeDelimited']=function(_0x4603b8,_0x29dce6){return this['encode'](_0x4603b8,_0x29dce6)['ldelim']();},_0x2c162e['decode']=function(_0x32eaa0,_0x48ad3f,_0x2fcf3f){_0x32eaa0 instanceof _0x546f05||(_0x32eaa0=_0x546f05['create'](_0x32eaa0));for(var _0x31b7da=void 0x0===_0x48ad3f?_0x32eaa0['len']:_0x32eaa0['pos']+_0x48ad3f,_0x2ad4b8=new _0x17fc8f['CommentsV2ConnectMessage']();_0x32eaa0['pos']<_0x31b7da;){var _0x3ed72a=_0x32eaa0['uint32']();if(_0x3ed72a===_0x2fcf3f)break;_0x3ed72a>>>0x3==0x1?_0x2ad4b8['documentId']=_0x32eaa0['string']():_0x32eaa0['skipType'](0x7&_0x3ed72a);}return _0x2ad4b8;},_0x2c162e['decodeDelimited']=function(_0xa33ef2){return _0xa33ef2 instanceof _0x546f05||(_0xa33ef2=new _0x546f05(_0xa33ef2)),this['decode'](_0xa33ef2,_0xa33ef2['uint32']());},_0x2c162e['verify']=function(_0x2daea4){return'object'!=typeof _0x2daea4||null===_0x2daea4?'object\x20expected':null!=_0x2daea4['documentId']&&_0x2daea4['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x2daea4['documentId'])?'documentId:\x20string\x20expected':null;},_0x2c162e['fromObject']=function(_0x583d72){if(_0x583d72 instanceof _0x17fc8f['CommentsV2ConnectMessage'])return _0x583d72;var _0x46971b=new _0x17fc8f['CommentsV2ConnectMessage']();return null!=_0x583d72['documentId']&&(_0x46971b['documentId']=String(_0x583d72['documentId'])),_0x46971b;},_0x2c162e['toObject']=function(_0x5f2b38,_0x397f0e){_0x397f0e||(_0x397f0e={});var _0x34ce52={};return _0x397f0e['defaults']&&(_0x34ce52['documentId']=''),null!=_0x5f2b38['documentId']&&_0x5f2b38['hasOwnProperty']('documentId')&&(_0x34ce52['documentId']=_0x5f2b38['documentId']),_0x34ce52;},_0x2c162e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2c162e['getTypeUrl']=function(_0x40608e){return void 0x0===_0x40608e&&(_0x40608e='type.googleapis.com'),_0x40608e+'/CommentsV2ConnectMessage';},_0x2c162e;}()),_0x17fc8f['CommentsV2AddCommentMessage']=(function(){function _0x23488c(_0x170af1){if(_0x170af1){for(var _0x1e094d=Object['keys'](_0x170af1),_0x2958f7=0x0;_0x2958f7<_0x1e094d['length'];++_0x2958f7)null!=_0x170af1[_0x1e094d[_0x2958f7]]&&(this[_0x1e094d[_0x2958f7]]=_0x170af1[_0x1e094d[_0x2958f7]]);}}return _0x23488c['prototype']['commentThreadId']='',_0x23488c['prototype']['content']='',_0x23488c['prototype']['documentId']='',_0x23488c['prototype']['commentId']='',_0x23488c['prototype']['createdAt']='',_0x23488c['prototype']['userId']='',_0x23488c['prototype']['attributes']='',_0x23488c['prototype']['commentThread']=null,_0x23488c['create']=function(_0x4f3d9e){return new _0x23488c(_0x4f3d9e);},_0x23488c['encode']=function(_0xc7ac5c,_0xe61b11){return _0xe61b11||(_0xe61b11=_0x5e31a7['create']()),null!=_0xc7ac5c['commentThreadId']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'commentThreadId')&&_0xe61b11['uint32'](0xa)['string'](_0xc7ac5c['commentThreadId']),null!=_0xc7ac5c['content']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'content')&&_0xe61b11['uint32'](0x12)['string'](_0xc7ac5c['content']),null!=_0xc7ac5c['documentId']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'documentId')&&_0xe61b11['uint32'](0x1a)['string'](_0xc7ac5c['documentId']),null!=_0xc7ac5c['commentId']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'commentId')&&_0xe61b11['uint32'](0x22)['string'](_0xc7ac5c['commentId']),null!=_0xc7ac5c['createdAt']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'createdAt')&&_0xe61b11['uint32'](0x2a)['string'](_0xc7ac5c['createdAt']),null!=_0xc7ac5c['userId']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'userId')&&_0xe61b11['uint32'](0x32)['string'](_0xc7ac5c['userId']),null!=_0xc7ac5c['attributes']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'attributes')&&_0xe61b11['uint32'](0x3a)['string'](_0xc7ac5c['attributes']),null!=_0xc7ac5c['commentThread']&&Object['hasOwnProperty']['call'](_0xc7ac5c,'commentThread')&&_0x17fc8f['CommentsThreadDescriptor']['encode'](_0xc7ac5c['commentThread'],_0xe61b11['uint32'](0x42)['fork']())['ldelim'](),_0xe61b11;},_0x23488c['encodeDelimited']=function(_0x33026f,_0x35d2cd){return this['encode'](_0x33026f,_0x35d2cd)['ldelim']();},_0x23488c['decode']=function(_0x315973,_0xe5e841,_0x106ef7){_0x315973 instanceof _0x546f05||(_0x315973=_0x546f05['create'](_0x315973));for(var _0x43e7fd=void 0x0===_0xe5e841?_0x315973['len']:_0x315973['pos']+_0xe5e841,_0x51fe47=new _0x17fc8f['CommentsV2AddCommentMessage']();_0x315973['pos']<_0x43e7fd;){var _0x59788d=_0x315973['uint32']();if(_0x59788d===_0x106ef7)break;switch(_0x59788d>>>0x3){case 0x1:_0x51fe47['commentThreadId']=_0x315973['string']();break;case 0x2:_0x51fe47['content']=_0x315973['string']();break;case 0x3:_0x51fe47['documentId']=_0x315973['string']();break;case 0x4:_0x51fe47['commentId']=_0x315973['string']();break;case 0x5:_0x51fe47['createdAt']=_0x315973['string']();break;case 0x6:_0x51fe47['userId']=_0x315973['string']();break;case 0x7:_0x51fe47['attributes']=_0x315973['string']();break;case 0x8:_0x51fe47['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['decode'](_0x315973,_0x315973['uint32']());break;default:_0x315973['skipType'](0x7&_0x59788d);}}return _0x51fe47;},_0x23488c['decodeDelimited']=function(_0x1b4d10){return _0x1b4d10 instanceof _0x546f05||(_0x1b4d10=new _0x546f05(_0x1b4d10)),this['decode'](_0x1b4d10,_0x1b4d10['uint32']());},_0x23488c['verify']=function(_0x4bb839){if('object'!=typeof _0x4bb839||null===_0x4bb839)return'object\x20expected';if(null!=_0x4bb839['commentThreadId']&&_0x4bb839['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x4bb839['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4bb839['content']&&_0x4bb839['hasOwnProperty']('content')&&!_0x1967e8['isString'](_0x4bb839['content']))return'content:\x20string\x20expected';if(null!=_0x4bb839['documentId']&&_0x4bb839['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x4bb839['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4bb839['commentId']&&_0x4bb839['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0x4bb839['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x4bb839['createdAt']&&_0x4bb839['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x4bb839['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x4bb839['userId']&&_0x4bb839['hasOwnProperty']('userId')&&!_0x1967e8['isString'](_0x4bb839['userId']))return'userId:\x20string\x20expected';if(null!=_0x4bb839['attributes']&&_0x4bb839['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x4bb839['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4bb839['commentThread']&&_0x4bb839['hasOwnProperty']('commentThread')){var _0x1fc301=_0x17fc8f['CommentsThreadDescriptor']['verify'](_0x4bb839['commentThread']);if(_0x1fc301)return'commentThread.'+_0x1fc301;}return null;},_0x23488c['fromObject']=function(_0x25f2c4){if(_0x25f2c4 instanceof _0x17fc8f['CommentsV2AddCommentMessage'])return _0x25f2c4;var _0x4f07bb=new _0x17fc8f['CommentsV2AddCommentMessage']();if(null!=_0x25f2c4['commentThreadId']&&(_0x4f07bb['commentThreadId']=String(_0x25f2c4['commentThreadId'])),null!=_0x25f2c4['content']&&(_0x4f07bb['content']=String(_0x25f2c4['content'])),null!=_0x25f2c4['documentId']&&(_0x4f07bb['documentId']=String(_0x25f2c4['documentId'])),null!=_0x25f2c4['commentId']&&(_0x4f07bb['commentId']=String(_0x25f2c4['commentId'])),null!=_0x25f2c4['createdAt']&&(_0x4f07bb['createdAt']=String(_0x25f2c4['createdAt'])),null!=_0x25f2c4['userId']&&(_0x4f07bb['userId']=String(_0x25f2c4['userId'])),null!=_0x25f2c4['attributes']&&(_0x4f07bb['attributes']=String(_0x25f2c4['attributes'])),null!=_0x25f2c4['commentThread']){if('object'!=typeof _0x25f2c4['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x4f07bb['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['fromObject'](_0x25f2c4['commentThread']);}return _0x4f07bb;},_0x23488c['toObject']=function(_0x32032e,_0xe311a2){_0xe311a2||(_0xe311a2={});var _0x4a9a7f={};return _0xe311a2['defaults']&&(_0x4a9a7f['commentThreadId']='',_0x4a9a7f['content']='',_0x4a9a7f['documentId']='',_0x4a9a7f['commentId']='',_0x4a9a7f['createdAt']='',_0x4a9a7f['userId']='',_0x4a9a7f['attributes']='',_0x4a9a7f['commentThread']=null),null!=_0x32032e['commentThreadId']&&_0x32032e['hasOwnProperty']('commentThreadId')&&(_0x4a9a7f['commentThreadId']=_0x32032e['commentThreadId']),null!=_0x32032e['content']&&_0x32032e['hasOwnProperty']('content')&&(_0x4a9a7f['content']=_0x32032e['content']),null!=_0x32032e['documentId']&&_0x32032e['hasOwnProperty']('documentId')&&(_0x4a9a7f['documentId']=_0x32032e['documentId']),null!=_0x32032e['commentId']&&_0x32032e['hasOwnProperty']('commentId')&&(_0x4a9a7f['commentId']=_0x32032e['commentId']),null!=_0x32032e['createdAt']&&_0x32032e['hasOwnProperty']('createdAt')&&(_0x4a9a7f['createdAt']=_0x32032e['createdAt']),null!=_0x32032e['userId']&&_0x32032e['hasOwnProperty']('userId')&&(_0x4a9a7f['userId']=_0x32032e['userId']),null!=_0x32032e['attributes']&&_0x32032e['hasOwnProperty']('attributes')&&(_0x4a9a7f['attributes']=_0x32032e['attributes']),null!=_0x32032e['commentThread']&&_0x32032e['hasOwnProperty']('commentThread')&&(_0x4a9a7f['commentThread']=_0x17fc8f['CommentsThreadDescriptor']['toObject'](_0x32032e['commentThread'],_0xe311a2)),_0x4a9a7f;},_0x23488c['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x23488c['getTypeUrl']=function(_0x15fcb7){return void 0x0===_0x15fcb7&&(_0x15fcb7='type.googleapis.com'),_0x15fcb7+'/CommentsV2AddCommentMessage';},_0x23488c;}()),_0x17fc8f['CommentsV2UpdateCommentThreadMessage']=(function(){function _0x3ccdab(_0x279c81){if(_0x279c81){for(var _0x10ba61=Object['keys'](_0x279c81),_0x559d72=0x0;_0x559d72<_0x10ba61['length'];++_0x559d72)null!=_0x279c81[_0x10ba61[_0x559d72]]&&(this[_0x10ba61[_0x559d72]]=_0x279c81[_0x10ba61[_0x559d72]]);}}return _0x3ccdab['prototype']['commentThreadId']='',_0x3ccdab['prototype']['documentId']='',_0x3ccdab['prototype']['context']='',_0x3ccdab['prototype']['attributes']='',_0x3ccdab['prototype']['unlinkedAt']='',_0x3ccdab['create']=function(_0x5c6077){return new _0x3ccdab(_0x5c6077);},_0x3ccdab['encode']=function(_0x1c7e95,_0xebcc9d){return _0xebcc9d||(_0xebcc9d=_0x5e31a7['create']()),null!=_0x1c7e95['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1c7e95,'commentThreadId')&&_0xebcc9d['uint32'](0xa)['string'](_0x1c7e95['commentThreadId']),null!=_0x1c7e95['documentId']&&Object['hasOwnProperty']['call'](_0x1c7e95,'documentId')&&_0xebcc9d['uint32'](0x12)['string'](_0x1c7e95['documentId']),null!=_0x1c7e95['context']&&Object['hasOwnProperty']['call'](_0x1c7e95,'context')&&_0xebcc9d['uint32'](0x1a)['string'](_0x1c7e95['context']),null!=_0x1c7e95['attributes']&&Object['hasOwnProperty']['call'](_0x1c7e95,'attributes')&&_0xebcc9d['uint32'](0x22)['string'](_0x1c7e95['attributes']),null!=_0x1c7e95['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1c7e95,'unlinkedAt')&&_0xebcc9d['uint32'](0x2a)['string'](_0x1c7e95['unlinkedAt']),_0xebcc9d;},_0x3ccdab['encodeDelimited']=function(_0x8fe71b,_0x1d7f78){return this['encode'](_0x8fe71b,_0x1d7f78)['ldelim']();},_0x3ccdab['decode']=function(_0x2f8b36,_0x5a023b,_0x3862cc){_0x2f8b36 instanceof _0x546f05||(_0x2f8b36=_0x546f05['create'](_0x2f8b36));for(var _0x27eeb8=void 0x0===_0x5a023b?_0x2f8b36['len']:_0x2f8b36['pos']+_0x5a023b,_0x6be412=new _0x17fc8f['CommentsV2UpdateCommentThreadMessage']();_0x2f8b36['pos']<_0x27eeb8;){var _0x487132=_0x2f8b36['uint32']();if(_0x487132===_0x3862cc)break;switch(_0x487132>>>0x3){case 0x1:_0x6be412['commentThreadId']=_0x2f8b36['string']();break;case 0x2:_0x6be412['documentId']=_0x2f8b36['string']();break;case 0x3:_0x6be412['context']=_0x2f8b36['string']();break;case 0x4:_0x6be412['attributes']=_0x2f8b36['string']();break;case 0x5:_0x6be412['unlinkedAt']=_0x2f8b36['string']();break;default:_0x2f8b36['skipType'](0x7&_0x487132);}}return _0x6be412;},_0x3ccdab['decodeDelimited']=function(_0x340953){return _0x340953 instanceof _0x546f05||(_0x340953=new _0x546f05(_0x340953)),this['decode'](_0x340953,_0x340953['uint32']());},_0x3ccdab['verify']=function(_0x28a641){return'object'!=typeof _0x28a641||null===_0x28a641?'object\x20expected':null!=_0x28a641['commentThreadId']&&_0x28a641['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x28a641['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x28a641['documentId']&&_0x28a641['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x28a641['documentId'])?'documentId:\x20string\x20expected':null!=_0x28a641['context']&&_0x28a641['hasOwnProperty']('context')&&!_0x1967e8['isString'](_0x28a641['context'])?'context:\x20string\x20expected':null!=_0x28a641['attributes']&&_0x28a641['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x28a641['attributes'])?'attributes:\x20string\x20expected':null!=_0x28a641['unlinkedAt']&&_0x28a641['hasOwnProperty']('unlinkedAt')&&!_0x1967e8['isString'](_0x28a641['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x3ccdab['fromObject']=function(_0x47e7d5){if(_0x47e7d5 instanceof _0x17fc8f['CommentsV2UpdateCommentThreadMessage'])return _0x47e7d5;var _0x37807b=new _0x17fc8f['CommentsV2UpdateCommentThreadMessage']();return null!=_0x47e7d5['commentThreadId']&&(_0x37807b['commentThreadId']=String(_0x47e7d5['commentThreadId'])),null!=_0x47e7d5['documentId']&&(_0x37807b['documentId']=String(_0x47e7d5['documentId'])),null!=_0x47e7d5['context']&&(_0x37807b['context']=String(_0x47e7d5['context'])),null!=_0x47e7d5['attributes']&&(_0x37807b['attributes']=String(_0x47e7d5['attributes'])),null!=_0x47e7d5['unlinkedAt']&&(_0x37807b['unlinkedAt']=String(_0x47e7d5['unlinkedAt'])),_0x37807b;},_0x3ccdab['toObject']=function(_0x52ce62,_0x2d9388){_0x2d9388||(_0x2d9388={});var _0x41589c={};return _0x2d9388['defaults']&&(_0x41589c['commentThreadId']='',_0x41589c['documentId']='',_0x41589c['context']='',_0x41589c['attributes']='',_0x41589c['unlinkedAt']=''),null!=_0x52ce62['commentThreadId']&&_0x52ce62['hasOwnProperty']('commentThreadId')&&(_0x41589c['commentThreadId']=_0x52ce62['commentThreadId']),null!=_0x52ce62['documentId']&&_0x52ce62['hasOwnProperty']('documentId')&&(_0x41589c['documentId']=_0x52ce62['documentId']),null!=_0x52ce62['context']&&_0x52ce62['hasOwnProperty']('context')&&(_0x41589c['context']=_0x52ce62['context']),null!=_0x52ce62['attributes']&&_0x52ce62['hasOwnProperty']('attributes')&&(_0x41589c['attributes']=_0x52ce62['attributes']),null!=_0x52ce62['unlinkedAt']&&_0x52ce62['hasOwnProperty']('unlinkedAt')&&(_0x41589c['unlinkedAt']=_0x52ce62['unlinkedAt']),_0x41589c;},_0x3ccdab['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3ccdab['getTypeUrl']=function(_0x4926d3){return void 0x0===_0x4926d3&&(_0x4926d3='type.googleapis.com'),_0x4926d3+'/CommentsV2UpdateCommentThreadMessage';},_0x3ccdab;}()),_0x17fc8f['CommentsV2ResolveCommentThreadMessage']=(function(){function _0x1d5bde(_0x33116b){if(_0x33116b){for(var _0x198c17=Object['keys'](_0x33116b),_0x380300=0x0;_0x380300<_0x198c17['length'];++_0x380300)null!=_0x33116b[_0x198c17[_0x380300]]&&(this[_0x198c17[_0x380300]]=_0x33116b[_0x198c17[_0x380300]]);}}return _0x1d5bde['prototype']['commentThreadId']='',_0x1d5bde['prototype']['documentId']='',_0x1d5bde['prototype']['resolvedBy']='',_0x1d5bde['prototype']['resolvedAt']='',_0x1d5bde['create']=function(_0x1d4e84){return new _0x1d5bde(_0x1d4e84);},_0x1d5bde['encode']=function(_0xefb7a5,_0x1e074e){return _0x1e074e||(_0x1e074e=_0x5e31a7['create']()),null!=_0xefb7a5['commentThreadId']&&Object['hasOwnProperty']['call'](_0xefb7a5,'commentThreadId')&&_0x1e074e['uint32'](0xa)['string'](_0xefb7a5['commentThreadId']),null!=_0xefb7a5['documentId']&&Object['hasOwnProperty']['call'](_0xefb7a5,'documentId')&&_0x1e074e['uint32'](0x12)['string'](_0xefb7a5['documentId']),null!=_0xefb7a5['resolvedBy']&&Object['hasOwnProperty']['call'](_0xefb7a5,'resolvedBy')&&_0x1e074e['uint32'](0x1a)['string'](_0xefb7a5['resolvedBy']),null!=_0xefb7a5['resolvedAt']&&Object['hasOwnProperty']['call'](_0xefb7a5,'resolvedAt')&&_0x1e074e['uint32'](0x22)['string'](_0xefb7a5['resolvedAt']),_0x1e074e;},_0x1d5bde['encodeDelimited']=function(_0x55319f,_0x3c6997){return this['encode'](_0x55319f,_0x3c6997)['ldelim']();},_0x1d5bde['decode']=function(_0x39afe5,_0x180552,_0x59d41d){_0x39afe5 instanceof _0x546f05||(_0x39afe5=_0x546f05['create'](_0x39afe5));for(var _0x35bf9e=void 0x0===_0x180552?_0x39afe5['len']:_0x39afe5['pos']+_0x180552,_0x5e17ef=new _0x17fc8f['CommentsV2ResolveCommentThreadMessage']();_0x39afe5['pos']<_0x35bf9e;){var _0x1d05a3=_0x39afe5['uint32']();if(_0x1d05a3===_0x59d41d)break;switch(_0x1d05a3>>>0x3){case 0x1:_0x5e17ef['commentThreadId']=_0x39afe5['string']();break;case 0x2:_0x5e17ef['documentId']=_0x39afe5['string']();break;case 0x3:_0x5e17ef['resolvedBy']=_0x39afe5['string']();break;case 0x4:_0x5e17ef['resolvedAt']=_0x39afe5['string']();break;default:_0x39afe5['skipType'](0x7&_0x1d05a3);}}return _0x5e17ef;},_0x1d5bde['decodeDelimited']=function(_0x337c9b){return _0x337c9b instanceof _0x546f05||(_0x337c9b=new _0x546f05(_0x337c9b)),this['decode'](_0x337c9b,_0x337c9b['uint32']());},_0x1d5bde['verify']=function(_0xdbeb15){return'object'!=typeof _0xdbeb15||null===_0xdbeb15?'object\x20expected':null!=_0xdbeb15['commentThreadId']&&_0xdbeb15['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0xdbeb15['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0xdbeb15['documentId']&&_0xdbeb15['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0xdbeb15['documentId'])?'documentId:\x20string\x20expected':null!=_0xdbeb15['resolvedBy']&&_0xdbeb15['hasOwnProperty']('resolvedBy')&&!_0x1967e8['isString'](_0xdbeb15['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0xdbeb15['resolvedAt']&&_0xdbeb15['hasOwnProperty']('resolvedAt')&&!_0x1967e8['isString'](_0xdbeb15['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},_0x1d5bde['fromObject']=function(_0x539c7b){if(_0x539c7b instanceof _0x17fc8f['CommentsV2ResolveCommentThreadMessage'])return _0x539c7b;var _0x5d1e9a=new _0x17fc8f['CommentsV2ResolveCommentThreadMessage']();return null!=_0x539c7b['commentThreadId']&&(_0x5d1e9a['commentThreadId']=String(_0x539c7b['commentThreadId'])),null!=_0x539c7b['documentId']&&(_0x5d1e9a['documentId']=String(_0x539c7b['documentId'])),null!=_0x539c7b['resolvedBy']&&(_0x5d1e9a['resolvedBy']=String(_0x539c7b['resolvedBy'])),null!=_0x539c7b['resolvedAt']&&(_0x5d1e9a['resolvedAt']=String(_0x539c7b['resolvedAt'])),_0x5d1e9a;},_0x1d5bde['toObject']=function(_0x3a89d8,_0x1f60b2){_0x1f60b2||(_0x1f60b2={});var _0x3b90d4={};return _0x1f60b2['defaults']&&(_0x3b90d4['commentThreadId']='',_0x3b90d4['documentId']='',_0x3b90d4['resolvedBy']='',_0x3b90d4['resolvedAt']=''),null!=_0x3a89d8['commentThreadId']&&_0x3a89d8['hasOwnProperty']('commentThreadId')&&(_0x3b90d4['commentThreadId']=_0x3a89d8['commentThreadId']),null!=_0x3a89d8['documentId']&&_0x3a89d8['hasOwnProperty']('documentId')&&(_0x3b90d4['documentId']=_0x3a89d8['documentId']),null!=_0x3a89d8['resolvedBy']&&_0x3a89d8['hasOwnProperty']('resolvedBy')&&(_0x3b90d4['resolvedBy']=_0x3a89d8['resolvedBy']),null!=_0x3a89d8['resolvedAt']&&_0x3a89d8['hasOwnProperty']('resolvedAt')&&(_0x3b90d4['resolvedAt']=_0x3a89d8['resolvedAt']),_0x3b90d4;},_0x1d5bde['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x1d5bde['getTypeUrl']=function(_0x121e69){return void 0x0===_0x121e69&&(_0x121e69='type.googleapis.com'),_0x121e69+'/CommentsV2ResolveCommentThreadMessage';},_0x1d5bde;}()),_0x17fc8f['CommentsV2ReopenCommentThreadMessage']=(function(){function _0x33874e(_0x2ebfdc){if(_0x2ebfdc){for(var _0x32c5dd=Object['keys'](_0x2ebfdc),_0xe8b5bb=0x0;_0xe8b5bb<_0x32c5dd['length'];++_0xe8b5bb)null!=_0x2ebfdc[_0x32c5dd[_0xe8b5bb]]&&(this[_0x32c5dd[_0xe8b5bb]]=_0x2ebfdc[_0x32c5dd[_0xe8b5bb]]);}}return _0x33874e['prototype']['commentThreadId']='',_0x33874e['prototype']['documentId']='',_0x33874e['create']=function(_0x5d3f91){return new _0x33874e(_0x5d3f91);},_0x33874e['encode']=function(_0x4457c4,_0x23da76){return _0x23da76||(_0x23da76=_0x5e31a7['create']()),null!=_0x4457c4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4457c4,'commentThreadId')&&_0x23da76['uint32'](0xa)['string'](_0x4457c4['commentThreadId']),null!=_0x4457c4['documentId']&&Object['hasOwnProperty']['call'](_0x4457c4,'documentId')&&_0x23da76['uint32'](0x12)['string'](_0x4457c4['documentId']),_0x23da76;},_0x33874e['encodeDelimited']=function(_0xed1aa1,_0x1285a9){return this['encode'](_0xed1aa1,_0x1285a9)['ldelim']();},_0x33874e['decode']=function(_0x1b7985,_0x36ae93,_0x1f1cd5){_0x1b7985 instanceof _0x546f05||(_0x1b7985=_0x546f05['create'](_0x1b7985));for(var _0x3d7e12=void 0x0===_0x36ae93?_0x1b7985['len']:_0x1b7985['pos']+_0x36ae93,_0x467b2b=new _0x17fc8f['CommentsV2ReopenCommentThreadMessage']();_0x1b7985['pos']<_0x3d7e12;){var _0x245320=_0x1b7985['uint32']();if(_0x245320===_0x1f1cd5)break;switch(_0x245320>>>0x3){case 0x1:_0x467b2b['commentThreadId']=_0x1b7985['string']();break;case 0x2:_0x467b2b['documentId']=_0x1b7985['string']();break;default:_0x1b7985['skipType'](0x7&_0x245320);}}return _0x467b2b;},_0x33874e['decodeDelimited']=function(_0x44b02f){return _0x44b02f instanceof _0x546f05||(_0x44b02f=new _0x546f05(_0x44b02f)),this['decode'](_0x44b02f,_0x44b02f['uint32']());},_0x33874e['verify']=function(_0x4c912c){return'object'!=typeof _0x4c912c||null===_0x4c912c?'object\x20expected':null!=_0x4c912c['commentThreadId']&&_0x4c912c['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x4c912c['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x4c912c['documentId']&&_0x4c912c['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x4c912c['documentId'])?'documentId:\x20string\x20expected':null;},_0x33874e['fromObject']=function(_0x4d98b7){if(_0x4d98b7 instanceof _0x17fc8f['CommentsV2ReopenCommentThreadMessage'])return _0x4d98b7;var _0x158799=new _0x17fc8f['CommentsV2ReopenCommentThreadMessage']();return null!=_0x4d98b7['commentThreadId']&&(_0x158799['commentThreadId']=String(_0x4d98b7['commentThreadId'])),null!=_0x4d98b7['documentId']&&(_0x158799['documentId']=String(_0x4d98b7['documentId'])),_0x158799;},_0x33874e['toObject']=function(_0x4e4aea,_0x39c43f){_0x39c43f||(_0x39c43f={});var _0x598da1={};return _0x39c43f['defaults']&&(_0x598da1['commentThreadId']='',_0x598da1['documentId']=''),null!=_0x4e4aea['commentThreadId']&&_0x4e4aea['hasOwnProperty']('commentThreadId')&&(_0x598da1['commentThreadId']=_0x4e4aea['commentThreadId']),null!=_0x4e4aea['documentId']&&_0x4e4aea['hasOwnProperty']('documentId')&&(_0x598da1['documentId']=_0x4e4aea['documentId']),_0x598da1;},_0x33874e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x33874e['getTypeUrl']=function(_0x2b0220){return void 0x0===_0x2b0220&&(_0x2b0220='type.googleapis.com'),_0x2b0220+'/CommentsV2ReopenCommentThreadMessage';},_0x33874e;}()),_0x17fc8f['CommentsV2AddCommentThreadMessage']=(function(){function _0x27ab6b(_0x41426f){if(this['comments']=[],_0x41426f){for(var _0x5126bd=Object['keys'](_0x41426f),_0x14c9a2=0x0;_0x14c9a2<_0x5126bd['length'];++_0x14c9a2)null!=_0x41426f[_0x5126bd[_0x14c9a2]]&&(this[_0x5126bd[_0x14c9a2]]=_0x41426f[_0x5126bd[_0x14c9a2]]);}}return _0x27ab6b['prototype']['documentId']='',_0x27ab6b['prototype']['commentThreadId']='',_0x27ab6b['prototype']['context']='',_0x27ab6b['prototype']['createdAt']='',_0x27ab6b['prototype']['resolvedAt']='',_0x27ab6b['prototype']['resolvedBy']='',_0x27ab6b['prototype']['attributes']='',_0x27ab6b['prototype']['deletedAt']='',_0x27ab6b['prototype']['comments']=_0x1967e8['emptyArray'],_0x27ab6b['create']=function(_0x3d8398){return new _0x27ab6b(_0x3d8398);},_0x27ab6b['encode']=function(_0xf5a07b,_0x417d66){if(_0x417d66||(_0x417d66=_0x5e31a7['create']()),null!=_0xf5a07b['documentId']&&Object['hasOwnProperty']['call'](_0xf5a07b,'documentId')&&_0x417d66['uint32'](0xa)['string'](_0xf5a07b['documentId']),null!=_0xf5a07b['commentThreadId']&&Object['hasOwnProperty']['call'](_0xf5a07b,'commentThreadId')&&_0x417d66['uint32'](0x12)['string'](_0xf5a07b['commentThreadId']),null!=_0xf5a07b['context']&&Object['hasOwnProperty']['call'](_0xf5a07b,'context')&&_0x417d66['uint32'](0x1a)['string'](_0xf5a07b['context']),null!=_0xf5a07b['createdAt']&&Object['hasOwnProperty']['call'](_0xf5a07b,'createdAt')&&_0x417d66['uint32'](0x22)['string'](_0xf5a07b['createdAt']),null!=_0xf5a07b['resolvedAt']&&Object['hasOwnProperty']['call'](_0xf5a07b,'resolvedAt')&&_0x417d66['uint32'](0x2a)['string'](_0xf5a07b['resolvedAt']),null!=_0xf5a07b['resolvedBy']&&Object['hasOwnProperty']['call'](_0xf5a07b,'resolvedBy')&&_0x417d66['uint32'](0x32)['string'](_0xf5a07b['resolvedBy']),null!=_0xf5a07b['attributes']&&Object['hasOwnProperty']['call'](_0xf5a07b,'attributes')&&_0x417d66['uint32'](0x3a)['string'](_0xf5a07b['attributes']),null!=_0xf5a07b['deletedAt']&&Object['hasOwnProperty']['call'](_0xf5a07b,'deletedAt')&&_0x417d66['uint32'](0x42)['string'](_0xf5a07b['deletedAt']),null!=_0xf5a07b['comments']&&_0xf5a07b['comments']['length']){for(var _0x49a847=0x0;_0x49a847<_0xf5a07b['comments']['length'];++_0x49a847)_0x17fc8f['CommentDescriptor']['encode'](_0xf5a07b['comments'][_0x49a847],_0x417d66['uint32'](0x4a)['fork']())['ldelim']();}return _0x417d66;},_0x27ab6b['encodeDelimited']=function(_0x27a26a,_0x472475){return this['encode'](_0x27a26a,_0x472475)['ldelim']();},_0x27ab6b['decode']=function(_0x550402,_0x3bb435,_0x37d55b){_0x550402 instanceof _0x546f05||(_0x550402=_0x546f05['create'](_0x550402));for(var _0x4fb054=void 0x0===_0x3bb435?_0x550402['len']:_0x550402['pos']+_0x3bb435,_0x40ff58=new _0x17fc8f['CommentsV2AddCommentThreadMessage']();_0x550402['pos']<_0x4fb054;){var _0x1fb93f=_0x550402['uint32']();if(_0x1fb93f===_0x37d55b)break;switch(_0x1fb93f>>>0x3){case 0x1:_0x40ff58['documentId']=_0x550402['string']();break;case 0x2:_0x40ff58['commentThreadId']=_0x550402['string']();break;case 0x3:_0x40ff58['context']=_0x550402['string']();break;case 0x4:_0x40ff58['createdAt']=_0x550402['string']();break;case 0x5:_0x40ff58['resolvedAt']=_0x550402['string']();break;case 0x6:_0x40ff58['resolvedBy']=_0x550402['string']();break;case 0x7:_0x40ff58['attributes']=_0x550402['string']();break;case 0x8:_0x40ff58['deletedAt']=_0x550402['string']();break;case 0x9:_0x40ff58['comments']&&_0x40ff58['comments']['length']||(_0x40ff58['comments']=[]),_0x40ff58['comments']['push'](_0x17fc8f['CommentDescriptor']['decode'](_0x550402,_0x550402['uint32']()));break;default:_0x550402['skipType'](0x7&_0x1fb93f);}}return _0x40ff58;},_0x27ab6b['decodeDelimited']=function(_0x5ccba4){return _0x5ccba4 instanceof _0x546f05||(_0x5ccba4=new _0x546f05(_0x5ccba4)),this['decode'](_0x5ccba4,_0x5ccba4['uint32']());},_0x27ab6b['verify']=function(_0x220996){if('object'!=typeof _0x220996||null===_0x220996)return'object\x20expected';if(null!=_0x220996['documentId']&&_0x220996['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x220996['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x220996['commentThreadId']&&_0x220996['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x220996['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x220996['context']&&_0x220996['hasOwnProperty']('context')&&!_0x1967e8['isString'](_0x220996['context']))return'context:\x20string\x20expected';if(null!=_0x220996['createdAt']&&_0x220996['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x220996['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x220996['resolvedAt']&&_0x220996['hasOwnProperty']('resolvedAt')&&!_0x1967e8['isString'](_0x220996['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x220996['resolvedBy']&&_0x220996['hasOwnProperty']('resolvedBy')&&!_0x1967e8['isString'](_0x220996['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x220996['attributes']&&_0x220996['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x220996['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x220996['deletedAt']&&_0x220996['hasOwnProperty']('deletedAt')&&!_0x1967e8['isString'](_0x220996['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x220996['comments']&&_0x220996['hasOwnProperty']('comments')){if(!Array['isArray'](_0x220996['comments']))return'comments:\x20array\x20expected';for(var _0x4b0e0d=0x0;_0x4b0e0d<_0x220996['comments']['length'];++_0x4b0e0d){var _0x2323d4=_0x17fc8f['CommentDescriptor']['verify'](_0x220996['comments'][_0x4b0e0d]);if(_0x2323d4)return'comments.'+_0x2323d4;}}return null;},_0x27ab6b['fromObject']=function(_0x1f70df){if(_0x1f70df instanceof _0x17fc8f['CommentsV2AddCommentThreadMessage'])return _0x1f70df;var _0x5aa599=new _0x17fc8f['CommentsV2AddCommentThreadMessage']();if(null!=_0x1f70df['documentId']&&(_0x5aa599['documentId']=String(_0x1f70df['documentId'])),null!=_0x1f70df['commentThreadId']&&(_0x5aa599['commentThreadId']=String(_0x1f70df['commentThreadId'])),null!=_0x1f70df['context']&&(_0x5aa599['context']=String(_0x1f70df['context'])),null!=_0x1f70df['createdAt']&&(_0x5aa599['createdAt']=String(_0x1f70df['createdAt'])),null!=_0x1f70df['resolvedAt']&&(_0x5aa599['resolvedAt']=String(_0x1f70df['resolvedAt'])),null!=_0x1f70df['resolvedBy']&&(_0x5aa599['resolvedBy']=String(_0x1f70df['resolvedBy'])),null!=_0x1f70df['attributes']&&(_0x5aa599['attributes']=String(_0x1f70df['attributes'])),null!=_0x1f70df['deletedAt']&&(_0x5aa599['deletedAt']=String(_0x1f70df['deletedAt'])),_0x1f70df['comments']){if(!Array['isArray'](_0x1f70df['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x5aa599['comments']=[];for(var _0x50ef8e=0x0;_0x50ef8e<_0x1f70df['comments']['length'];++_0x50ef8e){if('object'!=typeof _0x1f70df['comments'][_0x50ef8e])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x5aa599['comments'][_0x50ef8e]=_0x17fc8f['CommentDescriptor']['fromObject'](_0x1f70df['comments'][_0x50ef8e]);}}return _0x5aa599;},_0x27ab6b['toObject']=function(_0x1fd523,_0x6c799a){_0x6c799a||(_0x6c799a={});var _0x4f5aa5={};if((_0x6c799a['arrays']||_0x6c799a['defaults'])&&(_0x4f5aa5['comments']=[]),_0x6c799a['defaults']&&(_0x4f5aa5['documentId']='',_0x4f5aa5['commentThreadId']='',_0x4f5aa5['context']='',_0x4f5aa5['createdAt']='',_0x4f5aa5['resolvedAt']='',_0x4f5aa5['resolvedBy']='',_0x4f5aa5['attributes']='',_0x4f5aa5['deletedAt']=''),null!=_0x1fd523['documentId']&&_0x1fd523['hasOwnProperty']('documentId')&&(_0x4f5aa5['documentId']=_0x1fd523['documentId']),null!=_0x1fd523['commentThreadId']&&_0x1fd523['hasOwnProperty']('commentThreadId')&&(_0x4f5aa5['commentThreadId']=_0x1fd523['commentThreadId']),null!=_0x1fd523['context']&&_0x1fd523['hasOwnProperty']('context')&&(_0x4f5aa5['context']=_0x1fd523['context']),null!=_0x1fd523['createdAt']&&_0x1fd523['hasOwnProperty']('createdAt')&&(_0x4f5aa5['createdAt']=_0x1fd523['createdAt']),null!=_0x1fd523['resolvedAt']&&_0x1fd523['hasOwnProperty']('resolvedAt')&&(_0x4f5aa5['resolvedAt']=_0x1fd523['resolvedAt']),null!=_0x1fd523['resolvedBy']&&_0x1fd523['hasOwnProperty']('resolvedBy')&&(_0x4f5aa5['resolvedBy']=_0x1fd523['resolvedBy']),null!=_0x1fd523['attributes']&&_0x1fd523['hasOwnProperty']('attributes')&&(_0x4f5aa5['attributes']=_0x1fd523['attributes']),null!=_0x1fd523['deletedAt']&&_0x1fd523['hasOwnProperty']('deletedAt')&&(_0x4f5aa5['deletedAt']=_0x1fd523['deletedAt']),_0x1fd523['comments']&&_0x1fd523['comments']['length']){_0x4f5aa5['comments']=[];for(var _0x1d240a=0x0;_0x1d240a<_0x1fd523['comments']['length'];++_0x1d240a)_0x4f5aa5['comments'][_0x1d240a]=_0x17fc8f['CommentDescriptor']['toObject'](_0x1fd523['comments'][_0x1d240a],_0x6c799a);}return _0x4f5aa5;},_0x27ab6b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x27ab6b['getTypeUrl']=function(_0x15220e){return void 0x0===_0x15220e&&(_0x15220e='type.googleapis.com'),_0x15220e+'/CommentsV2AddCommentThreadMessage';},_0x27ab6b;}()),_0x17fc8f['CommentThreadAddedCommentDescriptor']=(function(){function _0x31b2db(_0x6d1c83){if(_0x6d1c83){for(var _0x54cad4=Object['keys'](_0x6d1c83),_0x34fef1=0x0;_0x34fef1<_0x54cad4['length'];++_0x34fef1)null!=_0x6d1c83[_0x54cad4[_0x34fef1]]&&(this[_0x54cad4[_0x34fef1]]=_0x6d1c83[_0x54cad4[_0x34fef1]]);}}return _0x31b2db['prototype']['commentId']='',_0x31b2db['prototype']['createdAt']='',_0x31b2db['create']=function(_0x3ca37a){return new _0x31b2db(_0x3ca37a);},_0x31b2db['encode']=function(_0x152d43,_0xf8f0b4){return _0xf8f0b4||(_0xf8f0b4=_0x5e31a7['create']()),null!=_0x152d43['commentId']&&Object['hasOwnProperty']['call'](_0x152d43,'commentId')&&_0xf8f0b4['uint32'](0xa)['string'](_0x152d43['commentId']),null!=_0x152d43['createdAt']&&Object['hasOwnProperty']['call'](_0x152d43,'createdAt')&&_0xf8f0b4['uint32'](0x12)['string'](_0x152d43['createdAt']),_0xf8f0b4;},_0x31b2db['encodeDelimited']=function(_0x5a3217,_0x9886ca){return this['encode'](_0x5a3217,_0x9886ca)['ldelim']();},_0x31b2db['decode']=function(_0x454de1,_0x1f598f,_0x35e6ff){_0x454de1 instanceof _0x546f05||(_0x454de1=_0x546f05['create'](_0x454de1));for(var _0x362986=void 0x0===_0x1f598f?_0x454de1['len']:_0x454de1['pos']+_0x1f598f,_0xd2c405=new _0x17fc8f['CommentThreadAddedCommentDescriptor']();_0x454de1['pos']<_0x362986;){var _0xf85952=_0x454de1['uint32']();if(_0xf85952===_0x35e6ff)break;switch(_0xf85952>>>0x3){case 0x1:_0xd2c405['commentId']=_0x454de1['string']();break;case 0x2:_0xd2c405['createdAt']=_0x454de1['string']();break;default:_0x454de1['skipType'](0x7&_0xf85952);}}return _0xd2c405;},_0x31b2db['decodeDelimited']=function(_0x5a896f){return _0x5a896f instanceof _0x546f05||(_0x5a896f=new _0x546f05(_0x5a896f)),this['decode'](_0x5a896f,_0x5a896f['uint32']());},_0x31b2db['verify']=function(_0x17b93b){return'object'!=typeof _0x17b93b||null===_0x17b93b?'object\x20expected':null!=_0x17b93b['commentId']&&_0x17b93b['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0x17b93b['commentId'])?'commentId:\x20string\x20expected':null!=_0x17b93b['createdAt']&&_0x17b93b['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x17b93b['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x31b2db['fromObject']=function(_0x1d5e7e){if(_0x1d5e7e instanceof _0x17fc8f['CommentThreadAddedCommentDescriptor'])return _0x1d5e7e;var _0x5569f2=new _0x17fc8f['CommentThreadAddedCommentDescriptor']();return null!=_0x1d5e7e['commentId']&&(_0x5569f2['commentId']=String(_0x1d5e7e['commentId'])),null!=_0x1d5e7e['createdAt']&&(_0x5569f2['createdAt']=String(_0x1d5e7e['createdAt'])),_0x5569f2;},_0x31b2db['toObject']=function(_0x5a2f5e,_0x4d6908){_0x4d6908||(_0x4d6908={});var _0x25b944={};return _0x4d6908['defaults']&&(_0x25b944['commentId']='',_0x25b944['createdAt']=''),null!=_0x5a2f5e['commentId']&&_0x5a2f5e['hasOwnProperty']('commentId')&&(_0x25b944['commentId']=_0x5a2f5e['commentId']),null!=_0x5a2f5e['createdAt']&&_0x5a2f5e['hasOwnProperty']('createdAt')&&(_0x25b944['createdAt']=_0x5a2f5e['createdAt']),_0x25b944;},_0x31b2db['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x31b2db['getTypeUrl']=function(_0x45b4e6){return void 0x0===_0x45b4e6&&(_0x45b4e6='type.googleapis.com'),_0x45b4e6+'/CommentThreadAddedCommentDescriptor';},_0x31b2db;}()),_0x17fc8f['CommentsThreadDescriptor']=(function(){function _0x5ec114(_0x271b73){if(this['comments']=[],_0x271b73){for(var _0xe8d6=Object['keys'](_0x271b73),_0x5dc2b2=0x0;_0x5dc2b2<_0xe8d6['length'];++_0x5dc2b2)null!=_0x271b73[_0xe8d6[_0x5dc2b2]]&&(this[_0xe8d6[_0x5dc2b2]]=_0x271b73[_0xe8d6[_0x5dc2b2]]);}}return _0x5ec114['prototype']['commentThreadId']='',_0x5ec114['prototype']['comments']=_0x1967e8['emptyArray'],_0x5ec114['prototype']['resolvedAt']='',_0x5ec114['prototype']['resolvedBy']='',_0x5ec114['prototype']['context']='',_0x5ec114['prototype']['createdAt']='',_0x5ec114['prototype']['deletedAt']='',_0x5ec114['prototype']['attributes']='',_0x5ec114['prototype']['unlinkedAt']='',_0x5ec114['create']=function(_0x5d5f78){return new _0x5ec114(_0x5d5f78);},_0x5ec114['encode']=function(_0x1bc751,_0x9d1a23){if(_0x9d1a23||(_0x9d1a23=_0x5e31a7['create']()),null!=_0x1bc751['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1bc751,'commentThreadId')&&_0x9d1a23['uint32'](0xa)['string'](_0x1bc751['commentThreadId']),null!=_0x1bc751['comments']&&_0x1bc751['comments']['length']){for(var _0x7249eb=0x0;_0x7249eb<_0x1bc751['comments']['length'];++_0x7249eb)_0x17fc8f['CommentDescriptor']['encode'](_0x1bc751['comments'][_0x7249eb],_0x9d1a23['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x1bc751['resolvedAt']&&Object['hasOwnProperty']['call'](_0x1bc751,'resolvedAt')&&_0x9d1a23['uint32'](0x1a)['string'](_0x1bc751['resolvedAt']),null!=_0x1bc751['resolvedBy']&&Object['hasOwnProperty']['call'](_0x1bc751,'resolvedBy')&&_0x9d1a23['uint32'](0x22)['string'](_0x1bc751['resolvedBy']),null!=_0x1bc751['context']&&Object['hasOwnProperty']['call'](_0x1bc751,'context')&&_0x9d1a23['uint32'](0x2a)['string'](_0x1bc751['context']),null!=_0x1bc751['createdAt']&&Object['hasOwnProperty']['call'](_0x1bc751,'createdAt')&&_0x9d1a23['uint32'](0x32)['string'](_0x1bc751['createdAt']),null!=_0x1bc751['deletedAt']&&Object['hasOwnProperty']['call'](_0x1bc751,'deletedAt')&&_0x9d1a23['uint32'](0x3a)['string'](_0x1bc751['deletedAt']),null!=_0x1bc751['attributes']&&Object['hasOwnProperty']['call'](_0x1bc751,'attributes')&&_0x9d1a23['uint32'](0x42)['string'](_0x1bc751['attributes']),null!=_0x1bc751['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x1bc751,'unlinkedAt')&&_0x9d1a23['uint32'](0x4a)['string'](_0x1bc751['unlinkedAt']),_0x9d1a23;},_0x5ec114['encodeDelimited']=function(_0x2d8bcb,_0x1ecbb3){return this['encode'](_0x2d8bcb,_0x1ecbb3)['ldelim']();},_0x5ec114['decode']=function(_0x3f4d05,_0x4e8212,_0x21eb0a){_0x3f4d05 instanceof _0x546f05||(_0x3f4d05=_0x546f05['create'](_0x3f4d05));for(var _0x274c73=void 0x0===_0x4e8212?_0x3f4d05['len']:_0x3f4d05['pos']+_0x4e8212,_0x4aadbc=new _0x17fc8f['CommentsThreadDescriptor']();_0x3f4d05['pos']<_0x274c73;){var _0x46dbed=_0x3f4d05['uint32']();if(_0x46dbed===_0x21eb0a)break;switch(_0x46dbed>>>0x3){case 0x1:_0x4aadbc['commentThreadId']=_0x3f4d05['string']();break;case 0x2:_0x4aadbc['comments']&&_0x4aadbc['comments']['length']||(_0x4aadbc['comments']=[]),_0x4aadbc['comments']['push'](_0x17fc8f['CommentDescriptor']['decode'](_0x3f4d05,_0x3f4d05['uint32']()));break;case 0x3:_0x4aadbc['resolvedAt']=_0x3f4d05['string']();break;case 0x4:_0x4aadbc['resolvedBy']=_0x3f4d05['string']();break;case 0x5:_0x4aadbc['context']=_0x3f4d05['string']();break;case 0x6:_0x4aadbc['createdAt']=_0x3f4d05['string']();break;case 0x7:_0x4aadbc['deletedAt']=_0x3f4d05['string']();break;case 0x8:_0x4aadbc['attributes']=_0x3f4d05['string']();break;case 0x9:_0x4aadbc['unlinkedAt']=_0x3f4d05['string']();break;default:_0x3f4d05['skipType'](0x7&_0x46dbed);}}return _0x4aadbc;},_0x5ec114['decodeDelimited']=function(_0x1d9355){return _0x1d9355 instanceof _0x546f05||(_0x1d9355=new _0x546f05(_0x1d9355)),this['decode'](_0x1d9355,_0x1d9355['uint32']());},_0x5ec114['verify']=function(_0x3dbf97){if('object'!=typeof _0x3dbf97||null===_0x3dbf97)return'object\x20expected';if(null!=_0x3dbf97['commentThreadId']&&_0x3dbf97['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x3dbf97['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x3dbf97['comments']&&_0x3dbf97['hasOwnProperty']('comments')){if(!Array['isArray'](_0x3dbf97['comments']))return'comments:\x20array\x20expected';for(var _0x42e215=0x0;_0x42e215<_0x3dbf97['comments']['length'];++_0x42e215){var _0x1f8d5d=_0x17fc8f['CommentDescriptor']['verify'](_0x3dbf97['comments'][_0x42e215]);if(_0x1f8d5d)return'comments.'+_0x1f8d5d;}}return null!=_0x3dbf97['resolvedAt']&&_0x3dbf97['hasOwnProperty']('resolvedAt')&&!_0x1967e8['isString'](_0x3dbf97['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3dbf97['resolvedBy']&&_0x3dbf97['hasOwnProperty']('resolvedBy')&&!_0x1967e8['isString'](_0x3dbf97['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x3dbf97['context']&&_0x3dbf97['hasOwnProperty']('context')&&!_0x1967e8['isString'](_0x3dbf97['context'])?'context:\x20string\x20expected':null!=_0x3dbf97['createdAt']&&_0x3dbf97['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x3dbf97['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3dbf97['deletedAt']&&_0x3dbf97['hasOwnProperty']('deletedAt')&&!_0x1967e8['isString'](_0x3dbf97['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x3dbf97['attributes']&&_0x3dbf97['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x3dbf97['attributes'])?'attributes:\x20string\x20expected':null!=_0x3dbf97['unlinkedAt']&&_0x3dbf97['hasOwnProperty']('unlinkedAt')&&!_0x1967e8['isString'](_0x3dbf97['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},_0x5ec114['fromObject']=function(_0xb990bd){if(_0xb990bd instanceof _0x17fc8f['CommentsThreadDescriptor'])return _0xb990bd;var _0x3fbfd7=new _0x17fc8f['CommentsThreadDescriptor']();if(null!=_0xb990bd['commentThreadId']&&(_0x3fbfd7['commentThreadId']=String(_0xb990bd['commentThreadId'])),_0xb990bd['comments']){if(!Array['isArray'](_0xb990bd['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x3fbfd7['comments']=[];for(var _0x44f042=0x0;_0x44f042<_0xb990bd['comments']['length'];++_0x44f042){if('object'!=typeof _0xb990bd['comments'][_0x44f042])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x3fbfd7['comments'][_0x44f042]=_0x17fc8f['CommentDescriptor']['fromObject'](_0xb990bd['comments'][_0x44f042]);}}return null!=_0xb990bd['resolvedAt']&&(_0x3fbfd7['resolvedAt']=String(_0xb990bd['resolvedAt'])),null!=_0xb990bd['resolvedBy']&&(_0x3fbfd7['resolvedBy']=String(_0xb990bd['resolvedBy'])),null!=_0xb990bd['context']&&(_0x3fbfd7['context']=String(_0xb990bd['context'])),null!=_0xb990bd['createdAt']&&(_0x3fbfd7['createdAt']=String(_0xb990bd['createdAt'])),null!=_0xb990bd['deletedAt']&&(_0x3fbfd7['deletedAt']=String(_0xb990bd['deletedAt'])),null!=_0xb990bd['attributes']&&(_0x3fbfd7['attributes']=String(_0xb990bd['attributes'])),null!=_0xb990bd['unlinkedAt']&&(_0x3fbfd7['unlinkedAt']=String(_0xb990bd['unlinkedAt'])),_0x3fbfd7;},_0x5ec114['toObject']=function(_0xe4e45e,_0x101bfb){_0x101bfb||(_0x101bfb={});var _0x7bc82c={};if((_0x101bfb['arrays']||_0x101bfb['defaults'])&&(_0x7bc82c['comments']=[]),_0x101bfb['defaults']&&(_0x7bc82c['commentThreadId']='',_0x7bc82c['resolvedAt']='',_0x7bc82c['resolvedBy']='',_0x7bc82c['context']='',_0x7bc82c['createdAt']='',_0x7bc82c['deletedAt']='',_0x7bc82c['attributes']='',_0x7bc82c['unlinkedAt']=''),null!=_0xe4e45e['commentThreadId']&&_0xe4e45e['hasOwnProperty']('commentThreadId')&&(_0x7bc82c['commentThreadId']=_0xe4e45e['commentThreadId']),_0xe4e45e['comments']&&_0xe4e45e['comments']['length']){_0x7bc82c['comments']=[];for(var _0x3fa59f=0x0;_0x3fa59f<_0xe4e45e['comments']['length'];++_0x3fa59f)_0x7bc82c['comments'][_0x3fa59f]=_0x17fc8f['CommentDescriptor']['toObject'](_0xe4e45e['comments'][_0x3fa59f],_0x101bfb);}return null!=_0xe4e45e['resolvedAt']&&_0xe4e45e['hasOwnProperty']('resolvedAt')&&(_0x7bc82c['resolvedAt']=_0xe4e45e['resolvedAt']),null!=_0xe4e45e['resolvedBy']&&_0xe4e45e['hasOwnProperty']('resolvedBy')&&(_0x7bc82c['resolvedBy']=_0xe4e45e['resolvedBy']),null!=_0xe4e45e['context']&&_0xe4e45e['hasOwnProperty']('context')&&(_0x7bc82c['context']=_0xe4e45e['context']),null!=_0xe4e45e['createdAt']&&_0xe4e45e['hasOwnProperty']('createdAt')&&(_0x7bc82c['createdAt']=_0xe4e45e['createdAt']),null!=_0xe4e45e['deletedAt']&&_0xe4e45e['hasOwnProperty']('deletedAt')&&(_0x7bc82c['deletedAt']=_0xe4e45e['deletedAt']),null!=_0xe4e45e['attributes']&&_0xe4e45e['hasOwnProperty']('attributes')&&(_0x7bc82c['attributes']=_0xe4e45e['attributes']),null!=_0xe4e45e['unlinkedAt']&&_0xe4e45e['hasOwnProperty']('unlinkedAt')&&(_0x7bc82c['unlinkedAt']=_0xe4e45e['unlinkedAt']),_0x7bc82c;},_0x5ec114['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ec114['getTypeUrl']=function(_0xd57c6b){return void 0x0===_0xd57c6b&&(_0xd57c6b='type.googleapis.com'),_0xd57c6b+'/CommentsThreadDescriptor';},_0x5ec114;}()),_0x17fc8f['CommentDescriptor']=(function(){function _0x37effd(_0x1ac3a9){if(_0x1ac3a9){for(var _0x182cfd=Object['keys'](_0x1ac3a9),_0x3581e1=0x0;_0x3581e1<_0x182cfd['length'];++_0x3581e1)null!=_0x1ac3a9[_0x182cfd[_0x3581e1]]&&(this[_0x182cfd[_0x3581e1]]=_0x1ac3a9[_0x182cfd[_0x3581e1]]);}}return _0x37effd['prototype']['commentId']='',_0x37effd['prototype']['commentThreadId']='',_0x37effd['prototype']['userId']='',_0x37effd['prototype']['content']='',_0x37effd['prototype']['documentId']='',_0x37effd['prototype']['createdAt']='',_0x37effd['prototype']['attributes']='',_0x37effd['create']=function(_0x22a9e8){return new _0x37effd(_0x22a9e8);},_0x37effd['encode']=function(_0x1afec4,_0x151d1f){return _0x151d1f||(_0x151d1f=_0x5e31a7['create']()),null!=_0x1afec4['commentId']&&Object['hasOwnProperty']['call'](_0x1afec4,'commentId')&&_0x151d1f['uint32'](0xa)['string'](_0x1afec4['commentId']),null!=_0x1afec4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1afec4,'commentThreadId')&&_0x151d1f['uint32'](0x12)['string'](_0x1afec4['commentThreadId']),null!=_0x1afec4['userId']&&Object['hasOwnProperty']['call'](_0x1afec4,'userId')&&_0x151d1f['uint32'](0x1a)['string'](_0x1afec4['userId']),null!=_0x1afec4['content']&&Object['hasOwnProperty']['call'](_0x1afec4,'content')&&_0x151d1f['uint32'](0x22)['string'](_0x1afec4['content']),null!=_0x1afec4['documentId']&&Object['hasOwnProperty']['call'](_0x1afec4,'documentId')&&_0x151d1f['uint32'](0x2a)['string'](_0x1afec4['documentId']),null!=_0x1afec4['createdAt']&&Object['hasOwnProperty']['call'](_0x1afec4,'createdAt')&&_0x151d1f['uint32'](0x32)['string'](_0x1afec4['createdAt']),null!=_0x1afec4['attributes']&&Object['hasOwnProperty']['call'](_0x1afec4,'attributes')&&_0x151d1f['uint32'](0x3a)['string'](_0x1afec4['attributes']),_0x151d1f;},_0x37effd['encodeDelimited']=function(_0x6175e5,_0x462b02){return this['encode'](_0x6175e5,_0x462b02)['ldelim']();},_0x37effd['decode']=function(_0x4b3505,_0x3cec32,_0x46a4c5){_0x4b3505 instanceof _0x546f05||(_0x4b3505=_0x546f05['create'](_0x4b3505));for(var _0x44f87a=void 0x0===_0x3cec32?_0x4b3505['len']:_0x4b3505['pos']+_0x3cec32,_0x575cf8=new _0x17fc8f['CommentDescriptor']();_0x4b3505['pos']<_0x44f87a;){var _0x19b278=_0x4b3505['uint32']();if(_0x19b278===_0x46a4c5)break;switch(_0x19b278>>>0x3){case 0x1:_0x575cf8['commentId']=_0x4b3505['string']();break;case 0x2:_0x575cf8['commentThreadId']=_0x4b3505['string']();break;case 0x3:_0x575cf8['userId']=_0x4b3505['string']();break;case 0x4:_0x575cf8['content']=_0x4b3505['string']();break;case 0x5:_0x575cf8['documentId']=_0x4b3505['string']();break;case 0x6:_0x575cf8['createdAt']=_0x4b3505['string']();break;case 0x7:_0x575cf8['attributes']=_0x4b3505['string']();break;default:_0x4b3505['skipType'](0x7&_0x19b278);}}return _0x575cf8;},_0x37effd['decodeDelimited']=function(_0x2b1695){return _0x2b1695 instanceof _0x546f05||(_0x2b1695=new _0x546f05(_0x2b1695)),this['decode'](_0x2b1695,_0x2b1695['uint32']());},_0x37effd['verify']=function(_0x5bdc4b){return'object'!=typeof _0x5bdc4b||null===_0x5bdc4b?'object\x20expected':null!=_0x5bdc4b['commentId']&&_0x5bdc4b['hasOwnProperty']('commentId')&&!_0x1967e8['isString'](_0x5bdc4b['commentId'])?'commentId:\x20string\x20expected':null!=_0x5bdc4b['commentThreadId']&&_0x5bdc4b['hasOwnProperty']('commentThreadId')&&!_0x1967e8['isString'](_0x5bdc4b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5bdc4b['userId']&&_0x5bdc4b['hasOwnProperty']('userId')&&!_0x1967e8['isString'](_0x5bdc4b['userId'])?'userId:\x20string\x20expected':null!=_0x5bdc4b['content']&&_0x5bdc4b['hasOwnProperty']('content')&&!_0x1967e8['isString'](_0x5bdc4b['content'])?'content:\x20string\x20expected':null!=_0x5bdc4b['documentId']&&_0x5bdc4b['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x5bdc4b['documentId'])?'documentId:\x20string\x20expected':null!=_0x5bdc4b['createdAt']&&_0x5bdc4b['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x5bdc4b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5bdc4b['attributes']&&_0x5bdc4b['hasOwnProperty']('attributes')&&!_0x1967e8['isString'](_0x5bdc4b['attributes'])?'attributes:\x20string\x20expected':null;},_0x37effd['fromObject']=function(_0x213541){if(_0x213541 instanceof _0x17fc8f['CommentDescriptor'])return _0x213541;var _0x4d81f5=new _0x17fc8f['CommentDescriptor']();return null!=_0x213541['commentId']&&(_0x4d81f5['commentId']=String(_0x213541['commentId'])),null!=_0x213541['commentThreadId']&&(_0x4d81f5['commentThreadId']=String(_0x213541['commentThreadId'])),null!=_0x213541['userId']&&(_0x4d81f5['userId']=String(_0x213541['userId'])),null!=_0x213541['content']&&(_0x4d81f5['content']=String(_0x213541['content'])),null!=_0x213541['documentId']&&(_0x4d81f5['documentId']=String(_0x213541['documentId'])),null!=_0x213541['createdAt']&&(_0x4d81f5['createdAt']=String(_0x213541['createdAt'])),null!=_0x213541['attributes']&&(_0x4d81f5['attributes']=String(_0x213541['attributes'])),_0x4d81f5;},_0x37effd['toObject']=function(_0x156fea,_0x5044f6){_0x5044f6||(_0x5044f6={});var _0x28fbdc={};return _0x5044f6['defaults']&&(_0x28fbdc['commentId']='',_0x28fbdc['commentThreadId']='',_0x28fbdc['userId']='',_0x28fbdc['content']='',_0x28fbdc['documentId']='',_0x28fbdc['createdAt']='',_0x28fbdc['attributes']=''),null!=_0x156fea['commentId']&&_0x156fea['hasOwnProperty']('commentId')&&(_0x28fbdc['commentId']=_0x156fea['commentId']),null!=_0x156fea['commentThreadId']&&_0x156fea['hasOwnProperty']('commentThreadId')&&(_0x28fbdc['commentThreadId']=_0x156fea['commentThreadId']),null!=_0x156fea['userId']&&_0x156fea['hasOwnProperty']('userId')&&(_0x28fbdc['userId']=_0x156fea['userId']),null!=_0x156fea['content']&&_0x156fea['hasOwnProperty']('content')&&(_0x28fbdc['content']=_0x156fea['content']),null!=_0x156fea['documentId']&&_0x156fea['hasOwnProperty']('documentId')&&(_0x28fbdc['documentId']=_0x156fea['documentId']),null!=_0x156fea['createdAt']&&_0x156fea['hasOwnProperty']('createdAt')&&(_0x28fbdc['createdAt']=_0x156fea['createdAt']),null!=_0x156fea['attributes']&&_0x156fea['hasOwnProperty']('attributes')&&(_0x28fbdc['attributes']=_0x156fea['attributes']),_0x28fbdc;},_0x37effd['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x37effd['getTypeUrl']=function(_0x2a462b){return void 0x0===_0x2a462b&&(_0x2a462b='type.googleapis.com'),_0x2a462b+'/CommentDescriptor';},_0x37effd;}()),_0x17fc8f['GetDocumentDetailsResponse']=(function(){function _0x36b430(_0x20f44d){if(_0x20f44d){for(var _0x1e074b=Object['keys'](_0x20f44d),_0x29ba0c=0x0;_0x29ba0c<_0x1e074b['length'];++_0x29ba0c)null!=_0x20f44d[_0x1e074b[_0x29ba0c]]&&(this[_0x1e074b[_0x29ba0c]]=_0x20f44d[_0x1e074b[_0x29ba0c]]);}}return _0x36b430['prototype']['lastDocumentSessionId']='',_0x36b430['prototype']['lastDocumentSessionOperationId']='',_0x36b430['prototype']['currentDocumentSessionId']='',_0x36b430['prototype']['currentDocumentSessionVersion']=0x0,_0x36b430['prototype']['currentDocumentSessionOperationId']='',_0x36b430['create']=function(_0x347ebf){return new _0x36b430(_0x347ebf);},_0x36b430['encode']=function(_0x389bcb,_0x5274cf){return _0x5274cf||(_0x5274cf=_0x5e31a7['create']()),null!=_0x389bcb['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x389bcb,'lastDocumentSessionId')&&_0x5274cf['uint32'](0xa)['string'](_0x389bcb['lastDocumentSessionId']),null!=_0x389bcb['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x389bcb,'lastDocumentSessionOperationId')&&_0x5274cf['uint32'](0x12)['string'](_0x389bcb['lastDocumentSessionOperationId']),null!=_0x389bcb['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x389bcb,'currentDocumentSessionId')&&_0x5274cf['uint32'](0x1a)['string'](_0x389bcb['currentDocumentSessionId']),null!=_0x389bcb['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x389bcb,'currentDocumentSessionVersion')&&_0x5274cf['uint32'](0x20)['uint32'](_0x389bcb['currentDocumentSessionVersion']),null!=_0x389bcb['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x389bcb,'currentDocumentSessionOperationId')&&_0x5274cf['uint32'](0x2a)['string'](_0x389bcb['currentDocumentSessionOperationId']),_0x5274cf;},_0x36b430['encodeDelimited']=function(_0x342fe1,_0x21d4b8){return this['encode'](_0x342fe1,_0x21d4b8)['ldelim']();},_0x36b430['decode']=function(_0x4490d2,_0x2d38a9,_0x2d2fa6){_0x4490d2 instanceof _0x546f05||(_0x4490d2=_0x546f05['create'](_0x4490d2));for(var _0x4584c0=void 0x0===_0x2d38a9?_0x4490d2['len']:_0x4490d2['pos']+_0x2d38a9,_0x5c6a04=new _0x17fc8f['GetDocumentDetailsResponse']();_0x4490d2['pos']<_0x4584c0;){var _0x4220a6=_0x4490d2['uint32']();if(_0x4220a6===_0x2d2fa6)break;switch(_0x4220a6>>>0x3){case 0x1:_0x5c6a04['lastDocumentSessionId']=_0x4490d2['string']();break;case 0x2:_0x5c6a04['lastDocumentSessionOperationId']=_0x4490d2['string']();break;case 0x3:_0x5c6a04['currentDocumentSessionId']=_0x4490d2['string']();break;case 0x4:_0x5c6a04['currentDocumentSessionVersion']=_0x4490d2['uint32']();break;case 0x5:_0x5c6a04['currentDocumentSessionOperationId']=_0x4490d2['string']();break;default:_0x4490d2['skipType'](0x7&_0x4220a6);}}return _0x5c6a04;},_0x36b430['decodeDelimited']=function(_0x64f8a8){return _0x64f8a8 instanceof _0x546f05||(_0x64f8a8=new _0x546f05(_0x64f8a8)),this['decode'](_0x64f8a8,_0x64f8a8['uint32']());},_0x36b430['verify']=function(_0x18d0f7){return'object'!=typeof _0x18d0f7||null===_0x18d0f7?'object\x20expected':null!=_0x18d0f7['lastDocumentSessionId']&&_0x18d0f7['hasOwnProperty']('lastDocumentSessionId')&&!_0x1967e8['isString'](_0x18d0f7['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x18d0f7['lastDocumentSessionOperationId']&&_0x18d0f7['hasOwnProperty']('lastDocumentSessionOperationId')&&!_0x1967e8['isString'](_0x18d0f7['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x18d0f7['currentDocumentSessionId']&&_0x18d0f7['hasOwnProperty']('currentDocumentSessionId')&&!_0x1967e8['isString'](_0x18d0f7['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x18d0f7['currentDocumentSessionVersion']&&_0x18d0f7['hasOwnProperty']('currentDocumentSessionVersion')&&!_0x1967e8['isInteger'](_0x18d0f7['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x18d0f7['currentDocumentSessionOperationId']&&_0x18d0f7['hasOwnProperty']('currentDocumentSessionOperationId')&&!_0x1967e8['isString'](_0x18d0f7['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},_0x36b430['fromObject']=function(_0xfcc368){if(_0xfcc368 instanceof _0x17fc8f['GetDocumentDetailsResponse'])return _0xfcc368;var _0x1995c0=new _0x17fc8f['GetDocumentDetailsResponse']();return null!=_0xfcc368['lastDocumentSessionId']&&(_0x1995c0['lastDocumentSessionId']=String(_0xfcc368['lastDocumentSessionId'])),null!=_0xfcc368['lastDocumentSessionOperationId']&&(_0x1995c0['lastDocumentSessionOperationId']=String(_0xfcc368['lastDocumentSessionOperationId'])),null!=_0xfcc368['currentDocumentSessionId']&&(_0x1995c0['currentDocumentSessionId']=String(_0xfcc368['currentDocumentSessionId'])),null!=_0xfcc368['currentDocumentSessionVersion']&&(_0x1995c0['currentDocumentSessionVersion']=_0xfcc368['currentDocumentSessionVersion']>>>0x0),null!=_0xfcc368['currentDocumentSessionOperationId']&&(_0x1995c0['currentDocumentSessionOperationId']=String(_0xfcc368['currentDocumentSessionOperationId'])),_0x1995c0;},_0x36b430['toObject']=function(_0x338492,_0x3dd6e3){_0x3dd6e3||(_0x3dd6e3={});var _0x55ca16={};return _0x3dd6e3['defaults']&&(_0x55ca16['lastDocumentSessionId']='',_0x55ca16['lastDocumentSessionOperationId']='',_0x55ca16['currentDocumentSessionId']='',_0x55ca16['currentDocumentSessionVersion']=0x0,_0x55ca16['currentDocumentSessionOperationId']=''),null!=_0x338492['lastDocumentSessionId']&&_0x338492['hasOwnProperty']('lastDocumentSessionId')&&(_0x55ca16['lastDocumentSessionId']=_0x338492['lastDocumentSessionId']),null!=_0x338492['lastDocumentSessionOperationId']&&_0x338492['hasOwnProperty']('lastDocumentSessionOperationId')&&(_0x55ca16['lastDocumentSessionOperationId']=_0x338492['lastDocumentSessionOperationId']),null!=_0x338492['currentDocumentSessionId']&&_0x338492['hasOwnProperty']('currentDocumentSessionId')&&(_0x55ca16['currentDocumentSessionId']=_0x338492['currentDocumentSessionId']),null!=_0x338492['currentDocumentSessionVersion']&&_0x338492['hasOwnProperty']('currentDocumentSessionVersion')&&(_0x55ca16['currentDocumentSessionVersion']=_0x338492['currentDocumentSessionVersion']),null!=_0x338492['currentDocumentSessionOperationId']&&_0x338492['hasOwnProperty']('currentDocumentSessionOperationId')&&(_0x55ca16['currentDocumentSessionOperationId']=_0x338492['currentDocumentSessionOperationId']),_0x55ca16;},_0x36b430['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x36b430['getTypeUrl']=function(_0x496485){return void 0x0===_0x496485&&(_0x496485='type.googleapis.com'),_0x496485+'/GetDocumentDetailsResponse';},_0x36b430;}()),_0x17fc8f['CollaborativeEditingResponse']=(function(){function _0x5d652e(_0x296f00){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x296f00){for(var _0x173502=Object['keys'](_0x296f00),_0x233c3e=0x0;_0x233c3e<_0x173502['length'];++_0x233c3e)null!=_0x296f00[_0x173502[_0x233c3e]]&&(this[_0x173502[_0x233c3e]]=_0x296f00[_0x173502[_0x233c3e]]);}}return _0x5d652e['prototype']['version']=0x0,_0x5d652e['prototype']['buffers']=_0x1967e8['emptyArray'],_0x5d652e['prototype']['types']=_0x1967e8['emptyArray'],_0x5d652e['prototype']['metadata']=_0x1967e8['emptyArray'],_0x5d652e['prototype']['lastOperationId']='',_0x5d652e['prototype']['lastOperationAcceptedAt']='',_0x5d652e['create']=function(_0x5d0d07){return new _0x5d652e(_0x5d0d07);},_0x5d652e['encode']=function(_0x56d80a,_0x14b26a){if(_0x14b26a||(_0x14b26a=_0x5e31a7['create']()),null!=_0x56d80a['version']&&Object['hasOwnProperty']['call'](_0x56d80a,'version')&&_0x14b26a['uint32'](0x8)['uint32'](_0x56d80a['version']),null!=_0x56d80a['buffers']&&_0x56d80a['buffers']['length']){for(var _0x201bfc=0x0;_0x201bfc<_0x56d80a['buffers']['length'];++_0x201bfc)_0x14b26a['uint32'](0x12)['bytes'](_0x56d80a['buffers'][_0x201bfc]);}if(null!=_0x56d80a['types']&&_0x56d80a['types']['length']){for(_0x14b26a['uint32'](0x1a)['fork'](),_0x201bfc=0x0;_0x201bfc<_0x56d80a['types']['length'];++_0x201bfc)_0x14b26a['uint32'](_0x56d80a['types'][_0x201bfc]);_0x14b26a['ldelim']();}if(null!=_0x56d80a['metadata']&&_0x56d80a['metadata']['length']){for(_0x201bfc=0x0;_0x201bfc<_0x56d80a['metadata']['length'];++_0x201bfc)_0x17fc8f['OperationMetadataDescriptor']['encode'](_0x56d80a['metadata'][_0x201bfc],_0x14b26a['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x56d80a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x56d80a,'lastOperationId')&&_0x14b26a['uint32'](0x32)['string'](_0x56d80a['lastOperationId']),null!=_0x56d80a['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x56d80a,'lastOperationAcceptedAt')&&_0x14b26a['uint32'](0x3a)['string'](_0x56d80a['lastOperationAcceptedAt']),_0x14b26a;},_0x5d652e['encodeDelimited']=function(_0x379c45,_0x51948e){return this['encode'](_0x379c45,_0x51948e)['ldelim']();},_0x5d652e['decode']=function(_0x1e1113,_0x35a746,_0x566e4b){_0x1e1113 instanceof _0x546f05||(_0x1e1113=_0x546f05['create'](_0x1e1113));for(var _0x5e8982=void 0x0===_0x35a746?_0x1e1113['len']:_0x1e1113['pos']+_0x35a746,_0x4f0363=new _0x17fc8f['CollaborativeEditingResponse']();_0x1e1113['pos']<_0x5e8982;){var _0x5eb4fb=_0x1e1113['uint32']();if(_0x5eb4fb===_0x566e4b)break;switch(_0x5eb4fb>>>0x3){case 0x1:_0x4f0363['version']=_0x1e1113['uint32']();break;case 0x2:_0x4f0363['buffers']&&_0x4f0363['buffers']['length']||(_0x4f0363['buffers']=[]),_0x4f0363['buffers']['push'](_0x1e1113['bytes']());break;case 0x3:if(_0x4f0363['types']&&_0x4f0363['types']['length']||(_0x4f0363['types']=[]),0x2==(0x7&_0x5eb4fb)){for(var _0x527917=_0x1e1113['uint32']()+_0x1e1113['pos'];_0x1e1113['pos']<_0x527917;)_0x4f0363['types']['push'](_0x1e1113['uint32']());}else _0x4f0363['types']['push'](_0x1e1113['uint32']());break;case 0x5:_0x4f0363['metadata']&&_0x4f0363['metadata']['length']||(_0x4f0363['metadata']=[]),_0x4f0363['metadata']['push'](_0x17fc8f['OperationMetadataDescriptor']['decode'](_0x1e1113,_0x1e1113['uint32']()));break;case 0x6:_0x4f0363['lastOperationId']=_0x1e1113['string']();break;case 0x7:_0x4f0363['lastOperationAcceptedAt']=_0x1e1113['string']();break;default:_0x1e1113['skipType'](0x7&_0x5eb4fb);}}return _0x4f0363;},_0x5d652e['decodeDelimited']=function(_0x152f92){return _0x152f92 instanceof _0x546f05||(_0x152f92=new _0x546f05(_0x152f92)),this['decode'](_0x152f92,_0x152f92['uint32']());},_0x5d652e['verify']=function(_0xf044e1){if('object'!=typeof _0xf044e1||null===_0xf044e1)return'object\x20expected';if(null!=_0xf044e1['version']&&_0xf044e1['hasOwnProperty']('version')&&!_0x1967e8['isInteger'](_0xf044e1['version']))return'version:\x20integer\x20expected';if(null!=_0xf044e1['buffers']&&_0xf044e1['hasOwnProperty']('buffers')){if(!Array['isArray'](_0xf044e1['buffers']))return'buffers:\x20array\x20expected';for(var _0x1ad810=0x0;_0x1ad810<_0xf044e1['buffers']['length'];++_0x1ad810)if(!(_0xf044e1['buffers'][_0x1ad810]&&'number'==typeof _0xf044e1['buffers'][_0x1ad810]['length']||_0x1967e8['isString'](_0xf044e1['buffers'][_0x1ad810])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xf044e1['types']&&_0xf044e1['hasOwnProperty']('types')){if(!Array['isArray'](_0xf044e1['types']))return'types:\x20array\x20expected';for(_0x1ad810=0x0;_0x1ad810<_0xf044e1['types']['length'];++_0x1ad810)if(!_0x1967e8['isInteger'](_0xf044e1['types'][_0x1ad810]))return'types:\x20integer[]\x20expected';}if(null!=_0xf044e1['metadata']&&_0xf044e1['hasOwnProperty']('metadata')){if(!Array['isArray'](_0xf044e1['metadata']))return'metadata:\x20array\x20expected';for(_0x1ad810=0x0;_0x1ad810<_0xf044e1['metadata']['length'];++_0x1ad810){var _0xa7e55d=_0x17fc8f['OperationMetadataDescriptor']['verify'](_0xf044e1['metadata'][_0x1ad810]);if(_0xa7e55d)return'metadata.'+_0xa7e55d;}}return null!=_0xf044e1['lastOperationId']&&_0xf044e1['hasOwnProperty']('lastOperationId')&&!_0x1967e8['isString'](_0xf044e1['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0xf044e1['lastOperationAcceptedAt']&&_0xf044e1['hasOwnProperty']('lastOperationAcceptedAt')&&!_0x1967e8['isString'](_0xf044e1['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},_0x5d652e['fromObject']=function(_0x40853c){if(_0x40853c instanceof _0x17fc8f['CollaborativeEditingResponse'])return _0x40853c;var _0x25b9b7=new _0x17fc8f['CollaborativeEditingResponse']();if(null!=_0x40853c['version']&&(_0x25b9b7['version']=_0x40853c['version']>>>0x0),_0x40853c['buffers']){if(!Array['isArray'](_0x40853c['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x25b9b7['buffers']=[];for(var _0x326bac=0x0;_0x326bac<_0x40853c['buffers']['length'];++_0x326bac)'string'==typeof _0x40853c['buffers'][_0x326bac]?_0x1967e8['base64']['decode'](_0x40853c['buffers'][_0x326bac],_0x25b9b7['buffers'][_0x326bac]=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x40853c['buffers'][_0x326bac])),0x0):_0x40853c['buffers'][_0x326bac]['length']>=0x0&&(_0x25b9b7['buffers'][_0x326bac]=_0x40853c['buffers'][_0x326bac]);}if(_0x40853c['types']){if(!Array['isArray'](_0x40853c['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');for(_0x25b9b7['types']=[],_0x326bac=0x0;_0x326bac<_0x40853c['types']['length'];++_0x326bac)_0x25b9b7['types'][_0x326bac]=_0x40853c['types'][_0x326bac]>>>0x0;}if(_0x40853c['metadata']){if(!Array['isArray'](_0x40853c['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');for(_0x25b9b7['metadata']=[],_0x326bac=0x0;_0x326bac<_0x40853c['metadata']['length'];++_0x326bac){if('object'!=typeof _0x40853c['metadata'][_0x326bac])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x25b9b7['metadata'][_0x326bac]=_0x17fc8f['OperationMetadataDescriptor']['fromObject'](_0x40853c['metadata'][_0x326bac]);}}return null!=_0x40853c['lastOperationId']&&(_0x25b9b7['lastOperationId']=String(_0x40853c['lastOperationId'])),null!=_0x40853c['lastOperationAcceptedAt']&&(_0x25b9b7['lastOperationAcceptedAt']=String(_0x40853c['lastOperationAcceptedAt'])),_0x25b9b7;},_0x5d652e['toObject']=function(_0x544eb5,_0x2e620d){_0x2e620d||(_0x2e620d={});var _0x3d7944={};if((_0x2e620d['arrays']||_0x2e620d['defaults'])&&(_0x3d7944['buffers']=[],_0x3d7944['types']=[],_0x3d7944['metadata']=[]),_0x2e620d['defaults']&&(_0x3d7944['version']=0x0,_0x3d7944['lastOperationId']='',_0x3d7944['lastOperationAcceptedAt']=''),null!=_0x544eb5['version']&&_0x544eb5['hasOwnProperty']('version')&&(_0x3d7944['version']=_0x544eb5['version']),_0x544eb5['buffers']&&_0x544eb5['buffers']['length']){_0x3d7944['buffers']=[];for(var _0x79071f=0x0;_0x79071f<_0x544eb5['buffers']['length'];++_0x79071f)_0x3d7944['buffers'][_0x79071f]=_0x2e620d['bytes']===String?_0x1967e8['base64']['encode'](_0x544eb5['buffers'][_0x79071f],0x0,_0x544eb5['buffers'][_0x79071f]['length']):_0x2e620d['bytes']===Array?Array['prototype']['slice']['call'](_0x544eb5['buffers'][_0x79071f]):_0x544eb5['buffers'][_0x79071f];}if(_0x544eb5['types']&&_0x544eb5['types']['length']){for(_0x3d7944['types']=[],_0x79071f=0x0;_0x79071f<_0x544eb5['types']['length'];++_0x79071f)_0x3d7944['types'][_0x79071f]=_0x544eb5['types'][_0x79071f];}if(_0x544eb5['metadata']&&_0x544eb5['metadata']['length']){for(_0x3d7944['metadata']=[],_0x79071f=0x0;_0x79071f<_0x544eb5['metadata']['length'];++_0x79071f)_0x3d7944['metadata'][_0x79071f]=_0x17fc8f['OperationMetadataDescriptor']['toObject'](_0x544eb5['metadata'][_0x79071f],_0x2e620d);}return null!=_0x544eb5['lastOperationId']&&_0x544eb5['hasOwnProperty']('lastOperationId')&&(_0x3d7944['lastOperationId']=_0x544eb5['lastOperationId']),null!=_0x544eb5['lastOperationAcceptedAt']&&_0x544eb5['hasOwnProperty']('lastOperationAcceptedAt')&&(_0x3d7944['lastOperationAcceptedAt']=_0x544eb5['lastOperationAcceptedAt']),_0x3d7944;},_0x5d652e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5d652e['getTypeUrl']=function(_0x30f87d){return void 0x0===_0x30f87d&&(_0x30f87d='type.googleapis.com'),_0x30f87d+'/CollaborativeEditingResponse';},_0x5d652e;}()),_0x17fc8f['CollaborativeEditingConnectResponse']=(function(){function _0x757b7a(_0xd935f){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0xd935f){for(var _0x1765c5=Object['keys'](_0xd935f),_0x594fc8=0x0;_0x594fc8<_0x1765c5['length'];++_0x594fc8)null!=_0xd935f[_0x1765c5[_0x594fc8]]&&(this[_0x1765c5[_0x594fc8]]=_0xd935f[_0x1765c5[_0x594fc8]]);}}return _0x757b7a['prototype']['channel']='',_0x757b7a['prototype']['offset']=0x0,_0x757b7a['prototype']['version']=0x0,_0x757b7a['prototype']['buffers']=_0x1967e8['emptyArray'],_0x757b7a['prototype']['types']=_0x1967e8['emptyArray'],_0x757b7a['prototype']['metadata']=_0x1967e8['emptyArray'],_0x757b7a['prototype']['initData']='',_0x757b7a['prototype']['isInitialized']=!0x1,_0x757b7a['prototype']['sessionId']='',_0x757b7a['prototype']['lastOperationId']='',_0x757b7a['prototype']['sessionCreatedAt']='',_0x757b7a['create']=function(_0x5d1b2c){return new _0x757b7a(_0x5d1b2c);},_0x757b7a['encode']=function(_0x31aced,_0xa5c008){if(_0xa5c008||(_0xa5c008=_0x5e31a7['create']()),null!=_0x31aced['channel']&&Object['hasOwnProperty']['call'](_0x31aced,'channel')&&_0xa5c008['uint32'](0xa)['string'](_0x31aced['channel']),null!=_0x31aced['offset']&&Object['hasOwnProperty']['call'](_0x31aced,'offset')&&_0xa5c008['uint32'](0x10)['uint32'](_0x31aced['offset']),null!=_0x31aced['version']&&Object['hasOwnProperty']['call'](_0x31aced,'version')&&_0xa5c008['uint32'](0x18)['uint32'](_0x31aced['version']),null!=_0x31aced['buffers']&&_0x31aced['buffers']['length']){for(var _0x231e98=0x0;_0x231e98<_0x31aced['buffers']['length'];++_0x231e98)_0xa5c008['uint32'](0x22)['bytes'](_0x31aced['buffers'][_0x231e98]);}if(null!=_0x31aced['types']&&_0x31aced['types']['length']){for(_0xa5c008['uint32'](0x2a)['fork'](),_0x231e98=0x0;_0x231e98<_0x31aced['types']['length'];++_0x231e98)_0xa5c008['uint32'](_0x31aced['types'][_0x231e98]);_0xa5c008['ldelim']();}if(null!=_0x31aced['metadata']&&_0x31aced['metadata']['length']){for(_0x231e98=0x0;_0x231e98<_0x31aced['metadata']['length'];++_0x231e98)_0x17fc8f['OperationMetadataDescriptor']['encode'](_0x31aced['metadata'][_0x231e98],_0xa5c008['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x31aced['initData']&&Object['hasOwnProperty']['call'](_0x31aced,'initData')&&_0xa5c008['uint32'](0x42)['string'](_0x31aced['initData']),null!=_0x31aced['isInitialized']&&Object['hasOwnProperty']['call'](_0x31aced,'isInitialized')&&_0xa5c008['uint32'](0x48)['bool'](_0x31aced['isInitialized']),null!=_0x31aced['sessionId']&&Object['hasOwnProperty']['call'](_0x31aced,'sessionId')&&_0xa5c008['uint32'](0x52)['string'](_0x31aced['sessionId']),null!=_0x31aced['lastOperationId']&&Object['hasOwnProperty']['call'](_0x31aced,'lastOperationId')&&_0xa5c008['uint32'](0x5a)['string'](_0x31aced['lastOperationId']),null!=_0x31aced['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x31aced,'sessionCreatedAt')&&_0xa5c008['uint32'](0x62)['string'](_0x31aced['sessionCreatedAt']),_0xa5c008;},_0x757b7a['encodeDelimited']=function(_0x1d896a,_0x70a954){return this['encode'](_0x1d896a,_0x70a954)['ldelim']();},_0x757b7a['decode']=function(_0xd5370,_0x505c55,_0x181225){_0xd5370 instanceof _0x546f05||(_0xd5370=_0x546f05['create'](_0xd5370));for(var _0x18897d=void 0x0===_0x505c55?_0xd5370['len']:_0xd5370['pos']+_0x505c55,_0x589510=new _0x17fc8f['CollaborativeEditingConnectResponse']();_0xd5370['pos']<_0x18897d;){var _0x658bb7=_0xd5370['uint32']();if(_0x658bb7===_0x181225)break;switch(_0x658bb7>>>0x3){case 0x1:_0x589510['channel']=_0xd5370['string']();break;case 0x2:_0x589510['offset']=_0xd5370['uint32']();break;case 0x3:_0x589510['version']=_0xd5370['uint32']();break;case 0x4:_0x589510['buffers']&&_0x589510['buffers']['length']||(_0x589510['buffers']=[]),_0x589510['buffers']['push'](_0xd5370['bytes']());break;case 0x5:if(_0x589510['types']&&_0x589510['types']['length']||(_0x589510['types']=[]),0x2==(0x7&_0x658bb7)){for(var _0x11a1c3=_0xd5370['uint32']()+_0xd5370['pos'];_0xd5370['pos']<_0x11a1c3;)_0x589510['types']['push'](_0xd5370['uint32']());}else _0x589510['types']['push'](_0xd5370['uint32']());break;case 0x7:_0x589510['metadata']&&_0x589510['metadata']['length']||(_0x589510['metadata']=[]),_0x589510['metadata']['push'](_0x17fc8f['OperationMetadataDescriptor']['decode'](_0xd5370,_0xd5370['uint32']()));break;case 0x8:_0x589510['initData']=_0xd5370['string']();break;case 0x9:_0x589510['isInitialized']=_0xd5370['bool']();break;case 0xa:_0x589510['sessionId']=_0xd5370['string']();break;case 0xb:_0x589510['lastOperationId']=_0xd5370['string']();break;case 0xc:_0x589510['sessionCreatedAt']=_0xd5370['string']();break;default:_0xd5370['skipType'](0x7&_0x658bb7);}}return _0x589510;},_0x757b7a['decodeDelimited']=function(_0x5c9cd9){return _0x5c9cd9 instanceof _0x546f05||(_0x5c9cd9=new _0x546f05(_0x5c9cd9)),this['decode'](_0x5c9cd9,_0x5c9cd9['uint32']());},_0x757b7a['verify']=function(_0x5e0d98){if('object'!=typeof _0x5e0d98||null===_0x5e0d98)return'object\x20expected';if(null!=_0x5e0d98['channel']&&_0x5e0d98['hasOwnProperty']('channel')&&!_0x1967e8['isString'](_0x5e0d98['channel']))return'channel:\x20string\x20expected';if(null!=_0x5e0d98['offset']&&_0x5e0d98['hasOwnProperty']('offset')&&!_0x1967e8['isInteger'](_0x5e0d98['offset']))return'offset:\x20integer\x20expected';if(null!=_0x5e0d98['version']&&_0x5e0d98['hasOwnProperty']('version')&&!_0x1967e8['isInteger'](_0x5e0d98['version']))return'version:\x20integer\x20expected';if(null!=_0x5e0d98['buffers']&&_0x5e0d98['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x5e0d98['buffers']))return'buffers:\x20array\x20expected';for(var _0x27bcaf=0x0;_0x27bcaf<_0x5e0d98['buffers']['length'];++_0x27bcaf)if(!(_0x5e0d98['buffers'][_0x27bcaf]&&'number'==typeof _0x5e0d98['buffers'][_0x27bcaf]['length']||_0x1967e8['isString'](_0x5e0d98['buffers'][_0x27bcaf])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x5e0d98['types']&&_0x5e0d98['hasOwnProperty']('types')){if(!Array['isArray'](_0x5e0d98['types']))return'types:\x20array\x20expected';for(_0x27bcaf=0x0;_0x27bcaf<_0x5e0d98['types']['length'];++_0x27bcaf)if(!_0x1967e8['isInteger'](_0x5e0d98['types'][_0x27bcaf]))return'types:\x20integer[]\x20expected';}if(null!=_0x5e0d98['metadata']&&_0x5e0d98['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x5e0d98['metadata']))return'metadata:\x20array\x20expected';for(_0x27bcaf=0x0;_0x27bcaf<_0x5e0d98['metadata']['length'];++_0x27bcaf){var _0x2b2871=_0x17fc8f['OperationMetadataDescriptor']['verify'](_0x5e0d98['metadata'][_0x27bcaf]);if(_0x2b2871)return'metadata.'+_0x2b2871;}}return null!=_0x5e0d98['initData']&&_0x5e0d98['hasOwnProperty']('initData')&&!_0x1967e8['isString'](_0x5e0d98['initData'])?'initData:\x20string\x20expected':null!=_0x5e0d98['isInitialized']&&_0x5e0d98['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x5e0d98['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x5e0d98['sessionId']&&_0x5e0d98['hasOwnProperty']('sessionId')&&!_0x1967e8['isString'](_0x5e0d98['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x5e0d98['lastOperationId']&&_0x5e0d98['hasOwnProperty']('lastOperationId')&&!_0x1967e8['isString'](_0x5e0d98['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x5e0d98['sessionCreatedAt']&&_0x5e0d98['hasOwnProperty']('sessionCreatedAt')&&!_0x1967e8['isString'](_0x5e0d98['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},_0x757b7a['fromObject']=function(_0x591280){if(_0x591280 instanceof _0x17fc8f['CollaborativeEditingConnectResponse'])return _0x591280;var _0x2609e9=new _0x17fc8f['CollaborativeEditingConnectResponse']();if(null!=_0x591280['channel']&&(_0x2609e9['channel']=String(_0x591280['channel'])),null!=_0x591280['offset']&&(_0x2609e9['offset']=_0x591280['offset']>>>0x0),null!=_0x591280['version']&&(_0x2609e9['version']=_0x591280['version']>>>0x0),_0x591280['buffers']){if(!Array['isArray'](_0x591280['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x2609e9['buffers']=[];for(var _0x3c0c86=0x0;_0x3c0c86<_0x591280['buffers']['length'];++_0x3c0c86)'string'==typeof _0x591280['buffers'][_0x3c0c86]?_0x1967e8['base64']['decode'](_0x591280['buffers'][_0x3c0c86],_0x2609e9['buffers'][_0x3c0c86]=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x591280['buffers'][_0x3c0c86])),0x0):_0x591280['buffers'][_0x3c0c86]['length']>=0x0&&(_0x2609e9['buffers'][_0x3c0c86]=_0x591280['buffers'][_0x3c0c86]);}if(_0x591280['types']){if(!Array['isArray'](_0x591280['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');for(_0x2609e9['types']=[],_0x3c0c86=0x0;_0x3c0c86<_0x591280['types']['length'];++_0x3c0c86)_0x2609e9['types'][_0x3c0c86]=_0x591280['types'][_0x3c0c86]>>>0x0;}if(_0x591280['metadata']){if(!Array['isArray'](_0x591280['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');for(_0x2609e9['metadata']=[],_0x3c0c86=0x0;_0x3c0c86<_0x591280['metadata']['length'];++_0x3c0c86){if('object'!=typeof _0x591280['metadata'][_0x3c0c86])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x2609e9['metadata'][_0x3c0c86]=_0x17fc8f['OperationMetadataDescriptor']['fromObject'](_0x591280['metadata'][_0x3c0c86]);}}return null!=_0x591280['initData']&&(_0x2609e9['initData']=String(_0x591280['initData'])),null!=_0x591280['isInitialized']&&(_0x2609e9['isInitialized']=Boolean(_0x591280['isInitialized'])),null!=_0x591280['sessionId']&&(_0x2609e9['sessionId']=String(_0x591280['sessionId'])),null!=_0x591280['lastOperationId']&&(_0x2609e9['lastOperationId']=String(_0x591280['lastOperationId'])),null!=_0x591280['sessionCreatedAt']&&(_0x2609e9['sessionCreatedAt']=String(_0x591280['sessionCreatedAt'])),_0x2609e9;},_0x757b7a['toObject']=function(_0x4cbd44,_0x22ef95){_0x22ef95||(_0x22ef95={});var _0x30b1e7={};if((_0x22ef95['arrays']||_0x22ef95['defaults'])&&(_0x30b1e7['buffers']=[],_0x30b1e7['types']=[],_0x30b1e7['metadata']=[]),_0x22ef95['defaults']&&(_0x30b1e7['channel']='',_0x30b1e7['offset']=0x0,_0x30b1e7['version']=0x0,_0x30b1e7['initData']='',_0x30b1e7['isInitialized']=!0x1,_0x30b1e7['sessionId']='',_0x30b1e7['lastOperationId']='',_0x30b1e7['sessionCreatedAt']=''),null!=_0x4cbd44['channel']&&_0x4cbd44['hasOwnProperty']('channel')&&(_0x30b1e7['channel']=_0x4cbd44['channel']),null!=_0x4cbd44['offset']&&_0x4cbd44['hasOwnProperty']('offset')&&(_0x30b1e7['offset']=_0x4cbd44['offset']),null!=_0x4cbd44['version']&&_0x4cbd44['hasOwnProperty']('version')&&(_0x30b1e7['version']=_0x4cbd44['version']),_0x4cbd44['buffers']&&_0x4cbd44['buffers']['length']){_0x30b1e7['buffers']=[];for(var _0x168e5=0x0;_0x168e5<_0x4cbd44['buffers']['length'];++_0x168e5)_0x30b1e7['buffers'][_0x168e5]=_0x22ef95['bytes']===String?_0x1967e8['base64']['encode'](_0x4cbd44['buffers'][_0x168e5],0x0,_0x4cbd44['buffers'][_0x168e5]['length']):_0x22ef95['bytes']===Array?Array['prototype']['slice']['call'](_0x4cbd44['buffers'][_0x168e5]):_0x4cbd44['buffers'][_0x168e5];}if(_0x4cbd44['types']&&_0x4cbd44['types']['length']){for(_0x30b1e7['types']=[],_0x168e5=0x0;_0x168e5<_0x4cbd44['types']['length'];++_0x168e5)_0x30b1e7['types'][_0x168e5]=_0x4cbd44['types'][_0x168e5];}if(_0x4cbd44['metadata']&&_0x4cbd44['metadata']['length']){for(_0x30b1e7['metadata']=[],_0x168e5=0x0;_0x168e5<_0x4cbd44['metadata']['length'];++_0x168e5)_0x30b1e7['metadata'][_0x168e5]=_0x17fc8f['OperationMetadataDescriptor']['toObject'](_0x4cbd44['metadata'][_0x168e5],_0x22ef95);}return null!=_0x4cbd44['initData']&&_0x4cbd44['hasOwnProperty']('initData')&&(_0x30b1e7['initData']=_0x4cbd44['initData']),null!=_0x4cbd44['isInitialized']&&_0x4cbd44['hasOwnProperty']('isInitialized')&&(_0x30b1e7['isInitialized']=_0x4cbd44['isInitialized']),null!=_0x4cbd44['sessionId']&&_0x4cbd44['hasOwnProperty']('sessionId')&&(_0x30b1e7['sessionId']=_0x4cbd44['sessionId']),null!=_0x4cbd44['lastOperationId']&&_0x4cbd44['hasOwnProperty']('lastOperationId')&&(_0x30b1e7['lastOperationId']=_0x4cbd44['lastOperationId']),null!=_0x4cbd44['sessionCreatedAt']&&_0x4cbd44['hasOwnProperty']('sessionCreatedAt')&&(_0x30b1e7['sessionCreatedAt']=_0x4cbd44['sessionCreatedAt']),_0x30b1e7;},_0x757b7a['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x757b7a['getTypeUrl']=function(_0x42ac4a){return void 0x0===_0x42ac4a&&(_0x42ac4a='type.googleapis.com'),_0x42ac4a+'/CollaborativeEditingConnectResponse';},_0x757b7a;}()),_0x17fc8f['GetDocumentDetailsMessage']=(function(){function _0x53bbae(_0x4acadd){if(_0x4acadd){for(var _0x296b80=Object['keys'](_0x4acadd),_0x170543=0x0;_0x170543<_0x296b80['length'];++_0x170543)null!=_0x4acadd[_0x296b80[_0x170543]]&&(this[_0x296b80[_0x170543]]=_0x4acadd[_0x296b80[_0x170543]]);}}return _0x53bbae['prototype']['documentId']='',_0x53bbae['prototype']['environmentId']='',_0x53bbae['create']=function(_0x512434){return new _0x53bbae(_0x512434);},_0x53bbae['encode']=function(_0x3eca2b,_0x704b2b){return _0x704b2b||(_0x704b2b=_0x5e31a7['create']()),null!=_0x3eca2b['documentId']&&Object['hasOwnProperty']['call'](_0x3eca2b,'documentId')&&_0x704b2b['uint32'](0xa)['string'](_0x3eca2b['documentId']),null!=_0x3eca2b['environmentId']&&Object['hasOwnProperty']['call'](_0x3eca2b,'environmentId')&&_0x704b2b['uint32'](0x12)['string'](_0x3eca2b['environmentId']),_0x704b2b;},_0x53bbae['encodeDelimited']=function(_0x5e706d,_0x4321c5){return this['encode'](_0x5e706d,_0x4321c5)['ldelim']();},_0x53bbae['decode']=function(_0x24bdc6,_0x5e024b,_0x498947){_0x24bdc6 instanceof _0x546f05||(_0x24bdc6=_0x546f05['create'](_0x24bdc6));for(var _0x51ff22=void 0x0===_0x5e024b?_0x24bdc6['len']:_0x24bdc6['pos']+_0x5e024b,_0xbcd40c=new _0x17fc8f['GetDocumentDetailsMessage']();_0x24bdc6['pos']<_0x51ff22;){var _0x4ae631=_0x24bdc6['uint32']();if(_0x4ae631===_0x498947)break;switch(_0x4ae631>>>0x3){case 0x1:_0xbcd40c['documentId']=_0x24bdc6['string']();break;case 0x2:_0xbcd40c['environmentId']=_0x24bdc6['string']();break;default:_0x24bdc6['skipType'](0x7&_0x4ae631);}}return _0xbcd40c;},_0x53bbae['decodeDelimited']=function(_0x4d5602){return _0x4d5602 instanceof _0x546f05||(_0x4d5602=new _0x546f05(_0x4d5602)),this['decode'](_0x4d5602,_0x4d5602['uint32']());},_0x53bbae['verify']=function(_0x3213aa){return'object'!=typeof _0x3213aa||null===_0x3213aa?'object\x20expected':null!=_0x3213aa['documentId']&&_0x3213aa['hasOwnProperty']('documentId')&&!_0x1967e8['isString'](_0x3213aa['documentId'])?'documentId:\x20string\x20expected':null!=_0x3213aa['environmentId']&&_0x3213aa['hasOwnProperty']('environmentId')&&!_0x1967e8['isString'](_0x3213aa['environmentId'])?'environmentId:\x20string\x20expected':null;},_0x53bbae['fromObject']=function(_0x2b822e){if(_0x2b822e instanceof _0x17fc8f['GetDocumentDetailsMessage'])return _0x2b822e;var _0x15bc58=new _0x17fc8f['GetDocumentDetailsMessage']();return null!=_0x2b822e['documentId']&&(_0x15bc58['documentId']=String(_0x2b822e['documentId'])),null!=_0x2b822e['environmentId']&&(_0x15bc58['environmentId']=String(_0x2b822e['environmentId'])),_0x15bc58;},_0x53bbae['toObject']=function(_0x3ed3ce,_0x1976df){_0x1976df||(_0x1976df={});var _0x5c72d3={};return _0x1976df['defaults']&&(_0x5c72d3['documentId']='',_0x5c72d3['environmentId']=''),null!=_0x3ed3ce['documentId']&&_0x3ed3ce['hasOwnProperty']('documentId')&&(_0x5c72d3['documentId']=_0x3ed3ce['documentId']),null!=_0x3ed3ce['environmentId']&&_0x3ed3ce['hasOwnProperty']('environmentId')&&(_0x5c72d3['environmentId']=_0x3ed3ce['environmentId']),_0x5c72d3;},_0x53bbae['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x53bbae['getTypeUrl']=function(_0x4f71a1){return void 0x0===_0x4f71a1&&(_0x4f71a1='type.googleapis.com'),_0x4f71a1+'/GetDocumentDetailsMessage';},_0x53bbae;}()),_0x17fc8f['CollaborativeEditingUpdateMessage']=(function(){function _0x3a8f9e(_0x3868f5){if(this['buffers']=[],this['types']=[],this['metadata']=[],_0x3868f5){for(var _0xfb0526=Object['keys'](_0x3868f5),_0x8d7e8=0x0;_0x8d7e8<_0xfb0526['length'];++_0x8d7e8)null!=_0x3868f5[_0xfb0526[_0x8d7e8]]&&(this[_0xfb0526[_0x8d7e8]]=_0x3868f5[_0xfb0526[_0x8d7e8]]);}}return _0x3a8f9e['prototype']['id']='',_0x3a8f9e['prototype']['baseVersion']=0x0,_0x3a8f9e['prototype']['buffers']=_0x1967e8['emptyArray'],_0x3a8f9e['prototype']['types']=_0x1967e8['emptyArray'],_0x3a8f9e['prototype']['metadata']=_0x1967e8['emptyArray'],_0x3a8f9e['prototype']['lastOperationId']='',_0x3a8f9e['create']=function(_0x553efd){return new _0x3a8f9e(_0x553efd);},_0x3a8f9e['encode']=function(_0x3a038a,_0x4f5764){if(_0x4f5764||(_0x4f5764=_0x5e31a7['create']()),null!=_0x3a038a['id']&&Object['hasOwnProperty']['call'](_0x3a038a,'id')&&_0x4f5764['uint32'](0xa)['string'](_0x3a038a['id']),null!=_0x3a038a['baseVersion']&&Object['hasOwnProperty']['call'](_0x3a038a,'baseVersion')&&_0x4f5764['uint32'](0x10)['uint32'](_0x3a038a['baseVersion']),null!=_0x3a038a['buffers']&&_0x3a038a['buffers']['length']){for(var _0x343f68=0x0;_0x343f68<_0x3a038a['buffers']['length'];++_0x343f68)_0x4f5764['uint32'](0x1a)['bytes'](_0x3a038a['buffers'][_0x343f68]);}if(null!=_0x3a038a['types']&&_0x3a038a['types']['length']){for(_0x4f5764['uint32'](0x22)['fork'](),_0x343f68=0x0;_0x343f68<_0x3a038a['types']['length'];++_0x343f68)_0x4f5764['uint32'](_0x3a038a['types'][_0x343f68]);_0x4f5764['ldelim']();}if(null!=_0x3a038a['metadata']&&_0x3a038a['metadata']['length']){for(_0x343f68=0x0;_0x343f68<_0x3a038a['metadata']['length'];++_0x343f68)_0x17fc8f['OperationMetadataDescriptor']['encode'](_0x3a038a['metadata'][_0x343f68],_0x4f5764['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x3a038a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3a038a,'lastOperationId')&&_0x4f5764['uint32'](0x3a)['string'](_0x3a038a['lastOperationId']),_0x4f5764;},_0x3a8f9e['encodeDelimited']=function(_0x204c10,_0x10ecde){return this['encode'](_0x204c10,_0x10ecde)['ldelim']();},_0x3a8f9e['decode']=function(_0xbf6697,_0x18a9d8,_0x1f58b0){_0xbf6697 instanceof _0x546f05||(_0xbf6697=_0x546f05['create'](_0xbf6697));for(var _0x4f2526=void 0x0===_0x18a9d8?_0xbf6697['len']:_0xbf6697['pos']+_0x18a9d8,_0x1f2689=new _0x17fc8f['CollaborativeEditingUpdateMessage']();_0xbf6697['pos']<_0x4f2526;){var _0xb472ca=_0xbf6697['uint32']();if(_0xb472ca===_0x1f58b0)break;switch(_0xb472ca>>>0x3){case 0x1:_0x1f2689['id']=_0xbf6697['string']();break;case 0x2:_0x1f2689['baseVersion']=_0xbf6697['uint32']();break;case 0x3:_0x1f2689['buffers']&&_0x1f2689['buffers']['length']||(_0x1f2689['buffers']=[]),_0x1f2689['buffers']['push'](_0xbf6697['bytes']());break;case 0x4:if(_0x1f2689['types']&&_0x1f2689['types']['length']||(_0x1f2689['types']=[]),0x2==(0x7&_0xb472ca)){for(var _0x128151=_0xbf6697['uint32']()+_0xbf6697['pos'];_0xbf6697['pos']<_0x128151;)_0x1f2689['types']['push'](_0xbf6697['uint32']());}else _0x1f2689['types']['push'](_0xbf6697['uint32']());break;case 0x6:_0x1f2689['metadata']&&_0x1f2689['metadata']['length']||(_0x1f2689['metadata']=[]),_0x1f2689['metadata']['push'](_0x17fc8f['OperationMetadataDescriptor']['decode'](_0xbf6697,_0xbf6697['uint32']()));break;case 0x7:_0x1f2689['lastOperationId']=_0xbf6697['string']();break;default:_0xbf6697['skipType'](0x7&_0xb472ca);}}return _0x1f2689;},_0x3a8f9e['decodeDelimited']=function(_0x4c5160){return _0x4c5160 instanceof _0x546f05||(_0x4c5160=new _0x546f05(_0x4c5160)),this['decode'](_0x4c5160,_0x4c5160['uint32']());},_0x3a8f9e['verify']=function(_0x110d67){if('object'!=typeof _0x110d67||null===_0x110d67)return'object\x20expected';if(null!=_0x110d67['id']&&_0x110d67['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x110d67['id']))return'id:\x20string\x20expected';if(null!=_0x110d67['baseVersion']&&_0x110d67['hasOwnProperty']('baseVersion')&&!_0x1967e8['isInteger'](_0x110d67['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x110d67['buffers']&&_0x110d67['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x110d67['buffers']))return'buffers:\x20array\x20expected';for(var _0x383bfb=0x0;_0x383bfb<_0x110d67['buffers']['length'];++_0x383bfb)if(!(_0x110d67['buffers'][_0x383bfb]&&'number'==typeof _0x110d67['buffers'][_0x383bfb]['length']||_0x1967e8['isString'](_0x110d67['buffers'][_0x383bfb])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x110d67['types']&&_0x110d67['hasOwnProperty']('types')){if(!Array['isArray'](_0x110d67['types']))return'types:\x20array\x20expected';for(_0x383bfb=0x0;_0x383bfb<_0x110d67['types']['length'];++_0x383bfb)if(!_0x1967e8['isInteger'](_0x110d67['types'][_0x383bfb]))return'types:\x20integer[]\x20expected';}if(null!=_0x110d67['metadata']&&_0x110d67['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x110d67['metadata']))return'metadata:\x20array\x20expected';for(_0x383bfb=0x0;_0x383bfb<_0x110d67['metadata']['length'];++_0x383bfb){var _0x5a4d5d=_0x17fc8f['OperationMetadataDescriptor']['verify'](_0x110d67['metadata'][_0x383bfb]);if(_0x5a4d5d)return'metadata.'+_0x5a4d5d;}}return null!=_0x110d67['lastOperationId']&&_0x110d67['hasOwnProperty']('lastOperationId')&&!_0x1967e8['isString'](_0x110d67['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x3a8f9e['fromObject']=function(_0x322e83){if(_0x322e83 instanceof _0x17fc8f['CollaborativeEditingUpdateMessage'])return _0x322e83;var _0x260dbb=new _0x17fc8f['CollaborativeEditingUpdateMessage']();if(null!=_0x322e83['id']&&(_0x260dbb['id']=String(_0x322e83['id'])),null!=_0x322e83['baseVersion']&&(_0x260dbb['baseVersion']=_0x322e83['baseVersion']>>>0x0),_0x322e83['buffers']){if(!Array['isArray'](_0x322e83['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x260dbb['buffers']=[];for(var _0x105c69=0x0;_0x105c69<_0x322e83['buffers']['length'];++_0x105c69)'string'==typeof _0x322e83['buffers'][_0x105c69]?_0x1967e8['base64']['decode'](_0x322e83['buffers'][_0x105c69],_0x260dbb['buffers'][_0x105c69]=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0x322e83['buffers'][_0x105c69])),0x0):_0x322e83['buffers'][_0x105c69]['length']>=0x0&&(_0x260dbb['buffers'][_0x105c69]=_0x322e83['buffers'][_0x105c69]);}if(_0x322e83['types']){if(!Array['isArray'](_0x322e83['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');for(_0x260dbb['types']=[],_0x105c69=0x0;_0x105c69<_0x322e83['types']['length'];++_0x105c69)_0x260dbb['types'][_0x105c69]=_0x322e83['types'][_0x105c69]>>>0x0;}if(_0x322e83['metadata']){if(!Array['isArray'](_0x322e83['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');for(_0x260dbb['metadata']=[],_0x105c69=0x0;_0x105c69<_0x322e83['metadata']['length'];++_0x105c69){if('object'!=typeof _0x322e83['metadata'][_0x105c69])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x260dbb['metadata'][_0x105c69]=_0x17fc8f['OperationMetadataDescriptor']['fromObject'](_0x322e83['metadata'][_0x105c69]);}}return null!=_0x322e83['lastOperationId']&&(_0x260dbb['lastOperationId']=String(_0x322e83['lastOperationId'])),_0x260dbb;},_0x3a8f9e['toObject']=function(_0x532327,_0x477b36){_0x477b36||(_0x477b36={});var _0x34b01d={};if((_0x477b36['arrays']||_0x477b36['defaults'])&&(_0x34b01d['buffers']=[],_0x34b01d['types']=[],_0x34b01d['metadata']=[]),_0x477b36['defaults']&&(_0x34b01d['id']='',_0x34b01d['baseVersion']=0x0,_0x34b01d['lastOperationId']=''),null!=_0x532327['id']&&_0x532327['hasOwnProperty']('id')&&(_0x34b01d['id']=_0x532327['id']),null!=_0x532327['baseVersion']&&_0x532327['hasOwnProperty']('baseVersion')&&(_0x34b01d['baseVersion']=_0x532327['baseVersion']),_0x532327['buffers']&&_0x532327['buffers']['length']){_0x34b01d['buffers']=[];for(var _0x18051a=0x0;_0x18051a<_0x532327['buffers']['length'];++_0x18051a)_0x34b01d['buffers'][_0x18051a]=_0x477b36['bytes']===String?_0x1967e8['base64']['encode'](_0x532327['buffers'][_0x18051a],0x0,_0x532327['buffers'][_0x18051a]['length']):_0x477b36['bytes']===Array?Array['prototype']['slice']['call'](_0x532327['buffers'][_0x18051a]):_0x532327['buffers'][_0x18051a];}if(_0x532327['types']&&_0x532327['types']['length']){for(_0x34b01d['types']=[],_0x18051a=0x0;_0x18051a<_0x532327['types']['length'];++_0x18051a)_0x34b01d['types'][_0x18051a]=_0x532327['types'][_0x18051a];}if(_0x532327['metadata']&&_0x532327['metadata']['length']){for(_0x34b01d['metadata']=[],_0x18051a=0x0;_0x18051a<_0x532327['metadata']['length'];++_0x18051a)_0x34b01d['metadata'][_0x18051a]=_0x17fc8f['OperationMetadataDescriptor']['toObject'](_0x532327['metadata'][_0x18051a],_0x477b36);}return null!=_0x532327['lastOperationId']&&_0x532327['hasOwnProperty']('lastOperationId')&&(_0x34b01d['lastOperationId']=_0x532327['lastOperationId']),_0x34b01d;},_0x3a8f9e['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3a8f9e['getTypeUrl']=function(_0x418563){return void 0x0===_0x418563&&(_0x418563='type.googleapis.com'),_0x418563+'/CollaborativeEditingUpdateMessage';},_0x3a8f9e;}()),_0x17fc8f['CollaborativeEditingReconnectMessage']=(function(){function _0x5ad06b(_0x19b8a9){if(_0x19b8a9){for(var _0x439b2b=Object['keys'](_0x19b8a9),_0x48b9f3=0x0;_0x48b9f3<_0x439b2b['length'];++_0x48b9f3)null!=_0x19b8a9[_0x439b2b[_0x48b9f3]]&&(this[_0x439b2b[_0x48b9f3]]=_0x19b8a9[_0x439b2b[_0x48b9f3]]);}}return _0x5ad06b['prototype']['id']='',_0x5ad06b['prototype']['bundleVersion']='',_0x5ad06b['prototype']['lastKnowVersion']=0x0,_0x5ad06b['create']=function(_0x61b9d1){return new _0x5ad06b(_0x61b9d1);},_0x5ad06b['encode']=function(_0x302bc1,_0x343098){return _0x343098||(_0x343098=_0x5e31a7['create']()),null!=_0x302bc1['id']&&Object['hasOwnProperty']['call'](_0x302bc1,'id')&&_0x343098['uint32'](0xa)['string'](_0x302bc1['id']),null!=_0x302bc1['bundleVersion']&&Object['hasOwnProperty']['call'](_0x302bc1,'bundleVersion')&&_0x343098['uint32'](0x12)['string'](_0x302bc1['bundleVersion']),null!=_0x302bc1['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x302bc1,'lastKnowVersion')&&_0x343098['uint32'](0x18)['uint32'](_0x302bc1['lastKnowVersion']),_0x343098;},_0x5ad06b['encodeDelimited']=function(_0x637a15,_0xae5675){return this['encode'](_0x637a15,_0xae5675)['ldelim']();},_0x5ad06b['decode']=function(_0x1f005a,_0x1162c3,_0x3d4a54){_0x1f005a instanceof _0x546f05||(_0x1f005a=_0x546f05['create'](_0x1f005a));for(var _0x28992a=void 0x0===_0x1162c3?_0x1f005a['len']:_0x1f005a['pos']+_0x1162c3,_0x480cdc=new _0x17fc8f['CollaborativeEditingReconnectMessage']();_0x1f005a['pos']<_0x28992a;){var _0x1721ad=_0x1f005a['uint32']();if(_0x1721ad===_0x3d4a54)break;switch(_0x1721ad>>>0x3){case 0x1:_0x480cdc['id']=_0x1f005a['string']();break;case 0x2:_0x480cdc['bundleVersion']=_0x1f005a['string']();break;case 0x3:_0x480cdc['lastKnowVersion']=_0x1f005a['uint32']();break;default:_0x1f005a['skipType'](0x7&_0x1721ad);}}return _0x480cdc;},_0x5ad06b['decodeDelimited']=function(_0x41ad83){return _0x41ad83 instanceof _0x546f05||(_0x41ad83=new _0x546f05(_0x41ad83)),this['decode'](_0x41ad83,_0x41ad83['uint32']());},_0x5ad06b['verify']=function(_0xd705f0){return'object'!=typeof _0xd705f0||null===_0xd705f0?'object\x20expected':null!=_0xd705f0['id']&&_0xd705f0['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0xd705f0['id'])?'id:\x20string\x20expected':null!=_0xd705f0['bundleVersion']&&_0xd705f0['hasOwnProperty']('bundleVersion')&&!_0x1967e8['isString'](_0xd705f0['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0xd705f0['lastKnowVersion']&&_0xd705f0['hasOwnProperty']('lastKnowVersion')&&!_0x1967e8['isInteger'](_0xd705f0['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},_0x5ad06b['fromObject']=function(_0x40d6d9){if(_0x40d6d9 instanceof _0x17fc8f['CollaborativeEditingReconnectMessage'])return _0x40d6d9;var _0x1b5576=new _0x17fc8f['CollaborativeEditingReconnectMessage']();return null!=_0x40d6d9['id']&&(_0x1b5576['id']=String(_0x40d6d9['id'])),null!=_0x40d6d9['bundleVersion']&&(_0x1b5576['bundleVersion']=String(_0x40d6d9['bundleVersion'])),null!=_0x40d6d9['lastKnowVersion']&&(_0x1b5576['lastKnowVersion']=_0x40d6d9['lastKnowVersion']>>>0x0),_0x1b5576;},_0x5ad06b['toObject']=function(_0x27424c,_0x58b1ce){_0x58b1ce||(_0x58b1ce={});var _0x135d4f={};return _0x58b1ce['defaults']&&(_0x135d4f['id']='',_0x135d4f['bundleVersion']='',_0x135d4f['lastKnowVersion']=0x0),null!=_0x27424c['id']&&_0x27424c['hasOwnProperty']('id')&&(_0x135d4f['id']=_0x27424c['id']),null!=_0x27424c['bundleVersion']&&_0x27424c['hasOwnProperty']('bundleVersion')&&(_0x135d4f['bundleVersion']=_0x27424c['bundleVersion']),null!=_0x27424c['lastKnowVersion']&&_0x27424c['hasOwnProperty']('lastKnowVersion')&&(_0x135d4f['lastKnowVersion']=_0x27424c['lastKnowVersion']),_0x135d4f;},_0x5ad06b['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5ad06b['getTypeUrl']=function(_0x24050b){return void 0x0===_0x24050b&&(_0x24050b='type.googleapis.com'),_0x24050b+'/CollaborativeEditingReconnectMessage';},_0x5ad06b;}()),_0x17fc8f['CollaborativeEditingConnectMessage']=(function(){function _0x4254f1(_0x394d3d){if(this['buffers']=[],this['types']=[],_0x394d3d){for(var _0x4839f2=Object['keys'](_0x394d3d),_0x3b5648=0x0;_0x3b5648<_0x4839f2['length'];++_0x3b5648)null!=_0x394d3d[_0x4839f2[_0x3b5648]]&&(this[_0x4839f2[_0x3b5648]]=_0x394d3d[_0x4839f2[_0x3b5648]]);}}return _0x4254f1['prototype']['id']='',_0x4254f1['prototype']['bundleVersion']='',_0x4254f1['prototype']['buffers']=_0x1967e8['emptyArray'],_0x4254f1['prototype']['types']=_0x1967e8['emptyArray'],_0x4254f1['prototype']['lastOperationId']='',_0x4254f1['create']=function(_0x525093){return new _0x4254f1(_0x525093);},_0x4254f1['encode']=function(_0x3f3df9,_0x3cf077){if(_0x3cf077||(_0x3cf077=_0x5e31a7['create']()),null!=_0x3f3df9['id']&&Object['hasOwnProperty']['call'](_0x3f3df9,'id')&&_0x3cf077['uint32'](0xa)['string'](_0x3f3df9['id']),null!=_0x3f3df9['bundleVersion']&&Object['hasOwnProperty']['call'](_0x3f3df9,'bundleVersion')&&_0x3cf077['uint32'](0x12)['string'](_0x3f3df9['bundleVersion']),null!=_0x3f3df9['buffers']&&_0x3f3df9['buffers']['length']){for(var _0x37dc9c=0x0;_0x37dc9c<_0x3f3df9['buffers']['length'];++_0x37dc9c)_0x3cf077['uint32'](0x1a)['bytes'](_0x3f3df9['buffers'][_0x37dc9c]);}if(null!=_0x3f3df9['types']&&_0x3f3df9['types']['length']){for(_0x3cf077['uint32'](0x22)['fork'](),_0x37dc9c=0x0;_0x37dc9c<_0x3f3df9['types']['length'];++_0x37dc9c)_0x3cf077['uint32'](_0x3f3df9['types'][_0x37dc9c]);_0x3cf077['ldelim']();}return null!=_0x3f3df9['lastOperationId']&&Object['hasOwnProperty']['call'](_0x3f3df9,'lastOperationId')&&_0x3cf077['uint32'](0x2a)['string'](_0x3f3df9['lastOperationId']),_0x3cf077;},_0x4254f1['encodeDelimited']=function(_0x510e59,_0x30f9fa){return this['encode'](_0x510e59,_0x30f9fa)['ldelim']();},_0x4254f1['decode']=function(_0x2c1e57,_0x217c22,_0x218ec3){_0x2c1e57 instanceof _0x546f05||(_0x2c1e57=_0x546f05['create'](_0x2c1e57));for(var _0x4b34f1=void 0x0===_0x217c22?_0x2c1e57['len']:_0x2c1e57['pos']+_0x217c22,_0x34512e=new _0x17fc8f['CollaborativeEditingConnectMessage']();_0x2c1e57['pos']<_0x4b34f1;){var _0x38b84e=_0x2c1e57['uint32']();if(_0x38b84e===_0x218ec3)break;switch(_0x38b84e>>>0x3){case 0x1:_0x34512e['id']=_0x2c1e57['string']();break;case 0x2:_0x34512e['bundleVersion']=_0x2c1e57['string']();break;case 0x3:_0x34512e['buffers']&&_0x34512e['buffers']['length']||(_0x34512e['buffers']=[]),_0x34512e['buffers']['push'](_0x2c1e57['bytes']());break;case 0x4:if(_0x34512e['types']&&_0x34512e['types']['length']||(_0x34512e['types']=[]),0x2==(0x7&_0x38b84e)){for(var _0x3ce80e=_0x2c1e57['uint32']()+_0x2c1e57['pos'];_0x2c1e57['pos']<_0x3ce80e;)_0x34512e['types']['push'](_0x2c1e57['uint32']());}else _0x34512e['types']['push'](_0x2c1e57['uint32']());break;case 0x5:_0x34512e['lastOperationId']=_0x2c1e57['string']();break;default:_0x2c1e57['skipType'](0x7&_0x38b84e);}}return _0x34512e;},_0x4254f1['decodeDelimited']=function(_0x14ce1d){return _0x14ce1d instanceof _0x546f05||(_0x14ce1d=new _0x546f05(_0x14ce1d)),this['decode'](_0x14ce1d,_0x14ce1d['uint32']());},_0x4254f1['verify']=function(_0x50f171){if('object'!=typeof _0x50f171||null===_0x50f171)return'object\x20expected';if(null!=_0x50f171['id']&&_0x50f171['hasOwnProperty']('id')&&!_0x1967e8['isString'](_0x50f171['id']))return'id:\x20string\x20expected';if(null!=_0x50f171['bundleVersion']&&_0x50f171['hasOwnProperty']('bundleVersion')&&!_0x1967e8['isString'](_0x50f171['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x50f171['buffers']&&_0x50f171['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x50f171['buffers']))return'buffers:\x20array\x20expected';for(var _0x1246a4=0x0;_0x1246a4<_0x50f171['buffers']['length'];++_0x1246a4)if(!(_0x50f171['buffers'][_0x1246a4]&&'number'==typeof _0x50f171['buffers'][_0x1246a4]['length']||_0x1967e8['isString'](_0x50f171['buffers'][_0x1246a4])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x50f171['types']&&_0x50f171['hasOwnProperty']('types')){if(!Array['isArray'](_0x50f171['types']))return'types:\x20array\x20expected';for(_0x1246a4=0x0;_0x1246a4<_0x50f171['types']['length'];++_0x1246a4)if(!_0x1967e8['isInteger'](_0x50f171['types'][_0x1246a4]))return'types:\x20integer[]\x20expected';}return null!=_0x50f171['lastOperationId']&&_0x50f171['hasOwnProperty']('lastOperationId')&&!_0x1967e8['isString'](_0x50f171['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},_0x4254f1['fromObject']=function(_0xab1619){if(_0xab1619 instanceof _0x17fc8f['CollaborativeEditingConnectMessage'])return _0xab1619;var _0x35614e=new _0x17fc8f['CollaborativeEditingConnectMessage']();if(null!=_0xab1619['id']&&(_0x35614e['id']=String(_0xab1619['id'])),null!=_0xab1619['bundleVersion']&&(_0x35614e['bundleVersion']=String(_0xab1619['bundleVersion'])),_0xab1619['buffers']){if(!Array['isArray'](_0xab1619['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x35614e['buffers']=[];for(var _0x6d915=0x0;_0x6d915<_0xab1619['buffers']['length'];++_0x6d915)'string'==typeof _0xab1619['buffers'][_0x6d915]?_0x1967e8['base64']['decode'](_0xab1619['buffers'][_0x6d915],_0x35614e['buffers'][_0x6d915]=_0x1967e8['newBuffer'](_0x1967e8['base64']['length'](_0xab1619['buffers'][_0x6d915])),0x0):_0xab1619['buffers'][_0x6d915]['length']>=0x0&&(_0x35614e['buffers'][_0x6d915]=_0xab1619['buffers'][_0x6d915]);}if(_0xab1619['types']){if(!Array['isArray'](_0xab1619['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');for(_0x35614e['types']=[],_0x6d915=0x0;_0x6d915<_0xab1619['types']['length'];++_0x6d915)_0x35614e['types'][_0x6d915]=_0xab1619['types'][_0x6d915]>>>0x0;}return null!=_0xab1619['lastOperationId']&&(_0x35614e['lastOperationId']=String(_0xab1619['lastOperationId'])),_0x35614e;},_0x4254f1['toObject']=function(_0x2a9e09,_0x3f4221){_0x3f4221||(_0x3f4221={});var _0x4c6309={};if((_0x3f4221['arrays']||_0x3f4221['defaults'])&&(_0x4c6309['buffers']=[],_0x4c6309['types']=[]),_0x3f4221['defaults']&&(_0x4c6309['id']='',_0x4c6309['bundleVersion']='',_0x4c6309['lastOperationId']=''),null!=_0x2a9e09['id']&&_0x2a9e09['hasOwnProperty']('id')&&(_0x4c6309['id']=_0x2a9e09['id']),null!=_0x2a9e09['bundleVersion']&&_0x2a9e09['hasOwnProperty']('bundleVersion')&&(_0x4c6309['bundleVersion']=_0x2a9e09['bundleVersion']),_0x2a9e09['buffers']&&_0x2a9e09['buffers']['length']){_0x4c6309['buffers']=[];for(var _0x260571=0x0;_0x260571<_0x2a9e09['buffers']['length'];++_0x260571)_0x4c6309['buffers'][_0x260571]=_0x3f4221['bytes']===String?_0x1967e8['base64']['encode'](_0x2a9e09['buffers'][_0x260571],0x0,_0x2a9e09['buffers'][_0x260571]['length']):_0x3f4221['bytes']===Array?Array['prototype']['slice']['call'](_0x2a9e09['buffers'][_0x260571]):_0x2a9e09['buffers'][_0x260571];}if(_0x2a9e09['types']&&_0x2a9e09['types']['length']){for(_0x4c6309['types']=[],_0x260571=0x0;_0x260571<_0x2a9e09['types']['length'];++_0x260571)_0x4c6309['types'][_0x260571]=_0x2a9e09['types'][_0x260571];}return null!=_0x2a9e09['lastOperationId']&&_0x2a9e09['hasOwnProperty']('lastOperationId')&&(_0x4c6309['lastOperationId']=_0x2a9e09['lastOperationId']),_0x4c6309;},_0x4254f1['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4254f1['getTypeUrl']=function(_0x5d8f4e){return void 0x0===_0x5d8f4e&&(_0x5d8f4e='type.googleapis.com'),_0x5d8f4e+'/CollaborativeEditingConnectMessage';},_0x4254f1;}()),_0x17fc8f['OperationMetadataDescriptor']=(function(){function _0x2382cf(_0x30ab57){if(_0x30ab57){for(var _0x3d456f=Object['keys'](_0x30ab57),_0x5c611a=0x0;_0x5c611a<_0x3d456f['length'];++_0x5c611a)null!=_0x30ab57[_0x3d456f[_0x5c611a]]&&(this[_0x3d456f[_0x5c611a]]=_0x30ab57[_0x3d456f[_0x5c611a]]);}}return _0x2382cf['prototype']['userId']='',_0x2382cf['prototype']['type']='',_0x2382cf['prototype']['createdAt']='',_0x2382cf['create']=function(_0x221281){return new _0x2382cf(_0x221281);},_0x2382cf['encode']=function(_0x18037c,_0x571675){return _0x571675||(_0x571675=_0x5e31a7['create']()),null!=_0x18037c['userId']&&Object['hasOwnProperty']['call'](_0x18037c,'userId')&&_0x571675['uint32'](0xa)['string'](_0x18037c['userId']),null!=_0x18037c['type']&&Object['hasOwnProperty']['call'](_0x18037c,'type')&&_0x571675['uint32'](0x12)['string'](_0x18037c['type']),null!=_0x18037c['createdAt']&&Object['hasOwnProperty']['call'](_0x18037c,'createdAt')&&_0x571675['uint32'](0x1a)['string'](_0x18037c['createdAt']),_0x571675;},_0x2382cf['encodeDelimited']=function(_0x2ff7d9,_0x22bf27){return this['encode'](_0x2ff7d9,_0x22bf27)['ldelim']();},_0x2382cf['decode']=function(_0x35c431,_0xf5af8a,_0x19cb96){_0x35c431 instanceof _0x546f05||(_0x35c431=_0x546f05['create'](_0x35c431));for(var _0x5ba5df=void 0x0===_0xf5af8a?_0x35c431['len']:_0x35c431['pos']+_0xf5af8a,_0x46332e=new _0x17fc8f['OperationMetadataDescriptor']();_0x35c431['pos']<_0x5ba5df;){var _0x365fb4=_0x35c431['uint32']();if(_0x365fb4===_0x19cb96)break;switch(_0x365fb4>>>0x3){case 0x1:_0x46332e['userId']=_0x35c431['string']();break;case 0x2:_0x46332e['type']=_0x35c431['string']();break;case 0x3:_0x46332e['createdAt']=_0x35c431['string']();break;default:_0x35c431['skipType'](0x7&_0x365fb4);}}return _0x46332e;},_0x2382cf['decodeDelimited']=function(_0x31f786){return _0x31f786 instanceof _0x546f05||(_0x31f786=new _0x546f05(_0x31f786)),this['decode'](_0x31f786,_0x31f786['uint32']());},_0x2382cf['verify']=function(_0x50c9a4){return'object'!=typeof _0x50c9a4||null===_0x50c9a4?'object\x20expected':null!=_0x50c9a4['userId']&&_0x50c9a4['hasOwnProperty']('userId')&&!_0x1967e8['isString'](_0x50c9a4['userId'])?'userId:\x20string\x20expected':null!=_0x50c9a4['type']&&_0x50c9a4['hasOwnProperty']('type')&&!_0x1967e8['isString'](_0x50c9a4['type'])?'type:\x20string\x20expected':null!=_0x50c9a4['createdAt']&&_0x50c9a4['hasOwnProperty']('createdAt')&&!_0x1967e8['isString'](_0x50c9a4['createdAt'])?'createdAt:\x20string\x20expected':null;},_0x2382cf['fromObject']=function(_0x127e2d){if(_0x127e2d instanceof _0x17fc8f['OperationMetadataDescriptor'])return _0x127e2d;var _0x5d39b4=new _0x17fc8f['OperationMetadataDescriptor']();return null!=_0x127e2d['userId']&&(_0x5d39b4['userId']=String(_0x127e2d['userId'])),null!=_0x127e2d['type']&&(_0x5d39b4['type']=String(_0x127e2d['type'])),null!=_0x127e2d['createdAt']&&(_0x5d39b4['createdAt']=String(_0x127e2d['createdAt'])),_0x5d39b4;},_0x2382cf['toObject']=function(_0x38998c,_0x28ddf8){_0x28ddf8||(_0x28ddf8={});var _0x3c1a21={};return _0x28ddf8['defaults']&&(_0x3c1a21['userId']='',_0x3c1a21['type']='',_0x3c1a21['createdAt']=''),null!=_0x38998c['userId']&&_0x38998c['hasOwnProperty']('userId')&&(_0x3c1a21['userId']=_0x38998c['userId']),null!=_0x38998c['type']&&_0x38998c['hasOwnProperty']('type')&&(_0x3c1a21['type']=_0x38998c['type']),null!=_0x38998c['createdAt']&&_0x38998c['hasOwnProperty']('createdAt')&&(_0x3c1a21['createdAt']=_0x38998c['createdAt']),_0x3c1a21;},_0x2382cf['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2382cf['getTypeUrl']=function(_0x2d9e13){return void 0x0===_0x2d9e13&&(_0x2d9e13='type.googleapis.com'),_0x2d9e13+'/OperationMetadataDescriptor';},_0x2382cf;}()),_0x17fc8f;})());class MessagesCompressor{static['decode'](_0x9014dd,_0xb6eb15){const _0x48cea0=_getType(_0xb6eb15)['decode']('undefined'==typeof window?_0x9014dd:new Uint8Array(_0x9014dd));return _0xb6eb15['fromJSON']({..._0x48cea0});}static['encode'](_0x472c6a){const _0x55bdb1=_getType(_0x472c6a['constructor']),_0x48ee10=_0x472c6a['toJSON'](),_0x4b2230=_0x55bdb1['verify'](_0x48ee10);if(_0x4b2230)throw Error(_0x4b2230);return _0x55bdb1['encode'](_0x55bdb1['create'](_0x48ee10))['finish']();}}function _getType(_0x36f1e1){return messages$1[_0x36f1e1['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x2e66e2){super(),this['ids']=_0x2e66e2;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](_0x26be0a){return new GetManyUsersMessage(_0x26be0a['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x1f9864){super(),this['users']=_0x1f9864;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](_0x35b468){return new GetManyUsersResponse(_0x35b468['users']['map'](_userFromJson));}}function _userToJson(_0x9d8eb3){return{'attributes':Object['keys'](_0x9d8eb3)['map'](_0x40972e=>({'key':_0x40972e,'value':JSON['stringify'](_0x9d8eb3[_0x40972e])}))};}function _userFromJson(_0x229c8e){return _0x229c8e['attributes']['reduce']((_0x5c714d,_0x39a3a2)=>(_0x5c714d[_0x39a3a2['key']]=_0x39a3a2['value']?JSON['parse'](_0x39a3a2['value']):null,_0x5c714d),{});}class User{static ['_SERVICE']=0x2;constructor(_0x262b59={}){this['_attributes']=new Map();for(const _0x4aa360 of Object['keys'](_0x262b59))'id'!==_0x4aa360?(this['_attributes']['set'](_0x4aa360,_0x262b59[_0x4aa360]),Object['defineProperty'](this,_0x4aa360,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x4aa360)})):this['id']=_0x262b59['id'];}static['fromData'](_0x2897da){return new User(_0x2897da);}static async['get'](_0x13aa40,_0x4611ca){const _0x2d3612=new GetUserMessage(_0x4611ca);try{const _0x1524c0=await _0x13aa40['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x2d3612)),_0x411e72=MessagesCompressor['decode'](_0x1524c0,GetUserResponse);return new User(_0x411e72['attributes']);}catch(_0x5bcdf6){return new User({'id':_0x4611ca});}}static async['getMany'](_0x2732d4,_0x4390e7){const _0x145c2e=new GetManyUsersMessage(_0x4390e7);try{const _0x49fbd4=await _0x2732d4['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x145c2e));return MessagesCompressor['decode'](_0x49fbd4,GetManyUsersResponse)['users']['map'](_0x556696=>new User(_0x556696));}catch(_0x4505c5){return _0x4390e7['map'](_0xe076db=>new User({'id':_0xe076db}));}}}class ChannelMessage extends Message{['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(_0x1b82e2,_0x13aba6,_0x244611){super(),this['type']=_0x1b82e2,this['socketId']=_0x13aba6,this['data']=_0x244611;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](_0x26632b){return new ChannelMessage(_0x26632b['type'],_0x26632b['socketId'],_0x26632b['data']);}}class Channel extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x5ed02f,_0x4fb886,_0x533cd4){super(),this['_channelName']=_0x5ed02f,this['_wsGateway']=_0x4fb886,this['_socket']=_0x533cd4,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](_0x215c42,_0x16f205=!0x1){let _0x53678b='';return _0x16f205&&(_0x53678b+='all:'),_0x53678b+='event',_0x215c42&&(_0x53678b+=':'+_0x215c42),_0x53678b;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x3e957d=>{const _0x4bb95a=MessagesCompressor['decode'](_0x3e957d,ChannelMessage);this['fire'](this['getEventName'](_0x4bb95a['type'],!0x0),_0x4bb95a['data'],_0x4bb95a['socketId']),_0x4bb95a['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x4bb95a['type']),_0x4bb95a['data'],_0x4bb95a['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x1f8b24,_0x7998e,_0x227184=null,_0x3d512f={}){super('cloud-services-internal-error:\x20'+_0x1f8b24),this['context']=_0x7998e,this['code']=_0x227184,this['data']=_0x3d512f,this['name']='CKEditorError';}static['fromPublicError'](_0x46299e){return new CKEditorCloudServicesError(function(_0x2ce72b){let _0xea8b4e='cloud-services-error:\x20'+_0x2ce72b['message'];return _0x2ce72b['data']&&(_0xea8b4e+='\x0aError\x20data:\x20'+JSON['stringify'](_0x2ce72b['data'])),_0x2ce72b['explanation']&&(_0xea8b4e+='\x0aExplanation:\x20'+_0x2ce72b['explanation']),_0x2ce72b['action']&&(_0xea8b4e+='\x0aAction:\x20'+_0x2ce72b['action']),_0x2ce72b['traceId']&&(_0xea8b4e+='\x0aTraceId:\x20'+_0x2ce72b['traceId']),_0x2ce72b['code']&&(_0xea8b4e+='\x0aCode:\x20'+_0x2ce72b['code']),_0xea8b4e;}(_0x46299e),_0x46299e);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x23df3f,_0x2d14d0){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x23df3f,this['code']=_0x2d14d0['code'],this['traceId']=_0x2d14d0['traceId'],this['data']=_0x2d14d0['data'];}static['fromPublicError'](_0x14a5af){return new CKEditorCloudServicesServerError(function(_0x139ef1){let _0x329fcc='cloud-services-server-error:\x20'+_0x139ef1['message'];return _0x139ef1['explanation']&&(_0x329fcc+='\x0aExplanation:\x20'+_0x139ef1['explanation']),_0x139ef1['action']&&(_0x329fcc+='\x0aAction:\x20'+_0x139ef1['action']),_0x139ef1['traceId']&&(_0x329fcc+='\x0aTraceId:\x20'+_0x139ef1['traceId']),_0x139ef1['code']&&(_0x329fcc+='\x0aCode:\x20'+_0x139ef1['code']),_0x329fcc;}(_0x14a5af),_0x14a5af);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0x431e34,_0x56bc56=[],_0x2ed895=[]){super(),this['flags']=_0x431e34,this['rooms']=_0x56bc56,this['except']=_0x2ed895;}['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'](_0x23100f){return new PacketOptionsMessage(_0x23100f['flags']&&JSON['parse'](_0x23100f['flags']),_0x23100f['rooms'],_0x23100f['except']);}}const IS_NODE=/* #__PURE__ -- @preserve */
((()=>!('undefined'==typeof process||!process['versions']?.['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](..._0x3f3eac){let _0x401fc7=0x0;for(let _0x43a1ea=0x0;_0x43a1ea<_0x3f3eac['length'];_0x43a1ea++)_0x401fc7+=_0x3f3eac[_0x43a1ea]*Math['pow'](0xa,_0x3f3eac['length']-_0x43a1ea-0x1);return _0x401fc7;}static['getType'](_0x5928ed){if(ParserUtils['isBuffer'](_0x5928ed))return MessageDataTypes_BUFFER;const _0xb76727=typeof _0x5928ed;return'string'===_0xb76727?MessageDataTypes_STRING:'number'===_0xb76727?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0xd3f878){return IS_NODE&&Buffer['isBuffer'](_0xd3f878)||_0xd3f878 instanceof ArrayBuffer||_0xd3f878 instanceof Uint8Array||this['_isBufferView'](_0xd3f878);}static['_isBufferView'](_0x3cfc5d){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x3cfc5d):_0x3cfc5d['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];static['create'](_0x3a3b3e,_0x3645ed){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x87334a,_0x3e4770){super(),this['data']=_0x87334a,this['data1']=_0x3e4770;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x509e32){return new NumberBytesPacketDataMessage(_0x509e32['data'],_0x509e32['data1']);}static['create'](_0x12ee0e,_0x2c04c1){return new NumberBytesPacketDataMessage(_0x12ee0e,_0x2c04c1);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0x2aee6a,_0x47e490){super(),this['data']=_0x2aee6a,this['data1']=_0x47e490;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x5a7a07){return new StringBytesPacketDataMessage(_0x5a7a07['data'],_0x5a7a07['data1']);}static['create'](_0x47e950,_0x1b2102){return new StringBytesPacketDataMessage(_0x47e950,_0x1b2102);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0xb30d8,_0x117b1d){super(),this['data']=_0xb30d8,this['data1']=_0x117b1d;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x2bbbb4){return new BytesBytesPacketDataMessage(_0x2bbbb4['data'],_0x2bbbb4['data1']);}static['create'](_0x1f3919,_0x4a7034){return new BytesBytesPacketDataMessage(_0x1f3919,_0x4a7034);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x533ed9,_0x51fea6){super(),this['data']=_0x533ed9,this['data1']=_0x51fea6;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x931967){return new StringObjectPacketDataMessage(_0x931967['data'],_0x931967['data1']&&JSON['parse'](_0x931967['data1']));}static['create'](_0x2b0005,_0xbfac60){return new StringObjectPacketDataMessage(_0x2b0005,_0xbfac60);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x214649,_0x326f4e){super(),this['data']=_0x214649,this['data1']=_0x326f4e;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x48b6d0){return new NumberObjectPacketDataMessage(_0x48b6d0['data'],_0x48b6d0['data1']&&JSON['parse'](_0x48b6d0['data1']));}static['create'](_0x344036,_0x39d8b8){return new NumberObjectPacketDataMessage(_0x344036,_0x39d8b8);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x1ab499,_0x3af4fd){super(),this['data']=_0x1ab499,this['data1']=_0x3af4fd;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](_0x572b77){return new ObjectObjectPacketDataMessage(_0x572b77['data']&&JSON['parse'](_0x572b77['data']),_0x572b77['data1']&&JSON['parse'](_0x572b77['data1']));}static['create'](_0xe9bb,_0x34ca37){return new ObjectObjectPacketDataMessage(_0xe9bb,_0x34ca37);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(_0xff2e45,_0x107c13){super(),this['data']=_0xff2e45,this['data1']=_0x107c13;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](_0x35a50a){return new ObjectBufferPacketDataMessage(_0x35a50a['data']&&JSON['parse'](_0x35a50a['data']),_0x35a50a['data1']);}static['create'](_0x18928b,_0x1c0a0a){return new ObjectBufferPacketDataMessage(_0x18928b,_0x1c0a0a);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0x424760,_0x171053){super(),this['data']=_0x424760,this['data1']=_0x171053;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x23dabf){return new StringStringPacketDataMessage(_0x23dabf['data'],_0x23dabf['data1']);}static['create'](_0x1beb81,_0x13d782){return new StringStringPacketDataMessage(_0x1beb81,_0x13d782);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}}))());constructor(_0x56b1f7,_0x2e04cd){super(),this['data']=_0x56b1f7,this['data1']=_0x2e04cd;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0xd7527e){return new StringNumberPacketDataMessage(_0xd7527e['data'],_0xd7527e['data1']);}static['create'](_0x41e690,_0x2816da){return new StringNumberPacketDataMessage(_0x41e690,_0x2816da);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(_0x416587,_0x5bd7be){super(),this['data']=_0x416587,this['data1']=_0x5bd7be;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x1f325d){return new NumberNumberPacketDataMessage(_0x1f325d['data'],_0x1f325d['data1']);}static['create'](_0x3a2a64,_0x4920e8){return new NumberNumberPacketDataMessage(_0x3a2a64,_0x4920e8);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(_0xbc1177,_0x526d2f){super(),this['data']=_0xbc1177,this['data1']=_0x526d2f;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](_0x200b9a){return new NumberStringPacketDataMessage(_0x200b9a['data'],_0x200b9a['data1']);}static['create'](_0x41e3aa,_0x366367){return new NumberStringPacketDataMessage(_0x41e3aa,_0x366367);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((_0x2b3fbe,_0x3a3a80)=>(_0x2b3fbe[_0x3a3a80['TYPE']]=_0x3a3a80,_0x2b3fbe),{}))());class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'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(_0xae9fd8,_0x291c02,_0x127d7a,_0x12a5e0='/',_0x2b56f1){super(),this['type']=_0xae9fd8,this['data']=_0x291c02,this['id']=_0x127d7a,this['nsp']=_0x12a5e0,this['options']=_0x2b56f1??new PacketOptionsMessage();}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 _0x3f94be=MessagesCompressor['encode'](this['options']),_0x1c71ee=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':_0x1c71ee,'options':_0x3f94be};}static['fromJSON'](_0x82ce73){const _0x4dc30f=Math['floor'](_0x82ce73['type']/0xa);return new PacketMessage(_0x82ce73['type']-0xa*_0x4dc30f,MessagesCompressor['decode'](_0x82ce73['data'],PACKET_DATA_MESSAGES[_0x4dc30f]),_0x82ce73['id'],_0x82ce73['nsp'],_0x82ce73['options']?MessagesCompressor['decode'](_0x82ce73['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](_0x435340,_0x1984a6={}){const _0x143913=ParserUtils['getPacketType'](ParserUtils['getType'](_0x435340['data'][0x0]),ParserUtils['getType'](_0x435340['data'][0x1]??_0x435340['data'][0x0]));return new PacketMessage(_0x435340['type'],PACKET_DATA_MESSAGES[_0x143913]['create'](_0x435340['data'][0x0],_0x435340['data'][0x1]),_0x435340['id'],_0x435340['nsp'],new PacketOptionsMessage(_0x1984a6['flags'],_0x1984a6['rooms'],_0x1984a6['except']));}}class PacketParser{['encode'](_0x1a56ad,_0x434979,_0x45d921,_0x4d391f='/',_0x3c5e69={}){if(_0x434979['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const _0x2f2a88={'type':_0x1a56ad,'data':_0x434979,'id':_0x45d921,'nsp':_0x4d391f};return MessagesCompressor['encode'](PacketMessage['create'](_0x2f2a88,_0x3c5e69));}['decode'](_0x30a398){const _0x2ffb14=MessagesCompressor['decode'](_0x30a398,PacketMessage);return{'packet':{'id':_0x2ffb14['id'],'type':_0x2ffb14['type'],'data':_0x2ffb14['packetData'],'nsp':_0x2ffb14['nsp']},'options':{'flags':_0x2ffb14['options']['flags'],'rooms':_0x2ffb14['options']['rooms'],'except':_0x2ffb14['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends Encoder$1{['_packetParser'];constructor(_0x1be49d){super(),this['_packetParser']=_0x1be49d??new PacketParser();}['encode'](_0x34b9ab){if(ENCODED_TYPES['includes'](_0x34b9ab['type']))try{return[this['_packetParser']['encode'](_0x34b9ab['type'],_0x34b9ab['data'],_0x34b9ab['id'],_0x34b9ab['nsp'])];}catch(_0x20436b){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x20436b['message']}});}return super['encode'](_0x34b9ab);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_0x3540b3){super(),this['_packetParser']=_0x3540b3??new PacketParser();}['add'](_0x3eb355){if(!ParserUtils['isBuffer'](_0x3eb355))return super['add'](_0x3eb355);let _0x1743db;try{_0x1743db=this['_packetParser']['decode'](_0x3eb355)['packet'];}catch(_0x57b259){return super['add'](_0x3eb355);}super['emitReserved']('decoded',_0x1743db);}}class WebSocketRequest{['_context'];['_deferredPromise']=/* #__PURE__ -- @preserve */
_deferPromise();['timeout'];constructor(_0x2e0d13,_0x262f87){this['_context']=_0x2e0d13,this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),_0x262f87);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x57ff4d){this['_deferredPromise']['resolve'](_0x57ff4d);}['error'](_0x205f53){this['_deferredPromise']['reject'](_0x205f53);}}class WebSocketGatewayRequestsManager{['_context'];['_requests']=new Set();constructor(_0xdf7a0b){this['_context']=_0xdf7a0b;}async['send'](_0x152e7f,_0x335071=0xafc8){const _0x5edc9c=this['_createRequest'](_0x335071);try{return _0x152e7f(_0x5edc9c),await _0x5edc9c['promise'];}finally{this['_finishRequest'](_0x5edc9c);}}['errorAll'](_0x3835c6){for(const _0x48b486 of this['_requests'])_0x48b486['error'](_0x3835c6);}['waitForAllRequests'](_0x25d60e=0xafc8){return this['_waitForRequests'](_0x25d60e);}['_createRequest'](_0x2bc063){const _0x3910a9=new WebSocketRequest(this['_context'],_0x2bc063);return this['_requests']['add'](_0x3910a9),_0x3910a9;}['_finishRequest'](_0x4c78d9){this['_requests']['delete'](_0x4c78d9),clearTimeout(_0x4c78d9['timeout']);}async['_waitForRequests'](_0x582973=0x1388,_0x5f2133=0x0){return!this['_requests']['size']||_0x5f2133>=_0x582973/0x1f4?Promise['resolve']():(await new Promise(_0x3be079=>{setTimeout(_0x3be079,0x1f4);}),this['_waitForRequests'](_0x582973,_0x5f2133++));}}function _deferPromise(){let _0x5c1fc0,_0x10a67f;const _0x1832a7=new Promise((_0x49b46a,_0x4f027d)=>{_0x5c1fc0=_0x49b46a,_0x10a67f=_0x4f027d;});return{'resolve':_0x5c1fc0,'reject':_0x10a67f,'promise':_0x1832a7};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};let WebSocketGateway$1=class e extends/* #__PURE__ -- @preserve */
_0x51cb0b(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'])());static ['STATE_CONNECTING']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTING'])());static ['STATE_CONNECTED']=/* #__PURE__ -- @preserve */
((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTED'])());static ['_CHANGE_STATE_EVENT_PRIORITY']=/* #__PURE__ -- @preserve */
((()=>priorities$1['get']('highest')+0xf423f)());constructor(_0x2e57ac,_0x1f46cb,_0x2ab507,_0x5cab88,_0x57af51){if(super(),this['_token']=_0x1f46cb,this['_options']=_0x2ab507??{},this['_connectionProvider']=_0x5cab88??lookup,this['_userFactory']=_0x57af51??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x2e57ac)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=urlParseExports(_0x2e57ac['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(_0x5176b7,_0x102ca6,_0x97a477)=>{if(this['_debugEvent']('ws-gw:change:state',_0x97a477),_0x97a477!==e['STATE_CONNECTED']){if(_0x97a477===e['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch(_0x2343c6){}},{'priority':e['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(_0x9b148d,_0x53f736)=>{this['_options']['onError']?this['_options']['onError'](_0x53f736):console['error'](_0x53f736);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](_0x3ec8d4){return this['_requestsManager']['waitForAllRequests'](_0x3ec8d4);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](_0xb4ecc0,_0x5540e4='local.cs.dev:443/ws-v2',_0x419a4c={},_0x1652bc=lookup,_0x777692=User['get']){const _0x56b2e0=new e(_0x5540e4,_0xb4ecc0,_0x419a4c,_0x1652bc,_0x777692);return await _0x56b2e0['_connect'](),_0x56b2e0;}['_sendRequest'](_0x322cb5,_0x51d447,_0x4607d7){if(!_0x322cb5)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==e['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x442169=new ArrayBuffer(_0x4607d7['length']+0x2),_0x55f24d=new Uint8Array(_0x442169);return _0x55f24d[0x0]=_0x322cb5,_0x55f24d[0x1]=parseInt(_0x51d447),_0x55f24d['set'](_0x4607d7,0x2),this['_emit'](0x1,_0x55f24d);}['_getChannel'](_0x46b5da,_0x882f1c){const _0x109b2c=''+_0x46b5da+_0x882f1c;return!this['_channels']['has'](_0x109b2c)&&this['_socket']&&this['_channels']['set'](_0x109b2c,new Channel(_0x109b2c,this,this['_socket'])),this['_channels']['get'](_0x109b2c);}['_connect'](){return new Promise((_0x56bf99,_0x4204d5)=>{const _0xee2402=this['_setupSocket']();!this['socketId']&&_0xee2402['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](_0x4204d5);}),_0xee2402['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x56bf99();}catch(_0x2b503e){_0x4204d5(_0x2b503e);}}),_0xee2402['connect']();});}['_getPortByProtocol'](_0x5c2115){return['http:','ws:']['includes'](_0x5c2115)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const _0x323d59=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x2a7b47=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+_0x323d59,_0x1bf793=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',_0x3037e8=this['_connectionProvider'](_0x2a7b47,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':_0x1bf793+'/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':'53.0.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],_0x3037e8['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=_0x3037e8['id'];}),_0x3037e8['on']('connect_error',_0x511ac5=>{this['_debugEvent']('connect_error',_0x511ac5);}),_0x3037e8['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),_0x3037e8['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),_0x3037e8['io']['on']('reconnect_attempt',_0x4a4730=>{this['_debugEvent']('reconnect_attempt',_0x4a4730),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=_0x4a4730;}),_0x3037e8['on']('unauthorized',_0x1c1aaa=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](_0x1c1aaa);}),_0x3037e8['on']('authenticationRequest',async _0x576c9f=>{this['_debugEvent']('authenticationRequest',_0x576c9f['attempt']),await this['_onReconnect']();}),this['_socket']=_0x3037e8,_0x3037e8;}['_emit'](_0x381a02,_0x4788d0){const _0xbbdbc1=this['_socket'];return this['_requestsManager']['send'](_0x48e42a=>{_0xbbdbc1['emit'](_0x381a02,_0x4788d0,(_0x2a5fea,_0x5b1449)=>{if(_0x2a5fea)return _0x48e42a['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x2a5fea));_0x48e42a['response'](_0x5b1449);});},this['_options']['requestTimeout']);}['_addAuthData'](_0x3cf92c,_0x5db637){this['_socketAuth']={'environmentId':_0x3cf92c,'userId':_0x5db637,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x5921ce=async(_0x3baa28,_0x54fd9c,_0x5696a7)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x5696a7);}catch(_0x203c8f){}};this['_token']['on']('change:value',_0x5921ce),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x5921ce);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x5d9b49 of this['_channels']['values']())_0x5d9b49['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](_0x3819d1,_0xc0a1c0){if(!this['_isDebugModeEnabled']())return;const _0x407eb2=void 0x0!==_0xc0a1c0?',\x20data:\x20'+_0xc0a1c0:'';console['info'](new Date()['toLocaleString']()+'\x20'+_0x3819d1+_0x407eb2);}['_reconnectionAttemptError'](_0x1c552a){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x1c552a(CKEditorCloudServicesError['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:_0x4a7ce2}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x4a7ce2));}async['_authenticate'](_0x44aef4){try{this['_debugEvent']('authenticate:start');const _0xbeb25b=await this['_emit'](0x2,{'token':_0x44aef4});this['_debugEvent']('authenticate:success','envId:\x20'+_0xbeb25b['environmentId']+',\x20userId:\x20'+_0xbeb25b['userId']),this['_addAuthData'](_0xbeb25b['environmentId'],_0xbeb25b['userId']);}catch(_0x471b4b){throw this['_debugEvent']('authenticate:error',_0x471b4b['message']),this['_removeAuthData'](),_0x471b4b;}}['_isDebugModeEnabled'](){return!!_0x415241['window']['localStorage']&&'true'===(_0x415241['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}};class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x1a4593){super(),this['bundleVersion']=_0x1a4593;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](_0x2cdc62){return new IsEditorBundleUploadedMessage(_0x2cdc62['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x412b49){super(),this['isUploaded']=_0x412b49;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x56ac16){return new IsEditorBundleUploadedResponse(_0x56ac16['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](_0x143a94,_0xf009bd){const _0xd866b0=new IsEditorBundleUploadedMessage(_0xf009bd);if(_0x143a94['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x143a94);const _0x3befd6=await _0x143a94['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0xd866b0));return MessagesCompressor['decode'](_0x3befd6,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['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(_0x4e3cfa,_0x2a6f08){super(),this['documentId']=_0x4e3cfa,this['revisionId']=_0x2a6f08;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](_0x4ac52b){return new RevisionHistoryGetRevisionMessage(_0x4ac52b['documentId'],_0x4ac52b['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'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'](_0x47e5ec){return{'revisionId':_0x47e5ec['id'],'name':_0x47e5ec['name'],'creatorId':_0x47e5ec['creatorId'],'createdAt':_0x47e5ec['createdAt'],'fromVersion':_0x47e5ec['fromVersion'],'toVersion':_0x47e5ec['toVersion'],'isEmptyCurrent':_0x47e5ec['isEmptyCurrent'],'diffData':_0x47e5ec['diffData']?JSON['stringify'](_0x47e5ec['diffData']):void 0x0,'attributes':_0x47e5ec['attributes'],'authorsIds':_0x47e5ec['authorsIds']};}static['toJSON'](_0x152c76){return{'revisionId':_0x152c76['revisionId'],'name':_0x152c76['name'],'creatorId':_0x152c76['creatorId'],'authorsIds':_0x152c76['authorsIds']?JSON['stringify'](_0x152c76['authorsIds']):void 0x0,'diffData':_0x152c76['diffData'],'createdAt':_0x152c76['createdAt']?.['toISOString'](),'attributes':_0x152c76['attributes']?JSON['stringify'](_0x152c76['attributes']):void 0x0,'toVersion':_0x152c76['toVersion'],'fromVersion':_0x152c76['fromVersion'],'isEmptyCurrent':_0x152c76['isEmptyCurrent']};}static['fromJSON'](_0x458226){return{'revisionId':(_0x458226={..._0x458226})['revisionId'],'name':_0x458226['name'],'creatorId':_0x458226['creatorId'],'authorsIds':_0x458226['authorsIds']?JSON['parse'](_0x458226['authorsIds']):void 0x0,'diffData':_0x458226['diffData'],'createdAt':_0x458226['createdAt']?new Date(_0x458226['createdAt']):void 0x0,'attributes':_0x458226['attributes']?JSON['parse'](_0x458226['attributes']):void 0x0,'toVersion':_0x458226['toVersion'],'fromVersion':_0x458226['fromVersion'],'isEmptyCurrent':_0x458226['isEmptyCurrent']};}static['toObject'](_0x50b622){return function(_0x29cc39){for(const [_0x24bf6a,_0x2f8093]of Object['entries'](_0x29cc39))void 0x0===_0x2f8093&&delete _0x29cc39[_0x24bf6a];return _0x29cc39;}({'id':_0x50b622['revisionId'],'name':_0x50b622['name'],'creatorId':_0x50b622['creatorId'],'createdAt':_0x50b622['createdAt'],'fromVersion':_0x50b622['fromVersion'],'toVersion':_0x50b622['toVersion'],'isEmptyCurrent':_0x50b622['isEmptyCurrent'],'diffData':_0x50b622['diffData']?JSON['parse'](_0x50b622['diffData']):void 0x0,'attributes':_0x50b622['attributes'],'authorsIds':_0x50b622['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(_0x378d1a,_0x329b4f,_0x4cd8b1,_0x33a898,_0x505bdf,_0x3dde6c,_0x5abbc4,_0x48f0a2,_0x45f46c,_0x224d34){super(),this['revisionId']=_0x378d1a,this['name']=_0x329b4f,this['creatorId']=_0x4cd8b1,this['authorsIds']=_0x33a898,this['createdAt']=_0x505bdf,this['diffData']=_0x3dde6c,this['attributes']=_0x5abbc4,this['fromVersion']=_0x48f0a2,this['toVersion']=_0x45f46c,this['isEmptyCurrent']=_0x224d34;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x449525){return new RevisionHistoryGetRevisionResponse(_0x449525['revisionId'],_0x449525['name'],_0x449525['creatorId'],_0x449525['authorsIds'],_0x449525['createdAt'],_0x449525['diffData'],_0x449525['attributes'],_0x449525['fromVersion'],_0x449525['toVersion'],_0x449525['isEmptyCurrent']);}static['fromJSON'](_0x5beca9){return new RevisionHistoryGetRevisionResponse(_0x5beca9['revisionId'],_0x5beca9['name'],_0x5beca9['creatorId'],_0x5beca9['authorsIds']?JSON['parse'](_0x5beca9['authorsIds']):void 0x0,_0x5beca9['createdAt']?new Date(_0x5beca9['createdAt']):void 0x0,_0x5beca9['diffData'],_0x5beca9['attributes']?JSON['parse'](_0x5beca9['attributes']):void 0x0,_0x5beca9['fromVersion'],_0x5beca9['toVersion'],_0x5beca9['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['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(_0x3ef691,_0x5cae2b,_0x10c5dd){super(),this['documentId']=_0x3ef691,this['requestId']=_0x5cae2b,this['revisions']=_0x10c5dd;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x3c2b0b){return new RevisionHistoryUpdateRevisionsMessage(_0x3c2b0b['documentId'],_0x3c2b0b['requestId'],_0x3c2b0b['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x38f7ca){return new RevisionHistoryUpdateRevisionsMessage(_0x38f7ca['documentId'],_0x38f7ca['requestId'],_0x38f7ca['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(_0x54d10b){super(),this['requestId']=_0x54d10b;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x15e52c){return new RevisionHistoryUpdateRevisionsResponse(_0x15e52c['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x488e32){super(),this['documentId']=_0x488e32;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x110ddf){return new RevisionHistoryConnectMessage(_0x110ddf['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x4ff573,_0x54fe08,_0x3421a6){super(),this['channel']=_0x4ff573,this['requestId']=_0x54fe08,this['revisions']=_0x3421a6;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x147e4c){return new RevisionHistoryConnectResponse(_0x147e4c['channel'],_0x147e4c['requestId'],_0x147e4c['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['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(_0x145ea8,_0x47e339){super(),this['documentId']=_0x145ea8,this['requestId']=_0x47e339;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](_0x3bd4fb){return new RevisionHistoryReconnectMessage(_0x3bd4fb['documentId'],_0x3bd4fb['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x101503,_0x398355){super(_0x101503+'\x20Service\x20is\x20not\x20connected.',_0x398355);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_0x49967d){super(),this['_documentId']=_0x49967d;}get['isConnected'](){return this['_isConnected'];}['connect'](_0x45753f){return this['_isConnected']?Promise['resolve']():this['_connect'](_0x45753f,new RevisionHistoryConnectMessage(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'](_0x38c858,_0x1eff31){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x38c858);return this['_connect'](_0x38c858,new RevisionHistoryReconnectMessage(this['_documentId'],_0x1eff31));}async['updateRevisions'](_0x37d10f,_0x454450){const _0x45e85f=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':_0x454450,'revisions':_0x37d10f}),_0x596e20=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x45e85f),{requestId:_0x441abc}=MessagesCompressor['decode'](_0x596e20,RevisionHistoryUpdateRevisionsResponse);return _0x441abc;}async['getRevision'](_0x271068){const _0x4d1a55=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x271068),_0x11c7c9=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x4d1a55);return MessagesCompressor['decode'](_0x11c7c9,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](_0x1d6027,_0x5da6bd){if(_0x1d6027['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x1d6027);this['_wsGateway']=_0x1d6027,this['stopListening'](_0x1d6027,'change:state');const _0x4e7866=await _0x1d6027['_sendRequest'](0xc,_0x5da6bd['constructor']['TYPE'],MessagesCompressor['encode'](_0x5da6bd)),{channel:_0x441d41,requestId:_0x590d84,revisions:_0x8908a3}=MessagesCompressor['decode'](_0x4e7866,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](_0x1d6027,'change:state',(_0x5e806c,_0x2cd194,_0x59158c)=>this['_onWsGatewayStateChange'](_0x59158c),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x1d6027,_0x441d41),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x8908a3,'requestId':_0x590d84};}['_connectToChannel'](_0x41ed2e,_0x1f0daf){this['_channel']=_0x41ed2e['_getChannel'](RevisionHistoryService['_SERVICE'],_0x1f0daf),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(_0x275bad,_0x29bb23)=>{const {documentId:_0x3f350a,requestId:_0x4c0131,revisions:_0x5a312c}=MessagesCompressor['decode'](_0x29bb23,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':_0x3f350a,'requestId':_0x4c0131,'revisionsData':_0x5a312c});});}['_onWsGatewayStateChange'](_0x3aefe3){_0x3aefe3===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x354395,_0x4f5353){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,_0x354395,MessagesCompressor['encode'](_0x4f5353));}}class AddSuggestionMessage extends Message{['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(_0xa8b9,_0x5fccbb,_0x1b8921,_0x37219c={},_0x3fd08b=null,_0x3931c0=null){super(),this['id']=_0xa8b9,this['documentId']=_0x5fccbb,this['type']=_0x1b8921,this['data']=_0x37219c,this['originalSuggestionId']=_0x3fd08b,this['attributes']=_0x3931c0;}['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'](_0x5f21a3){return new AddSuggestionMessage(_0x5f21a3['id'],_0x5f21a3['documentId'],_0x5f21a3['type'],JSON['parse'](_0x5f21a3['data']),_0x5f21a3['originalSuggestionId']??null,_0x5f21a3['attributes']?JSON['parse'](_0x5f21a3['attributes']):null);}}class AddSuggestionResponse extends Message{['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(_0xacd209,_0xf9ec67,_0x33749f,_0x2fc86d,_0x54dcf6,_0x1b25f5,_0x1d4e7e={},_0x499300=null){super(),this['id']=_0xacd209,this['authorId']=_0xf9ec67,this['type']=_0x33749f,this['hasComments']=_0x54dcf6,this['state']=_0x1b25f5,this['data']=_0x1d4e7e,this['attributes']=_0x499300,this['createdAt']=_0x2fc86d?new Date(_0x2fc86d):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'](_0x5695a7){return new AddSuggestionResponse(_0x5695a7['id'],_0x5695a7['authorId'],_0x5695a7['type'],_0x5695a7['createdAt'],_0x5695a7['hasComments'],_0x5695a7['state'],JSON['parse'](_0x5695a7['data']),_0x5695a7['attributes']?JSON['parse'](_0x5695a7['attributes']):null);}}class GetSuggestionMessage extends Message{['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(_0x5e70c6,_0x4da72d){super(),this['id']=_0x5e70c6,this['documentId']=_0x4da72d;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](_0x22f4d4){return new GetSuggestionMessage(_0x22f4d4['id'],_0x22f4d4['documentId']);}}class GetSuggestionResponse extends Message{['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(_0xd66efd,_0x3b3d2a,_0x3a3390,_0x3c52a5,_0x873e96,_0x481306,_0xf86983={},_0xcb7b17=null){super(),this['id']=_0xd66efd,this['authorId']=_0x3b3d2a,this['type']=_0x3a3390,this['hasComments']=_0x873e96,this['state']=_0x481306,this['data']=_0xf86983,this['attributes']=_0xcb7b17,this['createdAt']=new Date(_0x3c52a5);}['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'](_0x184464){return new GetSuggestionResponse(_0x184464['id'],_0x184464['authorId'],_0x184464['type'],_0x184464['createdAt'],_0x184464['hasComments'],_0x184464['state'],JSON['parse'](_0x184464['data']),_0x184464['attributes']?JSON['parse'](_0x184464['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x1642bf){super(),this['documentId']=_0x1642bf;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2eca1f){return new GetAllSuggestionsMessage(_0x2eca1f['documentId']);}}class SuggestionDescriptor extends Descriptor{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'](_0x58b906){return{..._0x58b906,'data':_0x58b906['data']?JSON['stringify'](_0x58b906['data']):_0x58b906['data'],'attributes':_0x58b906['attributes']?JSON['stringify'](_0x58b906['attributes']):_0x58b906['attributes'],'createdAt':_0x58b906['createdAt']?.['toISOString']()};}static['fromJSON'](_0x16a20e){return{..._0x16a20e,'data':_0x16a20e['data']?JSON['parse'](_0x16a20e['data']):_0x16a20e['data'],'attributes':_0x16a20e['attributes']?JSON['parse'](_0x16a20e['attributes']):_0x16a20e['attributes'],'createdAt':_0x16a20e['createdAt']?new Date(_0x16a20e['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_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(_0x4587b7,_0x564628){super(),this['_suggestions']=_0x4587b7,this['_suggestionsV2']=_0x564628,this['suggestions']=_0x564628?.['length']?_0x564628:_0x4587b7;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](_0xf5ba01=>JSON['stringify'](_0xf5ba01)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x2c8c70){return new GetAllSuggestionResponse(_0x2c8c70['suggestions']?.['map'](_suggestionFromString),_0x2c8c70['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(_0xc75a32){const _0x3a8a1b=JSON['parse'](_0xc75a32);return _0x3a8a1b['createdAt']=_0x3a8a1b['createdAt']?new Date(_0x3a8a1b['createdAt']):void 0x0,_0x3a8a1b;}class UpdateSuggestionMessage extends Message{['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(_0x406b5c,_0x23a067,_0xa2b39f,_0x487c85,_0x24ffaf,_0x384fcc=null){super(),this['id']=_0x406b5c,this['documentId']=_0x23a067,this['hasComments']=_0xa2b39f,this['isHasCommentsModified']=_0x487c85,this['state']=_0x24ffaf,this['attributes']=_0x384fcc;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](_0x2a858f){return new UpdateSuggestionMessage(_0x2a858f['id'],_0x2a858f['documentId'],_0x2a858f['hasComments'],_0x2a858f['isHasCommentsModified'],_0x2a858f['state'],_0x2a858f['attributes']?JSON['parse'](_0x2a858f['attributes']):null);}}let ConnectMessage$1=class e extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x3734e8){super(),this['documentId']=_0x3734e8;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x32d878){return new e(_0x32d878['documentId']);}},ConnectResponse$1=class e extends Message{['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(_0x42c397,_0x18960d,_0x49d5c5){super(),this['channel']=_0x42c397,this['_suggestions']=_0x18960d,this['_suggestionsV2']=_0x49d5c5,this['suggestions']=_0x49d5c5?.['length']?_0x49d5c5:_0x18960d;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](_0xd7b2eb=>JSON['stringify'](_0xd7b2eb)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](_0x33956e){return new e(_0x33956e['channel'],_0x33956e['suggestions']?.['map'](_0x55188f=>JSON['parse'](_0x55188f)),_0x33956e['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['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(_0x11e733,_0x26969a,_0x6c84a6){super(),this['ids']=_0x11e733,this['documentId']=_0x26969a,this['state']=_0x6c84a6;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](_0x2dad5b){return new BatchUpdateSuggestionsStateMessage(_0x2dad5b['ids'],_0x2dad5b['documentId'],_0x2dad5b['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_0xe7e94c){super(),this['_documentId']=_0xe7e94c;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x134707){if(this['_isConnected'])return;if(_0x134707['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x134707);const _0x1914b9=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=_0x134707,this['stopListening'](_0x134707,'change:state');const _0x3e4afd=await _0x134707['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](_0x1914b9)),_0x4d3582=MessagesCompressor['decode'](_0x3e4afd,ConnectResponse$1);return this['listenTo'](_0x134707,'change:state',(_0x31608d,_0x11bfbe,_0x1ba1c7)=>this['_onWsGatewayStateChange'](_0x1ba1c7),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x134707,_0x4d3582['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x4d3582['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'](_0x965130,_0x33e12e,_0x1e7b91,_0x133d2e=null,_0x4c8598){const _0x4f15d7=new AddSuggestionMessage(_0x965130,this['_documentId'],_0x33e12e,_0x1e7b91,_0x133d2e,_0x4c8598),_0x3c8b40=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x4f15d7);return MessagesCompressor['decode'](_0x3c8b40,AddSuggestionResponse);}async['get'](_0x55427e,_0x2da316=0x1){const _0xea46de=new GetSuggestionMessage(_0x55427e,this['_documentId']);try{const _0xb2aa69=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0xea46de);return MessagesCompressor['decode'](_0xb2aa69,GetSuggestionResponse);}catch(_0x5884b8){if('CKEditorCloudServicesServerError'===_0x5884b8['name']&&'404'===_0x5884b8['code']&&_0x2da316<0x5)return await(_0x1e9bd0=0x64*_0x2da316,new Promise(_0x7734d9=>{setTimeout(_0x7734d9,_0x1e9bd0);})),this['get'](_0x55427e,_0x2da316+0x1);if('CKEditorCloudServicesServerError'===_0x5884b8['name'])throw _0x5884b8;throw CKEditorCloudServicesServerError['fromPublicError'](_0x5884b8);}var _0x1e9bd0;}async['getAll'](){const _0x3454a6=new GetAllSuggestionsMessage(this['_documentId']),_0x230e15=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x3454a6),{suggestions:_0x2f9492}=MessagesCompressor['decode'](_0x230e15,GetAllSuggestionResponse);return _0x2f9492;}async['update'](_0x7550e8,_0x27e858={}){const {hasComments:_0x462318,state:_0x25053c,attributes:_0x3ea7a5}=_0x27e858,_0x412922=void 0x0!==_0x462318,_0x1250cb=new UpdateSuggestionMessage(_0x7550e8,this['_documentId'],_0x462318,_0x412922,_0x25053c,_0x3ea7a5);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x1250cb);}async['batchUpdateState'](_0x285f49){const _0x28e53c=new BatchUpdateSuggestionsStateMessage(_0x285f49['ids'],this['_documentId'],_0x285f49['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x28e53c);}['_connectToChannel'](_0x2b4862,_0x2c4a88){this['_channel']=_0x2b4862['_getChannel'](TrackChangesService['_SERVICE'],_0x2c4a88),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(_0x58514d,_0x4aceab)=>{const _0x888923=MessagesCompressor['decode'](_0x4aceab,UpdateSuggestionMessage);this['fire']('suggestionUpdated',_0x888923);});}['_onWsGatewayStateChange'](_0x590697){_0x590697===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x13fb51,_0x26199a){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,_0x13fb51,MessagesCompressor['encode'](_0x26199a));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x55af3c,_0x60837a=[]){super(),this['channel']=_0x55af3c,this['sockets']=_0x60837a;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](_0x404135=>({'user':_0x404135['userId'],'session':_0x404135['id'],'role':_0x404135['role'],'permissions':_0x404135['permissions']}))};}static['fromJSON'](_0x4f0d2c){return new SessionsConnectResponse(_0x4f0d2c['channel'],_0x4f0d2c['sockets']['map'](_0x5a8eb3=>({'id':_0x5a8eb3['session'],'userId':_0x5a8eb3['user'],'role':_0x5a8eb3['role'],'permissions':_0x5a8eb3['permissions']})));}}class SessionsConnectMessage extends Message{['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(_0x1e80a2,_0xab01c3){super(),this['id']=_0x1e80a2,this['sessionType']=_0xab01c3;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](_0x1da67c){return new SessionsConnectMessage(_0x1da67c['id'],_0x1da67c['sessionType']);}}class SocketConnectMessage extends Message{['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(_0x4d5223,_0x52171e,_0x2c4165,_0x4ee5b6){super(),this['id']=_0x4d5223,this['userId']=_0x52171e,this['role']=_0x2c4165,this['permissions']=_0x4ee5b6;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](_0x277d4f){return new SocketConnectMessage(_0x277d4f['id'],_0x277d4f['userId'],_0x277d4f['role'],_0x277d4f['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x21ddce){super(),this['id']=_0x21ddce;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](_0x7004b1){return new SocketDisconnectMessage(_0x7004b1['id']);}}class SessionCollection extends Collection$1{['_id'];['_sessionType'];['_handlers']=new Map();['_channel'];['_wsGateway'];['_connected'];['_eventsQueue']=[];['_isRunning']=!0x1;constructor(_0x46ae95,_0x578943){super({'idProperty':'id'}),this['_id']=_0x46ae95,this['_sessionType']=_0x578943;}async['connect'](_0x3b5f92){this['_wsGateway']=_0x3b5f92,this['stopListening'](_0x3b5f92,'change:state');const _0x3f7c0a=new SessionsConnectMessage(this['_id'],this['_sessionType']);let _0xd21b5f;try{const _0x22fed4=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x3f7c0a));_0xd21b5f=MessagesCompressor['decode'](_0x22fed4,SessionsConnectResponse);}catch(_0x41e58a){_0xd21b5f=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],_0xd21b5f['channel'],this['_sessionType']);const _0x20ca9a=await async function(_0x8f10b8,_0x48c650){const _0x1c707e=_0x48c650['map'](_0x3e2afc=>_0x3e2afc['userId']),_0x838b79=_0x1c707e['length']?await User['getMany'](_0x8f10b8,_0x1c707e):[];return _0x48c650['map'](_0x359459=>{const _0x4157d0={'id':_0x359459['id'],'role':_0x359459['role'],'permissions':_0x359459['permissions']};return _0x4157d0['user']=_0x359459['userId']&&_0x838b79['find'](_0x301a0c=>_0x301a0c['id']===_0x359459['userId'])||new User(),_0x4157d0;});}(this['_wsGateway'],_0xd21b5f['sockets']);for(const _0x50a456 of _0x20ca9a)super['add'](_0x50a456);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x3ab4a4,_0x2fc984,_0x4e3ad7)=>this['_onWsGatewayStateChange'](_0x4e3ad7),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x51aa75=!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']&&_0x51aa75&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x51aa75&&this['stopListening']();}}['add'](_0x21d7bc,_0x36fae7){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0xfb8756){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](_0x2e69aa,_0x27357d,_0x144e85){this['_channel']=_0x2e69aa['_getChannel'](_0x144e85,_0x27357d),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async _0xea646a=>{const _0x55ffcc=MessagesCompressor['decode'](_0xea646a,SocketConnectMessage);if(-0x1===this['getIndex'](_0x55ffcc['id'])){const _0x6ac34f={'id':_0x55ffcc['id'],'role':_0x55ffcc['role'],'permissions':_0x55ffcc['permissions']};_0x55ffcc['userId']&&(_0x6ac34f['user']=await User['get'](_0x2e69aa,_0x55ffcc['userId'])),super['add'](_0x6ac34f);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],_0x48d9a9=>{const _0x13265c=MessagesCompressor['decode'](_0x48d9a9,SocketDisconnectMessage);-0x1!==this['getIndex'](_0x13265c['id'])&&super['remove'](_0x13265c['id']);}));}async['_onWsGatewayStateChange'](_0x38bf71){_0x38bf71===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect'](!0x1),_0x38bf71===WebSocketGateway$1['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let _0x2d95d8;for(this['_isRunning']=!0x0;_0x2d95d8=this['_eventsQueue']['shift']();){const _0x413be1=this['_handlers']['get'](_0x2d95d8['eventName']);_0x413be1&&await _0x413be1(_0x2d95d8['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x4780d5,_0x3e6833,_0x5b29e3){const _0x1082d5=_0x4780d5['getEventName'](_0x3e6833,!0x0);this['listenTo'](_0x4780d5,_0x1082d5,async(_0x203eab,_0x4744d0)=>{const _0x37e588=_0x203eab['name'];this['_eventsQueue']['push']({'eventName':_0x37e588,'data':_0x4744d0}),await this['_runQueue']();}),this['_handlers']['set'](_0x1082d5,_0x5b29e3);}}let Sessions$1=class{static async['getConnectedSessions'](_0x15dcf4,_0x423a5e,_0x18c0c1){const _0x1c41a2=new SessionCollection(_0x423a5e,_0x18c0c1);return await _0x1c41a2['connect'](_0x15dcf4),_0x1c41a2;}};class CollaborativeEditingConnectMessage extends Message{['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(_0x5ebd44,_0x7a3c92,_0x4412bb,_0x2b9bd0,_0x25d612=''){super(),this['id']=_0x5ebd44,this['buffers']=_0x7a3c92,this['types']=_0x4412bb,this['bundleVersion']=_0x2b9bd0,this['lastOperationId']=_0x25d612;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x240eac){return new CollaborativeEditingConnectMessage(_0x240eac['id'],_0x240eac['buffers'],_0x240eac['types'],_0x240eac['bundleVersion'],_0x240eac['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x32f305,_0x3d34fc){if(!_0x32f305?.['length']||!_0x3d34fc?.['length'])return[];const _0x21229a=[];let _0x2beddc=0x0;for(const _0x428357 of _0x32f305)if(0x0!==_0x428357){if(!_0x3d34fc[_0x2beddc])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x21229a['push'](_0x3d34fc[_0x2beddc]),_0x2beddc++;}else _0x21229a['push'](_0x21229a[_0x21229a['length']-0x1]);return _0x21229a;}static['removeUnnecessaryMetadata'](_0x4f9b61,_0xb985d6){if(!_0x4f9b61?.['length']||!_0xb985d6?.['length'])return[];const _0x118d19=[];for(let _0x577e4f=0x0;_0x577e4f<_0x4f9b61['length'];_0x577e4f++)if(0x0!==_0x4f9b61[_0x577e4f]){if(!_0xb985d6[_0x577e4f])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x118d19['push'](_0xb985d6[_0x577e4f]);}return _0x118d19;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:_0x298c20,..._0x5b745c}){const _0x161cc1={..._0x5b745c};return _0x298c20?.['toISOString']&&(_0x161cc1['createdAt']=_0x298c20['toISOString']()),_0x161cc1;}static['fromJSON']({createdAt:_0x4e3cf8,..._0x7b1212}){const _0x18c843={..._0x7b1212};return _0x4e3cf8&&(_0x18c843['createdAt']=new Date(_0x4e3cf8)),_0x18c843;}}class CollaborativeEditingUpdateMessage extends Message{['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(_0x6588bd,_0xbd948c,_0x14e7be,_0x4e64f4,_0x3bd10f=[],_0x2d83bd=''){super(),this['id']=_0x6588bd,this['buffers']=_0xbd948c,this['types']=_0x14e7be,this['baseVersion']=_0x4e64f4,this['metadata']=_0x3bd10f,this['lastOperationId']=_0x2d83bd;}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':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x205a6c){return new CollaborativeEditingUpdateMessage(_0x205a6c['id'],_0x205a6c['buffers'],_0x205a6c['types'],_0x205a6c['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x205a6c['types'],_0x205a6c['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x205a6c['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['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(_0x397aed,_0x159033,_0x3591c5){super(),this['id']=_0x397aed,this['lastKnowVersion']=_0x159033,this['bundleVersion']=_0x3591c5;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x1e3437){return new CollaborativeEditingReconnectMessage(_0x1e3437['id'],_0x1e3437['lastKnowVersion'],_0x1e3437['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['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(_0x1eb006,_0x57bbb8=[],_0x2b2395=[],_0x24be19=[],_0x432fa7='',_0x9aadcb=null){super(),this['version']=_0x1eb006,this['buffers']=_0x57bbb8,this['types']=_0x2b2395,this['metadata']=_0x24be19,this['lastOperationId']=_0x432fa7,this['lastOperationAcceptedAt']=_0x9aadcb;}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':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x58ad45){return new CollaborativeEditingResponse(_0x58ad45['version'],_0x58ad45['buffers'],_0x58ad45['types'],OperationMetadataHelpers['prepareMetadataForOperations'](_0x58ad45['types'],_0x58ad45['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),_0x58ad45['lastOperationId'],_0x58ad45['lastOperationAcceptedAt']?new Date(_0x58ad45['lastOperationAcceptedAt']):null);}static['create'](_0x1644c0){return new CollaborativeEditingResponse(_0x1644c0['version'],_0x1644c0['buffers'],_0x1644c0['types'],_0x1644c0['metadata'],_0x1644c0['lastOperationId'],_0x1644c0['lastOperationAcceptedAt']?new Date(_0x1644c0['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
((()=>({'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':OperationMetadataDescriptor['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(_0x33e99c,_0x2e29da,_0x14320d=[],_0x2b0798=[],_0x371309=0x0,_0x539112=[],_0x49111e=null,_0x5466da='',_0x29c280='',_0x280c39=null){super(),this['channel']=_0x33e99c,this['version']=_0x2e29da,this['buffers']=_0x14320d,this['types']=_0x2b0798,this['offset']=_0x371309,this['metadata']=_0x539112,this['initData']=_0x49111e,this['sessionId']=_0x5466da,this['lastOperationId']=_0x29c280,this['sessionCreatedAt']=_0x280c39;}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':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x545d25){return new CollaborativeEditingConnectResponse(_0x545d25['channel'],_0x545d25['version'],_0x545d25['buffers'],_0x545d25['types'],_0x545d25['offset'],_0x545d25['metadata'],_0x545d25['initData'],_0x545d25['sessionId'],_0x545d25['lastOperationId'],_0x545d25['sessionCreatedAt']);}static['fromJSON'](_0x162113){let _0x456e97=null;return!0x0===_0x162113['isInitialized']?_0x456e97=_0x162113['initData']??'':'boolean'!=typeof _0x162113['isInitialized']&&_0x162113['initData']&&(_0x456e97=_0x162113['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x162113['channel'],'version':_0x162113['version'],'buffers':_0x162113['buffers'],'types':_0x162113['types'],'offset':_0x162113['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](_0x162113['types'],_0x162113['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':_0x456e97,'sessionId':_0x162113['sessionId'],'lastOperationId':_0x162113['lastOperationId'],'sessionCreatedAt':_0x162113['sessionCreatedAt']?new Date(_0x162113['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['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(_0x30a286,_0x1449ac){super(),this['lastDocumentSession']=_0x30a286,this['currentDocumentSession']=_0x1449ac;}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'](_0x3ffa15){const _0xbb06f6=_0x3ffa15['lastDocumentSessionId']?{'id':_0x3ffa15['lastDocumentSessionId'],'lastOperationId':_0x3ffa15['lastDocumentSessionOperationId']}:void 0x0,_0x11d399=_0x3ffa15['currentDocumentSessionId']?{'lastOperationId':_0x3ffa15['currentDocumentSessionOperationId'],'version':_0x3ffa15['currentDocumentSessionVersion'],'id':_0x3ffa15['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0xbb06f6,_0x11d399);}}class GetDocumentDetailsMessage extends Message{['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(_0x1e6f39){super(),this['documentId']=_0x1e6f39;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x47405c){return new GetDocumentDetailsMessage(_0x47405c['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x1cb3c0,_0x3d2a22){if(super(),!_0x1cb3c0)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x3d2a22??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x1cb3c0;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5ee8b8,_0xddc031={'buffers':[],'types':[]},_0x39965a){const _0x328db0=new CollaborativeEditingConnectMessage(this['getId'](),_0xddc031['buffers'],_0xddc031['types'],this['_bundleVersion'],_0x39965a);return this['_connect'](_0x5ee8b8,_0x328db0);}['reconnect'](_0x399b1f,_0x3dfdb9){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x399b1f);return this['_connect'](_0x399b1f,new CollaborativeEditingReconnectMessage(this['getId'](),_0x3dfdb9,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 _0x78f738=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x24b83a=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x78f738));return MessagesCompressor['decode'](_0x24b83a,GetDocumentDetailsResponse);}async['sendOperations'](_0x14ba31,_0x3141a6,_0x244b45){if(!_0x14ba31?.['types']?.['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x1cfca9='number'==typeof _0x3141a6?_0x3141a6:parseInt(_0x3141a6);if(!Number['isInteger'](_0x1cfca9)||_0x1cfca9<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x4d4ddc=new CollaborativeEditingUpdateMessage(this['getId'](),_0x14ba31['buffers'],_0x14ba31['types'],_0x1cfca9,[],_0x244b45);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x2cdbeb=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x4d4ddc));return MessagesCompressor['decode'](_0x2cdbeb,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x5ee801,_0x2a4af7){return Sessions$1['getConnectedSessions'](_0x5ee801,_0x2a4af7,0x1);}async['_connect'](_0x537938,_0x272823){if(this['isConnected']())return;if(_0x537938['state']!==WebSocketGateway$1['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x537938);this['_wsGateway']=_0x537938,this['stopListening'](_0x537938,'change:state');const _0x12b815=await _0x537938['_sendRequest'](0x1,_0x272823['constructor']['TYPE'],MessagesCompressor['encode'](_0x272823)),_0x4d5b14=MessagesCompressor['decode'](_0x12b815,CollaborativeEditingConnectResponse);return this['listenTo'](_0x537938,'change:state',(_0x1d5d2b,_0x29e508,_0x188d0b)=>this['_onWsGatewayStateChange'](_0x188d0b),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x537938,_0x4d5b14['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x4d5b14;}['_connectToChannel'](_0x4ddb9c,_0x3c0900){this['_channel']=_0x4ddb9c['_getChannel'](0x1,_0x3c0900),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(_0x232c22,_0x585b88)=>{const _0x246fff=MessagesCompressor['decode'](_0x585b88,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',_0x246fff['baseVersion'],_0x246fff['data'],_0x246fff['metadata']);});}['_onWsGatewayStateChange'](_0x330471){_0x330471===WebSocketGateway$1['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{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'](_0x506df3){return{..._0x506df3,'createdAt':_0x506df3['createdAt']?.['toISOString'](),'attributes':_0x506df3['attributes']?JSON['stringify'](_0x506df3['attributes']):null};}static['fromJSON'](_0x2f2b92){return{..._0x2f2b92,'createdAt':new Date(_0x2f2b92['createdAt']),'attributes':_0x2f2b92['attributes']?JSON['parse'](_0x2f2b92['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{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'](_0x48f57f){return{..._0x48f57f,'createdAt':_0x48f57f['createdAt']?.['toISOString'](),'deletedAt':_0x48f57f['deletedAt']?.['toISOString'](),'resolvedAt':_0x48f57f['resolvedAt']?.['toISOString'](),'attributes':_0x48f57f['attributes']?JSON['stringify'](_0x48f57f['attributes']):null,'context':_0x48f57f['context']?JSON['stringify'](_0x48f57f['context']):_0x48f57f['context'],'comments':_0x48f57f['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':_0x48f57f['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x40bd01){return{..._0x40bd01,'createdAt':_0x40bd01['createdAt']?new Date(_0x40bd01['createdAt']):void 0x0,'deletedAt':_0x40bd01['deletedAt']?new Date(_0x40bd01['deletedAt']):void 0x0,'resolvedAt':_0x40bd01['resolvedAt']?new Date(_0x40bd01['resolvedAt']):void 0x0,'attributes':_0x40bd01['attributes']?JSON['parse'](_0x40bd01['attributes']):null,'context':_0x40bd01['context']?JSON['parse'](_0x40bd01['context']):void 0x0,'comments':_0x40bd01['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':_0x40bd01['unlinkedAt']?new Date(_0x40bd01['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['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(_0x1b6565,_0x105477,_0x5d27e7,_0x5cec5c='',_0x59fda0,_0x472bac='',_0x3d43d2=null,_0x2ed4e1){super(),this['documentId']=_0x1b6565,this['commentThreadId']=_0x105477,this['content']=_0x5d27e7,this['commentId']=_0x5cec5c,this['userId']=_0x472bac,this['attributes']=_0x3d43d2,this['commentThread']=_0x2ed4e1,this['createdAt']=_0x59fda0?new Date(_0x59fda0):'';}['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']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x44a436){return new AddCommentMessage(_0x44a436['documentId'],_0x44a436['commentThreadId'],_0x44a436['content'],_0x44a436['commentId']?_0x44a436['commentId']:void 0x0,_0x44a436['createdAt']?new Date(_0x44a436['createdAt']):void 0x0,_0x44a436['userId']?_0x44a436['userId']:void 0x0,_0x44a436['attributes']?JSON['parse'](_0x44a436['attributes']):{},_0x44a436['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x44a436['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['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(_0x27738b,_0x16da25,_0x201750){super(),this['commentThreadId']=_0x27738b,this['commentId']=_0x16da25,this['createdAt']=new Date(_0x201750);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](_0x2121fd){return new AddCommentResponse(_0x2121fd['commentThreadId'],_0x2121fd['commentId'],_0x2121fd['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x5568aa){super(),this['documentId']=_0x5568aa;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x75cd2){return new ConnectMessage(_0x75cd2['documentId']);}}class ConnectResponse extends Message{['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(_0x299ae9,_0x1769db,_0x3bb4e8){super(),this['channel']=_0x299ae9,this['_threads']=_0x1769db,this['_threadsV2']=_0x3bb4e8,this['threads']=_0x3bb4e8?.['length']?_0x3bb4e8:_0x1769db;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](_0x74cc24=>JSON['stringify'](_0x74cc24)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x474f9d){return new ConnectResponse(_0x474f9d['channel'],_0x474f9d['threads']?.['map'](_0x3f8903=>JSON['parse'](_0x3f8903)),_0x474f9d['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['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(_0x574e37,_0x4f529e,_0x3b645d){super(),this['documentId']=_0x574e37,this['commentThreadId']=_0x4f529e,this['commentId']=_0x3b645d;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](_0x17a36f){return new RemoveCommentMessage(_0x17a36f['documentId'],_0x17a36f['commentThreadId'],_0x17a36f['commentId']);}}class RemoveCommentThreadMessage extends Message{['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(_0x4abfca,_0x41f7d4){super(),this['documentId']=_0x4abfca,this['commentThreadId']=_0x41f7d4;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x5d4c12){return new RemoveCommentThreadMessage(_0x5d4c12['documentId'],_0x5d4c12['commentThreadId']);}}class UpdateCommentMessage extends Message{['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(_0x114fb3,_0x1d808a,_0x40d14c,_0xcbef69,_0x1eb6aa=null,_0x33670a=!0x1,_0xdfb54e){super(),this['documentId']=_0x114fb3,this['commentThreadId']=_0x1d808a,this['commentId']=_0x40d14c,this['content']=_0xcbef69,this['attributes']=_0x1eb6aa,this['isAttributesUpdated']=_0x33670a,this['commentThread']=_0xdfb54e;}['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']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x4f3fc0){return new UpdateCommentMessage(_0x4f3fc0['documentId'],_0x4f3fc0['commentThreadId'],_0x4f3fc0['commentId'],_0x4f3fc0['content'],_0x4f3fc0['attributes']?JSON['parse'](_0x4f3fc0['attributes']):null,_0x4f3fc0['isAttributesUpdated'],_0x4f3fc0['commentThread']?CommentsThreadDescriptor['fromJSON'](_0x4f3fc0['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['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(_0xc48221,_0x4443d6){super(),this['commentThreadId']=_0xc48221,this['documentId']=_0x4443d6;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](_0xf539aa){return new GetCommentThreadMessage(_0xf539aa['commentThreadId'],_0xf539aa['documentId']);}}class GetCommentThreadResponse extends Message{['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(_0x12b1b0,_0x16f1f0,_0x3ff7d2,_0xd3e565,_0x4c20f2,_0x1a1a4f,_0x15c818,_0x5b6e9e,_0x1b837e,_0x58beaf){super(),this['commentThreadId']=_0x12b1b0,this['_comments']=_0x16f1f0,this['_commentsV2']=_0x3ff7d2,this['resolvedBy']=_0x4c20f2,this['comments']=_0x3ff7d2?.['length']?_0x3ff7d2:_0x16f1f0,this['createdAt']=_0x15c818?new Date(_0x15c818):void 0x0,this['deletedAt']='string'==typeof _0x5b6e9e?new Date(_0x5b6e9e):_0x5b6e9e,this['resolvedAt']='string'==typeof _0x1b837e?new Date(_0x1b837e):_0x1b837e,this['unlinkedAt']='string'==typeof _0x58beaf?new Date(_0x58beaf):_0x58beaf,this['attributes']='string'==typeof _0xd3e565?JSON['parse'](_0xd3e565):_0xd3e565,this['context']='string'==typeof _0x1a1a4f?JSON['parse'](_0x1a1a4f):_0x1a1a4f;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](_0x5933fe=>JSON['stringify'](_0x5933fe)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['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'](_0xc053df){return new GetCommentThreadResponse(_0xc053df['commentThreadId'],_0xc053df['comments']?.['map'](_0x3b3141=>function(_0x362485){const _0x262078=JSON['parse'](_0x362485);return{..._0x262078,'createdAt':new Date(_0x262078['createdAt'])};}(_0x3b3141)),_0xc053df['commentsV2']?.['map'](CommentDescriptor['fromJSON']),_0xc053df['attributes']?JSON['parse'](_0xc053df['attributes']):_0xc053df['attributes'],_0xc053df['resolvedBy'],_0xc053df['context']?JSON['parse'](_0xc053df['context']):_0xc053df['context'],_0xc053df['createdAt'],_0xc053df['deletedAt'],_0xc053df['resolvedAt'],_0xc053df['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(_0x1a96e1){super(),this['documentId']=_0x1a96e1;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x28ad27){return new GetDocumentThreadsMessage(_0x28ad27['documentId']);}}class GetDocumentThreadsResponse extends Message{['_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(_0x332992,_0x4959eb){super(),this['_threads']=_0x332992,this['_threadsV2']=_0x4959eb,this['threads']=_0x4959eb?.['length']?_0x4959eb:_0x332992;}['toJSON'](){return{'threads':this['_threads']?.['map'](_0x43502c=>JSON['stringify'](_0x43502c)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](_0x568fd5){return new GetDocumentThreadsResponse(_0x568fd5['threads']?.['map'](_0x29c689=>function(_0x2dc2f6){const _0x3ce5e5=JSON['parse'](_0x2dc2f6),_0x22d6ed={..._0x3ce5e5};return _0x3ce5e5['comments']&&(_0x22d6ed['comments']=_0x3ce5e5['comments']?.['map'](_0x3c3954=>({..._0x3c3954,'createdAt':new Date(_0x3c3954['createdAt'])}))),_0x22d6ed;}(_0x29c689)),_0x568fd5['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x2c3e1b){return{'commentId':_0x2c3e1b['commentId'],'createdAt':_0x2c3e1b['createdAt']?.['toISOString']()};}static['fromJSON'](_0x156daa){return{'commentId':_0x156daa['commentId'],'createdAt':new Date(_0x156daa['createdAt'])};}}class AddCommentThreadResponse extends Message{['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(_0xab9ac5,_0x21f144,_0x8eeb88=[]){super(),this['commentThreadId']=_0xab9ac5,this['comments']=_0x8eeb88,this['createdAt']=new Date(_0x21f144);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](_0x2edb82=>CommentThreadAddedCommentDescriptor['toJSON'](_0x2edb82))};}static['fromJSON'](_0x3cb0e3){return new AddCommentThreadResponse(_0x3cb0e3['commentThreadId'],_0x3cb0e3['createdAt'],_0x3cb0e3['comments']['map'](_0xe026d8=>CommentThreadAddedCommentDescriptor['fromJSON'](_0xe026d8)));}}class AddCommentThreadMessage extends Message{['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(_0x2302a3,_0x3f0b10,_0x5f4b45=[],_0x87e013,_0x50e20b=null,_0xed2c3b=null,_0x2a24a6=null,_0x40444c=null,_0x34c06f=null){super(),this['documentId']=_0x2302a3,this['commentThreadId']=_0x3f0b10,this['comments']=_0x5f4b45,this['context']=_0x87e013,this['resolvedBy']=_0x50e20b,this['attributes']=_0x34c06f,this['createdAt']=_0xed2c3b?new Date(_0xed2c3b):'',this['resolvedAt']=_0x2a24a6?new Date(_0x2a24a6):'',this['deletedAt']=_0x40444c?new Date(_0x40444c):'';}['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'](_0xf57b4d=>CommentDescriptor['toJSON'](_0xf57b4d))};}static['fromJSON'](_0x472cb9){return new AddCommentThreadMessage(_0x472cb9['documentId'],_0x472cb9['commentThreadId'],_0x472cb9['comments']?.['map'](_0x268a85=>CommentDescriptor['fromJSON']({..._0x268a85,'documentId':_0x472cb9['documentId'],'commentThreadId':_0x472cb9['commentThreadId']})),_0x472cb9['context']?JSON['parse'](_0x472cb9['context']):_0x472cb9['context'],_0x472cb9['resolvedBy'],_0x472cb9['createdAt']?new Date(_0x472cb9['createdAt']):void 0x0,_0x472cb9['resolvedAt']?new Date(_0x472cb9['resolvedAt']):void 0x0,_0x472cb9['deletedAt']?new Date(_0x472cb9['deletedAt']):void 0x0,_0x472cb9['attributes']?JSON['parse'](_0x472cb9['attributes']):_0x472cb9['attributes']);}}class ResolveCommentThreadMessage extends Message{['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(_0x13a63c,_0x498cdc,_0xfb25c6,_0x3ea01b){super(),this['commentThreadId']=_0x13a63c,this['documentId']=_0x498cdc,this['resolvedBy']=_0xfb25c6,this['resolvedAt']=_0x3ea01b?new Date(_0x3ea01b):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x85f8d9){return new ResolveCommentThreadMessage(_0x85f8d9['commentThreadId'],_0x85f8d9['documentId'],_0x85f8d9['resolvedBy'],_0x85f8d9['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['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(_0x5d5bd1,_0xaded2b){super(),this['commentThreadId']=_0x5d5bd1,this['documentId']=_0xaded2b;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x24cbc6){return new ReopenCommentThreadMessage(_0x24cbc6['commentThreadId'],_0x24cbc6['documentId']);}}class UpdateCommentThreadMessage extends Message{['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(_0x5df9e3,_0x348f37,_0x5b5bf2,_0x377714=null,_0x5431bc=null){super(),this['commentThreadId']=_0x5df9e3,this['documentId']=_0x348f37,this['context']=_0x5b5bf2,this['attributes']=_0x377714,this['unlinkedAt']=_0x5431bc?new Date(_0x5431bc):'';}['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'](_0x4ce242){return new UpdateCommentThreadMessage(_0x4ce242['commentThreadId'],_0x4ce242['documentId'],_0x4ce242['context']?JSON['parse'](_0x4ce242['context']):_0x4ce242['context'],_0x4ce242['attributes']?JSON['parse'](_0x4ce242['attributes']):null,_0x4ce242['unlinkedAt']?new Date(_0x4ce242['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['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(_0x425851,_0x140aa2,_0x44c794,_0x2de7c4){super(),this['commentThreadId']=_0x425851,this['documentId']=_0x140aa2,this['resolvedBy']=_0x44c794,this['resolvedAt']=new Date(_0x2de7c4);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](_0x51656a){return new ResolveCommentThreadResponse(_0x51656a['commentThreadId'],_0x51656a['documentId'],_0x51656a['resolvedBy'],_0x51656a['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
EmitterMixin$1(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x1b6b93){super(),this['_documentId']=_0x1b6b93;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x43e93d){if(this['_isConnected'])return;if(_0x43e93d['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x43e93d);const _0x397d11=new ConnectMessage(this['_documentId']);this['_wsGateway']=_0x43e93d,this['stopListening'](_0x43e93d,'change:state');const _0x14e0f2=await _0x43e93d['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](_0x397d11)),{channel:_0x177b07,threads:_0x4d9dcc}=MessagesCompressor['decode'](_0x14e0f2,ConnectResponse);return this['listenTo'](_0x43e93d,'change:state',(_0x529b59,_0x5575c1,_0x997ac4)=>this['_onWsGatewayStateChange'](_0x997ac4),{'priority':WebSocketGateway$1['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x43e93d,_0x177b07),this['_isConnected']=!0x0,this['fire']('connected'),_0x4d9dcc;}['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'](_0x2224ae,_0x40815c,_0x5251ea,_0x430ce4){const _0x47fa3c=new AddCommentMessage(this['_documentId'],_0x2224ae,_0x5251ea,_0x40815c,void 0x0,void 0x0,_0x430ce4),_0x5e9738=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x47fa3c);return MessagesCompressor['decode'](_0x5e9738,AddCommentResponse);}async['updateComment'](_0x1af5dd,_0x579b51,_0x2c0ccd,_0x3e7c09){const _0x3da4c0=void 0x0!==_0x3e7c09,_0x5c08c3=new UpdateCommentMessage(this['_documentId'],_0x1af5dd,_0x579b51,_0x2c0ccd,_0x3e7c09,_0x3da4c0);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x5c08c3);}async['removeComment'](_0x1c97e3,_0x50b9b9){const _0x47c7e2=new RemoveCommentMessage(this['_documentId'],_0x1c97e3,_0x50b9b9);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x47c7e2);}async['removeCommentThread'](_0x47ab24){const _0x4857d4=new RemoveCommentThreadMessage(this['_documentId'],_0x47ab24);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x4857d4);}async['addCommentThread'](_0x3e1da7){const _0x211272=new AddCommentThreadMessage(this['_documentId'],_0x3e1da7['commentThreadId'],_0x3e1da7['comments']?.['map'](_0x450fc3=>({..._0x450fc3,'documentId':this['_documentId'],'commentThreadId':_0x3e1da7['commentThreadId']})),_0x3e1da7['context'],_0x3e1da7['resolvedBy'],_0x3e1da7['createdAt'],_0x3e1da7['resolvedAt'],_0x3e1da7['deletedAt'],_0x3e1da7['attributes']),_0x4cc9d1=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x211272);return MessagesCompressor['decode'](_0x4cc9d1,AddCommentThreadResponse);}async['resolveCommentThread'](_0x227662){const _0x1c0d5c=new ResolveCommentThreadMessage(_0x227662,this['_documentId']),_0x1eb53f=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x1c0d5c);return MessagesCompressor['decode'](_0x1eb53f,ResolveCommentThreadResponse);}async['reopenCommentThread'](_0x19278c){const _0x19e682=new ReopenCommentThreadMessage(_0x19278c,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x19e682);}async['updateCommentThread'](_0x1446cf){const _0x598c37=new UpdateCommentThreadMessage(_0x1446cf['commentThreadId'],this['_documentId'],_0x1446cf['context'],_0x1446cf['attributes'],_0x1446cf['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x598c37);}async['getCommentThread'](_0x2dc586,_0x599e80=0x1){const _0x177e87=new GetCommentThreadMessage(_0x2dc586,this['_documentId']);try{const _0xef32d0=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x177e87),_0x1e6858=MessagesCompressor['decode'](_0xef32d0,GetCommentThreadResponse);return{'commentThreadId':_0x1e6858['commentThreadId'],'comments':_0x1e6858['comments'],'attributes':_0x1e6858['attributes'],'context':_0x1e6858['context'],'resolvedAt':_0x1e6858['resolvedAt'],'resolvedBy':_0x1e6858['resolvedBy'],'deletedAt':_0x1e6858['deletedAt'],'unlinkedAt':_0x1e6858['unlinkedAt']};}catch(_0x2e7a06){if('CKEditorCloudServicesServerError'===_0x2e7a06['name']&&'404'===_0x2e7a06['code']&&_0x599e80<0x5)return await(_0x5f0198=0x64*_0x599e80,new Promise(_0x360616=>{setTimeout(_0x360616,_0x5f0198);})),this['getCommentThread'](_0x2dc586,_0x599e80+0x1);if('CKEditorCloudServicesServerError'===_0x2e7a06['name'])throw _0x2e7a06;throw CKEditorCloudServicesServerError['fromPublicError'](_0x2e7a06);}var _0x5f0198;}async['getDocumentThreads'](){const _0x1312a3=new GetDocumentThreadsMessage(this['_documentId']),_0x2dc163=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x1312a3),{threads:_0x10cf4d}=MessagesCompressor['decode'](_0x2dc163,GetDocumentThreadsResponse);return{'threads':_0x10cf4d};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions$1['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x56f01c,_0x500630){this['_channel']=_0x56f01c['_getChannel'](CommentsService['_SERVICE'],_0x500630),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(_0x37f5f1,_0x54c324)=>{const _0x53e1fe=MessagesCompressor['decode'](_0x54c324,AddCommentMessage);this['fire']('commentAdded',_0x53e1fe);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(_0x341d91,_0x40fd4e)=>{const _0x23ef58=MessagesCompressor['decode'](_0x40fd4e,RemoveCommentMessage);this['fire']('commentRemoved',_0x23ef58);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(_0x2cd34e,_0xe22a04)=>{const _0x42b42c=MessagesCompressor['decode'](_0xe22a04,UpdateCommentMessage);this['fire']('commentUpdated',_0x42b42c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(_0x4cd3b5,_0x5212b1)=>{const _0x474e4d=MessagesCompressor['decode'](_0x5212b1,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',_0x474e4d);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(_0x34e223,_0x4e089e)=>{const _0x2873c0=MessagesCompressor['decode'](_0x4e089e,AddCommentThreadMessage);this['fire']('commentThreadAdded',_0x2873c0);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(_0x46b6c6,_0x275bf1)=>{const _0x5d1313=MessagesCompressor['decode'](_0x275bf1,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',_0x5d1313);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(_0x518688,_0xee16b5)=>{const _0x45aa73=MessagesCompressor['decode'](_0xee16b5,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',_0x45aa73);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(_0x14d720,_0x5b4f20)=>{const _0x3ed9d1=MessagesCompressor['decode'](_0x5b4f20,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',_0x3ed9d1);}));}['_onWsGatewayStateChange'](_0x32207b){_0x32207b===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0xd19352,_0x2e94a2){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0xd19352,MessagesCompressor['encode'](_0x2e94a2));}}class WebSocketGateway extends ContextPlugin{static ['WebSocketGateway']=/* #__PURE__ -- @preserve */
((()=>WebSocketGateway$1)());static ['initialReconnectionInterval']=0x3e8;['connection'];['_reconnectionStack'];['_shouldPluginsReconnect'];['_domEmitter'];static get['requires'](){return['CloudServices',Notification];}static get['pluginName'](){return'WebSocketGateway';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54b2a6){super(_0x54b2a6),this['set']('state',WEB_SOCKET_GATEWAY_STATES['CONNECTED']),this['set']('_isBrowserOffline',!0x1),this['_reconnectionStack']=new Set(),this['_shouldPluginsReconnect']=!0x1,this['_domEmitter']=new(DomEmitterMixin())();}['init'](){const _0x5d6004=this['context'],_0x33a67e=_0x5d6004['plugins']['get']('CloudServices'),_0x306ffc=_0x5d6004['plugins']['get'](Notification);if(!_0x33a67e['token'])throw new CKEditorError('websocketgateway-missing-token',this);if(!_0x33a67e['webSocketUrl'])throw new CKEditorError('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'](_0x33a67e['token'],_0x33a67e['webSocketUrl'],{'timeout':0x3e8*this['context']['config']['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this['context']['config']['get']('cloudServices.requestTimeout')})['then'](_0x17cea6=>{if(this['connection']=_0x17cea6,this['bind']('state')['to'](_0x17cea6,'state',this,'_isBrowserOffline',(_0x594091,_0x32baed)=>('connected'!==_0x594091&&(this['_shouldPluginsReconnect']=!0x0),_0x32baed||_0x594091!==WEB_SOCKET_GATEWAY_STATES['CONNECTED']?WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']:this['state']==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['_shouldPluginsReconnect']?(this['_shouldPluginsReconnect']=!0x1,this['_reconnect'](),WEB_SOCKET_GATEWAY_STATES['CONNECTING']):WEB_SOCKET_GATEWAY_STATES['CONNECTED'])),this['connection']['on']('error',(_0x110384,_0x24f978)=>{if('limitExceeded'!==_0x24f978['code'])throw console['error'](_0x24f978),new CKEditorError('cloudservices-init',null,{'originalError':_0x24f978});_0x306ffc['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'});}),!_0x17cea6['me'])return new Promise(_0x302137=>_0x17cea6['on']('change:me',_0x302137));})['catch'](_0x55f0a0=>{throw console['error'](_0x55f0a0),new CKEditorError('cloudservices-init',null,{'originalError':_0x55f0a0});});}['addToReconnectionStack'](_0x28a6fb){if('function'!=typeof _0x28a6fb['reconnect'])throw new CKEditorError('websocketgateway-invalid-plugin-interface',this);if(this['isInReconnectionStack'](_0x28a6fb))throw new CKEditorError('websocketgateway-plugin-already-registered',this,{'name':_0x28a6fb['constructor']['pluginName']});this['_reconnectionStack']['add'](_0x28a6fb);}['removeFromReconnectionStack'](_0x3c3353){this['_reconnectionStack']['delete'](_0x3c3353);}['isInReconnectionStack'](_0x58e6eb){return this['_reconnectionStack']['has'](_0x58e6eb);}['_reconnect'](){return this['connection']['reconnect']()['then'](()=>Promise['all'](Array['from'](this['_reconnectionStack'],_0x4ff2e6=>_0x4ff2e6['reconnect']())))['then'](()=>this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'])['catch'](_0x33a8e6=>{throw console['error'](_0x33a8e6),new CKEditorError('cloudservices-reconnection-error',this['context']);});}['disconnect'](){this['connection']&&this['connection']['disconnect'](),this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_domEmitter']['stopListening']();}['destroy'](){this['disconnect'](),super['destroy']();}}class Sessions extends ContextPlugin{['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[WebSocketGateway,Users];}constructor(_0x6b85bd){super(_0x6b85bd),this['channelSessions']=new Map(),this['channelConnectedUsers']=new Map(),this['allConnectedUsers']=new Collection(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this['context']['plugins']['get'](Users);}['init'](){const _0x302cca=this['context']['plugins']['get'](WebSocketGateway);this['listenTo'](_0x302cca,'change:state',(_0x4917b4,_0x5e92b8,_0x2c182e)=>{if('connected'!==_0x2c182e)this['channelSessions']['forEach'](_0xacba4a=>_0xacba4a['clear']()),this['channelConnectedUsers']['forEach'](_0x4103bd=>_0x4103bd['clear']()),this['allConnectedUsers']['clear']();else{for(const [_0x374980,_0x3157af]of this['_registeredSessions'])for(const _0x134140 of _0x3157af)this['_handleSessionAdd'](_0x374980,_0x134140);}}),this['_createUser'](_0x302cca['connection']['me'],!0x0);}['register'](_0x1d95c0,_0x56763d){if(this['_registeredSessions']['has'](_0x1d95c0))throw new CKEditorError('sessions-register-already-registered',null,{'channelId':_0x1d95c0});this['_registeredSessions']['set'](_0x1d95c0,_0x56763d),this['channelSessions']['set'](_0x1d95c0,new Collection()),this['channelConnectedUsers']['set'](_0x1d95c0,new Collection()),this['listenTo'](_0x56763d,'add',(_0x568fd8,_0x5b5cad)=>this['_handleSessionAdd'](_0x1d95c0,_0x5b5cad)),this['listenTo'](_0x56763d,'remove',(_0x4caff7,_0x3a7538)=>this['_handleSessionRemove'](_0x1d95c0,_0x3a7538));for(const _0x5aca7d of _0x56763d)this['_handleSessionAdd'](_0x1d95c0,_0x5aca7d);}['unregister'](_0x1dfe6d){if(!this['_registeredSessions']['has'](_0x1dfe6d))throw new CKEditorError('sessions-unregister-not-exist',null,{'channelId':_0x1dfe6d});const _0x321ab1=this['_registeredSessions']['get'](_0x1dfe6d);this['stopListening'](_0x321ab1);for(const _0x2c4315 of _0x321ab1)'connected'===this['context']['plugins']['get'](WebSocketGateway)['state']&&this['_handleSessionRemove'](_0x1dfe6d,_0x2c4315);this['_registeredSessions']['delete'](_0x1dfe6d),this['channelSessions']['delete'](_0x1dfe6d),this['channelConnectedUsers']['delete'](_0x1dfe6d);}get['mySessionId'](){return this['context']['plugins']['get'](WebSocketGateway)['connection']['sessionId'];}['getUserBySessionId'](_0x2e11a4){for(const _0x1da743 of this['channelSessions']['values']())for(const _0x268f49 of _0x1da743)if(_0x268f49['id']===_0x2e11a4)return _0x268f49['user'];}['getUserSessions'](_0x1b898b,_0x38c4a0){const _0x1e458f=_0x38c4a0?[this['channelSessions']['get'](_0x38c4a0)]:this['channelSessions']['values'](),_0x4ddf2b=new Set();for(const _0x28ce40 of _0x1e458f)for(const _0xa33c41 of _0x28ce40)_0xa33c41['user']['id']===_0x1b898b['id']&&_0x4ddf2b['add'](_0xa33c41['id']);return _0x4ddf2b;}['getUserRole'](_0x357ddb){for(const _0x58791d of this['channelSessions']['values']())for(const _0x1ae7c8 of _0x58791d)if(_0x1ae7c8['user']===_0x357ddb)return _0x1ae7c8['role'];}['_handleSessionAdd'](_0x508f7d,_0x581152){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0x232c33=_0x581152['user'],_0xe1a478=this['_users']['getUser'](_0x232c33['id'])||this['_createUser'](_0x232c33),_0x53dcd8=Object['assign']({},_0x581152,{'user':_0xe1a478});if(this['channelSessions']['get'](_0x508f7d)['add'](_0x53dcd8),!_0x232c33['hiddenInPresenceList']){const _0x59cee9=this['channelConnectedUsers']['get'](_0x508f7d);_0x59cee9['has'](_0xe1a478['id'])||_0x59cee9['add'](_0xe1a478),this['allConnectedUsers']['has'](_0xe1a478['id'])||_0x232c33['hiddenInPresenceList']||this['allConnectedUsers']['add'](_0xe1a478,_0xe1a478['isMe']?0x0:void 0x0);}this['fire']('sessionAdd:'+_0x508f7d,{'channelId':_0x508f7d,'session':_0x53dcd8});}['_handleSessionRemove'](_0x2129de,_0x1c7b27){if('connected'!==this['context']['plugins']['get'](WebSocketGateway)['state'])return;const _0xfab5b5=this['channelConnectedUsers']['get'](_0x2129de),_0x147261=_0x1c7b27['user'];_0x147261['id']&&(this['channelSessions']['get'](_0x2129de)['remove'](_0x1c7b27['id']),_0xfab5b5['has'](_0x147261['id'])&&!this['getUserSessions'](_0x147261,_0x2129de)['size']&&_0xfab5b5['remove'](_0x147261['id']),this['allConnectedUsers']['get'](_0x147261['id'])&&!this['getUserSessions'](_0x147261)['size']&&this['allConnectedUsers']['remove'](_0x147261['id']));}['_createUser'](_0x5c3356,_0x24b4fe){const _0x3361a8=this['_users']['addUser'](_0x5c3356);return _0x24b4fe&&this['_users']['defineMe'](_0x5c3356['id']),_0x3361a8['orderNumber']=this['_uniqueUsersCount']++,_0x3361a8;}}class UserMarkers extends Plugin{['_domEmitter']=new(DomEmitterMixin())();static get['requires'](){return[Sessions];}static get['pluginName'](){return'UserMarkers';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43aa56=this['editor'],_0x3a1c6f=_0x43aa56['plugins']['get'](Sessions);_0x43aa56['conversion']['for']('editingDowncast')['markerToElement']({'model':'user:position','view':(_0x42131c,{writer:_0x5456cd})=>createUserPositionViewElement(_0x42131c,_0x5456cd,_0x3a1c6f,_0x43aa56)}),_0x43aa56['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'user:range','view':_0x53d903=>createUserRangeViewElement(_0x53d903,_0x3a1c6f)}),createUserMarkerPostFixer(_0x43aa56),this['_domEmitter']['listenTo'](_0x59f9c1['document'],'keydown',(_0x5f0d75,{key:_0x34a8e0})=>{'Escape'===_0x34a8e0&&hideHoveredUserPositionMarkersTooltips(_0x43aa56);},{'useCapture':!0x0});}['afterInit'](){const _0x284f59=this['editor'],_0x3fcde2=_0x284f59['commands']['get']('undo');_0x3fcde2&&_0x284f59['model']['on']('applyOperation',(_0x393318,_0x158333)=>{const _0x2be9f1=_0x158333[0x0];if(!_0x2be9f1['isDocumentOperation'])return;if('marker'!=_0x2be9f1['type']||!_0x2be9f1['name']['startsWith']('user:'))return;const _0x14d0e8=_0x2be9f1['batch'];_0x3fcde2['_createdBatches']['has'](_0x14d0e8)&&(_0x2be9f1['newRange']=_0x2be9f1['oldRange']?_0x284f59['model']['createRange'](_0x2be9f1['oldRange']['start'],_0x2be9f1['oldRange']['end']):null);},{'priority':'highest'});}['destroy'](){return this['_domEmitter']['stopListening'](),super['destroy']();}['createUserMarkerOperations'](){const _0x29bc89=this['editor'],_0x54932f=_0x29bc89['model']['document'],_0x303b3e=_0x29bc89['plugins']['get'](Sessions);_0x29bc89['model']['enqueueChange']({'isUndoable':!0x1},_0x116561=>{const _0x42ef5f='user:range:'+_0x303b3e['mySessionId'],_0x5d7a13='user:position:'+_0x303b3e['mySessionId'],_0x4a4bd4=_0x29bc89['model']['markers']['has'](_0x42ef5f);_0x29bc89['editing']['view']['hasDomSelection']?updateUserMarkers(_0x303b3e['mySessionId'],_0x54932f['selection']['getFirstRange'](),_0x29bc89['model'],_0x116561):_0x4a4bd4&&(_0x116561['removeMarker'](_0x42ef5f),_0x116561['removeMarker'](_0x5d7a13));});}}function updateUserMarkers(_0x2ec9e0,_0x395e51,_0x29afaf,_0x2b59f7){const _0x56bf9e='user:range:'+_0x2ec9e0,_0x4c525a='user:position:'+_0x2ec9e0,_0x47ac1d=_0x395e51['getContainedElement']();let _0x7725e1=_0x395e51['start'];if(_0x47ac1d&&_0x47ac1d['is']('element','tableCell')){const _0x3f1c19=getPositionForText(_0x395e51,_0x29afaf);_0x3f1c19&&(_0x7725e1=_0x3f1c19,_0x395e51=_0x2b59f7['createRange'](_0x7725e1));}const _0x349cfa=_0x2b59f7['createRange'](_0x7725e1);_0x29afaf['markers']['has'](_0x56bf9e)?(_0x2b59f7['updateMarker'](_0x56bf9e,{'range':_0x395e51}),_0x2b59f7['updateMarker'](_0x4c525a,{'range':_0x349cfa})):(_0x2b59f7['addMarker'](_0x56bf9e,{'range':_0x395e51,'usingOperation':!0x0}),_0x2b59f7['addMarker'](_0x4c525a,{'range':_0x349cfa,'usingOperation':!0x0}));}function getPositionForText(_0x4fe1b2,_0x26ee7e){for(const _0xbd02e7 of _0x4fe1b2['getPositions']())if(_0x26ee7e['schema']['checkChild'](_0xbd02e7,'$text'))return _0xbd02e7;}function createUserPositionViewElement(_0x48c583,_0x79cede,_0x2288f5,_0x16362d){const _0x49ab87=_0x48c583['markerName']['split'](':')[0x2],_0x254dd2=_0x2288f5['getUserBySessionId'](_0x49ab87);if(!_0x254dd2||_0x49ab87===_0x2288f5['mySessionId'])return;if(!_0x16362d['model']['schema']['checkChild'](_0x48c583['markerRange']['start'],'$text'))return;const _0x3d602e={'class':'ck-user__marker\x20'+_0x254dd2['color']['getMarkerClass'](),'data-name':_0x254dd2['name'],'data-session-id':_0x49ab87},_0x210145=_0x16362d['model']['markers']['get'](_0x48c583['markerName'])['getStart'](),_0x19a534=_0x210145['nodeAfter'],_0x4df6d9=_0x16362d['model']['schema'];if(_0x19a534&&_0x4df6d9['isObject'](_0x19a534)&&_0x4df6d9['isInline'](_0x19a534)&&!_0x16362d['model']['markers']['get']('user:range:'+_0x49ab87)['getRange']()['isCollapsed'])return;const _0x13dff0=_0x210145['parent'];return _0x16362d['model']['schema']['isLimit'](_0x13dff0)&&!_0x16362d['model']['hasContent'](_0x13dff0)&&(_0x3d602e['contenteditable']=!0x1),createUserPositionMarkerElement(_0x79cede,_0x3d602e,_0x254dd2);}function createUserRangeViewElement(_0x1fbc76,_0x804f86){const _0xb69c28=_0x1fbc76['markerName']['split'](':')[0x2];if(_0xb69c28===_0x804f86['mySessionId'])return null;const _0x4f4ef3=_0x804f86['getUserBySessionId'](_0xb69c28);return _0x4f4ef3?{'id':_0xb69c28,'classes':['ck-user__selection',_0x4f4ef3['color']['getSelectionClass']()],'attributes':{'data-session-id':_0xb69c28},'priority':0x7d0+_0x4f4ef3['orderNumber']}:{'id':_0xb69c28,'classes':[]};}function createUserPositionMarkerElement(_0x18d8ec,_0x1589c8,_0x542d47){const _0x3dedab=_0x18d8ec['createUIElement']('span',_0x1589c8);return _0x18d8ec['setCustomProperty']('userPositionMarker',!0x0,_0x3dedab),_0x3dedab['render']=function(_0x5aed11){const _0xdc139d=this['toDomElement'](_0x5aed11),_0x400016=document['createElement']('span');return _0x400016['classList']['add']('ck-user__marker-tooltip'),_0x400016['setAttribute']('contenteditable','false'),_0x400016['setAttribute']('spellcheck','false'),_0x400016['textContent']=_0x542d47['name'],_0xdc139d['innerHTML']='⁠<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>'+_0x400016['outerHTML']+'⁠',_0xdc139d['addEventListener']('mouseenter',()=>{_0xdc139d['classList']['add']('ck-user__marker_hovered');}),_0xdc139d['addEventListener']('mouseleave',()=>{_0xdc139d['classList']['remove']('ck-user__marker_hovered');}),_0xdc139d;},_0x3dedab['isSimilar']=function(_0x22dc31){return!(!this['getCustomProperty']('userPositionMarker')||!_0x22dc31['getCustomProperty']('userPositionMarker')||this['getAttribute']('data-session-id')!=_0x22dc31['getAttribute']('data-session-id'));},_0x3dedab;}function hideHoveredUserPositionMarkersTooltips(_0x383d80){_0x383d80['editing']['view']['change'](_0x126b9f=>{for(const _0x2e5fcb of _0x383d80['model']['markers']){if(!_0x2e5fcb['name']['startsWith']('user:position'))continue;const _0xb32a41=_0x383d80['editing']['mapper']['markerNameToElements'](_0x2e5fcb['name']);if(_0xb32a41){for(const _0x49f1f7 of _0xb32a41)_0x126b9f['removeClass']('ck-user__marker_hovered',_0x49f1f7);}}});}function createUserMarkerPostFixer(_0x19051b){const _0x5bdb50=_0x19051b['model'],_0x5d1b4c=new Map(),_0x1953fd=_0x19051b['plugins']['get'](Sessions);_0x5bdb50['markers']['on']('update:user:range',(_0x37ccbb,_0x255b62,_0x103381,_0x1cd15b)=>{if(!_0x1cd15b&&_0x5d1b4c['get'](_0x255b62['name']))return _0x5d1b4c['get'](_0x255b62['name'])['detach'](),void _0x5d1b4c['delete'](_0x255b62['name']);const _0x1207ed=_0x255b62['name']['split'](':')[0x2];if(_0x1207ed===_0x1953fd['mySessionId'])return;const _0x17758f='user:position:'+_0x1207ed;_0x5bdb50['markers']['has'](_0x17758f)&&_0x19051b['editing']['reconvertMarker'](_0x17758f),_0x255b62['on']('change:range',(_0x18b2a9,_0xbbc56a,_0x36a514)=>{if('$graveyard'!=_0xbbc56a['root']['rootName']&&'$graveyard'==_0x255b62['getRange']()['root']['rootName']&&!_0x5d1b4c['has'](_0x255b62['name'])){const _0x5aa6d5=_0x5bdb50['schema']['getNearestSelectionRange'](_0x36a514['deletionPosition']);if(_0x5aa6d5){const _0x50c16c=ModelLiveRange['fromRange'](_0x5aa6d5);_0x5d1b4c['set'](_0x255b62['name'],_0x50c16c),_0x50c16c['on']('change:range',(_0x5c3b11,_0x434d7f,_0x4b37a7)=>{if('$graveyard'==_0x50c16c['root']['rootName']){const _0x5c32ef=_0x5bdb50['schema']['getNearestSelectionRange'](_0x4b37a7['deletionPosition']);_0x5c32ef?(_0x50c16c['start']=_0x5c32ef['start'],_0x50c16c['end']=_0x5c32ef['end']):(_0x5d1b4c['delete'](_0x255b62['name']),_0x50c16c['detach']());}});}}});}),_0x5bdb50['document']['on']('change',()=>{_0x5d1b4c['size']>0x0&&_0x5bdb50['enqueueChange']({'isUndoable':!0x1},_0x52ce81=>{for(const [_0x5b3226,_0x18eb1d]of _0x5d1b4c)'$graveyard'==_0x5bdb50['markers']['get'](_0x5b3226)['getRange']()['root']['rootName']&&(updateUserMarkers(_0x5b3226['split'](':')[0x2],_0x18eb1d['toRange'](),_0x5bdb50,_0x52ce81),_0x18eb1d['detach']());_0x5d1b4c['clear']();});});}function getTranslation$6(_0x2c6d49,_0x243631,_0x32c448){const _0x3a5c03=_0x2c6d49['t'],t=_0x2c6d49['t'];switch(_0x243631){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 _0x3a5c03({'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'},_0x32c448);default:return'';}}const messages=/* #__PURE__ -- @preserve */
((()=>{var _0x48d5aa=minimalExports['Reader'],_0x21812c=minimalExports['Writer'],_0x1412aa=minimalExports['util'],_0x498176=minimalExports['roots']['default']||(minimalExports['roots']['default']={});return _0x498176['AttributeOperation']=(function(){function _0x3d0b4d(_0xd54e51){if(_0xd54e51){for(var _0x25bb7f=Object['keys'](_0xd54e51),_0xf169ea=0x0;_0xf169ea<_0x25bb7f['length'];++_0xf169ea)null!=_0xd54e51[_0x25bb7f[_0xf169ea]]&&(this[_0x25bb7f[_0xf169ea]]=_0xd54e51[_0x25bb7f[_0xf169ea]]);}}return _0x3d0b4d['prototype']['range']=null,_0x3d0b4d['prototype']['key']='',_0x3d0b4d['prototype']['oldValueBoolean']=!0x1,_0x3d0b4d['prototype']['oldValueJson']='',_0x3d0b4d['prototype']['newValueBoolean']=!0x1,_0x3d0b4d['prototype']['newValueJson']='',_0x3d0b4d['prototype']['wasUndone']=!0x1,_0x3d0b4d['create']=function(_0x524965){return new _0x3d0b4d(_0x524965);},_0x3d0b4d['encode']=function(_0x4c78b6,_0x1f34a2){return _0x1f34a2||(_0x1f34a2=_0x21812c['create']()),null!=_0x4c78b6['range']&&Object['hasOwnProperty']['call'](_0x4c78b6,'range')&&_0x498176['Range']['encode'](_0x4c78b6['range'],_0x1f34a2['uint32'](0xa)['fork']())['ldelim'](),null!=_0x4c78b6['key']&&Object['hasOwnProperty']['call'](_0x4c78b6,'key')&&_0x1f34a2['uint32'](0x12)['string'](_0x4c78b6['key']),null!=_0x4c78b6['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x4c78b6,'oldValueBoolean')&&_0x1f34a2['uint32'](0x18)['bool'](_0x4c78b6['oldValueBoolean']),null!=_0x4c78b6['oldValueJson']&&Object['hasOwnProperty']['call'](_0x4c78b6,'oldValueJson')&&_0x1f34a2['uint32'](0x22)['string'](_0x4c78b6['oldValueJson']),null!=_0x4c78b6['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x4c78b6,'newValueBoolean')&&_0x1f34a2['uint32'](0x28)['bool'](_0x4c78b6['newValueBoolean']),null!=_0x4c78b6['newValueJson']&&Object['hasOwnProperty']['call'](_0x4c78b6,'newValueJson')&&_0x1f34a2['uint32'](0x32)['string'](_0x4c78b6['newValueJson']),null!=_0x4c78b6['wasUndone']&&Object['hasOwnProperty']['call'](_0x4c78b6,'wasUndone')&&_0x1f34a2['uint32'](0x38)['bool'](_0x4c78b6['wasUndone']),_0x1f34a2;},_0x3d0b4d['encodeDelimited']=function(_0x39d9f7,_0x26eae5){return this['encode'](_0x39d9f7,_0x26eae5)['ldelim']();},_0x3d0b4d['decode']=function(_0x92605e,_0x1ac5c4){_0x92605e instanceof _0x48d5aa||(_0x92605e=_0x48d5aa['create'](_0x92605e));for(var _0x3cfcd4=void 0x0===_0x1ac5c4?_0x92605e['len']:_0x92605e['pos']+_0x1ac5c4,_0x4a34bf=new _0x498176['AttributeOperation']();_0x92605e['pos']<_0x3cfcd4;){var _0x5e902c=_0x92605e['uint32']();switch(_0x5e902c>>>0x3){case 0x1:_0x4a34bf['range']=_0x498176['Range']['decode'](_0x92605e,_0x92605e['uint32']());break;case 0x2:_0x4a34bf['key']=_0x92605e['string']();break;case 0x3:_0x4a34bf['oldValueBoolean']=_0x92605e['bool']();break;case 0x4:_0x4a34bf['oldValueJson']=_0x92605e['string']();break;case 0x5:_0x4a34bf['newValueBoolean']=_0x92605e['bool']();break;case 0x6:_0x4a34bf['newValueJson']=_0x92605e['string']();break;case 0x7:_0x4a34bf['wasUndone']=_0x92605e['bool']();break;default:_0x92605e['skipType'](0x7&_0x5e902c);}}return _0x4a34bf;},_0x3d0b4d['decodeDelimited']=function(_0x2c1a26){return _0x2c1a26 instanceof _0x48d5aa||(_0x2c1a26=new _0x48d5aa(_0x2c1a26)),this['decode'](_0x2c1a26,_0x2c1a26['uint32']());},_0x3d0b4d['verify']=function(_0x14f74f){if('object'!=typeof _0x14f74f||null===_0x14f74f)return'object\x20expected';if(null!=_0x14f74f['range']&&_0x14f74f['hasOwnProperty']('range')){var _0x46c132=_0x498176['Range']['verify'](_0x14f74f['range']);if(_0x46c132)return'range.'+_0x46c132;}return null!=_0x14f74f['key']&&_0x14f74f['hasOwnProperty']('key')&&!_0x1412aa['isString'](_0x14f74f['key'])?'key:\x20string\x20expected':null!=_0x14f74f['oldValueBoolean']&&_0x14f74f['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x14f74f['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x14f74f['oldValueJson']&&_0x14f74f['hasOwnProperty']('oldValueJson')&&!_0x1412aa['isString'](_0x14f74f['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x14f74f['newValueBoolean']&&_0x14f74f['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x14f74f['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x14f74f['newValueJson']&&_0x14f74f['hasOwnProperty']('newValueJson')&&!_0x1412aa['isString'](_0x14f74f['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x14f74f['wasUndone']&&_0x14f74f['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x14f74f['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x3d0b4d['fromObject']=function(_0x47d11d){if(_0x47d11d instanceof _0x498176['AttributeOperation'])return _0x47d11d;var _0xb450d1=new _0x498176['AttributeOperation']();if(null!=_0x47d11d['range']){if('object'!=typeof _0x47d11d['range'])throw TypeError('.AttributeOperation.range:\x20object\x20expected');_0xb450d1['range']=_0x498176['Range']['fromObject'](_0x47d11d['range']);}return null!=_0x47d11d['key']&&(_0xb450d1['key']=String(_0x47d11d['key'])),null!=_0x47d11d['oldValueBoolean']&&(_0xb450d1['oldValueBoolean']=Boolean(_0x47d11d['oldValueBoolean'])),null!=_0x47d11d['oldValueJson']&&(_0xb450d1['oldValueJson']=String(_0x47d11d['oldValueJson'])),null!=_0x47d11d['newValueBoolean']&&(_0xb450d1['newValueBoolean']=Boolean(_0x47d11d['newValueBoolean'])),null!=_0x47d11d['newValueJson']&&(_0xb450d1['newValueJson']=String(_0x47d11d['newValueJson'])),null!=_0x47d11d['wasUndone']&&(_0xb450d1['wasUndone']=Boolean(_0x47d11d['wasUndone'])),_0xb450d1;},_0x3d0b4d['toObject']=function(_0x150f13,_0x32d54f){_0x32d54f||(_0x32d54f={});var _0x2eb9d4={};return _0x32d54f['defaults']&&(_0x2eb9d4['range']=null,_0x2eb9d4['key']='',_0x2eb9d4['oldValueBoolean']=!0x1,_0x2eb9d4['oldValueJson']='',_0x2eb9d4['newValueBoolean']=!0x1,_0x2eb9d4['newValueJson']='',_0x2eb9d4['wasUndone']=!0x1),null!=_0x150f13['range']&&_0x150f13['hasOwnProperty']('range')&&(_0x2eb9d4['range']=_0x498176['Range']['toObject'](_0x150f13['range'],_0x32d54f)),null!=_0x150f13['key']&&_0x150f13['hasOwnProperty']('key')&&(_0x2eb9d4['key']=_0x150f13['key']),null!=_0x150f13['oldValueBoolean']&&_0x150f13['hasOwnProperty']('oldValueBoolean')&&(_0x2eb9d4['oldValueBoolean']=_0x150f13['oldValueBoolean']),null!=_0x150f13['oldValueJson']&&_0x150f13['hasOwnProperty']('oldValueJson')&&(_0x2eb9d4['oldValueJson']=_0x150f13['oldValueJson']),null!=_0x150f13['newValueBoolean']&&_0x150f13['hasOwnProperty']('newValueBoolean')&&(_0x2eb9d4['newValueBoolean']=_0x150f13['newValueBoolean']),null!=_0x150f13['newValueJson']&&_0x150f13['hasOwnProperty']('newValueJson')&&(_0x2eb9d4['newValueJson']=_0x150f13['newValueJson']),null!=_0x150f13['wasUndone']&&_0x150f13['hasOwnProperty']('wasUndone')&&(_0x2eb9d4['wasUndone']=_0x150f13['wasUndone']),_0x2eb9d4;},_0x3d0b4d['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x3d0b4d['getTypeUrl']=function(_0x2fccdf){return void 0x0===_0x2fccdf&&(_0x2fccdf='type.googleapis.com'),_0x2fccdf+'/AttributeOperation';},_0x3d0b4d;}()),_0x498176['InsertOperation']=(function(){function _0x19092f(_0x1ea521){if(this['nodes']=[],_0x1ea521){for(var _0x52373f=Object['keys'](_0x1ea521),_0x56222e=0x0;_0x56222e<_0x52373f['length'];++_0x56222e)null!=_0x1ea521[_0x52373f[_0x56222e]]&&(this[_0x52373f[_0x56222e]]=_0x1ea521[_0x52373f[_0x56222e]]);}}return _0x19092f['prototype']['position']=null,_0x19092f['prototype']['nodes']=_0x1412aa['emptyArray'],_0x19092f['prototype']['shouldReceiveAttributes']=!0x1,_0x19092f['prototype']['wasUndone']=!0x1,_0x19092f['create']=function(_0xd57b){return new _0x19092f(_0xd57b);},_0x19092f['encode']=function(_0x31edf6,_0x1d947b){if(_0x1d947b||(_0x1d947b=_0x21812c['create']()),null!=_0x31edf6['position']&&Object['hasOwnProperty']['call'](_0x31edf6,'position')&&_0x498176['Position']['encode'](_0x31edf6['position'],_0x1d947b['uint32'](0xa)['fork']())['ldelim'](),null!=_0x31edf6['nodes']&&_0x31edf6['nodes']['length']){for(var _0x5dd396=0x0;_0x5dd396<_0x31edf6['nodes']['length'];++_0x5dd396)_0x498176['Element']['encode'](_0x31edf6['nodes'][_0x5dd396],_0x1d947b['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x31edf6['shouldReceiveAttributes']&&Object['hasOwnProperty']['call'](_0x31edf6,'shouldReceiveAttributes')&&_0x1d947b['uint32'](0x18)['bool'](_0x31edf6['shouldReceiveAttributes']),null!=_0x31edf6['wasUndone']&&Object['hasOwnProperty']['call'](_0x31edf6,'wasUndone')&&_0x1d947b['uint32'](0x20)['bool'](_0x31edf6['wasUndone']),_0x1d947b;},_0x19092f['encodeDelimited']=function(_0x5332cb,_0x5980e9){return this['encode'](_0x5332cb,_0x5980e9)['ldelim']();},_0x19092f['decode']=function(_0x59a632,_0x16447a){_0x59a632 instanceof _0x48d5aa||(_0x59a632=_0x48d5aa['create'](_0x59a632));for(var _0x61771d=void 0x0===_0x16447a?_0x59a632['len']:_0x59a632['pos']+_0x16447a,_0xa9b749=new _0x498176['InsertOperation']();_0x59a632['pos']<_0x61771d;){var _0x2200d1=_0x59a632['uint32']();switch(_0x2200d1>>>0x3){case 0x1:_0xa9b749['position']=_0x498176['Position']['decode'](_0x59a632,_0x59a632['uint32']());break;case 0x2:_0xa9b749['nodes']&&_0xa9b749['nodes']['length']||(_0xa9b749['nodes']=[]),_0xa9b749['nodes']['push'](_0x498176['Element']['decode'](_0x59a632,_0x59a632['uint32']()));break;case 0x3:_0xa9b749['shouldReceiveAttributes']=_0x59a632['bool']();break;case 0x4:_0xa9b749['wasUndone']=_0x59a632['bool']();break;default:_0x59a632['skipType'](0x7&_0x2200d1);}}return _0xa9b749;},_0x19092f['decodeDelimited']=function(_0x223005){return _0x223005 instanceof _0x48d5aa||(_0x223005=new _0x48d5aa(_0x223005)),this['decode'](_0x223005,_0x223005['uint32']());},_0x19092f['verify']=function(_0xebe940){if('object'!=typeof _0xebe940||null===_0xebe940)return'object\x20expected';if(null!=_0xebe940['position']&&_0xebe940['hasOwnProperty']('position')&&(_0x213435=_0x498176['Position']['verify'](_0xebe940['position'])))return'position.'+_0x213435;if(null!=_0xebe940['nodes']&&_0xebe940['hasOwnProperty']('nodes')){if(!Array['isArray'](_0xebe940['nodes']))return'nodes:\x20array\x20expected';for(var _0x53e60f=0x0;_0x53e60f<_0xebe940['nodes']['length'];++_0x53e60f){var _0x213435;if(_0x213435=_0x498176['Element']['verify'](_0xebe940['nodes'][_0x53e60f]))return'nodes.'+_0x213435;}}return null!=_0xebe940['shouldReceiveAttributes']&&_0xebe940['hasOwnProperty']('shouldReceiveAttributes')&&'boolean'!=typeof _0xebe940['shouldReceiveAttributes']?'shouldReceiveAttributes:\x20boolean\x20expected':null!=_0xebe940['wasUndone']&&_0xebe940['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xebe940['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x19092f['fromObject']=function(_0x128e67){if(_0x128e67 instanceof _0x498176['InsertOperation'])return _0x128e67;var _0x54acd1=new _0x498176['InsertOperation']();if(null!=_0x128e67['position']){if('object'!=typeof _0x128e67['position'])throw TypeError('.InsertOperation.position:\x20object\x20expected');_0x54acd1['position']=_0x498176['Position']['fromObject'](_0x128e67['position']);}if(_0x128e67['nodes']){if(!Array['isArray'](_0x128e67['nodes']))throw TypeError('.InsertOperation.nodes:\x20array\x20expected');_0x54acd1['nodes']=[];for(var _0x5552cf=0x0;_0x5552cf<_0x128e67['nodes']['length'];++_0x5552cf){if('object'!=typeof _0x128e67['nodes'][_0x5552cf])throw TypeError('.InsertOperation.nodes:\x20object\x20expected');_0x54acd1['nodes'][_0x5552cf]=_0x498176['Element']['fromObject'](_0x128e67['nodes'][_0x5552cf]);}}return null!=_0x128e67['shouldReceiveAttributes']&&(_0x54acd1['shouldReceiveAttributes']=Boolean(_0x128e67['shouldReceiveAttributes'])),null!=_0x128e67['wasUndone']&&(_0x54acd1['wasUndone']=Boolean(_0x128e67['wasUndone'])),_0x54acd1;},_0x19092f['toObject']=function(_0x529268,_0x2a5307){_0x2a5307||(_0x2a5307={});var _0x3c304d={};if((_0x2a5307['arrays']||_0x2a5307['defaults'])&&(_0x3c304d['nodes']=[]),_0x2a5307['defaults']&&(_0x3c304d['position']=null,_0x3c304d['shouldReceiveAttributes']=!0x1,_0x3c304d['wasUndone']=!0x1),null!=_0x529268['position']&&_0x529268['hasOwnProperty']('position')&&(_0x3c304d['position']=_0x498176['Position']['toObject'](_0x529268['position'],_0x2a5307)),_0x529268['nodes']&&_0x529268['nodes']['length']){_0x3c304d['nodes']=[];for(var _0x16f60d=0x0;_0x16f60d<_0x529268['nodes']['length'];++_0x16f60d)_0x3c304d['nodes'][_0x16f60d]=_0x498176['Element']['toObject'](_0x529268['nodes'][_0x16f60d],_0x2a5307);}return null!=_0x529268['shouldReceiveAttributes']&&_0x529268['hasOwnProperty']('shouldReceiveAttributes')&&(_0x3c304d['shouldReceiveAttributes']=_0x529268['shouldReceiveAttributes']),null!=_0x529268['wasUndone']&&_0x529268['hasOwnProperty']('wasUndone')&&(_0x3c304d['wasUndone']=_0x529268['wasUndone']),_0x3c304d;},_0x19092f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x19092f['getTypeUrl']=function(_0x5a1bbb){return void 0x0===_0x5a1bbb&&(_0x5a1bbb='type.googleapis.com'),_0x5a1bbb+'/InsertOperation';},_0x19092f;}()),_0x498176['MarkerOperation']=(function(){function _0x210176(_0x2a5c1c){if(_0x2a5c1c){for(var _0x54ca10=Object['keys'](_0x2a5c1c),_0x4ecf80=0x0;_0x4ecf80<_0x54ca10['length'];++_0x4ecf80)null!=_0x2a5c1c[_0x54ca10[_0x4ecf80]]&&(this[_0x54ca10[_0x4ecf80]]=_0x2a5c1c[_0x54ca10[_0x4ecf80]]);}}return _0x210176['prototype']['name']='',_0x210176['prototype']['oldRange']=null,_0x210176['prototype']['newRange']=null,_0x210176['prototype']['affectsData']=!0x1,_0x210176['prototype']['wasUndone']=!0x1,_0x210176['create']=function(_0xb620ea){return new _0x210176(_0xb620ea);},_0x210176['encode']=function(_0x36b1fe,_0x53fb6c){return _0x53fb6c||(_0x53fb6c=_0x21812c['create']()),null!=_0x36b1fe['name']&&Object['hasOwnProperty']['call'](_0x36b1fe,'name')&&_0x53fb6c['uint32'](0xa)['string'](_0x36b1fe['name']),null!=_0x36b1fe['oldRange']&&Object['hasOwnProperty']['call'](_0x36b1fe,'oldRange')&&_0x498176['Range']['encode'](_0x36b1fe['oldRange'],_0x53fb6c['uint32'](0x12)['fork']())['ldelim'](),null!=_0x36b1fe['newRange']&&Object['hasOwnProperty']['call'](_0x36b1fe,'newRange')&&_0x498176['Range']['encode'](_0x36b1fe['newRange'],_0x53fb6c['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x36b1fe['affectsData']&&Object['hasOwnProperty']['call'](_0x36b1fe,'affectsData')&&_0x53fb6c['uint32'](0x20)['bool'](_0x36b1fe['affectsData']),null!=_0x36b1fe['wasUndone']&&Object['hasOwnProperty']['call'](_0x36b1fe,'wasUndone')&&_0x53fb6c['uint32'](0x28)['bool'](_0x36b1fe['wasUndone']),_0x53fb6c;},_0x210176['encodeDelimited']=function(_0x118a0c,_0x40a0b2){return this['encode'](_0x118a0c,_0x40a0b2)['ldelim']();},_0x210176['decode']=function(_0x31faa3,_0x46692e){_0x31faa3 instanceof _0x48d5aa||(_0x31faa3=_0x48d5aa['create'](_0x31faa3));for(var _0x2cfc4c=void 0x0===_0x46692e?_0x31faa3['len']:_0x31faa3['pos']+_0x46692e,_0x449675=new _0x498176['MarkerOperation']();_0x31faa3['pos']<_0x2cfc4c;){var _0x37532a=_0x31faa3['uint32']();switch(_0x37532a>>>0x3){case 0x1:_0x449675['name']=_0x31faa3['string']();break;case 0x2:_0x449675['oldRange']=_0x498176['Range']['decode'](_0x31faa3,_0x31faa3['uint32']());break;case 0x3:_0x449675['newRange']=_0x498176['Range']['decode'](_0x31faa3,_0x31faa3['uint32']());break;case 0x4:_0x449675['affectsData']=_0x31faa3['bool']();break;case 0x5:_0x449675['wasUndone']=_0x31faa3['bool']();break;default:_0x31faa3['skipType'](0x7&_0x37532a);}}return _0x449675;},_0x210176['decodeDelimited']=function(_0x26a558){return _0x26a558 instanceof _0x48d5aa||(_0x26a558=new _0x48d5aa(_0x26a558)),this['decode'](_0x26a558,_0x26a558['uint32']());},_0x210176['verify']=function(_0x2ed137){if('object'!=typeof _0x2ed137||null===_0x2ed137)return'object\x20expected';if(null!=_0x2ed137['name']&&_0x2ed137['hasOwnProperty']('name')&&!_0x1412aa['isString'](_0x2ed137['name']))return'name:\x20string\x20expected';var _0xb59b93;if(null!=_0x2ed137['oldRange']&&_0x2ed137['hasOwnProperty']('oldRange')&&(_0xb59b93=_0x498176['Range']['verify'](_0x2ed137['oldRange'])))return'oldRange.'+_0xb59b93;if(null!=_0x2ed137['newRange']&&_0x2ed137['hasOwnProperty']('newRange')&&(_0xb59b93=_0x498176['Range']['verify'](_0x2ed137['newRange'])))return'newRange.'+_0xb59b93;return null!=_0x2ed137['affectsData']&&_0x2ed137['hasOwnProperty']('affectsData')&&'boolean'!=typeof _0x2ed137['affectsData']?'affectsData:\x20boolean\x20expected':null!=_0x2ed137['wasUndone']&&_0x2ed137['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x2ed137['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x210176['fromObject']=function(_0x7459e5){if(_0x7459e5 instanceof _0x498176['MarkerOperation'])return _0x7459e5;var _0x2b116a=new _0x498176['MarkerOperation']();if(null!=_0x7459e5['name']&&(_0x2b116a['name']=String(_0x7459e5['name'])),null!=_0x7459e5['oldRange']){if('object'!=typeof _0x7459e5['oldRange'])throw TypeError('.MarkerOperation.oldRange:\x20object\x20expected');_0x2b116a['oldRange']=_0x498176['Range']['fromObject'](_0x7459e5['oldRange']);}if(null!=_0x7459e5['newRange']){if('object'!=typeof _0x7459e5['newRange'])throw TypeError('.MarkerOperation.newRange:\x20object\x20expected');_0x2b116a['newRange']=_0x498176['Range']['fromObject'](_0x7459e5['newRange']);}return null!=_0x7459e5['affectsData']&&(_0x2b116a['affectsData']=Boolean(_0x7459e5['affectsData'])),null!=_0x7459e5['wasUndone']&&(_0x2b116a['wasUndone']=Boolean(_0x7459e5['wasUndone'])),_0x2b116a;},_0x210176['toObject']=function(_0x5d179e,_0x415bb6){_0x415bb6||(_0x415bb6={});var _0x225647={};return _0x415bb6['defaults']&&(_0x225647['name']='',_0x225647['oldRange']=null,_0x225647['newRange']=null,_0x225647['affectsData']=!0x1,_0x225647['wasUndone']=!0x1),null!=_0x5d179e['name']&&_0x5d179e['hasOwnProperty']('name')&&(_0x225647['name']=_0x5d179e['name']),null!=_0x5d179e['oldRange']&&_0x5d179e['hasOwnProperty']('oldRange')&&(_0x225647['oldRange']=_0x498176['Range']['toObject'](_0x5d179e['oldRange'],_0x415bb6)),null!=_0x5d179e['newRange']&&_0x5d179e['hasOwnProperty']('newRange')&&(_0x225647['newRange']=_0x498176['Range']['toObject'](_0x5d179e['newRange'],_0x415bb6)),null!=_0x5d179e['affectsData']&&_0x5d179e['hasOwnProperty']('affectsData')&&(_0x225647['affectsData']=_0x5d179e['affectsData']),null!=_0x5d179e['wasUndone']&&_0x5d179e['hasOwnProperty']('wasUndone')&&(_0x225647['wasUndone']=_0x5d179e['wasUndone']),_0x225647;},_0x210176['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x210176['getTypeUrl']=function(_0x5deb49){return void 0x0===_0x5deb49&&(_0x5deb49='type.googleapis.com'),_0x5deb49+'/MarkerOperation';},_0x210176;}()),_0x498176['MergeOperation']=(function(){function _0x50f3e8(_0x366b6e){if(_0x366b6e){for(var _0x4870a5=Object['keys'](_0x366b6e),_0x472d4f=0x0;_0x472d4f<_0x4870a5['length'];++_0x472d4f)null!=_0x366b6e[_0x4870a5[_0x472d4f]]&&(this[_0x4870a5[_0x472d4f]]=_0x366b6e[_0x4870a5[_0x472d4f]]);}}return _0x50f3e8['prototype']['sourcePosition']=null,_0x50f3e8['prototype']['targetPosition']=null,_0x50f3e8['prototype']['graveyardPosition']=null,_0x50f3e8['prototype']['howMany']=0x0,_0x50f3e8['prototype']['wasUndone']=!0x1,_0x50f3e8['create']=function(_0x1500d7){return new _0x50f3e8(_0x1500d7);},_0x50f3e8['encode']=function(_0x3b4268,_0x1ac43a){return _0x1ac43a||(_0x1ac43a=_0x21812c['create']()),null!=_0x3b4268['sourcePosition']&&Object['hasOwnProperty']['call'](_0x3b4268,'sourcePosition')&&_0x498176['Position']['encode'](_0x3b4268['sourcePosition'],_0x1ac43a['uint32'](0xa)['fork']())['ldelim'](),null!=_0x3b4268['targetPosition']&&Object['hasOwnProperty']['call'](_0x3b4268,'targetPosition')&&_0x498176['Position']['encode'](_0x3b4268['targetPosition'],_0x1ac43a['uint32'](0x12)['fork']())['ldelim'](),null!=_0x3b4268['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x3b4268,'graveyardPosition')&&_0x498176['Position']['encode'](_0x3b4268['graveyardPosition'],_0x1ac43a['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x3b4268['howMany']&&Object['hasOwnProperty']['call'](_0x3b4268,'howMany')&&_0x1ac43a['uint32'](0x20)['uint32'](_0x3b4268['howMany']),null!=_0x3b4268['wasUndone']&&Object['hasOwnProperty']['call'](_0x3b4268,'wasUndone')&&_0x1ac43a['uint32'](0x28)['bool'](_0x3b4268['wasUndone']),_0x1ac43a;},_0x50f3e8['encodeDelimited']=function(_0x1338b0,_0x5a301d){return this['encode'](_0x1338b0,_0x5a301d)['ldelim']();},_0x50f3e8['decode']=function(_0x5905fa,_0x1ec5ff){_0x5905fa instanceof _0x48d5aa||(_0x5905fa=_0x48d5aa['create'](_0x5905fa));for(var _0x8b244e=void 0x0===_0x1ec5ff?_0x5905fa['len']:_0x5905fa['pos']+_0x1ec5ff,_0x5f4981=new _0x498176['MergeOperation']();_0x5905fa['pos']<_0x8b244e;){var _0x24aeff=_0x5905fa['uint32']();switch(_0x24aeff>>>0x3){case 0x1:_0x5f4981['sourcePosition']=_0x498176['Position']['decode'](_0x5905fa,_0x5905fa['uint32']());break;case 0x2:_0x5f4981['targetPosition']=_0x498176['Position']['decode'](_0x5905fa,_0x5905fa['uint32']());break;case 0x3:_0x5f4981['graveyardPosition']=_0x498176['Position']['decode'](_0x5905fa,_0x5905fa['uint32']());break;case 0x4:_0x5f4981['howMany']=_0x5905fa['uint32']();break;case 0x5:_0x5f4981['wasUndone']=_0x5905fa['bool']();break;default:_0x5905fa['skipType'](0x7&_0x24aeff);}}return _0x5f4981;},_0x50f3e8['decodeDelimited']=function(_0x540e6b){return _0x540e6b instanceof _0x48d5aa||(_0x540e6b=new _0x48d5aa(_0x540e6b)),this['decode'](_0x540e6b,_0x540e6b['uint32']());},_0x50f3e8['verify']=function(_0x341ed1){if('object'!=typeof _0x341ed1||null===_0x341ed1)return'object\x20expected';var _0x45f412;if(null!=_0x341ed1['sourcePosition']&&_0x341ed1['hasOwnProperty']('sourcePosition')&&(_0x45f412=_0x498176['Position']['verify'](_0x341ed1['sourcePosition'])))return'sourcePosition.'+_0x45f412;if(null!=_0x341ed1['targetPosition']&&_0x341ed1['hasOwnProperty']('targetPosition')&&(_0x45f412=_0x498176['Position']['verify'](_0x341ed1['targetPosition'])))return'targetPosition.'+_0x45f412;if(null!=_0x341ed1['graveyardPosition']&&_0x341ed1['hasOwnProperty']('graveyardPosition')&&(_0x45f412=_0x498176['Position']['verify'](_0x341ed1['graveyardPosition'])))return'graveyardPosition.'+_0x45f412;return null!=_0x341ed1['howMany']&&_0x341ed1['hasOwnProperty']('howMany')&&!_0x1412aa['isInteger'](_0x341ed1['howMany'])?'howMany:\x20integer\x20expected':null!=_0x341ed1['wasUndone']&&_0x341ed1['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x341ed1['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x50f3e8['fromObject']=function(_0x418ac2){if(_0x418ac2 instanceof _0x498176['MergeOperation'])return _0x418ac2;var _0x49abcd=new _0x498176['MergeOperation']();if(null!=_0x418ac2['sourcePosition']){if('object'!=typeof _0x418ac2['sourcePosition'])throw TypeError('.MergeOperation.sourcePosition:\x20object\x20expected');_0x49abcd['sourcePosition']=_0x498176['Position']['fromObject'](_0x418ac2['sourcePosition']);}if(null!=_0x418ac2['targetPosition']){if('object'!=typeof _0x418ac2['targetPosition'])throw TypeError('.MergeOperation.targetPosition:\x20object\x20expected');_0x49abcd['targetPosition']=_0x498176['Position']['fromObject'](_0x418ac2['targetPosition']);}if(null!=_0x418ac2['graveyardPosition']){if('object'!=typeof _0x418ac2['graveyardPosition'])throw TypeError('.MergeOperation.graveyardPosition:\x20object\x20expected');_0x49abcd['graveyardPosition']=_0x498176['Position']['fromObject'](_0x418ac2['graveyardPosition']);}return null!=_0x418ac2['howMany']&&(_0x49abcd['howMany']=_0x418ac2['howMany']>>>0x0),null!=_0x418ac2['wasUndone']&&(_0x49abcd['wasUndone']=Boolean(_0x418ac2['wasUndone'])),_0x49abcd;},_0x50f3e8['toObject']=function(_0x10ddd4,_0x1432ef){_0x1432ef||(_0x1432ef={});var _0x3be10b={};return _0x1432ef['defaults']&&(_0x3be10b['sourcePosition']=null,_0x3be10b['targetPosition']=null,_0x3be10b['graveyardPosition']=null,_0x3be10b['howMany']=0x0,_0x3be10b['wasUndone']=!0x1),null!=_0x10ddd4['sourcePosition']&&_0x10ddd4['hasOwnProperty']('sourcePosition')&&(_0x3be10b['sourcePosition']=_0x498176['Position']['toObject'](_0x10ddd4['sourcePosition'],_0x1432ef)),null!=_0x10ddd4['targetPosition']&&_0x10ddd4['hasOwnProperty']('targetPosition')&&(_0x3be10b['targetPosition']=_0x498176['Position']['toObject'](_0x10ddd4['targetPosition'],_0x1432ef)),null!=_0x10ddd4['graveyardPosition']&&_0x10ddd4['hasOwnProperty']('graveyardPosition')&&(_0x3be10b['graveyardPosition']=_0x498176['Position']['toObject'](_0x10ddd4['graveyardPosition'],_0x1432ef)),null!=_0x10ddd4['howMany']&&_0x10ddd4['hasOwnProperty']('howMany')&&(_0x3be10b['howMany']=_0x10ddd4['howMany']),null!=_0x10ddd4['wasUndone']&&_0x10ddd4['hasOwnProperty']('wasUndone')&&(_0x3be10b['wasUndone']=_0x10ddd4['wasUndone']),_0x3be10b;},_0x50f3e8['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x50f3e8['getTypeUrl']=function(_0x1d3bd6){return void 0x0===_0x1d3bd6&&(_0x1d3bd6='type.googleapis.com'),_0x1d3bd6+'/MergeOperation';},_0x50f3e8;}()),_0x498176['MoveOperation']=(function(){function _0x4dc576(_0x3bb6f8){if(_0x3bb6f8){for(var _0x500df2=Object['keys'](_0x3bb6f8),_0x3f4a76=0x0;_0x3f4a76<_0x500df2['length'];++_0x3f4a76)null!=_0x3bb6f8[_0x500df2[_0x3f4a76]]&&(this[_0x500df2[_0x3f4a76]]=_0x3bb6f8[_0x500df2[_0x3f4a76]]);}}return _0x4dc576['prototype']['sourcePosition']=null,_0x4dc576['prototype']['howMany']=0x0,_0x4dc576['prototype']['targetPosition']=null,_0x4dc576['prototype']['wasUndone']=!0x1,_0x4dc576['create']=function(_0x4ebccb){return new _0x4dc576(_0x4ebccb);},_0x4dc576['encode']=function(_0x2bf341,_0x2d6671){return _0x2d6671||(_0x2d6671=_0x21812c['create']()),null!=_0x2bf341['sourcePosition']&&Object['hasOwnProperty']['call'](_0x2bf341,'sourcePosition')&&_0x498176['Position']['encode'](_0x2bf341['sourcePosition'],_0x2d6671['uint32'](0xa)['fork']())['ldelim'](),null!=_0x2bf341['howMany']&&Object['hasOwnProperty']['call'](_0x2bf341,'howMany')&&_0x2d6671['uint32'](0x10)['uint32'](_0x2bf341['howMany']),null!=_0x2bf341['targetPosition']&&Object['hasOwnProperty']['call'](_0x2bf341,'targetPosition')&&_0x498176['Position']['encode'](_0x2bf341['targetPosition'],_0x2d6671['uint32'](0x1a)['fork']())['ldelim'](),null!=_0x2bf341['wasUndone']&&Object['hasOwnProperty']['call'](_0x2bf341,'wasUndone')&&_0x2d6671['uint32'](0x20)['bool'](_0x2bf341['wasUndone']),_0x2d6671;},_0x4dc576['encodeDelimited']=function(_0x38c58d,_0x416bb1){return this['encode'](_0x38c58d,_0x416bb1)['ldelim']();},_0x4dc576['decode']=function(_0x5d5efb,_0x55f959){_0x5d5efb instanceof _0x48d5aa||(_0x5d5efb=_0x48d5aa['create'](_0x5d5efb));for(var _0x5ca52d=void 0x0===_0x55f959?_0x5d5efb['len']:_0x5d5efb['pos']+_0x55f959,_0x183f76=new _0x498176['MoveOperation']();_0x5d5efb['pos']<_0x5ca52d;){var _0x3a524f=_0x5d5efb['uint32']();switch(_0x3a524f>>>0x3){case 0x1:_0x183f76['sourcePosition']=_0x498176['Position']['decode'](_0x5d5efb,_0x5d5efb['uint32']());break;case 0x2:_0x183f76['howMany']=_0x5d5efb['uint32']();break;case 0x3:_0x183f76['targetPosition']=_0x498176['Position']['decode'](_0x5d5efb,_0x5d5efb['uint32']());break;case 0x4:_0x183f76['wasUndone']=_0x5d5efb['bool']();break;default:_0x5d5efb['skipType'](0x7&_0x3a524f);}}return _0x183f76;},_0x4dc576['decodeDelimited']=function(_0x2e2e23){return _0x2e2e23 instanceof _0x48d5aa||(_0x2e2e23=new _0x48d5aa(_0x2e2e23)),this['decode'](_0x2e2e23,_0x2e2e23['uint32']());},_0x4dc576['verify']=function(_0x529ec4){if('object'!=typeof _0x529ec4||null===_0x529ec4)return'object\x20expected';var _0x16afc9;if(null!=_0x529ec4['sourcePosition']&&_0x529ec4['hasOwnProperty']('sourcePosition')&&(_0x16afc9=_0x498176['Position']['verify'](_0x529ec4['sourcePosition'])))return'sourcePosition.'+_0x16afc9;if(null!=_0x529ec4['howMany']&&_0x529ec4['hasOwnProperty']('howMany')&&!_0x1412aa['isInteger'](_0x529ec4['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x529ec4['targetPosition']&&_0x529ec4['hasOwnProperty']('targetPosition')&&(_0x16afc9=_0x498176['Position']['verify'](_0x529ec4['targetPosition'])))return'targetPosition.'+_0x16afc9;return null!=_0x529ec4['wasUndone']&&_0x529ec4['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x529ec4['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x4dc576['fromObject']=function(_0x4939f1){if(_0x4939f1 instanceof _0x498176['MoveOperation'])return _0x4939f1;var _0x5706e1=new _0x498176['MoveOperation']();if(null!=_0x4939f1['sourcePosition']){if('object'!=typeof _0x4939f1['sourcePosition'])throw TypeError('.MoveOperation.sourcePosition:\x20object\x20expected');_0x5706e1['sourcePosition']=_0x498176['Position']['fromObject'](_0x4939f1['sourcePosition']);}if(null!=_0x4939f1['howMany']&&(_0x5706e1['howMany']=_0x4939f1['howMany']>>>0x0),null!=_0x4939f1['targetPosition']){if('object'!=typeof _0x4939f1['targetPosition'])throw TypeError('.MoveOperation.targetPosition:\x20object\x20expected');_0x5706e1['targetPosition']=_0x498176['Position']['fromObject'](_0x4939f1['targetPosition']);}return null!=_0x4939f1['wasUndone']&&(_0x5706e1['wasUndone']=Boolean(_0x4939f1['wasUndone'])),_0x5706e1;},_0x4dc576['toObject']=function(_0x260130,_0x413153){_0x413153||(_0x413153={});var _0x8bf6a1={};return _0x413153['defaults']&&(_0x8bf6a1['sourcePosition']=null,_0x8bf6a1['howMany']=0x0,_0x8bf6a1['targetPosition']=null,_0x8bf6a1['wasUndone']=!0x1),null!=_0x260130['sourcePosition']&&_0x260130['hasOwnProperty']('sourcePosition')&&(_0x8bf6a1['sourcePosition']=_0x498176['Position']['toObject'](_0x260130['sourcePosition'],_0x413153)),null!=_0x260130['howMany']&&_0x260130['hasOwnProperty']('howMany')&&(_0x8bf6a1['howMany']=_0x260130['howMany']),null!=_0x260130['targetPosition']&&_0x260130['hasOwnProperty']('targetPosition')&&(_0x8bf6a1['targetPosition']=_0x498176['Position']['toObject'](_0x260130['targetPosition'],_0x413153)),null!=_0x260130['wasUndone']&&_0x260130['hasOwnProperty']('wasUndone')&&(_0x8bf6a1['wasUndone']=_0x260130['wasUndone']),_0x8bf6a1;},_0x4dc576['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4dc576['getTypeUrl']=function(_0x2e07af){return void 0x0===_0x2e07af&&(_0x2e07af='type.googleapis.com'),_0x2e07af+'/MoveOperation';},_0x4dc576;}()),_0x498176['RenameOperation']=(function(){function _0x2164bb(_0x201887){if(_0x201887){for(var _0x467024=Object['keys'](_0x201887),_0x1b1b62=0x0;_0x1b1b62<_0x467024['length'];++_0x1b1b62)null!=_0x201887[_0x467024[_0x1b1b62]]&&(this[_0x467024[_0x1b1b62]]=_0x201887[_0x467024[_0x1b1b62]]);}}return _0x2164bb['prototype']['position']=null,_0x2164bb['prototype']['oldName']='',_0x2164bb['prototype']['newName']='',_0x2164bb['prototype']['wasUndone']=!0x1,_0x2164bb['create']=function(_0x3d0097){return new _0x2164bb(_0x3d0097);},_0x2164bb['encode']=function(_0x5e3f8a,_0x4c404d){return _0x4c404d||(_0x4c404d=_0x21812c['create']()),null!=_0x5e3f8a['position']&&Object['hasOwnProperty']['call'](_0x5e3f8a,'position')&&_0x498176['Position']['encode'](_0x5e3f8a['position'],_0x4c404d['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5e3f8a['oldName']&&Object['hasOwnProperty']['call'](_0x5e3f8a,'oldName')&&_0x4c404d['uint32'](0x12)['string'](_0x5e3f8a['oldName']),null!=_0x5e3f8a['newName']&&Object['hasOwnProperty']['call'](_0x5e3f8a,'newName')&&_0x4c404d['uint32'](0x1a)['string'](_0x5e3f8a['newName']),null!=_0x5e3f8a['wasUndone']&&Object['hasOwnProperty']['call'](_0x5e3f8a,'wasUndone')&&_0x4c404d['uint32'](0x20)['bool'](_0x5e3f8a['wasUndone']),_0x4c404d;},_0x2164bb['encodeDelimited']=function(_0x1113a9,_0x566b5f){return this['encode'](_0x1113a9,_0x566b5f)['ldelim']();},_0x2164bb['decode']=function(_0x2f9aa4,_0x47fba9){_0x2f9aa4 instanceof _0x48d5aa||(_0x2f9aa4=_0x48d5aa['create'](_0x2f9aa4));for(var _0x257149=void 0x0===_0x47fba9?_0x2f9aa4['len']:_0x2f9aa4['pos']+_0x47fba9,_0x316fba=new _0x498176['RenameOperation']();_0x2f9aa4['pos']<_0x257149;){var _0x49dd6f=_0x2f9aa4['uint32']();switch(_0x49dd6f>>>0x3){case 0x1:_0x316fba['position']=_0x498176['Position']['decode'](_0x2f9aa4,_0x2f9aa4['uint32']());break;case 0x2:_0x316fba['oldName']=_0x2f9aa4['string']();break;case 0x3:_0x316fba['newName']=_0x2f9aa4['string']();break;case 0x4:_0x316fba['wasUndone']=_0x2f9aa4['bool']();break;default:_0x2f9aa4['skipType'](0x7&_0x49dd6f);}}return _0x316fba;},_0x2164bb['decodeDelimited']=function(_0x54f684){return _0x54f684 instanceof _0x48d5aa||(_0x54f684=new _0x48d5aa(_0x54f684)),this['decode'](_0x54f684,_0x54f684['uint32']());},_0x2164bb['verify']=function(_0x465311){if('object'!=typeof _0x465311||null===_0x465311)return'object\x20expected';if(null!=_0x465311['position']&&_0x465311['hasOwnProperty']('position')){var _0x3adc71=_0x498176['Position']['verify'](_0x465311['position']);if(_0x3adc71)return'position.'+_0x3adc71;}return null!=_0x465311['oldName']&&_0x465311['hasOwnProperty']('oldName')&&!_0x1412aa['isString'](_0x465311['oldName'])?'oldName:\x20string\x20expected':null!=_0x465311['newName']&&_0x465311['hasOwnProperty']('newName')&&!_0x1412aa['isString'](_0x465311['newName'])?'newName:\x20string\x20expected':null!=_0x465311['wasUndone']&&_0x465311['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x465311['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x2164bb['fromObject']=function(_0xb9942a){if(_0xb9942a instanceof _0x498176['RenameOperation'])return _0xb9942a;var _0x3c703c=new _0x498176['RenameOperation']();if(null!=_0xb9942a['position']){if('object'!=typeof _0xb9942a['position'])throw TypeError('.RenameOperation.position:\x20object\x20expected');_0x3c703c['position']=_0x498176['Position']['fromObject'](_0xb9942a['position']);}return null!=_0xb9942a['oldName']&&(_0x3c703c['oldName']=String(_0xb9942a['oldName'])),null!=_0xb9942a['newName']&&(_0x3c703c['newName']=String(_0xb9942a['newName'])),null!=_0xb9942a['wasUndone']&&(_0x3c703c['wasUndone']=Boolean(_0xb9942a['wasUndone'])),_0x3c703c;},_0x2164bb['toObject']=function(_0x3249bb,_0x45b828){_0x45b828||(_0x45b828={});var _0x30fb9d={};return _0x45b828['defaults']&&(_0x30fb9d['position']=null,_0x30fb9d['oldName']='',_0x30fb9d['newName']='',_0x30fb9d['wasUndone']=!0x1),null!=_0x3249bb['position']&&_0x3249bb['hasOwnProperty']('position')&&(_0x30fb9d['position']=_0x498176['Position']['toObject'](_0x3249bb['position'],_0x45b828)),null!=_0x3249bb['oldName']&&_0x3249bb['hasOwnProperty']('oldName')&&(_0x30fb9d['oldName']=_0x3249bb['oldName']),null!=_0x3249bb['newName']&&_0x3249bb['hasOwnProperty']('newName')&&(_0x30fb9d['newName']=_0x3249bb['newName']),null!=_0x3249bb['wasUndone']&&_0x3249bb['hasOwnProperty']('wasUndone')&&(_0x30fb9d['wasUndone']=_0x3249bb['wasUndone']),_0x30fb9d;},_0x2164bb['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x2164bb['getTypeUrl']=function(_0x2a7479){return void 0x0===_0x2a7479&&(_0x2a7479='type.googleapis.com'),_0x2a7479+'/RenameOperation';},_0x2164bb;}()),_0x498176['RootAttributeOperation']=(function(){function _0x5b3eaa(_0x537d89){if(_0x537d89){for(var _0x27029d=Object['keys'](_0x537d89),_0x1a7a63=0x0;_0x1a7a63<_0x27029d['length'];++_0x1a7a63)null!=_0x537d89[_0x27029d[_0x1a7a63]]&&(this[_0x27029d[_0x1a7a63]]=_0x537d89[_0x27029d[_0x1a7a63]]);}}return _0x5b3eaa['prototype']['root']='',_0x5b3eaa['prototype']['key']='',_0x5b3eaa['prototype']['oldValueBoolean']=!0x1,_0x5b3eaa['prototype']['oldValueJson']='',_0x5b3eaa['prototype']['newValueBoolean']=!0x1,_0x5b3eaa['prototype']['newValueJson']='',_0x5b3eaa['prototype']['wasUndone']=!0x1,_0x5b3eaa['create']=function(_0x482758){return new _0x5b3eaa(_0x482758);},_0x5b3eaa['encode']=function(_0x1553ee,_0x3fb40e){return _0x3fb40e||(_0x3fb40e=_0x21812c['create']()),null!=_0x1553ee['root']&&Object['hasOwnProperty']['call'](_0x1553ee,'root')&&_0x3fb40e['uint32'](0xa)['string'](_0x1553ee['root']),null!=_0x1553ee['key']&&Object['hasOwnProperty']['call'](_0x1553ee,'key')&&_0x3fb40e['uint32'](0x12)['string'](_0x1553ee['key']),null!=_0x1553ee['oldValueBoolean']&&Object['hasOwnProperty']['call'](_0x1553ee,'oldValueBoolean')&&_0x3fb40e['uint32'](0x18)['bool'](_0x1553ee['oldValueBoolean']),null!=_0x1553ee['oldValueJson']&&Object['hasOwnProperty']['call'](_0x1553ee,'oldValueJson')&&_0x3fb40e['uint32'](0x22)['string'](_0x1553ee['oldValueJson']),null!=_0x1553ee['newValueBoolean']&&Object['hasOwnProperty']['call'](_0x1553ee,'newValueBoolean')&&_0x3fb40e['uint32'](0x28)['bool'](_0x1553ee['newValueBoolean']),null!=_0x1553ee['newValueJson']&&Object['hasOwnProperty']['call'](_0x1553ee,'newValueJson')&&_0x3fb40e['uint32'](0x32)['string'](_0x1553ee['newValueJson']),null!=_0x1553ee['wasUndone']&&Object['hasOwnProperty']['call'](_0x1553ee,'wasUndone')&&_0x3fb40e['uint32'](0x38)['bool'](_0x1553ee['wasUndone']),_0x3fb40e;},_0x5b3eaa['encodeDelimited']=function(_0x3feca9,_0x7878a9){return this['encode'](_0x3feca9,_0x7878a9)['ldelim']();},_0x5b3eaa['decode']=function(_0x221b2e,_0x3ea4d7){_0x221b2e instanceof _0x48d5aa||(_0x221b2e=_0x48d5aa['create'](_0x221b2e));for(var _0x37e32e=void 0x0===_0x3ea4d7?_0x221b2e['len']:_0x221b2e['pos']+_0x3ea4d7,_0x3508eb=new _0x498176['RootAttributeOperation']();_0x221b2e['pos']<_0x37e32e;){var _0x440bc6=_0x221b2e['uint32']();switch(_0x440bc6>>>0x3){case 0x1:_0x3508eb['root']=_0x221b2e['string']();break;case 0x2:_0x3508eb['key']=_0x221b2e['string']();break;case 0x3:_0x3508eb['oldValueBoolean']=_0x221b2e['bool']();break;case 0x4:_0x3508eb['oldValueJson']=_0x221b2e['string']();break;case 0x5:_0x3508eb['newValueBoolean']=_0x221b2e['bool']();break;case 0x6:_0x3508eb['newValueJson']=_0x221b2e['string']();break;case 0x7:_0x3508eb['wasUndone']=_0x221b2e['bool']();break;default:_0x221b2e['skipType'](0x7&_0x440bc6);}}return _0x3508eb;},_0x5b3eaa['decodeDelimited']=function(_0x3939f1){return _0x3939f1 instanceof _0x48d5aa||(_0x3939f1=new _0x48d5aa(_0x3939f1)),this['decode'](_0x3939f1,_0x3939f1['uint32']());},_0x5b3eaa['verify']=function(_0x2a1291){return'object'!=typeof _0x2a1291||null===_0x2a1291?'object\x20expected':null!=_0x2a1291['root']&&_0x2a1291['hasOwnProperty']('root')&&!_0x1412aa['isString'](_0x2a1291['root'])?'root:\x20string\x20expected':null!=_0x2a1291['key']&&_0x2a1291['hasOwnProperty']('key')&&!_0x1412aa['isString'](_0x2a1291['key'])?'key:\x20string\x20expected':null!=_0x2a1291['oldValueBoolean']&&_0x2a1291['hasOwnProperty']('oldValueBoolean')&&'boolean'!=typeof _0x2a1291['oldValueBoolean']?'oldValueBoolean:\x20boolean\x20expected':null!=_0x2a1291['oldValueJson']&&_0x2a1291['hasOwnProperty']('oldValueJson')&&!_0x1412aa['isString'](_0x2a1291['oldValueJson'])?'oldValueJson:\x20string\x20expected':null!=_0x2a1291['newValueBoolean']&&_0x2a1291['hasOwnProperty']('newValueBoolean')&&'boolean'!=typeof _0x2a1291['newValueBoolean']?'newValueBoolean:\x20boolean\x20expected':null!=_0x2a1291['newValueJson']&&_0x2a1291['hasOwnProperty']('newValueJson')&&!_0x1412aa['isString'](_0x2a1291['newValueJson'])?'newValueJson:\x20string\x20expected':null!=_0x2a1291['wasUndone']&&_0x2a1291['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x2a1291['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x5b3eaa['fromObject']=function(_0x33cdd6){if(_0x33cdd6 instanceof _0x498176['RootAttributeOperation'])return _0x33cdd6;var _0x5078a4=new _0x498176['RootAttributeOperation']();return null!=_0x33cdd6['root']&&(_0x5078a4['root']=String(_0x33cdd6['root'])),null!=_0x33cdd6['key']&&(_0x5078a4['key']=String(_0x33cdd6['key'])),null!=_0x33cdd6['oldValueBoolean']&&(_0x5078a4['oldValueBoolean']=Boolean(_0x33cdd6['oldValueBoolean'])),null!=_0x33cdd6['oldValueJson']&&(_0x5078a4['oldValueJson']=String(_0x33cdd6['oldValueJson'])),null!=_0x33cdd6['newValueBoolean']&&(_0x5078a4['newValueBoolean']=Boolean(_0x33cdd6['newValueBoolean'])),null!=_0x33cdd6['newValueJson']&&(_0x5078a4['newValueJson']=String(_0x33cdd6['newValueJson'])),null!=_0x33cdd6['wasUndone']&&(_0x5078a4['wasUndone']=Boolean(_0x33cdd6['wasUndone'])),_0x5078a4;},_0x5b3eaa['toObject']=function(_0x5075ae,_0x7609d7){_0x7609d7||(_0x7609d7={});var _0x2de6e0={};return _0x7609d7['defaults']&&(_0x2de6e0['root']='',_0x2de6e0['key']='',_0x2de6e0['oldValueBoolean']=!0x1,_0x2de6e0['oldValueJson']='',_0x2de6e0['newValueBoolean']=!0x1,_0x2de6e0['newValueJson']='',_0x2de6e0['wasUndone']=!0x1),null!=_0x5075ae['root']&&_0x5075ae['hasOwnProperty']('root')&&(_0x2de6e0['root']=_0x5075ae['root']),null!=_0x5075ae['key']&&_0x5075ae['hasOwnProperty']('key')&&(_0x2de6e0['key']=_0x5075ae['key']),null!=_0x5075ae['oldValueBoolean']&&_0x5075ae['hasOwnProperty']('oldValueBoolean')&&(_0x2de6e0['oldValueBoolean']=_0x5075ae['oldValueBoolean']),null!=_0x5075ae['oldValueJson']&&_0x5075ae['hasOwnProperty']('oldValueJson')&&(_0x2de6e0['oldValueJson']=_0x5075ae['oldValueJson']),null!=_0x5075ae['newValueBoolean']&&_0x5075ae['hasOwnProperty']('newValueBoolean')&&(_0x2de6e0['newValueBoolean']=_0x5075ae['newValueBoolean']),null!=_0x5075ae['newValueJson']&&_0x5075ae['hasOwnProperty']('newValueJson')&&(_0x2de6e0['newValueJson']=_0x5075ae['newValueJson']),null!=_0x5075ae['wasUndone']&&_0x5075ae['hasOwnProperty']('wasUndone')&&(_0x2de6e0['wasUndone']=_0x5075ae['wasUndone']),_0x2de6e0;},_0x5b3eaa['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x5b3eaa['getTypeUrl']=function(_0x30de4d){return void 0x0===_0x30de4d&&(_0x30de4d='type.googleapis.com'),_0x30de4d+'/RootAttributeOperation';},_0x5b3eaa;}()),_0x498176['RootOperation']=(function(){function _0x214061(_0x423180){if(_0x423180){for(var _0x330f4c=Object['keys'](_0x423180),_0x42072b=0x0;_0x42072b<_0x330f4c['length'];++_0x42072b)null!=_0x423180[_0x330f4c[_0x42072b]]&&(this[_0x330f4c[_0x42072b]]=_0x423180[_0x330f4c[_0x42072b]]);}}return _0x214061['prototype']['rootName']='',_0x214061['prototype']['elementName']='',_0x214061['prototype']['isAdd']=!0x1,_0x214061['prototype']['wasUndone']=!0x1,_0x214061['create']=function(_0x57121b){return new _0x214061(_0x57121b);},_0x214061['encode']=function(_0x74199,_0x3fe54e){return _0x3fe54e||(_0x3fe54e=_0x21812c['create']()),null!=_0x74199['rootName']&&Object['hasOwnProperty']['call'](_0x74199,'rootName')&&_0x3fe54e['uint32'](0xa)['string'](_0x74199['rootName']),null!=_0x74199['elementName']&&Object['hasOwnProperty']['call'](_0x74199,'elementName')&&_0x3fe54e['uint32'](0x12)['string'](_0x74199['elementName']),null!=_0x74199['isAdd']&&Object['hasOwnProperty']['call'](_0x74199,'isAdd')&&_0x3fe54e['uint32'](0x18)['bool'](_0x74199['isAdd']),null!=_0x74199['wasUndone']&&Object['hasOwnProperty']['call'](_0x74199,'wasUndone')&&_0x3fe54e['uint32'](0x20)['bool'](_0x74199['wasUndone']),_0x3fe54e;},_0x214061['encodeDelimited']=function(_0x2f7b89,_0x906de3){return this['encode'](_0x2f7b89,_0x906de3)['ldelim']();},_0x214061['decode']=function(_0x5db293,_0x556529){_0x5db293 instanceof _0x48d5aa||(_0x5db293=_0x48d5aa['create'](_0x5db293));for(var _0x48c7ba=void 0x0===_0x556529?_0x5db293['len']:_0x5db293['pos']+_0x556529,_0x1c8f7b=new _0x498176['RootOperation']();_0x5db293['pos']<_0x48c7ba;){var _0x5690bc=_0x5db293['uint32']();switch(_0x5690bc>>>0x3){case 0x1:_0x1c8f7b['rootName']=_0x5db293['string']();break;case 0x2:_0x1c8f7b['elementName']=_0x5db293['string']();break;case 0x3:_0x1c8f7b['isAdd']=_0x5db293['bool']();break;case 0x4:_0x1c8f7b['wasUndone']=_0x5db293['bool']();break;default:_0x5db293['skipType'](0x7&_0x5690bc);}}return _0x1c8f7b;},_0x214061['decodeDelimited']=function(_0x7cf2bb){return _0x7cf2bb instanceof _0x48d5aa||(_0x7cf2bb=new _0x48d5aa(_0x7cf2bb)),this['decode'](_0x7cf2bb,_0x7cf2bb['uint32']());},_0x214061['verify']=function(_0xdbd989){return'object'!=typeof _0xdbd989||null===_0xdbd989?'object\x20expected':null!=_0xdbd989['rootName']&&_0xdbd989['hasOwnProperty']('rootName')&&!_0x1412aa['isString'](_0xdbd989['rootName'])?'rootName:\x20string\x20expected':null!=_0xdbd989['elementName']&&_0xdbd989['hasOwnProperty']('elementName')&&!_0x1412aa['isString'](_0xdbd989['elementName'])?'elementName:\x20string\x20expected':null!=_0xdbd989['isAdd']&&_0xdbd989['hasOwnProperty']('isAdd')&&'boolean'!=typeof _0xdbd989['isAdd']?'isAdd:\x20boolean\x20expected':null!=_0xdbd989['wasUndone']&&_0xdbd989['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0xdbd989['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x214061['fromObject']=function(_0x2f53c5){if(_0x2f53c5 instanceof _0x498176['RootOperation'])return _0x2f53c5;var _0x46b9b=new _0x498176['RootOperation']();return null!=_0x2f53c5['rootName']&&(_0x46b9b['rootName']=String(_0x2f53c5['rootName'])),null!=_0x2f53c5['elementName']&&(_0x46b9b['elementName']=String(_0x2f53c5['elementName'])),null!=_0x2f53c5['isAdd']&&(_0x46b9b['isAdd']=Boolean(_0x2f53c5['isAdd'])),null!=_0x2f53c5['wasUndone']&&(_0x46b9b['wasUndone']=Boolean(_0x2f53c5['wasUndone'])),_0x46b9b;},_0x214061['toObject']=function(_0x787f14,_0x2d3f49){_0x2d3f49||(_0x2d3f49={});var _0x42c448={};return _0x2d3f49['defaults']&&(_0x42c448['rootName']='',_0x42c448['elementName']='',_0x42c448['isAdd']=!0x1,_0x42c448['wasUndone']=!0x1),null!=_0x787f14['rootName']&&_0x787f14['hasOwnProperty']('rootName')&&(_0x42c448['rootName']=_0x787f14['rootName']),null!=_0x787f14['elementName']&&_0x787f14['hasOwnProperty']('elementName')&&(_0x42c448['elementName']=_0x787f14['elementName']),null!=_0x787f14['isAdd']&&_0x787f14['hasOwnProperty']('isAdd')&&(_0x42c448['isAdd']=_0x787f14['isAdd']),null!=_0x787f14['wasUndone']&&_0x787f14['hasOwnProperty']('wasUndone')&&(_0x42c448['wasUndone']=_0x787f14['wasUndone']),_0x42c448;},_0x214061['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x214061['getTypeUrl']=function(_0xf302f5){return void 0x0===_0xf302f5&&(_0xf302f5='type.googleapis.com'),_0xf302f5+'/RootOperation';},_0x214061;}()),_0x498176['SplitOperation']=(function(){function _0x21b42f(_0x450842){if(_0x450842){for(var _0x4bf8e3=Object['keys'](_0x450842),_0x2005f4=0x0;_0x2005f4<_0x4bf8e3['length'];++_0x2005f4)null!=_0x450842[_0x4bf8e3[_0x2005f4]]&&(this[_0x4bf8e3[_0x2005f4]]=_0x450842[_0x4bf8e3[_0x2005f4]]);}}return _0x21b42f['prototype']['splitPosition']=null,_0x21b42f['prototype']['graveyardPosition']=null,_0x21b42f['prototype']['howMany']=0x0,_0x21b42f['prototype']['insertionPosition']=null,_0x21b42f['prototype']['wasUndone']=!0x1,_0x21b42f['create']=function(_0x5f0512){return new _0x21b42f(_0x5f0512);},_0x21b42f['encode']=function(_0x5e5920,_0xdda7ef){return _0xdda7ef||(_0xdda7ef=_0x21812c['create']()),null!=_0x5e5920['splitPosition']&&Object['hasOwnProperty']['call'](_0x5e5920,'splitPosition')&&_0x498176['Position']['encode'](_0x5e5920['splitPosition'],_0xdda7ef['uint32'](0xa)['fork']())['ldelim'](),null!=_0x5e5920['graveyardPosition']&&Object['hasOwnProperty']['call'](_0x5e5920,'graveyardPosition')&&_0x498176['Position']['encode'](_0x5e5920['graveyardPosition'],_0xdda7ef['uint32'](0x12)['fork']())['ldelim'](),null!=_0x5e5920['howMany']&&Object['hasOwnProperty']['call'](_0x5e5920,'howMany')&&_0xdda7ef['uint32'](0x18)['uint32'](_0x5e5920['howMany']),null!=_0x5e5920['insertionPosition']&&Object['hasOwnProperty']['call'](_0x5e5920,'insertionPosition')&&_0x498176['Position']['encode'](_0x5e5920['insertionPosition'],_0xdda7ef['uint32'](0x22)['fork']())['ldelim'](),null!=_0x5e5920['wasUndone']&&Object['hasOwnProperty']['call'](_0x5e5920,'wasUndone')&&_0xdda7ef['uint32'](0x28)['bool'](_0x5e5920['wasUndone']),_0xdda7ef;},_0x21b42f['encodeDelimited']=function(_0x21e44f,_0x45df93){return this['encode'](_0x21e44f,_0x45df93)['ldelim']();},_0x21b42f['decode']=function(_0x313d1f,_0x589803){_0x313d1f instanceof _0x48d5aa||(_0x313d1f=_0x48d5aa['create'](_0x313d1f));for(var _0x4da901=void 0x0===_0x589803?_0x313d1f['len']:_0x313d1f['pos']+_0x589803,_0x301b2f=new _0x498176['SplitOperation']();_0x313d1f['pos']<_0x4da901;){var _0x28f836=_0x313d1f['uint32']();switch(_0x28f836>>>0x3){case 0x1:_0x301b2f['splitPosition']=_0x498176['Position']['decode'](_0x313d1f,_0x313d1f['uint32']());break;case 0x2:_0x301b2f['graveyardPosition']=_0x498176['Position']['decode'](_0x313d1f,_0x313d1f['uint32']());break;case 0x3:_0x301b2f['howMany']=_0x313d1f['uint32']();break;case 0x4:_0x301b2f['insertionPosition']=_0x498176['Position']['decode'](_0x313d1f,_0x313d1f['uint32']());break;case 0x5:_0x301b2f['wasUndone']=_0x313d1f['bool']();break;default:_0x313d1f['skipType'](0x7&_0x28f836);}}return _0x301b2f;},_0x21b42f['decodeDelimited']=function(_0x1de616){return _0x1de616 instanceof _0x48d5aa||(_0x1de616=new _0x48d5aa(_0x1de616)),this['decode'](_0x1de616,_0x1de616['uint32']());},_0x21b42f['verify']=function(_0x22c612){if('object'!=typeof _0x22c612||null===_0x22c612)return'object\x20expected';var _0x73b9c2;if(null!=_0x22c612['splitPosition']&&_0x22c612['hasOwnProperty']('splitPosition')&&(_0x73b9c2=_0x498176['Position']['verify'](_0x22c612['splitPosition'])))return'splitPosition.'+_0x73b9c2;if(null!=_0x22c612['graveyardPosition']&&_0x22c612['hasOwnProperty']('graveyardPosition')&&(_0x73b9c2=_0x498176['Position']['verify'](_0x22c612['graveyardPosition'])))return'graveyardPosition.'+_0x73b9c2;if(null!=_0x22c612['howMany']&&_0x22c612['hasOwnProperty']('howMany')&&!_0x1412aa['isInteger'](_0x22c612['howMany']))return'howMany:\x20integer\x20expected';if(null!=_0x22c612['insertionPosition']&&_0x22c612['hasOwnProperty']('insertionPosition')&&(_0x73b9c2=_0x498176['Position']['verify'](_0x22c612['insertionPosition'])))return'insertionPosition.'+_0x73b9c2;return null!=_0x22c612['wasUndone']&&_0x22c612['hasOwnProperty']('wasUndone')&&'boolean'!=typeof _0x22c612['wasUndone']?'wasUndone:\x20boolean\x20expected':null;},_0x21b42f['fromObject']=function(_0x508ba3){if(_0x508ba3 instanceof _0x498176['SplitOperation'])return _0x508ba3;var _0x3036b7=new _0x498176['SplitOperation']();if(null!=_0x508ba3['splitPosition']){if('object'!=typeof _0x508ba3['splitPosition'])throw TypeError('.SplitOperation.splitPosition:\x20object\x20expected');_0x3036b7['splitPosition']=_0x498176['Position']['fromObject'](_0x508ba3['splitPosition']);}if(null!=_0x508ba3['graveyardPosition']){if('object'!=typeof _0x508ba3['graveyardPosition'])throw TypeError('.SplitOperation.graveyardPosition:\x20object\x20expected');_0x3036b7['graveyardPosition']=_0x498176['Position']['fromObject'](_0x508ba3['graveyardPosition']);}if(null!=_0x508ba3['howMany']&&(_0x3036b7['howMany']=_0x508ba3['howMany']>>>0x0),null!=_0x508ba3['insertionPosition']){if('object'!=typeof _0x508ba3['insertionPosition'])throw TypeError('.SplitOperation.insertionPosition:\x20object\x20expected');_0x3036b7['insertionPosition']=_0x498176['Position']['fromObject'](_0x508ba3['insertionPosition']);}return null!=_0x508ba3['wasUndone']&&(_0x3036b7['wasUndone']=Boolean(_0x508ba3['wasUndone'])),_0x3036b7;},_0x21b42f['toObject']=function(_0x41ef68,_0x29b3f3){_0x29b3f3||(_0x29b3f3={});var _0x68bba0={};return _0x29b3f3['defaults']&&(_0x68bba0['splitPosition']=null,_0x68bba0['graveyardPosition']=null,_0x68bba0['howMany']=0x0,_0x68bba0['insertionPosition']=null,_0x68bba0['wasUndone']=!0x1),null!=_0x41ef68['splitPosition']&&_0x41ef68['hasOwnProperty']('splitPosition')&&(_0x68bba0['splitPosition']=_0x498176['Position']['toObject'](_0x41ef68['splitPosition'],_0x29b3f3)),null!=_0x41ef68['graveyardPosition']&&_0x41ef68['hasOwnProperty']('graveyardPosition')&&(_0x68bba0['graveyardPosition']=_0x498176['Position']['toObject'](_0x41ef68['graveyardPosition'],_0x29b3f3)),null!=_0x41ef68['howMany']&&_0x41ef68['hasOwnProperty']('howMany')&&(_0x68bba0['howMany']=_0x41ef68['howMany']),null!=_0x41ef68['insertionPosition']&&_0x41ef68['hasOwnProperty']('insertionPosition')&&(_0x68bba0['insertionPosition']=_0x498176['Position']['toObject'](_0x41ef68['insertionPosition'],_0x29b3f3)),null!=_0x41ef68['wasUndone']&&_0x41ef68['hasOwnProperty']('wasUndone')&&(_0x68bba0['wasUndone']=_0x41ef68['wasUndone']),_0x68bba0;},_0x21b42f['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x21b42f['getTypeUrl']=function(_0x218613){return void 0x0===_0x218613&&(_0x218613='type.googleapis.com'),_0x218613+'/SplitOperation';},_0x21b42f;}()),_0x498176['Position']=(function(){function _0x49a8cc(_0x22f8fd){if(this['path']=[],_0x22f8fd){for(var _0x361b85=Object['keys'](_0x22f8fd),_0x377e19=0x0;_0x377e19<_0x361b85['length'];++_0x377e19)null!=_0x22f8fd[_0x361b85[_0x377e19]]&&(this[_0x361b85[_0x377e19]]=_0x22f8fd[_0x361b85[_0x377e19]]);}}return _0x49a8cc['prototype']['root']='',_0x49a8cc['prototype']['rootMain']=!0x1,_0x49a8cc['prototype']['rootGraveyard']=!0x1,_0x49a8cc['prototype']['path']=_0x1412aa['emptyArray'],_0x49a8cc['prototype']['stickiness']='',_0x49a8cc['create']=function(_0x344dee){return new _0x49a8cc(_0x344dee);},_0x49a8cc['encode']=function(_0x21067d,_0x39c631){if(_0x39c631||(_0x39c631=_0x21812c['create']()),null!=_0x21067d['root']&&Object['hasOwnProperty']['call'](_0x21067d,'root')&&_0x39c631['uint32'](0xa)['string'](_0x21067d['root']),null!=_0x21067d['rootMain']&&Object['hasOwnProperty']['call'](_0x21067d,'rootMain')&&_0x39c631['uint32'](0x10)['bool'](_0x21067d['rootMain']),null!=_0x21067d['rootGraveyard']&&Object['hasOwnProperty']['call'](_0x21067d,'rootGraveyard')&&_0x39c631['uint32'](0x18)['bool'](_0x21067d['rootGraveyard']),null!=_0x21067d['path']&&_0x21067d['path']['length']){_0x39c631['uint32'](0x22)['fork']();for(var _0x25fc95=0x0;_0x25fc95<_0x21067d['path']['length'];++_0x25fc95)_0x39c631['uint32'](_0x21067d['path'][_0x25fc95]);_0x39c631['ldelim']();}return null!=_0x21067d['stickiness']&&Object['hasOwnProperty']['call'](_0x21067d,'stickiness')&&_0x39c631['uint32'](0x2a)['string'](_0x21067d['stickiness']),_0x39c631;},_0x49a8cc['encodeDelimited']=function(_0x48e6fd,_0x32c98b){return this['encode'](_0x48e6fd,_0x32c98b)['ldelim']();},_0x49a8cc['decode']=function(_0xc276c4,_0x787b14){_0xc276c4 instanceof _0x48d5aa||(_0xc276c4=_0x48d5aa['create'](_0xc276c4));for(var _0x43305b=void 0x0===_0x787b14?_0xc276c4['len']:_0xc276c4['pos']+_0x787b14,_0xe2f698=new _0x498176['Position']();_0xc276c4['pos']<_0x43305b;){var _0xc22903=_0xc276c4['uint32']();switch(_0xc22903>>>0x3){case 0x1:_0xe2f698['root']=_0xc276c4['string']();break;case 0x2:_0xe2f698['rootMain']=_0xc276c4['bool']();break;case 0x3:_0xe2f698['rootGraveyard']=_0xc276c4['bool']();break;case 0x4:if(_0xe2f698['path']&&_0xe2f698['path']['length']||(_0xe2f698['path']=[]),0x2==(0x7&_0xc22903)){for(var _0x571b00=_0xc276c4['uint32']()+_0xc276c4['pos'];_0xc276c4['pos']<_0x571b00;)_0xe2f698['path']['push'](_0xc276c4['uint32']());}else _0xe2f698['path']['push'](_0xc276c4['uint32']());break;case 0x5:_0xe2f698['stickiness']=_0xc276c4['string']();break;default:_0xc276c4['skipType'](0x7&_0xc22903);}}return _0xe2f698;},_0x49a8cc['decodeDelimited']=function(_0x54b05a){return _0x54b05a instanceof _0x48d5aa||(_0x54b05a=new _0x48d5aa(_0x54b05a)),this['decode'](_0x54b05a,_0x54b05a['uint32']());},_0x49a8cc['verify']=function(_0x2fff10){if('object'!=typeof _0x2fff10||null===_0x2fff10)return'object\x20expected';if(null!=_0x2fff10['root']&&_0x2fff10['hasOwnProperty']('root')&&!_0x1412aa['isString'](_0x2fff10['root']))return'root:\x20string\x20expected';if(null!=_0x2fff10['rootMain']&&_0x2fff10['hasOwnProperty']('rootMain')&&'boolean'!=typeof _0x2fff10['rootMain'])return'rootMain:\x20boolean\x20expected';if(null!=_0x2fff10['rootGraveyard']&&_0x2fff10['hasOwnProperty']('rootGraveyard')&&'boolean'!=typeof _0x2fff10['rootGraveyard'])return'rootGraveyard:\x20boolean\x20expected';if(null!=_0x2fff10['path']&&_0x2fff10['hasOwnProperty']('path')){if(!Array['isArray'](_0x2fff10['path']))return'path:\x20array\x20expected';for(var _0x2109be=0x0;_0x2109be<_0x2fff10['path']['length'];++_0x2109be)if(!_0x1412aa['isInteger'](_0x2fff10['path'][_0x2109be]))return'path:\x20integer[]\x20expected';}return null!=_0x2fff10['stickiness']&&_0x2fff10['hasOwnProperty']('stickiness')&&!_0x1412aa['isString'](_0x2fff10['stickiness'])?'stickiness:\x20string\x20expected':null;},_0x49a8cc['fromObject']=function(_0x238510){if(_0x238510 instanceof _0x498176['Position'])return _0x238510;var _0x368354=new _0x498176['Position']();if(null!=_0x238510['root']&&(_0x368354['root']=String(_0x238510['root'])),null!=_0x238510['rootMain']&&(_0x368354['rootMain']=Boolean(_0x238510['rootMain'])),null!=_0x238510['rootGraveyard']&&(_0x368354['rootGraveyard']=Boolean(_0x238510['rootGraveyard'])),_0x238510['path']){if(!Array['isArray'](_0x238510['path']))throw TypeError('.Position.path:\x20array\x20expected');_0x368354['path']=[];for(var _0x187e8c=0x0;_0x187e8c<_0x238510['path']['length'];++_0x187e8c)_0x368354['path'][_0x187e8c]=_0x238510['path'][_0x187e8c]>>>0x0;}return null!=_0x238510['stickiness']&&(_0x368354['stickiness']=String(_0x238510['stickiness'])),_0x368354;},_0x49a8cc['toObject']=function(_0x13b448,_0xb4ec41){_0xb4ec41||(_0xb4ec41={});var _0x53c348={};if((_0xb4ec41['arrays']||_0xb4ec41['defaults'])&&(_0x53c348['path']=[]),_0xb4ec41['defaults']&&(_0x53c348['root']='',_0x53c348['rootMain']=!0x1,_0x53c348['rootGraveyard']=!0x1,_0x53c348['stickiness']=''),null!=_0x13b448['root']&&_0x13b448['hasOwnProperty']('root')&&(_0x53c348['root']=_0x13b448['root']),null!=_0x13b448['rootMain']&&_0x13b448['hasOwnProperty']('rootMain')&&(_0x53c348['rootMain']=_0x13b448['rootMain']),null!=_0x13b448['rootGraveyard']&&_0x13b448['hasOwnProperty']('rootGraveyard')&&(_0x53c348['rootGraveyard']=_0x13b448['rootGraveyard']),_0x13b448['path']&&_0x13b448['path']['length']){_0x53c348['path']=[];for(var _0x3fe113=0x0;_0x3fe113<_0x13b448['path']['length'];++_0x3fe113)_0x53c348['path'][_0x3fe113]=_0x13b448['path'][_0x3fe113];}return null!=_0x13b448['stickiness']&&_0x13b448['hasOwnProperty']('stickiness')&&(_0x53c348['stickiness']=_0x13b448['stickiness']),_0x53c348;},_0x49a8cc['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x49a8cc['getTypeUrl']=function(_0x20cbdd){return void 0x0===_0x20cbdd&&(_0x20cbdd='type.googleapis.com'),_0x20cbdd+'/Position';},_0x49a8cc;}()),_0x498176['Range']=(function(){function _0x332a25(_0x1c86d2){if(_0x1c86d2){for(var _0x2256b8=Object['keys'](_0x1c86d2),_0x1b05d1=0x0;_0x1b05d1<_0x2256b8['length'];++_0x1b05d1)null!=_0x1c86d2[_0x2256b8[_0x1b05d1]]&&(this[_0x2256b8[_0x1b05d1]]=_0x1c86d2[_0x2256b8[_0x1b05d1]]);}}return _0x332a25['prototype']['start']=null,_0x332a25['prototype']['end']=null,_0x332a25['create']=function(_0x3554a3){return new _0x332a25(_0x3554a3);},_0x332a25['encode']=function(_0x55a1eb,_0xda1684){return _0xda1684||(_0xda1684=_0x21812c['create']()),null!=_0x55a1eb['start']&&Object['hasOwnProperty']['call'](_0x55a1eb,'start')&&_0x498176['Position']['encode'](_0x55a1eb['start'],_0xda1684['uint32'](0xa)['fork']())['ldelim'](),null!=_0x55a1eb['end']&&Object['hasOwnProperty']['call'](_0x55a1eb,'end')&&_0x498176['Position']['encode'](_0x55a1eb['end'],_0xda1684['uint32'](0x12)['fork']())['ldelim'](),_0xda1684;},_0x332a25['encodeDelimited']=function(_0x5b9fa8,_0x1ee9f1){return this['encode'](_0x5b9fa8,_0x1ee9f1)['ldelim']();},_0x332a25['decode']=function(_0x37cfbd,_0x4a6c52){_0x37cfbd instanceof _0x48d5aa||(_0x37cfbd=_0x48d5aa['create'](_0x37cfbd));for(var _0x1ebdb5=void 0x0===_0x4a6c52?_0x37cfbd['len']:_0x37cfbd['pos']+_0x4a6c52,_0x625553=new _0x498176['Range']();_0x37cfbd['pos']<_0x1ebdb5;){var _0x3439d8=_0x37cfbd['uint32']();switch(_0x3439d8>>>0x3){case 0x1:_0x625553['start']=_0x498176['Position']['decode'](_0x37cfbd,_0x37cfbd['uint32']());break;case 0x2:_0x625553['end']=_0x498176['Position']['decode'](_0x37cfbd,_0x37cfbd['uint32']());break;default:_0x37cfbd['skipType'](0x7&_0x3439d8);}}return _0x625553;},_0x332a25['decodeDelimited']=function(_0x5861a6){return _0x5861a6 instanceof _0x48d5aa||(_0x5861a6=new _0x48d5aa(_0x5861a6)),this['decode'](_0x5861a6,_0x5861a6['uint32']());},_0x332a25['verify']=function(_0x337ce4){if('object'!=typeof _0x337ce4||null===_0x337ce4)return'object\x20expected';var _0x640673;if(null!=_0x337ce4['start']&&_0x337ce4['hasOwnProperty']('start')&&(_0x640673=_0x498176['Position']['verify'](_0x337ce4['start'])))return'start.'+_0x640673;if(null!=_0x337ce4['end']&&_0x337ce4['hasOwnProperty']('end')&&(_0x640673=_0x498176['Position']['verify'](_0x337ce4['end'])))return'end.'+_0x640673;return null;},_0x332a25['fromObject']=function(_0x5c9032){if(_0x5c9032 instanceof _0x498176['Range'])return _0x5c9032;var _0x10d2b6=new _0x498176['Range']();if(null!=_0x5c9032['start']){if('object'!=typeof _0x5c9032['start'])throw TypeError('.Range.start:\x20object\x20expected');_0x10d2b6['start']=_0x498176['Position']['fromObject'](_0x5c9032['start']);}if(null!=_0x5c9032['end']){if('object'!=typeof _0x5c9032['end'])throw TypeError('.Range.end:\x20object\x20expected');_0x10d2b6['end']=_0x498176['Position']['fromObject'](_0x5c9032['end']);}return _0x10d2b6;},_0x332a25['toObject']=function(_0x3c2ac8,_0xf6e474){_0xf6e474||(_0xf6e474={});var _0x3f6e8d={};return _0xf6e474['defaults']&&(_0x3f6e8d['start']=null,_0x3f6e8d['end']=null),null!=_0x3c2ac8['start']&&_0x3c2ac8['hasOwnProperty']('start')&&(_0x3f6e8d['start']=_0x498176['Position']['toObject'](_0x3c2ac8['start'],_0xf6e474)),null!=_0x3c2ac8['end']&&_0x3c2ac8['hasOwnProperty']('end')&&(_0x3f6e8d['end']=_0x498176['Position']['toObject'](_0x3c2ac8['end'],_0xf6e474)),_0x3f6e8d;},_0x332a25['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x332a25['getTypeUrl']=function(_0x3df285){return void 0x0===_0x3df285&&(_0x3df285='type.googleapis.com'),_0x3df285+'/Range';},_0x332a25;}()),_0x498176['Element']=(function(){function _0x4cc3b7(_0x1906d6){if(this['children']=[],this['attributesBoolean']={},_0x1906d6){for(var _0xae8813=Object['keys'](_0x1906d6),_0x2ba598=0x0;_0x2ba598<_0xae8813['length'];++_0x2ba598)null!=_0x1906d6[_0xae8813[_0x2ba598]]&&(this[_0xae8813[_0x2ba598]]=_0x1906d6[_0xae8813[_0x2ba598]]);}}return _0x4cc3b7['prototype']['name']='',_0x4cc3b7['prototype']['children']=_0x1412aa['emptyArray'],_0x4cc3b7['prototype']['data']='',_0x4cc3b7['prototype']['attributesBoolean']=_0x1412aa['emptyObject'],_0x4cc3b7['prototype']['attributesJson']='',_0x4cc3b7['create']=function(_0x54e63a){return new _0x4cc3b7(_0x54e63a);},_0x4cc3b7['encode']=function(_0x35520a,_0x27f44a){if(_0x27f44a||(_0x27f44a=_0x21812c['create']()),null!=_0x35520a['name']&&Object['hasOwnProperty']['call'](_0x35520a,'name')&&_0x27f44a['uint32'](0xa)['string'](_0x35520a['name']),null!=_0x35520a['children']&&_0x35520a['children']['length']){for(var _0x1efd01=0x0;_0x1efd01<_0x35520a['children']['length'];++_0x1efd01)_0x498176['Element']['encode'](_0x35520a['children'][_0x1efd01],_0x27f44a['uint32'](0x12)['fork']())['ldelim']();}if(null!=_0x35520a['data']&&Object['hasOwnProperty']['call'](_0x35520a,'data')&&_0x27f44a['uint32'](0x1a)['string'](_0x35520a['data']),null!=_0x35520a['attributesBoolean']&&Object['hasOwnProperty']['call'](_0x35520a,'attributesBoolean')){var _0x5be4f4=Object['keys'](_0x35520a['attributesBoolean']);for(_0x1efd01=0x0;_0x1efd01<_0x5be4f4['length'];++_0x1efd01)_0x27f44a['uint32'](0x22)['fork']()['uint32'](0xa)['string'](_0x5be4f4[_0x1efd01])['uint32'](0x10)['bool'](_0x35520a['attributesBoolean'][_0x5be4f4[_0x1efd01]])['ldelim']();}return null!=_0x35520a['attributesJson']&&Object['hasOwnProperty']['call'](_0x35520a,'attributesJson')&&_0x27f44a['uint32'](0x2a)['string'](_0x35520a['attributesJson']),_0x27f44a;},_0x4cc3b7['encodeDelimited']=function(_0x42249d,_0x3357f2){return this['encode'](_0x42249d,_0x3357f2)['ldelim']();},_0x4cc3b7['decode']=function(_0x35d687,_0x21004c){_0x35d687 instanceof _0x48d5aa||(_0x35d687=_0x48d5aa['create'](_0x35d687));for(var _0x6d45e2,_0x259ab9,_0x17138f=void 0x0===_0x21004c?_0x35d687['len']:_0x35d687['pos']+_0x21004c,_0x472193=new _0x498176['Element']();_0x35d687['pos']<_0x17138f;){var _0x3c6f8f=_0x35d687['uint32']();switch(_0x3c6f8f>>>0x3){case 0x1:_0x472193['name']=_0x35d687['string']();break;case 0x2:_0x472193['children']&&_0x472193['children']['length']||(_0x472193['children']=[]),_0x472193['children']['push'](_0x498176['Element']['decode'](_0x35d687,_0x35d687['uint32']()));break;case 0x3:_0x472193['data']=_0x35d687['string']();break;case 0x4:_0x472193['attributesBoolean']===_0x1412aa['emptyObject']&&(_0x472193['attributesBoolean']={});var _0x4427c6=_0x35d687['uint32']()+_0x35d687['pos'];for(_0x6d45e2='',_0x259ab9=!0x1;_0x35d687['pos']<_0x4427c6;){var _0x4c59b9=_0x35d687['uint32']();switch(_0x4c59b9>>>0x3){case 0x1:_0x6d45e2=_0x35d687['string']();break;case 0x2:_0x259ab9=_0x35d687['bool']();break;default:_0x35d687['skipType'](0x7&_0x4c59b9);}}_0x472193['attributesBoolean'][_0x6d45e2]=_0x259ab9;break;case 0x5:_0x472193['attributesJson']=_0x35d687['string']();break;default:_0x35d687['skipType'](0x7&_0x3c6f8f);}}return _0x472193;},_0x4cc3b7['decodeDelimited']=function(_0x4c91c1){return _0x4c91c1 instanceof _0x48d5aa||(_0x4c91c1=new _0x48d5aa(_0x4c91c1)),this['decode'](_0x4c91c1,_0x4c91c1['uint32']());},_0x4cc3b7['verify']=function(_0x52d94a){if('object'!=typeof _0x52d94a||null===_0x52d94a)return'object\x20expected';if(null!=_0x52d94a['name']&&_0x52d94a['hasOwnProperty']('name')&&!_0x1412aa['isString'](_0x52d94a['name']))return'name:\x20string\x20expected';if(null!=_0x52d94a['children']&&_0x52d94a['hasOwnProperty']('children')){if(!Array['isArray'](_0x52d94a['children']))return'children:\x20array\x20expected';for(var _0x2d660f=0x0;_0x2d660f<_0x52d94a['children']['length'];++_0x2d660f){var _0x4e073d=_0x498176['Element']['verify'](_0x52d94a['children'][_0x2d660f]);if(_0x4e073d)return'children.'+_0x4e073d;}}if(null!=_0x52d94a['data']&&_0x52d94a['hasOwnProperty']('data')&&!_0x1412aa['isString'](_0x52d94a['data']))return'data:\x20string\x20expected';if(null!=_0x52d94a['attributesBoolean']&&_0x52d94a['hasOwnProperty']('attributesBoolean')){if(!_0x1412aa['isObject'](_0x52d94a['attributesBoolean']))return'attributesBoolean:\x20object\x20expected';var _0x25f995=Object['keys'](_0x52d94a['attributesBoolean']);for(_0x2d660f=0x0;_0x2d660f<_0x25f995['length'];++_0x2d660f)if('boolean'!=typeof _0x52d94a['attributesBoolean'][_0x25f995[_0x2d660f]])return'attributesBoolean:\x20boolean{k:string}\x20expected';}return null!=_0x52d94a['attributesJson']&&_0x52d94a['hasOwnProperty']('attributesJson')&&!_0x1412aa['isString'](_0x52d94a['attributesJson'])?'attributesJson:\x20string\x20expected':null;},_0x4cc3b7['fromObject']=function(_0x43d014){if(_0x43d014 instanceof _0x498176['Element'])return _0x43d014;var _0x4406a9=new _0x498176['Element']();if(null!=_0x43d014['name']&&(_0x4406a9['name']=String(_0x43d014['name'])),_0x43d014['children']){if(!Array['isArray'](_0x43d014['children']))throw TypeError('.Element.children:\x20array\x20expected');_0x4406a9['children']=[];for(var _0x338a2b=0x0;_0x338a2b<_0x43d014['children']['length'];++_0x338a2b){if('object'!=typeof _0x43d014['children'][_0x338a2b])throw TypeError('.Element.children:\x20object\x20expected');_0x4406a9['children'][_0x338a2b]=_0x498176['Element']['fromObject'](_0x43d014['children'][_0x338a2b]);}}if(null!=_0x43d014['data']&&(_0x4406a9['data']=String(_0x43d014['data'])),_0x43d014['attributesBoolean']){if('object'!=typeof _0x43d014['attributesBoolean'])throw TypeError('.Element.attributesBoolean:\x20object\x20expected');_0x4406a9['attributesBoolean']={};var _0x122de1=Object['keys'](_0x43d014['attributesBoolean']);for(_0x338a2b=0x0;_0x338a2b<_0x122de1['length'];++_0x338a2b)_0x4406a9['attributesBoolean'][_0x122de1[_0x338a2b]]=Boolean(_0x43d014['attributesBoolean'][_0x122de1[_0x338a2b]]);}return null!=_0x43d014['attributesJson']&&(_0x4406a9['attributesJson']=String(_0x43d014['attributesJson'])),_0x4406a9;},_0x4cc3b7['toObject']=function(_0x2800b2,_0x512dd){_0x512dd||(_0x512dd={});var _0x11de9a,_0x5a914b={};if((_0x512dd['arrays']||_0x512dd['defaults'])&&(_0x5a914b['children']=[]),(_0x512dd['objects']||_0x512dd['defaults'])&&(_0x5a914b['attributesBoolean']={}),_0x512dd['defaults']&&(_0x5a914b['name']='',_0x5a914b['data']='',_0x5a914b['attributesJson']=''),null!=_0x2800b2['name']&&_0x2800b2['hasOwnProperty']('name')&&(_0x5a914b['name']=_0x2800b2['name']),_0x2800b2['children']&&_0x2800b2['children']['length']){_0x5a914b['children']=[];for(var _0xe4cdd9=0x0;_0xe4cdd9<_0x2800b2['children']['length'];++_0xe4cdd9)_0x5a914b['children'][_0xe4cdd9]=_0x498176['Element']['toObject'](_0x2800b2['children'][_0xe4cdd9],_0x512dd);}if(null!=_0x2800b2['data']&&_0x2800b2['hasOwnProperty']('data')&&(_0x5a914b['data']=_0x2800b2['data']),_0x2800b2['attributesBoolean']&&(_0x11de9a=Object['keys'](_0x2800b2['attributesBoolean']))['length']){_0x5a914b['attributesBoolean']={};for(_0xe4cdd9=0x0;_0xe4cdd9<_0x11de9a['length'];++_0xe4cdd9)_0x5a914b['attributesBoolean'][_0x11de9a[_0xe4cdd9]]=_0x2800b2['attributesBoolean'][_0x11de9a[_0xe4cdd9]];}return null!=_0x2800b2['attributesJson']&&_0x2800b2['hasOwnProperty']('attributesJson')&&(_0x5a914b['attributesJson']=_0x2800b2['attributesJson']),_0x5a914b;},_0x4cc3b7['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,minimalExports['util']['toJSONOptions']);},_0x4cc3b7['getTypeUrl']=function(_0x173369){return void 0x0===_0x173369&&(_0x173369='type.googleapis.com'),_0x173369+'/Element';},_0x4cc3b7;}()),_0x498176;})());class ProtobufFactory{['_protobufRoot'];constructor(){this['_protobufRoot']=messages;}['getDescriptor'](_0x153c25){return new ProtobufDescriptor(this['_protobufRoot'][_0x153c25]);}}class ProtobufDescriptor{['_protobuf'];constructor(_0xbc0ea3){this['_protobuf']=_0xbc0ea3;}['compress'](_0x6f9a18){const _0x4a7344=this['_protobuf']['verify'](_0x6f9a18);if(_0x4a7344)throw Error(_0x4a7344);return this['_protobuf']['encode'](this['_protobuf']['create'](_0x6f9a18))['finish']();}['decompress'](_0x35da31){return this['_protobuf']['toObject'](this['_protobuf']['decode'](_0x35da31),{'oneofs':!0x0});}}function getPositionShiftedBy(_0x5a783e,_0x5ec670){const _0x3a74bb=cloneDeep(_0x5a783e);return _0x3a74bb['path'][_0x3a74bb['path']['length']-0x1]+=_0x5ec670,_0x3a74bb;}function arePositionsEqual(_0x1a0aa8,_0x3dc8ef){return _0x1a0aa8['root']===_0x3dc8ef['root']&&isEqual(_0x1a0aa8['path'],_0x3dc8ef['path']);}function parsePositionBeforeCompression(_0x154c85){_mapPositions(_0x154c85,_0x128980=>('main'==_0x128980['root']?(_0x128980['rootMain']=!0x0,delete _0x128980['root']):'$graveyard'==_0x128980['root']&&(_0x128980['rootGraveyard']=!0x0,delete _0x128980['root']),_0x128980));}function parsePositionAfterCompression(_0x4dc089){_mapPositions(_0x4dc089,_0x949f05=>(_0x949f05['rootMain']?(_0x949f05['root']='main',delete _0x949f05['rootMain']):_0x949f05['rootGraveyard']&&(_0x949f05['root']='$graveyard',delete _0x949f05['rootGraveyard']),_0x949f05));}function _mapPositions(_0x35b151,_0xa83bc8){for(const _0x2f0417 in _0x35b151){const _0x2119ee=_0x35b151[_0x2f0417];'nodes'!==_0x2f0417&&isObject$3(_0x2119ee)&&(_0x2119ee['path']&&(_0x2119ee['root']||_0x2119ee['rootMain']||_0x2119ee['rootGraveyard'])?_0x35b151[_0x2f0417]=_0xa83bc8(_0x2119ee):_mapPositions(_0x2119ee,_0xa83bc8));}return _0x35b151;}class OperationCompressor{['_id'];['_operationName'];['_protobufDescriptor'];constructor(_0x1d47d0,_0x1e4c2e,_0x4b66f7){this['_id']=_0x1d47d0,this['_operationName']=_0x1e4c2e,this['_protobufDescriptor']=_0x4b66f7;}['compress'](_0x2da84d,_0x562a4e){const _0x42f355=_0x562a4e['operations'][_0x562a4e['index']++];return parsePositionBeforeCompression(_0x42f355),_0x2da84d['buffers']['push'](this['_protobufDescriptor']['compress'](_0x42f355)),_0x2da84d['types']['push'](this['_id']),!0x0;}['decompress'](_0xe1ad43,_0x366604){_0x366604['typeIndex']++;const _0x2883cc=_0x366604['buffers'][_0x366604['bufferIndex']++],_0x397a05=this['_protobufDescriptor']['decompress'](_0x2883cc);parsePositionAfterCompression(_0x397a05),_0x397a05['__className']=this['_operationName'],_0xe1ad43['push'](_0x397a05);}}class AttributeOperationCompressor extends OperationCompressor{['compress'](_0x599f3f,_0x147409){const _0x5c4cbb=_0x147409['operations'][_0x147409['index']++];return this['_serializeOneOf']('oldValue',_0x5c4cbb),this['_serializeOneOf']('newValue',_0x5c4cbb),parsePositionBeforeCompression(_0x5c4cbb),_0x599f3f['buffers']['push'](this['_protobufDescriptor']['compress'](_0x5c4cbb)),_0x599f3f['types']['push'](this['_id']),!0x0;}['decompress'](_0x5cf9c1,_0x5bb6cd){_0x5bb6cd['typeIndex']++;const _0x478df9=_0x5bb6cd['buffers'][_0x5bb6cd['bufferIndex']++],_0x1056d3=this['_protobufDescriptor']['decompress'](_0x478df9);this['_deserializeOneOf']('oldValue',_0x1056d3),this['_deserializeOneOf']('newValue',_0x1056d3),parsePositionAfterCompression(_0x1056d3),_0x1056d3['__className']=this['_operationName'],_0x5cf9c1['push'](_0x1056d3);}['_serializeOneOf'](_0x177a25,_0x11fccd){const _0x3c224c=_0x11fccd[_0x177a25];'boolean'==typeof _0x3c224c?_0x11fccd[_0x177a25+'Boolean']=_0x3c224c:_0x11fccd[_0x177a25+'Json']=JSON['stringify'](_0x3c224c);}['_deserializeOneOf'](_0x506e38,_0x2a18b5){const _0x167ce2=_0x506e38+'Json';_0x2a18b5[_0x167ce2]?(_0x2a18b5[_0x506e38]=JSON['parse'](_0x2a18b5[_0x167ce2]),delete _0x2a18b5[_0x167ce2]):(_0x2a18b5[_0x506e38]=_0x2a18b5[_0x506e38+'Boolean'],delete _0x2a18b5[_0x506e38+'Boolean']);}}class InsertOperationCompressor extends OperationCompressor{['compress'](_0xe47ff3,_0x2024ab){const _0x5e3b1b=_0x2024ab['operations'][_0x2024ab['index']++];return this['_serializeNodesAttributes'](_0x5e3b1b['nodes']),parsePositionBeforeCompression(_0x5e3b1b),_0xe47ff3['buffers']['push'](this['_protobufDescriptor']['compress'](_0x5e3b1b)),_0xe47ff3['types']['push'](this['_id']),!0x0;}['decompress'](_0x441cc8,_0x570baf){_0x570baf['typeIndex']++;const _0x530fbd=_0x570baf['buffers'][_0x570baf['bufferIndex']++],_0x2df3fe=this['_protobufDescriptor']['decompress'](_0x530fbd);_0x2df3fe['nodes']||(_0x2df3fe['nodes']=[]),this['_deserializeNodesAttributes'](_0x2df3fe['nodes']),parsePositionAfterCompression(_0x2df3fe),_0x2df3fe['__className']=this['_operationName'],_0x441cc8['push'](_0x2df3fe);}['_serializeNodesAttributes'](_0x362dcc){for(const _0x212eca of _0x362dcc){if(_0x212eca['attributes']){const _0x7c2903=_0x212eca['attributes'];this['_areValuesBoolean'](_0x7c2903)?_0x212eca['attributesBoolean']=_0x7c2903:_0x212eca['attributesJson']=JSON['stringify'](_0x7c2903);}_0x212eca['children']&&this['_serializeNodesAttributes'](_0x212eca['children']);}}['_deserializeNodesAttributes'](_0x585b8b){for(const _0x5a2f24 of _0x585b8b)(_0x5a2f24['attributesBoolean']||_0x5a2f24['attributesJson'])&&(_0x5a2f24['attributesBoolean']?(_0x5a2f24['attributes']=_0x5a2f24['attributesBoolean'],delete _0x5a2f24['attributesBoolean']):(_0x5a2f24['attributes']=JSON['parse'](_0x5a2f24['attributesJson']),delete _0x5a2f24['attributesJson'])),_0x5a2f24['children']&&this['_deserializeNodesAttributes'](_0x5a2f24['children']);}['_areValuesBoolean'](_0x10283e){return Object['keys'](_0x10283e)['every'](_0x234ceb=>'boolean'==typeof _0x10283e[_0x234ceb]);}}class MarkerOperationCompressor extends OperationCompressor{['decompress'](_0x37ed2e,_0x37fc5f){super['decompress'](_0x37ed2e,_0x37fc5f);const _0x2a3d5e=_0x37ed2e[_0x37ed2e['length']-0x1];_0x2a3d5e['oldRange']||(_0x2a3d5e['oldRange']=null),_0x2a3d5e['newRange']||(_0x2a3d5e['newRange']=null);}}class NoOperationCompressor extends OperationCompressor{['compress'](_0x2b5157,_0xccc6a0){return _0xccc6a0['index']++,_0x2b5157['types']['push'](this['_id']),!0x0;}['decompress'](_0xebacf4,_0x4a2d42){_0x4a2d42['typeIndex']++,_0xebacf4['push']({'__className':this['_operationName']});}}class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor{['_omittedNamespace'];constructor(_0x3a884b,_0x91f25b,_0x230d8e,_0x4aa9ad){super(_0x3a884b,_0x91f25b,_0x230d8e),this['_omittedNamespace']=_0x4aa9ad+':';}['compress'](_0x27619c,_0x593c74){const _0x276041=_0x593c74['operations'][_0x593c74['index']];return!('MarkerOperation'!=_0x276041['__className']||!_0x276041['name']['startsWith'](this['_omittedNamespace']))&&(_0x276041['name']=_0x276041['name']['replace'](new RegExp('^'+this['_omittedNamespace']),''),super['compress'](_0x27619c,_0x593c74),!0x0);}['decompress'](_0x28eaf4,_0x25c38e){super['decompress'](_0x28eaf4,_0x25c38e);const _0x158e69=_0x28eaf4[_0x28eaf4['length']-0x1];_0x158e69['name']=this['_omittedNamespace']+_0x158e69['name'];}}class ActionCompressor{['_id'];['_context'];constructor(_0x18084d,_0x158ffa){this['_id']=_0x18084d,this['_context']=_0x158ffa;}['compress'](_0x4ea4e1,_0x2da31b){let _0x2bdc4f,_0xc35908=_0x2da31b['operations'][_0x2da31b['index']],_0x22b8b8=_0x2da31b['operations'][_0x2da31b['index']+0x1];for(;_0x22b8b8&&this['_compareOperations'](_0xc35908,_0x22b8b8);)_0x2bdc4f?(_0x2bdc4f=this['_combineNext'](_0xc35908,_0x2bdc4f),_0x4ea4e1['types']['push'](0x0)):(_0x2bdc4f=cloneDeep(_0xc35908),_0x4ea4e1['types']['push'](this['_id'])),_0x2da31b['index']++,_0xc35908=_0x2da31b['operations'][_0x2da31b['index']],_0x22b8b8=_0x2da31b['operations'][_0x2da31b['index']+0x1];return!!_0x2bdc4f&&(_0x2bdc4f=this['_combineNext'](_0x2da31b['operations'][_0x2da31b['index']++],_0x2bdc4f),_0x4ea4e1['types']['push'](0x0),_0x4ea4e1['buffers']['push'](this['_compressSingleOperation'](_0x2bdc4f)),!0x0);}['decompress'](_0x46c7fd,_0x255c13){const _0x1fa3ec=this['_decompressSingleOperation'](_0x255c13);for(;0x0==_0x255c13['types'][_0x255c13['typeIndex']];)_0x255c13['typeIndex']++,_0x46c7fd['push'](this['_splitCurrent'](_0x1fa3ec));_0x46c7fd['push'](_0x1fa3ec);}}class TypingActionCompressor extends ActionCompressor{['_combineNext'](_0x4ec976,_0x33026d){return _0x33026d['nodes'][0x0]['data']+=_0x4ec976['nodes'][0x0]['data'],_0x33026d;}['_splitCurrent'](_0x2895a1){const _0x464952=cloneDeep(_0x2895a1),_0x31a2ed=_0x464952['nodes'][0x0],_0x1283c1=_0x2895a1['nodes'][0x0],_0x4f08ae=_0x1283c1['data'][Symbol['iterator']]()['next']()['value'],_0x2c846c=_0x4f08ae['length'];return _0x31a2ed['data']=_0x4f08ae,_0x1283c1['data']=_0x1283c1['data']['substr'](_0x2c846c),_0x2895a1['position']=getPositionShiftedBy(_0x2895a1['position'],_0x2c846c),_0x464952;}['_compareOperations'](_0x50ab5d,_0x4ad5d9){if(this['_checkOperation'](_0x50ab5d)&&this['_checkOperation'](_0x4ad5d9)){const _0xa68c59=_0x50ab5d['nodes'][0x0]['data']['length'],_0x411f73=arePositionsEqual(getPositionShiftedBy(_0x50ab5d['position'],_0xa68c59),_0x4ad5d9['position']),_0x87d0e1=_0x50ab5d['nodes'][0x0],_0x2628ae=_0x4ad5d9['nodes'][0x0];return _0x411f73&&this['_compareAttributes'](_0x87d0e1,_0x2628ae);}return!0x1;}['_compressSingleOperation'](_0x5d4bde){const _0x1f9b31={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('InsertOperation')['compress'](_0x1f9b31,{'operations':[_0x5d4bde],'index':0x0}),_0x1f9b31['buffers'][0x0];}['_decompressSingleOperation'](_0x38ea66){const _0x2a0f1b=[];return this['_context']['_getCompressorByName']('InsertOperation')['decompress'](_0x2a0f1b,_0x38ea66),_0x2a0f1b[0x0];}['_checkOperation'](_0x587481){return'InsertOperation'==_0x587481['__className']&&0x1==_0x587481['nodes']['length']&&_0x587481['nodes'][0x0]['data']&&!_0x587481['wasUndone']&&0x1==Array['from'](_0x587481['nodes'][0x0]['data'])['length'];}['_compareAttributes'](_0x3c3d66,_0x1a7fb1){const _0x36ddea=Object['keys'](_0x3c3d66['attributes']||{}),_0x3dbc9f=Object['keys'](_0x1a7fb1['attributes']||{});return _0x36ddea['length']===_0x3dbc9f['length']&&_0x36ddea['every'](_0x5397c6=>_0x1a7fb1['attributes'][_0x5397c6]&&_0x1a7fb1['attributes'][_0x5397c6]===_0x3c3d66['attributes'][_0x5397c6]);}}class DeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x20a7ed,_0x2469f5){return _0x2469f5['howMany']++,_0x2469f5['sourcePosition']=cloneDeep(_0x20a7ed['sourcePosition']),_0x2469f5;}['_splitCurrent'](_0x31b8f8){const _0x39cbed=cloneDeep(_0x31b8f8);return _0x31b8f8['howMany']--,_0x39cbed['howMany']=0x1,_0x39cbed['sourcePosition']=getPositionShiftedBy(_0x39cbed['sourcePosition'],_0x31b8f8['howMany']),_0x39cbed;}['_compareOperations'](_0x3cc902,_0x10bfaf){return!(!this['_checkOperation'](_0x3cc902)||!this['_checkOperation'](_0x10bfaf))&&(arePositionsEqual(getPositionShiftedBy(_0x3cc902['sourcePosition'],-0x1),_0x10bfaf['sourcePosition'])&&arePositionsEqual(_0x3cc902['targetPosition'],_0x10bfaf['targetPosition']));}['_compressSingleOperation'](_0x5bef1c){const _0xc19b5={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0xc19b5,{'operations':[_0x5bef1c],'index':0x0}),_0xc19b5['buffers'][0x0];}['_decompressSingleOperation'](_0x592494){const _0x4ff950=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x4ff950,_0x592494),_0x4ff950[0x0];}['_checkOperation'](_0x140ca5){return'MoveOperation'==_0x140ca5['__className']&&'$graveyard'==_0x140ca5['targetPosition']['root']&&0x1==_0x140ca5['howMany']&&!_0x140ca5['wasUndone'];}}class ForwardDeletingActionCompressor extends ActionCompressor{['_combineNext'](_0x294aac,_0x4e4b83){return _0x4e4b83['howMany']++,_0x4e4b83;}['_splitCurrent'](_0xd6876a){const _0x5ecde2=cloneDeep(_0xd6876a);return _0x5ecde2['howMany']=0x1,_0xd6876a['howMany']--,_0x5ecde2;}['_compareOperations'](_0x3dee6f,_0x58a154){return!(!this['_checkOperation'](_0x3dee6f)||!this['_checkOperation'](_0x58a154))&&(arePositionsEqual(_0x3dee6f['sourcePosition'],_0x58a154['sourcePosition'])&&arePositionsEqual(_0x3dee6f['targetPosition'],_0x58a154['targetPosition']));}['_compressSingleOperation'](_0x53c224){const _0x326bdf={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MoveOperation')['compress'](_0x326bdf,{'operations':[_0x53c224],'index':0x0}),_0x326bdf['buffers'][0x0];}['_decompressSingleOperation'](_0x18aa5b){const _0x1743b2=[];return this['_context']['_getCompressorByName']('MoveOperation')['decompress'](_0x1743b2,_0x18aa5b),_0x1743b2[0x0];}['_checkOperation'](_0x4b8c00){return'MoveOperation'==_0x4b8c00['__className']&&'$graveyard'==_0x4b8c00['targetPosition']['root']&&0x1==_0x4b8c00['howMany']&&!_0x4b8c00['wasUndone'];}}class UserSelectionActionCompressor extends ActionCompressor{['compress'](_0x55a213,_0x4d94b7){if(!this['_compareOperations'](_0x4d94b7['operations'][_0x4d94b7['index']],_0x4d94b7['operations'][_0x4d94b7['index']+0x1]))return!0x1;const _0x2b6ee1=_0x4d94b7['operations'][_0x4d94b7['index']++];return _0x2b6ee1['oldRange']=null,_0x2b6ee1['newRange']&&arePositionsEqual(_0x2b6ee1['newRange']['start'],_0x2b6ee1['newRange']['end'])&&(_0x2b6ee1['newRange']['end']=null),_0x4d94b7['index']++,_0x55a213['types']['push'](this['_id']),_0x55a213['types']['push'](0x0),_0x55a213['buffers']['push'](this['_compressSingleOperation'](_0x2b6ee1)),!0x0;}['decompress'](_0x38e281,_0x3649ac){const _0x4b82fd=this['_decompressSingleOperation'](_0x3649ac);_0x4b82fd['newRange']&&!_0x4b82fd['newRange']['end']&&(_0x4b82fd['newRange']['end']=cloneDeep(_0x4b82fd['newRange']['start']));const _0x5610da=cloneDeep(_0x4b82fd);_0x5610da['newRange']&&(_0x5610da['newRange']['start']['stickiness']='toNone',_0x5610da['newRange']['end']=cloneDeep(_0x5610da['newRange']['start'])),_0x5610da['name']='user:position:'+_0x5610da['name']['split'](':')[0x2],_0x3649ac['typeIndex']++,_0x38e281['push'](_0x4b82fd),_0x38e281['push'](_0x5610da);}['_compressSingleOperation'](_0x270fc7){const _0x2ed7be={'types':[],'buffers':[],'baseVersion':0x0};return this['_context']['_getCompressorByName']('MarkerOperation')['compress'](_0x2ed7be,{'operations':[_0x270fc7],'index':0x0}),_0x2ed7be['buffers'][0x0];}['_decompressSingleOperation'](_0xbfec77){const _0x194167=[];return this['_context']['_getCompressorByName']('MarkerOperation')['decompress'](_0x194167,_0xbfec77),_0x194167[0x0];}['_compareOperations'](_0x27645b,_0x3d99a9){return!(!_0x27645b||!_0x3d99a9)&&('MarkerOperation'==_0x27645b['__className']&&'MarkerOperation'==_0x3d99a9['__className']&&!(!_0x27645b['name']['startsWith']('user:')||!_0x3d99a9['name']['startsWith']('user:')||_0x27645b['name']==_0x3d99a9['name']));}}class Compressor{['_compressorById'];['_compressorByName'];['_protobufFactory'];constructor(){this['_compressorById']=new Map(),this['_compressorByName']=new Map(),this['_protobufFactory']=new ProtobufFactory();const _0x53db0f=this['_protobufFactory']['getDescriptor']('MarkerOperation');this['_registerCompressor'](0x1,'NoOperation',new NoOperationCompressor(0x1,'NoOperation',void 0x0)),this['_registerOperationCompressor'](0xa,'AttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0xb,'InsertOperation',InsertOperationCompressor),this['_registerOperationCompressor'](0xc,'MarkerOperation',MarkerOperationCompressor),this['_registerOperationCompressor'](0xd,'MergeOperation',OperationCompressor),this['_registerOperationCompressor'](0xe,'MoveOperation',OperationCompressor),this['_registerOperationCompressor'](0xf,'RenameOperation',OperationCompressor),this['_registerOperationCompressor'](0x10,'RootAttributeOperation',AttributeOperationCompressor),this['_registerOperationCompressor'](0x11,'SplitOperation',OperationCompressor),this['_registerCompressor'](0x12,'CommentMarkerOperation',new AnnotationMarkerOperationCompressor(0x12,'MarkerOperation',_0x53db0f,'comment')),this['_registerCompressor'](0x13,'SuggestionMarkerOperation',new AnnotationMarkerOperationCompressor(0x13,'MarkerOperation',_0x53db0f,'suggestion')),this['_registerOperationCompressor'](0x14,'RootOperation',OperationCompressor),this['_registerActionCompressor'](0x64,'TypingAction',TypingActionCompressor),this['_registerActionCompressor'](0x65,'DeletingAction',DeletingActionCompressor),this['_registerActionCompressor'](0x66,'ForwardDeletingAction',ForwardDeletingActionCompressor),this['_registerActionCompressor'](0x67,'UserSelectionAction',UserSelectionActionCompressor);}['compress'](_0x1a1ddc){if(!_0x1a1ddc||!_0x1a1ddc[0x0])throw new CKEditorError('no-operations-provided',this);const _0x1868d1={'operations':_0x1a1ddc,'index':0x0},_0x53aba4={'types':[],'buffers':[],'baseVersion':_0x1a1ddc[0x0]['baseVersion']};for(;_0x1868d1['index']<_0x1868d1['operations']['length'];){if(this['_getCompressorByName']('UserSelectionAction')['compress'](_0x53aba4,_0x1868d1))continue;if(this['_getCompressorByName']('TypingAction')['compress'](_0x53aba4,_0x1868d1))continue;if(this['_getCompressorByName']('DeletingAction')['compress'](_0x53aba4,_0x1868d1))continue;if(this['_getCompressorByName']('ForwardDeletingAction')['compress'](_0x53aba4,_0x1868d1))continue;if(this['_getCompressorByName']('CommentMarkerOperation')['compress'](_0x53aba4,_0x1868d1))continue;if(this['_getCompressorByName']('SuggestionMarkerOperation')['compress'](_0x53aba4,_0x1868d1))continue;const _0x34947a=_0x1868d1['operations'][_0x1868d1['index']]['__className'];this['_getCompressorByName'](_0x34947a)['compress'](_0x53aba4,_0x1868d1);}return _0x53aba4;}['decompress'](_0xd8152a){const _0x5451ef=[],_0x5eb7a9={'types':_0xd8152a['types'],'buffers':_0xd8152a['buffers'],'baseVersion':_0xd8152a['baseVersion'],'typeIndex':0x0,'bufferIndex':0x0};for(;_0x5eb7a9['typeIndex']<_0x5eb7a9['types']['length'];){const _0x5f3999=_0x5eb7a9['types'][_0x5eb7a9['typeIndex']],_0x4b19ce=this['_compressorById']['get'](_0x5f3999);if(!_0x4b19ce)throw new CKEditorError('decompress-compressor-not-found',this,{'type':_0x5f3999});_0x4b19ce['decompress'](_0x5451ef,_0x5eb7a9);}return _0x5451ef['forEach']((_0x2b9698,_0x7e3914)=>_0x2b9698['baseVersion']=_0xd8152a['baseVersion']+_0x7e3914),_0x5451ef;}['_getCompressorByName'](_0x59051a){return this['_compressorByName']['get'](_0x59051a);}['_registerOperationCompressor'](_0x5de496,_0x47036b,_0x3bfed5){const _0x577bb1=new _0x3bfed5(_0x5de496,_0x47036b,this['_protobufFactory']['getDescriptor'](_0x47036b));this['_registerCompressor'](_0x5de496,_0x47036b,_0x577bb1);}['_registerActionCompressor'](_0x24d452,_0x428a2c,_0x5f1dd0){const _0x16ff07=new _0x5f1dd0(_0x24d452,this);this['_registerCompressor'](_0x24d452,_0x428a2c,_0x16ff07);}['_registerCompressor'](_0x104e14,_0x8827d7,_0x3e1cfa){this['_compressorById']['set'](_0x104e14,_0x3e1cfa),this['_compressorByName']['set'](_0x8827d7,_0x3e1cfa);}}let requestCount=0x1;class RealTimeCollaborationClient extends Plugin{static ['CollaborativeEditingService']=/* #__PURE__ -- @preserve */
((()=>CollaborativeEditingService)());['_offset'];['sessionId'];['serverHistory'];['_channelId'];['_service'];['_document'];['_compressor'];['_bufferedOperations'];['_knownOperations'];['_knownRootNames'];['_pendingAction'];['_hasSelectionChanged'];['_sendBufferedOperationsDelayId'];['_baseBufferDelay'];['_currentBufferDelay'];['_lastSyncedOperationId'];['_disconnectionOperations'];['_operationIdentifier'];static get['requires'](){return[WebSocketGateway,Sessions,UserMarkers,PendingActions,Users,Notification];}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 _0x4b2d90=this['serverHistory']['getOperations']();for(let _0x1b2dbc=_0x4b2d90['length']-0x1;_0x1b2dbc>=0x0;_0x1b2dbc--){const _0x10de3c=_0x4b2d90[_0x1b2dbc];if(!this['_disconnectionOperations']['has'](_0x10de3c))return _0x10de3c['baseVersion']+0x1-this['_offset'];}return 0x0;}constructor(_0x3c6a6c){if(super(_0x3c6a6c),this['_offset']=0x0,this['sessionId']=null,this['serverHistory']=new History(),this['editor']['config']['define']('collaboration',{}),this['_channelId']=this['editor']['config']['get']('collaboration.channelId'),!this['_channelId'])throw new CKEditorError('collaboration-missing-channelid',this);const _0x4faaf7=_0x3c6a6c['config']['get']('cloudServices.bundleVersion')||_0x10bf4c;this['_service']=new RealTimeCollaborationClient['CollaborativeEditingService'](_0x4faaf7,this['_channelId']),this['_document']=this['editor']['model']['document'],this['_compressor']=new Compressor(),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 OperationIdentifier(this['_disconnectionOperations']);}['init'](){const _0x49f41=this['editor'],_0x162774=_0x49f41['plugins']['get'](Users),_0x252543=_0x49f41['plugins']['get'](WebSocketGateway);this['listenTo'](_0x162774,'getOperationAuthor',(_0x11507f,_0x1055b1)=>{const _0x302cb0=_0x1055b1[0x0];_0x302cb0['_authorId']&&(_0x11507f['return']=_0x162774['getUser'](_0x302cb0['_authorId']),_0x11507f['stop']()),null===_0x302cb0['_authorId']&&(_0x11507f['return']=null,_0x11507f['stop']());},{'priority':'high'}),this['listenTo'](_0x49f41['model']['document']['selection'],'change:range',(_0x4af6cb,_0x38506c)=>{_0x38506c['directChange']&&this['_refreshUserSelectionMarkers']();}),this['listenTo'](_0x49f41['editing']['view'],'change:hasDomSelection',()=>{this['_refreshUserSelectionMarkers']();}),this['_initThrowingOnDataSet'](),_0x49f41['model']['on']('applyOperation',(_0x53dca0,_0x5a0b41)=>{const _0x2255b3=_0x5a0b41[0x0];_0x2255b3['isDocumentOperation']&&(this['_saveOperationInBuffer'](_0x2255b3),this['_shouldSendUpdate']()&&this['_sendBufferedOperationsDelayed']());}),this['_setUpDataInit'](),this['bind']('_isEditingAllowed')['to'](_0x252543,'state',this,'_hasSynchronizationProblem',(_0x5a9aca,_0x370592)=>'connected'===_0x5a9aca&&!_0x370592),this['on']('change:_isEditingAllowed',()=>{this['_isEditingAllowed']?_0x49f41['disableReadOnlyMode']('rtc-offline'):_0x49f41['enableReadOnlyMode']('rtc-offline');}),this['_isEditingAllowed']?_0x49f41['disableReadOnlyMode']('rtc-offline'):_0x49f41['enableReadOnlyMode']('rtc-offline'),this['set']('_isConnected',!0x1);}async['reconnect'](){const _0x70023e=this['editor']['plugins']['get'](Sessions),_0x155cc7=this['editor']['plugins']['get'](WebSocketGateway);try{this['_isPendingUpdate']=!0x0,_0x70023e['unregister'](this['_channelId']);const _0x6fe5d7=await this['_service']['reconnect'](_0x155cc7['connection'],this['lastSyncVersion']);await this['_handleReconnectionResponse'](_0x6fe5d7)&&(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());const _0x34d5b3=await this['_service']['getConnectedSessions']();_0x70023e['register'](this['_channelId'],_0x34d5b3),this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}catch(_0x1741af){if(isSessionNotExistingError(_0x1741af)&&this['sessionId'])await this['_connectAfterSessionHasBeenFlushed']();else{if(isBaseVersionMismatchError(_0x1741af)){const _0x377f2b=getTranslation$6(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'](_0x377f2b);}else{if(!(_0x1741af instanceof ReconnectionError))throw _0x1741af;this['_handleReconnectionError']();}}}}['destroy'](){const _0x14737b=this['editor']['plugins']['get'](WebSocketGateway),_0x2fd4ce=this['editor']['plugins']['get'](Sessions);this['editor']['enableReadOnlyMode']('rtc-destroyed'),_0x2fd4ce['channelSessions']['has'](this['_channelId'])&&_0x2fd4ce['unregister'](this['_channelId']),_0x14737b['removeFromReconnectionStack'](this),this['_disconnectService'](),super['destroy']();}async['_handleReconnectionResponse'](_0x537070){if(this['sessionId']!==_0x537070['sessionId']&&this['_lastSyncedOperationId']!==_0x537070['lastOperationId'])throw new ReconnectionError();return this['sessionId']=_0x537070['sessionId'],this['_handleServerResponse']([],{..._0x537070,'wereChangesApplied':!0x1,'data':_0x537070['data']},'reconnect');}async['_connectService'](_0x5691dc,_0x170f61=!0x1){const {connection:_0x5d9343}=this['editor']['plugins']['get'](WebSocketGateway);RealTimeCollaborationClient['CollaborativeEditingService']['getConnectedSessions'](_0x5d9343,this['_channelId'])['then'](_0xa77201=>this['_initSessionsHandling'](_0xa77201))['catch'](_0x1d5be7=>{this['_crash']('realtimecollaborationclient-init-session-connection-error',_0x1d5be7);}),this['listenTo'](this['_service'],'operationsReceived',this['_handleReceivedOperations']['bind'](this)),this['listenTo'](this['_service'],'error',(_0x2d02ed,_0x3666c9)=>{this['_crash']('realtimecollaborationclient-init-service-internal-error',_0x3666c9);}),this['listenTo'](this['_service'],'disconnected',()=>{this['_isConnected']=!0x1;});const _0x4237be=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x5691dc);this['_isPendingUpdate']=!0x0;const _0x621887=await this['_service']['connect'](_0x5d9343,this['_compressOperations'](_0x5691dc),_0x4237be);if(this['sessionId']=_0x621887['sessionId'],_0x170f61){if(!_0x621887['wereChangesApplied'])return void this['_handleReconnectionError']();this['_isPendingUpdate']=!0x1,this['_clearPendingAction'](),this['serverHistory']['reset'](),this['_offset']=_0x621887['offset'],this['serverHistory']['version']=this['_offset'],await this['_handleServerResponse'](_0x5691dc,_0x621887,'reconnection:\x20flushed\x20session');}else await this['_handleInitialConnectionData'](_0x621887,_0x5691dc);this['_handleSendingSelectionMarkers'](),this['_isConnected']=!0x0;}['_handleSendingSelectionMarkers'](){const _0xc49a08=this['editor']['plugins']['get'](Sessions),_0x38c99e=this['editor']['plugins']['get'](UserMarkers),_0x3efe0a=_0xc49a08['channelSessions']['get'](this['_channelId']);_0x3efe0a&&_0x3efe0a['length']>0x1?_0x38c99e['createUserMarkerOperations']():this['listenTo'](_0xc49a08,'sessionAdd:'+this['_channelId'],()=>{0x2===_0xc49a08['channelSessions']['get'](this['_channelId'])['length']&&_0x38c99e['createUserMarkerOperations']();});}async['_handleReceivedOperations'](_0x20031d,_0x1232e2,_0x2a36c6,_0x59f43c){if(!this['_isPendingUpdate']&&this['_document']['version']==_0x1232e2){const _0x1b28e9=this['_decompressOperations'](_0x2a36c6,_0x59f43c);await this['_fetchMissingUsers'](_0x1b28e9),this['_handleExternalOperations'](_0x1b28e9,_0x1232e2,_0x2a36c6['lastOperationId'])||this['_crash']('realtimecollaborationclient-init-service-incorrect-server-operation');}}async['_connectAfterSessionHasBeenFlushed'](){this['_disconnectService']();const {locale:_0x2f4445}=this['editor'];let _0x3c61ff;try{_0x3c61ff=await this['_service']['getDocumentDetails']();}catch{const _0x5b5ba6=getTranslation$6(_0x2f4445,'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'](_0x5b5ba6);}const _0x39bc7a=_0x3c61ff['currentDocumentSession']||_0x3c61ff['lastDocumentSession'];if(this['_lastSyncedOperationId']!==_0x39bc7a['lastOperationId']){const _0x15807f=getTranslation$6(_0x2f4445,'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'](_0x15807f);}await this['_connectService'](this['editor']['model']['document']['history']['getOperations'](),!0x0);}['_disconnectService'](){this['_service']['disconnect'](),this['_bufferedOperations']=[],clearTimeout(this['_sendBufferedOperationsDelayId']),this['stopListening'](this['_service']);}['_initSessionsHandling'](_0x23b16e){const _0x440378=this['editor']['plugins']['get'](Sessions);this['listenTo'](_0x440378,'sessionAdd:'+this['_channelId'],(_0x521e5f,{session:_0x2b3c16})=>{if(_0x2b3c16['id']===_0x440378['mySessionId']){_0x521e5f['off']();const _0x5c0467=this['editor']['plugins']['has']('CommentsOnly')&&this['editor']['plugins']['get']('CommentsOnly');let _0x2cf7c6=_0x2b3c16['permissions'];_0x5c0467&&_0x5c0467['isEnabled']&&(_0x2cf7c6=_0x2cf7c6['filter'](_0xfe821=>'document:write'!==_0xfe821)),this['editor']['plugins']['get']('Permissions')['setPermissions'](_0x2cf7c6,this['_channelId']);}}),_0x440378['register'](this['_channelId'],_0x23b16e);}['_initThrowingOnDataSet'](){const _0x5f4b9b=this['editor']['data']['set'];this['editor']['data']['set']=(..._0x4a6880)=>{if(!_0x4a6880[_0x4a6880['length']-0x1]['suppressErrorInCollaboration'])throw new CKEditorError('realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration',this);_0x5f4b9b['apply'](this['editor']['data'],_0x4a6880);};}['_setUpDataInit'](){this['editor']['data']['on']('init',(_0x288353,[_0x3f1de8])=>{if(this['_document']['version'])throw new CKEditorError('realtimecollaborationclient-init-document-already-initialized',this);_0x288353['stop'](),this['_setPendingAction']();const _0x473577=this['editor']['config']['get']('rootsAttributes'),_0x5c5465=this['_getOperationsFromInitData'](_0x3f1de8,_0x473577);0x0==_0x5c5465['length']&&_0x5c5465['push'](new NoOperation(0x0)),_0x288353['return']=this['_connectService'](_0x5c5465)['then'](()=>{this['editor']['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),this['editor']['data']['fire']('ready');})['catch'](_0x5f3daa=>this['_crash']('realtimecollaborationclient-init-connection-failed',_0x5f3daa))['finally'](()=>this['_clearPendingAction']());},{'priority':'high'}),this['editor']['on']('loadRoot',async(_0x113d80,[_0x2f327d,_0x5ada23])=>{_0x113d80['stop']();const _0x996c82=this['editor']['model']['document']['getRoot'](_0x2f327d);if(!this['_knownRootNames']['has'](_0x2f327d)){const _0x47314e=_0x5ada23&&_0x5ada23['data']?_0x5ada23['data']:'',_0x1551b8=_0x5ada23&&_0x5ada23['attributes']?_0x5ada23['attributes']:{};await this['_loadRoot'](_0x2f327d,_0x47314e,_0x1551b8);}this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x996c82['_isLoaded']=!0x0,this['editor']['model']['document']['differ']['_bufferRootLoad'](_0x996c82);});},{'priority':'high'});}async['_fetchMissingUsers'](_0x4dc4d0){const _0x43f822=this['editor']['plugins']['get'](Users),{connection:_0x2e6515}=this['editor']['plugins']['get'](WebSocketGateway),_0x3d7992=new Set();for(const _0x10ef5c of _0x4dc4d0){const _0x221e2c=_0x10ef5c['_authorId'];_0x221e2c&&!_0x43f822['getUser'](_0x221e2c)&&_0x3d7992['add'](_0x221e2c);}if(0x0===_0x3d7992['size'])return;const _0x2aaf3b=await User['getMany'](_0x2e6515,Array['from'](_0x3d7992));for(const _0x462236 of _0x2aaf3b)_0x43f822['getUser'](_0x462236['id'])||_0x43f822['addUser'](_0x462236);}['_getOperationsFromInitData'](_0x663973,_0x257019={}){const _0x583760=this['editor']['model'],_0x1e14bc=[];let _0x9315e3=0x0;const _0x1c8b77='string'==typeof _0x663973?{'main':_0x663973}:_0x663973;for(const _0x11309a of Object['keys'](_0x1c8b77)){if(!this['_document']['roots']['has'](_0x11309a))throw new CKEditorError('realtimecollaborationclient-init-non-existent-root',this);const _0x1905ac=this['editor']['data']['parse'](_0x1c8b77[_0x11309a]),_0x280ce6=this['_document']['getRoot'](_0x11309a),_0x282316=new InsertOperation(_0x583760['createPositionAt'](_0x280ce6,0x0),_0x1905ac,_0x9315e3++);_0x1e14bc['push'](_0x282316);for(const [_0x29b06e,_0x221b72]of _0x1905ac['markers']){const _0x3b44e5=_0x583760['createRange'](_0x583760['createPositionFromPath'](_0x280ce6,_0x221b72['start']['path']['slice']()),_0x583760['createPositionFromPath'](_0x280ce6,_0x221b72['end']['path']['slice']())),_0x2f34c0=new MarkerOperation(_0x29b06e,null,_0x3b44e5,_0x583760['markers'],!0x0,_0x9315e3++);_0x1e14bc['push'](_0x2f34c0);}}if(_0x257019)for(const [_0x19afee,_0x59ff53]of Object['entries'](_0x257019)){const _0x41607f=_0x583760['document']['getRoot'](_0x19afee);if(!_0x41607f)throw new CKEditorError('multi-root-editor-root-attributes-no-root',null);for(const [_0x481162,_0x426629]of Object['entries'](_0x59ff53))if(null!==_0x426629){const _0x50b954=new RootAttributeOperation(_0x41607f,_0x481162,null,_0x426629,_0x9315e3++);_0x1e14bc['push'](_0x50b954);}}return _0x1e14bc;}async['_loadRoot'](_0x3d19e8,_0x2ff457,_0x209aa3){this['_getOperationsFromInitData']({[_0x3d19e8]:_0x2ff457},{[_0x3d19e8]:_0x209aa3})['forEach']((_0xcfa806,_0x51eb49)=>{_0xcfa806['baseVersion']=this['_document']['version']+_0x51eb49,_0xcfa806['_isInit']=!0x0,this['_saveOperationInBuffer'](_0xcfa806);}),this['_sendBufferedOperationsDelayed'](),await this['_waitUntilSynced']();}async['_handleInitialConnectionData'](_0x147965,_0x28143e){let _0x1787d0;this['_offset']=_0x147965['offset'];const _0x2e3c97=_0x147965['wereChangesApplied']&&!_0x147965['initData'],_0x53ae8b=_0x2e3c97?0x0:_0x147965['data']['baseVersion'];if(_0x28143e['forEach'](_0x1c4d0d=>{_0x1c4d0d['_isInit']=!0x0,_0x1c4d0d['createdAt']=_0x147965['sessionCreatedAt'],_0x1c4d0d['_authorId']=null;}),_0x2e3c97)_0x1787d0=_0x28143e,this['_applyOperationsSet'](_0x1787d0,_0x2e3c97);else{if(_0x147965['initData']){const _0x20a16d=this['_getOperationsFromInitData'](_0x147965['initData']);this['_document']['history']['version']=-_0x20a16d['length'],_0x20a16d['forEach'](_0x8def1=>{_0x8def1['baseVersion']-=_0x20a16d['length'],_0x8def1['createdAt']=_0x147965['sessionCreatedAt'],_0x8def1['_isInit']=!0x0,_0x8def1['_authorId']=null;}),this['_applyOperationsSet'](_0x20a16d,!0x0),this['serverHistory']['version']=-_0x20a16d['length']+this['_offset'],this['_updateServerHistory'](_0x20a16d);}this['_document']['history']['version']=_0x53ae8b,_0x1787d0=this['_decompressOperations'](_0x147965['data'],_0x147965['metadata']),await this['_fetchMissingUsers'](_0x1787d0),this['_applyOperationsSet'](_0x1787d0,_0x2e3c97);}_0x147965['lastOperationId']&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x1787d0,_0x147965['lastOperationId']),this['_lastSyncedOperationId']=_0x147965['lastOperationId']),this['serverHistory']['version']=_0x53ae8b+this['_offset'],this['_updateServerHistory'](_0x1787d0),_0x28143e['filter'](_0x950d54=>{const _0x683d6d=this['_getAffectedRoot'](_0x950d54);return _0x683d6d&&!this['_knownRootNames']['has'](_0x683d6d);})['forEach']((_0x3c513e,_0x14c777)=>{_0x3c513e['baseVersion']=this['_document']['version']+_0x14c777,this['_saveOperationInBuffer'](_0x3c513e);}),this['_shouldSendUpdate']()?(this['_currentBufferDelay']=0x0,this['_sendBufferedOperationsDelayed'](!0x0),await this['_waitUntilSynced']()):(this['_isPendingUpdate']=!0x1,this['_clearPendingAction']());}['_crash'](_0x3d21d5,_0x99adfc){const _0x105a82=_0x99adfc&&_0x99adfc['message'];if(_0x105a82&&_0x105a82['startsWith']('realtimecollaborationclient'))throw _0x99adfc;const _0x9fcd24=this['editor']['plugins']['get'](WebSocketGateway);throw this['_isPendingUpdate']=!0x0,_0x9fcd24['disconnect'](),this['editor']['enableReadOnlyMode']('realtimecollaborationclient-error'),new CKEditorError(_0x3d21d5,this['editor'],_0x105a82?{'originalError':_0x105a82}:void 0x0);}['_saveOperationInBuffer'](_0x11dda3){this['_knownOperations']['has'](_0x11dda3)||(this['_knownOperations']['add'](_0x11dda3),this['_bufferedOperations']['push'](_0x11dda3),this['_pendingAction']||'marker'==_0x11dda3['type']&&!_0x11dda3['affectsData']||this['_setPendingAction']());}['_sendBufferedOperationsDelayed'](_0x194df1=!0x1){!_0x194df1&&this['_isPendingUpdate']||(this['_isPendingUpdate']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_sendBufferedOperationsDelayId']=setTimeout(()=>{this['_sendBufferedOperations']()['then'](_0x7c7fc7=>{_0x7c7fc7&&(this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1);})['catch'](_0x34c6cc=>{this['_clearPendingAction'](),this['_isPendingUpdate']=!0x1,isDisconnectionError$3(_0x34c6cc)||this['_crash'](_0x34c6cc['message'],_0x34c6cc);});},this['_currentBufferDelay']));}['_waitUntilSynced'](){return new Promise(_0x4e64d4=>{this['on']('change:_isPendingUpdate',()=>{_0x4e64d4();});});}async['_sendBufferedOperations'](){const _0x2ed3ad=this['editor']['plugins']['get'](UserMarkers);if(this['_shouldSendSelectionUpdate']()&&(_0x2ed3ad['createUserMarkerOperations'](),this['_hasSelectionChanged']=!0x1),!this['_shouldSendUpdate']())return!0x0;const _0x5d5d5d=[...this['_bufferedOperations']];for(const _0x446d07 of _0x5d5d5d)_0x446d07['wasUndone']=this['_document']['history']['isUndoneOperation'](_0x446d07);const _0x104443=this['_operationIdentifier']['getIdOfTheLastOperation'](_0x5d5d5d),_0x18d94a=requestCount++,_0x2d8b05=this['_compressOperations'](_0x5d5d5d),_0x39980c=await this['_service']['sendOperations'](_0x2d8b05,_0x2d8b05['baseVersion'],_0x104443);try{return await this['_handleServerResponse'](_0x5d5d5d,_0x39980c,_0x18d94a);}catch(_0x163a42){return this['_crash']('realtimecollaborationclient-sendbufferedoperations',_0x163a42);}}async['_handleServerResponse'](_0x552c19,_0x2dff48,_0x233ab8){if('error'in _0x2dff48)throw _0x2dff48['error'];let _0x1c578e=!0x1;if(_0x2dff48['wereChangesApplied']){_0x2dff48['lastOperationId']&&(this['_lastSyncedOperationId']=_0x2dff48['lastOperationId']),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x651c9=>!_0x552c19['includes'](_0x651c9));for(const _0x6b31df of _0x552c19)_0x6b31df['createdAt']='lastOperationAcceptedAt'in _0x2dff48&&_0x2dff48['lastOperationAcceptedAt']||void 0x0;updateBaseVersions(_0x552c19,_0x2dff48['version']-_0x552c19['length']),this['_updateServerHistory'](_0x552c19);const _0x55262f=_0x552c19['filter'](_0x89ccdb=>{if(!_0x89ccdb['_isInit'])return!0x1;const _0xd468b9=this['_getAffectedRoot'](_0x89ccdb);return _0xd468b9&&!this['_knownRootNames']['has'](_0xd468b9);});updateBaseVersions(_0x55262f,this['_document']['version']),this['_applyOperationsSet'](_0x55262f),_0x1c578e=!0x0,this['_currentBufferDelay']=this['_baseBufferDelay'];}else{const _0x47dfe9=this['_decompressOperations'](_0x2dff48['data'],_0x2dff48['metadata'])['filter'](_0x291432=>_0x291432['baseVersion']>=this['_lastServerVersion']);_0x47dfe9['forEach'](_0x1f64dd=>this['_addKnownRoot'](_0x1f64dd)),this['_bufferedOperations']=this['_bufferedOperations']['filter'](_0x3c34a3=>!_0x3c34a3['_isInit']||!this['_knownRootNames']['has'](this['_getAffectedRoot'](_0x3c34a3))),this['_bufferedOperations']['length']&&updateBaseVersions(this['_bufferedOperations'],this['_bufferedOperations'][0x0]['baseVersion']),await this['_fetchMissingUsers'](_0x47dfe9),_0x1c578e=this['_handleExternalOperations'](_0x47dfe9,_0x2dff48['version'],_0x2dff48['lastOperationId']),this['_currentBufferDelay']=Math['round'](this['_currentBufferDelay']/0x2);}return _0x1c578e?!this['_shouldSendUpdate']()||(this['_sendBufferedOperationsDelayed'](!0x0),!0x1):this['_crash']('realtimecollaborationclient-handleserverresponse');}['_handleExternalOperations'](_0x265a13,_0x45b13c,_0x14f4bc){try{const _0x3a4480={'document':this['_document'],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x1ebca5,operationsB:_0x1c588d,originalOperations:_0x591a44}=transformOperationSets(_0x265a13,this['_bufferedOperations'],_0x3a4480);updateBaseVersions(_0x1ebca5,this['_document']['version']),updateBaseVersions(_0x1c588d,_0x45b13c);for(const _0x290517 of _0x1ebca5){const _0x1b2a5a=_0x591a44['get'](_0x290517);_0x290517['_authorId']=_0x1b2a5a?_0x1b2a5a['_authorId']:null;}_0x14f4bc&&(this['_operationIdentifier']['setIdForTheLastOperation'](_0x265a13,_0x14f4bc),this['_lastSyncedOperationId']=_0x14f4bc),this['_bufferedOperations']=[..._0x1c588d],this['_applyOperationsSet'](_0x1ebca5),this['_updateServerHistory'](_0x265a13);}catch(_0x487aab){return console['error'](_0x487aab),!0x1;}return!0x0;}['_applyOperationsSet'](_0x214517,_0x41c217=!0x1){this['editor']['model']['enqueueChange']({'isUndoable':!0x1,'isLocal':!0x1},_0x5d14a8=>{for(const _0x3aade7 of _0x214517)this['_knownOperations']['add'](_0x3aade7),this['_addKnownRoot'](_0x3aade7),_0x5d14a8['batch']['addOperation'](_0x3aade7),this['editor']['model']['applyOperation'](_0x3aade7);});}['_addKnownRoot'](_0xfe4b26){const _0x2d0806=this['_getAffectedRoot'](_0xfe4b26);_0x2d0806&&this['_knownRootNames']['add'](_0x2d0806);}['_getAffectedRoot'](_0x3b21d1){let _0x37254a,_0xfc6cd0;switch(_0x3b21d1['type']){case'insert':_0x37254a=_0x3b21d1['position']['root'];break;case'marker':if(_0xfc6cd0=_0x3b21d1['newRange'],!_0xfc6cd0)return null;_0x37254a=_0xfc6cd0['root'];break;case'addRootAttribute':_0x37254a=_0x3b21d1['root'];break;case'addRoot':_0x37254a=_0x3b21d1['affectedSelectable'];break;case'move':_0x37254a=_0x3b21d1['targetPosition']['root'];break;default:return null;}return _0x37254a['rootName'];}['_updateServerHistory'](_0x2ebba8){_0x2ebba8['forEach'](_0x333962=>{const _0x5cf924=_0x333962['clone']();_0x5cf924['_authorId']=_0x333962['_authorId'],_0x5cf924['_isInit']=!!_0x333962['_isInit'],_0x5cf924['createdAt']=_0x333962['createdAt'],_0x5cf924['baseVersion']+=this['_offset'],_0x333962['_isDisconnection']&&this['_disconnectionOperations']['add'](_0x5cf924),this['serverHistory']['addOperation'](_0x5cf924);});}['_handleReconnectionError'](_0x41745d){const _0x7646fc=this['editor']['plugins']['get']('Notification'),_0x48d945=this['editor']['locale'];_0x41745d||(_0x41745d=getTranslation$6(_0x48d945,'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.')),_0x7646fc['showWarning'](_0x41745d,{'title':getTranslation$6(_0x48d945,'Synchronization\x20issue'),'namespace':'real-time-collaboration'}),this['_hasSynchronizationProblem']=!0x0,clearTimeout(this['_sendBufferedOperationsDelayId']),this['_bufferedOperations']=[],this['editor']['plugins']['get'](WebSocketGateway)['disconnect']();}['_setPendingAction'](){this['_pendingAction']||(this['_pendingAction']=this['editor']['plugins']['get'](PendingActions)['add'](getTranslation$6(this['editor']['locale'],'PENDING_ACTION_SENDING_DATA')));}['_clearPendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get'](PendingActions)['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_compressOperations'](_0x3e30c9){const _0x34a842=_0x3e30c9['map'](_0x165550=>_0x165550['toJSON']());return this['_compressor']['compress'](_0x34a842);}['_decompressOperations'](_0x111429,_0x308370){return this['_compressor']['decompress'](_0x111429)['map']((_0x5065b7,_0x4b20c6)=>{const _0x423c88='init'==_0x308370[_0x4b20c6]['type'];if('InsertOperation'==_0x5065b7['__className']){const _0x440e31=_0x5065b7['position']['root'];!this['_document']['getRoot'](_0x440e31)&&(this['_document']['createRoot']('$root',_0x440e31)['_isAttached']=!0x1);}const _0x33baf2=OperationFactory['fromJSON'](_0x5065b7,this['_document']);return _0x33baf2['wasUndone']=_0x5065b7['wasUndone'],_0x33baf2['_isInit']=_0x423c88,_0x33baf2['_authorId']=_0x423c88?null:_0x308370[_0x4b20c6]['userId'],_0x33baf2['_isDisconnection']='cs:removeUser'===_0x308370[_0x4b20c6]['type'],_0x33baf2['createdAt']=_0x308370[_0x4b20c6]['createdAt'],_0x33baf2;});}['_refreshUserSelectionMarkers'](){this['_hasSelectionChanged']=!0x0,this['_shouldSendSelectionUpdate']()?this['_sendBufferedOperationsDelayed']():this['_hasSelectionChanged']=!0x1;}['_shouldSendSelectionUpdate'](){const _0x92e58b=this['editor']['plugins']['get'](Sessions)['channelSessions']['get'](this['_channelId']);return!this['editor']['isReadOnly']&&!!_0x92e58b&&_0x92e58b['length']>0x1&&this['_hasSelectionChanged'];}['_shouldSendUpdate'](){return this['_bufferedOperations']['length']>0x0||this['_shouldSendSelectionUpdate']();}}class ReconnectionError extends Error{}function updateBaseVersions(_0x3d7d10,_0x17507f){for(const _0x35aa44 of _0x3d7d10)_0x35aa44['baseVersion']=_0x17507f++;}function isSessionNotExistingError(_0xd4a097){return'404'===_0xd4a097['code'];}function isBaseVersionMismatchError(_0x45df92){return'409'===_0x45df92['code'];}function isDisconnectionError$3(_0x43d831){return _0x43d831['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x43d831['message']['startsWith']('cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.')||_0x43d831['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class OperationIdentifier{['_ignoredOperations'];['_operationToId'];constructor(_0x509037){this['_ignoredOperations']=_0x509037,this['_operationToId']=new WeakMap();}['getIdOfTheLastOperation'](_0x8f1fea){let _0x3160bb=_0x8f1fea['length'];for(;_0x3160bb--;){const _0x2ffcfd=_0x8f1fea[_0x3160bb];if(!this['_ignoredOperations']['has'](_0x2ffcfd)){if(!this['_operationToId']['has'](_0x2ffcfd)){const _0x9b345c=uid()['slice'](0x1,0x12);this['_operationToId']['set'](_0x2ffcfd,_0x9b345c);}return this['_operationToId']['get'](_0x2ffcfd);}}}['setIdForTheLastOperation'](_0xbdf25,_0x11140f){if(!_0x11140f)return;let _0x15a576=_0xbdf25['length'];for(;_0x15a576--;){const _0xaffb0=_0xbdf25[_0x15a576];this['_ignoredOperations']['has'](_0xaffb0)||this['_operationToId']['set'](_0xaffb0,_0x11140f);}}}class RealTimeCollaborativeEditing extends Plugin{static get['requires'](){return[RealTimeCollaborationClient];}static get['pluginName'](){return'RealTimeCollaborativeEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CloudServicesCommentsAdapter extends ContextPlugin{static ['CommentsService']=/* #__PURE__ -- @preserve */
((()=>CommentsService)());['_services'];static get['requires'](){return[WebSocketGateway,'CommentsRepository',Sessions,Users];}static get['pluginName'](){return'CloudServicesCommentsAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x115dfa){super(_0x115dfa),this['_services']=new Map();}async['init'](){const _0x5741b6=this['context'],_0x579e0a=_0x5741b6['plugins']['get']('CommentsRepository');if(_0x5741b6['plugins']['get'](WebSocketGateway)['addToReconnectionStack'](this),_0x579e0a['adapter']={'addCommentThread':async({channelId:_0x12db39,threadId:_0x11cce4,comments:_0x314827,resolvedAt:_0x2161f3,resolvedBy:_0xdf967f,context:_0xf2507b,attributes:_0x46ff7c})=>{const _0x358e2b=await this['_getService'](_0x12db39)['addCommentThread']({'commentThreadId':_0x11cce4,'comments':_0x314827['map'](_0xe05c71=>parseLocalCommentToRemote(_0xe05c71,_0x12db39,_0x11cce4)),'resolvedAt':_0x2161f3,'resolvedBy':_0xdf967f,'context':_0xf2507b,'attributes':_0x46ff7c})['catch'](handleDisconnectionError$1);return{'threadId':_0x358e2b['commentThreadId'],'comments':_0x358e2b['comments']};},'getCommentThread':async({channelId:_0x4dfeb3,threadId:_0x30867a})=>{const _0x36936f=await this['_getService'](_0x4dfeb3)['getCommentThread'](_0x30867a)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return _0x36936f?_0x36936f['deletedAt']?null:(await this['_fetchMissingUsersForThreads']([_0x36936f]),{'threadId':_0x36936f['commentThreadId'],'comments':_0x36936f['comments']['map'](parseRemoteCommentToLocal),'context':_0x36936f['context'],'resolvedAt':_0x36936f['resolvedAt'],'resolvedBy':_0x36936f['resolvedBy'],'attributes':_0x36936f['attributes']||{}}):null;},'updateCommentThread':async({channelId:_0x60fba6,threadId:_0x211719,context:_0x435cc8,unlinkedAt:_0x6b47ed,attributes:_0x584a5e})=>this['_getService'](_0x60fba6)['updateCommentThread']({'commentThreadId':_0x211719,'context':_0x435cc8,'attributes':_0x584a5e,'unlinkedAt':_0x6b47ed})['catch'](handleServerError)['catch'](handleDisconnectionError$1),'resolveCommentThread':async({channelId:_0x6be019,threadId:_0x3ef5b9})=>{const _0xad90cb=await this['_getService'](_0x6be019)['resolveCommentThread'](_0x3ef5b9)['catch'](handleServerError)['catch'](handleDisconnectionError$1);return{'threadId':_0xad90cb['commentThreadId'],'resolvedAt':_0xad90cb['resolvedAt'],'resolvedBy':_0xad90cb['resolvedBy']};},'reopenCommentThread':async({channelId:_0x20df97,threadId:_0x9efdfa})=>this['_getService'](_0x20df97)['reopenCommentThread'](_0x9efdfa)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeCommentThread':({channelId:_0x46e7ff,threadId:_0x50a9c5})=>this['_getService'](_0x46e7ff)['removeCommentThread'](_0x50a9c5)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'addComment':({channelId:_0x3b2b92,threadId:_0x2f82b6,commentId:_0x359534,content:_0x38a450,attributes:_0x133c6a})=>this['_getService'](_0x3b2b92)['addComment'](_0x2f82b6,_0x359534,_0x38a450,_0x133c6a)['catch'](handleDisconnectionError$1),'updateComment':({channelId:_0x332755,threadId:_0xe20802,commentId:_0x57e01a,content:_0xd7c3c8,attributes:_0xad2dd6})=>this['_getService'](_0x332755)['updateComment'](_0xe20802,_0x57e01a,_0xd7c3c8,_0xad2dd6)['catch'](handleServerError)['catch'](handleDisconnectionError$1),'removeComment':({channelId:_0x50cf55,threadId:_0x5538d5,commentId:_0x21baa3})=>this['_getService'](_0x50cf55)['removeComment'](_0x5538d5,_0x21baa3)['catch'](handleServerError)['catch'](handleDisconnectionError$1)},_0x5741b6 instanceof Context$1){const _0x2fc661=_0x5741b6['config']['get']('collaboration.channelId'),_0x1e7567=_0x5741b6['plugins']['get'](Sessions);await this['_setUpService'](_0x2fc661);const _0x50581c=await this['_services']['get'](_0x2fc661)['getConnectedSessions']();this['listenTo'](_0x1e7567,'sessionAdd:'+_0x2fc661,(_0x5d9004,{session:_0x1cff32})=>{_0x1cff32['id']===_0x1e7567['mySessionId']&&(_0x5d9004['off'](),this['context']['plugins']['get']('Permissions')['setPermissions'](_0x1cff32['permissions'],_0x2fc661));}),_0x1e7567['register'](_0x2fc661,_0x50581c);}}async['_setUpService'](_0x36bcbd){if(this['_services']['has'](_0x36bcbd))throw new CKEditorError('cloudservicescommentsadapter-connect-already-connected',null,{'channelId':_0x36bcbd});const _0x5ba617=this['context']['plugins']['get']('CommentsRepository'),_0xc3bada=new CloudServicesCommentsAdapter['CommentsService'](_0x36bcbd);this['_services']['set'](_0x36bcbd,_0xc3bada),this['listenTo'](_0xc3bada,'commentThreadAdded',(_0x273b7f,_0x1d21ef)=>{const {commentThreadId:_0x2d3bf7,documentId:_0x23ca3b,context:_0x1b1d2b,attributes:_0x5f2284,resolvedAt:_0xcb286d,resolvedBy:_0xf83728,comments:_0x164db0}=_0x1d21ef;_0x5ba617['getCommentThread'](_0x2d3bf7)||_0x5ba617['addCommentThread']({'threadId':_0x2d3bf7,'channelId':_0x23ca3b,'comments':_0x164db0?_0x164db0['map'](parseRemoteCommentToLocal):[],'context':_0x1b1d2b,'attributes':_0x5f2284,'resolvedAt':_0xcb286d,'resolvedBy':_0xf83728,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentThreadUpdated',(_0x28967a,{commentThreadId:_0x29145d,documentId:_0x2990f7,context:_0x3c4d0a,unlinkedAt:_0x332ea7,attributes:_0x2384d1})=>{_0x5ba617['getCommentThread'](_0x29145d)&&_0x5ba617['updateCommentThread']({'threadId':_0x29145d,'channelId':_0x2990f7,'context':_0x3c4d0a,'unlinkedAt':_0x332ea7,'attributes':_0x2384d1,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentThreadResolved',(_0x42f62f,{commentThreadId:_0x7fd57a,resolvedBy:_0x203f7a,resolvedAt:_0x2970ff})=>{const _0x5ddf43=_0x5ba617['getCommentThread'](_0x7fd57a);_0x5ddf43&&_0x5ddf43['resolve']({'resolvedBy':_0x203f7a,'resolvedAt':_0x2970ff,'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentThreadReopened',(_0x25c315,{commentThreadId:_0x171005})=>{const _0x139925=_0x5ba617['getCommentThread'](_0x171005);_0x139925&&_0x139925['reopen']({'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentThreadRemoved',(_0x53a12f,{commentThreadId:_0x60dec3})=>{const _0x4dd8ae=_0x5ba617['getCommentThread'](_0x60dec3);_0x4dd8ae&&_0x4dd8ae['remove']({'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentAdded',(_0x4eb5ac,_0x5d88e7)=>{const _0x75aaed=_0x5d88e7['commentThreadId'],_0x5b2077=_0x5ba617['getCommentThread'](_0x75aaed);_0x5b2077&&_0x5b2077['addComment']({...parseRemoteCommentToLocal(_0x5d88e7),'isFromAdapter':!0x0});}),this['listenTo'](_0xc3bada,'commentUpdated',(_0x1710de,{commentThreadId:_0x380404,commentId:_0x3d5b9f,content:_0x29370b,attributes:_0x32d9fc})=>{const _0x45be13=_0x5ba617['getCommentThread'](_0x380404);if(_0x45be13){const _0x5630bf=_0x45be13['getComment'](_0x3d5b9f);_0x5630bf&&_0x5630bf['update']({'content':_0x29370b,'attributes':_0x32d9fc,'isFromAdapter':!0x0});}}),this['listenTo'](_0xc3bada,'commentRemoved',(_0x43ae59,{commentThreadId:_0x57d7d4,commentId:_0x452c96})=>{const _0x45936f=_0x5ba617['getCommentThread'](_0x57d7d4);if(_0x45936f){const _0x162bf3=_0x45936f['getComment'](_0x452c96);_0x162bf3&&_0x162bf3['remove']({'isFromAdapter':!0x0});}}),await this['_connectService'](_0x36bcbd);}['destroy'](){if(this['context']instanceof Context$1){const _0x477b8e=this['context']['config']['get']('collaboration.channelId');this['_terminateService'](_0x477b8e);}}['_terminateService'](_0xcc9dc1){if(!this['_services']['has'](_0xcc9dc1))throw new CKEditorError('cloudservicescommentsadapter-disconnect-not-exist',null,{'channelId':_0xcc9dc1});this['_getService'](_0xcc9dc1)['disconnect'](),this['_services']['delete'](_0xcc9dc1);}async['reconnect'](){for(const _0x3387bd of this['_services']['keys']())await this['_connectService'](_0x3387bd);if(this['context']instanceof Context$1){const _0x45b1df=this['context']['config']['get']('collaboration.channelId'),_0x38d394=this['context']['plugins']['get'](Sessions);_0x38d394['unregister'](_0x45b1df);const _0x581dbe=await this['_services']['get'](_0x45b1df)['getConnectedSessions']();_0x38d394['register'](_0x45b1df,_0x581dbe);}}async['_connectService'](_0x284e36){const {connection:_0x56d206}=this['context']['plugins']['get'](WebSocketGateway),_0x312ad8=this['context']['plugins']['get']('CommentsRepository'),_0x20565f=this['_services']['get'](_0x284e36),_0x12438d=await _0x20565f['connect'](_0x56d206);await this['_fetchMissingUsersForThreads'](_0x12438d);const _0x2ce78b=new Set(Array['from'](_0x312ad8['getCommentThreads']({'channelId':_0x284e36}),_0x33915b=>_0x33915b['id']));for(const _0x219539 of _0x12438d)_0x219539['deletedAt']||_0x2ce78b['delete'](_0x219539['commentThreadId']);for(const _0x596b55 of _0x2ce78b)_0x312ad8['getCommentThread'](_0x596b55)['remove']({'isFromAdapter':!0x0});for(const _0x2bb96f of _0x12438d){let _0x5b86b3=_0x312ad8['getCommentThread'](_0x2bb96f['commentThreadId']);const {commentThreadId:_0x23e5c7,context:_0x527237,attributes:_0x52d71f,resolvedBy:_0x47197d,resolvedAt:_0xc212b1,unlinkedAt:_0x2396ae,deletedAt:_0x7d9c0d}=_0x2bb96f;if(_0x7d9c0d)continue;_0x5b86b3||(_0x5b86b3=_0x312ad8['addCommentThread']({'channelId':_0x284e36,'threadId':_0x23e5c7,'context':_0x527237,'attributes':_0x52d71f||{},'resolvedBy':_0x47197d,'resolvedAt':_0xc212b1,'unlinkedAt':_0x2396ae,'isFromAdapter':!0x0}));const _0x18d1e6=new Set(Array['from'](_0x5b86b3['comments'],_0x463607=>_0x463607['id']));for(const _0x56d71d of _0x2bb96f['comments'])_0x18d1e6['delete'](_0x56d71d['commentId']);for(const _0x3c2927 of _0x18d1e6)_0x5b86b3['getComment'](_0x3c2927)['remove']({'isFromAdapter':!0x0});for(const _0x118b93 of _0x2bb96f['comments']){const _0x3bf96a=_0x5b86b3['getComment'](_0x118b93['commentId']);_0x3bf96a?_0x3bf96a['content']!==_0x118b93['content']&&_0x3bf96a['update']({'content':_0x118b93['content'],'isFromAdapter':!0x0}):_0x5b86b3['addComment'](Object['assign'](parseRemoteCommentToLocal(_0x118b93),{'isFromAdapter':!0x0}));}}}['_getService'](_0x2eeee9){if(!this['_services']['has'](_0x2eeee9))throw new CKEditorError('cloudservicescommentsadapter-service-not-exist',null,{'channelId':_0x2eeee9});return this['_services']['get'](_0x2eeee9);}async['_fetchMissingUsersForThreads'](_0x3d70f9){const _0x2d13f1=this['context']['plugins']['get'](Users),{connection:_0x5b3157}=this['context']['plugins']['get'](WebSocketGateway),_0x1dc960=new Set();for(const {resolvedBy:_0x12a21c,comments:_0x5df4d2}of _0x3d70f9){_0x12a21c&&!_0x2d13f1['getUser'](_0x12a21c)&&_0x1dc960['add'](_0x12a21c);for(const {userId:_0x558c87}of _0x5df4d2)_0x2d13f1['getUser'](_0x558c87)||_0x1dc960['add'](_0x558c87);}if(0x0===_0x1dc960['size'])return;const _0x37c2d6=await User['getMany'](_0x5b3157,Array['from'](_0x1dc960));for(const _0xd32aa2 of _0x37c2d6)_0x2d13f1['getUser'](_0xd32aa2['id'])||_0x2d13f1['addUser'](_0xd32aa2);}}async function handleServerError(_0x5662d1){if('404'!==_0x5662d1['code'])throw _0x5662d1;}function handleDisconnectionError$1(_0x1f5976){if(isDisconnectionError$2(_0x1f5976))return new Promise(()=>{});throw _0x1f5976;}function isDisconnectionError$2(_0x4f4315){return _0x4f4315['message']['startsWith']('cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.')||_0x4f4315['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x4f4315['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}function parseRemoteCommentToLocal(_0x3cb6e6){return{'threadId':_0x3cb6e6['commentThreadId'],'commentId':_0x3cb6e6['commentId'],'content':_0x3cb6e6['content'],'createdAt':_0x3cb6e6['createdAt'],'authorId':_0x3cb6e6['userId'],'attributes':_0x3cb6e6['attributes']||{}};}function parseLocalCommentToRemote(_0xde57ee,_0x1a8790,_0x37498e){return{'commentThreadId':_0x37498e,'commentId':_0xde57ee['commentId'],'userId':_0xde57ee['authorId'],'content':_0xde57ee['content'],'documentId':_0x1a8790,'createdAt':_0xde57ee['createdAt'],'attributes':_0xde57ee['attributes']||{}};}class CloudServicesTrackChangesAdapter extends Plugin{static ['TrackChangesService']=/* #__PURE__ -- @preserve */
((()=>TrackChangesService)());['_bufferedRequests'];['_trackChangesService'];static get['requires'](){return[CloudServicesCommentsAdapter,'TrackChangesEditing',WebSocketGateway];}static get['pluginName'](){return'CloudServicesTrackChangesAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f8b8d){super(_0x1f8b8d);const _0x46bbf8=this['editor']['config']['get']('collaboration.channelId');this['_bufferedRequests']=new Map(),this['_trackChangesService']=new CloudServicesTrackChangesAdapter['TrackChangesService'](_0x46bbf8);}['init'](){const _0x243906=this['editor']['plugins']['get'](WebSocketGateway),_0x241704=this['editor']['plugins']['get']('TrackChangesEditing');return _0x241704['adapter']={'getSuggestion':async _0x16cb49=>{await this['_waitForServiceReady']();const _0x257a79=await this['_trackChangesService']['get'](_0x16cb49)['catch'](handleDisconnectionError);return await this['_fetchMissingUsersForThreads']([_0x257a79]),_0x257a79;},'addSuggestion':async({id:_0x1db5ba,type:_0x4c9a08,data:_0x3bd724,originalSuggestionId:_0x8e8cba,attributes:_0xdf11a6})=>{await this['_waitForServiceReady']();const _0x398888={'id':_0x1db5ba,'type':_0x4c9a08,'data':_0x3bd724,'originalSuggestionId':_0x8e8cba,'attributes':_0xdf11a6},_0x36b0f1=await this['_trackChangesService']['add'](_0x1db5ba,_0x4c9a08,_0x3bd724,_0x8e8cba,_0xdf11a6)['catch'](_0x3a50fc=>{if(isDisconnectionError$1(_0x3a50fc))return new Promise(_0x591b84=>{this['_bufferedRequests']['set'](_0x1db5ba,{'resolve':_0x591b84,'suggestionData':_0x398888});});throw _0x3a50fc;});return this['_bufferedRequests']['delete'](_0x1db5ba),_0x36b0f1;},'updateSuggestion':async(_0x1829ba,_0x1956a3)=>{if(await this['_waitForServiceReady'](),'open'!==_0x1956a3['state'])return this['_trackChangesService']['update'](_0x1829ba,_0x1956a3)['catch'](handleDisconnectionError);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x2c7c5e,_0x234c2c)=>{_0x241704['hasSuggestion'](_0x234c2c['id'])&&(_0x241704['getSuggestion'](_0x234c2c['id'])['attributes']=_0x234c2c['attributes']);}),this['_trackChangesService']['connect'](_0x243906['connection'])['then'](_0x130470=>(_0x243906['addToReconnectionStack'](this),this['_fetchMissingUsersForThreads'](_0x130470)['then'](()=>{for(const _0x281236 of _0x130470){_0x241704['addSuggestionData'](_0x281236)['_saved']=!0x0;}})));}async['reconnect'](){const _0x5b73e1=this['editor']['plugins']['get']('TrackChangesEditing'),{connection:_0x256084}=this['editor']['plugins']['get'](WebSocketGateway),_0x369979=await this['_trackChangesService']['connect'](_0x256084);await this['_fetchMissingUsersForThreads'](_0x369979);for(const {suggestionData:_0x13e6e2,resolve:_0x5e0728}of this['_bufferedRequests']['values']()){let _0x313dda=_0x369979['find'](_0x7785e9=>_0x7785e9['id']===_0x13e6e2['id']);_0x313dda||(_0x313dda=await this['_trackChangesService']['add'](_0x13e6e2['id'],_0x13e6e2['type'],_0x13e6e2['data'],_0x13e6e2['originalSuggestionId'])),_0x5e0728(_0x313dda);}for(const _0x259ef1 of _0x369979)_0x5b73e1['hasSuggestion'](_0x259ef1['id'])||_0x5b73e1['addSuggestionData'](_0x259ef1);}async['_waitForServiceReady'](){this['_trackChangesService']['isConnected']||await new Promise(_0x233f31=>{this['listenTo'](this['_trackChangesService'],'connected',_0x21c6a3=>{_0x21c6a3['off'](),_0x233f31();});});}async['_fetchMissingUsersForThreads'](_0x5ba1e8){const _0x2aa971=this['editor']['plugins']['get'](Users),{connection:_0x480c23}=this['editor']['plugins']['get'](WebSocketGateway),_0x590d1d=new Set();for(const {authorId:_0xf07795}of _0x5ba1e8)_0x2aa971['getUser'](_0xf07795)||_0x590d1d['add'](_0xf07795);if(0x0===_0x590d1d['size'])return;const _0x33222=await User['getMany'](_0x480c23,Array['from'](_0x590d1d));for(const _0x5dc68c of _0x33222)_0x2aa971['getUser'](_0x5dc68c['id'])||_0x2aa971['addUser'](_0x5dc68c);}}function handleDisconnectionError(_0x6223a8){if(isDisconnectionError$1(_0x6223a8))return new Promise(()=>{});throw _0x6223a8;}function isDisconnectionError$1(_0x8acf60){return _0x8acf60['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x8acf60['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeComments extends Plugin{static get['requires'](){return['Comments',CloudServicesCommentsAdapter,RealTimeCollaborativeEditing,WebSocketGateway];}static get['pluginName'](){return'RealTimeCollaborativeComments';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f1248=this['editor']['plugins']['get'](WebSocketGateway),_0x47ace1=this['editor']['plugins']['get']('CommentsEditing'),_0x53a206=this['editor']['plugins']['get'](CloudServicesCommentsAdapter);return this['editor']['data']['once']('ready',()=>{this['listenTo'](_0x1f1248,'change:state',(_0x51b10f,_0x3132c0,_0x31a8fd)=>{_0x47ace1['isThreadsLoadingPaused']='connected'!==_0x31a8fd;});}),this['listenTo'](_0x1f1248,'change:state',(_0x194945,_0x3941f6,_0x28495a)=>{this['editor']['plugins']['get']('CommentsRepository')['switchReadOnly']('connected'!==_0x28495a);}),_0x53a206['_setUpService'](this['editor']['config']['get']('collaboration.channelId'));}['destroy'](){this['editor']['plugins']['get'](CloudServicesCommentsAdapter)['_terminateService'](this['editor']['config']['get']('collaboration.channelId')),super['destroy']();}}class RealTimeCollaborativeTrackChanges extends Plugin{static get['requires'](){return[RealTimeCollaborativeComments,CloudServicesTrackChangesAdapter,'TrackChanges'];}static get['pluginName'](){return'RealTimeCollaborativeTrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class CloudServicesRevisionHistoryAdapter extends Plugin{static ['RevisionHistoryService']=/* #__PURE__ -- @preserve */
((()=>RevisionHistoryService)());['_lastRequestId'];['_revisionTracker'];['_revisionHistoryService'];['_oldOffset'];static get['requires'](){return[WebSocketGateway,RealTimeCollaborationClient,'RevisionHistory',Sessions,Users];}static get['pluginName'](){return'CloudServicesRevisionHistoryAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x131f3e){super(_0x131f3e);const _0x45ec5b=this['editor']['config']['get']('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this['editor']['plugins']['get']('RevisionTracker'),this['_revisionHistoryService']=new CloudServicesRevisionHistoryAdapter['RevisionHistoryService'](_0x45ec5b);}async['init'](){const _0x2ed5f0=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0xfdf36e=_0x2ed5f0['serverHistory'],_0x40be19=this['editor']['plugins']['get'](WebSocketGateway);this['_revisionTracker']['setSource']({'history':_0xfdf36e,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x2ed5f0['sessionId']});const _0x22fa2f=this['editor']['config']['get']('cloudServices.bundleVersion')||_0x10bf4c,_0x4f01b8=await EditorService['isBundleUploaded'](_0x40be19['connection'],_0x22fa2f);this['editor']['plugins']['get']('RevisionHistory')['adapter']={'getRevision':async({revisionId:_0x522dba})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService']['getRevision'](_0x522dba)),'updateRevisions':async _0x49386e=>{await this['_waitForServiceReady']();const _0x8d6187=this['_revisionTracker']['currentRevision'];if(_0x4f01b8&&0x1===_0x49386e['length']&&_0x49386e[0x0]['id']===_0x8d6187['id'])return _0x49386e;for(const _0x24be27 of _0x49386e)_0x24be27['id']===_0x8d6187['id']&&(_0x24be27['isEmptyCurrent']=_0x24be27['fromVersion']===_0x24be27['toVersion']);return this['_revisionHistoryService']['updateRevisions'](_0x49386e,this['_lastRequestId'])['then'](_0x4023ec=>(this['_lastRequestId']=_0x4023ec,_0x49386e))['catch'](_0xbe3f90=>{if(isDisconnectionError(_0xbe3f90)||'400'===_0xbe3f90['code']&&void 0x0!==_0xbe3f90['data']['wrongRequestId']){for(const _0x325238 of _0x49386e){!this['_revisionTracker']['repository']['getRevision'](_0x325238['id'])||this['_revisionTracker']['_bufferUpdate'](_0x325238['id'],_0x325238,!0x1);}if(isDisconnectionError(_0xbe3f90))throw _0xbe3f90;return _0x49386e;}throw _0xbe3f90;});}},this['listenTo'](this['_revisionHistoryService'],'revisionsUpdated',(_0x2d8819,{revisionsData:_0x3427aa,requestId:_0x3a822e})=>{Math['max'](..._0x3427aa['map'](_0x22235c=>_0x22235c['toVersion']))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()['then'](()=>{this['_handleRevisionsUpdate'](_0x3427aa,_0x3a822e);}):this['_handleRevisionsUpdate'](_0x3427aa,_0x3a822e);});const {revisions:_0x3175c4,requestId:_0x12f01a}=await this['_revisionHistoryService']['connect'](_0x40be19['connection']);_0x40be19['addToReconnectionStack'](this),this['_lastRequestId']=_0x12f01a,await this['_fetchMissingUsers'](_0x3175c4);for(const _0x32195a of _0x3175c4)this['_revisionTracker']['addRevisionData'](_0x32195a);this['listenTo'](_0x2ed5f0,'change:_isConnected',(_0x3d95fc,_0x35f24d,_0x52b4ac)=>{_0x52b4ac&&(this['_oldOffset']=_0x2ed5f0['_offset'],_0x3d95fc['off']());}),this['_revisionTracker']['bind']('isEnabled')['to'](_0x40be19,'state',_0x1a0f89=>_0x1a0f89===WEB_SOCKET_GATEWAY_STATES['CONNECTED']);}async['reconnect'](){const _0x57be8b=this['editor']['plugins']['get'](WebSocketGateway),_0xe5a8d1=this['editor']['plugins']['get'](RealTimeCollaborationClient),_0x1f206c=async()=>{const _0x48429f=this['_revisionTracker']['currentRevision'],_0x12b387=_0x48429f['id'],_0x55bfa9=_0x12b387!==_0xe5a8d1['sessionId'];if(_0x55bfa9){const _0x59f1b4=_0xe5a8d1['_offset']-this['_oldOffset'],_0x3d338d=this['_getLatestVersionFromServerOperations']();this['_revisionTracker']['_revisionDataBuilder']['reInit']();if(_0x48429f['toVersion']+_0x59f1b4!==_0x3d338d){const _0x5505a6=_0x48429f['fromVersion']+_0x59f1b4,_0x3cc1c4=this['editor']['plugins']['get'](Users),_0x1e1b6d=this['_revisionTracker']['buildRevisionData']({'revision':_0x48429f,'from':_0x5505a6,'to':_0x3d338d});_0x1e1b6d['id']=_0x48429f['id'];const _0x286aa5=_0x1e1b6d['authorsIds']['map'](_0x39a466=>_0x3cc1c4['getUser'](_0x39a466));_0x48429f['_update']({..._0x1e1b6d,'authors':_0x286aa5},!0x0),this['_revisionTracker']['_bufferUpdate'](_0x48429f['id'],_0x1e1b6d,!0x0);}this['_revisionTracker']['_startingVersion']=_0x3d338d,(_0x48429f['toVersion']===_0x48429f['fromVersion']&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x12b387)&&this['_revisionTracker']['repository']['_revisions']['remove'](_0x12b387),this['_revisionTracker']['_createCurrentRevision'](_0x3d338d));}const {revisions:_0x1b8c4a,requestId:_0x5a7be8}=await this['_revisionHistoryService']['reconnect'](_0x57be8b['connection'],this['_lastRequestId']);_0x55bfa9&&_0x1b8c4a['length']>0x0?_0xe5a8d1['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x1b8c4a),this['_handleRevisionsUpdate'](_0x1b8c4a,_0x5a7be8),this['_revisionTracker']['sendBufferedUpdates']());};return _0xe5a8d1['_isConnected']?_0x1f206c():new Promise((_0x154212,_0x426081)=>{_0xe5a8d1['once']('change:_isConnected',()=>{_0x1f206c()['then'](_0x154212)['catch'](_0x426081);});});}['destroy'](){super['destroy']();}async['_waitForServiceReady'](){this['_revisionHistoryService']['isConnected']||await new Promise(_0x1c8e2e=>{this['listenTo'](this['_revisionHistoryService'],'connected',_0xbadaea=>{_0xbadaea['off'](),_0x1c8e2e();});});}['_getLatestVersionFromServerOperations'](){const _0x323a8c=this['editor']['plugins']['get'](RealTimeCollaborationClient)['serverHistory']['getOperations']()['reverse']();for(const _0x505e58 of _0x323a8c)if('marker'!==_0x505e58['type']||_0x505e58['affectsData'])return _0x505e58['baseVersion']+0x1;}['_getLatestVersion'](){const _0x1c2d69=this['editor']['plugins']['get'](RealTimeCollaborationClient);return new Promise(_0xa50363=>{_0x1c2d69['_isPendingUpdate']?_0x1c2d69['once']('change:_isPendingUpdate',()=>{_0xa50363(this['_getLatestVersionFromServerOperations']());}):_0xa50363(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x34088c,_0x7dc173){const _0x1fceda=this['_revisionTracker']['repository'];this['_lastRequestId']=_0x7dc173;for(const _0x3c44f6 of _0x34088c){const _0x45cd2e=_0x1fceda['getRevision'](_0x3c44f6['id']);if(_0x45cd2e){if((_0x3c44f6['fromVersion']||_0x3c44f6['toVersion'])&&(_0x3c44f6['diffData']=null),_0x45cd2e===this['_revisionTracker']['currentRevision']){const _0x77864a=Math['max'](_0x45cd2e['toVersion'],_0x3c44f6['toVersion']),_0x3a4a10=Math['max'](_0x45cd2e['fromVersion'],_0x3c44f6['fromVersion']);let _0x1c493b;_0x45cd2e['toVersion']===_0x3c44f6['toVersion']&&_0x45cd2e['fromVersion']===_0x3c44f6['fromVersion']?(_0x1c493b=!0x0,this['_preventResendingRevisionData'](_0x3c44f6)):_0x3c44f6['toVersion']===_0x77864a&&_0x3c44f6['fromVersion']===_0x3a4a10?_0x1c493b=!0x1:(_0x45cd2e['toVersion']===_0x77864a&&_0x45cd2e['fromVersion']===_0x3a4a10||this['_fixRevision']({'revision':_0x45cd2e,'from':_0x3a4a10,'to':_0x77864a}),_0x1c493b=!0x0),_0x1c493b&&(delete _0x3c44f6['fromVersion'],delete _0x3c44f6['toVersion'],delete _0x3c44f6['diffData'],delete _0x3c44f6['createdAt'],delete _0x3c44f6['authorsIds']);}this['_revisionTracker']['setRevisionData'](_0x3c44f6),this['_preventResendingRevisionData'](_0x3c44f6);}else this['_revisionTracker']['addRevisionData'](_0x3c44f6);}const _0x1f7648=_0x1fceda['getRevisions']();_0x1f7648['reverse']();for(let _0x4ba8df=0x0;_0x4ba8df<_0x1f7648['length']-0x1;_0x4ba8df++){const _0x1c601a=_0x1f7648[_0x4ba8df],_0x28e906=_0x1f7648[_0x4ba8df+0x1];if(_0x1c601a['fromVersion']<_0x28e906['toVersion']){const _0x289769=_0x28e906['toVersion'],_0x5b2754=Math['max'](_0x289769,_0x1c601a['toVersion']);this['_fixRevision']({'revision':_0x1c601a,'from':_0x289769,'to':_0x5b2754});}}}['_fixRevision']({revision:_0x5753c8,from:_0x1d07d9,to:_0x43a480}={}){const _0x2598d2=this['editor']['plugins']['get'](Users),_0x25100f=this['_revisionTracker']['buildRevisionData']({'revision':_0x5753c8,'from':_0x1d07d9,'to':_0x43a480});_0x25100f['authors']=_0x25100f['authorsIds']['map'](_0x32f92c=>_0x2598d2['getUser'](_0x32f92c)),_0x5753c8['_update'](_0x25100f);}['_preventResendingRevisionData'](_0x173d27){const _0x1eab15={};_0x1eab15['id']=_0x173d27['id'];for(const _0x5cfda4 of Object['keys'](_0x173d27))'id'!==_0x5cfda4&&(_0x1eab15[_0x5cfda4]=void 0x0);this['_revisionTracker']['_bufferUpdate'](_0x1eab15['id'],_0x1eab15,!0x0);}async['_fetchMissingUsers'](_0x72ac5){const _0x3387c0=this['editor']['plugins']['get'](Users),{connection:_0x7f9262}=this['editor']['plugins']['get'](WebSocketGateway),_0x5cd20f=new Set();for(const _0x259a11 of _0x72ac5){for(const _0x32fc85 of _0x259a11['authorsIds'])_0xccd480(_0x32fc85);_0x259a11['creatorId']&&_0xccd480(_0x259a11['creatorId']);}if(0x0===_0x5cd20f['size'])return;const _0x400d22=await User['getMany'](_0x7f9262,Array['from'](_0x5cd20f));for(const _0xf43d1d of _0x400d22)_0x3387c0['getUser'](_0xf43d1d['id'])||_0x3387c0['addUser'](_0xf43d1d);function _0xccd480(_0x3f3bb9){_0x3387c0['getUser'](_0x3f3bb9)||_0x5cd20f['add'](_0x3f3bb9);}}}function isDisconnectionError(_0x2a71fd){return _0x2a71fd['message']['startsWith']('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x2a71fd['message']['startsWith']('cloud-services-internal-error:\x20Not\x20connected.')||_0x2a71fd['message']['startsWith']('cloud-services-internal-error:\x20Request\x20timeout.');}class RealTimeCollaborativeRevisionHistory extends Plugin{static get['requires'](){return['RevisionHistory',CloudServicesRevisionHistoryAdapter,RealTimeCollaborativeEditing];}static get['pluginName'](){return'RealTimeCollaborativeRevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class PresenceCounterView extends View{['_collapseAt'];constructor(_0x528053,_0x26fcdf=0x6){super(_0x528053);const _0x3f13f4=this['bindTemplate'];this['set']('isHidden',!0x0),this['set']('usersCount',0x0),this['_collapseAt']=_0x26fcdf,this['bind']('isHidden')['to'](this,'usersCount',_0x2fdb93=>_0x2fdb93<_0x26fcdf),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item',_0x3f13f4['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':_0x3f13f4['to']('usersCount',_0x1002a9=>'+'+(_0x1002a9-this['_collapseAt']+0x2)['toString']())}]}]}]});}}class PresenceInlineListView extends View{['items'];['keystrokes'];constructor(_0x36bb84){super(_0x36bb84);const _0x182c01=this['bindTemplate'];this['items']=this['createCollection'](),this['keystrokes']=new KeystrokeHandler(),this['set']({'hasPopup':!0x1,'isExpanded':!0x1}),this['setTemplate']({'tag':'div','attributes':{'aria-haspopup':_0x182c01['if']('hasPopup'),'aria-expanded':_0x182c01['to']('isExpanded',_0x38bf98=>this['hasPopup']&&String(_0x38bf98)),'aria-label':_0x182c01['to']('hasPopup',_0x3692b7=>getTranslation$6(_0x36bb84,_0x3692b7?'Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)':'Connected\x20users\x20list')),'role':'list','tabindex':_0x182c01['to']('hasPopup',_0x565264=>!!_0x565264&&0x0),'class':['ck','ck-presence-list__list']},'children':this['items'],'on':{'mouseenter':_0x182c01['to'](()=>this['fire']('presencelist:show')),'mouseleave':_0x182c01['to'](_0x29cbf6=>{const _0x4fd06e=_0x29cbf6,_0x42a9f0=document['querySelector']('.ck-presence-list__dropdown-list'),_0x1a7133=document['querySelector']('.ck-balloon-panel_with-arrow');_0x42a9f0?.['contains'](_0x4fd06e['relatedTarget'])||_0x1a7133?.['contains'](_0x4fd06e['relatedTarget'])||this['fire']('presencelist:hide');})}}),this['on']('change:hasPopup',(_0x4df725,_0x1de1f3,_0x3051ba)=>{this['element']&&(_0x3051ba?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']);}}class PresenceListView extends View{['counterView'];['inlineListView'];constructor(_0x2b0e16,_0x3e48cc=0x6){super(_0x2b0e16);const _0x2537a1=this['bindTemplate'];this['set']('isCollapsed',!0x0),this['counterView']=new PresenceCounterView(this['locale'],_0x3e48cc),this['inlineListView']=new PresenceInlineListView(_0x2b0e16),this['inlineListView']['bind']('hasPopup')['to'](this,'isCollapsed'),this['listenTo'](this['inlineListView']['items'],'change',()=>{for(const _0x219212 of this['inlineListView']['items'])_0x219212['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',_0x2537a1['if']('isCollapsed','ck-presence-list--collapsed')]},'children':[this['inlineListView']]});}}class PresenceDropdownListView extends View{['listWrapperView'];constructor(_0x36fb34,_0x74c1e9){super(_0x36fb34);const _0x40fd47=this['bindTemplate'];this['listWrapperView']=new PresenceDropdownListWrapperView(_0x36fb34,_0x74c1e9),this['setTemplate']({'tag':'div','attributes':{'tabindex':-0x1,'role':'application','class':['ck','ck-presence-list__dropdown-list'],'aria-label':getTranslation$6(_0x36fb34,'Connected\x20users\x20list\x20dropdown\x20menu')},'children':[this['listWrapperView']],'on':{'mouseleave':_0x40fd47['to'](_0x322deb=>{const _0x230a57=_0x322deb,_0x3ebdc1=document['querySelector']('.ck-presence-list__list'),_0x2a5aed=document['querySelector']('.ck-balloon-panel_with-arrow');_0x3ebdc1?.['contains'](_0x230a57['relatedTarget'])||_0x2a5aed?.['contains'](_0x230a57['relatedTarget'])||this['fire']('presencelist:hide');})}});}}class PresenceDropdownListWrapperView extends ListView{constructor(_0x43502e,_0x2fc4bf){super(_0x43502e);const _0x1bf538=this['bindTemplate'];this['set']('_isScrollable',!0x1),this['setTemplate']({'tag':_0x2fc4bf?'div':'ul','attributes':{'class':['ck','ck-reset','ck-list','ck-presence-list__dropdown-list-wrapper',_0x1bf538['if']('_isScrollable','ck-presence-list__dropdown-list-wrapper_scrollable')],'role':_0x1bf538['to']('role'),'aria-label':_0x1bf538['to']('ariaLabel'),'aria-labelledby':_0x1bf538['to']('ariaLabelledBy')},'children':this['items']}),this['listenTo'](_0x59f9c1['window'],'resize',()=>this['checkIfScrollable']()),this['items']['on']('change',()=>this['checkIfScrollable']());}['render'](){super['render'](),this['checkIfScrollable']();}['checkIfScrollable'](){const _0x507946=this['element'];_0x507946&&(this['_isScrollable']=Math['max'](_0x507946['scrollHeight'],_0x507946['clientHeight'])>0.8*window['innerHeight']);}}class PresenceDropdownListItemView extends ListItemView{['userView'];constructor(_0x156951,_0x433513,_0x483a89){super(_0x156951);const _0x44d16d=this['bindTemplate'];this['userView']=new UserView(_0x156951,_0x433513);const _0x31f569={'tag':'li','attributes':{'class':['ck','ck-presence-list__dropdown-list-item'],'tabindex':-0x1,'role':'presentation','aria-label':_0x433513['name']},'children':[this['userView'],{'tag':'span','attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x433513['name']}]},{'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x433513['color']['getBackgroundColorClass']()],'aria-hidden':'true'}}]};_0x483a89&&(_0x31f569['tag']='button',_0x31f569['on']={'click':_0x44d16d['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x31f569);}['focus'](){this['element']['focus']();}}class PresenceInlineListItemView extends View{['userView'];['markerView'];constructor(_0x3b289a,_0x4d6e46,_0x1cd0fe){super(_0x3b289a);const _0x523ed8=this['bindTemplate'];this['set']('isFocusable',!0x1),this['set']('hasTooltip',!0x0),this['set']('tooltipPosition',''),this['userView']=new UserView(_0x3b289a,_0x4d6e46),this['markerView']=new MarkerView(_0x3b289a,_0x4d6e46);const _0x20e967=new LabelView(_0x3b289a);_0x20e967['template']['tag']='span',_0x20e967['text']=_0x4d6e46['name'];const _0x17a24e={'tag':'div','attributes':{'class':['ck','ck-presence-list__list-item'],'role':'listitem','tabindex':_0x523ed8['to']('isFocusable',_0x86b11e=>!!_0x86b11e&&0x0),'aria-labelledby':_0x20e967['id'],'data-cke-tooltip-text':this['userView']['name'],'data-cke-tooltip-position':_0x523ed8['to']('tooltipPosition'),'data-cke-tooltip-disabled':_0x523ed8['to']('hasTooltip',_0x3b80a0=>!_0x3b80a0),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this['userView'],this['markerView'],_0x20e967]};_0x1cd0fe&&(_0x17a24e['tag']='button',_0x17a24e['on']={'click':_0x523ed8['to'](()=>this['fire']('execute'))}),this['setTemplate'](_0x17a24e);}}class MarkerView extends View{constructor(_0x30df08,_0x24d647){super(_0x30df08),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-presence-list__marker',_0x24d647['color']['getBackgroundColorClass']()],'aria-hidden':'true'}});}}const defaultPresenceListConfig={'collapseAt':0x6,'displayMe':!0x0};class PresenceListUI extends ContextPlugin{['currentDisplayedUsers'];['balloonPanelView'];['view'];['presenceDropdownView'];['_bodyCollection']=null;static get['pluginName'](){return'PresenceListUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6a41d8){super(_0x6a41d8),this['context']['config']['define']('presenceList',defaultPresenceListConfig);const _0x296de4=_0x6a41d8['config']['get']('presenceList.collapseAt');if('number'!=typeof _0x296de4)throw new CKEditorError('presencelist-collapseat-invalid-format',this);if(_0x296de4<0x1)throw new CKEditorError('presencelist-collapseat-invalid-format',this);this['_allConnectedUsers']=this['context']['plugins']['get'](Sessions)['allConnectedUsers'],this['set']('usersCount',0x0),this['currentDisplayedUsers']=new Collection(),this['balloonPanelView']=new BalloonPanelView(),this['balloonPanelView']['class']='ck\x20ck-presence-list__balloon',this['view']=this['_createView'](),this['presenceDropdownView']=void 0x0;}static get['requires'](){return[Sessions];}['init'](){for(const _0x21125e of this['_allConnectedUsers'])this['_handleUserAdd'](_0x21125e);this['listenTo'](this['_allConnectedUsers'],'add',(_0x4d332a,_0x7a1191)=>{this['_handleUserAdd'](_0x7a1191);}),this['listenTo'](this['_allConnectedUsers'],'remove',(_0x326fb6,_0x30b9a2)=>{this['_handleUserRemove'](_0x30b9a2);});}['_createView'](){const _0x3a84c3=this['context'],_0x5b92d6=new PresenceListView(this['context']['locale'],this['context']['config']['get']('presenceList.collapseAt')),_0x36496c=this['balloonPanelView'];if(!isElement$2(_0x3a84c3['config']['get']('presenceList.container')))throw new CKEditorError('presencelist-missing-container',this);return _0x5b92d6['counterView']['bind']('usersCount')['to'](this),_0x5b92d6['bind']('isCollapsed')['to'](this,'usersCount',_0x38cd3b=>{const {collapseAt:_0xb00c12}=_0x3a84c3['config']['get']('presenceList'),_0x2ef5f3=_0x38cd3b>=_0xb00c12;if(_0x2ef5f3&&!_0x5b92d6['inlineListView']['items']['find'](_0x247f8b=>_0x247f8b instanceof PresenceCounterView)){const _0x4fcccc=this['context']['config']['get']('presenceList.collapseAt')-0x1;this['currentDisplayedUsers']['length']==_0x4fcccc&&this['currentDisplayedUsers']['length']>0x1&&this['currentDisplayedUsers']['remove'](this['currentDisplayedUsers']['length']-0x1),_0x5b92d6['inlineListView']['items']['add'](_0x5b92d6['counterView']);}return _0x2ef5f3||this['hideDropdown'](),_0x2ef5f3;}),_0x5b92d6['inlineListView']['items']['bindTo'](this['currentDisplayedUsers'])['using'](_0x53cb3b=>{const _0xa466cd=_0x3a84c3['config']['get']('presenceList'),_0x451da5=new PresenceInlineListItemView(_0x3a84c3['locale'],_0x53cb3b,!!_0xa466cd['onClick']);return _0x451da5['bind']('hasTooltip')['to'](_0x5b92d6,'isCollapsed',_0x4cdf05=>!_0x4cdf05),_0x451da5['bind']('isFocusable')['to'](_0x5b92d6,'isCollapsed',_0x14c262=>!_0x14c262),_0xa466cd['onClick']&&this['listenTo'](_0x451da5,'execute',()=>{this['view']['isCollapsed']||_0xa466cd['onClick'](_0x53cb3b,_0x451da5['element']);}),_0x451da5;}),this['listenTo'](_0x5b92d6['inlineListView'],'presencelist:show',()=>{this['view']['isCollapsed']&&this['showDropdown']();}),this['listenTo'](_0x5b92d6['inlineListView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();}),_0x5b92d6['inlineListView']['keystrokes']['set']('Enter',(_0xc41943,_0x363f6d)=>{this['view']['isCollapsed']&&(this['showDropdown'](),_0x363f6d());}),_0x5b92d6['render'](),_0x36496c['render'](),clickOutsideHandler({'emitter':_0x5b92d6,'activator':()=>_0x36496c['isVisible'],'contextElements':[_0x36496c['element'],_0x5b92d6['inlineListView']['element']],'callback':()=>this['hideDropdown']()}),_0x3a84c3['config']['get']('presenceList.container')['appendChild'](_0x5b92d6['element']),this['_bodyCollection']=new BodyCollection(this['context']['locale']),this['_bodyCollection']['attachToDom'](),this['_bodyCollection']['add'](this['balloonPanelView']),_0x5b92d6;}['_handleUserAdd'](_0x46cba8){if(!this['context']['config']['get']('presenceList.displayMe')&&_0x46cba8['isMe'])return;const _0x19209a=this['context']['config']['get']('presenceList.collapseAt')-0x1;for(this['usersCount']++;this['currentDisplayedUsers']['length']>=_0x19209a-(this['view']['isCollapsed']?0x1:0x0)&&this['currentDisplayedUsers']['length']>0x1;)this['currentDisplayedUsers']['remove'](0x1);const _0x2ebdb6=_0x46cba8['isMe']?0x0:this['currentDisplayedUsers']['length'];this['currentDisplayedUsers']['add'](_0x46cba8,_0x2ebdb6);}['_handleUserRemove'](_0x3ca794){this['usersCount']--;const {collapseAt:_0x5efedb}=this['context']['config']['get']('presenceList'),_0x3846b1=this['usersCount']>=_0x5efedb;if(this['currentDisplayedUsers']['get'](_0x3ca794['id']))this['currentDisplayedUsers']['remove'](_0x3ca794['id']);else{if(_0x3846b1&&this['currentDisplayedUsers']['length']+0x1===_0x5efedb-0x1)return;}if(this['currentDisplayedUsers']['length']+(_0x3846b1?0x1:0x0)<this['usersCount']){for(const _0x4ccb01 of Array['from'](this['_allConnectedUsers'])['reverse']())if(!this['currentDisplayedUsers']['get'](_0x4ccb01['id'])&&(this['currentDisplayedUsers']['add'](_0x4ccb01,Math['min'](this['currentDisplayedUsers']['length']-(_0x3846b1?0x1:0x0),0x1)),this['currentDisplayedUsers']['length']+(_0x3846b1?0x1:0x0)===_0x5efedb-0x1))return;}}['showDropdown'](){if(this['presenceDropdownView'])return;const _0x370b1e=this['context']['config']['get']('presenceList');this['presenceDropdownView']=new PresenceDropdownListView(this['context']['locale'],!!_0x370b1e['onClick']),this['view']['inlineListView']['isExpanded']=!0x0,this['listenTo'](this['presenceDropdownView'],'presencelist:hide',()=>{this['presenceDropdownView']&&this['hideDropdown']();});const {listWrapperView:_0x499c31}=this['presenceDropdownView'];_0x499c31['items']['bindTo'](this['_allConnectedUsers'])['using'](_0x321601=>{if(!_0x370b1e['displayMe']&&_0x321601['isMe'])return null;const _0x2faf27=new PresenceDropdownListItemView(this['context']['locale'],_0x321601,!!_0x370b1e['onClick']);return _0x370b1e['onClick']&&this['listenTo'](_0x2faf27,'execute',()=>{_0x370b1e['onClick'](_0x321601,_0x2faf27['element']);}),_0x2faf27;}),this['balloonPanelView']['content']['add'](this['presenceDropdownView']),this['balloonPanelView']['pin']({'target':this['view']['inlineListView']['element']}),_0x499c31['focus'](),_0x499c31['checkIfScrollable']();const _0x2f034c=(_0x1097ee,_0x2d23b4)=>{this['hideDropdown'](),this['view']['inlineListView']['focus'](),_0x2d23b4();};_0x499c31['keystrokes']['set']('Esc',_0x2f034c),_0x499c31['keystrokes']['set']('Shift+Tab',_0x2f034c),_0x499c31['keystrokes']['set']('Tab',(_0x5b5c8c,_0xb9fae8)=>{focusNextElement(this['view']['element']),this['hideDropdown'](),_0xb9fae8();}),_0x499c31['focusTracker']['add'](this['view']['element']),_0x499c31['focusTracker']['on']('change:isFocused',(_0x3cdca7,_0x3caf2e,_0x26a924)=>{_0x26a924||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);}}function focusNextElement(_0x462399){const _0x4f2b84=['a','button','input','select','textarea','[tabindex]','[contenteditable]']['map'](_0x3467ef=>_0x3467ef+':not([disabled]):not([tabindex=\x22-1\x22])')['join'](','),_0x40e209=[...document['body']['querySelectorAll'](_0x4f2b84)]['filter'](_0x90f119=>_0x90f119===document['activeElement']||_0x90f119['offsetWidth']+_0x90f119['offsetHeight']>0x0)['sort']((_0x263804,_0x3b8cf4)=>(_0x263804['tabIndex']||0x0)-(_0x3b8cf4['tabIndex']||0x0)),_0x22f5dc=_0x40e209['indexOf'](_0x462399),_0x5ae2da=_0x40e209[(_0x22f5dc+0x1)%_0x40e209['length']];_0x5ae2da&&_0x5ae2da['focus']();}class PresenceList extends ContextPlugin{static get['requires'](){return[Sessions,PresenceListUI];}static get['pluginName'](){return'PresenceList';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class Revision extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x569dd5){super(),this['id']=_0x569dd5['id']||uid(),this['creator']=_0x569dd5['creator']||null,this['authors']=_0x569dd5['authors']||[],this['diffData']=_0x569dd5['diffData']||null,this['toVersion']=_0x569dd5['toVersion']||0x0,this['fromVersion']=_0x569dd5['fromVersion']||0x0,this['set']('name',_0x569dd5['name']||''),this['set']('createdAt',_0x569dd5['createdAt']||new Date()),this['set']('attributes',_0x569dd5['attributes']||{});}['setName'](_0x460441){this['_update']({'name':_0x460441});}['setAttribute'](_0x50e6ce,_0x1f368f){const _0x440d71=cloneDeep(this['attributes']);set(_0x440d71,_0x50e6ce,_0x1f368f),this['_update']({'attributes':_0x440d71});}['removeAttribute'](_0x4a9cb9){const _0x706151=cloneDeep(this['attributes']);unset(_0x706151,_0x4a9cb9),this['_update']({'attributes':_0x706151});}['_update'](_0xe9072,_0x2eb5c3=!0x1){let _0x234321=!0x1;const _0xc42413={'id':this['id']},_0x3eeba4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x50d321 of _0x3eeba4){const _0x2112f8=_0xe9072[_0x50d321];void 0x0!==_0x2112f8&&_0x2112f8!==this[_0x50d321]&&(this[_0x50d321]=_0x2112f8,_0xc42413[_0x50d321]=_0x2112f8,_0x234321=!0x0);}_0x234321&&(_0xc42413['authors']&&(_0xc42413['authorsIds']=_0xc42413['authors']['map'](_0x3183c8=>_0x3183c8['id']),delete _0xc42413['authors']),this['fire']('_update',_0xc42413,_0x2eb5c3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x76b5be=>_0x76b5be['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class RevisionsRepository extends Plugin{['_revisions'];static get['requires'](){return[Users];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x299a08){super(_0x299a08),this['_revisions']=new Collection();}['afterInit'](){checkLicense$5(this);}['createRevision'](_0x2ac776){const _0x593851=this['editor']['plugins']['get']('Users');return new Revision({'id':_0x2ac776['id'],'name':_0x2ac776['name'],'creator':_0x2ac776['creatorId']?_0x593851['getUser'](_0x2ac776['creatorId']):null,'diffData':_0x2ac776['diffData']||_0x2ac776['data'],'authors':_0x2ac776['authorsIds']['map'](_0x1594da=>_0x593851['getUser'](_0x1594da)),'createdAt':new Date(_0x2ac776['createdAt']),'attributes':_0x2ac776['attributes'],'fromVersion':_0x2ac776['fromVersion'],'toVersion':_0x2ac776['toVersion']});}['addRevision'](_0x2251cb,_0x10cec8=0x0){this['_revisions']['add'](_0x2251cb,_0x10cec8);}['getRevision'](_0x1313b5){return this['_revisions']['get'](_0x1313b5);}['getRevisions'](_0x1a6a2c={'toJSON':!0x1}){const _0x4b1d00=Array['from'](this['_revisions']);return _0x4b1d00['reverse'](),_0x1a6a2c['toJSON']?_0x4b1d00['map'](_0x455b59=>_0x455b59['toJSON']()):_0x4b1d00;}['getIndex'](_0x5b2745){return this['_revisions']['getIndex'](_0x5b2745);}['getEarlierVisibleRevision'](_0x15f32e){const [,_0x3e1091]=this['getRevisionsIterator'](_0x15f32e,{'direction':'earlier'});return _0x3e1091;}['getLaterVisibleRevision'](_0x43c036){const [,_0x1c7cc3]=this['getRevisionsIterator'](_0x43c036,{'direction':'later'});return _0x1c7cc3;}['getRevisionsInDiff'](_0x520b9e){const _0x2eb5c9=[];for(const _0x18194c of this['getRevisionsIterator'](_0x520b9e['newRevisionId']))if(_0x2eb5c9['push'](_0x18194c),_0x18194c['id']===_0x520b9e['oldRevisionId'])break;return _0x2eb5c9;}*['getRevisionsIterator'](_0x3bf9dc,{direction:_0x538e7c='earlier',filter:_0x3051d0=()=>!0x0}={}){const _0xada1a3='earlier'===_0x538e7c?0x1:-0x1;let _0x452f84=this['_revisions']['get'](_0x3bf9dc),_0xc85b50=this['getIndex'](_0x452f84);for(yield _0x452f84;_0x452f84;){if(_0xc85b50+=_0xada1a3,_0x452f84=this['getRevision'](_0xc85b50),!_0x452f84)return;_0x3051d0(_0x452f84)&&(yield _0x452f84);}}}async function checkLicense$5(_0x32d860){const _0x47c378=_0x5b268f([0x76,0x73,0x6d,0x4c,0x34,0x54,0x50,0x70,0x75,0x52,0x35,0x33,0x4d,0x6c,0x71,0x53,0x6a,0x32,0x56,0x58,0x77,0x48,0x39,0x6f,0x45,0x41,0x4e,0x38,0x46,0x78,0x4a,0x74,0x47,0x55,0x4f,0x64,0x62,0x44,0x43,0x5a,0x30,0x31,0x69,0x68,0x79,0x66,0x6b,0x42,0x51,0x59,0x36,0x61,0x63,0x67,0x7a,0x37,0x72,0x49,0x65,0x57,0x4b,0x6e]),_0x4e0531=0xeb829,_0x3e675a=window[_0x5b268f([0x44,0x61,0x74,0x65])][_0x5b268f([0x6e,0x6f,0x77])](),_0x358d9a=_0x32d860[_0x5b268f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f4624=new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac280=>{_0x358d9a[_0x5b268f([0x6f,0x6e,0x63,0x65])](_0x5b268f([0x72,0x65,0x61,0x64,0x79]),_0x5ac280);}),_0x3c28c0={[_0x5b268f([0x6b,0x74,0x79])]:_0x5b268f([0x45,0x43]),[_0x5b268f([0x75,0x73,0x65])]:_0x5b268f([0x73,0x69,0x67]),[_0x5b268f([0x63,0x72,0x76])]:_0x5b268f([0x50,0x2d,0x32,0x35,0x36]),[_0x5b268f([0x78])]:_0x5b268f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5b268f([0x79])]:_0x5b268f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5b268f([0x61,0x6c,0x67])]:_0x5b268f([0x45,0x53,0x32,0x35,0x36])},_0x162f3b=_0x358d9a[_0x5b268f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b268f([0x67,0x65,0x74])](_0x5b268f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3e536b=await(async function(){let _0x1b7eb2,_0x446ffb=null,_0x270a1e=null;try{if(_0x162f3b==_0x5b268f([0x47,0x50,0x4c]))return _0x5b268f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b7eb2=(function(){const _0x333532=_0x162f3b[_0x5b268f([0x73,0x70,0x6c,0x69,0x74])](_0x5b268f([0x2e]));if(0x3!=_0x333532[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x2fb634=_0x333532[0x1];return _0x59c705(_0x2fb634);function _0x59c705(_0x17b19d){const _0x111c61=_0x447202(_0x17b19d);return _0x111c61&&_0xd1a632()?_0x111c61:null;function _0xd1a632(){const _0x29284b=_0x111c61[_0x5b268f([0x6a,0x74,0x69])],_0x4cc1c8=window[_0x5b268f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29284b[_0x5b268f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29284b[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fd305={..._0x111c61,[_0x5b268f([0x6a,0x74,0x69])]:_0x29284b[_0x5b268f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x29284b[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fd305[_0x5b268f([0x76,0x63])],_0x49dcfd(_0x2fd305)==_0x4cc1c8;}}}()),!_0x1b7eb2)return _0x5b268f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x1b7eb2[_0x5b268f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x270a1e=function(_0x5a6ca7,_0x3a3f42){return new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdbebeb=>{if(_0x2a71f5())return _0xdbebeb(_0x5b268f([0x56,0x61,0x6c,0x69,0x64]));_0x38e7f3(),_0x358d9a[_0x5b268f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b268f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4498f2=!0x1;const _0x1f78a9=uid();function _0x20c004(_0x2d59f8){return!!_0x2d59f8&&(typeof _0x2d59f8===_0x5b268f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d59f8===_0x5b268f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d59f8[_0x5b268f([0x74,0x68,0x65,0x6e])]===_0x5b268f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d59f8[_0x5b268f([0x63,0x61,0x74,0x63,0x68])]===_0x5b268f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x228d21(_0x2a084f){_0xf5ae69(_0x2a084f)[_0x5b268f([0x74,0x68,0x65,0x6e])](_0x4cfd83=>{if(!_0x4cfd83||_0x4cfd83[_0x5b268f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b268f([0x6f,0x6b]))return _0x5b268f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46d489(_0x49dcfd(_0x1f78a9+_0x3a3f42))!=_0x4cfd83[_0x5b268f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b268f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b268f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b268f([0x74,0x68,0x65,0x6e])](_0x4d4084=>(_0x23c09b(),_0x4d4084),()=>{const _0x868271=_0x24acd2();return null==_0x868271?(_0x23c09b(),_0x5b268f([0x56,0x61,0x6c,0x69,0x64])):_0x5b268f(_0x3e675a-_0x868271>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b268f([0x74,0x68,0x65,0x6e])](_0xdbebeb)[_0x5b268f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdbebeb(_0x5b268f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f6621=0x36ee80;function _0x23c09b(){const _0x3c8de8=_0x5b268f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46d489(_0x49dcfd(_0x5a6ca7)),_0x584a02=_0x60e74f(_0x46d489(window[_0x5b268f([0x4d,0x61,0x74,0x68])][_0x5b268f([0x63,0x65,0x69,0x6c])](_0x3e675a/_0x1f6621)));window[_0x5b268f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b268f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c8de8,_0x584a02);}function _0x24acd2(){const _0x527e1f=_0x5b268f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46d489(_0x49dcfd(_0x5a6ca7)),_0x134afc=window[_0x5b268f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b268f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x527e1f);return _0x134afc?window[_0x5b268f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60e74f(_0x134afc),0x10)*_0x1f6621:null;}function _0xf5ae69(_0x13df19){return new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x214669,_0x475c85)=>{_0x13df19[_0x5b268f([0x74,0x68,0x65,0x6e])](_0x214669,_0x475c85),window[_0x5b268f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x475c85,0x1d4c0);});}}_0x358d9a[_0x5b268f([0x6f,0x6e])](_0x5b268f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f1f48,_0x3c2757)=>{if(_0x3c2757[0x0]!=_0x5a6ca7)return _0xdbebeb(_0x5b268f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c2757[0x1]={..._0x3c2757[0x1],[_0x5b268f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f78a9};},{[_0x5b268f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b268f([0x68,0x69,0x67,0x68])}),_0x358d9a[_0x5b268f([0x6f,0x6e])](_0x5b268f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a7954=>{_0x20c004(_0x1a7954[_0x5b268f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4498f2=!0x0,_0x228d21(_0x1a7954[_0x5b268f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b268f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b268f([0x6c,0x6f,0x77])}),_0x4f4624[_0x5b268f([0x74,0x68,0x65,0x6e])](()=>{_0x4498f2||_0xdbebeb(_0x5b268f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a71f5(){return _0x358d9a[_0x5b268f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b268f([0x76,0x69,0x65,0x77])][_0x5b268f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b268f([0x61,0x75,0x74,0x6f]);}function _0x38e7f3(){_0x358d9a[_0x5b268f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b268f([0x76,0x69,0x65,0x77])][_0x5b268f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b268f([0x61,0x75,0x74,0x6f]);}}(_0x1b7eb2[_0x5b268f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b7eb2[_0x5b268f([0x6a,0x74,0x69])]));const _0x2f5d72=await(async function(){let _0x48d950=!0x0;try{const _0x479b9c=_0x162f3b[_0x5b268f([0x73,0x70,0x6c,0x69,0x74])](_0x5b268f([0x2e])),[_0x29ed82,_0x5a815a,_0x7d3781]=_0x479b9c;return _0x234bec(_0x29ed82),await _0x5b88a0(_0x29ed82,_0x5a815a,_0x7d3781),_0x48d950;}catch{return!0x1;}function _0x234bec(_0x34421c){const _0x7a718f=_0x447202(_0x34421c);_0x7a718f&&_0x7a718f[_0x5b268f([0x61,0x6c,0x67])]==_0x5b268f([0x45,0x53,0x32,0x35,0x36])||(_0x48d950=!0x1);}async function _0x5b88a0(_0xc2dfdf,_0x368338,_0x2e8721){const _0x114108=window[_0x5b268f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b268f([0x66,0x72,0x6f,0x6d])](_0xa9311e(_0x2e8721),_0x54e09f=>_0x54e09f[_0x5b268f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x525c40=new window[(_0x5b268f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b268f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc2dfdf+_0x5b268f([0x2e])+_0x368338),_0x39c4ac=window[_0x5b268f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b268f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x39c4ac)return;const _0x44f828=await _0x39c4ac[_0x5b268f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b268f([0x6a,0x77,0x6b]),_0x3c28c0,{[_0x5b268f([0x6e,0x61,0x6d,0x65])]:_0x5b268f([0x45,0x43,0x44,0x53,0x41]),[_0x5b268f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b268f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b268f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x39c4ac[_0x5b268f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b268f([0x6e,0x61,0x6d,0x65])]:_0x5b268f([0x45,0x43,0x44,0x53,0x41]),[_0x5b268f([0x68,0x61,0x73,0x68])]:{[_0x5b268f([0x6e,0x61,0x6d,0x65])]:_0x5b268f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44f828,_0x114108,_0x525c40)||(_0x48d950=!0x1);}}());return _0x2f5d72?(function(){const _0x4e543c=_0x1b7eb2[_0x5b268f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e543c)return!0x1;if(_0x4e543c[_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b268f([0x2a])))return!0x0;if(_0x4e543c[_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b268f([0x52,0x48])))return!0x0;if(_0x4e543c[_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b268f([0x52,0x52,0x48]))){if(_0xf81259(_0x5b268f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x42b126(_0x5b268f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b268f([0x73,0x74,0x61,0x74,0x65])]==_0x5b268f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0xf81259(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0xf81259(_0x5b268f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}return!0x1;}())?(function(){const _0x3373d7=[_0x5b268f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b268f([0x74,0x72,0x69,0x61,0x6c])][_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b7eb2[_0x5b268f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e675a/0x3e8:0x69e02680;return _0x1b7eb2[_0x5b268f([0x65,0x78,0x70])]<_0x3373d7;}())?_0x5b268f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x22e435=_0x1b7eb2[_0x5b268f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22e435||0x0==_0x22e435[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31abf6}=new URL(window[_0x5b268f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22e435[_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31abf6))return!0x0;const _0x34db9f=_0x31abf6[_0x5b268f([0x73,0x70,0x6c,0x69,0x74])](_0x5b268f([0x2e]));return _0x22e435[_0x5b268f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35198e=>_0x35198e[_0x5b268f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b268f([0x2a])))[_0x5b268f([0x6d,0x61,0x70])](_0x9a66ad=>_0x9a66ad[_0x5b268f([0x73,0x70,0x6c,0x69,0x74])](_0x5b268f([0x2e])))[_0x5b268f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x211b1d=>_0x211b1d[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34db9f[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b268f([0x6d,0x61,0x70])](_0x4eb42a=>Array(_0x34db9f[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4eb42a[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b268f([0x66,0x69,0x6c,0x6c])](_0x4eb42a[0x0]===_0x5b268f([0x2a])?_0x5b268f([0x2a]):'')[_0x5b268f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4eb42a))[_0x5b268f([0x73,0x6f,0x6d,0x65])](_0x3036da=>_0x34db9f[_0x5b268f([0x65,0x76,0x65,0x72,0x79])]((_0x44583f,_0x5c2d2c)=>_0x3036da[_0x5c2d2c]===_0x44583f||_0x3036da[_0x5c2d2c]===_0x5b268f([0x2a])));}())?(_0x1b7eb2[_0x5b268f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b268f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x446ffb=function(_0xd1888d){const _0x175954=new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x433f52=>setTimeout(_0x433f52,0x93ecc)),_0x28f806=_0x4f4624[_0x5b268f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2331c7=>{const _0x16923c=0x7,_0x4cdeed=_0x32d860[_0x5b268f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5567a2(){_0x4cdeed[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16923c&&_0x2331c7();}_0x5567a2(),_0x4cdeed[_0x5b268f([0x6f,0x6e])](_0x5b268f([0x61,0x64,0x64]),_0x5567a2);})),_0x514253=new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ec354=>{function _0x1f863c(){for(const _0x2684f7 in window)if(window[_0x5b268f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b268f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2684f7))&&window[_0x2684f7]==_0x4e0531)return _0x1ec354();_0x358d9a[_0x5b268f([0x73,0x74,0x61,0x74,0x65])]!=_0x5b268f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b268f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1f863c,0x1388);}_0xf81259(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1f863c();}),_0xa38daf=[_0x175954,_0x28f806,_0x514253];return window[_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b268f([0x72,0x61,0x63,0x65])](_0xa38daf)[_0x5b268f([0x74,0x68,0x65,0x6e])](()=>_0xd1888d);}(_0x5b268f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x446ffb&&_0x270a1e)return new window[(_0x5b268f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f8b2f,_0x527c64)=>{_0x446ffb[_0x5b268f([0x74,0x68,0x65,0x6e])](_0x1f8b2f,_0x527c64),_0x270a1e[_0x5b268f([0x74,0x68,0x65,0x6e])](_0x3f7e76=>{_0x3f7e76!=_0x5b268f([0x56,0x61,0x6c,0x69,0x64])&&_0x1f8b2f(_0x3f7e76);},_0x527c64);});return _0x446ffb||_0x270a1e||_0x5b268f([0x56,0x61,0x6c,0x69,0x64]);}())):_0x5b268f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b268f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b268f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b268f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x581e9b(){const _0x58496b=window[_0x5b268f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b268f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b268f([0x6e,0x6f,0x77])]())[_0x5b268f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b268f([0x2e]),'');let _0xcf76f7=_0x5b268f([0x76]);for(let _0x270d18=0x0;_0x270d18<_0x58496b[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x270d18+=0x2){let _0x47b559=window[_0x5b268f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58496b[_0x5b268f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270d18,_0x270d18+0x2));_0x47b559>=_0x47c378[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x47b559-=_0x47c378[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcf76f7+=_0x47c378[_0x47b559];}return _0xcf76f7;}function _0x447202(_0x3ae58b){return _0x3ae58b[_0x5b268f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b268f([0x65,0x79]))?JSON[_0x5b268f([0x70,0x61,0x72,0x73,0x65])](_0xa9311e(_0x3ae58b)):null;}function _0xa9311e(_0x306afa){return window[_0x5b268f([0x61,0x74,0x6f,0x62])](_0x306afa[_0x5b268f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b268f([0x2b]))[_0x5b268f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b268f([0x2f])));}function _0x49dcfd(_0x3d561f){let _0x1cc843=0x1505;function _0x1c56e9(_0x274234){for(let _0x3be1e1=0x0;_0x3be1e1<_0x274234[_0x5b268f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3be1e1++){const _0x4e3076=_0x274234[_0x5b268f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3be1e1);_0x1cc843=(_0x1cc843<<0x5)+_0x1cc843+_0x4e3076,_0x1cc843&=_0x1cc843;}}return function _0x219292(_0x263a23){Array[_0x5b268f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x263a23)?_0x263a23[_0x5b268f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x219292):_0x263a23&&typeof _0x263a23==_0x5b268f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b268f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x263a23)[_0x5b268f([0x73,0x6f,0x72,0x74])]()[_0x5b268f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x138eec,_0x1fe680])=>{_0x1c56e9(_0x138eec),_0x219292(_0x1fe680);}):_0x1c56e9(window[_0x5b268f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x263a23));}(_0x3d561f),_0x1cc843>>>0x0;}function _0x46d489(_0x5b66ff){return _0x5b66ff[_0x5b268f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b268f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b268f([0x30]));}function _0x60e74f(_0x551c0b){return _0x551c0b[_0x5b268f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b268f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b268f([0x6a,0x6f,0x69,0x6e])]('');}function _0xf81259(_0x11e256){return _0x358d9a[_0x5b268f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b268f([0x68,0x61,0x73])](_0x11e256);}function _0x42b126(_0x470ecd){return _0x358d9a[_0x5b268f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b268f([0x67,0x65,0x74])](_0x470ecd);}function _0x35a819(){}function _0x5b268f(_0xc1075){return _0xc1075['map'](_0xbdca0=>String['fromCharCode'](_0xbdca0))['join']('');}!function(_0x2da4f3){const _0x261667=_0x581e9b();_0x358d9a[_0x261667]=_0x5b268f([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2da4f3,_0x2da4f3[_0x5b268f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b268f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x581e9b()]=_0x4e0531),_0x2da4f3!=_0x5b268f([0x56,0x61,0x6c,0x69,0x64])&&(async function(){if(await _0x4f4624,_0xf81259(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x540d3c=_0x32d860[_0x5b268f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x47debb=_0x32d860[_0x5b268f([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x540d3c[_0x5b268f([0x69,0x64])]),_0x16d7fb=_0x42b126(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x16d7fb[_0x5b268f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x540d3c['id'],_0x47debb?_0x47debb['id']:null,!0x0),_0x16d7fb[_0x5b268f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b268f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x16d7fb[_0x5b268f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x16d7fb[_0x5b268f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x35a819,void(_0x16d7fb[_0x5b268f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x35a819);}if(_0xf81259(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17e971=_0x42b126(_0x5b268f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17e971[_0x5b268f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b268f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17e971[_0x5b268f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17e971[_0x5b268f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x35a819,_0x17e971[_0x5b268f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x35a819;}_0x358d9a[_0x5b268f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b268f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35a819,_0x358d9a[_0x5b268f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b268f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35a819,_0x358d9a[_0x5b268f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b268f([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3e536b);}class RevisionHistoryUtils extends Plugin{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[ViewContainerElement,'c'],[ViewAttributeElement,'a'],[ViewEmptyElement,'e'],[ViewRawElement,'r'],[ViewUIElement,'u']]);['_typeCharToViewClass']=new Map([['c',ViewContainerElement],['a',ViewAttributeElement],['e',ViewEmptyElement],['r',ViewRawElement],['u',ViewUIElement]]);async['loadRevisionData'](_0x128334,_0x5beb20){if(_0x128334['diffData']||!_0x5beb20)return;const _0x241ea1=this['editor']['config']['get']('collaboration.channelId'),_0x22b0de=await _0x5beb20['getRevision']({'channelId':_0x241ea1,'revisionId':_0x128334['id']});_0x128334['diffData']=_0x22b0de['diffData'];}['getRevisionDocumentData'](_0x5869a1){const _0x8d7ae2={};for(const _0x46b7c4 in _0x5869a1['diffData']){if(_0x5869a1['diffData'][_0x46b7c4]['attachChange']&&!_0x5869a1['diffData'][_0x46b7c4]['attachChange']['isAttached'])continue;const _0x525c01=this['_removeRevisionMarkers'](JSON['parse'](_0x5869a1['diffData'][_0x46b7c4]['insertions'])),_0x5c5ba5=this['editor']['editing']['view']['document'],_0x3d8828=new ViewDocumentFragment(_0x5c5ba5,_0x525c01['map'](_0x80939b=>this['_getViewFromDiffObj'](_0x80939b,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x8d7ae2[_0x46b7c4]=this['editor']['data']['processor']['toData'](_0x3d8828),this['editor']['data']['processor']['useFillerType']('default');}return _0x8d7ae2;}['getRevisionRootsAttributes'](_0x4640f0){const _0xd9e2ae={};for(const _0x48d6f6 in _0x4640f0['diffData'])_0x4640f0['diffData'][_0x48d6f6]['attachChange']&&!_0x4640f0['diffData'][_0x48d6f6]['attachChange']['isAttached']||(_0xd9e2ae[_0x48d6f6]=_0x4640f0['diffData'][_0x48d6f6]['attributesAfter']||{});return _0xd9e2ae;}['_getTypeCharForViewElement'](_0x1187ca){return this['_viewClassToTypeChar']['get'](_0x1187ca['constructor']);}['_getViewFromDiffObj'](_0x310f45,_0xc47a81){const _0x35caf9=this['editor']['editing']['view']['document'];if('string'==typeof _0x310f45)return new ViewText(_0x35caf9,_0x310f45);{let _0x4c7737,_0x36a240;_0x36a240='u'==_0x310f45['type']||'r'==_0x310f45['type']?[]:_0x310f45['children']['map'](_0x35b586=>this['_getViewFromDiffObj'](_0x35b586,_0xc47a81));const _0x25d9c5=this['_typeCharToViewClass']['get'](_0x310f45['type'])||ViewElement,_0x411df2=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4c7737=new _0x25d9c5(_0x35caf9,_0x310f45['name'],_0x310f45['attributes'],_0x36a240),'u'==_0x310f45['type']&&_0x310f45['children'][0x0]){const _0x49cd6c=_0x310f45['children'][0x0];if(_0x4c7737['render']=function(_0x542e6a){const _0x3f9a73=_0x542e6a['createElement']('div');return _0x3f9a73['innerHTML']=_0x49cd6c,_0x3f9a73['childNodes'][0x0];},_0xc47a81){const _0x42bf66=new ViewDocumentFragment(_0x35caf9);_0x42bf66['_appendChild'](_0x4c7737);const _0x51da22=Array['from'](_0x411df2['viewChildrenToDom'](_0x42bf66,{'bind':!0x1})),_0x3bc11e=_0x411df2['domDocument']['createElement']('div');_0x3bc11e['append'](..._0x51da22),_0x4c7737=Array['from'](_0x411df2['domChildrenToView'](_0x3bc11e))[0x0];}}else{if('r'==_0x310f45['type']&&_0x310f45['children'][0x0]){const _0x7c084b=_0x310f45['children'][0x0];if(_0x4c7737['render']=function(_0x39c42b){_0x39c42b['innerHTML']=_0x7c084b;},_0xc47a81){const _0x944181=new ViewDocumentFragment(_0x35caf9);_0x944181['_appendChild'](_0x4c7737);const _0x55b075=Array['from'](_0x411df2['viewChildrenToDom'](_0x944181,{'bind':!0x1})),_0x229730=_0x411df2['domDocument']['createElement']('div');_0x229730['append'](..._0x55b075);const _0x431790=Array['from'](_0x411df2['domChildrenToView'](_0x229730));_0x431790['length']>0x1?_0x4c7737['_appendChild'](_0x431790):_0x4c7737=_0x431790[0x0];}}}if(_0x310f45['customProperties']){for(const [_0x5d76d9,_0x28bc59]of _0x310f45['customProperties'])_0x4c7737['_setCustomProperty'](_0x5d76d9,_0x28bc59);}const _0x4b1bea=void 0x0===_0x310f45['fillerOffset']?null:_0x310f45['fillerOffset'];return null!==_0x4b1bea&&(_0x4c7737['getFillerOffset']=()=>_0x4b1bea),_0x4c7737;}}['_makeModelFromViewString'](_0x3796d2){const _0x33e0ac=JSON['parse'](_0x3796d2),_0xd6d27b=this['editor']['editing']['view']['document'],_0x394608=new ViewDocumentFragment(_0xd6d27b,_0x33e0ac['map'](_0x4dcdf5=>this['_getViewFromDiffObj'](_0x4dcdf5,!0x0)));return this['editor']['data']['toModel'](_0x394608);}['_removeRevisionMarkers'](_0x2cf213){return(_0x2cf213=_0x2cf213['filter'](_0x1a23ce=>!_0x1a23ce['name']||'revision-start'!==_0x1a23ce['name']&&'revision-end'!==_0x1a23ce['name']))['forEach'](_0x20833d=>{'string'!=typeof _0x20833d&&(_0x20833d['children']=this['_removeRevisionMarkers'](_0x20833d['children']),_0x20833d['attributes']=_0x20833d['attributes']['filter'](_0x27e86d=>!_0x27e86d[0x0]['startsWith']('data-revision-')));}),_0x2cf213;}}function getTranslation$5(_0x30b4f5,_0x553328,_0x4f1da4){const t=_0x30b4f5['t'];switch(_0x553328){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'},_0x4f1da4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4f1da4);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'';}}class RevisionTracker extends Plugin{['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[Users,RevisionsRepository,RevisionHistoryUtils,PendingActions];}constructor(_0x176580){super(_0x176580),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new RevisionDataBuilder(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x41dd61=uid();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x41dd61},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 _0x264796=this['repository']['getRevision'](0x0),_0x14f18d=_0x264796&&null===_0x264796['creator']?_0x264796:null;if(this['_continueCurrentRevision']=!!_0x14f18d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4e45f4=this['_source']['getCurrentRevisionId'](),_0x227800=this['repository']['getRevision'](_0x4e45f4);if(_0x227800)this['_startingVersion']=_0x227800['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x183da7=this['_source']['history']['_operations']['find'](_0x3f2c9b=>!_0x3f2c9b['_isInit']),_0x12b087=_0x183da7?_0x183da7['baseVersion']:this['_source']['history']['version'];_0x264796?(_0x264796['toVersion']<_0x12b087&&_0x264796['_update']({'toVersion':_0x12b087}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x14f18d['id'],this['_startingVersion']=_0x14f18d['fromVersion']):(this['_startingVersion']=_0x264796['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x12b087,this['_continueCurrentRevision']=!0x1);}}else _0x14f18d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x14f18d['toVersion'],this['editor']['model']['document']['history']['version']),_0x14f18d['fromVersion']===_0x14f18d['toVersion']?(0x0!==_0x14f18d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x14f18d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x14f18d['id'],this['_startingVersion']=_0x14f18d['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',_0x2fb5ef=>!_0x2fb5ef),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43a77a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a02a9;for(const _0x19d9ee in _0x43a77a){const _0x23939f=_0x19d9ee,_0x27a152=_0x43a77a[_0x23939f];if('revisionHistoryLicenseKeyValid'==_0x27a152||'revisionHistoryLicenseKeyInvalid'==_0x27a152||'revisionHistoryLicenseKeyExpired'==_0x27a152||'revisionHistoryLicenseKeyDomainLimit'==_0x27a152||'revisionHistoryLicenseKeyNotAllowed'==_0x27a152||'revisionHistoryLicenseKeyEvaluationLimit'==_0x27a152||'revisionHistoryLicenseKeyUsageLimit'==_0x27a152){delete _0x43a77a[_0x23939f],_0x4a02a9=_0x27a152,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4a02a9&&_0x43a77a['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4a02a9&&_0x43a77a['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4a02a9&&_0x43a77a['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4a02a9&&_0x43a77a['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4a02a9&&_0x43a77a['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4a02a9&&_0x43a77a['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3a4341=this['repository']['getRevision'](0x0),_0x1d19c1=await this['getRevisionDocumentData'](_0x3a4341),_0x5d3745=await this['getRevisionRootsAttributes'](_0x3a4341);this['_replaceEditorDataWithRevisionData'](_0x1d19c1,_0x5d3745);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x37fd2d){this['_source']=_0x37fd2d;}async['update'](){const _0x3975b1=await this['_source']['getLatestVersion']();if(_0x3975b1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4978e5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3975b1});_0x4978e5['authors']=_0x4978e5['authorsIds']['map'](_0x2f8cd3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f8cd3)),this['currentRevision']['_update'](_0x4978e5);}}async['saveRevision'](_0x108991={},_0x330cec=null){const _0x4efd86=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x330cec>this['currentRevision']['toVersion']&&(_0x330cec=null),null===_0x330cec&&(_0x330cec=await this['_source']['getLatestVersion']());const _0x1e4b14=this['_getFromVersion'](_0x330cec),_0x1f764a=this['buildRevisionData']({'from':_0x1e4b14,'to':_0x330cec});if(this['currentRevision']['toVersion']<_0x330cec){const _0x5b74c1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x330cec,'to':_0x330cec});_0x5b74c1['authors']=[],_0x5b74c1['authorsIds']=[],_0x5b74c1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5b74c1,!0x0),delete _0x5b74c1['authors'],_0x4efd86['push'](_0x5b74c1);}_0x108991['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x108991['name']=_0x108991['name']||null,_0x108991['id']=_0x108991['id']||uid(),_0x108991={..._0x108991,..._0x1f764a};const _0x309b4f=this['addRevisionData'](_0x108991);_0x4efd86['push'](_0x108991);const _0x1cddca=this['repository']['getIndex'](_0x309b4f);if(0x0!==_0x1cddca){const _0x435af2=this['repository']['getRevision'](_0x1cddca-0x1);if(_0x435af2['fromVersion']!==_0x330cec){const _0x261aae=this['_revisionDataBuilder']['getData'](_0x330cec,_0x435af2['toVersion']),_0x104e1a={'id':_0x435af2['id'],'diffData':_0x261aae['diffData'],'authorsIds':_0x261aae['authorsIds'],'authors':_0x261aae['authorsIds']['map'](_0x15ddbd=>this['editor']['plugins']['get']('Users')['getUser'](_0x15ddbd)),'fromVersion':_0x330cec};_0x435af2===this['currentRevision']&&(_0x104e1a['createdAt']=new Date(_0x108991['createdAt']['getTime']()+0xa)),_0x435af2['_update'](_0x104e1a,!0x0),delete _0x104e1a['authors'],_0x4efd86['push'](_0x104e1a);}}if(this['adapter']){for(const _0x2f6518 of _0x4efd86)this['_bufferUpdate'](_0x2f6518['id'],_0x2f6518,!0x0);this['sendBufferedUpdates']();}return _0x309b4f;}['addRevisionData'](_0x5479e1){const _0x225bfe=this['repository']['createRevision'](_0x5479e1);return this['adapter']&&_0x225bfe['on']('_update',(_0xd789d2,_0x13c5ca,_0x27bd3b)=>{_0x27bd3b||(this['_bufferUpdate'](_0x13c5ca['id'],_0x13c5ca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x225bfe,this['_findInsertionIndex'](_0x225bfe)),_0x225bfe;}async['getRevisionDocumentData'](_0x2197d6){return await this['_utils']['loadRevisionData'](_0x2197d6,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2197d6);}async['getRevisionRootsAttributes'](_0x5c3147){return await this['_utils']['loadRevisionData'](_0x5c3147,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5c3147);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x577a6e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5ba3b7=0x0;_0x5ba3b7<_0x577a6e['length'];_0x5ba3b7++){const _0x5b5055=_0x577a6e[_0x5ba3b7];let _0x46adf0=!0x1;for(const _0x5a2adb of Object['keys'](_0x5b5055))void 0x0===_0x5b5055[_0x5a2adb]?delete _0x5b5055[_0x5a2adb]:'id'!==_0x5a2adb&&(_0x46adf0=!0x0);_0x46adf0||(_0x577a6e[_0x5ba3b7]=null);}if(_0x577a6e=_0x577a6e['filter'](_0x19e55d=>null!==_0x19e55d),!_0x577a6e['length'])return;for(let _0xf1e842=0x0;_0xf1e842<_0x577a6e['length'];_0xf1e842++){const _0x4fc339=_0x577a6e[_0xf1e842];void 0x0!==_0x4fc339['fromVersion']&&void 0x0===_0x4fc339['toVersion']&&(_0x4fc339['toVersion']=this['repository']['getRevision'](_0x4fc339['id'])['toVersion']),void 0x0!==_0x4fc339['toVersion']&&void 0x0===_0x4fc339['fromVersion']&&(_0x4fc339['fromVersion']=this['repository']['getRevision'](_0x4fc339['id'])['fromVersion']);}const _0x392323=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x577a6e,_0x392323)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x256a19=>{if(_0x256a19){for(const _0x4c3f85 of _0x256a19)this['setRevisionData']({'id':_0x4c3f85['id'],'createdAt':_0x4c3f85['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x20f2e1=null,from:_0x29815d=null,to:_0x1ee7b8=null}){_0x29815d=null!==_0x29815d?_0x29815d:_0x20f2e1['fromVersion'],_0x1ee7b8=null!==_0x1ee7b8?_0x1ee7b8:_0x20f2e1['toVersion'];const _0x1d8086=this['_revisionDataBuilder']['getData'](_0x29815d,_0x1ee7b8),_0x57e00a={'diffData':_0x1d8086['diffData'],'authorsIds':_0x1d8086['authorsIds'],'fromVersion':_0x29815d,'toVersion':_0x1ee7b8};if(!_0x20f2e1||_0x1ee7b8!==_0x20f2e1['toVersion']){const _0x695b79=_0x1ee7b8-0x1,_0xbcacf7=this['_source']['history']['getOperation'](_0x695b79);_0x57e00a['createdAt']=_0xbcacf7&&_0xbcacf7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x29815d===this['_loadedStateData']['fromVersion']){for(const _0x7f968d of this['_loadedStateData']['authors'])_0x57e00a['authorsIds']['includes'](_0x7f968d['id'])||_0x57e00a['authorsIds']['push'](_0x7f968d['id']);}return _0x57e00a;}['_bufferUpdate'](_0x21af4a,_0x4e93cc,_0x47e6cb){if(this['_bufferedUpdates']['has'](_0x21af4a)){const _0xd2a8ad=this['_bufferedUpdates']['get'](_0x21af4a);_0x4e93cc=_0x47e6cb?{..._0xd2a8ad,..._0x4e93cc}:{..._0x4e93cc,..._0xd2a8ad};}this['_bufferedUpdates']['set'](_0x21af4a,_0x4e93cc);}['setRevisionData'](_0x526bf4){const _0x2453d3=this['repository']['getRevision'](_0x526bf4['id']);if(_0x526bf4['createdAt']&&(_0x526bf4['createdAt']=new Date(_0x526bf4['createdAt'])),_0x526bf4['authorsIds']){const _0x155f1a=this['editor']['plugins']['get']('Users');_0x526bf4['authors']=_0x526bf4['authorsIds']['map'](_0x39fef7=>_0x155f1a['getUser'](_0x39fef7));}_0x2453d3['_update'](_0x526bf4,!0x0);}['_createInitialRevision'](_0x5210c4){const _0x1f2982=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1f2982)this['_initialRevisionId']=_0x1f2982['id'];else{const _0x299c29=!this['editor']['model']['document']['roots']['find'](_0x59e594=>this['editor']['model']['hasContent'](_0x59e594)),_0x1c1480=this['editor']['plugins']['get']('Users')['me']['id'],_0x239bd9=getTranslation$5(this['editor']['locale'],_0x299c29?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5210c4,'to':_0x5210c4,'id':this['_initialRevisionId'],'name':_0x239bd9,'creatorId':_0x1c1480});}}['_createCurrentRevision'](_0x3977be){const _0x95cda6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x95cda6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3977be,'to':_0x3977be,'id':_0x95cda6,'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'](_0x30d545,_0x2dc58e){let _0x476bce=this['editor']['config']['get']('initialData'),_0x6de31f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x476bce){_0x476bce={};for(const _0x638e6 of this['editor']['model']['document']['getRootNames']())_0x476bce[_0x638e6]='';}if('string'==typeof _0x476bce&&(_0x476bce={'main':_0x476bce}),void 0x0===_0x6de31f){_0x6de31f={};for(const _0x3e0f89 of this['editor']['model']['document']['getRootNames']())_0x6de31f[_0x3e0f89]={};}let _0x54a183=!0x1;const _0x447c62=Object['keys'](_0x476bce),_0x36d2d9=Object['keys'](_0x30d545);for(const _0x47d8a3 of _0x447c62){if(_0x476bce[_0x47d8a3]!==_0x30d545[_0x47d8a3]&&''!==_0x476bce[_0x47d8a3]['trim']()){_0x54a183=!0x0;break;}if(!isEqual(_0x6de31f[_0x47d8a3],_0x2dc58e[_0x47d8a3])&&Object['keys'](_0x6de31f[_0x47d8a3])['length']>0x0){_0x54a183=!0x0;break;}}_0x54a183||(_0x54a183=_0x36d2d9['some'](_0x43b544=>!this['editor']['model']['document']['getRoot'](_0x43b544))),_0x54a183&&logWarning('editor-initial-data-replaced-with-revision-data',{'editorData':_0x476bce,'editorRootsAttributes':_0x6de31f,'revisionData':_0x30d545,'revisionRootsAttributes':_0x2dc58e}),this['editor']['config']['set']('initialData',_0x30d545),this['editor']['config']['set']('rootsAttributes',_0x2dc58e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c1610=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c1610['add'](getTranslation$5(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x26d36a){const _0x3329b6=this['repository']['getRevisions']();_0x3329b6['reverse']();let _0x196a3e=0x0;for(;_0x196a3e<_0x3329b6['length'];){const _0x1e39c7=_0x3329b6[_0x196a3e];if(_0x1e39c7===this['currentRevision']){_0x196a3e++;continue;}if(_0x1e39c7['id']===this['_initialRevisionId'])break;const _0x3daa43=_0x26d36a['toVersion']-_0x1e39c7['toVersion']||_0x26d36a['fromVersion']-_0x1e39c7['fromVersion'];if(_0x3daa43>0x0)break;if(_0x3daa43<0x0)_0x196a3e++;else{if(!_0x26d36a['creator']&&_0x1e39c7['creator'])break;if(_0x1e39c7['creator']||!_0x26d36a['creator']){if(_0x26d36a['createdAt']>_0x1e39c7['createdAt'])break;_0x196a3e++;}else _0x196a3e++;}}return _0x196a3e;}['_getFromVersion'](_0x5884dd){const _0x58f084=this['repository']['getRevisions']();_0x58f084['reverse'](),_0x58f084['shift']();const _0xeeeb85=_0x58f084['find'](_0x59c41d=>_0x59c41d['toVersion']<=_0x5884dd)['toVersion'];return _0xeeeb85<this['_startingVersion']?this['_startingVersion']:_0xeeeb85;}['_makeRevision']({name:_0x26611c,from:_0x11fb21,to:_0x345b58,creatorId:_0x4e5cff,id:_0x54d249}){const _0x10c5c3=this['buildRevisionData']({'from':_0x11fb21,'to':_0x345b58});_0x10c5c3['name']=_0x26611c,_0x10c5c3['creatorId']=_0x4e5cff,_0x10c5c3['id']=_0x54d249;const _0x5f2c44=this['addRevisionData'](_0x10c5c3);return this['adapter']&&this['_bufferUpdate'](_0x10c5c3['id'],_0x10c5c3,!0x0),_0x5f2c44;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class RevisionDataBuilder{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x43b12b){this['editor']=_0x43b12b,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'](_0x5a087e){this['source']=_0x5a087e;const _0x27ec41=new Map(),_0x48fd20=new Map(),_0x3cfd09=this['editor']['model']['document']['roots']['map'](_0x559f90=>_0x559f90['rootName']);for(const _0x6e0a4f of _0x3cfd09){const _0x525118=this['editor']['model']['document']['getRoot'](_0x6e0a4f),_0x1b66b5=_cloneRoot(_0x525118);_0x27ec41['set'](_0x6e0a4f,_0x1b66b5),_0x48fd20['set'](_0x6e0a4f,Object['fromEntries'](_0x525118['getAttributes']()));}const _0x1a550b=Array['from'](this['editor']['model']['markers'])['map'](_0x33c446=>[_0x33c446['name'],_0x33c446['getRange']()]),_0x528203=this['source']['version'];this['_saveMetaData'](_0x528203,_0x27ec41,_0x1a550b,_0x48fd20),this['_startingRevisionId']=this['_revisionId'];const _0x23daf0=new Map(),_0x357692=new Map();for(const _0x5971e1 of _0x3cfd09){const _0x52d27c=_emptyRoot(_0x5971e1);_0x23daf0['set'](_0x5971e1,_0x52d27c),_0x357692['set'](_0x5971e1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x23daf0,[],_0x357692);}['getData'](_0x2078a2,_0x3c9a6b){if(this['_lastFrom']===_0x2078a2&&this['_lastTo']<=_0x3c9a6b)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3c9a6b,!0x0);else{if(!this['_savedMetaData']['has'](_0x2078a2)){const _0x5a11d5=this['_getPreviousFrom'](_0x2078a2);this['_calculateMetaData'](_0x5a11d5,_0x2078a2,!0x1);}this['_calculateMetaData'](_0x2078a2,_0x3c9a6b,!0x0);}return this['_lastFrom']=_0x2078a2,this['_lastTo']=_0x3c9a6b,this['_getState']();}['loadState'](_0x270ce5){if(!this['_savedMetaData']['has'](_0x270ce5['fromVersion'])){const _0x1b4314=this['_getPreviousFrom'](_0x270ce5['fromVersion']);this['_calculateMetaData'](_0x1b4314,_0x270ce5['fromVersion'],!0x1);}this['_calculateMetaData'](_0x270ce5['fromVersion'],_0x270ce5['toVersion'],!0x1);const _0x229661=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x270ce5['fromVersion'],this['_lastTo']=_0x270ce5['toVersion'];for(const _0x8b9cc4 in _0x270ce5['diffData']){const _0x34e616=_0x270ce5['diffData'][_0x8b9cc4]['attachChange'],_0x479832=cloneDeep(_0x270ce5['diffData'][_0x8b9cc4]['attributesBefore'])||{},_0x5aba3d=_0x229661['_makeModelFromViewString'](_0x270ce5['diffData'][_0x8b9cc4]['deletions']);_0x5aba3d['rootName']=_0x8b9cc4,_0x5aba3d['_isAttached']=!_0x34e616||!_0x34e616['isAttached'],_0x5aba3d['isAttached']=()=>_0x5aba3d['_isAttached'],this['_baseRoots']['set'](_0x8b9cc4,_0x5aba3d),this['_baseRootsAttributes']['set'](_0x8b9cc4,_0x479832),_0x34e616&&this['_touchedRoots']['set'](_0x8b9cc4,_0x34e616);const _0x38099b=this['_makeIdsRoot'](_0x5aba3d);this['_baseIdsRoots']['set'](_0x8b9cc4,_0x38099b);for(const [_0x144607,_0x218095]of _0x5aba3d['markers']){if(!_0x144607['startsWith']('revision:'))continue;const _0x2bf532=_0x144607['split'](':')[0x2];for(const _0x3a8527 of _0x218095['getWalker']({'singleCharacters':!0x0})){const _0x222dd4=this['_getVidAttributeName'](_0x3a8527),_0x55552b='elementEnd'==_0x3a8527['type']?_0x3a8527['previousPosition']['path']['slice'](0x0,-0x1):_0x3a8527['previousPosition']['path'],_0x2bbc76=_0x38099b['getNodeByPath'](_0x55552b)['getAttribute'](_0x222dd4);this['_touched']['set'](_0x2bbc76,{'userId':_0x2bf532});}_0x5aba3d['markers']['delete'](_0x144607);}}this['_startingRevisionId']=this['_revisionId'];const _0x59e629=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x30398b=>!this['_touched']['has'](_0x30398b));let _0x5c5484=0x0;const _0x15f9f6=new Map();for(const _0x493876 in _0x270ce5['diffData']){const _0x22c101=_0x270ce5['diffData'][_0x493876]['attachChange'],_0x454cd3=cloneDeep(_0x270ce5['diffData'][_0x493876]['attributesAfter'])||{},_0x55c085=_0x229661['_makeModelFromViewString'](_0x270ce5['diffData'][_0x493876]['insertions']);_0x55c085['rootName']=_0x493876,_0x55c085['_isAttached']=!_0x22c101||_0x22c101['isAttached'],_0x55c085['isAttached']=()=>_0x55c085['_isAttached'],this['_diffRoots']['set'](_0x493876,_0x55c085),this['_diffRootsAttributes']['set'](_0x493876,_0x454cd3);const _0x30ac7e=this['_makeIdsRoot'](_0x55c085,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x493876,_0x30ac7e),_0x15f9f6['set'](_0x493876,_0x55c085['isAttached']()?_0x454cd3:{});for(const [_0x358877,_0x5724b7]of _0x55c085['markers']){if(!_0x358877['startsWith']('revision:'))continue;const _0x16c3a3=_0x358877['split'](':')[0x2];for(const _0x59978e of _0x5724b7['getWalker']({'singleCharacters':!0x0})){const _0x5a399a=this['_getVidAttributeName'](_0x59978e),_0x13da9f=this['_revisionId']++,_0x2e6cd9='elementEnd'==_0x59978e['type']?_0x59978e['previousPosition']['path']['slice'](0x0,-0x1):_0x59978e['previousPosition']['path'];_0x30ac7e['getNodeByPath'](_0x2e6cd9)['_setAttribute'](_0x5a399a,_0x13da9f),this['_touched']['set'](_0x13da9f,{'userId':_0x16c3a3});}_0x55c085['markers']['delete'](_0x358877);}for(const _0x5269f4 of this['editor']['model']['createRangeIn'](_0x55c085)['getWalker']({'singleCharacters':!0x0})){const _0x329e1c=this['_getVidAttributeName'](_0x5269f4),_0x1f536e='elementEnd'==_0x5269f4['type']?_0x5269f4['previousPosition']['path']['slice'](0x0,-0x1):_0x5269f4['previousPosition']['path'],_0x57949d=_0x30ac7e['getNodeByPath'](_0x1f536e);_0x57949d['getAttribute'](_0x329e1c)>0x0||_0x57949d['_setAttribute'](_0x329e1c,_0x59e629[_0x5c5484++]);}for(const [_0x24d8bf,_0x148175]of _0x55c085['markers'])_0x24d8bf['startsWith']('revision:')||this['_markers']['set'](_0x24d8bf,_0x148175);}const {roots:_0x4e2d97}=this['_savedMetaData']['get'](_0x270ce5['fromVersion']),{roots:_0x239bb0}=this['_savedMetaData']['get'](_0x270ce5['toVersion']),_0x2b6ea7=_cloneRoot(_0x4e2d97['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2b6ea7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2b6ea7,Number['NEGATIVE_INFINITY']));const _0x4d9658=_cloneRoot(_0x239bb0['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4d9658),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4d9658));const _0x1b9812=Array['from'](this['_diffRoots'])['map'](([_0x53f1af,_0x411691])=>[_0x53f1af,_cloneRoot(_0x411691)]);this['_saveMetaData'](this['_lastTo'],_0x1b9812,this['_markers'],_0x15f9f6);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x55913b,_0x5f4db1,_0x48b480,_0xd8198){const _0x583063=new Map(_0x5f4db1),_0x4ae8a9=new Map(cloneDeep(_0xd8198)),_0x3d1dbc=new Map();for(const [_0x531c06,_0x245427]of _0x48b480)_0x3d1dbc['set'](_0x531c06,{'start':_0x245427['start']['clone'](),'end':_0x245427['end']['clone'](),'rootName':_0x245427['root']['rootName']});this['_savedMetaData']['set'](_0x55913b,{'roots':_0x583063,'markers':_0x3d1dbc,'rootsAttributes':_0x4ae8a9});}['_removeMetaData'](_0x20e904){this['_savedMetaData']['delete'](_0x20e904);}['_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'](_0x55bc83,_0x352070=null){let _0x1771da=null;_0x55bc83['is']('documentFragment')||(_0x1771da=new ModelElement(_0x55bc83['name'],{'vid_start':null===_0x352070?this['_revisionId']++:_0x352070++}));const _0x1d3f34=[];for(const _0x1477db of _0x55bc83['getChildren']())if(_0x1477db['is']('element')){_0x1d3f34['push'](this['_makeIdsRoot'](_0x1477db,_0x352070));const _0x5b2868=_0x1d3f34[_0x1d3f34['length']-0x1];null!==_0x352070&&(_0x352070=_0x5b2868['is']('element','$text')?_0x5b2868['getAttribute']('vid')+0x1:_0x5b2868['getAttribute']('vid_end')+0x1);}else{for(let _0x6b4fbc=0x0;_0x6b4fbc<_0x1477db['offsetSize'];_0x6b4fbc++)_0x1d3f34['push'](new ModelElement('$text',{'vid':null===_0x352070?this['_revisionId']++:_0x352070++}));}if(_0x55bc83['is']('documentFragment')){const _0x1f6366=_emptyRoot(_0x55bc83['rootName']);return _0x1f6366['_insertChild'](0x0,_0x1d3f34),_0x1f6366;}return _0x1771da['_setAttribute']('vid_end',null===_0x352070?this['_revisionId']++:_0x352070++),_0x1771da['_insertChild'](0x0,_0x1d3f34),_0x1771da;}['_calculateMetaData'](_0x42d2ea,_0x16d4d5,_0x2e4d25){this['_reset']();const {roots:_0xc59dc2,markers:_0x294f66,rootsAttributes:_0x52af95}=this['_savedMetaData']['get'](_0x42d2ea);this['_baseRoots']=new Map(_0xc59dc2),this['_baseRootsAttributes']=new Map(cloneDeep(_0x52af95));for(const [_0x39132c,_0xd93e37]of this['_baseRoots'])if('$graveyard'!==_0x39132c&&(this['_diffRoots']['set'](_0x39132c,_cloneRoot(_0xd93e37)),this['_diffRootsAttributes']=new Map(cloneDeep(_0x52af95)),_0x2e4d25)){const _0x27c0a1=this['_revisionId'];this['_idsRoots']['set'](_0x39132c,this['_makeIdsRoot'](_0xd93e37)),this['_baseIdsRoots']['set'](_0x39132c,this['_makeIdsRoot'](_0xd93e37,_0x27c0a1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',_cloneRoot(this['_baseRoots']['get']('$graveyard'))),_0x2e4d25&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35b2e1,_0x5e4083]of _0x294f66){const _0x5292f8=this['_baseRoots']['get'](_0x5e4083['rootName']),_0x24ad85=this['_diffRoots']['get'](_0x5e4083['rootName']),_0x5b91af=new ModelRange(this['_fixPosition'](_0x5e4083['start'],_0x5292f8),this['_fixPosition'](_0x5e4083['end'],_0x5292f8)),_0x5daade=this['_fixRange'](_0x5b91af,_0x24ad85);_0x5292f8['markers']['set'](_0x35b2e1,_0x5b91af),this['_markers']['set'](_0x35b2e1,_0x5daade);}this['_applyOperations'](_0x42d2ea,_0x16d4d5,_0x2e4d25);}['_applyOperations'](_0x477176,_0x2824d0,_0x39b99a){for(const _0x203999 of this['source']['getOperations'](_0x477176,_0x2824d0))this['_handleOperation'](_0x203999,_0x39b99a);for(const _0x308a0f of this['_diffRoots']['values']())_0x308a0f['markers']['clear']();for(const [_0x5ef41f,_0x389220]of this['_markers']){this['_diffRoots']['get'](_0x389220['root']['rootName'])['markers']['set'](_0x5ef41f,_0x389220['clone']());}const _0x2af5ca=new Map(),_0x39d8a3=new Map();for(const [_0x448c57,_0x65a31e]of this['_diffRoots'])_0x2af5ca['set'](_0x448c57,_cloneRoot(_0x65a31e)),_0x39d8a3['set'](_0x448c57,this['_diffRootsAttributes']['get'](_0x448c57));this['_saveMetaData'](_0x2824d0,_0x2af5ca,this['_markers'],_0x39d8a3);}['_getPreviousFrom'](_0x2e1b42){const _0x24226f=Array['from'](this['_savedMetaData']['keys']());_0x24226f['sort']((_0x17cee7,_0x365684)=>_0x17cee7-_0x365684),_0x24226f['reverse']();for(const _0x493e9 of _0x24226f)if(_0x493e9<_0x2e1b42)return _0x493e9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x515db3,_0x571100){const _0x584634=Array['from'](_0x571100['markers'])['map'](([_0x4fc496,_0x3f1d71])=>[_0x4fc496,this['_fixRange'](_0x3f1d71,_0x515db3)]);_0x515db3['markers']=new Map(_0x584634);}['_transformMarkers'](_0x198f94){for(const _0x24af35 of this['_markers']['values']()){const _0x56a647=_0x24af35['getTransformedByOperation'](_0x198f94),_0x2b2e48=ModelRange['_createFromRanges'](_0x56a647);_0x24af35['start']=_0x2b2e48['start'],_0x24af35['end']=_0x2b2e48['end'];}}['_handleOperation'](_0xec5550,_0x571b51){if('addRoot'!=_0xec5550['type']&&'detachRoot'!=_0xec5550['type']){if('insert'==_0xec5550['type']){const _0xf75573=_0xec5550['position']['root']['rootName'];this['_diffRoots']['has'](_0xf75573)||(this['_diffRoots']['set'](_0xf75573,_emptyRoot(_0xf75573,!0x0)),this['_diffRootsAttributes']['set'](_0xf75573,{}),_0x571b51&&this['_idsRoots']['set'](_0xf75573,_emptyRoot(_0xf75573,!0x0)));}else{if('addRootAttribute'==_0xec5550['type']||'removeRootAttribute'==_0xec5550['type']||'changeRootAttribute'==_0xec5550['type'])return void this['_handleRootAttributeOperation'](_0xec5550);'marker'==_0xec5550['type']&&this['_handleMarkerOperation'](_0xec5550);}if('marker'!==_0xec5550['type']){const _0xefa69c=this['_cloneOperation'](_0xec5550,this['_diffRoots']);_0xefa69c['_execute'](),this['_transformMarkers'](_0xefa69c);}if(_0x571b51)switch(_0xec5550['type']){case'insert':this['_handleInsertOperation'](_0xec5550);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xec5550);break;case'merge':this['_handleMergeOperation'](_0xec5550);break;case'split':this['_handleSplitOperation'](_0xec5550);}}else this['_handleRootOperation'](_0xec5550,_0x571b51);}['_cloneOperation'](_0x45a925,_0x5dece3){const _0x1f9564=_0x45a925['clone']();return _0x1f9564['_authorId']=_0x45a925['_authorId'],this['_fixOperation'](_0x1f9564,_0x5dece3),_0x1f9564;}['_getBaseVids'](_0x48bf59){return _0x48bf59['map'](_0xa7c8b4=>{const _0xf8dda8=this['_getVidAttributeName'](_0xa7c8b4);return Number(_0xa7c8b4['item']['getAttribute'](_0xf8dda8));});}['_generateTape'](_0x3a263f,_0x470dc6){if(_0x3a263f['is']('element','$text'))_0x470dc6['push']({'item':_0x3a263f,'type':'text'});else{_0x3a263f['is']('element')&&_0x470dc6['push']({'item':_0x3a263f,'type':'elementStart'});for(const _0x2c01e6 of _0x3a263f['getChildren']())this['_generateTape'](_0x2c01e6,_0x470dc6);_0x3a263f['is']('element')&&_0x470dc6['push']({'item':_0x3a263f,'type':'elementEnd'});}return _0x470dc6;}['_getState'](){const _0x16cdf0=new Map(this['_touched']),_0x16be42=new Map(_0x16cdf0),_0x255ece=new Map(),_0x563ac3={'insertions':{},'deletions':{}},_0x250df4={'insertions':{},'deletions':{}},_0x986edb=new Map(),_0x25eae6=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x25eae6['delete']('$graveyard');for(const _0x1ed8fc of _0x25eae6){const _0x44c55b=this['_diffRoots']['get'](_0x1ed8fc)||_emptyRoot(_0x1ed8fc,!0x1),_0x36cb65=this['_baseRoots']['get'](_0x1ed8fc)||_emptyRoot(_0x1ed8fc,!0x1);_0x44c55b['isAttached']()||_0x36cb65['isAttached']()?(_0x563ac3['insertions'][_0x1ed8fc]=_cloneRoot(_0x44c55b),_0x563ac3['deletions'][_0x1ed8fc]=_cloneRoot(_0x36cb65),this['_copyMarkers'](_0x563ac3['deletions'][_0x1ed8fc],_0x36cb65),this['_copyMarkers'](_0x563ac3['insertions'][_0x1ed8fc],_0x44c55b),_0x250df4['insertions'][_0x1ed8fc]=this['_generateTape'](this['_idsRoots']['get'](_0x1ed8fc),[]),_0x250df4['deletions'][_0x1ed8fc]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1ed8fc)||_emptyRoot(_0x1ed8fc,!0x1),[])):_0x25eae6['delete'](_0x1ed8fc);}for(const _0x587165 of _0x25eae6){const _0x3cb619=_0x250df4['insertions'][_0x587165];for(const _0x55887b of _0x3cb619){const _0x4e09bf=this['_getVidAttributeName'](_0x55887b),_0x3e549d=_0x55887b['item']['getAttribute'](_0x4e09bf);_0x16be42['delete'](_0x3e549d),_0x3e549d>=this['_startingRevisionId']&&_0x255ece['set'](_0x3e549d,_0x16cdf0['get'](_0x3e549d));}}for(const _0xadacbc of _0x25eae6){const _0x12aece=_0x250df4['insertions'][_0xadacbc],_0x590dd4=this['_getBaseVids'](_0x250df4['deletions'][_0xadacbc]);let _0x3b3fa3=0x0;for(const _0x387682 of _0x12aece){const _0x134942=this['_getVidAttributeName'](_0x387682),_0x28b503=_0x387682['item']['getAttribute'](_0x134942);if(!_0x255ece['has'](_0x28b503)&&!_0x986edb['has'](_0x28b503)){if(_0x16be42['has'](_0x28b503))_0x3b3fa3++;else{if(_0x28b503!=_0x590dd4[_0x3b3fa3]){const _0x7f2eef=_0x16cdf0['get'](_0x28b503)||_0x16cdf0['get'](_0x590dd4[_0x3b3fa3]);for(;_0x28b503!=_0x590dd4[_0x3b3fa3];)_0x16be42['has'](_0x590dd4[_0x3b3fa3])||(_0x986edb['set'](_0x590dd4[_0x3b3fa3],_0x7f2eef),_0x16cdf0['set'](_0x590dd4[_0x3b3fa3],_0x7f2eef)),_0x3b3fa3++;}_0x3b3fa3++;}}}}for(const _0xbc7688 of _0x25eae6){const _0x1cbad8=_0x250df4['insertions'][_0xbc7688];for(const _0x2e4e1c of _0x1cbad8){const _0x13b418=this['_getVidAttributeName'](_0x2e4e1c),_0x2bc443=_0x2e4e1c['item']['getAttribute'](_0x13b418);if(_0x986edb['has'](_0x2bc443)){const _0x5369b7=_0x986edb['get'](_0x2bc443);_0x16be42['has'](_0x2bc443)||_0x16be42['set'](_0x2bc443,{..._0x5369b7}),_0x255ece['set'](_0x2bc443,{..._0x5369b7});}}}for(const _0x240153 of _0x16be42['keys']())_0x240153>=this['_startingRevisionId']&&_0x16be42['delete'](_0x240153);const _0x54f60b=new Map();for(const _0x20b320 of _0x25eae6){let _0x281513=_0x250df4['insertions'][_0x20b320];for(const _0x197ffd of _0x281513)if(_0x197ffd['item']['is']('element','tableCell')){const _0x40ceb0=this['_getVidAttributeName'](_0x197ffd),_0x3b8dd1=_0x197ffd['item']['getAttribute'](_0x40ceb0);if(_0x255ece['has'](_0x3b8dd1)){const _0x199877=_0x197ffd['item']['parent']['parent']['getAttribute']('vid_start'),_0x263ddc=_0x54f60b['get'](_0x199877)||new Set();_0x263ddc['add'](_0x255ece['get'](_0x3b8dd1)['userId']),_0x54f60b['set'](_0x199877,_0x263ddc);}}_0x281513=_0x250df4['deletions'][_0x20b320];for(const _0x34c62 of _0x281513)if(_0x34c62['item']['is']('element','tableCell')){const _0x1e6b91=this['_getVidAttributeName'](_0x34c62),_0xf67926=_0x34c62['item']['getAttribute'](_0x1e6b91);if(_0x16be42['has'](_0xf67926)){const _0x17c671=_0x34c62['item']['parent']['parent']['getAttribute']('vid_start'),_0x3010e9=_0x54f60b['get'](_0x17c671)||new Set();_0x3010e9['add'](_0x16be42['get'](_0xf67926)['userId']),_0x54f60b['set'](_0x17c671,_0x3010e9);}}for(const _0xdc3749 of _0x54f60b['keys']())(_0x255ece['has'](_0xdc3749)||_0x16be42['has'](_0xdc3749))&&_0x54f60b['delete'](_0xdc3749);}for(const _0xeedb4c of _0x25eae6){const _0x291874=_0x250df4['insertions'][_0xeedb4c];let _0x2a4fa6=null,_0x51e6e3=null;for(const _0x4f51ca of _0x291874){const _0x2e02bb=this['_getVidAttributeName'](_0x4f51ca),_0x37c7fc=_0x4f51ca['item']['getAttribute'](_0x2e02bb),_0x2c734c=_0x54f60b['get'](_0x37c7fc);_0x2c734c&&'elementStart'==_0x4f51ca['type']&&(_0x2a4fa6=Array['from'](_0x2c734c)[0x0],_0x51e6e3=_0x4f51ca['item']['getAttribute']('vid_end')),_0x2a4fa6&&(_0x16be42['set'](_0x37c7fc,{'userId':_0x2a4fa6}),_0x255ece['set'](_0x37c7fc,{'userId':_0x2a4fa6})),_0x37c7fc==_0x51e6e3&&(_0x2a4fa6=null,_0x51e6e3=null);}}const _0x17dbe2={},_0x4f0194=new Set();for(const _0x45113e of _0x25eae6){const _0x11c489=_0x563ac3['deletions'][_0x45113e],_0x306814=_0x563ac3['insertions'][_0x45113e];for(const {userId:_0x39b33b}of this['_touchedMarkers']['values']())null!==_0x39b33b&&_0x4f0194['add'](_0x39b33b);for(const {userId:_0x3ebf39}of this['_touchedRoots']['values']())null!==_0x3ebf39&&_0x4f0194['add'](_0x3ebf39);this['_markChanges'](_0x306814,_0x250df4['insertions'][_0x45113e],_0x255ece,'insertion',_0x4f0194),this['_markChanges'](_0x11c489,_0x250df4['deletions'][_0x45113e],_0x16be42,'deletion',_0x4f0194),_0x17dbe2[_0x45113e]={'insertions':this['_prepareViewToSave'](_0x306814),'deletions':this['_prepareViewToSave'](_0x11c489),'attachChange':this['_touchedRoots']['get'](_0x45113e)||null,'attributesBefore':cloneDeep(this['_baseRootsAttributes']['get'](_0x45113e))||{},'attributesAfter':cloneDeep(this['_diffRootsAttributes']['get'](_0x45113e))};}return{'diffData':_0x17dbe2,'authorsIds':Array['from'](_0x4f0194)};}['_processRootBeforeSave'](_0x14473a){for(const [,_0x263f67]of _0x14473a['markers']){const _0x2ffeb8=_0x263f67['start']['getAncestors']()['filter'](_0x133de5=>'tableCell'==_0x133de5['name']);for(const _0x5c78f9 of _0x2ffeb8)0x1==_0x5c78f9['childCount']&&_0x5c78f9['getChild'](0x0)['is']('element','paragraph')&&_0x5c78f9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4a5e62){this['_processRootBeforeSave'](_0x4a5e62);const _0x5ddcac=this['editor']['data']['toView'](_0x4a5e62,{}),_0x29a308=Array['from'](_0x5ddcac['getChildren']())['map'](_0x391eaa=>this['_getViewJson'](_0x391eaa));return JSON['stringify'](_0x29a308);}['_getViewJson'](_0x35cc68){if(_0x35cc68['is']('$text'))return _0x35cc68['data'];{const _0x4e372a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x189119=_0x35cc68,_0xdac5b4=this['editor']['data']['htmlProcessor']['domConverter'],_0x3dd9cf={'type':_0x4e372a['_getTypeCharForViewElement'](_0x189119),'name':_0x189119['name'],'attributes':Array['from'](_0x189119['getAttributes']()),'children':Array['from'](_0x189119['getChildren']())['map'](_0x2f2b05=>this['_getViewJson'](_0x2f2b05))};if(_0x35cc68['is']('uiElement')&&'$comment'!=_0x35cc68['name']){const _0x2dc2b6=_0x35cc68['render'](_0xdac5b4['domDocument'],_0xdac5b4);_0x3dd9cf['children']['push'](_0x2dc2b6['outerHTML']);}else{if(_0x35cc68['is']('rawElement')){const _0x357228=_0xdac5b4['domDocument']['createElement'](_0x189119['name']);_0x35cc68['render'](_0x357228,_0xdac5b4),_0x3dd9cf['children']['push'](_0x357228['innerHTML']);}}const _0x241751=Array['from'](_0x189119['getCustomProperties']());_0x241751['length']>0x0&&(_0x3dd9cf['customProperties']=_0x241751);const _0x18ef66=_0x189119['getFillerOffset']();return null!==_0x18ef66&&(_0x3dd9cf['fillerOffset']=_0x18ef66),_0x3dd9cf;}}['_markChanges'](_0x54e85a,_0xff508d,_0x42e584,_0x292d62,_0x285f5d){let _0x3276fb=null,_0x4779ea=null,_0xfc56d7=0x0;const _0x3c6a8f=this['editor']['model'];for(let _0x3506bb=0x0;_0x3506bb<_0xff508d['length'];_0x3506bb++){const _0x2c94c7=this['_getVidAttributeName'](_0xff508d[_0x3506bb]),_0x4b5595=_0xff508d[_0x3506bb]['item']['getAttribute'](_0x2c94c7),_0x4dd8b0=_0x42e584['get'](_0x4b5595),_0x2edf15=_0x3506bb==_0xff508d['length']-0x1;(!_0x3276fb&&_0x4dd8b0&&(_0x3276fb=_0x4dd8b0,_0x4779ea=_0xff508d[_0x3506bb]),_0x3276fb&&(!_0x4dd8b0||_0x4dd8b0['userId']!=_0x3276fb['userId']))&&(_0x2ceb52(_0x4dd8b0,_getPosBefore(_0x4779ea,_0x54e85a,_0x3c6a8f),_getPosBefore(_0xff508d[_0x3506bb],_0x54e85a,_0x3c6a8f)),_0x3276fb=_0x4dd8b0||null,_0x4779ea=_0x4dd8b0?_0xff508d[_0x3506bb]:null),_0x3276fb&&_0x2edf15&&_0x2ceb52(_0x4dd8b0,_getPosBefore(_0x4779ea,_0x54e85a,_0x3c6a8f),_getPosAfter(_0xff508d[_0x3506bb],_0x54e85a,_0x3c6a8f));}function _0x2ceb52(_0x18cd96,_0x4a77bb,_0xae34f9){const _0x2488cd=_0x3276fb['userId'],_0x4fa314='revision:'+_0x292d62+':'+_0x2488cd+':'+_0xfc56d7++,_0x31f6d6=_0x3c6a8f['createRange'](_0x4a77bb,_0xae34f9);_0x54e85a['markers']['set'](_0x4fa314,_0x31f6d6),null!==_0x2488cd&&_0x285f5d['add'](_0x2488cd);}}['_getVidAttributeName'](_0x4e57d8){switch(_0x4e57d8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x22375d,_0x224e3f){_0x22375d['baseVersion']=null;for(const _0x538897 in _0x22375d){const _0xa14a25=_0x22375d[_0x538897];if(_0xa14a25 instanceof ModelPosition){const _0x37a447=_0x224e3f['get'](_0xa14a25['root']['rootName']);_0x22375d[_0x538897]=this['_fixPosition'](_0xa14a25,_0x37a447);}if(_0xa14a25 instanceof ModelRange){const _0x4b3568=_0x224e3f['get'](_0xa14a25['root']['rootName']);_0x22375d[_0x538897]=this['_fixRange'](_0xa14a25,_0x4b3568);}'root'===_0x538897&&(_0x22375d['root']=_0x224e3f['get'](_0x22375d['root']['rootName']));}}['_fixRange'](_0xef4e45,_0xf61338){return this['editor']['model']['createRange'](this['_fixPosition'](_0xef4e45['start'],_0xf61338),this['_fixPosition'](_0xef4e45['end'],_0xf61338));}['_fixPosition'](_0x59af93,_0x29b385){return this['editor']['model']['createPositionFromPath'](_0x29b385,_0x59af93['path'],_0x59af93['stickiness']);}['_handleInsertOperation'](_0x393680){const _0x5ce8a8=this['_idsRoots']['get'](_0x393680['position']['root']['rootName']),_0x1d3826=this['_fixPosition'](_0x393680['position'],_0x5ce8a8),_0x283d56=null===_0x393680['_authorId']?null:_0x393680['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x57c4d0=_0x1d3826['parent'],_0x2a7862=this['_revisionId'],_0x192dc1=[];for(const _0x4bdc42 of _0x393680['nodes'])if(_0x4bdc42['is']('element'))_0x192dc1['push'](this['_makeIdsRoot'](_0x4bdc42));else{for(let _0x64be12=0x0;_0x64be12<_0x4bdc42['offsetSize'];_0x64be12++)_0x192dc1['push'](new ModelElement('$text',{'vid':this['_revisionId']++}));}const _0x20887f=this['_revisionId'];for(let _0x1311fb=_0x2a7862;_0x1311fb<_0x20887f;_0x1311fb++)this['_touched']['set'](_0x1311fb,{'userId':_0x283d56});_0x57c4d0['_insertChild'](_0x1d3826['offset'],_0x192dc1);}['_handleMoveOperation'](_0x692b4){(_0x692b4=this['_cloneOperation'](_0x692b4,this['_idsRoots']))['_execute']();const _0x440229=null===_0x692b4['_authorId']?null:_0x692b4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc57f89=_0x692b4['getMovedRangeStart'](),_0x1a4aee=_0xc57f89['parent'],_0x4b7518=_0xc57f89['offset'];!function _0x4b6a00(_0xc4b24b,_0x17f0d8,_0x540755,_0x2b0c97){for(let _0x444a07=_0x540755;_0x444a07<_0x2b0c97;_0x444a07++){const _0x110251=_0x17f0d8['getChild'](_0x444a07);_0x110251['is']('element','$text')?_0xc4b24b['set'](_0x110251['getAttribute']('vid'),{'userId':_0x440229}):(_0xc4b24b['set'](_0x110251['getAttribute']('vid_start'),{'userId':_0x440229}),_0x4b6a00(_0xc4b24b,_0x110251,0x0,_0x110251['childCount']),_0xc4b24b['set'](_0x110251['getAttribute']('vid_end'),{'userId':_0x440229}));}}(this['_touched'],_0x1a4aee,_0x4b7518,_0x4b7518+_0x692b4['howMany']);}['_handleMergeOperation'](_0x57e877){const _0x59981c=null===(_0x57e877=this['_cloneOperation'](_0x57e877,this['_idsRoots']))['_authorId']?null:_0x57e877['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x260079=_0x57e877['targetPosition']['parent'],_0x500220=_0x57e877['sourcePosition']['parent'],_0x6f5106=_0x260079['getAttribute']('vid_end'),_0x3a192f=_0x500220['getAttribute']('vid_start');_0x260079['_setAttribute']('vid_end',_0x500220['getAttribute']('vid_end')),_0x500220['_setAttribute']('vid_end',_0x6f5106),this['_touched']['set'](_0x3a192f,{'userId':_0x59981c}),this['_touched']['set'](_0x6f5106,{'userId':_0x59981c}),_0x57e877['_execute']();}['_handleSplitOperation'](_0x3e2aea){const _0x5a66e5=null===(_0x3e2aea=this['_cloneOperation'](_0x3e2aea,this['_idsRoots']))['_authorId']?null:_0x3e2aea['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x90a23a=_0x3e2aea['graveyardPosition'],_0x330c17=_0x3e2aea['splitPosition']['parent'];_0x3e2aea['_execute']();const _0x1d8667=_0x330c17['getAttribute']('vid_end'),_0x45f81c=_0x3e2aea['insertionPosition']['nodeAfter'];if(_0x90a23a){const _0xe36aa1=_0x45f81c['getAttribute']('vid_end'),_0x4ad1f0=_0x330c17['getAttribute']('vid_end');_0x330c17['_setAttribute']('vid_end',_0xe36aa1),_0x45f81c['_setAttribute']('vid_end',_0x4ad1f0),this['_touched']['set'](_0x330c17['getAttribute']('vid_end'),{'userId':_0x5a66e5}),this['_touched']['set'](_0x45f81c['getAttribute']('vid_start'),{'userId':_0x5a66e5});}else{const _0x484723=this['_revisionId']++,_0x44f76b=this['_revisionId']++;_0x330c17['_setAttribute']('vid_end',_0x484723),_0x45f81c['_setAttribute']('vid_start',_0x44f76b),_0x45f81c['_setAttribute']('vid_end',_0x1d8667),this['_touched']['set'](_0x484723,{'userId':_0x5a66e5}),this['_touched']['set'](_0x44f76b,{'userId':_0x5a66e5});}}['_handleMarkerOperation'](_0xe52135){if(!_0xe52135['affectsData'])return;const _0x6d289a=(_0xe52135=this['_cloneOperation'](_0xe52135,this['_diffRoots']))['oldRange']?_0xe52135['oldRange']['root']:null,_0x742b62=_0xe52135['newRange']?_0xe52135['newRange']['root']:null;_0x6d289a&&this['_markers']['delete'](_0xe52135['name']),_0x742b62&&this['_markers']['set'](_0xe52135['name'],_0xe52135['newRange']['clone']());const _0x499761=null===_0xe52135['_authorId']?null:_0xe52135['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5b478c=_0xe52135['name'];if(!this['_touchedMarkers']['has'](_0x5b478c))return void this['_touchedMarkers']['set'](_0x5b478c,{'range':_0xe52135['oldRange'],'userId':_0x499761});const _0x344a56=this['_touchedMarkers']['get'](_0x5b478c),_0x51da5b=_0x344a56['range'],_0x5f3849=_0xe52135['newRange'];null==_0x51da5b&&null==_0x5f3849||_0x51da5b&&_0x5f3849&&_0x51da5b['isEqual'](_0x5f3849)?this['_touchedMarkers']['delete'](_0xe52135['name']):_0x344a56['userId']=_0x499761;}['_handleRootOperation'](_0x140a3b,_0x48fda9){this['_diffRoots']['has'](_0x140a3b['rootName'])?this['_diffRoots']['get'](_0x140a3b['rootName'])['_isAttached']=_0x140a3b['isAdd']:(this['_diffRoots']['set'](_0x140a3b['rootName'],_emptyRoot(_0x140a3b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x140a3b['rootName'],{}),_0x48fda9&&this['_idsRoots']['set'](_0x140a3b['rootName'],_emptyRoot(_0x140a3b['rootName'],!0x0)));const _0x7ec17f=null===_0x140a3b['_authorId']?null:_0x140a3b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8776b1=this['_touchedRoots']['get'](_0x140a3b['rootName']);_0x8776b1&&_0x8776b1['userId']===_0x7ec17f?this['_touchedRoots']['delete'](_0x140a3b['rootName']):this['_touchedRoots']['set'](_0x140a3b['rootName'],{'userId':_0x7ec17f,'isAttached':_0x140a3b['isAdd']});}['_handleRootAttributeOperation'](_0x4b7cdf){const _0x1ba7ef=this['_diffRootsAttributes']['get'](_0x4b7cdf['root']['rootName']);null===_0x4b7cdf['newValue']?delete _0x1ba7ef[_0x4b7cdf['key']]:_0x1ba7ef[_0x4b7cdf['key']]=_0x4b7cdf['newValue'];}}function _cloneRoot(_0x11f0f9){const _0x1f103c=_emptyRoot(_0x11f0f9['rootName'],_0x11f0f9['isAttached']());for(const _0x1a97f2 of _0x11f0f9['getChildren']()){const _0x36fae5=_0x1a97f2['_clone'](!0x0);_0x1f103c['_appendChild'](_0x36fae5);}return _0x1f103c;}function _emptyRoot(_0x29ff40,_0x3fd257=!0x0){const _0x1f97af=new ModelDocumentFragment();return _0x1f97af['rootName']=_0x29ff40,_0x1f97af['_isAttached']=_0x3fd257,_0x1f97af['isAttached']=()=>_0x1f97af['_isAttached'],_0x1f97af;}function _getPosBefore(_0x559b89,_0x15aa83,_0x43cff0){const _0x2ec73f='elementEnd'==_0x559b89['type']?_0x43cff0['createPositionAt'](_0x559b89['item'],'end'):_0x43cff0['createPositionBefore'](_0x559b89['item']);return _0x43cff0['createPositionFromPath'](_0x15aa83,_0x2ec73f['path'],_0x2ec73f['stickiness']);}function _getPosAfter(_0x1ac11f,_0x15dfc1,_0xee9edd){const _0x5f2883='elementStart'==_0x1ac11f['type']?_0xee9edd['createPositionAt'](_0x1ac11f['item'],0x0):_0xee9edd['createPositionAfter'](_0x1ac11f['item']);return _0xee9edd['createPositionFromPath'](_0x15dfc1,_0x5f2883['path'],_0x5f2883['stickiness']);}class RevisionHistorySaveRevisionFormView extends/* #__PURE__ -- @preserve */
CssTransitionDisablerMixin(View){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x41ae04,_0x2c21b6){super(_0x41ae04),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c21b6),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'](),submitHandler({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xcb015c=_0x19a686=>_0x19a686['stopPropagation']();this['keystrokes']['set']('arrowright',_0xcb015c),this['keystrokes']['set']('arrowleft',_0xcb015c),this['keystrokes']['set']('arrowup',_0xcb015c),this['keystrokes']['set']('arrowdown',_0xcb015c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3fa9aa){this['revisionNameInputView']['fieldView']['element']['value']=_0x3fa9aa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x34d0d5){const _0x10733c=new LabeledFieldView(this['locale'],createLabeledInputText),_0x595305=_0x10733c['fieldView'];_0x595305['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xfe23b2=getTranslation$5(this['locale'],'Name\x20of\x20the\x20revision');return!_0x34d0d5&&(_0xfe23b2+='\x20('+getTranslation$5(this['locale'],'optional')+')'),(_0x10733c['label']=_0xfe23b2,_0x595305['on']('input',()=>{this['revisionNameInputValue']=_0x595305['element']['value']['trim']();}),_0x10733c);}}class RevisionHistoryUI extends Plugin{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker];}['_saveRevisionFormView'];['init'](){const _0x31719e=this['editor'],_0x3c9af4=_0x31719e['plugins']['get']('RevisionTracker');_0x31719e['ui']['componentFactory']['add']('revisionHistory',_0x28d68e=>{const _0xdaf5a9=createDropdown(_0x28d68e),_0x3dc805=_0xdaf5a9['panelView']['children'],_0x4c6e82=new ListView(_0x28d68e),_0x44d7c4=new ListItemView(_0x28d68e),_0x3326d9=this['_createSaveRevisionButton'](ButtonView),_0x1e9ed7=new ListItemView(_0x28d68e),_0x2904b8=this['_createOpenRevisionButton'](ButtonView);return _0xdaf5a9['bind']('isEnabled')['to'](_0x3c9af4,'isReady',_0x3c9af4,'isEnabled',_0x31719e,'isReadOnly',(_0x1264b3,_0x3f9ec3,_0x13879d)=>_0x1264b3&&_0x3f9ec3&&!_0x13879d),_0xdaf5a9['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x28d68e,'Revision\x20history'),'tooltip':!0x0}),_0x3326d9['set']({'withText':!0x0,'role':'menuitem'}),_0x2904b8['set']({'withText':!0x0,'role':'menuitem'}),this['listenTo'](_0x2904b8,'execute',()=>{_0xdaf5a9['isOpen']=!0x1,_0x31719e['editing']['view']['focus']();},{'priority':'low'}),_0x44d7c4['children']['add'](_0x3326d9),_0x1e9ed7['children']['add'](_0x2904b8),_0x4c6e82['role']='menu',_0x4c6e82['items']['addMany']([_0x44d7c4,_0x1e9ed7]),_0x3dc805['add'](_0x4c6e82),_0xdaf5a9;}),_0x31719e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4fab5a=this['editor'],_0x4268a7=_0x4fab5a['locale'],_0x54c532=_0x4fab5a['plugins']['get']('RevisionTracker'),_0x202677=new MenuBarMenuView(_0x4268a7),_0x34c80e=new MenuBarMenuListView(_0x4268a7);_0x202677['bind']('isEnabled')['to'](_0x54c532,'isReady',_0x54c532,'isEnabled',_0x4fab5a,'isReadOnly',(_0x2e826e,_0x287043,_0x4e425c)=>_0x2e826e&&_0x287043&&!_0x4e425c),_0x202677['buttonView']['set']({'icon':IconHistory,'label':getTranslation$5(_0x4268a7,'Revision\x20history')});const _0x1c31df=new MenuBarMenuListItemView(_0x4268a7,_0x202677),_0x3d13cf=this['_createSaveRevisionButton'](MenuBarMenuListItemButtonView);_0x3d13cf['delegate']('execute')['to'](_0x202677),_0x1c31df['children']['add'](_0x3d13cf),_0x34c80e['items']['add'](_0x1c31df);const _0x20f1dd=new MenuBarMenuListItemView(_0x4268a7,_0x202677),_0x23ec3c=this['_createOpenRevisionButton'](MenuBarMenuListItemButtonView);return _0x23ec3c['delegate']('execute')['to'](_0x202677),_0x20f1dd['children']['add'](_0x23ec3c),_0x34c80e['items']['add'](_0x20f1dd),_0x202677['panelView']['children']['add'](_0x34c80e),_0x202677;}['_createSaveRevisionButton'](_0x3d3b5e){const _0x188daa=this['editor'],_0x308ba8=_0x188daa['plugins']['get']('RevisionTracker'),_0x500470=new _0x3d3b5e(_0x188daa['locale']);return _0x500470['set']({'label':getTranslation$5(_0x188daa['locale'],'Save\x20current\x20revision')}),_0x500470['bind']('isEnabled')['to'](_0x308ba8,'isReady',_0x308ba8,'isEnabled',_0x188daa,'isReadOnly',(_0x5eb703,_0x21557b,_0x29ebcf)=>_0x5eb703&&_0x21557b&&!_0x29ebcf),this['listenTo'](_0x500470,'execute',()=>{this['_showDialog']();}),_0x500470;}['_createOpenRevisionButton'](_0x1f9a70){const _0x525761=this['editor'],_0x20dc3f=_0x525761['plugins']['get']('RevisionTracker'),_0x2627c4=new _0x1f9a70(_0x525761['locale']);return _0x2627c4['set']({'label':getTranslation$5(_0x525761['locale'],'Open\x20revision\x20history')}),_0x2627c4['bind']('isEnabled')['to'](_0x20dc3f,'isReady',_0x525761,'isReadOnly',(_0x571b34,_0x3a5486)=>_0x571b34&&!_0x3a5486),this['listenTo'](_0x2627c4,'execute',()=>{_0x525761['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2627c4;}['_showDialog'](){const _0x4c6ee1=this['editor'],_0xb82999=_0x4c6ee1['locale'],_0x15d734=_0x4c6ee1['plugins']['get']('Dialog'),_0x1791fb=_0x4c6ee1['plugins']['get']('RevisionTracker');function _0x24ad8c(_0x5911a4){_0x4c6ee1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5911a4['revisionName']?_0x5911a4['revisionNameInputView']['errorText']=getTranslation$5(_0xb82999,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4c6ee1['plugins']['get'](RevisionTracker)['saveRevision']({'name':_0x5911a4['revisionName']}),_0x15d734['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x24ad8c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x15d734['show']({'id':'revisionSave','title':getTranslation$5(_0xb82999,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':getTranslation$5(_0x4c6ee1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x15d734['hide']()},{'label':getTranslation$5(_0x4c6ee1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1cb53a){_0x1cb53a['bind']('isEnabled')['to'](_0x1791fb,'isReady',_0x1791fb,'isEnabled',_0x4c6ee1,'isReadOnly',(_0x42d4dc,_0x2da997,_0x5113c4)=>_0x42d4dc&&_0x2da997&&!_0x5113c4);},'onExecute':()=>_0x24ad8c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x263272=this['editor'],_0x42b195=_0x263272['locale'];this['_saveRevisionFormView']=new RevisionHistorySaveRevisionFormView(_0x42b195,_0x263272['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class ChangeDetailsView extends View{['changeId'];['_model'];constructor(_0x4dc58d,_0x37a831){super(_0x4dc58d),this['_model']=_0x37a831,this['changeId']=_0x37a831['id'];const _0x404272=this['bindTemplate'],_0x95bb6e=getTranslation$5(_0x4dc58d,_0x37a831['data']['isSuggestion']?'Suggested\x20by':'add'==_0x37a831['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x37a831['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x404272['to']('type',_0x497f12=>'ck-revision-change__'+_0x497f12)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x95bb6e}]},{'text':'\x20'+_0x37a831['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class ChangeItem extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x162261){super(),this['id']=_0x162261['id']||uid(),this['author']=_0x162261['author'],this['type']=_0x162261['type'],this['data']=_0x162261['data']||{},this['rootName']=_0x162261['rootName'],this['set']('createdAt',_0x162261['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class RevisionDiff{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x5a8d5,_0x35a5df){this['newRevisionId']=_0x5a8d5,this['oldRevisionId']=_0x35a5df,this['changes']=new Collection();}['_setChanges'](_0x4aacc8){for(const _0x529d65 of _0x4aacc8)this['changes']['add'](_0x529d65);}}class RevisionViewer extends Plugin{['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[Users,ContextualBalloon,RevisionsRepository,RevisionHistoryUtils];}constructor(_0x149a2d){super(_0x149a2d),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',(_0x1b4d31,_0x3da570,_0x4bf915)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2eea7c=>{for(const _0x8cb413 of this['editor']['editing']['view']['document']['roots'])_0x4bf915?_0x2eea7c['removeClass']('ck-editor__editable__overlay',_0x8cb413):_0x2eea7c['addClass']('ck-editor__editable__overlay',_0x8cb413);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x41c23e=>null!==_0x41c23e),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x238b2e,_0x48e789,_0x1d61d9)=>_0x238b2e&&_0x1d61d9?_0x48e789['changes']['getIndex'](_0x1d61d9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3f0ad6,_0x308d6d)=>_0x3f0ad6?_0x308d6d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](ContextualBalloon);}['init'](){const _0x426b5c=this['editor'],_0x4b60c2=new ShowChangeCommand(_0x426b5c,{'direction':'backward'}),_0x28cce5=new ShowChangeCommand(_0x426b5c,{'direction':'forward'});(_0x426b5c['commands']['add']('showPreviousChange',_0x4b60c2),_0x426b5c['commands']['add']('showNextChange',_0x28cce5),_0x426b5c['commands']['add']('restoreRevision',new RestoreRevisionCommand(_0x426b5c)),this['on']('change:numberOfChanges',()=>{_0x4b60c2['refresh'](),_0x28cce5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x426b5c['enableReadOnlyMode']('revision-viewer'),_0x426b5c['plugins']['has']('WidgetToolbarRepository'))&&_0x426b5c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1fd18c){return await this['_utils']['loadRevisionData'](_0x1fd18c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1fd18c);}async['getRevisionRootsAttributes'](_0x5dc266){return await this['_utils']['loadRevisionData'](_0x5dc266,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5dc266);}async['compare'](_0x281181,_0x4cc26c,_0x56d359=!0x1){if(!this['isEnabled'])return;const _0x4f19ec=this['diff'],_0x172591=this['repository'],_0x375669='string'==typeof _0x281181?_0x172591['getRevision'](_0x281181):_0x281181,_0x3cf02f='string'==typeof _0x4cc26c?_0x172591['getRevision'](_0x4cc26c):_0x4cc26c,_0x29be5c=_0x375669['id'],_0x294a35=_0x3cf02f?_0x3cf02f['id']:null;if(!_0x56d359&&this['diff']&&this['diff']['newRevisionId']===_0x29be5c&&this['diff']['oldRevisionId']===_0x294a35)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new RevisionDiff(_0x29be5c,_0x294a35);const _0xf00550=this['_getRevisionsRange'](_0x375669,_0x3cf02f,!0x0)['map'](_0x3ce4d3=>this['_utils']['loadRevisionData'](_0x3ce4d3,this['adapter']));return _0xf00550['push'](new Promise(_0x382a93=>{setTimeout(_0x382a93,0x14);})),Promise['all'](_0xf00550)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2391ff=this['_getDiff'](_0x29be5c,_0x294a35);for(const _0x229375 of _0x2391ff['changes'])this['_changeIdToChange']['set'](_0x229375['id'],_0x229375);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1eb78a=>{for(const _0x128932 of this['editor']['model']['document']['getRootNames']())_0x1eb78a['detachRoot'](_0x128932);for(const _0x351351 of Object['keys'](_0x2391ff['model'])){const _0x4648df=_0x1eb78a['addRoot'](_0x351351);for(const _0xcc5f6e of Object['keys'](_0x2391ff['attributes'][_0x351351]))_0x1eb78a['setAttribute'](_0xcc5f6e,_0x2391ff['attributes'][_0x351351][_0xcc5f6e],_0x4648df);_0x1eb78a['insert'](_0x2391ff['model'][_0x351351],_0x4648df,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2391ff['changes'])),this['isReady']=!0x0;})['catch'](_0x35a8c6=>{console['error'](_0x35a8c6),this['_cleanUp'](),_0x4f19ec&&(this['diff']=_0x4f19ec),this['isReady']=!0x0;});}['addRevisionData'](_0x521e80,_0x31473b){const _0x403b65=this['repository']['createRevision'](_0x521e80);return _0x403b65['on']('_update',(_0xb22c30,_0x21c2a7,_0x24f03c)=>_0x31473b(_0x21c2a7,_0x24f03c,_0x403b65)),this['repository']['addRevision'](_0x403b65),_0x403b65;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3747e0=>{for(const _0x58c9a3 of this['editor']['model']['document']['getRootNames']())_0x3747e0['detachRoot'](_0x58c9a3);});}['_sortAndFilterDiffChanges'](_0x4ced6f){const _0x5bab43=[],_0xf10da7=new Map();for(const _0x2fbad8 of this['editor']['model']['document']['getRootNames']()){const _0x47046e=this['editor']['editing']['view']['getDomRoot'](_0x2fbad8);if(!_0x47046e)continue;const _0x2d4a02=_0x47046e['getClientRects']()['item'](0x0);_0x2d4a02&&(_0x5bab43['push'](_0x2fbad8),_0xf10da7['set'](_0x2fbad8,_0x2d4a02));}return _0x5bab43['sort']((_0x3a9045,_0x3cc8b7)=>{const _0xfc7146=_0xf10da7['get'](_0x3a9045),_0x36cc36=_0xf10da7['get'](_0x3cc8b7);return _0xfc7146['y']-_0x36cc36['y']||_0xfc7146['x']-_0x36cc36['x'];}),(_0x4ced6f=_0x4ced6f['filter'](_0x3d3892=>_0x5bab43['includes'](_0x3d3892['rootName'])))['sort']((_0x5e5385,_0x3e6449)=>_0x5bab43['indexOf'](_0x5e5385['rootName'])-_0x5bab43['indexOf'](_0x3e6449['rootName'])),_0x4ced6f;}['_makeTape'](_0x17aaeb){const _0x334499=Array['from'](_0x17aaeb['markers'])['filter'](([_0xc85fcc,_0x33dd58])=>_0xc85fcc['startsWith']('revision:')&&!_0x33dd58['isCollapsed']),_0x3abb79=Array['from'](this['editor']['model']['createRangeIn'](_0x17aaeb)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x334499['length'])for(const _0x7531e1 of _0x3abb79){const [_0x5ed869,_0xe20134]=_0x334499[0x0],[,_0x37928e,_0x1a7974]=_0x5ed869['split'](':');if(_0xe20134['end']['isEqual'](_0x7531e1['nextPosition'])&&_0x334499['shift'](),(_0x7531e1['previousPosition']['isEqual'](_0xe20134['start'])||_0x7531e1['previousPosition']['isAfter'](_0xe20134['start']))&&('insertion'==_0x37928e?_0x7531e1['isAdded']={'userId':_0x1a7974}:'deletion'==_0x37928e&&(_0x7531e1['isRemoved']={'userId':_0x1a7974})),0x0==_0x334499['length'])break;}return _0x3abb79;}['_refreshStartEndIndex'](_0x19c8ad){const _0x1d9c92=new Map();for(let _0xa747e5=0x0;_0xa747e5<_0x19c8ad['length'];_0xa747e5++)'text'===_0x19c8ad[_0xa747e5]['type']?(_0x19c8ad[_0xa747e5]['item']['startIndex']=_0xa747e5,_0x19c8ad[_0xa747e5]['item']['endIndex']=_0xa747e5):('elementStart'===_0x19c8ad[_0xa747e5]['type']?_0x19c8ad[_0xa747e5]['item']['startIndex']=_0xa747e5:'elementEnd'===_0x19c8ad[_0xa747e5]['type']&&(_0x19c8ad[_0xa747e5]['item']['endIndex']=_0xa747e5),_0x1d9c92['set'](_0x19c8ad[_0xa747e5]['id'],_0xa747e5));for(const _0x31ae65 of _0x1d9c92['values']())'elementStart'===_0x19c8ad[_0x31ae65]['type']?_0x19c8ad[_0x31ae65]['item']['endIndex']=_0x1d9c92['get'](_0x19c8ad[_0x31ae65]['pairId']):'elementEnd'===_0x19c8ad[_0x31ae65]['type']&&(_0x19c8ad[_0x31ae65]['item']['startIndex']=_0x1d9c92['get'](_0x19c8ad[_0x31ae65]['pairId']));}['_processTape'](_0x3b5688){for(let _0x3118f7=0x0;_0x3118f7<_0x3b5688['length'];_0x3118f7++){if('elementStart'===_0x3b5688[_0x3118f7]['type'])_0x3b5688[_0x3118f7]['item']['startIndex']=_0x3118f7;else{if('elementEnd'===_0x3b5688[_0x3118f7]['type']){_0x3b5688[_0x3118f7]['item']['endIndex']=_0x3118f7;const _0x3792f9=_0x3b5688[_0x3118f7]['item']['startIndex'];_0x3b5688[_0x3792f9]['pairId']=_0x3b5688[_0x3118f7]['id'],_0x3b5688[_0x3118f7]['pairId']=_0x3b5688[_0x3792f9]['id'];}else _0x3b5688[_0x3118f7]['item']['startIndex']=_0x3118f7,_0x3b5688[_0x3118f7]['item']['endIndex']=_0x3118f7,_0x3b5688[_0x3118f7]['pairId']=null;}_0x3b5688[_0x3118f7]['markersStart']||(_0x3b5688[_0x3118f7]['markersStart']=[],_0x3b5688[_0x3118f7]['markersEnd']=[]);}}['_markInsertions'](_0x43644e,_0x5f1d82){const _0x563db1=_0x43644e['filter'](_0x59d0f2=>!_0x59d0f2['isAdded']);for(let _0x463d26=0x0;_0x463d26<_0x5f1d82['length'];_0x463d26++)_0x5f1d82[_0x463d26]['isAdded']&&(_0x563db1[_0x463d26]['isAdded']=_0x5f1d82[_0x463d26]['isAdded']);}['_getDiff'](_0x29a792,_0x3e4078=null){const _0xccc619=this['repository']['getRevision'](_0x29a792),_0xf13db0=_0x3e4078?this['repository']['getRevision'](_0x3e4078):null,_0x4e5983=this['_getRevisionsRange'](_0xccc619,_0xf13db0),_0x23e11f=_0x4e5983[_0x4e5983['length']-0x1],_0x1e9ab2=new Map(),_0x138dd9={'model':{},'attributes':{},'changes':[]},_0xe9100e=new Set(),_0x51e71d=new Map();for(let _0x63e21e=_0x4e5983['length']-0x1;_0x63e21e>=0x0;_0x63e21e--){const _0x13d319=_0x4e5983[_0x63e21e];for(const _0x142823 of Object['keys'](_0x13d319['diffData']))if(_0x13d319['diffData'][_0x142823]['attachChange']){const _0x124011=_0x13d319['diffData'][_0x142823]['attachChange'];_0x124011['isAttached']?(_0xe9100e['add'](_0x142823),_0x51e71d['has'](_0x142823)&&_0x51e71d['get'](_0x142823)['userId']==_0x124011['userId']?_0x51e71d['delete'](_0x142823):_0x51e71d['set'](_0x142823,_0x124011)):_0x51e71d['has'](_0x142823)?(_0xe9100e['delete'](_0x142823),_0x51e71d['delete'](_0x142823)):(_0xe9100e['add'](_0x142823),_0x51e71d['set'](_0x142823,_0x124011));}else _0xe9100e['add'](_0x142823);}for(const _0x28f31a of _0xe9100e){const _0x420cf1=_0x51e71d['has'](_0x28f31a)&&!_0x51e71d['get'](_0x28f31a)['isAttached'];let _0x3d1364=_0x420cf1?_0x4e5983['length']-0x1:0x0;const _0x3b76b7=_0x420cf1?-0x1:0x1;for(;_0x4e5983[_0x3d1364];){const _0x5160c6=_0x4e5983[_0x3d1364];if(_0x5160c6['diffData'][_0x28f31a]){const _0x3c92c1=_0x420cf1?_0x5160c6['diffData'][_0x28f31a]['attributesBefore']:_0x5160c6['diffData'][_0x28f31a]['attributesAfter'];_0x138dd9['attributes'][_0x28f31a]=_0x3c92c1?cloneDeep(_0x3c92c1):{};break;}_0x3d1364+=_0x3b76b7;}}for(const _0x2261b9 of _0x4e5983){_0x2261b9['model']={};for(const _0x46c309 of _0x2261b9['authors'])_0x1e9ab2['set'](_0x46c309['id'],_0x46c309);for(const _0x1f719e of _0xe9100e){const _0x441281=_0x2261b9['diffData'][_0x1f719e]?_0x2261b9['diffData'][_0x1f719e]['insertions']:'[]',_0x5d45f4=_0x2261b9['diffData'][_0x1f719e]?_0x2261b9['diffData'][_0x1f719e]['deletions']:'[]';_0x2261b9['model'][_0x1f719e]={'insertions':this['_utils']['_makeModelFromViewString'](_0x441281),'deletions':this['_utils']['_makeModelFromViewString'](_0x5d45f4)};}}for(const _0x3527e0 of _0xe9100e){let _0x5bc3c9=null,_0x31f9bf=0x0;const _0x45571d=new Map(Array['from'](_0xccc619['model'][_0x3527e0]['insertions']['markers'])['filter'](([_0x58a0c8])=>!_0x58a0c8['startsWith']('revision:')));let _0x2568e1=0x0;for(const _0x1b840d of _0x4e5983){const _0x186028=this['_makeTape'](_0x1b840d['model'][_0x3527e0]['insertions']);_0x1b840d==_0xccc619?(_0x5bc3c9=_0x186028,_0x31f9bf=_0x5bc3c9['length'],_0x5bc3c9['forEach'](_0xc1810f=>{_0xc1810f['id']=_0x2568e1++;}),this['_processTape'](_0x5bc3c9)):this['_markInsertions'](_0x5bc3c9,_0x186028);const _0x57a800=_0x5bc3c9['filter'](_0x435a47=>!_0x435a47['isAdded'])['map'](_0x60312f=>_0x60312f['id']);let _0x3c711f=0x0;const _0xf042b3=this['_makeTape'](_0x1b840d['model'][_0x3527e0]['deletions']);_0xf042b3['forEach'](_0x6c388c=>{_0x6c388c['isRemoved']?_0x6c388c['id']=_0x31f9bf++:_0x6c388c['id']=_0x57a800[_0x3c711f++];}),this['_processTape'](_0xf042b3),this['_setDistance'](_0x5bc3c9,'isAdded'),this['_setDistance'](_0xf042b3,'isRemoved'),_0x1b840d==_0xccc619&&this['_markMarkers'](_0x5bc3c9,_0x45571d),_0x5bc3c9=this['_joinTapes'](_0x5bc3c9,_0xf042b3),this['_refreshStartEndIndex'](_0x5bc3c9),this['_setDistance'](_0x5bc3c9,'isRemoved');}_0x5bc3c9=_0x5bc3c9['filter'](_0x243841=>!(_0x243841['isAdded']&&_0x243841['isRemoved']));const _0x2d89e4=new Map(_0x23e11f['model'][_0x3527e0]['deletions']['markers']),_0x51896e=new Set(_0x45571d['keys']());for(const _0x16421f of _0x2d89e4['keys']())_0x51896e['delete'](_0x16421f);this['_markSuggestions'](_0x5bc3c9,_0x51896e),this['_fixObsoleteTags'](_0x5bc3c9),_0x5bc3c9=this['_removeMissingPairs'](_0x5bc3c9),_0x5bc3c9=this['_markMismatchedRemovedTags'](_0x5bc3c9),_0x5bc3c9=this['_removeUnsupportedChanges'](_0x5bc3c9);const {root:_0x9ed4d8,changes:_0x3e9359}=this['_makeModelFromTape'](_0x5bc3c9,_0x1e9ab2,_0x3527e0);_0x138dd9['model'][_0x3527e0]=_0x9ed4d8;const _0x7220e7=_0x51e71d['get'](_0x3527e0);if(_0x7220e7){const _0x3f784=_0x1e9ab2['get'](_0x7220e7['userId']),_0x5617c1=new ChangeItem({'author':_0x3f784,'type':_0x7220e7['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3527e0});_0x3e9359['unshift'](_0x5617c1),_0x138dd9['attributes'][_0x3527e0]['revisionHistoryAttachChange']=_0x5617c1['id'];}_0x138dd9['changes']=_0x138dd9['changes']['concat'](_0x3e9359);}return _0x138dd9;}['_markMarkers'](_0x4bd50a,_0x39a7d8){for(let _0x53333c=0x0;_0x53333c<_0x4bd50a['length'];_0x53333c++)for(const [_0x14b799,_0x115eb6]of _0x39a7d8)!_0x115eb6['isCollapsed']&&_0x115eb6['start']['isEqual'](_0x4bd50a[_0x53333c]['previousPosition'])&&_0x4bd50a[_0x53333c]['markersStart']['push'](_0x14b799),_0x115eb6['end']['isEqual'](_0x4bd50a[_0x53333c]['nextPosition'])&&_0x4bd50a[_0x53333c]['markersEnd']['push'](_0x14b799);}['_joinTapes'](_0x1b7a9e,_0x3dc6c5){let _0x4b11d3=[],_0xad0273=0x0,_0x3412e3=0x0;for(;_0xad0273<_0x1b7a9e['length']||_0x3412e3<_0x3dc6c5['length'];){const _0xec0cfe=_0x1b7a9e[_0xad0273]||{},_0x32eb59=_0x3dc6c5[_0x3412e3]||{};if(_0xec0cfe['id']==_0x32eb59['id'])_0xad0273++,_0x3412e3++,_0x4b11d3['push'](_0xec0cfe);else{if(_0x32eb59['isRemoved']&&_0xec0cfe['isAdded']){const {commonTape:_0x57aae8,iEnd:_0x59997b,jEnd:_0x5b8b03}=this['_threeWayMerge'](_0x1b7a9e,_0xad0273,_0x3dc6c5,_0x3412e3);_0x4b11d3=_0x4b11d3['concat'](_0x57aae8),_0xad0273=_0x59997b,_0x3412e3=_0x5b8b03;}else _0x32eb59['isRemoved']?(_0x3412e3++,_0x4b11d3['push'](_0x32eb59)):(_0xad0273++,_0x4b11d3['push'](_0xec0cfe));}}return _0x4b11d3;}['_markSuggestions'](_0x502a21,_0x3fc0cb){const _0x3ad1c9=[];for(let _0x3be73a=0x0;_0x3be73a<_0x502a21['length'];_0x3be73a++){for(let _0xc40191=0x0;_0xc40191<_0x502a21[_0x3be73a]['markersStart']['length'];_0xc40191++){const _0x534f75=_0x502a21[_0x3be73a]['markersStart'][_0xc40191];if(!_0x3fc0cb['has'](_0x534f75))continue;const {group:_0x813f73,type:_0x1b4184,authorId:_0x2c63a0}=_0x2b7a93(_0x534f75);'revision-suggestion'!=_0x813f73||'insertion'!=_0x1b4184&&'deletion'!=_0x1b4184||(_0x3ad1c9['unshift']({'type':_0x1b4184,'name':_0x534f75,'userId':_0x2c63a0}),_0x502a21[_0x3be73a]['markersStart']['splice'](_0xc40191,0x1),_0xc40191--);}_0x2e7666(_0x502a21[_0x3be73a]);for(let _0x356734=0x0;_0x356734<_0x502a21[_0x3be73a]['markersEnd']['length'];_0x356734++){const _0xb2cffd=_0x502a21[_0x3be73a]['markersEnd'][_0x356734];if(!_0x3fc0cb['has'](_0xb2cffd))continue;const {group:_0x58f873,type:_0x2a4481}=_0x2b7a93(_0xb2cffd);if('revision-suggestion'!=_0x58f873||'insertion'!=_0x2a4481&&'deletion'!=_0x2a4481)continue;_0x502a21[_0x3be73a]['markersEnd']['splice'](_0x356734,0x1),_0x356734--;const _0x507a2a=_0x3ad1c9['findIndex'](_0x521606=>_0x521606['name']==_0xb2cffd);_0x507a2a>-0x1&&_0x3ad1c9['splice'](_0x507a2a,0x1);}}function _0x2b7a93(_0x1d859d){const _0x4a8363=_0x1d859d['split'](':');return{'group':_0x4a8363[0x0],'type':_0x4a8363[0x1],'subType':_0x4a8363['length']>=0x5?_0x4a8363[0x2]:null,'id':_0x4a8363['length']<0x5?_0x4a8363[0x2]:_0x4a8363[0x3],'authorId':_0x4a8363['length']<0x5?_0x4a8363[0x3]:_0x4a8363[0x4],'markerCount':0x6==_0x4a8363['length']?_0x4a8363[0x5]:null};}function _0x2e7666(_0x4ed685){for(let _0x3bbd0f=0x0;_0x3bbd0f<_0x3ad1c9['length'];_0x3bbd0f++){if(_0x4ed685['isAdded']&&'insertion'==_0x3ad1c9[_0x3bbd0f]['type']&&_0x4ed685['isAdded']['userId']==_0x3ad1c9[_0x3bbd0f]['userId'])return _0x4ed685['isAddSuggestion']=_0x3ad1c9[_0x3bbd0f],void delete _0x4ed685['isAdded'];if(!_0x4ed685['isAdded']&&!_0x4ed685['isRemoved']&&'deletion'==_0x3ad1c9[_0x3bbd0f]['type'])return void(_0x4ed685['isRemoveSuggestion']=_0x3ad1c9[_0x3bbd0f]);}}}['_setDistance'](_0x174073,_0x1c6f97){let _0x5e9722=0x0,_0xc00d78=!0x1;const _0x1b5091=new Map();for(const _0x5e4c7d of _0x174073)_0x5e4c7d[_0x1c6f97]?_0xc00d78&&(_0x5e9722++,_0xc00d78=!0x1):(_0x5e9722++,_0xc00d78=!0x0),_0x1b5091['set'](_0x5e4c7d['id'],_0x5e9722);for(let _0x102af2=0x0;_0x102af2<_0x174073['length'];_0x102af2++){if('isRemoved'==_0x1c6f97&&_0x174073[_0x102af2]['isAdded']||'isAdded'==_0x1c6f97&&_0x174073[_0x102af2]['isRemoved'])continue;if('text'==_0x174073[_0x102af2]['type']){_0x174073[_0x102af2]['distance']=0x0;continue;}const _0x1696b2=_0x1b5091['get'](_0x174073[_0x102af2]['pairId']),_0x527396=_0x1b5091['get'](_0x174073[_0x102af2]['id']);_0x174073[_0x102af2]['distance']=_0x1696b2-_0x527396;}}['_getRevisionsRange'](_0x3ba0cb,_0x1cca30,_0x32e144=!0x1){const _0x5e493b=[];let _0x1ebc61=this['repository']['getIndex'](_0x3ba0cb),_0xa4ea7e=this['repository']['getIndex'](_0x1cca30);for(-0x1==_0xa4ea7e&&(_0xa4ea7e=this['repository']['_revisions']['length'],_0x32e144=!0x1);_0x1ebc61<_0xa4ea7e;)_0x5e493b['push'](this['repository']['getRevision'](_0x1ebc61)),_0x1ebc61++;return _0x32e144&&_0x5e493b['push'](this['repository']['getRevision'](_0x1ebc61)),_0x5e493b;}['_threeWayMerge'](_0x3608a5,_0x16467f,_0x27668e,_0x9b6de4){const _0x226cb5=this['editor']['model']['schema'];let _0x34f0af=_0x16467f;for(;_0x3608a5[_0x34f0af]&&_0x3608a5[_0x34f0af]['isAdded'];)_0x34f0af++;let _0x5123c0=_0x9b6de4;for(;_0x27668e[_0x5123c0]&&_0x27668e[_0x5123c0]['isRemoved'];)_0x5123c0++;_0x24fe53(_0x3608a5,_0x16467f,_0x34f0af),_0x24fe53(_0x27668e,_0x9b6de4,_0x5123c0);const _0x593a3b=_0x27668e['slice'](_0x9b6de4,_0x5123c0)['concat'](_0x3608a5['slice'](_0x16467f,_0x34f0af));return _0x593a3b['sort']((_0x530904,_0x571ce7)=>_0x530904['side']!=_0x571ce7['side']?_0x530904['side']-_0x571ce7['side']:_0x530904['level']!=_0x571ce7['level']?_0x530904['level']-_0x571ce7['level']:_0x530904['distance']!=_0x571ce7['distance']?_0x571ce7['distance']-_0x530904['distance']:!!_0x530904['isAdded']!=!!_0x571ce7['isAdded']?-0x1==_0x530904['side']||0x0==_0x530904['side']?_0x530904['isAdded']?-0x1:0x1:_0x530904['isAdded']?0x1:-0x1:_0x530904['index']-_0x571ce7['index']),{'commonTape':_0x593a3b,'iEnd':_0x34f0af,'jEnd':_0x5123c0};function _0x24fe53(_0x3aef57,_0x16dee0,_0x13d91a){let _0x1d6739=-0x1,_0x3ec0f0=Number['POSITIVE_INFINITY'],_0x435557=!0x0;for(let _0x18a0e0=_0x16dee0;_0x18a0e0<_0x13d91a;_0x18a0e0++)if(_0x226cb5['isInline'](_0x3aef57[_0x18a0e0]['item'])||(_0x435557=!0x1),_0x3aef57[_0x18a0e0]['item']['startIndex']<_0x16dee0&&(_0x1d6739=_0x18a0e0),_0x3aef57[_0x18a0e0]['item']['endIndex']>=_0x13d91a){_0x3ec0f0=_0x18a0e0;break;}_0x435557&&(_0x1d6739=_0x13d91a-0x1);for(let _0x3b4271=_0x16dee0;_0x3b4271<_0x13d91a;_0x3b4271++)_0x3aef57[_0x3b4271]['side']=_0x3b4271<=_0x1d6739?-0x1:_0x3b4271<_0x3ec0f0?0x0:0x1,_0x3aef57[_0x3b4271]['index']=_0x3b4271;let _0x4fce4e=0x0;for(let _0x55a1b7=_0x16dee0;_0x55a1b7<=_0x1d6739;_0x55a1b7++)0x0==_0x3aef57[_0x55a1b7]['distance']?_0x3aef57[_0x55a1b7]['level']=_0x4fce4e:(_0x4fce4e++,_0x3aef57[_0x55a1b7]['level']=_0x4fce4e,_0x4fce4e++);for(let _0x15fab=_0x16dee0;_0x15fab<_0x13d91a;_0x15fab++)0x0==_0x3aef57[_0x15fab]['side']&&(_0x3aef57[_0x15fab]['level']=_0x4fce4e);_0x4fce4e=0x0;for(let _0x5322e8=_0x13d91a-0x1;_0x5322e8>=_0x3ec0f0;_0x5322e8--)0x0==_0x3aef57[_0x5322e8]['distance']?_0x3aef57[_0x5322e8]['level']=_0x4fce4e:(_0x4fce4e--,_0x3aef57[_0x5322e8]['level']=_0x4fce4e,_0x4fce4e--);}}['_fixObsoleteTags'](_0x36e6bf){const _0x46bc96=new Map(),_0x2e123a=this['editor']['model']['schema'];for(let _0x4b9f41=0x1;_0x4b9f41<_0x36e6bf['length'];_0x4b9f41++){let _0x17e79e,_0x3c22a9,_0x23cb92;const _0x48c6a4=_0x36e6bf[_0x4b9f41],_0x3c1b8a=_0x36e6bf[_0x4b9f41-0x1];if('text'==_0x48c6a4['type'])continue;if(_0x48c6a4['type']!=_0x3c1b8a['type'])continue;if(!_0x2e123a['isBlock'](_0x3c1b8a['item'])||_0x2e123a['isLimit'](_0x3c1b8a['item']))continue;if(!_0x2e123a['isBlock'](_0x48c6a4['item'])||_0x2e123a['isLimit'](_0x48c6a4['item']))continue;if((_0x36e6bf[_0x4b9f41]['isAdded']||_0x36e6bf[_0x4b9f41]['isAddSuggestion'])&&_0x36e6bf[_0x4b9f41-0x1]['isRemoved'])_0x17e79e=_0x36e6bf[_0x4b9f41],_0x3c22a9=_0x36e6bf[_0x4b9f41-0x1],_0x23cb92=_0x4b9f41-0x1;else{if(!_0x36e6bf[_0x4b9f41]['isRemoved']||!_0x36e6bf[_0x4b9f41-0x1]['isAdded']&&!_0x36e6bf[_0x4b9f41-0x1]['isAddSuggestion'])continue;_0x17e79e=_0x36e6bf[_0x4b9f41-0x1],_0x3c22a9=_0x36e6bf[_0x4b9f41],_0x23cb92=_0x4b9f41;}const _0x4c31d7=_0x17e79e['level']==_0x3c22a9['level'],_0x2a0980=Math['abs'](_0x17e79e['level'])<Math['abs'](_0x3c22a9['level'])&&0x0==_0x3c22a9['distance'];(_0x4c31d7||_0x2a0980)&&(_0x46bc96['set'](_0x3c22a9['id'],_0x17e79e['id']),_0x36e6bf['splice'](_0x23cb92,0x1),_0x4b9f41--,_0x17e79e['isAdded']=!0x1);}for(let _0x4a8b95=0x0;_0x4a8b95<_0x36e6bf['length'];_0x4a8b95++)_0x46bc96['has'](_0x36e6bf[_0x4a8b95]['pairId'])&&(_0x36e6bf[_0x4a8b95]['pairId']=_0x46bc96['get'](_0x36e6bf[_0x4a8b95]['pairId']));}['_removeMissingPairs'](_0x43c45d){const _0x2a18a0=new Set(_0x43c45d['map'](_0x20a484=>_0x20a484['id']));for(let _0x3e7999=0x0;_0x3e7999<_0x43c45d['length'];_0x3e7999++)_0x2a18a0['has'](_0x43c45d[_0x3e7999]['pairId'])||0x0==_0x43c45d[_0x3e7999]['distance']||(_0x43c45d[_0x3e7999]['isIncorrect']=!0x0);return _0x43c45d['filter'](_0x214058=>!_0x214058['isIncorrect']);}['_markMismatchedRemovedTags'](_0x372fc1){const _0x27699a=new Set();for(let _0x301217=0x0;_0x301217<_0x372fc1['length'];_0x301217++){if(_0x27699a['has'](_0x372fc1[_0x301217]['id'])&&_0x372fc1[_0x301217]['isRemoved']&&(_0x372fc1[_0x301217]['isIncorrect']=!0x0),_0x372fc1[_0x301217]['isIncorrect'])continue;if(0x0==_0x372fc1[_0x301217]['distance'])continue;if('elementStart'!=_0x372fc1[_0x301217]['type'])continue;if(null==_0x372fc1[_0x301217]['pairId'])continue;let _0x5806e0=_0x301217+0x1,_0x4ac9ef=0x0;for(;_0x372fc1[_0x5806e0]['id']!=_0x372fc1[_0x301217]['pairId'];)'elementStart'==_0x372fc1[_0x5806e0]['type']?_0x4ac9ef++:'elementEnd'==_0x372fc1[_0x5806e0]['type']&&_0x4ac9ef--,_0x5806e0++;if(0x0!=_0x4ac9ef){if(_0x372fc1[_0x301217]['isRemoved'])_0x372fc1[_0x301217]['isIncorrect']=!0x0;else{for(;_0x5806e0!=_0x301217;)_0x372fc1[_0x5806e0]['isRemoved']&&0x0!=_0x372fc1[_0x5806e0]['distance']&&(_0x372fc1[_0x5806e0]['isIncorrect']=!0x0,_0x27699a['add'](_0x372fc1[_0x5806e0]['pairId'])),_0x5806e0--;}}}return _0x372fc1['filter'](_0x92fdc6=>!_0x92fdc6['isIncorrect']);}['_removeUnsupportedChanges'](_0x493bf3){const _0x1c768e=this['editor']['model']['schema'];for(let _0x2f345e=0x0;_0x2f345e<_0x493bf3['length'];_0x2f345e++){if(!(_0x493bf3[_0x2f345e]['isAdded']||_0x493bf3[_0x2f345e]['isAddSuggestion']||_0x493bf3[_0x2f345e]['isRemoved']||_0x493bf3[_0x2f345e]['isRemoveSuggestion']))continue;if(0x0==_0x493bf3[_0x2f345e]['distance'])continue;const _0x22fb29=_0x493bf3[_0x2f345e]['item'];_0x1c768e['isBlock'](_0x22fb29)||_0x1c768e['isLimit'](_0x22fb29)||(_0x493bf3[_0x2f345e]['isAdded']&&delete _0x493bf3[_0x2f345e]['isAdded'],_0x493bf3[_0x2f345e]['isAddSuggestion']&&delete _0x493bf3[_0x2f345e]['isAddSuggestion'],_0x493bf3[_0x2f345e]['isRemoveSuggestion']&&delete _0x493bf3[_0x2f345e]['isRemoveSuggestion'],_0x493bf3[_0x2f345e]['isRemoved']&&(_0x493bf3[_0x2f345e]['isIncorrect']=!0x0));}return _0x493bf3['filter'](_0x4c9cac=>!_0x4c9cac['isIncorrect']);}['_makeModelFromTape'](_0x212cd3,_0x3e8999,_0x199ebf){const _0x3c942e=new ModelDocumentFragment(),_0x248f73=[],_0x343ad0=new Map(),_0x5ec147=this['editor']['model'],_0x2b56cf=_0x5ec147['schema'],_0x5aa160=[_0x3c942e],_0x1770df={},_0x1c7fe7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x32f15e=null;const _0x25461a=[0x0];for(let _0x3c299d=0x0;_0x3c299d<_0x212cd3['length'];_0x3c299d++)if('elementStart'===_0x212cd3[_0x3c299d]['type']){_0x212cd3[_0x3c299d]['previousPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a);const _0x203c55=new ModelElement(_0x212cd3[_0x3c299d]['item']['name'],_0x212cd3[_0x3c299d]['item']['getAttributes']());_0x5aa160[0x0]['_appendChild'](_0x203c55),_0x25461a['push'](0x0),_0x5aa160['unshift'](_0x203c55),_0x212cd3[_0x3c299d]['nextPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a);}else'elementEnd'===_0x212cd3[_0x3c299d]['type']?(_0x5aa160['shift'](),_0x212cd3[_0x3c299d]['previousPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a),_0x25461a['pop'](),_0x25461a[_0x25461a['length']-0x1]++,_0x212cd3[_0x3c299d]['nextPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a)):(_0x212cd3[_0x3c299d]['previousPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a),_0x32f15e?_0x32f15e['_data']+=_0x212cd3[_0x3c299d]['item']['data']:_0x32f15e=new ModelText(_0x212cd3[_0x3c299d]['item']['data'],_0x212cd3[_0x3c299d]['item']['getAttributes']()),_0x212cd3[_0x3c299d+0x1]&&'text'===_0x212cd3[_0x3c299d+0x1]['type']&&_0xd4ed38(_0x32f15e,_0x212cd3[_0x3c299d+0x1]['item'])||(_0x5aa160[0x0]['_appendChild'](_0x32f15e),_0x32f15e=null),_0x25461a[_0x25461a['length']-0x1]+=_0x212cd3[_0x3c299d]['item']['offsetSize'],_0x212cd3[_0x3c299d]['nextPosition']=_0x5ec147['createPositionFromPath'](_0x3c942e,_0x25461a));for(let _0x348266=0x0;_0x348266<_0x212cd3['length'];_0x348266++){const _0x25c6c3=_0x212cd3[_0x348266]['previousPosition'],_0x222dea=_0x212cd3[_0x348266]['nextPosition'];for(const _0x577abb of _0x212cd3[_0x348266]['markersStart'])_0x343ad0['set'](_0x577abb,{'start':_0x25c6c3,'end':null});_0x4c166e('isRemoveSuggestion',_0x348266,_0x25c6c3,_0x222dea),_0x4c166e('isAddSuggestion',_0x348266,_0x25c6c3,_0x222dea),_0x4c166e('isRemoved',_0x348266,_0x25c6c3,_0x222dea),_0x4c166e('isAdded',_0x348266,_0x25c6c3,_0x222dea);for(const _0x22ebf4 of _0x212cd3[_0x348266]['markersEnd']){const _0x46a269=_0x343ad0['get'](_0x22ebf4);_0x46a269?_0x46a269['end']=_0x222dea:_0x343ad0['set'](_0x22ebf4,{'start':_0x222dea,'end':_0x222dea});}}for(const [_0xb1b816,_0x4d4fb8]of _0x343ad0){const _0x4c1c15=this['editor']['model']['createRange'](_0x4d4fb8['start'],_0x4d4fb8['end']);_0x3c942e['markers']['set'](_0xb1b816,_0x4c1c15);}return _0x248f73['sort']((_0x4ec056,_0x45dc64)=>{const _0x53d3ef=_0x3c942e['markers']['get']('revision:'+_0x4ec056['id']),_0x356b97=_0x3c942e['markers']['get']('revision:'+_0x45dc64['id']);return _0x53d3ef['start']['isBefore'](_0x356b97['start'])?-0x1:_0x53d3ef['start']['isAfter'](_0x356b97['start'])?0x1:_0x53d3ef['end']['isBefore'](_0x356b97['end'])?-0x1:_0x53d3ef['end']['isAfter'](_0x356b97['end'])?0x1:'add'===_0x4ec056['type']?-0x1:0x1;}),{'root':_0x3c942e,'changes':_0x248f73};function _0x4c166e(_0x1bf687,_0x2e9f59,_0x494f6a,_0x3a5f44){const _0x56a156=!!_0x212cd3[_0x2e9f59][_0x1bf687],_0x5535de=_0x56a156?_0x212cd3[_0x2e9f59][_0x1bf687]['userId']:null,_0x55d2ef=_0x2e9f59===_0x212cd3['length']-0x1,_0x545e87=_0x1c7fe7[_0x1bf687][0x0],_0x5b1cf9=_0x2b56cf['isObject'](_0x212cd3[_0x2e9f59]['item']);!_0x1770df[_0x1bf687]&&_0x56a156?_0x1770df[_0x1bf687]={'start':_0x494f6a,'tapeItem':_0x212cd3[_0x2e9f59],'userId':_0x5535de,'type':_0x1bf687}:_0x1770df[_0x1bf687]&&!_0x56a156?(_0x1770df[_0x1bf687]['end']=_0x494f6a,_0x55f724(_0x1770df[_0x1bf687]),_0x1770df[_0x1bf687]=null):_0x1770df[_0x1bf687]&&_0x56a156&&_0x1770df[_0x1bf687]['userId']!==_0x5535de&&(_0x1770df[_0x1bf687]['end']=_0x494f6a,_0x545e87&&_0x545e87['userId']===_0x1770df[_0x1bf687]['userId']||_0x55f724(_0x1770df[_0x1bf687]),_0x1770df[_0x1bf687]={'start':_0x494f6a,'tapeItem':_0x212cd3[_0x2e9f59],'userId':_0x5535de,'type':_0x1bf687}),_0x1770df[_0x1bf687]&&_0x5b1cf9&&('elementStart'!==_0x212cd3[_0x2e9f59]['type']||_0x545e87&&_0x545e87['userId']===_0x5535de||_0x1c7fe7[_0x1bf687]['unshift']({'userId':_0x5535de,'object':_0x212cd3[_0x2e9f59]['item'],'change':_0x1770df[_0x1bf687]}),'elementEnd'===_0x212cd3[_0x2e9f59]['type']&&_0x545e87&&_0x545e87['object']===_0x212cd3[_0x2e9f59]['item']&&(_0x1c7fe7[_0x1bf687]['shift'](),_0x1770df[_0x1bf687]=_0x545e87['change'])),_0x1770df[_0x1bf687]&&_0x55d2ef&&(_0x1770df[_0x1bf687]['end']=_0x3a5f44,_0x55f724(_0x1770df[_0x1bf687]),_0x1770df[_0x1bf687]=null);}function _0x55f724({start:_0x517c2d,end:_0x4b75b4,tapeItem:_0x48af9c,userId:_0x13fb9c,type:_0x4a894b}){const _0x3f948a=_0x48af9c['item'],_0x4b5f2e=_0x5ec147['schema']['isBlock'](_0x3f948a)&&!_0x5ec147['schema']['isLimit'](_0x3f948a),_0x5d98d3=_0x517c2d['nodeAfter']==_0x4b75b4['parent']&&_0x4b75b4['isAtStart'];if(_0x4b5f2e&&_0x5d98d3)return;const _0x2a4ed9=_0x5ec147['createRange'](_0x517c2d,_0x4b75b4),_0x328757=_0x3e8999['get'](_0x13fb9c),_0x59a44c=new ChangeItem({'author':_0x328757,'type':'isAdded'==_0x4a894b||'isAddSuggestion'==_0x4a894b?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4a894b||'isRemoveSuggestion'==_0x4a894b},'createdAt':new Date(),'rootName':_0x199ebf});_0x248f73['push'](_0x59a44c),_0x3c942e['markers']['set']('revision:'+_0x59a44c['id'],_0x2a4ed9);}function _0xd4ed38(_0x4576df,_0x4695a5){const _0x5e37bf=_0x4576df['getAttributes'](),_0x5d62e9=_0x4695a5['getAttributes']();for(const _0xa009f6 of _0x5e37bf){if(_0xa009f6[0x1]!==_0x4695a5['getAttribute'](_0xa009f6[0x0]))return!0x1;_0x5d62e9['next']();}return _0x5d62e9['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5913ba=>{const _0xd41f9e=_0x5913ba['markerName']['split'](':')[0x1],_0x3309e7=this['_getChangeFromId'](_0xd41f9e);if(!_0x3309e7)return null;const _0x59248c='add'==_0x3309e7['type']?'insertion':'deletion',_0x5847b4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x59248c];return _0x3309e7['data']['isSuggestion']&&_0x5847b4['push']('ck-suggestion-marker-'+_0x59248c+'-new'),this['activeChange']==_0x3309e7&&_0x5847b4['push']('ck-suggestion-marker--active'),{'classes':_0x5847b4,'attributes':{'data-change-id':_0xd41f9e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1127ec=>{_0x1127ec['on']('element:pre',(_0x836e8c,_0x4e4a46,_0x219505)=>{const _0x3de794=_0x4e4a46['viewItem']['getChild'](0x0);if(!_0x3de794||!_0x3de794['is']('element','code'))return;if(!_0x219505['consumable']['consume'](_0x3de794,{'attributes':['vid_start','vid_end']}))return;const _0x2f05d6=_0x4e4a46['modelRange']['start']['nodeAfter'];_0x219505['writer']['setAttribute']('vid_start',_0x3de794['getAttribute']('vid_start'),_0x2f05d6),_0x219505['writer']['setAttribute']('vid_end',_0x3de794['getAttribute']('vid_end'),_0x2f05d6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x128bf0=>{_0x128bf0['on']('element',(_0x195cfc,_0x388978,_0x13925a)=>{if(!_0x13925a['consumable']['consume'](_0x388978['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x388978['modelRange']['isCollapsed'])return;const _0xbe63fa=_0x388978['modelRange']['start']['nodeAfter'];_0xbe63fa['hasAttribute']('vid_start')||_0xbe63fa['hasAttribute']('vid')||(_0x13925a['writer']['setAttribute']('vid_start',_0x388978['viewItem']['getAttribute']('vid_start'),_0xbe63fa),_0x13925a['writer']['setAttribute']('vid_end',_0x388978['viewItem']['getAttribute']('vid_end'),_0xbe63fa));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2db462=>_0x2db462['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x34e8e2,[,_0x3c20b7])=>{['vid_start','vid_end','vid']['includes'](_0x3c20b7)&&(_0x34e8e2['return']=!0x0,_0x34e8e2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x134e33=>{_0x134e33['on']('attribute:vid',(_0x20bdd6,_0xf94cf9,_0x3d4dcd)=>{if('\x20'!=_0xf94cf9['item']['data']||_0xf94cf9['item']['parent']['maxOffset']>0x1)return;if(!_0x3d4dcd['consumable']['consume'](_0xf94cf9['item'],_0x20bdd6['name']))return;const _0x3d0507=_0x3d4dcd['writer'],_0x503cdf=_0x3d4dcd['mapper']['toViewRange'](_0xf94cf9['range']);_0x3d0507['wrap'](_0x503cdf,_0x3d0507['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',downcastSplitMergeMarker(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x14ccb0,_0x32e797,_0x4a6c6b)=>{const _0x487d74=_0x4a6c6b['mapper']['markerNameToElements'](_0x32e797['markerName']);if(_0x487d74){for(const _0x5ab578 of _0x487d74)(_0x5ab578['hasClass']('ck-suggestion-marker-split')||_0x5ab578['hasClass']('ck-suggestion-marker-merge'))&&(_0x4a6c6b['mapper']['unbindElementFromMarkerName'](_0x5ab578,_0x32e797['markerName']),_0x4a6c6b['writer']['remove'](_0x5ab578));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x345862,_0x4cbe4b,_0x40a508)=>{const _0x5d627d=_0x4cbe4b['markerName']['split'](':')[0x1],_0x2fc321=this['_getChangeFromId'](_0x5d627d);if(!_0x2fc321)return null;const _0x57ed87='add'==_0x2fc321['type']?'split':'merge';if(_0x40a508['consumable']['test'](_0x4cbe4b['markerRange'],_0x345862['name']))for(const _0x1c6540 of _0x4cbe4b['markerRange']['getItems']()){if(!_0x1c6540['is']('element','softBreak'))continue;const _0x113248=_0x40a508['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x57ed87}),_0x5bd27d=_0x40a508['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c6540));_0x2fc321['data']['isSuggestion']&&_0x40a508['writer']['addClass']('ck-suggestion-marker-'+_0x57ed87+'-new',_0x113248),this['activeChange']==_0x2fc321&&_0x40a508['writer']['addClass']('ck-suggestion-marker--active',_0x113248),_0x40a508['writer']['insert'](_0x5bd27d,_0x113248),_0x40a508['mapper']['bindElementToMarker'](_0x113248,_0x4cbe4b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x22871a=>{for(const _0xd57912 of this['editor']['model']['document']['getRootNames']()){const _0x51157e=this['editor']['model']['document']['getRoot'](_0xd57912),_0x453f78=this['editor']['editing']['view']['document']['getRoot'](_0xd57912);if(_0x453f78){const _0x48c5c6=_0x51157e['getAttribute']('revisionHistoryAttachChange');if(_0x22871a['removeAttribute']('data-change-id',_0x453f78),_0x22871a['removeClass']('ck-revision-history-root-add',_0x453f78),_0x22871a['removeClass']('ck-revision-history-root-remove',_0x453f78),_0x22871a['removeClass']('ck-revision-history-root--active',_0x453f78),_0x48c5c6){const _0x5a142c=this['_getChangeFromId'](_0x48c5c6);if(!_0x5a142c)return null;_0x22871a['setAttribute']('data-change-id',_0x48c5c6,_0x453f78),_0x22871a['addClass']('ck-revision-history-root-'+_0x5a142c['type'],_0x453f78),this['activeChange']==_0x5a142c&&_0x22871a['addClass']('ck-revision-history-root--active',_0x453f78);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1da3f0=>'revision-comment:'+_0x1da3f0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2c2574=>'revision-suggestion:'+_0x2c2574,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x43bb5d=>({'name':'suggestion:'+_0x43bb5d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x303f67=>{const _0x7b9e7=_0x303f67['markerName']['split'](':')[0x1];return'insertion'!=_0x7b9e7&&'deletion'!=_0x7b9e7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x7b9e7]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',downcastSplitMergeMarkerSuggestion(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',downcastSplitMergeMarkerSuggestion(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xcafa4b,_0x7772a9,_0x360832)=>{const _0x4c214f=_0x360832['mapper']['markerNameToElements'](_0x7772a9['markerName']);if(_0x4c214f){for(const _0xbdaeed of _0x4c214f)_0xbdaeed['is']('uiElement')&&(_0x360832['mapper']['unbindElementFromMarkerName'](_0xbdaeed,_0x7772a9['markerName']),_0x360832['writer']['remove'](_0xbdaeed));}},{'priority':'high'});}['_getChangeFromId'](_0x21dd40){return this['_changeIdToChange']['get'](_0x21dd40);}['_getViewForChange'](_0x42e5af){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new ChangeDetailsView(this['editor']['locale'],_0x42e5af),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x868ee0,_0x448022,_0x4394e0,_0x1cac19)=>{_0x1cac19&&this['_balloon']['remove'](_0x1cac19),_0x4394e0&&(this['_balloon']['add']({'view':_0x4394e0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x30e792=this['editor']['editing'],_0x1a8474=this['_getChangeFromId'](_0x4394e0['changeId']);let _0x31865f;if(_0x1a8474['data']['isOnRoot']){const _0x3c4608=_0x30e792['view']['getDomRoot'](_0x1a8474['rootName']);_0x31865f=Array['from'](_0x3c4608['getClientRects']());}else{const _0x4ec227=this['editor']['model']['markers']['get']('revision:'+_0x4394e0['changeId']);_0x31865f=Array['from'](_0x30e792['mapper']['markerNameToElements'](_0x4ec227['name']))['map'](_0x560fd5=>_0x30e792['view']['domConverter']['mapViewToDom'](_0x560fd5))['map'](_0x2dd89e=>Array['from'](_0x2dd89e['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31865f[0x0];return _0x31865f['find'](_0x3cd0e7=>_0x3cd0e7['top']-0x3<=this['_activeViewTarget']['y']&&_0x3cd0e7['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3cd0e7['left']-0x3<=this['_activeViewTarget']['x']&&_0x3cd0e7['right']+0x3>=this['_activeViewTarget']['x'])||_0x31865f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x28f3b1,_0x755f21,_0x13f68d,_0x4be03e)=>{this['activeView']=_0x13f68d?this['_getViewForChange'](_0x13f68d):null,this['editor']['model']['change'](()=>{const _0x44849c=this['editor']['editing'];_0x4be03e&&(_0x4be03e['data']['isOnRoot']?_0x44849c['view']['change'](_0x122390=>{_0x122390['removeClass']('ck-revision-history-root--active',_0x44849c['view']['document']['getRoot'](_0x4be03e['rootName']));}):_0x44849c['reconvertMarker']('revision:'+_0x4be03e['id'])),_0x13f68d&&(_0x13f68d['data']['isOnRoot']?_0x44849c['view']['change'](_0x243210=>{_0x243210['addClass']('ck-revision-history-root--active',_0x44849c['view']['document']['getRoot'](_0x13f68d['rootName']));}):_0x44849c['reconvertMarker']('revision:'+_0x13f68d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x333292,_0x3493ca)=>{if(this['activeChange'])return;const _0x5a622c=this['_findChangeIdFromDomTarget'](_0x3493ca['target']),_0x540d65=this['_changeIdToChange']['get'](_0x5a622c);_0x540d65?(this['_activeViewTarget']={'x':_0x3493ca['domEvent']['x'],'y':_0x3493ca['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x540d65)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x282c5c,_0x3230e6)=>{const _0x324444=this['_findChangeIdFromDomTarget'](_0x3230e6['target']),_0x40cbd5=this['_changeIdToChange']['get'](_0x324444);_0x40cbd5?(this['_activeViewTarget']={'x':_0x3230e6['domEvent']['x'],'y':_0x3230e6['domEvent']['y']},_0x40cbd5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x40cbd5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xa7a26c){do{const _0x41707e=_0xa7a26c['getAttribute']('data-change-id');if(_0x41707e)return _0x41707e;_0xa7a26c=_0xa7a26c['parent'];}while(_0xa7a26c);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x11b6f1=>{for(const _0x275333 of this['editor']['model']['markers'])_0x11b6f1['removeMarker'](_0x275333);});}}function downcastSplitMergeMarker(_0x25992e){const _0x37a54e=_0x25992e['plugins']['get']('RevisionViewer');return(_0xf909b7,_0x27862b,_0x2cf2c1)=>{const _0x516f69=_0x27862b['markerName']['split'](':')[0x1],_0x848ae0=_0x37a54e['_getChangeFromId'](_0x516f69);if(!_0x848ae0)return null;const _0x4433c8='add'==_0x848ae0['type']?'split':'merge';if(!_0x2cf2c1['consumable']['test'](_0x27862b['markerRange'],_0xf909b7['name']))return;const _0x3d1b2a=_0x27862b['markerRange']['getWalker'](),_0x53e4a4=_0x27862b['markerRange']['start'],_0x53d6cb=_0x25992e['model']['schema'];let _0x1d55c0=null,_0x60a5e7=null,_0x4bcb8e=!0x1,_0x4b10ef=!0x1;for(const _0x1fb8c5 of _0x3d1b2a){const _0x359548=_0x1fb8c5['item'];_0x4bcb8e=_0x4bcb8e||_0x53d6cb['isContent'](_0x359548);const _0x1e043f=_0x2cf2c1['mapper']['toViewElement'](_0x359548);if(_0x1e043f&&_0x1e043f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fb8c5['type']&&(_0x53d6cb['isBlock'](_0x359548)&&!_0x53d6cb['isLimit'](_0x359548)&&(_0x359548['nextSibling']||_0x53e4a4['isAtEnd']?_0x1d55c0&&_0x1d55c0['parent']==_0x359548||(_0x1d55c0=_0x359548,_0x39d60f(_0x1fb8c5['previousPosition']),_0x4b10ef=!0x0):_0x60a5e7=_0x60a5e7||_0x1fb8c5['previousPosition']));}function _0x39d60f(_0xf2638){const _0xe73a32=_0x2cf2c1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4433c8}),_0x26ed34=_0x2cf2c1['mapper']['toViewPosition'](_0xf2638);_0x848ae0['data']['isSuggestion']&&_0x2cf2c1['writer']['addClass']('ck-suggestion-marker-'+_0x4433c8+'-new',_0xe73a32),_0x37a54e['activeChange']==_0x848ae0&&_0x2cf2c1['writer']['addClass']('ck-suggestion-marker--active',_0xe73a32),_0x2cf2c1['writer']['insert'](_0x26ed34,_0xe73a32),_0x2cf2c1['mapper']['bindElementToMarker'](_0xe73a32,_0x27862b['markerName']);}_0x4bcb8e||_0x4b10ef||!_0x60a5e7||_0x39d60f(_0x60a5e7);};}function downcastSplitMergeMarkerSuggestion(_0x1afccb,_0x353490){return(_0x353ded,_0x5d9b8e,_0x23596a)=>{if(!_0x23596a['consumable']['test'](_0x5d9b8e['markerRange'],_0x353ded['name']))return;const _0x3c1f61=_0x5d9b8e['markerRange']['getWalker'](),_0x1b70c8=_0x5d9b8e['markerRange']['start'],_0x1bbc14=_0x1afccb['model']['schema'];let _0xab6e9f=null,_0x358342=null,_0x21162e=!0x1,_0x1646e7=!0x1;for(const _0x5cc605 of _0x3c1f61){const _0x578cf9=_0x5cc605['item'];_0x21162e=_0x21162e||_0x1bbc14['isContent'](_0x578cf9);const _0x11b56b=_0x23596a['mapper']['toViewElement'](_0x578cf9);if(_0x11b56b&&_0x11b56b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5cc605['type']&&(_0x1bbc14['isBlock'](_0x578cf9)&&!_0x1bbc14['isLimit'](_0x578cf9)&&(_0x578cf9['nextSibling']||_0x1b70c8['isAtEnd']?_0xab6e9f&&_0xab6e9f['parent']==_0x578cf9||(_0xab6e9f=_0x578cf9,_0x10c564(_0x5cc605['previousPosition']),_0x1646e7=!0x0):_0x358342=_0x358342||_0x5cc605['previousPosition']));}function _0x10c564(_0x2b9d69){const _0x543c5c=_0x23596a['mapper']['toViewPosition'](_0x2b9d69),_0x261656=_0x23596a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x353490});_0x23596a['writer']['insert'](_0x543c5c,_0x261656),_0x23596a['mapper']['bindElementToMarker'](_0x261656,_0x5d9b8e['markerName']);}_0x21162e||_0x1646e7||!_0x358342||_0x10c564(_0x358342);};}class RestoreRevisionCommand extends Command{constructor(_0xb205f6){super(_0xb205f6);const _0x3c36d8=_0xb205f6['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['listenTo'](_0x3c36d8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3c36d8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5a203b=this['editor'],_0x25e8a0=_0x5a203b['plugins']['get'](RevisionViewer),_0x220478=_0x25e8a0['isReady']?_0x25e8a0['diff']['newRevisionId']:null;_0x5a203b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x220478);}['refresh'](){const {isReady:_0x3dd47f,isEnabled:_0x19d124,repository:_0x163225,diff:_0x2ae9e5}=this['editor']['plugins']['get'](RevisionViewer),_0x3f35cd=_0x2ae9e5&&_0x163225['getLaterVisibleRevision'](_0x2ae9e5['newRevisionId']);this['isEnabled']=_0x3dd47f&&_0x19d124&&Boolean(_0x3f35cd);}}class ShowChangeCommand extends Command{['_step'];constructor(_0x31950b,{direction:_0x1145bc}){super(_0x31950b);const _0x3fc9e7=_0x31950b['plugins']['get'](RevisionViewer);this['affectsData']=!0x1,this['_step']='forward'===_0x1145bc?0x1:-0x1,this['listenTo'](_0x3fc9e7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3fc9e7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3fc9e7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x645cfc=this['editor'],_0x4a82b0=_0x645cfc['plugins']['get'](RevisionViewer),{isNavigationMode:_0x372759,currentChangeNumber:_0x10be23}=_0x4a82b0;let _0x4a0f5c;if(_0x4a82b0['activeChange']=_0x372759?_0x4a82b0['diff']['changes']['get'](_0x10be23+this['_step']):_0x4a82b0['diff']['changes']['first'],_0x4a82b0['activeChange']['data']['isOnRoot'])_0x4a0f5c=_0x645cfc['editing']['view']['getDomRoot'](_0x4a82b0['activeChange']['rootName']);else{const _0x2a8882=_0x645cfc['model']['markers']['get']('revision:'+_0x4a82b0['activeChange']['id']);_0x4a0f5c=getMarkerDomElement(_0x645cfc['editing'],_0x2a8882);}scrollViewportToShowTarget({'target':_0x4a0f5c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x26c856,currentChangeNumber:_0x23e3a3,numberOfChanges:_0x20cfdf,isReady:_0x181ffc,isEnabled:_0x15f0fe}=this['editor']['plugins']['get'](RevisionViewer);this['isEnabled']=!!(_0x15f0fe&&_0x181ffc&&_0x20cfdf)&&(!_0x26c856||(0x1===this['_step']?_0x23e3a3<_0x20cfdf-0x1:_0x23e3a3>0x0));}}class ChangesNavigationView extends View{constructor(_0xacf1c6){super(_0xacf1c6);const _0xcee74c=this['bindTemplate'],_0x283b4f=new ButtonView(_0xacf1c6),_0x495d9b=new ButtonView(_0xacf1c6);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',(_0x30fff7,_0xbbabdf)=>_0x30fff7&&_0xbbabdf>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xf9fa8,_0x3c1167,_0x2e4da1,_0x16d211)=>{if(!_0xf9fa8)return getTranslation$5(_0xacf1c6,'Loading...');if(!_0x2e4da1)return getTranslation$5(_0xacf1c6,'No\x20changes');const _0x25c965=getTranslation$5(_0xacf1c6,'NUMBER_OF_CHANGES',_0x2e4da1);return _0x16d211?getTranslation$5(_0xacf1c6,'X_OF_Y_CHANGES',[_0x3c1167+0x1,_0x2e4da1]):_0x25c965;}),_0x283b4f['set']({'label':getTranslation$5(_0xacf1c6,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':IconChevronUp}),_0x495d9b['set']({'label':getTranslation$5(_0xacf1c6,'Show\x20next\x20change'),'tooltip':!0x0,'icon':IconChevronDown}),_0x283b4f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x495d9b['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x283b4f['on']('execute',()=>this['fire']('execute','backward')),_0x495d9b['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',_0xcee74c['if']('_isStatusLabelVisible','ck-hidden',_0x1b2710=>!_0x1b2710)]},'children':[{'text':_0xcee74c['to']('isNavigationMode',_0x3e40af=>_0x3e40af?getTranslation$5(_0xacf1c6,'EDIT_X_OF_Y_REVISIONS')+':\x20':getTranslation$5(_0xacf1c6,'Total')+':\x20')}]},{'text':_0xcee74c['to']('_statusText')}]},new ToolbarSeparatorView(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x283b4f,_0x495d9b]}]});}}const OVERLAY_CSS_CLASS='ck-editor__editable__loading-overlay';class RevisionViewerLoadingOverlay extends Plugin{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4973e2=this['editor']['editing']['view'];_0x4973e2['change'](_0x1632bf=>{for(const _0x3ef49b of _0x4973e2['document']['roots'])_0x1632bf['addClass'](OVERLAY_CSS_CLASS,_0x3ef49b);});}['hide'](){const _0x5a3977=this['editor']['editing']['view'];_0x5a3977['change'](_0x32ba57=>{for(const _0x2a6c41 of _0x5a3977['document']['roots'])_0x32ba57['removeClass'](OVERLAY_CSS_CLASS,_0x2a6c41);});}}class RevisionViewerUI extends Plugin{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer,RevisionViewerLoadingOverlay];}['init'](){const _0x1a0a9c=this['editor'],_0x3da22b=_0x1a0a9c['plugins']['get'](RevisionViewer),_0x1d09c9=_0x1a0a9c['plugins']['get'](RevisionViewerLoadingOverlay);_0x1a0a9c['ui']['componentFactory']['add']('exitToEditing',_0x3b7495=>{const _0x4c9056=new ButtonView(_0x3b7495);return _0x4c9056['set']({'label':getTranslation$5(_0x3b7495,'Back\x20to\x20editing'),'icon':IconUndo,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4c9056,'execute',()=>{_0x1a0a9c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4c9056;}),_0x1a0a9c['ui']['componentFactory']['add']('restoreRevision',_0x5b6b7b=>{const _0x5416ff=new ButtonView(_0x5b6b7b);return _0x5416ff['set']({'label':getTranslation$5(_0x5b6b7b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5416ff['bind']('isEnabled')['to'](_0x1a0a9c['commands']['get']('restoreRevision')),this['listenTo'](_0x5416ff,'execute',()=>_0x1a0a9c['execute']('restoreRevision')),_0x5416ff;}),_0x1a0a9c['ui']['componentFactory']['add']('changesNavigation',_0x1059f1=>{const _0x585c4d=new ChangesNavigationView(_0x1059f1),_0x6c1b93=_0x1a0a9c['commands']['get']('showPreviousChange'),_0x5dcdae=_0x1a0a9c['commands']['get']('showNextChange');return _0x585c4d['bind']('isBackwardNavigationEnabled')['to'](_0x6c1b93,'isEnabled'),_0x585c4d['bind']('isForwardNavigationEnabled')['to'](_0x5dcdae,'isEnabled'),_0x585c4d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3da22b),this['listenTo'](_0x585c4d,'execute',(_0x599ca8,_0x218e5f)=>{_0x1a0a9c['execute']('forward'===_0x218e5f?'showNextChange':'showPreviousChange');}),_0x585c4d;}),_0x1d09c9['show'](),_0x3da22b['on']('change:isReady',(_0x1b8f60,_0x3b50b2,_0x30b0f2)=>{_0x30b0f2?_0x1d09c9['hide']():_0x1d09c9['show']();});}}class RevisionNameView extends LabeledFieldView{['_resizeObserver']=null;constructor(_0x1acb14,_0xbc95ab){super(_0x1acb14,_0xbc95ab);const _0x669898=this['bindTemplate'];this['set']({'label':getTranslation$5(_0x1acb14,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=getTranslation$5(_0x1acb14,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x669898['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new _0x3ccca1(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x22a399=this['fieldView']['element'];this['_tooltipString']=_0x22a399['scrollWidth']>_0x22a399['clientWidth']&&_0x22a399['value']||'';}}class RevisionAuthorView extends View{constructor(_0x26000c,_0x45b3b1,_0x4ff016){super(_0x26000c);const _0x3bfcbc=new IconView();_0x3bfcbc['set']({'content':IconUser,'viewBox':'0\x200\x2011\x2010'});const _0xd47839=['ck','ck-revision-history-sidebar__revision-author'];_0x4ff016&&_0xd47839['push']('ck-revision-history-sidebar__revision-author_creator');const _0x187ec9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':getTranslation$5(_0x26000c,_0x4ff016?'Revision\x20creator':'Revision\x20author')},'children':[_0x3bfcbc,_0x45b3b1['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd47839},'children':_0x187ec9});}}function dateToPrettyFormat(_0x190653,_0x37b0eb){return _0x37b0eb['toLocaleDateString'](_0x190653,{'month':'long','day':'numeric'})+',\x20'+_0x37b0eb['toLocaleTimeString'](_0x190653,{'hour':'numeric','minute':'numeric'});}function createActionsDropdownView(_0xb2e1d8,_0x49fced){const _0x31bf3e=_0xb2e1d8['bindTemplate'],_0x56974c=_0xb2e1d8['locale'],_0x3b4c25=createDropdown(_0x56974c);_0x3b4c25['panelPosition']='sw';const _0x2e936b=_createDropdownOptions(_0xb2e1d8,_0x49fced);return _0xb2e1d8['bind']('isActionsDropdownOpen')['to'](_0x3b4c25,'isOpen'),_0x3b4c25['buttonView']['set']({'label':getTranslation$5(_0x56974c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':IconThreeVerticalDots}),_0x3b4c25['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x31bf3e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x31bf3e['to'](_0x36a6c1=>_0x36a6c1['stopPropagation']())}}),_0x3b4c25['on']('execute',_0x2bb4fd=>{_0xb2e1d8['isReady']&&'function'==typeof _0x2bb4fd['source']['_action']&&_0x2bb4fd['source']['_action'](_0xb2e1d8);}),addListToDropdown(_0x3b4c25,_0x2e936b,{'role':'menu'}),_0x3b4c25['listenTo'](_0xb2e1d8,'change:isActionsDropdownOpen',(_0x34f9b4,_0x25551f,_0x4edd97)=>{if(_0x4edd97)for(const _0x44ace4 of _0x3b4c25['listView']['items']){const _0xa1c413=_0x44ace4['children']['first'],_0x2519a7=_0x49fced['find'](_0x25c735=>_0x25c735['action']===_0xa1c413['_action'])['isVisible'];_0x44ace4['isVisible']=void 0x0===_0x2519a7||_0x2519a7(_0xb2e1d8);}}),_0x3b4c25;}function _createDropdownOptions(_0x317ce6,_0xb138ff){const _0x173d93=_getLocalizedOptions(_0x317ce6,_0xb138ff),_0x36aef7=new Collection();for(const _0x540987 of _0x173d93){const _0x5e7a24={'type':'button','model':new UIModel({'label':_0x540987['name'],'class':_0x540987['class'],'withText':!0x0,'role':'menuitem','_action':_0x540987['action']})};_0x5e7a24['model']['bind']('isEnabled')['to'](_0x317ce6,'isActionsDropdownOpen',_0x2a42ef=>'function'!=typeof _0x540987['isEnabled']||(!_0x2a42ef||_0x540987['isEnabled'](_0x317ce6))),_0x36aef7['add'](_0x5e7a24);}return _0x36aef7;}function _getLocalizedOptions(_0x4bcc06,_0x2fd107){const _0x4b8d74=_0x4bcc06['locale'],_0x597b6d={'Compare\x20against\x20selected':getTranslation$5(_0x4b8d74,'Compare\x20against\x20selected'),'Name\x20this\x20revision':getTranslation$5(_0x4b8d74,'Name\x20this\x20revision'),'Restore\x20this\x20revision':getTranslation$5(_0x4b8d74,'Restore\x20this\x20revision')};return _0x2fd107['map'](_0x4f15a3=>{const _0x24d57a=_0x597b6d[_0x4f15a3['name']];return _0x24d57a&&_0x24d57a!==_0x4f15a3['name']&&(_0x4f15a3['name']=_0x24d57a),_0x4f15a3;});}class RevisionView extends/* #__PURE__ -- @preserve */
ConfirmMixin(View){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3672f6,_0x32e2f5,_0x33eab5,_0x45e9e8){super(_0x3672f6);const _0x2d1873=this['bindTemplate'],_0x30ec26=getAuthorViews(_0x3672f6,_0x32e2f5);this['id']=_0x32e2f5['id'],this['_revision']=_0x32e2f5,this['_requireRevisionName']=_0x45e9e8,this['bind']('name','createdAt')['to'](_0x32e2f5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x188d5b=>dateToPrettyFormat(_0x3672f6['uiLanguage'],_0x188d5b)),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new RevisionNameView(_0x3672f6,createLabeledInputText),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4c2295=>_0x4c2295||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x548076,_0x1de925)=>_0x548076&&_0x1de925),this['revisionActionsView']=_0x33eab5&&_0x33eab5['length']?createActionsDropdownView(this,_0x33eab5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2d1873['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2d1873['if']('isEnabled','ck-disabled',_0x123970=>!_0x123970),_0x2d1873['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2d1873['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2d1873['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':_0x2d1873['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':_0x30ec26}]},this['revisionActionsView']],'on':{'click':_0x2d1873['to'](_0x331908=>{_0x331908['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x29168d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x29168d,'change',()=>{this['_requireRevisionName']&&!_0x29168d['value']||this['fire']('setName',{'id':this['id'],'name':_0x29168d['value']}),_0x29168d['value']||(_0x29168d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function getAuthorViews(_0x1bf137,_0x4d9d5c){const _0x570404=Array['from'](_0x4d9d5c['authors'])['filter'](_0x4864f2=>_0x4864f2!=_0x4d9d5c['creator']);return _0x4d9d5c['creator']&&_0x570404['unshift'](_0x4d9d5c['creator']),_0x570404['map'](_0x508c5f=>new RevisionAuthorView(_0x1bf137,_0x508c5f,_0x508c5f==_0x4d9d5c['creator']));}function getDateTimePeriodInfo(_0x3a2b9c,_0x588cda){const _0x4f7968=DateTime['fromJSDate'](_0x3a2b9c)['setLocale'](_0x588cda),_0x2137ed=DateTime['local'](),_0x1e3df8=_0x2137ed['minus']({'days':0x1})['startOf']('day');let _0x174674,_0x59eda2;return _0x4f7968['hasSame'](_0x2137ed,'day')?(_0x174674=_0x4f7968['startOf']('day')['toJSDate'](),_0x59eda2=_0x4f7968['toRelativeCalendar']()):_0x4f7968['hasSame'](_0x1e3df8,'day')?(_0x174674=_0x1e3df8['toJSDate'](),_0x59eda2=_0x4f7968['toRelativeCalendar']()):_0x4f7968['hasSame'](_0x2137ed,'week')?(_0x174674=_0x4f7968['startOf']('week')['toJSDate'](),_0x59eda2=_0x4f7968['weekdayLong']||''):_0x4f7968['hasSame'](_0x2137ed,'year')?(_0x174674=_0x4f7968['startOf']('month')['toJSDate'](),_0x59eda2=_0x4f7968['monthLong']||''):(_0x174674=_0x4f7968['startOf']('year')['toJSDate'](),_0x59eda2=String(_0x4f7968['year'])),{'startDate':_0x174674,'localizedPeriodName':_0x59eda2};}class RevisionsSidebarTimePeriodView extends View{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3acb2d,_0x4c0d23,_0x4bb23c,_0x564adf){super(_0x3acb2d);const _0x211132=getDateTimePeriodInfo(_0x4c0d23,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4c0d23,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4bb23c,this['_requireRevisionName']=_0x564adf,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':_0x211132}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2d1ecb){const _0x20389e=new RevisionView(this['locale'],_0x2d1ecb,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x20389e);}['removeRevision'](_0x43bc59){const _0x4e2143=this['revisionViews']['find'](_0x5b8cd3=>_0x5b8cd3['id']===_0x43bc59['id']);this['revisionViews']['remove'](_0x4e2143);}}class RevisionsSidebarHeaderView extends View{constructor(_0x12b0e4){super(_0x12b0e4);const _0xcdbe57=new IconView();_0xcdbe57['content']=IconHistory,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xcdbe57,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[getTranslation$5(_0x12b0e4,'Revision\x20history')]}]});}}class RevisionsSidebarView extends View{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x43fa62,_0x10b897,_0x1c2f9e,_0x161531){super(_0x43fa62);const _0x32c4bd=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x10b897,this['_revisionActions']=_0x1c2f9e,this['_requireRevisionName']=_0x161531,this['on']('select',(_0x28e719,_0x2a43ad)=>{this['fire']('revisionSelected',_0x2a43ad);}),this['on']('setName',(_0x5404ba,_0x3d499e)=>{this['fire']('revisionSetName',_0x3d499e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new RevisionsSidebarHeaderView(_0x43fa62),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x32c4bd['if']('isEnabled','ck-disabled',_0x4f42c3=>!_0x4f42c3)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xda848a of this['_revisions'])this['_addRevision'](_0xda848a);this['_revisions']['on']('add',(_0x3da633,_0x3ddc78)=>{this['_addRevision'](_0x3ddc78);}),this['_revisions']['on']('remove',(_0x19aecc,_0x1b8bd9)=>{this['_removeRevision'](_0x1b8bd9);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x527e1e=>_0x527e1e['revisionViews']['map'](_0x595bed=>_0x595bed))['flat']();}['selectRevision'](_0x199fde){for(const _0x42e7ad of this['revisionViews'])_0x199fde&&_0x199fde['id']===_0x42e7ad['id']?_0x42e7ad['select']():_0x42e7ad['deselect']();}['highlightRevisions'](_0x52ea0e){for(const _0x1336f9 of this['revisionViews'])_0x52ea0e['some'](({id:_0x57cd67})=>_0x57cd67===_0x1336f9['id'])?_0x1336f9['highlight']():_0x1336f9['unhighlight']();}['_addRevision'](_0x1b7e4e){const _0x320158=getDateTimePeriodInfo(_0x1b7e4e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x300f9f=this['timePeriodViews']['get'](0x0);_0x300f9f&&_0x300f9f['startDate']['getTime']()===_0x320158['getTime']()||(_0x300f9f=new RevisionsSidebarTimePeriodView(this['locale'],_0x320158,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x300f9f)),_0x300f9f['addRevision'](_0x1b7e4e);}['_removeRevision'](_0x542688){const _0x577b6f=getDateTimePeriodInfo(_0x542688['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x577b6f)['removeRevision'](_0x542688);}['_getTimePeriodViewByStartDate'](_0x3a81ff){return this['timePeriodViews']['find'](_0x18af22=>_0x18af22['startDate']['getTime']()===_0x3a81ff['getTime']());}}class RevisionsSidebar extends Plugin{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
availableRevisionActions();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionViewer];}constructor(_0x7c86e0){super(_0x7c86e0),this['_revisionViewer']=_0x7c86e0['plugins']['get'](RevisionViewer),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1c70fa=this['_revisionsRepository']['_revisions'],_0x3baa45=this['_createRevisionActions'](),_0x3aa5ff=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new RevisionsSidebarView(this['editor']['locale'],_0x1c70fa,_0x3baa45,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',(_0x384eb1,_0x3f3ec9)=>{_0x3f3ec9['revisionViews']['on']('add',(_0x1af96c,_0x3675b2)=>{_0x3675b2['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)),_0x3aa5ff['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5f5b3a=this['_revisionsRepository']['getRevision'](0x0);if(_0x5f5b3a){const _0x55738e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5f5b3a['id']);this['_revisionViewer']['compare'](_0x5f5b3a,_0x55738e);}}['_handleRevisionSelected'](_0x9f073d,_0x2370c0){const _0xe76411=this['_revisionsRepository']['getRevision'](_0x2370c0['id']),_0x3c1124=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe76411['id']);this['_revisionViewer']['compare'](_0xe76411,_0x3c1124);}['_handleRevisionSetName'](_0x2a9bf5,_0x11d9b5){this['_revisionsRepository']['getRevision'](_0x11d9b5['id'])['setName'](_0x11d9b5['name']);}['_handleDiffChange'](_0x2e53bb,_0xb14b03,_0x4c9122){const _0x4b3f5a=this['_revisionsRepository']['getRevisionsInDiff'](_0x4c9122);_0x4b3f5a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b3f5a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b3f5a[0x0]));}['_createRevisionActions'](){const _0x4a252a=this['editor'],_0x40e355=RevisionsSidebar['availableRevisionActions'],_0x1398d9=_0x4a252a['config']['get']('revisionHistory.revisionActions')||RevisionsSidebar['defaultRevisionActions'];if(_0x1398d9['length'])return _0x1398d9['map'](_0x13a8d2=>{const _0x207ffb='string'==typeof _0x13a8d2?Object['assign']({},_0x40e355[_0x13a8d2]):_0x13a8d2;return _0x207ffb['action']=_0x207ffb['action']['bind'](this,_0x4a252a),_0x207ffb['isVisible']&&(_0x207ffb['isVisible']=_0x207ffb['isVisible']['bind'](this,_0x4a252a)),_0x207ffb;});}}function availableRevisionActions(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2b471f},_0x426d75)=>{const _0x3e9f66=_0x2b471f['get'](RevisionViewer),_0x2d25cd=_0x3e9f66['repository'];let _0xc13467=_0x3e9f66['diff']['newRevisionId'],_0x4b3623=_0x426d75['id'];_0x2d25cd['getIndex'](_0xc13467)>_0x2d25cd['getIndex'](_0x4b3623)&&([_0xc13467,_0x4b3623]=[_0x4b3623,_0xc13467]),_0x3e9f66['compare'](_0xc13467,_0x4b3623);},'isVisible':({plugins:_0x5bab6d},_0x47a8c9)=>{const _0x2fc8b8=_0x5bab6d['get'](RevisionViewer);return!(_0x2fc8b8['repository']['getRevisionsInDiff'](_0x2fc8b8['diff'])['length']>0x2)&&!_0x47a8c9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x385105,{id:_0x5afc9e})=>{_0x385105['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5afc9e);},'isVisible':({plugins:_0x4c385c},_0x88dda2)=>!!_0x4c385c['get'](RevisionViewer)['repository']['getLaterVisibleRevision'](_0x88dda2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5b94ab},{id:_0x52f362,revisionNameView:_0x48a845})=>{const _0x434740=_0x5b94ab['get'](RevisionViewer),_0x174e36=_0x434740['repository']['getEarlierVisibleRevision'](_0x52f362);_0x434740['compare'](_0x52f362,_0x174e36),_0x48a845['focus'](),_0x48a845['fieldView']['select']();}}};}class RevisionViewerEditorUI extends EditorUI{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4cc24e,_0xa6c3bd){super(_0x4cc24e),this['_view']=_0xa6c3bd,this['_toolbarConfig']=normalizeToolbarConfig(_0x4cc24e['config']['get']('toolbar')),this['_elementReplacer']=new ElementReplacer();}get['element'](){return this['view']['element'];}['init'](_0x13180c){const _0x37a801=this['editor'],_0x254d92=this['view'],_0x57dd3d=_0x37a801['editing']['view'],_0x4174d5=_0x254d92['editable'],_0x232ea0=_0x57dd3d['document']['getRoot']();_0x4174d5['name']=_0x232ea0['rootName'],_0x254d92['render']();const _0xddd6d8=_0x4174d5['element'];this['setEditableElement'](_0x4174d5['name'],_0xddd6d8),_0x254d92['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x57dd3d['attachDomRoot'](_0xddd6d8),this['_elementReplacer']['replace'](_0x13180c,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x665884=this['view'],_0xb11c29=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xb11c29['detachDomRoot'](_0x665884['editable']['name']),_0x665884['destroy']();}['_initToolbar'](){const _0x5668a9=this['view'];_0x5668a9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5668a9['stickyPanel']['limiterElement']=_0x5668a9['element'],_0x5668a9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x15d9a8})=>_0x15d9a8),_0x5668a9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5668a9['toolbar']);}}class RevisionViewerEditorUIView extends BoxedEditorUIView{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe46c6c,_0x4211ce,_0x367b80={}){super(_0xe46c6c),this['stickyPanel']=new StickyPanelView(_0xe46c6c),this['toolbar']=new ToolbarView(_0xe46c6c,{'shouldGroupWhenFull':_0x367b80['shouldToolbarGroupWhenFull']}),this['_editable']=new InlineEditableUIView(_0xe46c6c,_0x4211ce);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class RevisionViewerEditor extends/* #__PURE__ -- @preserve */
ElementApiMixin(Editor){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1268c0,_0x43a6a4){super(_0x43a6a4),this['sourceElement']=_0x1268c0,this['model']['document']['createRoot']();const _0x55bee1=new RevisionViewerEditorUIView(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new RevisionViewerEditorUI(this,_0x55bee1);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5921cf,_0x4f0ca7){const _0x4e3285=new this(_0x5921cf,_0x4f0ca7);return await _0x4e3285['initPlugins'](),await _0x4e3285['ui']['init'](_0x5921cf),await _0x4e3285['data']['init'](_0x4e3285['config']['get']('initialData')||''),_0x4e3285['fire']('ready'),_0x4e3285;}}const blackListedPlugins$1=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions','AIChatShortcuts','AITranslate'];class RevisionViewerIntegration extends Plugin{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd5707f){function _0x599496(_0x140604){return _0x140604['map'](_0x1abd2e=>String['fromCharCode'](_0x1abd2e))['join']('');}super(_0xd5707f),this['result']='end',_0xd5707f[_0x599496([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x599496([0x76,0x69,0x65,0x77])][_0x599496([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x599496([0x61,0x75,0x74,0x6f]),_0xd5707f[_0x599496([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x599496([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x599496([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x599496([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x599496([0x6f,0x6b])});}}class RevisionHistory extends Plugin{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[RevisionTracker,RevisionHistoryUI];}constructor(_0x4cc705){if(super(_0x4cc705),!this['editor']['config']['get']('revisionHistory'))throw new CKEditorError('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x29411d=>this['_showRevisionViewer']({..._0x29411d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x50fbd7=>this['_closeRevisionViewer'](_0x50fbd7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x34fbd5=>this['_restoreRevision'](_0x34fbd5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x12ce08){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x12ce08;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x480541){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x480541);}['getRevision'](_0x4b9961){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4b9961);}['getRevisions'](_0x4d2036){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4d2036||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x414cd1=this['editor'],_0x102310=sanitizeEditorConfig(_0x414cd1,blackListedPlugins$1),_0x544949=_0x414cd1['plugins']['get']('RevisionTracker'),_0x2ab897=_0x414cd1['plugins']['get']('Users')['users'];return _0x102310['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x102310['lazyRoots'],(_0x102310['plugins']['push'](RevisionViewerIntegration,RevisionViewer,RevisionViewerUI,class extends Plugin{static get['requires'](){return[RevisionViewer,'Users'];}['init'](){const _0x3e87f8=this['editor']['plugins']['get']('Users');for(const _0x4f179f of _0x2ab897)_0x4f179f['isAnonymous']||_0x3e87f8['getUser'](_0x4f179f['id'])||_0x3e87f8['addUser'](_0x4f179f);const _0x1d9ad6=_0x544949['repository']['getRevisions']();let _0x3041fe=null;const _0x4b8fcb=this['editor']['plugins']['get']('RevisionViewer');_0x4b8fcb['adapter']=_0x544949['adapter'],_0x4b8fcb['bind']('isEnabled')['to'](_0x544949),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x414cd1,'isReadOnly',_0x3b8532=>!_0x3b8532);for(const _0x3ff75b of _0x1d9ad6){const _0x1c8e9a=null===_0x3ff75b['creator'];if(_0x1c8e9a&&_0x3ff75b['toVersion']===_0x3ff75b['fromVersion'])continue;const _0x3bef0c=_0x3ff75b['toJSON']();_0x4b8fcb['addRevisionData'](_0x3bef0c,(_0x4b4bd2,_0x2dd7b3,_0x3eeb6c)=>{if(_0x1c8e9a){if(_0x3041fe)_0x3041fe['_update'](_0x4b4bd2,_0x2dd7b3);else{if(!_0x2dd7b3){const _0x61feb5=_0x3eeb6c['toJSON']();_0x61feb5['id']=uid(),_0x544949['saveRevision'](_0x61feb5,_0x3eeb6c['toVersion'])['then'](_0x131f9f=>{_0x3041fe=_0x131f9f;});}}}else _0x3ff75b['_update'](_0x4b4bd2,_0x2dd7b3);});}}},RevisionsSidebar),_0x102310);}['_enhanceShowRevisionViewerCallback'](){const _0x23162c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x52641e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4de048=this['editor']['plugins']['get']('Autosave');await _0x4de048['save']();}else await _0x52641e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x47c03f=this['editor']['plugins']['get']('Dialog');_0x47c03f['isOpen']&&_0x47c03f['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x51a75c=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1df5cf of _0x51a75c)_0x1df5cf['class']=_0x1df5cf['class']?_0x1df5cf['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x901854=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x901854&&_0x901854['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x5d74d3=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x5d74d3&&_0x5d74d3['setAttribute']('tabindex','-1');}}const _0x45a241=this['_getRevisionViewerEditorConfig']();return _0x23162c(_0x45a241)['then'](_0x3c1baf=>{return(this['_viewerEditor']=_0x3c1baf,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'),_0x3c1baf);})['catch'](_0x33e09a=>(console['error'](_0x33e09a),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2ceef7=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 _0x178689=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x1aa028 of _0x178689)_0x1aa028['class']='ck-tab-panel_disabled'===_0x1aa028['class']?'':_0x1aa028['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x3919fc=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x3919fc&&_0x3919fc['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x59be84=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x59be84&&_0x59be84['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2ceef7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x283779=this['editor']['plugins']['get']('Annotations');_0x283779['refreshVisibility'](),_0x283779['refreshPositioning']();}});});}['_showRevisionViewer'](_0x25f9ca){const _0x164210=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x23e145=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1b4edf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return RevisionViewerEditor['create'](_0x1b4edf,_0x25f9ca)['then'](_0x180572=>(_0x23e145['style']['display']='block',_0x164210['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x180572));}['_closeRevisionViewer'](_0x3ae2e2){const _0x3cc533=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3cc533['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3ae2e2['destroy']();}async['_restoreRevision'](_0x121a4f){const _0xbb77e=this['editor'],_0x223037=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x39eec9=_0xbb77e['plugins']['get']('RevisionTracker'),_0x4397ea=_0xbb77e['plugins']['get']('RevisionHistoryUtils'),_0x4d30bf=_0x223037['repository']['getRevision'](_0x121a4f);let _0x3ecb05,_0x4f235d,_0xb23728;try{await _0x4397ea['loadRevisionData'](_0x4d30bf,this['adapter']),_0x3ecb05=_0x4397ea['getRevisionDocumentData'](_0x4d30bf),_0x4f235d=_0x4397ea['getRevisionRootsAttributes'](_0x4d30bf);}catch(_0x2f4e42){return void console['error'](_0x2f4e42);}_0xbb77e['model']['change'](_0x352efc=>{for(const _0x1d5b90 of Array['from'](_0xbb77e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x352efc['removeMarker'](_0x1d5b90);}),_0x223037['isReady']=!0x1,_0xbb77e['model']['enqueueChange'](_0x41f8f8=>{_0x41f8f8['setSelection'](null),_0x41f8f8['removeSelectionAttribute'](_0xbb77e['model']['document']['selection']['getAttributeKeys']());const _0x33030e=Object['keys'](_0x3ecb05);for(const _0x3b6cd7 of _0xbb77e['model']['document']['roots'])'$graveyard'!=_0x3b6cd7['rootName']&&_0x3b6cd7['isAttached']()&&!_0x33030e['includes'](_0x3b6cd7['rootName'])&&_0x41f8f8['detachRoot'](_0x3b6cd7);for(const _0x2522c5 of _0x33030e){let _0x11f32e=_0xbb77e['model']['document']['getRoot'](_0x2522c5);_0x11f32e&&_0x11f32e['isAttached']()||(_0x11f32e=_0x41f8f8['addRoot'](_0x2522c5));const _0x478a66=_0x4f235d[_0x2522c5],_0x3a328e=Object['keys'](_0x478a66),_0x5d1ca9=_0x3ecb05[_0x2522c5];for(const _0xbe15a of _0x11f32e['getAttributeKeys']())_0x3a328e['includes'](_0xbe15a)||_0x41f8f8['removeAttribute'](_0xbe15a,_0x11f32e);for(const _0x481d49 of _0x3a328e)_0x41f8f8['setAttribute'](_0x481d49,_0x4f235d[_0x2522c5][_0x481d49],_0x11f32e);_0x41f8f8['remove'](_0x41f8f8['createRangeIn'](_0x11f32e)),_0x41f8f8['insert'](_0xbb77e['data']['parse'](_0x5d1ca9,_0x11f32e),_0x11f32e,0x0);}});const _0x2d4d78=getTranslation$5(_0xbb77e['locale'],'Restored');if(_0x4d30bf['name'])_0xb23728=-0x1==_0x4d30bf['name']['indexOf'](_0x2d4d78)?_0x2d4d78+':\x20'+_0x4d30bf['name']:_0x4d30bf['name'];else _0xb23728=_0x2d4d78+':\x20'+(_0x4d30bf['createdAt']['toLocaleDateString'](_0xbb77e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4d30bf['createdAt']['toLocaleTimeString'](_0xbb77e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x39eec9['saveRevision']({'name':_0xb23728}),_0x223037['isReady']=!0x0,_0xbb77e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function getTranslation$4(_0x146de0,_0x3db745){const t=_0x146de0['t'],_0x58740f=_0x146de0['t'];switch(_0x3db745){case'AI\x20Assistant':return _0x58740f('AI\x20Assistant');case'Block\x20quote':return _0x58740f('Block\x20quote');case'Bulleted\x20list':return _0x58740f('Bulleted\x20list');case'Insert\x20code\x20block':return _0x58740f('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x58740f('Open\x20file\x20manager');case'Insert\x20image':return _0x58740f('Insert\x20image');case'Heading\x201':return _0x58740f('Heading\x201');case'Heading\x202':return _0x58740f('Heading\x202');case'Heading\x203':return _0x58740f('Heading\x203');case'Heading\x204':return _0x58740f('Heading\x204');case'Heading\x205':return _0x58740f('Heading\x205');case'Heading\x206':return _0x58740f('Heading\x206');case'Horizontal\x20line':return _0x58740f('Horizontal\x20line');case'Insert\x20HTML':return _0x58740f('Insert\x20HTML');case'Increase\x20indent':return _0x58740f('Increase\x20indent');case'Insert\x20table':return _0x58740f('Insert\x20table');case'Table\x20of\x20contents':return _0x58740f('Table\x20of\x20contents');case'Numbered\x20list':return _0x58740f('Numbered\x20list');case'Decrease\x20indent':return _0x58740f('Decrease\x20indent');case'Paragraph':return _0x58740f('Paragraph');case'To-do\x20list':return _0x58740f('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 _0x3db745;}}class SlashCommandConfig extends Plugin{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44b078){super(_0x44b078),this['_allowedCommands']=null;}['afterInit'](){const _0x47cd4b=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x5e18d5=getExcludedHeadings(this['editor']['config']['get']('heading.options')),_0x56cfe3=this['getDefaultCommands']()['filter'](_0x2cbaa5=>!_0x5e18d5['includes'](_0x2cbaa5['id']));let _0x1e5a12=_0x56cfe3['filter'](_0xdf0695=>!_0x47cd4b['includes'](_0xdf0695['commandName']));const _0x3f6b18=this['editor']['config']['get']('slashCommand.extraCommands');_0x3f6b18&&_0x3f6b18['length']&&(_0x1e5a12=_0x1e5a12['concat'](_0x3f6b18));const _0x62e24=this['editor']['config']['get']('template.definitions');_0x62e24&&_0x62e24['length']&&(_0x1e5a12=_0x1e5a12['concat'](mapTemplates(_0x62e24)));const _0x53fdb4=this['editor']['config']['get']('style.definitions');_0x53fdb4&&_0x53fdb4['length']&&(_0x1e5a12=_0x1e5a12['concat'](mapStyles(_0x53fdb4)));const _0x29a221=_0x1e5a12['filter'](_0x20b6f4=>!_0x20b6f4['commandName']||void 0x0!==this['editor']['commands']['get'](_0x20b6f4['commandName'])),_0x4e442a=[];for(const _0x30cdeb of _0x29a221)_0x4e442a['push']({'id':_0x30cdeb['id'],'commandName':_0x30cdeb['commandName'],'title':'function'==typeof _0x30cdeb['title']?_0x30cdeb['title'](this['editor']):_0x30cdeb['title'],'description':_0x30cdeb['description'],'icon':_0x30cdeb['icon'],'isIconColorInherited':_0x30cdeb['isIconColorInherited'],'aliases':_0x30cdeb['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x30cdeb),'execute':()=>this['_proxyExecute'](_0x30cdeb)});this['_allowedCommands']=_0x4e442a['sort'](compareCommands),checkLicense$4(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x8dc37f=_0x3004b3=>getTranslation$4(this['editor']['locale'],_0x3004b3);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':IconRobotPencil,'title':_0x8dc37f('AI\x20Assistant'),'description':_0x8dc37f('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x395bb8=>{setTimeout(()=>_0x395bb8['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':IconQuote,'title':_0x8dc37f('Block\x20quote'),'description':_0x8dc37f('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':IconBulletedList,'title':_0x8dc37f('Bulleted\x20list'),'description':_0x8dc37f('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':IconCodeBlock,'title':_0x8dc37f('Insert\x20code\x20block'),'description':_0x8dc37f('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0xe601c9,'title':_0x8dc37f('Open\x20file\x20manager'),'description':_0x8dc37f('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0xe601c9,'title':_0x8dc37f('Insert\x20image'),'description':_0x8dc37f('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':IconEmoji,'title':_0x8dc37f('Emoji'),'description':_0x8dc37f('Insert\x20an\x20emoji'),'execute':_0x58e1ab=>{setTimeout(()=>_0x58e1ab['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':IconHeading1,'title':_0x8dc37f('Heading\x201'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x201'),'execute':_0x275663=>{_0x275663['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':IconHeading2,'title':_0x8dc37f('Heading\x202'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x202'),'execute':_0x19d794=>{_0x19d794['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':IconHeading3,'title':_0x8dc37f('Heading\x203'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x203'),'execute':_0x1168af=>{_0x1168af['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':IconHeading4,'title':_0x8dc37f('Heading\x204'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x204'),'execute':_0x34aae7=>{_0x34aae7['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':IconHeading5,'title':_0x8dc37f('Heading\x205'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x205'),'execute':_0x2de7ce=>{_0x2de7ce['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':IconHeading6,'title':_0x8dc37f('Heading\x206'),'description':_0x8dc37f('Create\x20a\x20heading\x20level\x206'),'execute':_0x194340=>{_0x194340['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':IconHorizontalLine,'title':_0x8dc37f('Horizontal\x20line'),'description':_0x8dc37f('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':IconHtml,'title':_0x8dc37f('Insert\x20HTML'),'description':_0x8dc37f('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':IconIndent,'title':_0x8dc37f('Increase\x20indent'),'description':_0x8dc37f('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x8dc37f('Insert\x20Mermaid\x20diagram'),'description':_0x8dc37f('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':IconTable,'title':_0x8dc37f('Insert\x20table'),'description':_0x8dc37f('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':IconTableOfContents,'title':_0x8dc37f('Table\x20of\x20contents'),'description':_0x8dc37f('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':IconNumberedList,'title':_0x8dc37f('Numbered\x20list'),'description':_0x8dc37f('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':IconOutdent,'title':_0x8dc37f('Decrease\x20indent'),'description':_0x8dc37f('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':IconParagraph,'title':_0x8dc37f('Paragraph'),'description':_0x8dc37f('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':IconTodoList,'title':_0x8dc37f('To-do\x20list'),'description':_0x8dc37f('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':IconFootnote,'title':_0x8dc37f('Footnote'),'description':_0x8dc37f('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x2358e1){return _0x2358e1['isEnabled']?_0x2358e1['isEnabled'](this['editor']):!_0x2358e1['commandName']||this['editor']['commands']['get'](_0x2358e1['commandName'])['isEnabled'];}['_proxyExecute'](_0x379fc9){if(_0x379fc9['execute'])_0x379fc9['execute'](this['editor']);else{if(!_0x379fc9['commandName'])throw new CKEditorError('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x379fc9});this['editor']['execute'](_0x379fc9['commandName']);}}}function compareCommands(_0x4c4bec,_0x5bd1db){return _0x4c4bec['title']<_0x5bd1db['title']?-0x1:_0x4c4bec['title']>_0x5bd1db['title']?0x1:0x0;}function convertTitleToId(_0x1599a1,_0x22541e){return _0x22541e+'-'+_0x1599a1['toLowerCase']()['split']('\x20')['join']('-');}function mapTemplates(_0x9b2e8f){return _0x9b2e8f['map'](_0x5f2b46=>{const {title:_0xd7d9ab,icon:_0x2038b2,description:_0x175d3f,data:_0xd53bb9}=_0x5f2b46,_0x4b2f01={'id':convertTitleToId(_0xd7d9ab,'template'),'commandName':'insertTemplate','execute':_0x5e95e7=>{_0x5e95e7['execute']('insertTemplate',_0xd53bb9);},'description':_0x175d3f,'icon':_0x2038b2,'title':_0xd7d9ab};return _0x2038b2&&(_0x4b2f01['isIconColorInherited']=!0x1),_0x4b2f01;});}function mapStyles(_0x4f8039){return _0x4f8039['map'](_0x433881=>{const _0x421b03={'id':convertTitleToId(_0x433881['name'],'style'),'commandName':'style','execute':_0xe8576=>{_0xe8576['execute']('style',{'styleName':_0x433881['name']});},'isEnabled':_0x21af85=>{const _0x1918e3=_0x21af85['commands']['get']('style');return _0x1918e3['isEnabled']&&_0x1918e3['enabledStyles']['includes'](_0x433881['name']);},'title':_0x433881['name']};return _0x421b03;});}function getExcludedHeadings(_0x3738c3){let _0x5d3d1a=['heading4','heading5','heading6'];if(_0x3738c3){const _0x5568af=_0x3738c3['map'](_0x457237=>_0x457237['model']);_0x5d3d1a=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x584100=>!_0x5568af['includes'](_0x584100));}return _0x5d3d1a;}async function checkLicense$4(_0x31aac5){const _0x53e0da=_0x2c764a([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x4cf9fd=window[_0x2c764a([0x44,0x61,0x74,0x65])][_0x2c764a([0x6e,0x6f,0x77])](),_0xc35665=_0x31aac5[_0x2c764a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x172f03=new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40b0db=>{_0xc35665[_0x2c764a([0x6f,0x6e,0x63,0x65])](_0x2c764a([0x72,0x65,0x61,0x64,0x79]),_0x40b0db);}),_0x1a8022={[_0x2c764a([0x6b,0x74,0x79])]:_0x2c764a([0x45,0x43]),[_0x2c764a([0x75,0x73,0x65])]:_0x2c764a([0x73,0x69,0x67]),[_0x2c764a([0x63,0x72,0x76])]:_0x2c764a([0x50,0x2d,0x32,0x35,0x36]),[_0x2c764a([0x78])]:_0x2c764a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2c764a([0x79])]:_0x2c764a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2c764a([0x61,0x6c,0x67])]:_0x2c764a([0x45,0x53,0x32,0x35,0x36])},_0x4ae36c=_0xc35665[_0x2c764a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c764a([0x67,0x65,0x74])](_0x2c764a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x46f84c=await(async function(){let _0x3e6182,_0x19e1eb=null,_0x4d0049=null;try{if(_0x4ae36c==_0x2c764a([0x47,0x50,0x4c]))return _0x2c764a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e6182=(function(){const _0x2d7bcb=_0x4ae36c[_0x2c764a([0x73,0x70,0x6c,0x69,0x74])](_0x2c764a([0x2e]));if(0x3!=_0x2d7bcb[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x45195f=_0x2d7bcb[0x1];return _0x234207(_0x45195f);function _0x234207(_0x14261c){const _0x509bc5=_0x3729fa(_0x14261c);return _0x509bc5&&_0x582318()?_0x509bc5:null;function _0x582318(){const _0x391641=_0x509bc5[_0x2c764a([0x6a,0x74,0x69])],_0x23a71e=window[_0x2c764a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x391641[_0x2c764a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x391641[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4345d1={..._0x509bc5,[_0x2c764a([0x6a,0x74,0x69])]:_0x391641[_0x2c764a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x391641[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4345d1[_0x2c764a([0x76,0x63])],_0x1bc7b1(_0x4345d1)==_0x23a71e;}}}()),!_0x3e6182)return _0x2c764a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x3e6182[_0x2c764a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d0049=function(_0x417c5b,_0x35a4d3){return new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36a796=>{if(_0x206147())return _0x36a796(_0x2c764a([0x56,0x61,0x6c,0x69,0x64]));_0x4169cf(),_0xc35665[_0x2c764a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c764a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e7736=!0x1;const _0xbe7fc8=uid();function _0x3332d7(_0x17f67e){return!!_0x17f67e&&(typeof _0x17f67e===_0x2c764a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17f67e===_0x2c764a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17f67e[_0x2c764a([0x74,0x68,0x65,0x6e])]===_0x2c764a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17f67e[_0x2c764a([0x63,0x61,0x74,0x63,0x68])]===_0x2c764a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x215508(_0x41c270){_0x1eabed(_0x41c270)[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x2eac2e=>{if(!_0x2eac2e||_0x2eac2e[_0x2c764a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c764a([0x6f,0x6b]))return _0x2c764a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42cef3(_0x1bc7b1(_0xbe7fc8+_0x35a4d3))!=_0x2eac2e[_0x2c764a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c764a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c764a([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x1498f8=>(_0x57170d(),_0x1498f8),()=>{const _0x1d13db=_0x370ce0();return null==_0x1d13db?(_0x57170d(),_0x2c764a([0x56,0x61,0x6c,0x69,0x64])):_0x2c764a(_0x4cf9fd-_0x1d13db>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x36a796)[_0x2c764a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36a796(_0x2c764a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ec65=0x36ee80;function _0x57170d(){const _0x45f592=_0x2c764a([0x6c,0x6c,0x63,0x74,0x2d])+_0x42cef3(_0x1bc7b1(_0x417c5b)),_0x53b956=_0x184015(_0x42cef3(window[_0x2c764a([0x4d,0x61,0x74,0x68])][_0x2c764a([0x63,0x65,0x69,0x6c])](_0x4cf9fd/_0x37ec65)));window[_0x2c764a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c764a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45f592,_0x53b956);}function _0x370ce0(){const _0x3ce3fb=_0x2c764a([0x6c,0x6c,0x63,0x74,0x2d])+_0x42cef3(_0x1bc7b1(_0x417c5b)),_0x159113=window[_0x2c764a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c764a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ce3fb);return _0x159113?window[_0x2c764a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x184015(_0x159113),0x10)*_0x37ec65:null;}function _0x1eabed(_0x5384c9){return new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44a490,_0x407c55)=>{_0x5384c9[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x44a490,_0x407c55),window[_0x2c764a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x407c55,0x1d4c0);});}}_0xc35665[_0x2c764a([0x6f,0x6e])](_0x2c764a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ae74,_0x41c745)=>{if(_0x41c745[0x0]!=_0x417c5b)return _0x36a796(_0x2c764a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41c745[0x1]={..._0x41c745[0x1],[_0x2c764a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbe7fc8};},{[_0x2c764a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c764a([0x68,0x69,0x67,0x68])}),_0xc35665[_0x2c764a([0x6f,0x6e])](_0x2c764a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb64e4b=>{_0x3332d7(_0xb64e4b[_0x2c764a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e7736=!0x0,_0x215508(_0xb64e4b[_0x2c764a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c764a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c764a([0x6c,0x6f,0x77])}),_0x172f03[_0x2c764a([0x74,0x68,0x65,0x6e])](()=>{_0x4e7736||_0x36a796(_0x2c764a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x206147(){return _0xc35665[_0x2c764a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c764a([0x76,0x69,0x65,0x77])][_0x2c764a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c764a([0x61,0x75,0x74,0x6f]);}function _0x4169cf(){_0xc35665[_0x2c764a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c764a([0x76,0x69,0x65,0x77])][_0x2c764a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c764a([0x61,0x75,0x74,0x6f]);}}(_0x3e6182[_0x2c764a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e6182[_0x2c764a([0x6a,0x74,0x69])]));const _0x354c18=await(async function(){let _0x44db59=!0x0;try{const _0x5d19bf=_0x4ae36c[_0x2c764a([0x73,0x70,0x6c,0x69,0x74])](_0x2c764a([0x2e])),[_0x5b1204,_0xe4595d,_0x483303]=_0x5d19bf;return _0x3829f2(_0x5b1204),await _0x4b7c55(_0x5b1204,_0xe4595d,_0x483303),_0x44db59;}catch{return!0x1;}function _0x3829f2(_0x113168){const _0xfd17c1=_0x3729fa(_0x113168);_0xfd17c1&&_0xfd17c1[_0x2c764a([0x61,0x6c,0x67])]==_0x2c764a([0x45,0x53,0x32,0x35,0x36])||(_0x44db59=!0x1);}async function _0x4b7c55(_0x2fe3ac,_0x1f1423,_0x120095){const _0x4fc7cd=window[_0x2c764a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c764a([0x66,0x72,0x6f,0x6d])](_0x3cf61d(_0x120095),_0x45b33d=>_0x45b33d[_0x2c764a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc924=new window[(_0x2c764a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c764a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fe3ac+_0x2c764a([0x2e])+_0x1f1423),_0x54bc09=window[_0x2c764a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c764a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54bc09)return;const _0x260772=await _0x54bc09[_0x2c764a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c764a([0x6a,0x77,0x6b]),_0x1a8022,{[_0x2c764a([0x6e,0x61,0x6d,0x65])]:_0x2c764a([0x45,0x43,0x44,0x53,0x41]),[_0x2c764a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c764a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c764a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54bc09[_0x2c764a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c764a([0x6e,0x61,0x6d,0x65])]:_0x2c764a([0x45,0x43,0x44,0x53,0x41]),[_0x2c764a([0x68,0x61,0x73,0x68])]:{[_0x2c764a([0x6e,0x61,0x6d,0x65])]:_0x2c764a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x260772,_0x4fc7cd,_0xc924)||(_0x44db59=!0x1);}}());return _0x354c18?(function(){const _0x23e10d=_0x3e6182[_0x2c764a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23e10d)return!0x1;if(_0x23e10d[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c764a([0x2a])))return!0x0;if(_0x23e10d[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c764a([0x53,0x43])))return!0x0;if(_0x23e10d[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c764a([0x50,0x50])))return!0x0;if(_0x23e10d[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c764a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x2c764a([0x67,0x6c,0x6f,0x62])]&&window[_0x2c764a([0x67,0x6c,0x6f,0x62])][_0x2c764a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x2920de=[_0x2c764a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c764a([0x74,0x72,0x69,0x61,0x6c])][_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e6182[_0x2c764a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4cf9fd/0x3e8:0x69e02680;return _0x3e6182[_0x2c764a([0x65,0x78,0x70])]<_0x2920de;}())?_0x2c764a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x3b9dba=_0x3e6182[_0x2c764a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b9dba||0x0==_0x3b9dba[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1444be}=new URL(window[_0x2c764a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b9dba[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1444be))return!0x0;const _0xdbda9=_0x1444be[_0x2c764a([0x73,0x70,0x6c,0x69,0x74])](_0x2c764a([0x2e]));return _0x3b9dba[_0x2c764a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f137d=>_0x3f137d[_0x2c764a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c764a([0x2a])))[_0x2c764a([0x6d,0x61,0x70])](_0x26e6d9=>_0x26e6d9[_0x2c764a([0x73,0x70,0x6c,0x69,0x74])](_0x2c764a([0x2e])))[_0x2c764a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x546eef=>_0x546eef[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xdbda9[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c764a([0x6d,0x61,0x70])](_0x5e9bbf=>Array(_0xdbda9[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5e9bbf[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c764a([0x66,0x69,0x6c,0x6c])](_0x5e9bbf[0x0]===_0x2c764a([0x2a])?_0x2c764a([0x2a]):'')[_0x2c764a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5e9bbf))[_0x2c764a([0x73,0x6f,0x6d,0x65])](_0x2bd7a1=>_0xdbda9[_0x2c764a([0x65,0x76,0x65,0x72,0x79])]((_0x254c81,_0x43e7c0)=>_0x2bd7a1[_0x43e7c0]===_0x254c81||_0x2bd7a1[_0x43e7c0]===_0x2c764a([0x2a])));}())?(_0x3e6182[_0x2c764a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c764a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19e1eb=function(_0x4ef252){const _0x47f08e=new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f508f=>setTimeout(_0x2f508f,0x93ecc)),_0x208f7d=_0x172f03[_0x2c764a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e35c9=>{let _0x4d8173=0x0;_0xc35665[_0x2c764a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c764a([0x6f,0x6e])](_0x2c764a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5090f7,_0x5db8bd)=>{_0x5db8bd[0x0][_0x2c764a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d8173++,0x5e8==_0x4d8173&&(_0x1e35c9(),_0x5090f7[_0x2c764a([0x6f,0x66,0x66])]());});})),_0x1bd6bc=[_0x47f08e,_0x208f7d];return window[_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c764a([0x72,0x61,0x63,0x65])](_0x1bd6bc)[_0x2c764a([0x74,0x68,0x65,0x6e])](()=>_0x4ef252);}(_0x2c764a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x19e1eb&&_0x4d0049)return new window[(_0x2c764a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4821fd,_0x27f237)=>{_0x19e1eb[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x4821fd,_0x27f237),_0x4d0049[_0x2c764a([0x74,0x68,0x65,0x6e])](_0x5efbec=>{_0x5efbec!=_0x2c764a([0x56,0x61,0x6c,0x69,0x64])&&_0x4821fd(_0x5efbec);},_0x27f237);});return _0x19e1eb||_0x4d0049||_0x2c764a([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2c764a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c764a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c764a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c764a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3729fa(_0x5a0f29){return _0x5a0f29[_0x2c764a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c764a([0x65,0x79]))?JSON[_0x2c764a([0x70,0x61,0x72,0x73,0x65])](_0x3cf61d(_0x5a0f29)):null;}function _0x3cf61d(_0x3c3134){return window[_0x2c764a([0x61,0x74,0x6f,0x62])](_0x3c3134[_0x2c764a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c764a([0x2b]))[_0x2c764a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c764a([0x2f])));}function _0x1bc7b1(_0x528c76){let _0x3b49f5=0x1505;function _0x3bfa33(_0x97c4e3){for(let _0x3a39dd=0x0;_0x3a39dd<_0x97c4e3[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a39dd++){const _0x551050=_0x97c4e3[_0x2c764a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a39dd);_0x3b49f5=(_0x3b49f5<<0x5)+_0x3b49f5+_0x551050,_0x3b49f5&=_0x3b49f5;}}return function _0x23af9f(_0x54c2e2){Array[_0x2c764a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54c2e2)?_0x54c2e2[_0x2c764a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23af9f):_0x54c2e2&&typeof _0x54c2e2==_0x2c764a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c764a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54c2e2)[_0x2c764a([0x73,0x6f,0x72,0x74])]()[_0x2c764a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26a5bf,_0xd201e6])=>{_0x3bfa33(_0x26a5bf),_0x23af9f(_0xd201e6);}):_0x3bfa33(window[_0x2c764a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54c2e2));}(_0x528c76),_0x3b49f5>>>0x0;}function _0x42cef3(_0x24e591){return _0x24e591[_0x2c764a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c764a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c764a([0x30]));}function _0x184015(_0x21173c){return _0x21173c[_0x2c764a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c764a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c764a([0x6a,0x6f,0x69,0x6e])]('');}function _0xac7e31(){}function _0x2c764a(_0x9ac7fd){return _0x9ac7fd['map'](_0xa1a380=>String['fromCharCode'](_0xa1a380))['join']('');}!function(_0x37351e){const _0x4b429a=(function(){const _0x476404=window[_0x2c764a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c764a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c764a([0x6e,0x6f,0x77])]())[_0x2c764a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c764a([0x2e]),'');let _0x2e7d6c=_0x2c764a([0x75]);for(let _0x11e527=0x0;_0x11e527<_0x476404[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11e527+=0x2){let _0x36cbe5=window[_0x2c764a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x476404[_0x2c764a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11e527,_0x11e527+0x2));_0x36cbe5>=_0x53e0da[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36cbe5-=_0x53e0da[_0x2c764a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e7d6c+=_0x53e0da[_0x36cbe5];}return _0x2e7d6c;}());_0xc35665[_0x4b429a]=_0x2c764a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37351e,_0x37351e!=_0x2c764a([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x172f03,_0xc35665[_0x2c764a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c764a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xac7e31,_0xc35665[_0x2c764a([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c764a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xac7e31,_0xc35665[_0x2c764a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c764a([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x46f84c);}class SlashCommandEditing extends Plugin{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x55b454){const _0x2350e5=_0x55b454&&_0x55b454['toLowerCase']();let _0x398bdd=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x398bdd=_0x398bdd['filter'](_0x47e651=>_0x47e651['isEnabled']()),_0x2350e5){const _0x186611=[],_0x2a2347=[],_0x572f2f=[],_0x428e5b=[];for(const _0x17330f of _0x398bdd)_0x17330f['id']['toLowerCase']()['includes'](_0x2350e5)?_0x186611['push'](_0x17330f):_0x17330f['title']['toLowerCase']()['includes'](_0x2350e5)?_0x2a2347['push'](_0x17330f):_0x17330f['aliases']&&_0x17330f['aliases']['some'](_0x43692c=>_0x43692c['toLowerCase']()['includes'](_0x2350e5))?_0x572f2f['push'](_0x17330f):_0x17330f['description']&&_0x17330f['description']['toLowerCase']()['includes'](_0x2350e5)&&_0x428e5b['push'](_0x17330f);_0x398bdd=_0x186611['concat'](_0x2a2347,_0x572f2f,_0x428e5b);}return _0x398bdd;}}class SlashCommandButtonView extends ButtonView{constructor(_0x38489a,_0x4ba626){super(_0x38489a),this['textPartView']=this['_createTextPartView'](_0x38489a,_0x4ba626),void 0x0!==_0x4ba626['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4ba626['isIconColorInherited']),this['set']({'icon':_0x4ba626['icon']||IconPlay,'withText':!0x0,'label':_0x4ba626['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x133f2b,_0xb86c69){const _0x3e7ae8=new View(_0x133f2b);return _0x3e7ae8['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0xb86c69['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0xb86c69['description']}]}]:[this['labelView']]}),_0x3e7ae8;}}class SlashCommandUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55f1f6){super(_0x55f1f6),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcf0a0d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x29e796;for(const _0xb6c469 in _0xcf0a0d){const _0x442f07=_0xb6c469,_0x2da808=_0xcf0a0d[_0x442f07];if('slashCommandLicenseKeyValid'==_0x2da808||'slashCommandLicenseKeyInvalid'==_0x2da808||'slashCommandLicenseKeyExpired'==_0x2da808||'slashCommandLicenseKeyDomainLimit'==_0x2da808||'slashCommandLicenseKeyNotAllowed'==_0x2da808||'slashCommandLicenseKeyEvaluationLimit'==_0x2da808||'slashCommandLicenseKeyUsageLimit'==_0x2da808){delete _0xcf0a0d[_0x442f07],_0x29e796=_0x2da808,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x29e796&&_0xcf0a0d['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x29e796&&_0xcf0a0d['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x29e796&&_0xcf0a0d['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x29e796&&_0xcf0a0d['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x29e796&&_0xcf0a0d['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x29e796&&_0xcf0a0d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4fbadf=this['editor'],_0x2e7561=this['editor']['plugins']['get']('SlashCommandEditing'),_0x2d5d62=_0x4fbadf['config']['get']('mention.feeds');_0x2d5d62['push']({'marker':'/','feed':_0x4db9ac=>_0x2e7561['getMatchingCommands'](_0x4db9ac),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4fbadf['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4fbadf['config']['set']('mention.feeds',_0x2d5d62);}['_overrideMentionExecuteListener'](){const _0x5c7a3e=this['editor'];_0x5c7a3e['commands']['get']('mention')['on']('execute',(_0x5686e3,_0xc52e96)=>{const _0x573ca4=_0xc52e96[0x0],_0x37a88e=_0x5c7a3e['model'];'/'===_0x573ca4['marker']&&_0x37a88e['change'](_0x250387=>{_0x250387['remove'](_0x573ca4['range']),_0x573ca4['mention']['execute'](),_0x5686e3['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4f04c2){const _0xe6a0f2=this['editor']['locale'],_0x3b442d=new SlashCommandButtonView(_0xe6a0f2,_0x4f04c2);return _0x3b442d['render'](),_0x3b442d['element'];}}class SlashCommand extends Plugin{static get['requires'](){return['Mention',SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}function getTranslation$3(_0x4b7907,_0x100686){const t=_0x4b7907['t'];switch(_0x100686){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 _0x100686;}}function getActiveRootName(_0x113989){const _0x1fb9b0=_0x113989['editing']['view']['document']['roots'],_0x570692=_0x1fb9b0['length'];if(0x0===_0x570692)throw new CKEditorError('source-editing-enhanced-editor-no-root',_0x113989);if(0x1===_0x570692)return _0x1fb9b0['first']['rootName'];return Array['from'](_0x113989['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function formatSource(_0x3f44b1){return isHtml(_0x3f44b1)?formatHtml(_0x3f44b1):_0x3f44b1;}function unformatSource(_0x62900){return isHtml(_0x62900['replace'](/^[\n\s]*/g,''))?_0x62900['replace'](/\s+/g,''):_0x62900;}function isHtml(_0xd0dccc){return _0xd0dccc['startsWith']('<');}let rangeFrom=[],rangeTo=[];function isExtendingChar(_0x36290b){if(_0x36290b<0x300)return!0x1;for(let _0x2db47c=0x0,_0x49a700=rangeFrom['length'];;){let _0x48d180=_0x2db47c+_0x49a700>>0x1;if(_0x36290b<rangeFrom[_0x48d180])_0x49a700=_0x48d180;else{if(!(_0x36290b>=rangeTo[_0x48d180]))return!0x0;_0x2db47c=_0x48d180+0x1;}if(_0x2db47c==_0x49a700)return!0x1;}}function isRegionalIndicator(_0x533145){return _0x533145>=0x1f1e6&&_0x533145<=0x1f1ff;}((()=>{let _0x420123='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'](_0x4b625a=>_0x4b625a?parseInt(_0x4b625a,0x24):0x1);for(let _0x1e784f=0x0,_0x30340e=0x0;_0x1e784f<_0x420123['length'];_0x1e784f++)(_0x1e784f%0x2?rangeTo:rangeFrom)['push'](_0x30340e+=_0x420123[_0x1e784f]);})());const ZWJ=0x200d;function findClusterBreak$1(_0x5cbd98,_0xa11954,_0x4286e9=!0x0,_0x3af7d2=!0x0){return(_0x4286e9?nextClusterBreak:prevClusterBreak)(_0x5cbd98,_0xa11954,_0x3af7d2);}function nextClusterBreak(_0xc3ee7f,_0x17924a,_0x2015de){if(_0x17924a==_0xc3ee7f['length'])return _0x17924a;_0x17924a&&surrogateLow$1(_0xc3ee7f['charCodeAt'](_0x17924a))&&surrogateHigh$1(_0xc3ee7f['charCodeAt'](_0x17924a-0x1))&&_0x17924a--;let _0x592ef0=codePointAt$1(_0xc3ee7f,_0x17924a);for(_0x17924a+=codePointSize$1(_0x592ef0);_0x17924a<_0xc3ee7f['length'];){let _0x5c0321=codePointAt$1(_0xc3ee7f,_0x17924a);if(_0x592ef0==ZWJ||_0x5c0321==ZWJ||_0x2015de&&isExtendingChar(_0x5c0321))_0x17924a+=codePointSize$1(_0x5c0321),_0x592ef0=_0x5c0321;else{if(!isRegionalIndicator(_0x5c0321))break;{let _0xd67a90=0x0,_0x5ca248=_0x17924a-0x2;for(;_0x5ca248>=0x0&&isRegionalIndicator(codePointAt$1(_0xc3ee7f,_0x5ca248));)_0xd67a90++,_0x5ca248-=0x2;if(_0xd67a90%0x2==0x0)break;_0x17924a+=0x2;}}}return _0x17924a;}function prevClusterBreak(_0x18ce07,_0x74a8b3,_0x53beeb){for(;_0x74a8b3>0x0;){let _0x500a33=nextClusterBreak(_0x18ce07,_0x74a8b3-0x2,_0x53beeb);if(_0x500a33<_0x74a8b3)return _0x500a33;_0x74a8b3--;}return 0x0;}function codePointAt$1(_0x2c7f3b,_0x57e2c8){let _0xbc0451=_0x2c7f3b['charCodeAt'](_0x57e2c8);if(!surrogateHigh$1(_0xbc0451)||_0x57e2c8+0x1==_0x2c7f3b['length'])return _0xbc0451;let _0x316547=_0x2c7f3b['charCodeAt'](_0x57e2c8+0x1);return surrogateLow$1(_0x316547)?_0x316547-0xdc00+(_0xbc0451-0xd800<<0xa)+0x10000:_0xbc0451;}function surrogateLow$1(_0xe60b1b){return _0xe60b1b>=0xdc00&&_0xe60b1b<0xe000;}function surrogateHigh$1(_0x2d35f){return _0x2d35f>=0xd800&&_0x2d35f<0xdc00;}function codePointSize$1(_0x27d4e6){return _0x27d4e6<0x10000?0x1:0x2;}class Text{['lineAt'](_0x226d5c){if(_0x226d5c<0x0||_0x226d5c>this['length'])throw new RangeError('Invalid\x20position\x20'+_0x226d5c+'\x20in\x20document\x20of\x20length\x20'+this['length']);return this['lineInner'](_0x226d5c,!0x1,0x1,0x0);}['line'](_0x175328){if(_0x175328<0x1||_0x175328>this['lines'])throw new RangeError('Invalid\x20line\x20number\x20'+_0x175328+'\x20in\x20'+this['lines']+'-line\x20document');return this['lineInner'](_0x175328,!0x0,0x1,0x0);}['replace'](_0x44ad0d,_0x38fdb0,_0xf1f74){[_0x44ad0d,_0x38fdb0]=clip(this,_0x44ad0d,_0x38fdb0);let _0x2b2f22=[];return this['decompose'](0x0,_0x44ad0d,_0x2b2f22,0x2),_0xf1f74['length']&&_0xf1f74['decompose'](0x0,_0xf1f74['length'],_0x2b2f22,0x3),this['decompose'](_0x38fdb0,this['length'],_0x2b2f22,0x1),TextNode['from'](_0x2b2f22,this['length']-(_0x38fdb0-_0x44ad0d)+_0xf1f74['length']);}['append'](_0x429cfe){return this['replace'](this['length'],this['length'],_0x429cfe);}['slice'](_0x1333a3,_0xb3b73c=this['length']){[_0x1333a3,_0xb3b73c]=clip(this,_0x1333a3,_0xb3b73c);let _0x45fa34=[];return this['decompose'](_0x1333a3,_0xb3b73c,_0x45fa34,0x0),TextNode['from'](_0x45fa34,_0xb3b73c-_0x1333a3);}['eq'](_0x1f58e1){if(_0x1f58e1==this)return!0x0;if(_0x1f58e1['length']!=this['length']||_0x1f58e1['lines']!=this['lines'])return!0x1;let _0x5ce767=this['scanIdentical'](_0x1f58e1,0x1),_0x51f9dd=this['length']-this['scanIdentical'](_0x1f58e1,-0x1),_0x483053=new RawTextCursor(this),_0x21c861=new RawTextCursor(_0x1f58e1);for(let _0x5991cb=_0x5ce767,_0x3bae85=_0x5ce767;;){if(_0x483053['next'](_0x5991cb),_0x21c861['next'](_0x5991cb),_0x5991cb=0x0,_0x483053['lineBreak']!=_0x21c861['lineBreak']||_0x483053['done']!=_0x21c861['done']||_0x483053['value']!=_0x21c861['value'])return!0x1;if(_0x3bae85+=_0x483053['value']['length'],_0x483053['done']||_0x3bae85>=_0x51f9dd)return!0x0;}}['iter'](_0x5d29ed=0x1){return new RawTextCursor(this,_0x5d29ed);}['iterRange'](_0x4a1f0c,_0x337db2=this['length']){return new PartialTextCursor(this,_0x4a1f0c,_0x337db2);}['iterLines'](_0x8bb68f,_0x29f1b){let _0x476a20;if(null==_0x8bb68f)_0x476a20=this['iter']();else{null==_0x29f1b&&(_0x29f1b=this['lines']+0x1);let _0x10f24a=this['line'](_0x8bb68f)['from'];_0x476a20=this['iterRange'](_0x10f24a,Math['max'](_0x10f24a,_0x29f1b==this['lines']+0x1?this['length']:_0x29f1b<=0x1?0x0:this['line'](_0x29f1b-0x1)['to']));}return new LineCursor(_0x476a20);}['toString'](){return this['sliceString'](0x0);}['toJSON'](){let _0x4aff0c=[];return this['flatten'](_0x4aff0c),_0x4aff0c;}constructor(){}static['of'](_0x93d290){if(0x0==_0x93d290['length'])throw new RangeError('A\x20document\x20must\x20have\x20at\x20least\x20one\x20line');return 0x1!=_0x93d290['length']||_0x93d290[0x0]?_0x93d290['length']<=0x20?new TextLeaf(_0x93d290):TextNode['from'](TextLeaf['split'](_0x93d290,[])):Text['empty'];}}class TextLeaf extends Text{constructor(_0x220d5d,_0x1d1634=textLength(_0x220d5d)){super(),this['text']=_0x220d5d,this['length']=_0x1d1634;}get['lines'](){return this['text']['length'];}get['children'](){return null;}['lineInner'](_0x131f84,_0x44e515,_0x170c1c,_0x4bcda0){for(let _0x34620d=0x0;;_0x34620d++){let _0x102770=this['text'][_0x34620d],_0x28e67a=_0x4bcda0+_0x102770['length'];if((_0x44e515?_0x170c1c:_0x28e67a)>=_0x131f84)return new Line$1(_0x4bcda0,_0x28e67a,_0x170c1c,_0x102770);_0x4bcda0=_0x28e67a+0x1,_0x170c1c++;}}['decompose'](_0x263e07,_0x5c1969,_0x2f5a1d,_0x363be5){let _0x3b5aa4=_0x263e07<=0x0&&_0x5c1969>=this['length']?this:new TextLeaf(sliceText(this['text'],_0x263e07,_0x5c1969),Math['min'](_0x5c1969,this['length'])-Math['max'](0x0,_0x263e07));if(0x1&_0x363be5){let _0x317324=_0x2f5a1d['pop'](),_0x5a284b=appendText(_0x3b5aa4['text'],_0x317324['text']['slice'](),0x0,_0x3b5aa4['length']);if(_0x5a284b['length']<=0x20)_0x2f5a1d['push'](new TextLeaf(_0x5a284b,_0x317324['length']+_0x3b5aa4['length']));else{let _0x313008=_0x5a284b['length']>>0x1;_0x2f5a1d['push'](new TextLeaf(_0x5a284b['slice'](0x0,_0x313008)),new TextLeaf(_0x5a284b['slice'](_0x313008)));}}else _0x2f5a1d['push'](_0x3b5aa4);}['replace'](_0x20ae9f,_0x3d7d23,_0x4b84d2){if(!(_0x4b84d2 instanceof TextLeaf))return super['replace'](_0x20ae9f,_0x3d7d23,_0x4b84d2);[_0x20ae9f,_0x3d7d23]=clip(this,_0x20ae9f,_0x3d7d23);let _0x3b8f0a=appendText(this['text'],appendText(_0x4b84d2['text'],sliceText(this['text'],0x0,_0x20ae9f)),_0x3d7d23),_0x5b2172=this['length']+_0x4b84d2['length']-(_0x3d7d23-_0x20ae9f);return _0x3b8f0a['length']<=0x20?new TextLeaf(_0x3b8f0a,_0x5b2172):TextNode['from'](TextLeaf['split'](_0x3b8f0a,[]),_0x5b2172);}['sliceString'](_0x247856,_0x1b55ed=this['length'],_0x5811a1='\x0a'){[_0x247856,_0x1b55ed]=clip(this,_0x247856,_0x1b55ed);let _0x463932='';for(let _0x424e4b=0x0,_0xcd62be=0x0;_0x424e4b<=_0x1b55ed&&_0xcd62be<this['text']['length'];_0xcd62be++){let _0x4d3b51=this['text'][_0xcd62be],_0x16ab32=_0x424e4b+_0x4d3b51['length'];_0x424e4b>_0x247856&&_0xcd62be&&(_0x463932+=_0x5811a1),_0x247856<_0x16ab32&&_0x1b55ed>_0x424e4b&&(_0x463932+=_0x4d3b51['slice'](Math['max'](0x0,_0x247856-_0x424e4b),_0x1b55ed-_0x424e4b)),_0x424e4b=_0x16ab32+0x1;}return _0x463932;}['flatten'](_0x57fefb){for(let _0x17292b of this['text'])_0x57fefb['push'](_0x17292b);}['scanIdentical'](){return 0x0;}static['split'](_0x17c03c,_0x178652){let _0xe31008=[],_0x48a988=-0x1;for(let _0x765c24 of _0x17c03c)_0xe31008['push'](_0x765c24),_0x48a988+=_0x765c24['length']+0x1,0x20==_0xe31008['length']&&(_0x178652['push'](new TextLeaf(_0xe31008,_0x48a988)),_0xe31008=[],_0x48a988=-0x1);return _0x48a988>-0x1&&_0x178652['push'](new TextLeaf(_0xe31008,_0x48a988)),_0x178652;}}class TextNode extends Text{constructor(_0x454f98,_0x1bad74){super(),this['children']=_0x454f98,this['length']=_0x1bad74,this['lines']=0x0;for(let _0x1511ab of _0x454f98)this['lines']+=_0x1511ab['lines'];}['lineInner'](_0xda878d,_0x3dc6b7,_0x3b72f0,_0x1a62ce){for(let _0x20d3f3=0x0;;_0x20d3f3++){let _0x5e4a6f=this['children'][_0x20d3f3],_0x7ab2fc=_0x1a62ce+_0x5e4a6f['length'],_0x3e46da=_0x3b72f0+_0x5e4a6f['lines']-0x1;if((_0x3dc6b7?_0x3e46da:_0x7ab2fc)>=_0xda878d)return _0x5e4a6f['lineInner'](_0xda878d,_0x3dc6b7,_0x3b72f0,_0x1a62ce);_0x1a62ce=_0x7ab2fc+0x1,_0x3b72f0=_0x3e46da+0x1;}}['decompose'](_0x24662a,_0x3fb227,_0x50f201,_0x29d35a){for(let _0x34e08a=0x0,_0x22a2c0=0x0;_0x22a2c0<=_0x3fb227&&_0x34e08a<this['children']['length'];_0x34e08a++){let _0x51766c=this['children'][_0x34e08a],_0x56319c=_0x22a2c0+_0x51766c['length'];if(_0x24662a<=_0x56319c&&_0x3fb227>=_0x22a2c0){let _0xd66cdf=_0x29d35a&((_0x22a2c0<=_0x24662a?0x1:0x0)|(_0x56319c>=_0x3fb227?0x2:0x0));_0x22a2c0>=_0x24662a&&_0x56319c<=_0x3fb227&&!_0xd66cdf?_0x50f201['push'](_0x51766c):_0x51766c['decompose'](_0x24662a-_0x22a2c0,_0x3fb227-_0x22a2c0,_0x50f201,_0xd66cdf);}_0x22a2c0=_0x56319c+0x1;}}['replace'](_0x2304ec,_0x84482e,_0x4c7e1c){if([_0x2304ec,_0x84482e]=clip(this,_0x2304ec,_0x84482e),_0x4c7e1c['lines']<this['lines'])for(let _0x43716a=0x0,_0x1ae43b=0x0;_0x43716a<this['children']['length'];_0x43716a++){let _0x5050e8=this['children'][_0x43716a],_0x2e29ec=_0x1ae43b+_0x5050e8['length'];if(_0x2304ec>=_0x1ae43b&&_0x84482e<=_0x2e29ec){let _0x3ed04e=_0x5050e8['replace'](_0x2304ec-_0x1ae43b,_0x84482e-_0x1ae43b,_0x4c7e1c),_0x4f3a2a=this['lines']-_0x5050e8['lines']+_0x3ed04e['lines'];if(_0x3ed04e['lines']<_0x4f3a2a>>0x4&&_0x3ed04e['lines']>_0x4f3a2a>>0x6){let _0x3f546c=this['children']['slice']();return _0x3f546c[_0x43716a]=_0x3ed04e,new TextNode(_0x3f546c,this['length']-(_0x84482e-_0x2304ec)+_0x4c7e1c['length']);}return super['replace'](_0x1ae43b,_0x2e29ec,_0x3ed04e);}_0x1ae43b=_0x2e29ec+0x1;}return super['replace'](_0x2304ec,_0x84482e,_0x4c7e1c);}['sliceString'](_0xa2e200,_0x53a9fb=this['length'],_0x1ad5cc='\x0a'){[_0xa2e200,_0x53a9fb]=clip(this,_0xa2e200,_0x53a9fb);let _0xec32f3='';for(let _0x2542d5=0x0,_0x2fd0f0=0x0;_0x2542d5<this['children']['length']&&_0x2fd0f0<=_0x53a9fb;_0x2542d5++){let _0x115ee1=this['children'][_0x2542d5],_0x123ae9=_0x2fd0f0+_0x115ee1['length'];_0x2fd0f0>_0xa2e200&&_0x2542d5&&(_0xec32f3+=_0x1ad5cc),_0xa2e200<_0x123ae9&&_0x53a9fb>_0x2fd0f0&&(_0xec32f3+=_0x115ee1['sliceString'](_0xa2e200-_0x2fd0f0,_0x53a9fb-_0x2fd0f0,_0x1ad5cc)),_0x2fd0f0=_0x123ae9+0x1;}return _0xec32f3;}['flatten'](_0x579058){for(let _0x2b9b2f of this['children'])_0x2b9b2f['flatten'](_0x579058);}['scanIdentical'](_0x2c704c,_0x5cc0fa){if(!(_0x2c704c instanceof TextNode))return 0x0;let _0x650d63=0x0,[_0x1b2462,_0x139ffb,_0x172406,_0x628803]=_0x5cc0fa>0x0?[0x0,0x0,this['children']['length'],_0x2c704c['children']['length']]:[this['children']['length']-0x1,_0x2c704c['children']['length']-0x1,-0x1,-0x1];for(;;_0x1b2462+=_0x5cc0fa,_0x139ffb+=_0x5cc0fa){if(_0x1b2462==_0x172406||_0x139ffb==_0x628803)return _0x650d63;let _0x1a7523=this['children'][_0x1b2462],_0x1276b8=_0x2c704c['children'][_0x139ffb];if(_0x1a7523!=_0x1276b8)return _0x650d63+_0x1a7523['scanIdentical'](_0x1276b8,_0x5cc0fa);_0x650d63+=_0x1a7523['length']+0x1;}}static['from'](_0x33be07,_0x3f622e=_0x33be07['reduce']((_0x14d160,_0x164c58)=>_0x14d160+_0x164c58['length']+0x1,-0x1)){let _0x1b8250=0x0;for(let _0x3a8ddf of _0x33be07)_0x1b8250+=_0x3a8ddf['lines'];if(_0x1b8250<0x20){let _0x433db1=[];for(let _0x447485 of _0x33be07)_0x447485['flatten'](_0x433db1);return new TextLeaf(_0x433db1,_0x3f622e);}let _0x1435f6=Math['max'](0x20,_0x1b8250>>0x5),_0x59ae69=_0x1435f6<<0x1,_0x3b846e=_0x1435f6>>0x1,_0x60fe75=[],_0x414481=0x0,_0x4b2482=-0x1,_0x1ebb84=[];function _0x1eeb53(_0x5858dc){let _0x5c670f;if(_0x5858dc['lines']>_0x59ae69&&_0x5858dc instanceof TextNode){for(let _0x1ad4d9 of _0x5858dc['children'])_0x1eeb53(_0x1ad4d9);}else _0x5858dc['lines']>_0x3b846e&&(_0x414481>_0x3b846e||!_0x414481)?(_0x3d67c2(),_0x60fe75['push'](_0x5858dc)):_0x5858dc instanceof TextLeaf&&_0x414481&&(_0x5c670f=_0x1ebb84[_0x1ebb84['length']-0x1])instanceof TextLeaf&&_0x5858dc['lines']+_0x5c670f['lines']<=0x20?(_0x414481+=_0x5858dc['lines'],_0x4b2482+=_0x5858dc['length']+0x1,_0x1ebb84[_0x1ebb84['length']-0x1]=new TextLeaf(_0x5c670f['text']['concat'](_0x5858dc['text']),_0x5c670f['length']+0x1+_0x5858dc['length'])):(_0x414481+_0x5858dc['lines']>_0x1435f6&&_0x3d67c2(),_0x414481+=_0x5858dc['lines'],_0x4b2482+=_0x5858dc['length']+0x1,_0x1ebb84['push'](_0x5858dc));}function _0x3d67c2(){0x0!=_0x414481&&(_0x60fe75['push'](0x1==_0x1ebb84['length']?_0x1ebb84[0x0]:TextNode['from'](_0x1ebb84,_0x4b2482)),_0x4b2482=-0x1,_0x414481=_0x1ebb84['length']=0x0);}for(let _0x1bf992 of _0x33be07)_0x1eeb53(_0x1bf992);return _0x3d67c2(),0x1==_0x60fe75['length']?_0x60fe75[0x0]:new TextNode(_0x60fe75,_0x3f622e);}}function textLength(_0x284c49){let _0x5dbfec=-0x1;for(let _0x48547f of _0x284c49)_0x5dbfec+=_0x48547f['length']+0x1;return _0x5dbfec;}function appendText(_0xcccd93,_0x33d699,_0x38f0d6=0x0,_0x34816c=0x3b9aca00){for(let _0x5ecb6e=0x0,_0x200515=0x0,_0x20f4d4=!0x0;_0x200515<_0xcccd93['length']&&_0x5ecb6e<=_0x34816c;_0x200515++){let _0x21cdc9=_0xcccd93[_0x200515],_0x343f2b=_0x5ecb6e+_0x21cdc9['length'];_0x343f2b>=_0x38f0d6&&(_0x343f2b>_0x34816c&&(_0x21cdc9=_0x21cdc9['slice'](0x0,_0x34816c-_0x5ecb6e)),_0x5ecb6e<_0x38f0d6&&(_0x21cdc9=_0x21cdc9['slice'](_0x38f0d6-_0x5ecb6e)),_0x20f4d4?(_0x33d699[_0x33d699['length']-0x1]+=_0x21cdc9,_0x20f4d4=!0x1):_0x33d699['push'](_0x21cdc9)),_0x5ecb6e=_0x343f2b+0x1;}return _0x33d699;}function sliceText(_0x534378,_0x15ec23,_0x553e57){return appendText(_0x534378,[''],_0x15ec23,_0x553e57);}Text['empty']=new TextLeaf([''],0x0);class RawTextCursor{constructor(_0x35cc49,_0x3e9aa2=0x1){this['dir']=_0x3e9aa2,this['done']=!0x1,this['lineBreak']=!0x1,this['value']='',this['nodes']=[_0x35cc49],this['offsets']=[_0x3e9aa2>0x0?0x1:(_0x35cc49 instanceof TextLeaf?_0x35cc49['text']['length']:_0x35cc49['children']['length'])<<0x1];}['nextInner'](_0x34906f,_0x2fa07f){for(this['done']=this['lineBreak']=!0x1;;){let _0x54c92f=this['nodes']['length']-0x1,_0x5ab598=this['nodes'][_0x54c92f],_0x6537a9=this['offsets'][_0x54c92f],_0x511497=_0x6537a9>>0x1,_0x4217a4=_0x5ab598 instanceof TextLeaf?_0x5ab598['text']['length']:_0x5ab598['children']['length'];if(_0x511497==(_0x2fa07f>0x0?_0x4217a4:0x0)){if(0x0==_0x54c92f)return this['done']=!0x0,this['value']='',this;_0x2fa07f>0x0&&this['offsets'][_0x54c92f-0x1]++,this['nodes']['pop'](),this['offsets']['pop']();}else{if((0x1&_0x6537a9)==(_0x2fa07f>0x0?0x0:0x1)){if(this['offsets'][_0x54c92f]+=_0x2fa07f,0x0==_0x34906f)return this['lineBreak']=!0x0,this['value']='\x0a',this;_0x34906f--;}else{if(_0x5ab598 instanceof TextLeaf){let _0x2aff71=_0x5ab598['text'][_0x511497+(_0x2fa07f<0x0?-0x1:0x0)];if(this['offsets'][_0x54c92f]+=_0x2fa07f,_0x2aff71['length']>Math['max'](0x0,_0x34906f))return this['value']=0x0==_0x34906f?_0x2aff71:_0x2fa07f>0x0?_0x2aff71['slice'](_0x34906f):_0x2aff71['slice'](0x0,_0x2aff71['length']-_0x34906f),this;_0x34906f-=_0x2aff71['length'];}else{let _0x53ecf6=_0x5ab598['children'][_0x511497+(_0x2fa07f<0x0?-0x1:0x0)];_0x34906f>_0x53ecf6['length']?(_0x34906f-=_0x53ecf6['length'],this['offsets'][_0x54c92f]+=_0x2fa07f):(_0x2fa07f<0x0&&this['offsets'][_0x54c92f]--,this['nodes']['push'](_0x53ecf6),this['offsets']['push'](_0x2fa07f>0x0?0x1:(_0x53ecf6 instanceof TextLeaf?_0x53ecf6['text']['length']:_0x53ecf6['children']['length'])<<0x1));}}}}}['next'](_0x37783a=0x0){return _0x37783a<0x0&&(this['nextInner'](-_0x37783a,-this['dir']),_0x37783a=this['value']['length']),this['nextInner'](_0x37783a,this['dir']);}}class PartialTextCursor{constructor(_0x45fa2f,_0x3024e0,_0x13314d){this['value']='',this['done']=!0x1,this['cursor']=new RawTextCursor(_0x45fa2f,_0x3024e0>_0x13314d?-0x1:0x1),this['pos']=_0x3024e0>_0x13314d?_0x45fa2f['length']:0x0,this['from']=Math['min'](_0x3024e0,_0x13314d),this['to']=Math['max'](_0x3024e0,_0x13314d);}['nextInner'](_0x201e92,_0x426e4d){if(_0x426e4d<0x0?this['pos']<=this['from']:this['pos']>=this['to'])return this['value']='',this['done']=!0x0,this;_0x201e92+=Math['max'](0x0,_0x426e4d<0x0?this['pos']-this['to']:this['from']-this['pos']);let _0x113026=_0x426e4d<0x0?this['pos']-this['from']:this['to']-this['pos'];_0x201e92>_0x113026&&(_0x201e92=_0x113026),_0x113026-=_0x201e92;let {value:_0x8f367a}=this['cursor']['next'](_0x201e92);return this['pos']+=(_0x8f367a['length']+_0x201e92)*_0x426e4d,this['value']=_0x8f367a['length']<=_0x113026?_0x8f367a:_0x426e4d<0x0?_0x8f367a['slice'](_0x8f367a['length']-_0x113026):_0x8f367a['slice'](0x0,_0x113026),this['done']=!this['value'],this;}['next'](_0x2ba657=0x0){return _0x2ba657<0x0?_0x2ba657=Math['max'](_0x2ba657,this['from']-this['pos']):_0x2ba657>0x0&&(_0x2ba657=Math['min'](_0x2ba657,this['to']-this['pos'])),this['nextInner'](_0x2ba657,this['cursor']['dir']);}get['lineBreak'](){return this['cursor']['lineBreak']&&''!=this['value'];}}class LineCursor{constructor(_0x3c658c){this['inner']=_0x3c658c,this['afterBreak']=!0x0,this['value']='',this['done']=!0x1;}['next'](_0x41c196=0x0){let {done:_0x7b3f69,lineBreak:_0x2a1ef1,value:_0x4b2f6f}=this['inner']['next'](_0x41c196);return _0x7b3f69&&this['afterBreak']?(this['value']='',this['afterBreak']=!0x1):_0x7b3f69?(this['done']=!0x0,this['value']=''):_0x2a1ef1?this['afterBreak']?this['value']='':(this['afterBreak']=!0x0,this['next']()):(this['value']=_0x4b2f6f,this['afterBreak']=!0x1),this;}get['lineBreak'](){return!0x1;}}'undefined'!=typeof Symbol&&(Text['prototype'][Symbol['iterator']]=function(){return this['iter']();},RawTextCursor['prototype'][Symbol['iterator']]=PartialTextCursor['prototype'][Symbol['iterator']]=LineCursor['prototype'][Symbol['iterator']]=function(){return this;});let Line$1=class{constructor(_0x1892fd,_0x331e6b,_0x1bb2ca,_0x25b68f){this['from']=_0x1892fd,this['to']=_0x331e6b,this['number']=_0x1bb2ca,this['text']=_0x25b68f;}get['length'](){return this['to']-this['from'];}};function clip(_0x51323a,_0x6b09a7,_0x225783){return[_0x6b09a7=Math['max'](0x0,Math['min'](_0x51323a['length'],_0x6b09a7)),Math['max'](_0x6b09a7,Math['min'](_0x51323a['length'],_0x225783))];}function findClusterBreak(_0x371ae7,_0x2a24d1,_0x32a6db=!0x0,_0x1e2ef1=!0x0){return findClusterBreak$1(_0x371ae7,_0x2a24d1,_0x32a6db,_0x1e2ef1);}function surrogateLow(_0x20174e){return _0x20174e>=0xdc00&&_0x20174e<0xe000;}function surrogateHigh(_0x5c98aa){return _0x5c98aa>=0xd800&&_0x5c98aa<0xdc00;}function codePointAt(_0x15ad96,_0x321245){let _0x666035=_0x15ad96['charCodeAt'](_0x321245);if(!surrogateHigh(_0x666035)||_0x321245+0x1==_0x15ad96['length'])return _0x666035;let _0x3c1e33=_0x15ad96['charCodeAt'](_0x321245+0x1);return surrogateLow(_0x3c1e33)?_0x3c1e33-0xdc00+(_0x666035-0xd800<<0xa)+0x10000:_0x666035;}function fromCodePoint(_0x3d3aca){return _0x3d3aca<=0xffff?String['fromCharCode'](_0x3d3aca):(_0x3d3aca-=0x10000,String['fromCharCode'](0xd800+(_0x3d3aca>>0xa),0xdc00+(0x3ff&_0x3d3aca)));}function codePointSize(_0x1557d7){return _0x1557d7<0x10000?0x1:0x2;}const DefaultSplit=/\r\n?|\n/;var MapMode=function(_0x1cdb4e){return _0x1cdb4e[_0x1cdb4e['Simple']=0x0]='Simple',_0x1cdb4e[_0x1cdb4e['TrackDel']=0x1]='TrackDel',_0x1cdb4e[_0x1cdb4e['TrackBefore']=0x2]='TrackBefore',_0x1cdb4e[_0x1cdb4e['TrackAfter']=0x3]='TrackAfter',_0x1cdb4e;}(MapMode||(MapMode={}));class ChangeDesc{constructor(_0x382174){this['sections']=_0x382174;}get['length'](){let _0x29bd85=0x0;for(let _0x1b2f9a=0x0;_0x1b2f9a<this['sections']['length'];_0x1b2f9a+=0x2)_0x29bd85+=this['sections'][_0x1b2f9a];return _0x29bd85;}get['newLength'](){let _0x49f0ad=0x0;for(let _0x1217da=0x0;_0x1217da<this['sections']['length'];_0x1217da+=0x2){let _0x596877=this['sections'][_0x1217da+0x1];_0x49f0ad+=_0x596877<0x0?this['sections'][_0x1217da]:_0x596877;}return _0x49f0ad;}get['empty'](){return 0x0==this['sections']['length']||0x2==this['sections']['length']&&this['sections'][0x1]<0x0;}['iterGaps'](_0x5a9dc2){for(let _0x1e6035=0x0,_0x1cc21c=0x0,_0x56f1e9=0x0;_0x1e6035<this['sections']['length'];){let _0x18d0b8=this['sections'][_0x1e6035++],_0x14fcb0=this['sections'][_0x1e6035++];_0x14fcb0<0x0?(_0x5a9dc2(_0x1cc21c,_0x56f1e9,_0x18d0b8),_0x56f1e9+=_0x18d0b8):_0x56f1e9+=_0x14fcb0,_0x1cc21c+=_0x18d0b8;}}['iterChangedRanges'](_0x20aaf8,_0x2c4eb0=!0x1){iterChanges(this,_0x20aaf8,_0x2c4eb0);}get['invertedDesc'](){let _0x3c56cc=[];for(let _0x33de20=0x0;_0x33de20<this['sections']['length'];){let _0x666e77=this['sections'][_0x33de20++],_0x1465a5=this['sections'][_0x33de20++];_0x1465a5<0x0?_0x3c56cc['push'](_0x666e77,_0x1465a5):_0x3c56cc['push'](_0x1465a5,_0x666e77);}return new ChangeDesc(_0x3c56cc);}['composeDesc'](_0x369baf){return this['empty']?_0x369baf:_0x369baf['empty']?this:composeSets(this,_0x369baf);}['mapDesc'](_0x407a77,_0x4b9bd6=!0x1){return _0x407a77['empty']?this:mapSet(this,_0x407a77,_0x4b9bd6);}['mapPos'](_0x48458a,_0x778391=-0x1,_0x3d5390=MapMode['Simple']){let _0x482e6d=0x0,_0x28aa9f=0x0;for(let _0x449aef=0x0;_0x449aef<this['sections']['length'];){let _0x2179ac=this['sections'][_0x449aef++],_0x2314ac=this['sections'][_0x449aef++],_0x28b70f=_0x482e6d+_0x2179ac;if(_0x2314ac<0x0){if(_0x28b70f>_0x48458a)return _0x28aa9f+(_0x48458a-_0x482e6d);_0x28aa9f+=_0x2179ac;}else{if(_0x3d5390!=MapMode['Simple']&&_0x28b70f>=_0x48458a&&(_0x3d5390==MapMode['TrackDel']&&_0x482e6d<_0x48458a&&_0x28b70f>_0x48458a||_0x3d5390==MapMode['TrackBefore']&&_0x482e6d<_0x48458a||_0x3d5390==MapMode['TrackAfter']&&_0x28b70f>_0x48458a))return null;if(_0x28b70f>_0x48458a||_0x28b70f==_0x48458a&&_0x778391<0x0&&!_0x2179ac)return _0x48458a==_0x482e6d||_0x778391<0x0?_0x28aa9f:_0x28aa9f+_0x2314ac;_0x28aa9f+=_0x2314ac;}_0x482e6d=_0x28b70f;}if(_0x48458a>_0x482e6d)throw new RangeError('Position\x20'+_0x48458a+'\x20is\x20out\x20of\x20range\x20for\x20changeset\x20of\x20length\x20'+_0x482e6d);return _0x28aa9f;}['touchesRange'](_0x3498ab,_0x3ed26a=_0x3498ab){for(let _0x50e45d=0x0,_0x373461=0x0;_0x50e45d<this['sections']['length']&&_0x373461<=_0x3ed26a;){let _0x48e5f5=_0x373461+this['sections'][_0x50e45d++];if(this['sections'][_0x50e45d++]>=0x0&&_0x373461<=_0x3ed26a&&_0x48e5f5>=_0x3498ab)return!(_0x373461<_0x3498ab&&_0x48e5f5>_0x3ed26a)||'cover';_0x373461=_0x48e5f5;}return!0x1;}['toString'](){let _0xe56481='';for(let _0x1c8abd=0x0;_0x1c8abd<this['sections']['length'];){let _0x35690a=this['sections'][_0x1c8abd++],_0x4da644=this['sections'][_0x1c8abd++];_0xe56481+=(_0xe56481?'\x20':'')+_0x35690a+(_0x4da644>=0x0?':'+_0x4da644:'');}return _0xe56481;}['toJSON'](){return this['sections'];}static['fromJSON'](_0x4e6690){if(!Array['isArray'](_0x4e6690)||_0x4e6690['length']%0x2||_0x4e6690['some'](_0x46f523=>'number'!=typeof _0x46f523))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeDesc');return new ChangeDesc(_0x4e6690);}static['create'](_0x428530){return new ChangeDesc(_0x428530);}}class ChangeSet extends ChangeDesc{constructor(_0x221f9f,_0x3fdb1b){super(_0x221f9f),this['inserted']=_0x3fdb1b;}['apply'](_0x59c42b){if(this['length']!=_0x59c42b['length'])throw new RangeError('Applying\x20change\x20set\x20to\x20a\x20document\x20with\x20the\x20wrong\x20length');return iterChanges(this,(_0x5c3b6f,_0x52eeb8,_0x116c73,_0x20e495,_0x3d13f6)=>_0x59c42b=_0x59c42b['replace'](_0x116c73,_0x116c73+(_0x52eeb8-_0x5c3b6f),_0x3d13f6),!0x1),_0x59c42b;}['mapDesc'](_0x16074e,_0x12be61=!0x1){return mapSet(this,_0x16074e,_0x12be61,!0x0);}['invert'](_0x205a0b){let _0x1fbda7=this['sections']['slice'](),_0x477a25=[];for(let _0x15a82f=0x0,_0x44c8d5=0x0;_0x15a82f<_0x1fbda7['length'];_0x15a82f+=0x2){let _0x2be7a3=_0x1fbda7[_0x15a82f],_0x424bd1=_0x1fbda7[_0x15a82f+0x1];if(_0x424bd1>=0x0){_0x1fbda7[_0x15a82f]=_0x424bd1,_0x1fbda7[_0x15a82f+0x1]=_0x2be7a3;let _0x5a32ed=_0x15a82f>>0x1;for(;_0x477a25['length']<_0x5a32ed;)_0x477a25['push'](Text['empty']);_0x477a25['push'](_0x2be7a3?_0x205a0b['slice'](_0x44c8d5,_0x44c8d5+_0x2be7a3):Text['empty']);}_0x44c8d5+=_0x2be7a3;}return new ChangeSet(_0x1fbda7,_0x477a25);}['compose'](_0x257538){return this['empty']?_0x257538:_0x257538['empty']?this:composeSets(this,_0x257538,!0x0);}['map'](_0x27194a,_0x3f4df5=!0x1){return _0x27194a['empty']?this:mapSet(this,_0x27194a,_0x3f4df5,!0x0);}['iterChanges'](_0x58fb65,_0xc61f24=!0x1){iterChanges(this,_0x58fb65,_0xc61f24);}get['desc'](){return ChangeDesc['create'](this['sections']);}['filter'](_0x2555be){let _0x1d5708=[],_0x20fc1b=[],_0x5c290e=[],_0x231324=new SectionIter(this);t:for(let _0x44cdbd=0x0,_0x45c5e1=0x0;;){let _0x55fa4b=_0x44cdbd==_0x2555be['length']?0x3b9aca00:_0x2555be[_0x44cdbd++];for(;_0x45c5e1<_0x55fa4b||_0x45c5e1==_0x55fa4b&&0x0==_0x231324['len'];){if(_0x231324['done'])break t;let _0x5a4ffd=Math['min'](_0x231324['len'],_0x55fa4b-_0x45c5e1);addSection(_0x5c290e,_0x5a4ffd,-0x1);let _0x129c50=-0x1==_0x231324['ins']?-0x1:0x0==_0x231324['off']?_0x231324['ins']:0x0;addSection(_0x1d5708,_0x5a4ffd,_0x129c50),_0x129c50>0x0&&addInsert(_0x20fc1b,_0x1d5708,_0x231324['text']),_0x231324['forward'](_0x5a4ffd),_0x45c5e1+=_0x5a4ffd;}let _0x53848b=_0x2555be[_0x44cdbd++];for(;_0x45c5e1<_0x53848b;){if(_0x231324['done'])break t;let _0xfcf1f8=Math['min'](_0x231324['len'],_0x53848b-_0x45c5e1);addSection(_0x1d5708,_0xfcf1f8,-0x1),addSection(_0x5c290e,_0xfcf1f8,-0x1==_0x231324['ins']?-0x1:0x0==_0x231324['off']?_0x231324['ins']:0x0),_0x231324['forward'](_0xfcf1f8),_0x45c5e1+=_0xfcf1f8;}}return{'changes':new ChangeSet(_0x1d5708,_0x20fc1b),'filtered':ChangeDesc['create'](_0x5c290e)};}['toJSON'](){let _0xac4f9a=[];for(let _0x562cbf=0x0;_0x562cbf<this['sections']['length'];_0x562cbf+=0x2){let _0x5c1b71=this['sections'][_0x562cbf],_0x135aa7=this['sections'][_0x562cbf+0x1];_0x135aa7<0x0?_0xac4f9a['push'](_0x5c1b71):0x0==_0x135aa7?_0xac4f9a['push']([_0x5c1b71]):_0xac4f9a['push']([_0x5c1b71]['concat'](this['inserted'][_0x562cbf>>0x1]['toJSON']()));}return _0xac4f9a;}static['of'](_0x11b887,_0x118157,_0x2bc25b){let _0x2324c1=[],_0xfeac=[],_0x57bcb3=0x0,_0x418944=null;function _0x171f3c(_0x1833db=!0x1){if(!_0x1833db&&!_0x2324c1['length'])return;_0x57bcb3<_0x118157&&addSection(_0x2324c1,_0x118157-_0x57bcb3,-0x1);let _0x70b5d2=new ChangeSet(_0x2324c1,_0xfeac);_0x418944=_0x418944?_0x418944['compose'](_0x70b5d2['map'](_0x418944)):_0x70b5d2,_0x2324c1=[],_0xfeac=[],_0x57bcb3=0x0;}return function _0x5befa7(_0x2dee7d){if(Array['isArray'](_0x2dee7d)){for(let _0xe02ca3 of _0x2dee7d)_0x5befa7(_0xe02ca3);}else{if(_0x2dee7d instanceof ChangeSet){if(_0x2dee7d['length']!=_0x118157)throw new RangeError('Mismatched\x20change\x20set\x20length\x20(got\x20'+_0x2dee7d['length']+',\x20expected\x20'+_0x118157+')');_0x171f3c(),_0x418944=_0x418944?_0x418944['compose'](_0x2dee7d['map'](_0x418944)):_0x2dee7d;}else{let {from:_0x594466,to:_0x57cb03=_0x594466,insert:_0x3e606b}=_0x2dee7d;if(_0x594466>_0x57cb03||_0x594466<0x0||_0x57cb03>_0x118157)throw new RangeError('Invalid\x20change\x20range\x20'+_0x594466+'\x20to\x20'+_0x57cb03+'\x20(in\x20doc\x20of\x20length\x20'+_0x118157+')');let _0x179f07=_0x3e606b?'string'==typeof _0x3e606b?Text['of'](_0x3e606b['split'](_0x2bc25b||DefaultSplit)):_0x3e606b:Text['empty'],_0x49d2ec=_0x179f07['length'];if(_0x594466==_0x57cb03&&0x0==_0x49d2ec)return;_0x594466<_0x57bcb3&&_0x171f3c(),_0x594466>_0x57bcb3&&addSection(_0x2324c1,_0x594466-_0x57bcb3,-0x1),addSection(_0x2324c1,_0x57cb03-_0x594466,_0x49d2ec),addInsert(_0xfeac,_0x2324c1,_0x179f07),_0x57bcb3=_0x57cb03;}}}(_0x11b887),_0x171f3c(!_0x418944),_0x418944;}static['empty'](_0x34fbfa){return new ChangeSet(_0x34fbfa?[_0x34fbfa,-0x1]:[],[]);}static['fromJSON'](_0x171c8a){if(!Array['isArray'](_0x171c8a))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');let _0x206519=[],_0x2a60fe=[];for(let _0x94225f=0x0;_0x94225f<_0x171c8a['length'];_0x94225f++){let _0x157ae5=_0x171c8a[_0x94225f];if('number'==typeof _0x157ae5)_0x206519['push'](_0x157ae5,-0x1);else{if(!Array['isArray'](_0x157ae5)||'number'!=typeof _0x157ae5[0x0]||_0x157ae5['some']((_0x28d5e5,_0x4ebb2e)=>_0x4ebb2e&&'string'!=typeof _0x28d5e5))throw new RangeError('Invalid\x20JSON\x20representation\x20of\x20ChangeSet');if(0x1==_0x157ae5['length'])_0x206519['push'](_0x157ae5[0x0],0x0);else{for(;_0x2a60fe['length']<_0x94225f;)_0x2a60fe['push'](Text['empty']);_0x2a60fe[_0x94225f]=Text['of'](_0x157ae5['slice'](0x1)),_0x206519['push'](_0x157ae5[0x0],_0x2a60fe[_0x94225f]['length']);}}}return new ChangeSet(_0x206519,_0x2a60fe);}static['createSet'](_0x5e37f,_0x58683a){return new ChangeSet(_0x5e37f,_0x58683a);}}function addSection(_0x36648d,_0x5885c2,_0xc0bf74,_0x5b277f=!0x1){if(0x0==_0x5885c2&&_0xc0bf74<=0x0)return;let _0x2a5631=_0x36648d['length']-0x2;_0x2a5631>=0x0&&_0xc0bf74<=0x0&&_0xc0bf74==_0x36648d[_0x2a5631+0x1]?_0x36648d[_0x2a5631]+=_0x5885c2:_0x2a5631>=0x0&&0x0==_0x5885c2&&0x0==_0x36648d[_0x2a5631]?_0x36648d[_0x2a5631+0x1]+=_0xc0bf74:_0x5b277f?(_0x36648d[_0x2a5631]+=_0x5885c2,_0x36648d[_0x2a5631+0x1]+=_0xc0bf74):_0x36648d['push'](_0x5885c2,_0xc0bf74);}function addInsert(_0x25e589,_0x255dc,_0x9a0b11){if(0x0==_0x9a0b11['length'])return;let _0x1b407d=_0x255dc['length']-0x2>>0x1;if(_0x1b407d<_0x25e589['length'])_0x25e589[_0x25e589['length']-0x1]=_0x25e589[_0x25e589['length']-0x1]['append'](_0x9a0b11);else{for(;_0x25e589['length']<_0x1b407d;)_0x25e589['push'](Text['empty']);_0x25e589['push'](_0x9a0b11);}}function iterChanges(_0xc200b,_0x47f3f5,_0x4c8754){let _0x5b1ad4=_0xc200b['inserted'];for(let _0x4d79da=0x0,_0x61aa71=0x0,_0xefa8d8=0x0;_0xefa8d8<_0xc200b['sections']['length'];){let _0x19c301=_0xc200b['sections'][_0xefa8d8++],_0x187fc4=_0xc200b['sections'][_0xefa8d8++];if(_0x187fc4<0x0)_0x4d79da+=_0x19c301,_0x61aa71+=_0x19c301;else{let _0x208c9e=_0x4d79da,_0x3d2356=_0x61aa71,_0x511662=Text['empty'];for(;_0x208c9e+=_0x19c301,_0x3d2356+=_0x187fc4,_0x187fc4&&_0x5b1ad4&&(_0x511662=_0x511662['append'](_0x5b1ad4[_0xefa8d8-0x2>>0x1])),!(_0x4c8754||_0xefa8d8==_0xc200b['sections']['length']||_0xc200b['sections'][_0xefa8d8+0x1]<0x0);)_0x19c301=_0xc200b['sections'][_0xefa8d8++],_0x187fc4=_0xc200b['sections'][_0xefa8d8++];_0x47f3f5(_0x4d79da,_0x208c9e,_0x61aa71,_0x3d2356,_0x511662),_0x4d79da=_0x208c9e,_0x61aa71=_0x3d2356;}}}function mapSet(_0x47d5c3,_0x51a4f4,_0x460565,_0x1c6a3d=!0x1){let _0x574821=[],_0x457c29=_0x1c6a3d?[]:null,_0x13db3d=new SectionIter(_0x47d5c3),_0x3401ff=new SectionIter(_0x51a4f4);for(let _0x1ab8ff=-0x1;;){if(_0x13db3d['done']&&_0x3401ff['len']||_0x3401ff['done']&&_0x13db3d['len'])throw new Error('Mismatched\x20change\x20set\x20lengths');if(-0x1==_0x13db3d['ins']&&-0x1==_0x3401ff['ins']){let _0xef9eb4=Math['min'](_0x13db3d['len'],_0x3401ff['len']);addSection(_0x574821,_0xef9eb4,-0x1),_0x13db3d['forward'](_0xef9eb4),_0x3401ff['forward'](_0xef9eb4);}else{if(_0x3401ff['ins']>=0x0&&(_0x13db3d['ins']<0x0||_0x1ab8ff==_0x13db3d['i']||0x0==_0x13db3d['off']&&(_0x3401ff['len']<_0x13db3d['len']||_0x3401ff['len']==_0x13db3d['len']&&!_0x460565))){let _0x106acb=_0x3401ff['len'];for(addSection(_0x574821,_0x3401ff['ins'],-0x1);_0x106acb;){let _0x39ebac=Math['min'](_0x13db3d['len'],_0x106acb);_0x13db3d['ins']>=0x0&&_0x1ab8ff<_0x13db3d['i']&&_0x13db3d['len']<=_0x39ebac&&(addSection(_0x574821,0x0,_0x13db3d['ins']),_0x457c29&&addInsert(_0x457c29,_0x574821,_0x13db3d['text']),_0x1ab8ff=_0x13db3d['i']),_0x13db3d['forward'](_0x39ebac),_0x106acb-=_0x39ebac;}_0x3401ff['next']();}else{if(!(_0x13db3d['ins']>=0x0)){if(_0x13db3d['done']&&_0x3401ff['done'])return _0x457c29?ChangeSet['createSet'](_0x574821,_0x457c29):ChangeDesc['create'](_0x574821);throw new Error('Mismatched\x20change\x20set\x20lengths');}{let _0x4c178b=0x0,_0x38179d=_0x13db3d['len'];for(;_0x38179d;)if(-0x1==_0x3401ff['ins']){let _0x369fd5=Math['min'](_0x38179d,_0x3401ff['len']);_0x4c178b+=_0x369fd5,_0x38179d-=_0x369fd5,_0x3401ff['forward'](_0x369fd5);}else{if(!(0x0==_0x3401ff['ins']&&_0x3401ff['len']<_0x38179d))break;_0x38179d-=_0x3401ff['len'],_0x3401ff['next']();}addSection(_0x574821,_0x4c178b,_0x1ab8ff<_0x13db3d['i']?_0x13db3d['ins']:0x0),_0x457c29&&_0x1ab8ff<_0x13db3d['i']&&addInsert(_0x457c29,_0x574821,_0x13db3d['text']),_0x1ab8ff=_0x13db3d['i'],_0x13db3d['forward'](_0x13db3d['len']-_0x38179d);}}}}}function composeSets(_0x2755bd,_0x139909,_0x47f5d0=!0x1){let _0xc67975=[],_0x5db408=_0x47f5d0?[]:null,_0x4e8770=new SectionIter(_0x2755bd),_0x2a2886=new SectionIter(_0x139909);for(let _0x165277=!0x1;;){if(_0x4e8770['done']&&_0x2a2886['done'])return _0x5db408?ChangeSet['createSet'](_0xc67975,_0x5db408):ChangeDesc['create'](_0xc67975);if(0x0==_0x4e8770['ins'])addSection(_0xc67975,_0x4e8770['len'],0x0,_0x165277),_0x4e8770['next']();else{if(0x0!=_0x2a2886['len']||_0x2a2886['done']){if(_0x4e8770['done']||_0x2a2886['done'])throw new Error('Mismatched\x20change\x20set\x20lengths');{let _0x3146a0=Math['min'](_0x4e8770['len2'],_0x2a2886['len']),_0x4333b9=_0xc67975['length'];if(-0x1==_0x4e8770['ins']){let _0x41ce5a=-0x1==_0x2a2886['ins']?-0x1:_0x2a2886['off']?0x0:_0x2a2886['ins'];addSection(_0xc67975,_0x3146a0,_0x41ce5a,_0x165277),_0x5db408&&_0x41ce5a&&addInsert(_0x5db408,_0xc67975,_0x2a2886['text']);}else-0x1==_0x2a2886['ins']?(addSection(_0xc67975,_0x4e8770['off']?0x0:_0x4e8770['len'],_0x3146a0,_0x165277),_0x5db408&&addInsert(_0x5db408,_0xc67975,_0x4e8770['textBit'](_0x3146a0))):(addSection(_0xc67975,_0x4e8770['off']?0x0:_0x4e8770['len'],_0x2a2886['off']?0x0:_0x2a2886['ins'],_0x165277),_0x5db408&&!_0x2a2886['off']&&addInsert(_0x5db408,_0xc67975,_0x2a2886['text']));_0x165277=(_0x4e8770['ins']>_0x3146a0||_0x2a2886['ins']>=0x0&&_0x2a2886['len']>_0x3146a0)&&(_0x165277||_0xc67975['length']>_0x4333b9),_0x4e8770['forward2'](_0x3146a0),_0x2a2886['forward'](_0x3146a0);}}else addSection(_0xc67975,0x0,_0x2a2886['ins'],_0x165277),_0x5db408&&addInsert(_0x5db408,_0xc67975,_0x2a2886['text']),_0x2a2886['next']();}}}class SectionIter{constructor(_0x203bba){this['set']=_0x203bba,this['i']=0x0,this['next']();}['next'](){let {sections:_0x769a0d}=this['set'];this['i']<_0x769a0d['length']?(this['len']=_0x769a0d[this['i']++],this['ins']=_0x769a0d[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:_0x2d272c}=this['set'],_0x30b5aa=this['i']-0x2>>0x1;return _0x30b5aa>=_0x2d272c['length']?Text['empty']:_0x2d272c[_0x30b5aa];}['textBit'](_0xe37a42){let {inserted:_0x399506}=this['set'],_0x4c7771=this['i']-0x2>>0x1;return _0x4c7771>=_0x399506['length']&&!_0xe37a42?Text['empty']:_0x399506[_0x4c7771]['slice'](this['off'],null==_0xe37a42?void 0x0:this['off']+_0xe37a42);}['forward'](_0x59993b){_0x59993b==this['len']?this['next']():(this['len']-=_0x59993b,this['off']+=_0x59993b);}['forward2'](_0x5c5818){-0x1==this['ins']?this['forward'](_0x5c5818):_0x5c5818==this['ins']?this['next']():(this['ins']-=_0x5c5818,this['off']+=_0x5c5818);}}class SelectionRange{constructor(_0x3a41d7,_0x3be36e,_0x3947ed){this['from']=_0x3a41d7,this['to']=_0x3be36e,this['flags']=_0x3947ed;}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 _0x2ff69d=0x7&this['flags'];return 0x7==_0x2ff69d?null:_0x2ff69d;}get['goalColumn'](){let _0x3f5d65=this['flags']>>0x6;return 0xffffff==_0x3f5d65?void 0x0:_0x3f5d65;}['map'](_0x28e9b2,_0x1952e7=-0x1){let _0x369cc3,_0x100b93;return this['empty']?_0x369cc3=_0x100b93=_0x28e9b2['mapPos'](this['from'],_0x1952e7):(_0x369cc3=_0x28e9b2['mapPos'](this['from'],0x1),_0x100b93=_0x28e9b2['mapPos'](this['to'],-0x1)),_0x369cc3==this['from']&&_0x100b93==this['to']?this:new SelectionRange(_0x369cc3,_0x100b93,this['flags']);}['extend'](_0x2e2f96,_0x28130c=_0x2e2f96){if(_0x2e2f96<=this['anchor']&&_0x28130c>=this['anchor'])return EditorSelection['range'](_0x2e2f96,_0x28130c);let _0x5d9464=Math['abs'](_0x2e2f96-this['anchor'])>Math['abs'](_0x28130c-this['anchor'])?_0x2e2f96:_0x28130c;return EditorSelection['range'](this['anchor'],_0x5d9464);}['eq'](_0x3dee8b,_0x447958=!0x1){return!(this['anchor']!=_0x3dee8b['anchor']||this['head']!=_0x3dee8b['head']||_0x447958&&this['empty']&&this['assoc']!=_0x3dee8b['assoc']);}['toJSON'](){return{'anchor':this['anchor'],'head':this['head']};}static['fromJSON'](_0x17ddbd){if(!_0x17ddbd||'number'!=typeof _0x17ddbd['anchor']||'number'!=typeof _0x17ddbd['head'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20SelectionRange');return EditorSelection['range'](_0x17ddbd['anchor'],_0x17ddbd['head']);}static['create'](_0x4878be,_0x1aedf5,_0x3b807a){return new SelectionRange(_0x4878be,_0x1aedf5,_0x3b807a);}}class EditorSelection{constructor(_0x2a9f64,_0x3f6822){this['ranges']=_0x2a9f64,this['mainIndex']=_0x3f6822;}['map'](_0x4f37f9,_0x5b349e=-0x1){return _0x4f37f9['empty']?this:EditorSelection['create'](this['ranges']['map'](_0xfceff4=>_0xfceff4['map'](_0x4f37f9,_0x5b349e)),this['mainIndex']);}['eq'](_0x41e204,_0x39a2bb=!0x1){if(this['ranges']['length']!=_0x41e204['ranges']['length']||this['mainIndex']!=_0x41e204['mainIndex'])return!0x1;for(let _0x5f1f49=0x0;_0x5f1f49<this['ranges']['length'];_0x5f1f49++)if(!this['ranges'][_0x5f1f49]['eq'](_0x41e204['ranges'][_0x5f1f49],_0x39a2bb))return!0x1;return!0x0;}get['main'](){return this['ranges'][this['mainIndex']];}['asSingle'](){return 0x1==this['ranges']['length']?this:new EditorSelection([this['main']],0x0);}['addRange'](_0x1ebe4c,_0x2aa436=!0x0){return EditorSelection['create']([_0x1ebe4c]['concat'](this['ranges']),_0x2aa436?0x0:this['mainIndex']+0x1);}['replaceRange'](_0x19cd39,_0x32d88e=this['mainIndex']){let _0x10afac=this['ranges']['slice']();return _0x10afac[_0x32d88e]=_0x19cd39,EditorSelection['create'](_0x10afac,this['mainIndex']);}['toJSON'](){return{'ranges':this['ranges']['map'](_0x3c496b=>_0x3c496b['toJSON']()),'main':this['mainIndex']};}static['fromJSON'](_0x2800cb){if(!_0x2800cb||!Array['isArray'](_0x2800cb['ranges'])||'number'!=typeof _0x2800cb['main']||_0x2800cb['main']>=_0x2800cb['ranges']['length'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorSelection');return new EditorSelection(_0x2800cb['ranges']['map'](_0x253e0d=>SelectionRange['fromJSON'](_0x253e0d)),_0x2800cb['main']);}static['single'](_0x31b3c5,_0x542833=_0x31b3c5){return new EditorSelection([EditorSelection['range'](_0x31b3c5,_0x542833)],0x0);}static['create'](_0x3da0c4,_0x5ca746=0x0){if(0x0==_0x3da0c4['length'])throw new RangeError('A\x20selection\x20needs\x20at\x20least\x20one\x20range');for(let _0x516083=0x0,_0xf8b24b=0x0;_0xf8b24b<_0x3da0c4['length'];_0xf8b24b++){let _0x566abf=_0x3da0c4[_0xf8b24b];if(_0x566abf['empty']?_0x566abf['from']<=_0x516083:_0x566abf['from']<_0x516083)return EditorSelection['normalized'](_0x3da0c4['slice'](),_0x5ca746);_0x516083=_0x566abf['to'];}return new EditorSelection(_0x3da0c4,_0x5ca746);}static['cursor'](_0x4d5cb4,_0x32ae86=0x0,_0x1c47f1,_0x862a82){return SelectionRange['create'](_0x4d5cb4,_0x4d5cb4,(0x0==_0x32ae86?0x0:_0x32ae86<0x0?0x8:0x10)|(null==_0x1c47f1?0x7:Math['min'](0x6,_0x1c47f1))|(null!=_0x862a82?_0x862a82:0xffffff)<<0x6);}static['range'](_0x5c350b,_0x3aac42,_0x4b46d7,_0x4c2dbd){let _0x44b213=(null!=_0x4b46d7?_0x4b46d7:0xffffff)<<0x6|(null==_0x4c2dbd?0x7:Math['min'](0x6,_0x4c2dbd));return _0x3aac42<_0x5c350b?SelectionRange['create'](_0x3aac42,_0x5c350b,0x30|_0x44b213):SelectionRange['create'](_0x5c350b,_0x3aac42,(_0x3aac42>_0x5c350b?0x8:0x0)|_0x44b213);}static['normalized'](_0x344341,_0x370d30=0x0){let _0x1e6ee2=_0x344341[_0x370d30];_0x344341['sort']((_0x3f97bb,_0x5e004e)=>_0x3f97bb['from']-_0x5e004e['from']),_0x370d30=_0x344341['indexOf'](_0x1e6ee2);for(let _0x405d48=0x1;_0x405d48<_0x344341['length'];_0x405d48++){let _0x22d487=_0x344341[_0x405d48],_0x5bc647=_0x344341[_0x405d48-0x1];if(_0x22d487['empty']?_0x22d487['from']<=_0x5bc647['to']:_0x22d487['from']<_0x5bc647['to']){let _0x2f8548=_0x5bc647['from'],_0x2b4f6b=Math['max'](_0x22d487['to'],_0x5bc647['to']);_0x405d48<=_0x370d30&&_0x370d30--,_0x344341['splice'](--_0x405d48,0x2,_0x22d487['anchor']>_0x22d487['head']?EditorSelection['range'](_0x2b4f6b,_0x2f8548):EditorSelection['range'](_0x2f8548,_0x2b4f6b));}}return new EditorSelection(_0x344341,_0x370d30);}}function checkSelection(_0x160723,_0x15e694){for(let _0x3c7cc6 of _0x160723['ranges'])if(_0x3c7cc6['to']>_0x15e694)throw new RangeError('Selection\x20points\x20outside\x20of\x20document');}let nextID=0x0;class Facet{constructor(_0x3343c7,_0x469602,_0x192c69,_0x23e406,_0x568cc4){this['combine']=_0x3343c7,this['compareInput']=_0x469602,this['compare']=_0x192c69,this['isStatic']=_0x23e406,this['id']=nextID++,this['default']=_0x3343c7([]),this['extensions']='function'==typeof _0x568cc4?_0x568cc4(this):_0x568cc4;}get['reader'](){return this;}static['define'](_0x5d94af={}){return new Facet(_0x5d94af['combine']||(_0xaca579=>_0xaca579),_0x5d94af['compareInput']||((_0x260c94,_0x3a3367)=>_0x260c94===_0x3a3367),_0x5d94af['compare']||(_0x5d94af['combine']?(_0xb6c7d5,_0x17a7b7)=>_0xb6c7d5===_0x17a7b7:sameArray$1),!!_0x5d94af['static'],_0x5d94af['enables']);}['of'](_0x4e4a0c){return new FacetProvider([],this,0x0,_0x4e4a0c);}['compute'](_0x4e5a2b,_0x4562f1){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x4e5a2b,this,0x1,_0x4562f1);}['computeN'](_0x4b748d,_0x578c17){if(this['isStatic'])throw new Error('Can\x27t\x20compute\x20a\x20static\x20facet');return new FacetProvider(_0x4b748d,this,0x2,_0x578c17);}['from'](_0x580eff,_0x2df29a){return _0x2df29a||(_0x2df29a=_0x37402a=>_0x37402a),this['compute']([_0x580eff],_0x14cee3=>_0x2df29a(_0x14cee3['field'](_0x580eff)));}}function sameArray$1(_0x406975,_0xc284cc){return _0x406975==_0xc284cc||_0x406975['length']==_0xc284cc['length']&&_0x406975['every']((_0xa99972,_0x255477)=>_0xa99972===_0xc284cc[_0x255477]);}class FacetProvider{constructor(_0xb2a394,_0x4971d6,_0x5f051c,_0x4d89b3){this['dependencies']=_0xb2a394,this['facet']=_0x4971d6,this['type']=_0x5f051c,this['value']=_0x4d89b3,this['id']=nextID++;}['dynamicSlot'](_0x132e8f){var _0x13efff;let _0x26127d=this['value'],_0x2d672f=this['facet']['compareInput'],_0x317993=this['id'],_0x148b59=_0x132e8f[_0x317993]>>0x1,_0x2548d0=0x2==this['type'],_0x2f3468=!0x1,_0x3feac0=!0x1,_0xa6e8e8=[];for(let _0x3d055c of this['dependencies'])'doc'==_0x3d055c?_0x2f3468=!0x0:'selection'==_0x3d055c?_0x3feac0=!0x0:0x1&(null!==(_0x13efff=_0x132e8f[_0x3d055c['id']])&&void 0x0!==_0x13efff?_0x13efff:0x1)||_0xa6e8e8['push'](_0x132e8f[_0x3d055c['id']]);return{'create':_0x5e129f=>(_0x5e129f['values'][_0x148b59]=_0x26127d(_0x5e129f),0x1),'update'(_0x359ba9,_0x1aeb1c){if(_0x2f3468&&_0x1aeb1c['docChanged']||_0x3feac0&&(_0x1aeb1c['docChanged']||_0x1aeb1c['selection'])||ensureAll(_0x359ba9,_0xa6e8e8)){let _0x3f0221=_0x26127d(_0x359ba9);if(_0x2548d0?!compareArray(_0x3f0221,_0x359ba9['values'][_0x148b59],_0x2d672f):!_0x2d672f(_0x3f0221,_0x359ba9['values'][_0x148b59]))return _0x359ba9['values'][_0x148b59]=_0x3f0221,0x1;}return 0x0;},'reconfigure':(_0x3fe3be,_0x4ca11c)=>{let _0x4a4ba7,_0x5e2a17=_0x4ca11c['config']['address'][_0x317993];if(null!=_0x5e2a17){let _0x13c907=getAddr(_0x4ca11c,_0x5e2a17);if(this['dependencies']['every'](_0xac6b93=>_0xac6b93 instanceof Facet?_0x4ca11c['facet'](_0xac6b93)===_0x3fe3be['facet'](_0xac6b93):!(_0xac6b93 instanceof StateField)||_0x4ca11c['field'](_0xac6b93,!0x1)==_0x3fe3be['field'](_0xac6b93,!0x1))||(_0x2548d0?compareArray(_0x4a4ba7=_0x26127d(_0x3fe3be),_0x13c907,_0x2d672f):_0x2d672f(_0x4a4ba7=_0x26127d(_0x3fe3be),_0x13c907)))return _0x3fe3be['values'][_0x148b59]=_0x13c907,0x0;}else _0x4a4ba7=_0x26127d(_0x3fe3be);return _0x3fe3be['values'][_0x148b59]=_0x4a4ba7,0x1;}};}}function compareArray(_0x212738,_0xe53914,_0x4f4dff){if(_0x212738['length']!=_0xe53914['length'])return!0x1;for(let _0x7be8bb=0x0;_0x7be8bb<_0x212738['length'];_0x7be8bb++)if(!_0x4f4dff(_0x212738[_0x7be8bb],_0xe53914[_0x7be8bb]))return!0x1;return!0x0;}function ensureAll(_0x515b3a,_0x142f5e){let _0x36562a=!0x1;for(let _0x51c9bf of _0x142f5e)0x1&ensureAddr(_0x515b3a,_0x51c9bf)&&(_0x36562a=!0x0);return _0x36562a;}function dynamicFacetSlot(_0x2ce19f,_0x576f2a,_0x33304b){let _0x4134d0=_0x33304b['map'](_0x451ee0=>_0x2ce19f[_0x451ee0['id']]),_0x1d12e6=_0x33304b['map'](_0x2cb18c=>_0x2cb18c['type']),_0x5a90e6=_0x4134d0['filter'](_0x1f5f33=>!(0x1&_0x1f5f33)),_0x538f20=_0x2ce19f[_0x576f2a['id']]>>0x1;function _0x2fe702(_0x41ebff){let _0x1b5ff5=[];for(let _0x2af611=0x0;_0x2af611<_0x4134d0['length'];_0x2af611++){let _0x154fba=getAddr(_0x41ebff,_0x4134d0[_0x2af611]);if(0x2==_0x1d12e6[_0x2af611]){for(let _0x123ce9 of _0x154fba)_0x1b5ff5['push'](_0x123ce9);}else _0x1b5ff5['push'](_0x154fba);}return _0x576f2a['combine'](_0x1b5ff5);}return{'create'(_0x350991){for(let _0x988ef8 of _0x4134d0)ensureAddr(_0x350991,_0x988ef8);return _0x350991['values'][_0x538f20]=_0x2fe702(_0x350991),0x1;},'update'(_0x1c8ae7,_0x296079){if(!ensureAll(_0x1c8ae7,_0x5a90e6))return 0x0;let _0xf3ba24=_0x2fe702(_0x1c8ae7);return _0x576f2a['compare'](_0xf3ba24,_0x1c8ae7['values'][_0x538f20])?0x0:(_0x1c8ae7['values'][_0x538f20]=_0xf3ba24,0x1);},'reconfigure'(_0x38ef9e,_0x1830a6){let _0x12ded7=ensureAll(_0x38ef9e,_0x4134d0),_0x1da1a9=_0x1830a6['config']['facets'][_0x576f2a['id']],_0x25bdf3=_0x1830a6['facet'](_0x576f2a);if(_0x1da1a9&&!_0x12ded7&&sameArray$1(_0x33304b,_0x1da1a9))return _0x38ef9e['values'][_0x538f20]=_0x25bdf3,0x0;let _0x312c79=_0x2fe702(_0x38ef9e);return _0x576f2a['compare'](_0x312c79,_0x25bdf3)?(_0x38ef9e['values'][_0x538f20]=_0x25bdf3,0x0):(_0x38ef9e['values'][_0x538f20]=_0x312c79,0x1);}};}const initField=Facet['define']({'static':!0x0});class StateField{constructor(_0x49d321,_0x5419a3,_0x1034c5,_0x44367c,_0x40587f){this['id']=_0x49d321,this['createF']=_0x5419a3,this['updateF']=_0x1034c5,this['compareF']=_0x44367c,this['spec']=_0x40587f,this['provides']=void 0x0;}static['define'](_0x452504){let _0x5141b6=new StateField(nextID++,_0x452504['create'],_0x452504['update'],_0x452504['compare']||((_0x10899e,_0x44237e)=>_0x10899e===_0x44237e),_0x452504);return _0x452504['provide']&&(_0x5141b6['provides']=_0x452504['provide'](_0x5141b6)),_0x5141b6;}['create'](_0x2a5329){let _0x1d2d0f=_0x2a5329['facet'](initField)['find'](_0x23c5f7=>_0x23c5f7['field']==this);return((null==_0x1d2d0f?void 0x0:_0x1d2d0f['create'])||this['createF'])(_0x2a5329);}['slot'](_0x51cf27){let _0x37efe7=_0x51cf27[this['id']]>>0x1;return{'create':_0x1aa275=>(_0x1aa275['values'][_0x37efe7]=this['create'](_0x1aa275),0x1),'update':(_0x1466ca,_0x3c9a4b)=>{let _0x109086=_0x1466ca['values'][_0x37efe7],_0x49ac7a=this['updateF'](_0x109086,_0x3c9a4b);return this['compareF'](_0x109086,_0x49ac7a)?0x0:(_0x1466ca['values'][_0x37efe7]=_0x49ac7a,0x1);},'reconfigure':(_0x5ad602,_0x3e8e89)=>{let _0x349233,_0x3b8a53=_0x5ad602['facet'](initField),_0x1ac1ba=_0x3e8e89['facet'](initField);return(_0x349233=_0x3b8a53['find'](_0xd8802=>_0xd8802['field']==this))&&_0x349233!=_0x1ac1ba['find'](_0x4f5a8c=>_0x4f5a8c['field']==this)?(_0x5ad602['values'][_0x37efe7]=_0x349233['create'](_0x5ad602),0x1):null!=_0x3e8e89['config']['address'][this['id']]?(_0x5ad602['values'][_0x37efe7]=_0x3e8e89['field'](this),0x0):(_0x5ad602['values'][_0x37efe7]=this['create'](_0x5ad602),0x1);}};}['init'](_0x3c6265){return[this,initField['of']({'field':this,'create':_0x3c6265})];}get['extension'](){return this;}}const Prec_={'lowest':0x4,'low':0x3,'default':0x2,'high':0x1,'highest':0x0};function prec(_0x569941){return _0x22c934=>new PrecExtension(_0x22c934,_0x569941);}const Prec={'highest':prec(Prec_['highest']),'high':prec(Prec_['high']),'default':prec(Prec_['default']),'low':prec(Prec_['low']),'lowest':prec(Prec_['lowest'])};class PrecExtension{constructor(_0x118285,_0x2c4aa7){this['inner']=_0x118285,this['prec']=_0x2c4aa7;}}class Compartment{['of'](_0x44b1eb){return new CompartmentInstance(this,_0x44b1eb);}['reconfigure'](_0x2d883f){return Compartment['reconfigure']['of']({'compartment':this,'extension':_0x2d883f});}['get'](_0x2b8ef9){return _0x2b8ef9['config']['compartments']['get'](this);}}class CompartmentInstance{constructor(_0x2d5806,_0xceb395){this['compartment']=_0x2d5806,this['inner']=_0xceb395;}}class Configuration{constructor(_0x52245f,_0x398936,_0x16615b,_0x2c66bb,_0x29848f,_0x440fe7){for(this['base']=_0x52245f,this['compartments']=_0x398936,this['dynamicSlots']=_0x16615b,this['address']=_0x2c66bb,this['staticValues']=_0x29848f,this['facets']=_0x440fe7,this['statusTemplate']=[];this['statusTemplate']['length']<_0x16615b['length'];)this['statusTemplate']['push'](0x0);}['staticFacet'](_0x534c18){let _0x48c701=this['address'][_0x534c18['id']];return null==_0x48c701?_0x534c18['default']:this['staticValues'][_0x48c701>>0x1];}static['resolve'](_0x4110bf,_0x5092cf,_0x1f2f90){let _0x3f0784=[],_0x3910b1=Object['create'](null),_0x275b05=new Map();for(let _0x1ac0c1 of flatten(_0x4110bf,_0x5092cf,_0x275b05))_0x1ac0c1 instanceof StateField?_0x3f0784['push'](_0x1ac0c1):(_0x3910b1[_0x1ac0c1['facet']['id']]||(_0x3910b1[_0x1ac0c1['facet']['id']]=[]))['push'](_0x1ac0c1);let _0x5a0086=Object['create'](null),_0x4b2e8c=[],_0x150eb6=[];for(let _0x2fec85 of _0x3f0784)_0x5a0086[_0x2fec85['id']]=_0x150eb6['length']<<0x1,_0x150eb6['push'](_0x2dcea9=>_0x2fec85['slot'](_0x2dcea9));let _0xd3682f=null==_0x1f2f90?void 0x0:_0x1f2f90['config']['facets'];for(let _0x117061 in _0x3910b1){let _0x2002e8=_0x3910b1[_0x117061],_0xf5c0d2=_0x2002e8[0x0]['facet'],_0x3f381c=_0xd3682f&&_0xd3682f[_0x117061]||[];if(_0x2002e8['every'](_0x3678c6=>0x0==_0x3678c6['type'])){if(_0x5a0086[_0xf5c0d2['id']]=_0x4b2e8c['length']<<0x1|0x1,sameArray$1(_0x3f381c,_0x2002e8))_0x4b2e8c['push'](_0x1f2f90['facet'](_0xf5c0d2));else{let _0x28c293=_0xf5c0d2['combine'](_0x2002e8['map'](_0x570102=>_0x570102['value']));_0x4b2e8c['push'](_0x1f2f90&&_0xf5c0d2['compare'](_0x28c293,_0x1f2f90['facet'](_0xf5c0d2))?_0x1f2f90['facet'](_0xf5c0d2):_0x28c293);}}else{for(let _0x2363dc of _0x2002e8)0x0==_0x2363dc['type']?(_0x5a0086[_0x2363dc['id']]=_0x4b2e8c['length']<<0x1|0x1,_0x4b2e8c['push'](_0x2363dc['value'])):(_0x5a0086[_0x2363dc['id']]=_0x150eb6['length']<<0x1,_0x150eb6['push'](_0x46da2a=>_0x2363dc['dynamicSlot'](_0x46da2a)));_0x5a0086[_0xf5c0d2['id']]=_0x150eb6['length']<<0x1,_0x150eb6['push'](_0x337ecb=>dynamicFacetSlot(_0x337ecb,_0xf5c0d2,_0x2002e8));}}let _0x394797=_0x150eb6['map'](_0x546a49=>_0x546a49(_0x5a0086));return new Configuration(_0x4110bf,_0x275b05,_0x394797,_0x5a0086,_0x4b2e8c,_0x3910b1);}}function flatten(_0x45d55f,_0x4791c7,_0x4dad0a){let _0x54e573=[[],[],[],[],[]],_0x28235a=new Map();return function _0x2f61ee(_0x24aaaf,_0x5c384f){let _0x119bb4=_0x28235a['get'](_0x24aaaf);if(null!=_0x119bb4){if(_0x119bb4<=_0x5c384f)return;let _0x18f8d0=_0x54e573[_0x119bb4]['indexOf'](_0x24aaaf);_0x18f8d0>-0x1&&_0x54e573[_0x119bb4]['splice'](_0x18f8d0,0x1),_0x24aaaf instanceof CompartmentInstance&&_0x4dad0a['delete'](_0x24aaaf['compartment']);}if(_0x28235a['set'](_0x24aaaf,_0x5c384f),Array['isArray'](_0x24aaaf)){for(let _0x211039 of _0x24aaaf)_0x2f61ee(_0x211039,_0x5c384f);}else{if(_0x24aaaf instanceof CompartmentInstance){if(_0x4dad0a['has'](_0x24aaaf['compartment']))throw new RangeError('Duplicate\x20use\x20of\x20compartment\x20in\x20extensions');let _0xbd3ea0=_0x4791c7['get'](_0x24aaaf['compartment'])||_0x24aaaf['inner'];_0x4dad0a['set'](_0x24aaaf['compartment'],_0xbd3ea0),_0x2f61ee(_0xbd3ea0,_0x5c384f);}else{if(_0x24aaaf instanceof PrecExtension)_0x2f61ee(_0x24aaaf['inner'],_0x24aaaf['prec']);else{if(_0x24aaaf instanceof StateField)_0x54e573[_0x5c384f]['push'](_0x24aaaf),_0x24aaaf['provides']&&_0x2f61ee(_0x24aaaf['provides'],_0x5c384f);else{if(_0x24aaaf instanceof FacetProvider)_0x54e573[_0x5c384f]['push'](_0x24aaaf),_0x24aaaf['facet']['extensions']&&_0x2f61ee(_0x24aaaf['facet']['extensions'],Prec_['default']);else{let _0x4a6a12=_0x24aaaf['extension'];if(!_0x4a6a12)throw new Error('Unrecognized\x20extension\x20value\x20in\x20extension\x20set\x20('+_0x24aaaf+').\x20This\x20sometimes\x20happens\x20because\x20multiple\x20instances\x20of\x20@codemirror/state\x20are\x20loaded,\x20breaking\x20instanceof\x20checks.');_0x2f61ee(_0x4a6a12,_0x5c384f);}}}}}}(_0x45d55f,Prec_['default']),_0x54e573['reduce']((_0x41a1bd,_0x4765e0)=>_0x41a1bd['concat'](_0x4765e0));}function ensureAddr(_0x467ba6,_0x54c0c4){if(0x1&_0x54c0c4)return 0x2;let _0x81277=_0x54c0c4>>0x1,_0x31d31b=_0x467ba6['status'][_0x81277];if(0x4==_0x31d31b)throw new Error('Cyclic\x20dependency\x20between\x20fields\x20and/or\x20facets');if(0x2&_0x31d31b)return _0x31d31b;_0x467ba6['status'][_0x81277]=0x4;let _0x234e43=_0x467ba6['computeSlot'](_0x467ba6,_0x467ba6['config']['dynamicSlots'][_0x81277]);return _0x467ba6['status'][_0x81277]=0x2|_0x234e43;}function getAddr(_0x35a8ac,_0x63ac31){return 0x1&_0x63ac31?_0x35a8ac['config']['staticValues'][_0x63ac31>>0x1]:_0x35a8ac['values'][_0x63ac31>>0x1];}const languageData=Facet['define'](),allowMultipleSelections=Facet['define']({'combine':_0x3b9e7f=>_0x3b9e7f['some'](_0x3c7e97=>_0x3c7e97),'static':!0x0}),lineSeparator=Facet['define']({'combine':_0xa5a9d8=>_0xa5a9d8['length']?_0xa5a9d8[0x0]:void 0x0,'static':!0x0}),changeFilter=Facet['define'](),transactionFilter=Facet['define'](),transactionExtender=Facet['define'](),readOnly=Facet['define']({'combine':_0x1eaf50=>!!_0x1eaf50['length']&&_0x1eaf50[0x0]});class Annotation{constructor(_0x29b245,_0x36aa83){this['type']=_0x29b245,this['value']=_0x36aa83;}static['define'](){return new AnnotationType();}}class AnnotationType{['of'](_0x36406d){return new Annotation(this,_0x36406d);}}class StateEffectType{constructor(_0x398e66){this['map']=_0x398e66;}['of'](_0x3f5ce9){return new StateEffect(this,_0x3f5ce9);}}class StateEffect{constructor(_0x526470,_0x3dcce9){this['type']=_0x526470,this['value']=_0x3dcce9;}['map'](_0x10e787){let _0x325917=this['type']['map'](this['value'],_0x10e787);return void 0x0===_0x325917?void 0x0:_0x325917==this['value']?this:new StateEffect(this['type'],_0x325917);}['is'](_0x28cd2f){return this['type']==_0x28cd2f;}static['define'](_0x4084da={}){return new StateEffectType(_0x4084da['map']||(_0x3ed0d8=>_0x3ed0d8));}static['mapEffects'](_0x5f1de4,_0x1d1625){if(!_0x5f1de4['length'])return _0x5f1de4;let _0xad3dea=[];for(let _0x112aa3 of _0x5f1de4){let _0xbd4337=_0x112aa3['map'](_0x1d1625);_0xbd4337&&_0xad3dea['push'](_0xbd4337);}return _0xad3dea;}}StateEffect['reconfigure']=StateEffect['define'](),StateEffect['appendConfig']=StateEffect['define']();class Transaction{constructor(_0x55e10e,_0xf185a2,_0x338259,_0x474388,_0x49d4f4,_0x492a5c){this['startState']=_0x55e10e,this['changes']=_0xf185a2,this['selection']=_0x338259,this['effects']=_0x474388,this['annotations']=_0x49d4f4,this['scrollIntoView']=_0x492a5c,this['_doc']=null,this['_state']=null,_0x338259&&checkSelection(_0x338259,_0xf185a2['newLength']),_0x49d4f4['some'](_0x425228=>_0x425228['type']==Transaction['time'])||(this['annotations']=_0x49d4f4['concat'](Transaction['time']['of'](Date['now']())));}static['create'](_0x5cea82,_0x397d55,_0x5e7df7,_0x56259d,_0x3916fa,_0x38927d){return new Transaction(_0x5cea82,_0x397d55,_0x5e7df7,_0x56259d,_0x3916fa,_0x38927d);}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'](_0x1b9a55){for(let _0x486ea0 of this['annotations'])if(_0x486ea0['type']==_0x1b9a55)return _0x486ea0['value'];}get['docChanged'](){return!this['changes']['empty'];}get['reconfigured'](){return this['startState']['config']!=this['state']['config'];}['isUserEvent'](_0x4b3d02){let _0x3a543f=this['annotation'](Transaction['userEvent']);return!(!_0x3a543f||!(_0x3a543f==_0x4b3d02||_0x3a543f['length']>_0x4b3d02['length']&&_0x3a543f['slice'](0x0,_0x4b3d02['length'])==_0x4b3d02&&'.'==_0x3a543f[_0x4b3d02['length']]));}}function joinRanges(_0x34d649,_0x14437d){let _0x5663a9=[];for(let _0x44fc35=0x0,_0x4108e5=0x0;;){let _0x16a79c,_0x4c2664;if(_0x44fc35<_0x34d649['length']&&(_0x4108e5==_0x14437d['length']||_0x14437d[_0x4108e5]>=_0x34d649[_0x44fc35]))_0x16a79c=_0x34d649[_0x44fc35++],_0x4c2664=_0x34d649[_0x44fc35++];else{if(!(_0x4108e5<_0x14437d['length']))return _0x5663a9;_0x16a79c=_0x14437d[_0x4108e5++],_0x4c2664=_0x14437d[_0x4108e5++];}!_0x5663a9['length']||_0x5663a9[_0x5663a9['length']-0x1]<_0x16a79c?_0x5663a9['push'](_0x16a79c,_0x4c2664):_0x5663a9[_0x5663a9['length']-0x1]<_0x4c2664&&(_0x5663a9[_0x5663a9['length']-0x1]=_0x4c2664);}}function mergeTransaction(_0x475b19,_0x390593,_0x365064){var _0x27db9e;let _0x4e80ae,_0x5c16d2,_0x1e144a;return _0x365064?(_0x4e80ae=_0x390593['changes'],_0x5c16d2=ChangeSet['empty'](_0x390593['changes']['length']),_0x1e144a=_0x475b19['changes']['compose'](_0x390593['changes'])):(_0x4e80ae=_0x390593['changes']['map'](_0x475b19['changes']),_0x5c16d2=_0x475b19['changes']['mapDesc'](_0x390593['changes'],!0x0),_0x1e144a=_0x475b19['changes']['compose'](_0x4e80ae)),{'changes':_0x1e144a,'selection':_0x390593['selection']?_0x390593['selection']['map'](_0x5c16d2):null===(_0x27db9e=_0x475b19['selection'])||void 0x0===_0x27db9e?void 0x0:_0x27db9e['map'](_0x4e80ae),'effects':StateEffect['mapEffects'](_0x475b19['effects'],_0x4e80ae)['concat'](StateEffect['mapEffects'](_0x390593['effects'],_0x5c16d2)),'annotations':_0x475b19['annotations']['length']?_0x475b19['annotations']['concat'](_0x390593['annotations']):_0x390593['annotations'],'scrollIntoView':_0x475b19['scrollIntoView']||_0x390593['scrollIntoView']};}function resolveTransactionInner(_0x3b2ff8,_0x32b619,_0x29b608){let _0x5aab09=_0x32b619['selection'],_0x117bb5=asArray$2(_0x32b619['annotations']);return _0x32b619['userEvent']&&(_0x117bb5=_0x117bb5['concat'](Transaction['userEvent']['of'](_0x32b619['userEvent']))),{'changes':_0x32b619['changes']instanceof ChangeSet?_0x32b619['changes']:ChangeSet['of'](_0x32b619['changes']||[],_0x29b608,_0x3b2ff8['facet'](lineSeparator)),'selection':_0x5aab09&&(_0x5aab09 instanceof EditorSelection?_0x5aab09:EditorSelection['single'](_0x5aab09['anchor'],_0x5aab09['head'])),'effects':asArray$2(_0x32b619['effects']),'annotations':_0x117bb5,'scrollIntoView':!!_0x32b619['scrollIntoView']};}function resolveTransaction(_0x1a9d17,_0x397021,_0xae784e){let _0x2f4788=resolveTransactionInner(_0x1a9d17,_0x397021['length']?_0x397021[0x0]:{},_0x1a9d17['doc']['length']);_0x397021['length']&&!0x1===_0x397021[0x0]['filter']&&(_0xae784e=!0x1);for(let _0x44915e=0x1;_0x44915e<_0x397021['length'];_0x44915e++){!0x1===_0x397021[_0x44915e]['filter']&&(_0xae784e=!0x1);let _0x1e7575=!!_0x397021[_0x44915e]['sequential'];_0x2f4788=mergeTransaction(_0x2f4788,resolveTransactionInner(_0x1a9d17,_0x397021[_0x44915e],_0x1e7575?_0x2f4788['changes']['newLength']:_0x1a9d17['doc']['length']),_0x1e7575);}let _0x41e297=Transaction['create'](_0x1a9d17,_0x2f4788['changes'],_0x2f4788['selection'],_0x2f4788['effects'],_0x2f4788['annotations'],_0x2f4788['scrollIntoView']);return extendTransaction(_0xae784e?filterTransaction(_0x41e297):_0x41e297);}function filterTransaction(_0x34bfc7){let _0x503df2=_0x34bfc7['startState'],_0x52050d=!0x0;for(let _0x1388f3 of _0x503df2['facet'](changeFilter)){let _0x5848f2=_0x1388f3(_0x34bfc7);if(!0x1===_0x5848f2){_0x52050d=!0x1;break;}Array['isArray'](_0x5848f2)&&(_0x52050d=!0x0===_0x52050d?_0x5848f2:joinRanges(_0x52050d,_0x5848f2));}if(!0x0!==_0x52050d){let _0x495d05,_0x202a80;if(!0x1===_0x52050d)_0x202a80=_0x34bfc7['changes']['invertedDesc'],_0x495d05=ChangeSet['empty'](_0x503df2['doc']['length']);else{let _0x115a87=_0x34bfc7['changes']['filter'](_0x52050d);_0x495d05=_0x115a87['changes'],_0x202a80=_0x115a87['filtered']['mapDesc'](_0x115a87['changes'])['invertedDesc'];}_0x34bfc7=Transaction['create'](_0x503df2,_0x495d05,_0x34bfc7['selection']&&_0x34bfc7['selection']['map'](_0x202a80),StateEffect['mapEffects'](_0x34bfc7['effects'],_0x202a80),_0x34bfc7['annotations'],_0x34bfc7['scrollIntoView']);}let _0x2f864a=_0x503df2['facet'](transactionFilter);for(let _0x19a0f7=_0x2f864a['length']-0x1;_0x19a0f7>=0x0;_0x19a0f7--){let _0x3fa2ed=_0x2f864a[_0x19a0f7](_0x34bfc7);_0x34bfc7=_0x3fa2ed instanceof Transaction?_0x3fa2ed:Array['isArray'](_0x3fa2ed)&&0x1==_0x3fa2ed['length']&&_0x3fa2ed[0x0]instanceof Transaction?_0x3fa2ed[0x0]:resolveTransaction(_0x503df2,asArray$2(_0x3fa2ed),!0x1);}return _0x34bfc7;}function extendTransaction(_0x135164){let _0xe288f0=_0x135164['startState'],_0x563d27=_0xe288f0['facet'](transactionExtender),_0x1893b2=_0x135164;for(let _0x7772ee=_0x563d27['length']-0x1;_0x7772ee>=0x0;_0x7772ee--){let _0x3a7549=_0x563d27[_0x7772ee](_0x135164);_0x3a7549&&Object['keys'](_0x3a7549)['length']&&(_0x1893b2=mergeTransaction(_0x1893b2,resolveTransactionInner(_0xe288f0,_0x3a7549,_0x135164['changes']['newLength']),!0x0));}return _0x1893b2==_0x135164?_0x135164:Transaction['create'](_0xe288f0,_0x135164['changes'],_0x135164['selection'],_0x1893b2['effects'],_0x1893b2['annotations'],_0x1893b2['scrollIntoView']);}Transaction['time']=Annotation['define'](),Transaction['userEvent']=Annotation['define'](),Transaction['addToHistory']=Annotation['define'](),Transaction['remote']=Annotation['define']();const none$3=[];function asArray$2(_0x1fa80d){return null==_0x1fa80d?none$3:Array['isArray'](_0x1fa80d)?_0x1fa80d:[_0x1fa80d];}var CharCategory=function(_0x2b5754){return _0x2b5754[_0x2b5754['Word']=0x0]='Word',_0x2b5754[_0x2b5754['Space']=0x1]='Space',_0x2b5754[_0x2b5754['Other']=0x2]='Other',_0x2b5754;}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp('[\x5cp{Alphabetic}\x5cp{Number}_]','u');}catch(_0x1b002e){}function hasWordChar(_0x53a5e9){if(wordChar)return wordChar['test'](_0x53a5e9);for(let _0x198a22=0x0;_0x198a22<_0x53a5e9['length'];_0x198a22++){let _0x32badc=_0x53a5e9[_0x198a22];if(/\w/['test'](_0x32badc)||_0x32badc>'\u0080'&&(_0x32badc['toUpperCase']()!=_0x32badc['toLowerCase']()||nonASCIISingleCaseWordChar['test'](_0x32badc)))return!0x0;}return!0x1;}function makeCategorizer(_0x252e3d){return _0x3be097=>{if(!/\S/['test'](_0x3be097))return CharCategory['Space'];if(hasWordChar(_0x3be097))return CharCategory['Word'];for(let _0x2910fd=0x0;_0x2910fd<_0x252e3d['length'];_0x2910fd++)if(_0x3be097['indexOf'](_0x252e3d[_0x2910fd])>-0x1)return CharCategory['Word'];return CharCategory['Other'];};}class EditorState{constructor(_0x350d3a,_0x16e0d9,_0x1fba0a,_0x59fe47,_0x1ff431,_0x1af2f1){this['config']=_0x350d3a,this['doc']=_0x16e0d9,this['selection']=_0x1fba0a,this['values']=_0x59fe47,this['status']=_0x350d3a['statusTemplate']['slice'](),this['computeSlot']=_0x1ff431,_0x1af2f1&&(_0x1af2f1['_state']=this);for(let _0x111d5a=0x0;_0x111d5a<this['config']['dynamicSlots']['length'];_0x111d5a++)ensureAddr(this,_0x111d5a<<0x1);this['computeSlot']=null;}['field'](_0x412161,_0x26d3ec=!0x0){let _0x4c6c19=this['config']['address'][_0x412161['id']];if(null!=_0x4c6c19)return ensureAddr(this,_0x4c6c19),getAddr(this,_0x4c6c19);if(_0x26d3ec)throw new RangeError('Field\x20is\x20not\x20present\x20in\x20this\x20state');}['update'](..._0x5d0c43){return resolveTransaction(this,_0x5d0c43,!0x0);}['applyTransaction'](_0x21adbb){let _0x5008a7,_0x4bd74a=this['config'],{base:_0x682fa6,compartments:_0x474e31}=_0x4bd74a;for(let _0x393fc6 of _0x21adbb['effects'])_0x393fc6['is'](Compartment['reconfigure'])?(_0x4bd74a&&(_0x474e31=new Map(),_0x4bd74a['compartments']['forEach']((_0x2e506e,_0x4daf6c)=>_0x474e31['set'](_0x4daf6c,_0x2e506e)),_0x4bd74a=null),_0x474e31['set'](_0x393fc6['value']['compartment'],_0x393fc6['value']['extension'])):_0x393fc6['is'](StateEffect['reconfigure'])?(_0x4bd74a=null,_0x682fa6=_0x393fc6['value']):_0x393fc6['is'](StateEffect['appendConfig'])&&(_0x4bd74a=null,_0x682fa6=asArray$2(_0x682fa6)['concat'](_0x393fc6['value']));if(_0x4bd74a)_0x5008a7=_0x21adbb['startState']['values']['slice']();else _0x4bd74a=Configuration['resolve'](_0x682fa6,_0x474e31,this),_0x5008a7=new EditorState(_0x4bd74a,this['doc'],this['selection'],_0x4bd74a['dynamicSlots']['map'](()=>null),(_0x39d560,_0x2a3ba4)=>_0x2a3ba4['reconfigure'](_0x39d560,this),null)['values'];let _0x15a022=_0x21adbb['startState']['facet'](allowMultipleSelections)?_0x21adbb['newSelection']:_0x21adbb['newSelection']['asSingle']();new EditorState(_0x4bd74a,_0x21adbb['newDoc'],_0x15a022,_0x5008a7,(_0x50e1c4,_0x110546)=>_0x110546['update'](_0x50e1c4,_0x21adbb),_0x21adbb);}['replaceSelection'](_0x154f28){return'string'==typeof _0x154f28&&(_0x154f28=this['toText'](_0x154f28)),this['changeByRange'](_0x1712ff=>({'changes':{'from':_0x1712ff['from'],'to':_0x1712ff['to'],'insert':_0x154f28},'range':EditorSelection['cursor'](_0x1712ff['from']+_0x154f28['length'])}));}['changeByRange'](_0x2ac8e5){let _0xaf7063=this['selection'],_0x56d92a=_0x2ac8e5(_0xaf7063['ranges'][0x0]),_0x12a760=this['changes'](_0x56d92a['changes']),_0x5783ea=[_0x56d92a['range']],_0x3e4233=asArray$2(_0x56d92a['effects']);for(let _0x4b0109=0x1;_0x4b0109<_0xaf7063['ranges']['length'];_0x4b0109++){let _0x15b561=_0x2ac8e5(_0xaf7063['ranges'][_0x4b0109]),_0x25ad99=this['changes'](_0x15b561['changes']),_0x1e7110=_0x25ad99['map'](_0x12a760);for(let _0x56034e=0x0;_0x56034e<_0x4b0109;_0x56034e++)_0x5783ea[_0x56034e]=_0x5783ea[_0x56034e]['map'](_0x1e7110);let _0x27a9f2=_0x12a760['mapDesc'](_0x25ad99,!0x0);_0x5783ea['push'](_0x15b561['range']['map'](_0x27a9f2)),_0x12a760=_0x12a760['compose'](_0x1e7110),_0x3e4233=StateEffect['mapEffects'](_0x3e4233,_0x1e7110)['concat'](StateEffect['mapEffects'](asArray$2(_0x15b561['effects']),_0x27a9f2));}return{'changes':_0x12a760,'selection':EditorSelection['create'](_0x5783ea,_0xaf7063['mainIndex']),'effects':_0x3e4233};}['changes'](_0x432d05=[]){return _0x432d05 instanceof ChangeSet?_0x432d05:ChangeSet['of'](_0x432d05,this['doc']['length'],this['facet'](EditorState['lineSeparator']));}['toText'](_0x1d8e3d){return Text['of'](_0x1d8e3d['split'](this['facet'](EditorState['lineSeparator'])||DefaultSplit));}['sliceDoc'](_0x1597d9=0x0,_0x24d75d=this['doc']['length']){return this['doc']['sliceString'](_0x1597d9,_0x24d75d,this['lineBreak']);}['facet'](_0x1a7dca){let _0x18d0d6=this['config']['address'][_0x1a7dca['id']];return null==_0x18d0d6?_0x1a7dca['default']:(ensureAddr(this,_0x18d0d6),getAddr(this,_0x18d0d6));}['toJSON'](_0x73dffb){let _0x1e08fc={'doc':this['sliceDoc'](),'selection':this['selection']['toJSON']()};if(_0x73dffb)for(let _0x2c8d3f in _0x73dffb){let _0x1a0c94=_0x73dffb[_0x2c8d3f];_0x1a0c94 instanceof StateField&&null!=this['config']['address'][_0x1a0c94['id']]&&(_0x1e08fc[_0x2c8d3f]=_0x1a0c94['spec']['toJSON'](this['field'](_0x73dffb[_0x2c8d3f]),this));}return _0x1e08fc;}static['fromJSON'](_0x4a2bb1,_0x114c94={},_0x50d3c5){if(!_0x4a2bb1||'string'!=typeof _0x4a2bb1['doc'])throw new RangeError('Invalid\x20JSON\x20representation\x20for\x20EditorState');let _0x554b91=[];if(_0x50d3c5){for(let _0x323722 in _0x50d3c5)if(Object['prototype']['hasOwnProperty']['call'](_0x4a2bb1,_0x323722)){let _0x42e1c5=_0x50d3c5[_0x323722],_0x57316b=_0x4a2bb1[_0x323722];_0x554b91['push'](_0x42e1c5['init'](_0xed8204=>_0x42e1c5['spec']['fromJSON'](_0x57316b,_0xed8204)));}}return EditorState['create']({'doc':_0x4a2bb1['doc'],'selection':EditorSelection['fromJSON'](_0x4a2bb1['selection']),'extensions':_0x114c94['extensions']?_0x554b91['concat']([_0x114c94['extensions']]):_0x554b91});}static['create'](_0xd43372={}){let _0x28ea42=Configuration['resolve'](_0xd43372['extensions']||[],new Map()),_0x5a41ce=_0xd43372['doc']instanceof Text?_0xd43372['doc']:Text['of']((_0xd43372['doc']||'')['split'](_0x28ea42['staticFacet'](EditorState['lineSeparator'])||DefaultSplit)),_0xa02d87=_0xd43372['selection']?_0xd43372['selection']instanceof EditorSelection?_0xd43372['selection']:EditorSelection['single'](_0xd43372['selection']['anchor'],_0xd43372['selection']['head']):EditorSelection['single'](0x0);return checkSelection(_0xa02d87,_0x5a41ce['length']),_0x28ea42['staticFacet'](allowMultipleSelections)||(_0xa02d87=_0xa02d87['asSingle']()),new EditorState(_0x28ea42,_0x5a41ce,_0xa02d87,_0x28ea42['dynamicSlots']['map'](()=>null),(_0x3e19af,_0x387733)=>_0x387733['create'](_0x3e19af),null);}get['tabSize'](){return this['facet'](EditorState['tabSize']);}get['lineBreak'](){return this['facet'](EditorState['lineSeparator'])||'\x0a';}get['readOnly'](){return this['facet'](readOnly);}['phrase'](_0x35473e,..._0x153794){for(let _0x441f12 of this['facet'](EditorState['phrases']))if(Object['prototype']['hasOwnProperty']['call'](_0x441f12,_0x35473e)){_0x35473e=_0x441f12[_0x35473e];break;}return _0x153794['length']&&(_0x35473e=_0x35473e['replace'](/\$(\$|\d*)/g,(_0x76eef8,_0x473322)=>{if('$'==_0x473322)return'$';let _0x1b23d2=+(_0x473322||0x1);return!_0x1b23d2||_0x1b23d2>_0x153794['length']?_0x76eef8:_0x153794[_0x1b23d2-0x1];})),_0x35473e;}['languageDataAt'](_0x155ca6,_0x2acf49,_0x43769f=-0x1){let _0x143615=[];for(let _0x9a6f87 of this['facet'](languageData))for(let _0x5791af of _0x9a6f87(this,_0x2acf49,_0x43769f))Object['prototype']['hasOwnProperty']['call'](_0x5791af,_0x155ca6)&&_0x143615['push'](_0x5791af[_0x155ca6]);return _0x143615;}['charCategorizer'](_0x2eadd5){return makeCategorizer(this['languageDataAt']('wordChars',_0x2eadd5)['join'](''));}['wordAt'](_0x1db8b3){let {text:_0x2b8261,from:_0x1a223e,length:_0x40c683}=this['doc']['lineAt'](_0x1db8b3),_0x47646c=this['charCategorizer'](_0x1db8b3),_0x1c02b8=_0x1db8b3-_0x1a223e,_0x3f4a99=_0x1db8b3-_0x1a223e;for(;_0x1c02b8>0x0;){let _0x3a0011=findClusterBreak(_0x2b8261,_0x1c02b8,!0x1);if(_0x47646c(_0x2b8261['slice'](_0x3a0011,_0x1c02b8))!=CharCategory['Word'])break;_0x1c02b8=_0x3a0011;}for(;_0x3f4a99<_0x40c683;){let _0x12a5dc=findClusterBreak(_0x2b8261,_0x3f4a99);if(_0x47646c(_0x2b8261['slice'](_0x3f4a99,_0x12a5dc))!=CharCategory['Word'])break;_0x3f4a99=_0x12a5dc;}return _0x1c02b8==_0x3f4a99?null:EditorSelection['range'](_0x1c02b8+_0x1a223e,_0x3f4a99+_0x1a223e);}}function combineConfig(_0x147aa0,_0x1d6a3d,_0x56c6b7={}){let _0x54b7cc={};for(let _0x580bcb of _0x147aa0)for(let _0xe2013 of Object['keys'](_0x580bcb)){let _0x5b636d=_0x580bcb[_0xe2013],_0x2dfe7b=_0x54b7cc[_0xe2013];if(void 0x0===_0x2dfe7b)_0x54b7cc[_0xe2013]=_0x5b636d;else{if(_0x2dfe7b===_0x5b636d||void 0x0===_0x5b636d);else{if(!Object['hasOwnProperty']['call'](_0x56c6b7,_0xe2013))throw new Error('Config\x20merge\x20conflict\x20for\x20field\x20'+_0xe2013);_0x54b7cc[_0xe2013]=_0x56c6b7[_0xe2013](_0x2dfe7b,_0x5b636d);}}}for(let _0x1aa71a in _0x1d6a3d)void 0x0===_0x54b7cc[_0x1aa71a]&&(_0x54b7cc[_0x1aa71a]=_0x1d6a3d[_0x1aa71a]);return _0x54b7cc;}EditorState['allowMultipleSelections']=allowMultipleSelections,EditorState['tabSize']=Facet['define']({'combine':_0x225f08=>_0x225f08['length']?_0x225f08[0x0]:0x4}),EditorState['lineSeparator']=lineSeparator,EditorState['readOnly']=readOnly,EditorState['phrases']=Facet['define']({'compare'(_0x443b30,_0x27ce70){let _0x11bd87=Object['keys'](_0x443b30),_0x495c67=Object['keys'](_0x27ce70);return _0x11bd87['length']==_0x495c67['length']&&_0x11bd87['every'](_0x21a113=>_0x443b30[_0x21a113]==_0x27ce70[_0x21a113]);}}),EditorState['languageData']=languageData,EditorState['changeFilter']=changeFilter,EditorState['transactionFilter']=transactionFilter,EditorState['transactionExtender']=transactionExtender,Compartment['reconfigure']=StateEffect['define']();class RangeValue{['eq'](_0x42162e){return this==_0x42162e;}['range'](_0x3a1562,_0x589472=_0x3a1562){return Range$1['create'](_0x3a1562,_0x589472,this);}}RangeValue['prototype']['startSide']=RangeValue['prototype']['endSide']=0x0,RangeValue['prototype']['point']=!0x1,RangeValue['prototype']['mapMode']=MapMode['TrackDel'];let Range$1=class e{constructor(_0x3a69bf,_0x55ca7b,_0x208c19){this['from']=_0x3a69bf,this['to']=_0x55ca7b,this['value']=_0x208c19;}static['create'](_0x4f415d,_0x8dd330,_0x22f4ef){return new e(_0x4f415d,_0x8dd330,_0x22f4ef);}};function cmpRange(_0x5786e6,_0x1170c4){return _0x5786e6['from']-_0x1170c4['from']||_0x5786e6['value']['startSide']-_0x1170c4['value']['startSide'];}class Chunk{constructor(_0x4b381b,_0x586c73,_0x8a0e06,_0x404394){this['from']=_0x4b381b,this['to']=_0x586c73,this['value']=_0x8a0e06,this['maxPoint']=_0x404394;}get['length'](){return this['to'][this['to']['length']-0x1];}['findIndex'](_0x4b8d62,_0xc12956,_0x2492af,_0x14a41e=0x0){let _0x3fb079=_0x2492af?this['to']:this['from'];for(let _0x368778=_0x14a41e,_0x1f2e1f=_0x3fb079['length'];;){if(_0x368778==_0x1f2e1f)return _0x368778;let _0x889726=_0x368778+_0x1f2e1f>>0x1,_0x23dc7f=_0x3fb079[_0x889726]-_0x4b8d62||(_0x2492af?this['value'][_0x889726]['endSide']:this['value'][_0x889726]['startSide'])-_0xc12956;if(_0x889726==_0x368778)return _0x23dc7f>=0x0?_0x368778:_0x1f2e1f;_0x23dc7f>=0x0?_0x1f2e1f=_0x889726:_0x368778=_0x889726+0x1;}}['between'](_0x50bf00,_0x2d0600,_0x18f11d,_0x662268){for(let _0x2b62f7=this['findIndex'](_0x2d0600,-0x3b9aca00,!0x0),_0x4ffe84=this['findIndex'](_0x18f11d,0x3b9aca00,!0x1,_0x2b62f7);_0x2b62f7<_0x4ffe84;_0x2b62f7++)if(!0x1===_0x662268(this['from'][_0x2b62f7]+_0x50bf00,this['to'][_0x2b62f7]+_0x50bf00,this['value'][_0x2b62f7]))return!0x1;}['map'](_0x14b44d,_0x456dba){let _0x440ce9=[],_0x4003f3=[],_0x428339=[],_0x504414=-0x1,_0x5294db=-0x1;for(let _0x4fe327=0x0;_0x4fe327<this['value']['length'];_0x4fe327++){let _0x41a2fe,_0x36c2c9,_0x175a86=this['value'][_0x4fe327],_0x50ff8a=this['from'][_0x4fe327]+_0x14b44d,_0xc93197=this['to'][_0x4fe327]+_0x14b44d;if(_0x50ff8a==_0xc93197){let _0xcbf16a=_0x456dba['mapPos'](_0x50ff8a,_0x175a86['startSide'],_0x175a86['mapMode']);if(null==_0xcbf16a)continue;if(_0x41a2fe=_0x36c2c9=_0xcbf16a,_0x175a86['startSide']!=_0x175a86['endSide']&&(_0x36c2c9=_0x456dba['mapPos'](_0x50ff8a,_0x175a86['endSide']),_0x36c2c9<_0x41a2fe))continue;}else{if(_0x41a2fe=_0x456dba['mapPos'](_0x50ff8a,_0x175a86['startSide']),_0x36c2c9=_0x456dba['mapPos'](_0xc93197,_0x175a86['endSide']),_0x41a2fe>_0x36c2c9||_0x41a2fe==_0x36c2c9&&_0x175a86['startSide']>0x0&&_0x175a86['endSide']<=0x0)continue;}(_0x36c2c9-_0x41a2fe||_0x175a86['endSide']-_0x175a86['startSide'])<0x0||(_0x504414<0x0&&(_0x504414=_0x41a2fe),_0x175a86['point']&&(_0x5294db=Math['max'](_0x5294db,_0x36c2c9-_0x41a2fe)),_0x440ce9['push'](_0x175a86),_0x4003f3['push'](_0x41a2fe-_0x504414),_0x428339['push'](_0x36c2c9-_0x504414));}return{'mapped':_0x440ce9['length']?new Chunk(_0x4003f3,_0x428339,_0x440ce9,_0x5294db):null,'pos':_0x504414};}}class RangeSet{constructor(_0x372469,_0x58869f,_0x169e74,_0x3bf16e){this['chunkPos']=_0x372469,this['chunk']=_0x58869f,this['nextLayer']=_0x169e74,this['maxPoint']=_0x3bf16e;}static['create'](_0x17230d,_0xac80d5,_0x5c7258,_0x3b55cb){return new RangeSet(_0x17230d,_0xac80d5,_0x5c7258,_0x3b55cb);}get['length'](){let _0x554c27=this['chunk']['length']-0x1;return _0x554c27<0x0?0x0:Math['max'](this['chunkEnd'](_0x554c27),this['nextLayer']['length']);}get['size'](){if(this['isEmpty'])return 0x0;let _0xd9a87=this['nextLayer']['size'];for(let _0x3584d7 of this['chunk'])_0xd9a87+=_0x3584d7['value']['length'];return _0xd9a87;}['chunkEnd'](_0x2d577c){return this['chunkPos'][_0x2d577c]+this['chunk'][_0x2d577c]['length'];}['update'](_0x2404ee){let {add:_0x1f9d0e=[],sort:_0x492372=!0x1,filterFrom:_0x579b5f=0x0,filterTo:_0x512031=this['length']}=_0x2404ee,_0x59b83a=_0x2404ee['filter'];if(0x0==_0x1f9d0e['length']&&!_0x59b83a)return this;if(_0x492372&&(_0x1f9d0e=_0x1f9d0e['slice']()['sort'](cmpRange)),this['isEmpty'])return _0x1f9d0e['length']?RangeSet['of'](_0x1f9d0e):this;let _0x42e373=new LayerCursor(this,null,-0x1)['goto'](0x0),_0x2e568e=0x0,_0x36134a=[],_0x3178a7=new RangeSetBuilder();for(;_0x42e373['value']||_0x2e568e<_0x1f9d0e['length'];)if(_0x2e568e<_0x1f9d0e['length']&&(_0x42e373['from']-_0x1f9d0e[_0x2e568e]['from']||_0x42e373['startSide']-_0x1f9d0e[_0x2e568e]['value']['startSide'])>=0x0){let _0x37836b=_0x1f9d0e[_0x2e568e++];_0x3178a7['addInner'](_0x37836b['from'],_0x37836b['to'],_0x37836b['value'])||_0x36134a['push'](_0x37836b);}else 0x1==_0x42e373['rangeIndex']&&_0x42e373['chunkIndex']<this['chunk']['length']&&(_0x2e568e==_0x1f9d0e['length']||this['chunkEnd'](_0x42e373['chunkIndex'])<_0x1f9d0e[_0x2e568e]['from'])&&(!_0x59b83a||_0x579b5f>this['chunkEnd'](_0x42e373['chunkIndex'])||_0x512031<this['chunkPos'][_0x42e373['chunkIndex']])&&_0x3178a7['addChunk'](this['chunkPos'][_0x42e373['chunkIndex']],this['chunk'][_0x42e373['chunkIndex']])?_0x42e373['nextChunk']():((!_0x59b83a||_0x579b5f>_0x42e373['to']||_0x512031<_0x42e373['from']||_0x59b83a(_0x42e373['from'],_0x42e373['to'],_0x42e373['value']))&&(_0x3178a7['addInner'](_0x42e373['from'],_0x42e373['to'],_0x42e373['value'])||_0x36134a['push'](Range$1['create'](_0x42e373['from'],_0x42e373['to'],_0x42e373['value']))),_0x42e373['next']());return _0x3178a7['finishInner'](this['nextLayer']['isEmpty']&&!_0x36134a['length']?RangeSet['empty']:this['nextLayer']['update']({'add':_0x36134a,'filter':_0x59b83a,'filterFrom':_0x579b5f,'filterTo':_0x512031}));}['map'](_0x18c246){if(_0x18c246['empty']||this['isEmpty'])return this;let _0x25fe07=[],_0x17ef00=[],_0x166cc2=-0x1;for(let _0x2e6ae0=0x0;_0x2e6ae0<this['chunk']['length'];_0x2e6ae0++){let _0x4dbdd6=this['chunkPos'][_0x2e6ae0],_0x24be09=this['chunk'][_0x2e6ae0],_0x3c9298=_0x18c246['touchesRange'](_0x4dbdd6,_0x4dbdd6+_0x24be09['length']);if(!0x1===_0x3c9298)_0x166cc2=Math['max'](_0x166cc2,_0x24be09['maxPoint']),_0x25fe07['push'](_0x24be09),_0x17ef00['push'](_0x18c246['mapPos'](_0x4dbdd6));else{if(!0x0===_0x3c9298){let {mapped:_0x309aa5,pos:_0x1a36ea}=_0x24be09['map'](_0x4dbdd6,_0x18c246);_0x309aa5&&(_0x166cc2=Math['max'](_0x166cc2,_0x309aa5['maxPoint']),_0x25fe07['push'](_0x309aa5),_0x17ef00['push'](_0x1a36ea));}}}let _0x81af0e=this['nextLayer']['map'](_0x18c246);return 0x0==_0x25fe07['length']?_0x81af0e:new RangeSet(_0x17ef00,_0x25fe07,_0x81af0e||RangeSet['empty'],_0x166cc2);}['between'](_0x1bf2c3,_0xc36d2e,_0x136656){if(!this['isEmpty']){for(let _0x1e4c31=0x0;_0x1e4c31<this['chunk']['length'];_0x1e4c31++){let _0x405d31=this['chunkPos'][_0x1e4c31],_0x31ed23=this['chunk'][_0x1e4c31];if(_0xc36d2e>=_0x405d31&&_0x1bf2c3<=_0x405d31+_0x31ed23['length']&&!0x1===_0x31ed23['between'](_0x405d31,_0x1bf2c3-_0x405d31,_0xc36d2e-_0x405d31,_0x136656))return;}this['nextLayer']['between'](_0x1bf2c3,_0xc36d2e,_0x136656);}}['iter'](_0x563fdf=0x0){return HeapCursor['from']([this])['goto'](_0x563fdf);}get['isEmpty'](){return this['nextLayer']==this;}static['iter'](_0x3fd43b,_0x57632f=0x0){return HeapCursor['from'](_0x3fd43b)['goto'](_0x57632f);}static['compare'](_0x48dd0e,_0x2b96e7,_0x9d006d,_0x557b69,_0x3015aa=-0x1){let _0x32bd5f=_0x48dd0e['filter'](_0x3de388=>_0x3de388['maxPoint']>0x0||!_0x3de388['isEmpty']&&_0x3de388['maxPoint']>=_0x3015aa),_0x581994=_0x2b96e7['filter'](_0x346b4f=>_0x346b4f['maxPoint']>0x0||!_0x346b4f['isEmpty']&&_0x346b4f['maxPoint']>=_0x3015aa),_0xd0a0c8=findSharedChunks(_0x32bd5f,_0x581994,_0x9d006d),_0x559ff6=new SpanCursor(_0x32bd5f,_0xd0a0c8,_0x3015aa),_0x317796=new SpanCursor(_0x581994,_0xd0a0c8,_0x3015aa);_0x9d006d['iterGaps']((_0x1b5e91,_0x4d009e,_0x1264f1)=>compare(_0x559ff6,_0x1b5e91,_0x317796,_0x4d009e,_0x1264f1,_0x557b69)),_0x9d006d['empty']&&0x0==_0x9d006d['length']&&compare(_0x559ff6,0x0,_0x317796,0x0,0x0,_0x557b69);}static['eq'](_0x3bee62,_0x34f60c,_0x145052=0x0,_0x1d42f9){null==_0x1d42f9&&(_0x1d42f9=0x3b9ac9ff);let _0x498c21=_0x3bee62['filter'](_0x4e607b=>!_0x4e607b['isEmpty']&&_0x34f60c['indexOf'](_0x4e607b)<0x0),_0x5ca319=_0x34f60c['filter'](_0x3d13aa=>!_0x3d13aa['isEmpty']&&_0x3bee62['indexOf'](_0x3d13aa)<0x0);if(_0x498c21['length']!=_0x5ca319['length'])return!0x1;if(!_0x498c21['length'])return!0x0;let _0x4f5419=findSharedChunks(_0x498c21,_0x5ca319),_0x12c043=new SpanCursor(_0x498c21,_0x4f5419,0x0)['goto'](_0x145052),_0x35f196=new SpanCursor(_0x5ca319,_0x4f5419,0x0)['goto'](_0x145052);for(;;){if(_0x12c043['to']!=_0x35f196['to']||!sameValues(_0x12c043['active'],_0x35f196['active'])||_0x12c043['point']&&(!_0x35f196['point']||!_0x12c043['point']['eq'](_0x35f196['point'])))return!0x1;if(_0x12c043['to']>_0x1d42f9)return!0x0;_0x12c043['next'](),_0x35f196['next']();}}static['spans'](_0x5d5c2e,_0x2c2f3f,_0x18c28b,_0x4233bd,_0x511062=-0x1){let _0x759261=new SpanCursor(_0x5d5c2e,null,_0x511062)['goto'](_0x2c2f3f),_0x4516ae=_0x2c2f3f,_0x3e7e25=_0x759261['openStart'];for(;;){let _0x293f67=Math['min'](_0x759261['to'],_0x18c28b);if(_0x759261['point']){let _0x6deb12=_0x759261['activeForPoint'](_0x759261['to']),_0x349f1=_0x759261['pointFrom']<_0x2c2f3f?_0x6deb12['length']+0x1:_0x759261['point']['startSide']<0x0?_0x6deb12['length']:Math['min'](_0x6deb12['length'],_0x3e7e25);_0x4233bd['point'](_0x4516ae,_0x293f67,_0x759261['point'],_0x6deb12,_0x349f1,_0x759261['pointRank']),_0x3e7e25=Math['min'](_0x759261['openEnd'](_0x293f67),_0x6deb12['length']);}else _0x293f67>_0x4516ae&&(_0x4233bd['span'](_0x4516ae,_0x293f67,_0x759261['active'],_0x3e7e25),_0x3e7e25=_0x759261['openEnd'](_0x293f67));if(_0x759261['to']>_0x18c28b)return _0x3e7e25+(_0x759261['point']&&_0x759261['to']>_0x18c28b?0x1:0x0);_0x4516ae=_0x759261['to'],_0x759261['next']();}}static['of'](_0xd8008c,_0x5175e5=!0x1){let _0x5ee780=new RangeSetBuilder();for(let _0x50d63c of _0xd8008c instanceof Range$1?[_0xd8008c]:_0x5175e5?lazySort(_0xd8008c):_0xd8008c)_0x5ee780['add'](_0x50d63c['from'],_0x50d63c['to'],_0x50d63c['value']);return _0x5ee780['finish']();}static['join'](_0x47306e){if(!_0x47306e['length'])return RangeSet['empty'];let _0x560f70=_0x47306e[_0x47306e['length']-0x1];for(let _0x59e9e2=_0x47306e['length']-0x2;_0x59e9e2>=0x0;_0x59e9e2--)for(let _0x4bd5c8=_0x47306e[_0x59e9e2];_0x4bd5c8!=RangeSet['empty'];_0x4bd5c8=_0x4bd5c8['nextLayer'])_0x560f70=new RangeSet(_0x4bd5c8['chunkPos'],_0x4bd5c8['chunk'],_0x560f70,Math['max'](_0x4bd5c8['maxPoint'],_0x560f70['maxPoint']));return _0x560f70;}}function lazySort(_0x541e21){if(_0x541e21['length']>0x1)for(let _0x2e2f46=_0x541e21[0x0],_0x33fb87=0x1;_0x33fb87<_0x541e21['length'];_0x33fb87++){let _0x173add=_0x541e21[_0x33fb87];if(cmpRange(_0x2e2f46,_0x173add)>0x0)return _0x541e21['slice']()['sort'](cmpRange);_0x2e2f46=_0x173add;}return _0x541e21;}RangeSet['empty']=new RangeSet([],[],null,-0x1),RangeSet['empty']['nextLayer']=RangeSet['empty'];class RangeSetBuilder{['finishChunk'](_0x3d1caa){this['chunks']['push'](new Chunk(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,_0x3d1caa&&(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'](_0x548400,_0x39e129,_0x15b5b1){this['addInner'](_0x548400,_0x39e129,_0x15b5b1)||(this['nextLayer']||(this['nextLayer']=new RangeSetBuilder()))['add'](_0x548400,_0x39e129,_0x15b5b1);}['addInner'](_0x3eddba,_0x6bb442,_0x316ccd){let _0x423c4c=_0x3eddba-this['lastTo']||_0x316ccd['startSide']-this['last']['endSide'];if(_0x423c4c<=0x0&&(_0x3eddba-this['lastFrom']||_0x316ccd['startSide']-this['last']['startSide'])<0x0)throw new Error('Ranges\x20must\x20be\x20added\x20sorted\x20by\x20`from`\x20position\x20and\x20`startSide`');return!(_0x423c4c<0x0)&&(0xfa==this['from']['length']&&this['finishChunk'](!0x0),this['chunkStart']<0x0&&(this['chunkStart']=_0x3eddba),this['from']['push'](_0x3eddba-this['chunkStart']),this['to']['push'](_0x6bb442-this['chunkStart']),this['last']=_0x316ccd,this['lastFrom']=_0x3eddba,this['lastTo']=_0x6bb442,this['value']['push'](_0x316ccd),_0x316ccd['point']&&(this['maxPoint']=Math['max'](this['maxPoint'],_0x6bb442-_0x3eddba)),!0x0);}['addChunk'](_0x17b9bd,_0x1d4502){if((_0x17b9bd-this['lastTo']||_0x1d4502['value'][0x0]['startSide']-this['last']['endSide'])<0x0)return!0x1;this['from']['length']&&this['finishChunk'](!0x0),this['setMaxPoint']=Math['max'](this['setMaxPoint'],_0x1d4502['maxPoint']),this['chunks']['push'](_0x1d4502),this['chunkPos']['push'](_0x17b9bd);let _0x1a4bc4=_0x1d4502['value']['length']-0x1;return this['last']=_0x1d4502['value'][_0x1a4bc4],this['lastFrom']=_0x1d4502['from'][_0x1a4bc4]+_0x17b9bd,this['lastTo']=_0x1d4502['to'][_0x1a4bc4]+_0x17b9bd,!0x0;}['finish'](){return this['finishInner'](RangeSet['empty']);}['finishInner'](_0x269879){if(this['from']['length']&&this['finishChunk'](!0x1),0x0==this['chunks']['length'])return _0x269879;let _0x19aaca=RangeSet['create'](this['chunkPos'],this['chunks'],this['nextLayer']?this['nextLayer']['finishInner'](_0x269879):_0x269879,this['setMaxPoint']);return this['from']=null,_0x19aaca;}}function findSharedChunks(_0x49a2bc,_0xd4ba82,_0x2f31f9){let _0x237340=new Map();for(let _0x4573b1 of _0x49a2bc)for(let _0x50f499=0x0;_0x50f499<_0x4573b1['chunk']['length'];_0x50f499++)_0x4573b1['chunk'][_0x50f499]['maxPoint']<=0x0&&_0x237340['set'](_0x4573b1['chunk'][_0x50f499],_0x4573b1['chunkPos'][_0x50f499]);let _0x4e0845=new Set();for(let _0x5b2192 of _0xd4ba82)for(let _0x33a7dc=0x0;_0x33a7dc<_0x5b2192['chunk']['length'];_0x33a7dc++){let _0x11b665=_0x237340['get'](_0x5b2192['chunk'][_0x33a7dc]);null==_0x11b665||(_0x2f31f9?_0x2f31f9['mapPos'](_0x11b665):_0x11b665)!=_0x5b2192['chunkPos'][_0x33a7dc]||(null==_0x2f31f9?void 0x0:_0x2f31f9['touchesRange'](_0x11b665,_0x11b665+_0x5b2192['chunk'][_0x33a7dc]['length']))||_0x4e0845['add'](_0x5b2192['chunk'][_0x33a7dc]);}return _0x4e0845;}class LayerCursor{constructor(_0x286830,_0x5e5a56,_0x3ca890,_0x3f5e76=0x0){this['layer']=_0x286830,this['skip']=_0x5e5a56,this['minPoint']=_0x3ca890,this['rank']=_0x3f5e76;}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}get['endSide'](){return this['value']?this['value']['endSide']:0x0;}['goto'](_0x80367c,_0x273598=-0x3b9aca00){return this['chunkIndex']=this['rangeIndex']=0x0,this['gotoInner'](_0x80367c,_0x273598,!0x1),this;}['gotoInner'](_0x59d630,_0x32179f,_0x3acfc5){for(;this['chunkIndex']<this['layer']['chunk']['length'];){let _0xf9986c=this['layer']['chunk'][this['chunkIndex']];if(!(this['skip']&&this['skip']['has'](_0xf9986c)||this['layer']['chunkEnd'](this['chunkIndex'])<_0x59d630||_0xf9986c['maxPoint']<this['minPoint']))break;this['chunkIndex']++,_0x3acfc5=!0x1;}if(this['chunkIndex']<this['layer']['chunk']['length']){let _0xe8cd11=this['layer']['chunk'][this['chunkIndex']]['findIndex'](_0x59d630-this['layer']['chunkPos'][this['chunkIndex']],_0x32179f,!0x0);(!_0x3acfc5||this['rangeIndex']<_0xe8cd11)&&this['setRangeIndex'](_0xe8cd11);}this['next']();}['forward'](_0x9e2591,_0x14b07e){(this['to']-_0x9e2591||this['endSide']-_0x14b07e)<0x0&&this['gotoInner'](_0x9e2591,_0x14b07e,!0x0);}['next'](){for(;;){if(this['chunkIndex']==this['layer']['chunk']['length']){this['from']=this['to']=0x3b9aca00,this['value']=null;break;}{let _0x50cc05=this['layer']['chunkPos'][this['chunkIndex']],_0x162cc0=this['layer']['chunk'][this['chunkIndex']],_0x2c9255=_0x50cc05+_0x162cc0['from'][this['rangeIndex']];if(this['from']=_0x2c9255,this['to']=_0x50cc05+_0x162cc0['to'][this['rangeIndex']],this['value']=_0x162cc0['value'][this['rangeIndex']],this['setRangeIndex'](this['rangeIndex']+0x1),this['minPoint']<0x0||this['value']['point']&&this['to']-this['from']>=this['minPoint'])break;}}}['setRangeIndex'](_0x3e2a48){if(_0x3e2a48==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']=_0x3e2a48;}['nextChunk'](){this['chunkIndex']++,this['rangeIndex']=0x0,this['next']();}['compare'](_0x38990b){return this['from']-_0x38990b['from']||this['startSide']-_0x38990b['startSide']||this['rank']-_0x38990b['rank']||this['to']-_0x38990b['to']||this['endSide']-_0x38990b['endSide'];}}class HeapCursor{constructor(_0x5d15c9){this['heap']=_0x5d15c9;}static['from'](_0x39459b,_0x1f2714=null,_0x424784=-0x1){let _0x4da1c1=[];for(let _0x320c77=0x0;_0x320c77<_0x39459b['length'];_0x320c77++)for(let _0x3a187c=_0x39459b[_0x320c77];!_0x3a187c['isEmpty'];_0x3a187c=_0x3a187c['nextLayer'])_0x3a187c['maxPoint']>=_0x424784&&_0x4da1c1['push'](new LayerCursor(_0x3a187c,_0x1f2714,_0x424784,_0x320c77));return 0x1==_0x4da1c1['length']?_0x4da1c1[0x0]:new HeapCursor(_0x4da1c1);}get['startSide'](){return this['value']?this['value']['startSide']:0x0;}['goto'](_0x5c4788,_0xcae2d7=-0x3b9aca00){for(let _0x5598e1 of this['heap'])_0x5598e1['goto'](_0x5c4788,_0xcae2d7);for(let _0x295f28=this['heap']['length']>>0x1;_0x295f28>=0x0;_0x295f28--)heapBubble(this['heap'],_0x295f28);return this['next'](),this;}['forward'](_0x2bfae8,_0x99a942){for(let _0xc670e of this['heap'])_0xc670e['forward'](_0x2bfae8,_0x99a942);for(let _0x52b3cb=this['heap']['length']>>0x1;_0x52b3cb>=0x0;_0x52b3cb--)heapBubble(this['heap'],_0x52b3cb);(this['to']-_0x2bfae8||this['value']['endSide']-_0x99a942)<0x0&&this['next']();}['next'](){if(0x0==this['heap']['length'])this['from']=this['to']=0x3b9aca00,this['value']=null,this['rank']=-0x1;else{let _0x2d8076=this['heap'][0x0];this['from']=_0x2d8076['from'],this['to']=_0x2d8076['to'],this['value']=_0x2d8076['value'],this['rank']=_0x2d8076['rank'],_0x2d8076['value']&&_0x2d8076['next'](),heapBubble(this['heap'],0x0);}}}function heapBubble(_0x2dbe47,_0x4e5039){for(let _0x307f6b=_0x2dbe47[_0x4e5039];;){let _0x5237e9=0x1+(_0x4e5039<<0x1);if(_0x5237e9>=_0x2dbe47['length'])break;let _0x2abe33=_0x2dbe47[_0x5237e9];if(_0x5237e9+0x1<_0x2dbe47['length']&&_0x2abe33['compare'](_0x2dbe47[_0x5237e9+0x1])>=0x0&&(_0x2abe33=_0x2dbe47[_0x5237e9+0x1],_0x5237e9++),_0x307f6b['compare'](_0x2abe33)<0x0)break;_0x2dbe47[_0x5237e9]=_0x307f6b,_0x2dbe47[_0x4e5039]=_0x2abe33,_0x4e5039=_0x5237e9;}}class SpanCursor{constructor(_0x4aaf57,_0x5f214d,_0x2321cc){this['minPoint']=_0x2321cc,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']=HeapCursor['from'](_0x4aaf57,_0x5f214d,_0x2321cc);}['goto'](_0x16a6b3,_0x3dffaa=-0x3b9aca00){return this['cursor']['goto'](_0x16a6b3,_0x3dffaa),this['active']['length']=this['activeTo']['length']=this['activeRank']['length']=0x0,this['minActive']=-0x1,this['to']=_0x16a6b3,this['endSide']=_0x3dffaa,this['openStart']=-0x1,this['next'](),this;}['forward'](_0x1524ff,_0x2e9ea9){for(;this['minActive']>-0x1&&(this['activeTo'][this['minActive']]-_0x1524ff||this['active'][this['minActive']]['endSide']-_0x2e9ea9)<0x0;)this['removeActive'](this['minActive']);this['cursor']['forward'](_0x1524ff,_0x2e9ea9);}['removeActive'](_0x31855e){remove(this['active'],_0x31855e),remove(this['activeTo'],_0x31855e),remove(this['activeRank'],_0x31855e),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['addActive'](_0x3e46fd){let _0x4e4d36=0x0,{value:_0x44e063,to:_0x368133,rank:_0x3b1ee4}=this['cursor'];for(;_0x4e4d36<this['activeRank']['length']&&(_0x3b1ee4-this['activeRank'][_0x4e4d36]||_0x368133-this['activeTo'][_0x4e4d36])>0x0;)_0x4e4d36++;insert(this['active'],_0x4e4d36,_0x44e063),insert(this['activeTo'],_0x4e4d36,_0x368133),insert(this['activeRank'],_0x4e4d36,_0x3b1ee4),_0x3e46fd&&insert(_0x3e46fd,_0x4e4d36,this['cursor']['from']),this['minActive']=findMinIndex(this['active'],this['activeTo']);}['next'](){let _0x119a6e=this['to'],_0xc97a36=this['point'];this['point']=null;let _0x3ebb9a=this['openStart']<0x0?[]:null;for(;;){let _0x5c6f0d=this['minActive'];if(_0x5c6f0d>-0x1&&(this['activeTo'][_0x5c6f0d]-this['cursor']['from']||this['active'][_0x5c6f0d]['endSide']-this['cursor']['startSide'])<0x0){if(this['activeTo'][_0x5c6f0d]>_0x119a6e){this['to']=this['activeTo'][_0x5c6f0d],this['endSide']=this['active'][_0x5c6f0d]['endSide'];break;}this['removeActive'](_0x5c6f0d),_0x3ebb9a&&remove(_0x3ebb9a,_0x5c6f0d);}else{if(!this['cursor']['value']){this['to']=this['endSide']=0x3b9aca00;break;}if(this['cursor']['from']>_0x119a6e){this['to']=this['cursor']['from'],this['endSide']=this['cursor']['startSide'];break;}{let _0x31ab87=this['cursor']['value'];if(_0x31ab87['point']){if(!(_0xc97a36&&this['cursor']['to']==this['to']&&this['cursor']['from']<this['cursor']['to'])){this['point']=_0x31ab87,this['pointFrom']=this['cursor']['from'],this['pointRank']=this['cursor']['rank'],this['to']=this['cursor']['to'],this['endSide']=_0x31ab87['endSide'],this['cursor']['next'](),this['forward'](this['to'],this['endSide']);break;}this['cursor']['next']();}else this['addActive'](_0x3ebb9a),this['cursor']['next']();}}}if(_0x3ebb9a){this['openStart']=0x0;for(let _0x50381e=_0x3ebb9a['length']-0x1;_0x50381e>=0x0&&_0x3ebb9a[_0x50381e]<_0x119a6e;_0x50381e--)this['openStart']++;}}['activeForPoint'](_0x453dc4){if(!this['active']['length'])return this['active'];let _0x538498=[];for(let _0x153d75=this['active']['length']-0x1;_0x153d75>=0x0&&!(this['activeRank'][_0x153d75]<this['pointRank']);_0x153d75--)(this['activeTo'][_0x153d75]>_0x453dc4||this['activeTo'][_0x153d75]==_0x453dc4&&this['active'][_0x153d75]['endSide']>=this['point']['endSide'])&&_0x538498['push'](this['active'][_0x153d75]);return _0x538498['reverse']();}['openEnd'](_0x3adfdc){let _0x3439d3=0x0;for(let _0x58777c=this['activeTo']['length']-0x1;_0x58777c>=0x0&&this['activeTo'][_0x58777c]>_0x3adfdc;_0x58777c--)_0x3439d3++;return _0x3439d3;}}function compare(_0x208de7,_0x1d2575,_0x346dfd,_0xfd80e1,_0x4a74f5,_0x270eff){_0x208de7['goto'](_0x1d2575),_0x346dfd['goto'](_0xfd80e1);let _0x36bc6f=_0xfd80e1+_0x4a74f5,_0x3047ed=_0xfd80e1,_0xa1dfa4=_0xfd80e1-_0x1d2575;for(;;){let _0x385a9e=_0x208de7['to']+_0xa1dfa4-_0x346dfd['to'],_0x4364e4=_0x385a9e||_0x208de7['endSide']-_0x346dfd['endSide'],_0x81c5b4=_0x4364e4<0x0?_0x208de7['to']+_0xa1dfa4:_0x346dfd['to'],_0x48b709=Math['min'](_0x81c5b4,_0x36bc6f);if(_0x208de7['point']||_0x346dfd['point']?_0x208de7['point']&&_0x346dfd['point']&&(_0x208de7['point']==_0x346dfd['point']||_0x208de7['point']['eq'](_0x346dfd['point']))&&sameValues(_0x208de7['activeForPoint'](_0x208de7['to']),_0x346dfd['activeForPoint'](_0x346dfd['to']))||_0x270eff['comparePoint'](_0x3047ed,_0x48b709,_0x208de7['point'],_0x346dfd['point']):_0x48b709>_0x3047ed&&!sameValues(_0x208de7['active'],_0x346dfd['active'])&&_0x270eff['compareRange'](_0x3047ed,_0x48b709,_0x208de7['active'],_0x346dfd['active']),_0x81c5b4>_0x36bc6f)break;(_0x385a9e||_0x208de7['openEnd']!=_0x346dfd['openEnd'])&&_0x270eff['boundChange']&&_0x270eff['boundChange'](_0x81c5b4),_0x3047ed=_0x81c5b4,_0x4364e4<=0x0&&_0x208de7['next'](),_0x4364e4>=0x0&&_0x346dfd['next']();}}function sameValues(_0x5d7056,_0x391b2d){if(_0x5d7056['length']!=_0x391b2d['length'])return!0x1;for(let _0x5b504f=0x0;_0x5b504f<_0x5d7056['length'];_0x5b504f++)if(_0x5d7056[_0x5b504f]!=_0x391b2d[_0x5b504f]&&!_0x5d7056[_0x5b504f]['eq'](_0x391b2d[_0x5b504f]))return!0x1;return!0x0;}function remove(_0x16fff6,_0x33a6f2){for(let _0xf251d2=_0x33a6f2,_0x3edd52=_0x16fff6['length']-0x1;_0xf251d2<_0x3edd52;_0xf251d2++)_0x16fff6[_0xf251d2]=_0x16fff6[_0xf251d2+0x1];_0x16fff6['pop']();}function insert(_0x9e016e,_0x2554e7,_0x3e3e60){for(let _0x5284f5=_0x9e016e['length']-0x1;_0x5284f5>=_0x2554e7;_0x5284f5--)_0x9e016e[_0x5284f5+0x1]=_0x9e016e[_0x5284f5];_0x9e016e[_0x2554e7]=_0x3e3e60;}function findMinIndex(_0x4aa390,_0x2ee215){let _0x55559c=-0x1,_0x3d8514=0x3b9aca00;for(let _0xf6d910=0x0;_0xf6d910<_0x2ee215['length'];_0xf6d910++)(_0x2ee215[_0xf6d910]-_0x3d8514||_0x4aa390[_0xf6d910]['endSide']-_0x4aa390[_0x55559c]['endSide'])<0x0&&(_0x55559c=_0xf6d910,_0x3d8514=_0x2ee215[_0xf6d910]);return _0x55559c;}function countColumn(_0x26ad60,_0x13a5e6,_0x36cbf2=_0x26ad60['length']){let _0x536b40=0x0;for(let _0x4d1853=0x0;_0x4d1853<_0x36cbf2&&_0x4d1853<_0x26ad60['length'];)0x9==_0x26ad60['charCodeAt'](_0x4d1853)?(_0x536b40+=_0x13a5e6-_0x536b40%_0x13a5e6,_0x4d1853++):(_0x536b40++,_0x4d1853=findClusterBreak(_0x26ad60,_0x4d1853));return _0x536b40;}function findColumn(_0x43c968,_0x343065,_0x2dbbbf,_0xc2c62){for(let _0x4d0041=0x0,_0x5e9dd7=0x0;;){if(_0x5e9dd7>=_0x343065)return _0x4d0041;if(_0x4d0041==_0x43c968['length'])break;_0x5e9dd7+=0x9==_0x43c968['charCodeAt'](_0x4d0041)?_0x2dbbbf-_0x5e9dd7%_0x2dbbbf:0x1,_0x4d0041=findClusterBreak(_0x43c968,_0x4d0041);}return!0x0===_0xc2c62?-0x1:_0x43c968['length'];}const C='ͼ',COUNT='undefined'==typeof Symbol?'__'+C:Symbol['for'](C),SET='undefined'==typeof Symbol?'__styleSet'+Math['floor'](0x5f5e100*Math['random']()):Symbol('styleSet'),top='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:{};class StyleModule{constructor(_0x4ebd32,_0x55869f){this['rules']=[];let {finish:_0x453682}=_0x55869f||{};function _0x1c512f(_0x2ace99){return/^@/['test'](_0x2ace99)?[_0x2ace99]:_0x2ace99['split'](/,\s*/);}function _0xc8a4e5(_0x28ae2f,_0x50e3d6,_0x26fb05,_0xaf2af7){let _0x2d87a3=[],_0x15f3b5=/^@(\w+)\b/['exec'](_0x28ae2f[0x0]),_0x23a5d2=_0x15f3b5&&'keyframes'==_0x15f3b5[0x1];if(_0x15f3b5&&null==_0x50e3d6)return _0x26fb05['push'](_0x28ae2f[0x0]+';');for(let _0x46a924 in _0x50e3d6){let _0x18454a=_0x50e3d6[_0x46a924];if(/&/['test'](_0x46a924))_0xc8a4e5(_0x46a924['split'](/,\s*/)['map'](_0x45b620=>_0x28ae2f['map'](_0x546110=>_0x45b620['replace'](/&/,_0x546110)))['reduce']((_0x21712a,_0x466636)=>_0x21712a['concat'](_0x466636)),_0x18454a,_0x26fb05);else{if(_0x18454a&&'object'==typeof _0x18454a){if(!_0x15f3b5)throw new RangeError('The\x20value\x20of\x20a\x20property\x20('+_0x46a924+')\x20should\x20be\x20a\x20primitive\x20value.');_0xc8a4e5(_0x1c512f(_0x46a924),_0x18454a,_0x2d87a3,_0x23a5d2);}else null!=_0x18454a&&_0x2d87a3['push'](_0x46a924['replace'](/_.*/,'')['replace'](/[A-Z]/g,_0x23cb18=>'-'+_0x23cb18['toLowerCase']())+':\x20'+_0x18454a+';');}}(_0x2d87a3['length']||_0x23a5d2)&&_0x26fb05['push']((!_0x453682||_0x15f3b5||_0xaf2af7?_0x28ae2f:_0x28ae2f['map'](_0x453682))['join'](',\x20')+'\x20{'+_0x2d87a3['join']('\x20')+'}');}for(let _0x5ab069 in _0x4ebd32)_0xc8a4e5(_0x1c512f(_0x5ab069),_0x4ebd32[_0x5ab069],this['rules']);}['getRules'](){return this['rules']['join']('\x0a');}static['newName'](){let _0x3f5381=top[COUNT]||0x1;return top[COUNT]=_0x3f5381+0x1,C+_0x3f5381['toString'](0x24);}static['mount'](_0x4bddc6,_0x3d3508,_0x56f63a){let _0x45b9e5=_0x4bddc6[SET],_0x2a752b=_0x56f63a&&_0x56f63a['nonce'];_0x45b9e5?_0x2a752b&&_0x45b9e5['setNonce'](_0x2a752b):_0x45b9e5=new StyleSet(_0x4bddc6,_0x2a752b),_0x45b9e5['mount'](Array['isArray'](_0x3d3508)?_0x3d3508:[_0x3d3508],_0x4bddc6);}}let adoptedSet=new Map();class StyleSet{constructor(_0x396877,_0x5508fe){let _0x27076a=_0x396877['ownerDocument']||_0x396877,_0x17da0e=_0x27076a['defaultView'];if(!_0x396877['head']&&_0x396877['adoptedStyleSheets']&&_0x17da0e['CSSStyleSheet']){let _0x48c327=adoptedSet['get'](_0x27076a);if(_0x48c327)return _0x396877[SET]=_0x48c327;this['sheet']=new _0x17da0e['CSSStyleSheet'](),adoptedSet['set'](_0x27076a,this);}else this['styleTag']=_0x27076a['createElement']('style'),_0x5508fe&&this['styleTag']['setAttribute']('nonce',_0x5508fe);this['modules']=[],_0x396877[SET]=this;}['mount'](_0x379f15,_0x175550){let _0x51c1fd=this['sheet'],_0x4812d4=0x0,_0x4ef447=0x0;for(let _0x4b6c66=0x0;_0x4b6c66<_0x379f15['length'];_0x4b6c66++){let _0x4ed06a=_0x379f15[_0x4b6c66],_0x43417f=this['modules']['indexOf'](_0x4ed06a);if(_0x43417f<_0x4ef447&&_0x43417f>-0x1&&(this['modules']['splice'](_0x43417f,0x1),_0x4ef447--,_0x43417f=-0x1),-0x1==_0x43417f){if(this['modules']['splice'](_0x4ef447++,0x0,_0x4ed06a),_0x51c1fd){for(let _0x236879=0x0;_0x236879<_0x4ed06a['rules']['length'];_0x236879++)_0x51c1fd['insertRule'](_0x4ed06a['rules'][_0x236879],_0x4812d4++);}}else{for(;_0x4ef447<_0x43417f;)_0x4812d4+=this['modules'][_0x4ef447++]['rules']['length'];_0x4812d4+=_0x4ed06a['rules']['length'],_0x4ef447++;}}if(_0x51c1fd)_0x175550['adoptedStyleSheets']['indexOf'](this['sheet'])<0x0&&(_0x175550['adoptedStyleSheets']=[this['sheet'],..._0x175550['adoptedStyleSheets']]);else{let _0x1f4041='';for(let _0xb32ada=0x0;_0xb32ada<this['modules']['length'];_0xb32ada++)_0x1f4041+=this['modules'][_0xb32ada]['getRules']()+'\x0a';this['styleTag']['textContent']=_0x1f4041;let _0x1f3468=_0x175550['head']||_0x175550;this['styleTag']['parentNode']!=_0x1f3468&&_0x1f3468['insertBefore'](this['styleTag'],_0x1f3468['firstChild']);}}['setNonce'](_0x1a99a0){this['styleTag']&&this['styleTag']['getAttribute']('nonce')!=_0x1a99a0&&this['styleTag']['setAttribute']('nonce',_0x1a99a0);}}for(var base$2={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'},shift={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'},mac='undefined'!=typeof navigator&&/Mac/['test'](navigator['platform']),ie$1='undefined'!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](navigator['userAgent']),i$2=0x0;i$2<0xa;i$2++)base$2[0x30+i$2]=base$2[0x60+i$2]=String(i$2);for(var i$2=0x1;i$2<=0x18;i$2++)base$2[i$2+0x6f]='F'+i$2;for(var i$2=0x41;i$2<=0x5a;i$2++)base$2[i$2]=String['fromCharCode'](i$2+0x20),shift[i$2]=String['fromCharCode'](i$2);for(var code in base$2)shift['hasOwnProperty'](code)||(shift[code]=base$2[code]);function keyName(_0x3e9de3){var _0x512499=!(mac&&_0x3e9de3['metaKey']&&_0x3e9de3['shiftKey']&&!_0x3e9de3['ctrlKey']&&!_0x3e9de3['altKey']||ie$1&&_0x3e9de3['shiftKey']&&_0x3e9de3['key']&&0x1==_0x3e9de3['key']['length']||'Unidentified'==_0x3e9de3['key'])&&_0x3e9de3['key']||(_0x3e9de3['shiftKey']?shift:base$2)[_0x3e9de3['keyCode']]||_0x3e9de3['key']||'Unidentified';return'Esc'==_0x512499&&(_0x512499='Escape'),'Del'==_0x512499&&(_0x512499='Delete'),'Left'==_0x512499&&(_0x512499='ArrowLeft'),'Up'==_0x512499&&(_0x512499='ArrowUp'),'Right'==_0x512499&&(_0x512499='ArrowRight'),'Down'==_0x512499&&(_0x512499='ArrowDown'),_0x512499;}let nav='undefined'!=typeof navigator?navigator:{'userAgent':'','vendor':'','platform':''},doc='undefined'!=typeof document?document:{'documentElement':{'style':{}}};const ie_edge=/Edge\/(\d+)/['exec'](nav['userAgent']),ie_upto10=/MSIE \d/['test'](nav['userAgent']),ie_11up=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/['exec'](nav['userAgent']),ie=!!(ie_upto10||ie_11up||ie_edge),gecko=!ie&&/gecko\/(\d+)/i['test'](nav['userAgent']),chrome=!ie&&/Chrome\/(\d+)/['exec'](nav['userAgent']),webkit='webkitFontSmoothing'in doc['documentElement']['style'],safari=!ie&&/Apple Computer/['test'](nav['vendor']),ios=safari&&(/Mobile\/\w+/['test'](nav['userAgent'])||nav['maxTouchPoints']>0x2);var browser={'mac':ios||/Mac/['test'](nav['platform']),'windows':/Win/['test'](nav['platform']),'linux':/Linux|X11/['test'](nav['platform']),'ie':ie,'ie_version':ie_upto10?doc['documentMode']||0x6:ie_11up?+ie_11up[0x1]:ie_edge?+ie_edge[0x1]:0x0,'gecko':gecko,'gecko_version':gecko?+(/Firefox\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'chrome':!!chrome,'chrome_version':chrome?+chrome[0x1]:0x0,'ios':ios,'android':/Android\b/['test'](nav['userAgent']),'webkit_version':webkit?+(/\bAppleWebKit\/(\d+)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'safari':safari,'safari_version':safari?+(/\bVersion\/(\d+(\.\d+)?)/['exec'](nav['userAgent'])||[0x0,0x0])[0x1]:0x0,'tabSize':null!=doc['documentElement']['style']['tabSize']?'tab-size':'-moz-tab-size'};function getSelection(_0x399d19){let _0x5c432f;return _0x5c432f=0xb==_0x399d19['nodeType']?_0x399d19['getSelection']?_0x399d19:_0x399d19['ownerDocument']:_0x399d19,_0x5c432f['getSelection']();}function contains(_0xa65396,_0x4c3dbd){return!!_0x4c3dbd&&(_0xa65396==_0x4c3dbd||_0xa65396['contains'](0x1!=_0x4c3dbd['nodeType']?_0x4c3dbd['parentNode']:_0x4c3dbd));}function hasSelection(_0x471733,_0x11bd6c){if(!_0x11bd6c['anchorNode'])return!0x1;try{return contains(_0x471733,_0x11bd6c['anchorNode']);}catch(_0x2e9ac6){return!0x1;}}function clientRectsFor(_0x11aa08){return 0x3==_0x11aa08['nodeType']?textRange(_0x11aa08,0x0,_0x11aa08['nodeValue']['length'])['getClientRects']():0x1==_0x11aa08['nodeType']?_0x11aa08['getClientRects']():[];}function isEquivalentPosition(_0x45f24e,_0x14455e,_0x3962fd,_0x23c784){return!!_0x3962fd&&(scanFor(_0x45f24e,_0x14455e,_0x3962fd,_0x23c784,-0x1)||scanFor(_0x45f24e,_0x14455e,_0x3962fd,_0x23c784,0x1));}function domIndex(_0x4aed0d){for(var _0x4e15a7=0x0;;_0x4e15a7++)if(!(_0x4aed0d=_0x4aed0d['previousSibling']))return _0x4e15a7;}function isBlockElement(_0x230617){return 0x1==_0x230617['nodeType']&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/['test'](_0x230617['nodeName']);}function scanFor(_0x1f2dec,_0x182317,_0x326c4c,_0x48a5db,_0x31c795){for(;;){if(_0x1f2dec==_0x326c4c&&_0x182317==_0x48a5db)return!0x0;if(_0x182317==(_0x31c795<0x0?0x0:maxOffset(_0x1f2dec))){if('DIV'==_0x1f2dec['nodeName'])return!0x1;let _0x5986bc=_0x1f2dec['parentNode'];if(!_0x5986bc||0x1!=_0x5986bc['nodeType'])return!0x1;_0x182317=domIndex(_0x1f2dec)+(_0x31c795<0x0?0x0:0x1),_0x1f2dec=_0x5986bc;}else{if(0x1!=_0x1f2dec['nodeType'])return!0x1;if(0x1==(_0x1f2dec=_0x1f2dec['childNodes'][_0x182317+(_0x31c795<0x0?-0x1:0x0)])['nodeType']&&'false'==_0x1f2dec['contentEditable'])return!0x1;_0x182317=_0x31c795<0x0?maxOffset(_0x1f2dec):0x0;}}}function maxOffset(_0x4af295){return 0x3==_0x4af295['nodeType']?_0x4af295['nodeValue']['length']:_0x4af295['childNodes']['length'];}function flattenRect(_0xf65f9e,_0x354d0c){let _0x5a5090=_0x354d0c?_0xf65f9e['left']:_0xf65f9e['right'];return{'left':_0x5a5090,'right':_0x5a5090,'top':_0xf65f9e['top'],'bottom':_0xf65f9e['bottom']};}function windowRect(_0x4226c8){let _0x2a0f10=_0x4226c8['visualViewport'];return _0x2a0f10?{'left':0x0,'right':_0x2a0f10['width'],'top':0x0,'bottom':_0x2a0f10['height']}:{'left':0x0,'right':_0x4226c8['innerWidth'],'top':0x0,'bottom':_0x4226c8['innerHeight']};}function getScale(_0x140a4b,_0x1c9bc7){let _0x1b19d7=_0x1c9bc7['width']/_0x140a4b['offsetWidth'],_0xc958bc=_0x1c9bc7['height']/_0x140a4b['offsetHeight'];return(_0x1b19d7>0.995&&_0x1b19d7<1.005||!isFinite(_0x1b19d7)||Math['abs'](_0x1c9bc7['width']-_0x140a4b['offsetWidth'])<0x1)&&(_0x1b19d7=0x1),(_0xc958bc>0.995&&_0xc958bc<1.005||!isFinite(_0xc958bc)||Math['abs'](_0x1c9bc7['height']-_0x140a4b['offsetHeight'])<0x1)&&(_0xc958bc=0x1),{'scaleX':_0x1b19d7,'scaleY':_0xc958bc};}function scrollRectIntoView(_0x1bdd8b,_0x1bb627,_0x826428,_0x3bfe6b,_0x4860f1,_0x3c6ac9,_0x124d15,_0x26230c){let _0x273535=_0x1bdd8b['ownerDocument'],_0x475a73=_0x273535['defaultView']||window;for(let _0x80efce=_0x1bdd8b,_0x46563d=!0x1;_0x80efce&&!_0x46563d;)if(0x1==_0x80efce['nodeType']){let _0x410603,_0x43e331=_0x80efce==_0x273535['body'],_0x1a214e=0x1,_0x3c74b6=0x1;if(_0x43e331)_0x410603=windowRect(_0x475a73);else{if(/^(fixed|sticky)$/['test'](getComputedStyle(_0x80efce)['position'])&&(_0x46563d=!0x0),_0x80efce['scrollHeight']<=_0x80efce['clientHeight']&&_0x80efce['scrollWidth']<=_0x80efce['clientWidth']){_0x80efce=_0x80efce['assignedSlot']||_0x80efce['parentNode'];continue;}let _0x2828e2=_0x80efce['getBoundingClientRect']();({scaleX:_0x1a214e,scaleY:_0x3c74b6}=getScale(_0x80efce,_0x2828e2),_0x410603={'left':_0x2828e2['left'],'right':_0x2828e2['left']+_0x80efce['clientWidth']*_0x1a214e,'top':_0x2828e2['top'],'bottom':_0x2828e2['top']+_0x80efce['clientHeight']*_0x3c74b6});}let _0x597987=0x0,_0xe21f0e=0x0;if('nearest'==_0x4860f1)_0x1bb627['top']<_0x410603['top']?(_0xe21f0e=_0x1bb627['top']-(_0x410603['top']+_0x124d15),_0x826428>0x0&&_0x1bb627['bottom']>_0x410603['bottom']+_0xe21f0e&&(_0xe21f0e=_0x1bb627['bottom']-_0x410603['bottom']+_0x124d15)):_0x1bb627['bottom']>_0x410603['bottom']&&(_0xe21f0e=_0x1bb627['bottom']-_0x410603['bottom']+_0x124d15,_0x826428<0x0&&_0x1bb627['top']-_0xe21f0e<_0x410603['top']&&(_0xe21f0e=_0x1bb627['top']-(_0x410603['top']+_0x124d15)));else{let _0x68a398=_0x1bb627['bottom']-_0x1bb627['top'],_0x4aa376=_0x410603['bottom']-_0x410603['top'];_0xe21f0e=('center'==_0x4860f1&&_0x68a398<=_0x4aa376?_0x1bb627['top']+_0x68a398/0x2-_0x4aa376/0x2:'start'==_0x4860f1||'center'==_0x4860f1&&_0x826428<0x0?_0x1bb627['top']-_0x124d15:_0x1bb627['bottom']-_0x4aa376+_0x124d15)-_0x410603['top'];}if('nearest'==_0x3bfe6b)_0x1bb627['left']<_0x410603['left']?(_0x597987=_0x1bb627['left']-(_0x410603['left']+_0x3c6ac9),_0x826428>0x0&&_0x1bb627['right']>_0x410603['right']+_0x597987&&(_0x597987=_0x1bb627['right']-_0x410603['right']+_0x3c6ac9)):_0x1bb627['right']>_0x410603['right']&&(_0x597987=_0x1bb627['right']-_0x410603['right']+_0x3c6ac9,_0x826428<0x0&&_0x1bb627['left']<_0x410603['left']+_0x597987&&(_0x597987=_0x1bb627['left']-(_0x410603['left']+_0x3c6ac9)));else _0x597987=('center'==_0x3bfe6b?_0x1bb627['left']+(_0x1bb627['right']-_0x1bb627['left'])/0x2-(_0x410603['right']-_0x410603['left'])/0x2:'start'==_0x3bfe6b==_0x26230c?_0x1bb627['left']-_0x3c6ac9:_0x1bb627['right']-(_0x410603['right']-_0x410603['left'])+_0x3c6ac9)-_0x410603['left'];if(_0x597987||_0xe21f0e){if(_0x43e331)_0x475a73['scrollBy'](_0x597987,_0xe21f0e);else{let _0x4d3623=0x0,_0xc8f326=0x0;if(_0xe21f0e){let _0x3ebbb4=_0x80efce['scrollTop'];_0x80efce['scrollTop']+=_0xe21f0e/_0x3c74b6,_0xc8f326=(_0x80efce['scrollTop']-_0x3ebbb4)*_0x3c74b6;}if(_0x597987){let _0x29a24a=_0x80efce['scrollLeft'];_0x80efce['scrollLeft']+=_0x597987/_0x1a214e,_0x4d3623=(_0x80efce['scrollLeft']-_0x29a24a)*_0x1a214e;}_0x1bb627={'left':_0x1bb627['left']-_0x4d3623,'top':_0x1bb627['top']-_0xc8f326,'right':_0x1bb627['right']-_0x4d3623,'bottom':_0x1bb627['bottom']-_0xc8f326},_0x4d3623&&Math['abs'](_0x4d3623-_0x597987)<0x1&&(_0x3bfe6b='nearest'),_0xc8f326&&Math['abs'](_0xc8f326-_0xe21f0e)<0x1&&(_0x4860f1='nearest');}}if(_0x43e331)break;(_0x1bb627['top']<_0x410603['top']||_0x1bb627['bottom']>_0x410603['bottom']||_0x1bb627['left']<_0x410603['left']||_0x1bb627['right']>_0x410603['right'])&&(_0x1bb627={'left':Math['max'](_0x1bb627['left'],_0x410603['left']),'right':Math['min'](_0x1bb627['right'],_0x410603['right']),'top':Math['max'](_0x1bb627['top'],_0x410603['top']),'bottom':Math['min'](_0x1bb627['bottom'],_0x410603['bottom'])}),_0x80efce=_0x80efce['assignedSlot']||_0x80efce['parentNode'];}else{if(0xb!=_0x80efce['nodeType'])break;_0x80efce=_0x80efce['host'];}}function scrollableParents(_0x369236){let _0x384e0c,_0x413c91,_0x3aad6b=_0x369236['ownerDocument'];for(let _0x1092ea=_0x369236['parentNode'];_0x1092ea&&!(_0x1092ea==_0x3aad6b['body']||_0x384e0c&&_0x413c91);)if(0x1==_0x1092ea['nodeType'])!_0x413c91&&_0x1092ea['scrollHeight']>_0x1092ea['clientHeight']&&(_0x413c91=_0x1092ea),!_0x384e0c&&_0x1092ea['scrollWidth']>_0x1092ea['clientWidth']&&(_0x384e0c=_0x1092ea),_0x1092ea=_0x1092ea['assignedSlot']||_0x1092ea['parentNode'];else{if(0xb!=_0x1092ea['nodeType'])break;_0x1092ea=_0x1092ea['host'];}return{'x':_0x384e0c,'y':_0x413c91};}class DOMSelectionState{constructor(){this['anchorNode']=null,this['anchorOffset']=0x0,this['focusNode']=null,this['focusOffset']=0x0;}['eq'](_0x435b4d){return this['anchorNode']==_0x435b4d['anchorNode']&&this['anchorOffset']==_0x435b4d['anchorOffset']&&this['focusNode']==_0x435b4d['focusNode']&&this['focusOffset']==_0x435b4d['focusOffset'];}['setRange'](_0x4b6f9c){let {anchorNode:_0x110265,focusNode:_0x48e4cf}=_0x4b6f9c;this['set'](_0x110265,Math['min'](_0x4b6f9c['anchorOffset'],_0x110265?maxOffset(_0x110265):0x0),_0x48e4cf,Math['min'](_0x4b6f9c['focusOffset'],_0x48e4cf?maxOffset(_0x48e4cf):0x0));}['set'](_0x5169f5,_0x345458,_0x2aaf97,_0x46f6e2){this['anchorNode']=_0x5169f5,this['anchorOffset']=_0x345458,this['focusNode']=_0x2aaf97,this['focusOffset']=_0x46f6e2;}}let preventScrollSupported=null,scratchRange;function focusPreventScroll(_0x3dffc1){if(_0x3dffc1['setActive'])return _0x3dffc1['setActive']();if(preventScrollSupported)return _0x3dffc1['focus'](preventScrollSupported);let _0x53a807=[];for(let _0x52d664=_0x3dffc1;_0x52d664&&(_0x53a807['push'](_0x52d664,_0x52d664['scrollTop'],_0x52d664['scrollLeft']),_0x52d664!=_0x52d664['ownerDocument']);_0x52d664=_0x52d664['parentNode']);if(_0x3dffc1['focus'](null==preventScrollSupported?{get 'preventScroll'(){return preventScrollSupported={'preventScroll':!0x0},!0x0;}}:void 0x0),!preventScrollSupported){preventScrollSupported=!0x1;for(let _0x49a5e4=0x0;_0x49a5e4<_0x53a807['length'];){let _0x21d5d2=_0x53a807[_0x49a5e4++],_0xda4ba5=_0x53a807[_0x49a5e4++],_0x38945b=_0x53a807[_0x49a5e4++];_0x21d5d2['scrollTop']!=_0xda4ba5&&(_0x21d5d2['scrollTop']=_0xda4ba5),_0x21d5d2['scrollLeft']!=_0x38945b&&(_0x21d5d2['scrollLeft']=_0x38945b);}}}function textRange(_0x522fef,_0x1a7fad,_0x9cedd0=_0x1a7fad){let _0xeaf8f3=scratchRange||(scratchRange=document['createRange']());return _0xeaf8f3['setEnd'](_0x522fef,_0x9cedd0),_0xeaf8f3['setStart'](_0x522fef,_0x1a7fad),_0xeaf8f3;}function dispatchKey(_0xa16def,_0x46b61c,_0x275cfb,_0x111f00){let _0x5b3b79={'key':_0x46b61c,'code':_0x46b61c,'keyCode':_0x275cfb,'which':_0x275cfb,'cancelable':!0x0};_0x111f00&&({altKey:_0x5b3b79['altKey'],ctrlKey:_0x5b3b79['ctrlKey'],shiftKey:_0x5b3b79['shiftKey'],metaKey:_0x5b3b79['metaKey']}=_0x111f00);let _0x1fee1d=new KeyboardEvent('keydown',_0x5b3b79);_0x1fee1d['synthetic']=!0x0,_0xa16def['dispatchEvent'](_0x1fee1d);let _0x1b57c6=new KeyboardEvent('keyup',_0x5b3b79);return _0x1b57c6['synthetic']=!0x0,_0xa16def['dispatchEvent'](_0x1b57c6),_0x1fee1d['defaultPrevented']||_0x1b57c6['defaultPrevented'];}function getRoot(_0x209be2){for(;_0x209be2;){if(_0x209be2&&(0x9==_0x209be2['nodeType']||0xb==_0x209be2['nodeType']&&_0x209be2['host']))return _0x209be2;_0x209be2=_0x209be2['assignedSlot']||_0x209be2['parentNode'];}return null;}function clearAttributes(_0x143424){for(;_0x143424['attributes']['length'];)_0x143424['removeAttributeNode'](_0x143424['attributes'][0x0]);}function atElementStart(_0x1df842,_0x1272af){let _0x1f8998=_0x1272af['focusNode'],_0x1819ef=_0x1272af['focusOffset'];if(!_0x1f8998||_0x1272af['anchorNode']!=_0x1f8998||_0x1272af['anchorOffset']!=_0x1819ef)return!0x1;for(_0x1819ef=Math['min'](_0x1819ef,maxOffset(_0x1f8998));;)if(_0x1819ef){if(0x1!=_0x1f8998['nodeType'])return!0x1;let _0x207642=_0x1f8998['childNodes'][_0x1819ef-0x1];'false'==_0x207642['contentEditable']?_0x1819ef--:(_0x1f8998=_0x207642,_0x1819ef=maxOffset(_0x1f8998));}else{if(_0x1f8998==_0x1df842)return!0x0;_0x1819ef=domIndex(_0x1f8998),_0x1f8998=_0x1f8998['parentNode'];}}function isScrolledToBottom(_0x48b137){return _0x48b137['scrollTop']>Math['max'](0x1,_0x48b137['scrollHeight']-_0x48b137['clientHeight']-0x4);}function textNodeBefore(_0x36bbfc,_0x14a022){for(let _0x56a866=_0x36bbfc,_0x105547=_0x14a022;;){if(0x3==_0x56a866['nodeType']&&_0x105547>0x0)return{'node':_0x56a866,'offset':_0x105547};if(0x1==_0x56a866['nodeType']&&_0x105547>0x0){if('false'==_0x56a866['contentEditable'])return null;_0x56a866=_0x56a866['childNodes'][_0x105547-0x1],_0x105547=maxOffset(_0x56a866);}else{if(!_0x56a866['parentNode']||isBlockElement(_0x56a866))return null;_0x105547=domIndex(_0x56a866),_0x56a866=_0x56a866['parentNode'];}}}function textNodeAfter(_0xe19ddb,_0x2aa11f){for(let _0x289214=_0xe19ddb,_0x362e36=_0x2aa11f;;){if(0x3==_0x289214['nodeType']&&_0x362e36<_0x289214['nodeValue']['length'])return{'node':_0x289214,'offset':_0x362e36};if(0x1==_0x289214['nodeType']&&_0x362e36<_0x289214['childNodes']['length']){if('false'==_0x289214['contentEditable'])return null;_0x289214=_0x289214['childNodes'][_0x362e36],_0x362e36=0x0;}else{if(!_0x289214['parentNode']||isBlockElement(_0x289214))return null;_0x362e36=domIndex(_0x289214)+0x1,_0x289214=_0x289214['parentNode'];}}}browser['safari']&&browser['safari_version']>=0x1a&&(preventScrollSupported=!0x1);class DOMPos{constructor(_0x10f9a4,_0x372b79,_0x4c294d=!0x0){this['node']=_0x10f9a4,this['offset']=_0x372b79,this['precise']=_0x4c294d;}static['before'](_0x1946ff,_0x29025a){return new DOMPos(_0x1946ff['parentNode'],domIndex(_0x1946ff),_0x29025a);}static['after'](_0x4576cb,_0xf784db){return new DOMPos(_0x4576cb['parentNode'],domIndex(_0x4576cb)+0x1,_0xf784db);}}const noChildren=[];class ContentView{constructor(){this['parent']=null,this['dom']=null,this['flags']=0x2;}get['overrideDOMText'](){return null;}get['posAtStart'](){return this['parent']?this['parent']['posBefore'](this):0x0;}get['posAtEnd'](){return this['posAtStart']+this['length'];}['posBefore'](_0x18a449){let _0x541c59=this['posAtStart'];for(let _0x26a2bf of this['children']){if(_0x26a2bf==_0x18a449)return _0x541c59;_0x541c59+=_0x26a2bf['length']+_0x26a2bf['breakAfter'];}throw new RangeError('Invalid\x20child\x20in\x20posBefore');}['posAfter'](_0x25f7e3){return this['posBefore'](_0x25f7e3)+_0x25f7e3['length'];}['sync'](_0x59a51b,_0x2b7ebd){if(0x2&this['flags']){let _0x218770,_0x1dc96d=this['dom'],_0x275ea5=null;for(let _0x31155b of this['children']){if(0x7&_0x31155b['flags']){if(!_0x31155b['dom']&&(_0x218770=_0x275ea5?_0x275ea5['nextSibling']:_0x1dc96d['firstChild'])){let _0xaa1384=ContentView['get'](_0x218770);(!_0xaa1384||!_0xaa1384['parent']&&_0xaa1384['canReuseDOM'](_0x31155b))&&_0x31155b['reuseDOM'](_0x218770);}_0x31155b['sync'](_0x59a51b,_0x2b7ebd),_0x31155b['flags']&=-0x8;}if(_0x218770=_0x275ea5?_0x275ea5['nextSibling']:_0x1dc96d['firstChild'],_0x2b7ebd&&!_0x2b7ebd['written']&&_0x2b7ebd['node']==_0x1dc96d&&_0x218770!=_0x31155b['dom']&&(_0x2b7ebd['written']=!0x0),_0x31155b['dom']['parentNode']==_0x1dc96d){for(;_0x218770&&_0x218770!=_0x31155b['dom'];)_0x218770=rm$1(_0x218770);}else _0x1dc96d['insertBefore'](_0x31155b['dom'],_0x218770);_0x275ea5=_0x31155b['dom'];}for(_0x218770=_0x275ea5?_0x275ea5['nextSibling']:_0x1dc96d['firstChild'],_0x218770&&_0x2b7ebd&&_0x2b7ebd['node']==_0x1dc96d&&(_0x2b7ebd['written']=!0x0);_0x218770;)_0x218770=rm$1(_0x218770);}else{if(0x1&this['flags']){for(let _0x349b2e of this['children'])0x7&_0x349b2e['flags']&&(_0x349b2e['sync'](_0x59a51b,_0x2b7ebd),_0x349b2e['flags']&=-0x8);}}}['reuseDOM'](_0x32a490){}['localPosFromDOM'](_0x186f4b,_0x100235){let _0x4d83ca;if(_0x186f4b==this['dom'])_0x4d83ca=this['dom']['childNodes'][_0x100235];else{let _0x5886c4=0x0==maxOffset(_0x186f4b)?0x0:0x0==_0x100235?-0x1:0x1;for(;;){let _0x3944d9=_0x186f4b['parentNode'];if(_0x3944d9==this['dom'])break;0x0==_0x5886c4&&_0x3944d9['firstChild']!=_0x3944d9['lastChild']&&(_0x5886c4=_0x186f4b==_0x3944d9['firstChild']?-0x1:0x1),_0x186f4b=_0x3944d9;}_0x4d83ca=_0x5886c4<0x0?_0x186f4b:_0x186f4b['nextSibling'];}if(_0x4d83ca==this['dom']['firstChild'])return 0x0;for(;_0x4d83ca&&!ContentView['get'](_0x4d83ca);)_0x4d83ca=_0x4d83ca['nextSibling'];if(!_0x4d83ca)return this['length'];for(let _0x2ab874=0x0,_0x5e4c58=0x0;;_0x2ab874++){let _0x5118a2=this['children'][_0x2ab874];if(_0x5118a2['dom']==_0x4d83ca)return _0x5e4c58;_0x5e4c58+=_0x5118a2['length']+_0x5118a2['breakAfter'];}}['domBoundsAround'](_0x53ada5,_0x4b8042,_0x4e4955=0x0){let _0x316b8a=-0x1,_0x23d4ac=-0x1,_0x48a8fb=-0x1,_0x59a1a0=-0x1;for(let _0x575a89=0x0,_0x29813c=_0x4e4955,_0x3a966d=_0x4e4955;_0x575a89<this['children']['length'];_0x575a89++){let _0xa0418d=this['children'][_0x575a89],_0xaa0841=_0x29813c+_0xa0418d['length'];if(_0x29813c<_0x53ada5&&_0xaa0841>_0x4b8042)return _0xa0418d['domBoundsAround'](_0x53ada5,_0x4b8042,_0x29813c);if(_0xaa0841>=_0x53ada5&&-0x1==_0x316b8a&&(_0x316b8a=_0x575a89,_0x23d4ac=_0x29813c),_0x29813c>_0x4b8042&&_0xa0418d['dom']['parentNode']==this['dom']){_0x48a8fb=_0x575a89,_0x59a1a0=_0x3a966d;break;}_0x3a966d=_0xaa0841,_0x29813c=_0xaa0841+_0xa0418d['breakAfter'];}return{'from':_0x23d4ac,'to':_0x59a1a0<0x0?_0x4e4955+this['length']:_0x59a1a0,'startDOM':(_0x316b8a?this['children'][_0x316b8a-0x1]['dom']['nextSibling']:null)||this['dom']['firstChild'],'endDOM':_0x48a8fb<this['children']['length']&&_0x48a8fb>=0x0?this['children'][_0x48a8fb]['dom']:null};}['markDirty'](_0x33d97d=!0x1){this['flags']|=0x2,this['markParentsDirty'](_0x33d97d);}['markParentsDirty'](_0xe9c789){for(let _0xe7a01=this['parent'];_0xe7a01;_0xe7a01=_0xe7a01['parent']){if(_0xe9c789&&(_0xe7a01['flags']|=0x2),0x1&_0xe7a01['flags'])return;_0xe7a01['flags']|=0x1,_0xe9c789=!0x1;}}['setParent'](_0x19e4d7){this['parent']!=_0x19e4d7&&(this['parent']=_0x19e4d7,0x7&this['flags']&&this['markParentsDirty'](!0x0));}['setDOM'](_0x47a58e){this['dom']!=_0x47a58e&&(this['dom']&&(this['dom']['cmView']=null),this['dom']=_0x47a58e,_0x47a58e['cmView']=this);}get['rootView'](){for(let _0x206d33=this;;){let _0xdc640c=_0x206d33['parent'];if(!_0xdc640c)return _0x206d33;_0x206d33=_0xdc640c;}}['replaceChildren'](_0x4122e9,_0x177ef3,_0x550204=noChildren){this['markDirty']();for(let _0x2935b0=_0x4122e9;_0x2935b0<_0x177ef3;_0x2935b0++){let _0x2ba68c=this['children'][_0x2935b0];_0x2ba68c['parent']==this&&_0x550204['indexOf'](_0x2ba68c)<0x0&&_0x2ba68c['destroy']();}_0x550204['length']<0xfa?this['children']['splice'](_0x4122e9,_0x177ef3-_0x4122e9,..._0x550204):this['children']=[]['concat'](this['children']['slice'](0x0,_0x4122e9),_0x550204,this['children']['slice'](_0x177ef3));for(let _0x401d4a=0x0;_0x401d4a<_0x550204['length'];_0x401d4a++)_0x550204[_0x401d4a]['setParent'](this);}['ignoreMutation'](_0xc2fff9){return!0x1;}['ignoreEvent'](_0x21e28e){return!0x1;}['childCursor'](_0x57b7c0=this['length']){return new ChildCursor(this['children'],_0x57b7c0,this['children']['length']);}['childPos'](_0x4b76bb,_0x236bd5=0x1){return this['childCursor']()['findPos'](_0x4b76bb,_0x236bd5);}['toString'](){let _0x211d66=this['constructor']['name']['replace']('View','');return _0x211d66+(this['children']['length']?'('+this['children']['join']()+')':this['length']?'['+('Text'==_0x211d66?this['text']:this['length'])+']':'')+(this['breakAfter']?'#':'');}static['get'](_0x5ac0e6){return _0x5ac0e6['cmView'];}get['isEditable'](){return!0x0;}get['isWidget'](){return!0x1;}get['isHidden'](){return!0x1;}['merge'](_0x51907a,_0x567a6a,_0x45758a,_0x51afcb,_0xb5b6c0,_0x26629f){return!0x1;}['become'](_0x278c90){return!0x1;}['canReuseDOM'](_0x2550c8){return _0x2550c8['constructor']==this['constructor']&&!(0x8&(this['flags']|_0x2550c8['flags']));}['getSide'](){return 0x0;}['destroy'](){for(let _0xf260c0 of this['children'])_0xf260c0['parent']==this&&_0xf260c0['destroy']();this['parent']=null;}}function rm$1(_0x2ae01d){let _0x6df23a=_0x2ae01d['nextSibling'];return _0x2ae01d['parentNode']['removeChild'](_0x2ae01d),_0x6df23a;}ContentView['prototype']['breakAfter']=0x0;class ChildCursor{constructor(_0x5cb18c,_0xe5ecc1,_0x40e1da){this['children']=_0x5cb18c,this['pos']=_0xe5ecc1,this['i']=_0x40e1da,this['off']=0x0;}['findPos'](_0x56c4df,_0xc861cd=0x1){for(;;){if(_0x56c4df>this['pos']||_0x56c4df==this['pos']&&(_0xc861cd>0x0||0x0==this['i']||this['children'][this['i']-0x1]['breakAfter']))return this['off']=_0x56c4df-this['pos'],this;let _0x5a793c=this['children'][--this['i']];this['pos']-=_0x5a793c['length']+_0x5a793c['breakAfter'];}}}function replaceRange(_0x8ddbfb,_0x2b9fa9,_0x14e4bb,_0x4c20d3,_0x47783e,_0x1d807f,_0x4059c0,_0x4b1b92,_0x1eb378){let {children:_0x356503}=_0x8ddbfb,_0x26eb09=_0x356503['length']?_0x356503[_0x2b9fa9]:null,_0x1bdff6=_0x1d807f['length']?_0x1d807f[_0x1d807f['length']-0x1]:null,_0x4aff42=_0x1bdff6?_0x1bdff6['breakAfter']:_0x4059c0;if(!(_0x2b9fa9==_0x4c20d3&&_0x26eb09&&!_0x4059c0&&!_0x4aff42&&_0x1d807f['length']<0x2&&_0x26eb09['merge'](_0x14e4bb,_0x47783e,_0x1d807f['length']?_0x1bdff6:null,0x0==_0x14e4bb,_0x4b1b92,_0x1eb378))){if(_0x4c20d3<_0x356503['length']){let _0x1d5046=_0x356503[_0x4c20d3];_0x1d5046&&(_0x47783e<_0x1d5046['length']||_0x1d5046['breakAfter']&&(null==_0x1bdff6?void 0x0:_0x1bdff6['breakAfter']))?(_0x2b9fa9==_0x4c20d3&&(_0x1d5046=_0x1d5046['split'](_0x47783e),_0x47783e=0x0),!_0x4aff42&&_0x1bdff6&&_0x1d5046['merge'](0x0,_0x47783e,_0x1bdff6,!0x0,0x0,_0x1eb378)?_0x1d807f[_0x1d807f['length']-0x1]=_0x1d5046:((_0x47783e||_0x1d5046['children']['length']&&!_0x1d5046['children'][0x0]['length'])&&_0x1d5046['merge'](0x0,_0x47783e,null,!0x1,0x0,_0x1eb378),_0x1d807f['push'](_0x1d5046))):(null==_0x1d5046?void 0x0:_0x1d5046['breakAfter'])&&(_0x1bdff6?_0x1bdff6['breakAfter']=0x1:_0x4059c0=0x1),_0x4c20d3++;}for(_0x26eb09&&(_0x26eb09['breakAfter']=_0x4059c0,_0x14e4bb>0x0&&(!_0x4059c0&&_0x1d807f['length']&&_0x26eb09['merge'](_0x14e4bb,_0x26eb09['length'],_0x1d807f[0x0],!0x1,_0x4b1b92,0x0)?_0x26eb09['breakAfter']=_0x1d807f['shift']()['breakAfter']:(_0x14e4bb<_0x26eb09['length']||_0x26eb09['children']['length']&&0x0==_0x26eb09['children'][_0x26eb09['children']['length']-0x1]['length'])&&_0x26eb09['merge'](_0x14e4bb,_0x26eb09['length'],null,!0x1,_0x4b1b92,0x0),_0x2b9fa9++));_0x2b9fa9<_0x4c20d3&&_0x1d807f['length'];)if(_0x356503[_0x4c20d3-0x1]['become'](_0x1d807f[_0x1d807f['length']-0x1]))_0x4c20d3--,_0x1d807f['pop'](),_0x1eb378=_0x1d807f['length']?0x0:_0x4b1b92;else{if(!_0x356503[_0x2b9fa9]['become'](_0x1d807f[0x0]))break;_0x2b9fa9++,_0x1d807f['shift'](),_0x4b1b92=_0x1d807f['length']?0x0:_0x1eb378;}!_0x1d807f['length']&&_0x2b9fa9&&_0x4c20d3<_0x356503['length']&&!_0x356503[_0x2b9fa9-0x1]['breakAfter']&&_0x356503[_0x4c20d3]['merge'](0x0,0x0,_0x356503[_0x2b9fa9-0x1],!0x1,_0x4b1b92,_0x1eb378)&&_0x2b9fa9--,(_0x2b9fa9<_0x4c20d3||_0x1d807f['length'])&&_0x8ddbfb['replaceChildren'](_0x2b9fa9,_0x4c20d3,_0x1d807f);}}function mergeChildrenInto(_0x4f82f2,_0x5afdf4,_0x5b9ca0,_0x3764af,_0x3a4614,_0x5f320d){let _0x122e96=_0x4f82f2['childCursor'](),{i:_0x59099d,off:_0x1cc324}=_0x122e96['findPos'](_0x5b9ca0,0x1),{i:_0x4b3e8b,off:_0x3fd39f}=_0x122e96['findPos'](_0x5afdf4,-0x1),_0xf8499e=_0x5afdf4-_0x5b9ca0;for(let _0x15c299 of _0x3764af)_0xf8499e+=_0x15c299['length'];_0x4f82f2['length']+=_0xf8499e,replaceRange(_0x4f82f2,_0x4b3e8b,_0x3fd39f,_0x59099d,_0x1cc324,_0x3764af,0x0,_0x3a4614,_0x5f320d);}const MaxJoinLen=0x100;class TextView extends ContentView{constructor(_0x1d646a){super(),this['text']=_0x1d646a;}get['length'](){return this['text']['length'];}['createDOM'](_0x4530a5){this['setDOM'](_0x4530a5||document['createTextNode'](this['text']));}['sync'](_0x7278fc,_0x2a25){this['dom']||this['createDOM'](),this['dom']['nodeValue']!=this['text']&&(_0x2a25&&_0x2a25['node']==this['dom']&&(_0x2a25['written']=!0x0),this['dom']['nodeValue']=this['text']);}['reuseDOM'](_0x3e874f){0x3==_0x3e874f['nodeType']&&this['createDOM'](_0x3e874f);}['merge'](_0x216d11,_0x34e610,_0xa8e446){return!(0x8&this['flags']||_0xa8e446&&(!(_0xa8e446 instanceof TextView)||this['length']-(_0x34e610-_0x216d11)+_0xa8e446['length']>MaxJoinLen||0x8&_0xa8e446['flags']))&&(this['text']=this['text']['slice'](0x0,_0x216d11)+(_0xa8e446?_0xa8e446['text']:'')+this['text']['slice'](_0x34e610),this['markDirty'](),!0x0);}['split'](_0x1c054d){let _0xbd1794=new TextView(this['text']['slice'](_0x1c054d));return this['text']=this['text']['slice'](0x0,_0x1c054d),this['markDirty'](),_0xbd1794['flags']|=0x8&this['flags'],_0xbd1794;}['localPosFromDOM'](_0x546ca5,_0xa835b7){return _0x546ca5==this['dom']?_0xa835b7:_0xa835b7?this['text']['length']:0x0;}['domAtPos'](_0x5f00d1){return new DOMPos(this['dom'],_0x5f00d1);}['domBoundsAround'](_0xf79d6c,_0x1efe4b,_0x1aed1b){return{'from':_0x1aed1b,'to':_0x1aed1b+this['length'],'startDOM':this['dom'],'endDOM':this['dom']['nextSibling']};}['coordsAt'](_0x53a2c4,_0x21d221){return textCoords(this['dom'],_0x53a2c4,_0x21d221);}}class MarkView extends ContentView{constructor(_0x54aea0,_0x4adce2=[],_0x2ad387=0x0){super(),this['mark']=_0x54aea0,this['children']=_0x4adce2,this['length']=_0x2ad387;for(let _0x537df8 of _0x4adce2)_0x537df8['setParent'](this);}['setAttrs'](_0xf86c76){if(clearAttributes(_0xf86c76),this['mark']['class']&&(_0xf86c76['className']=this['mark']['class']),this['mark']['attrs']){for(let _0x20b809 in this['mark']['attrs'])_0xf86c76['setAttribute'](_0x20b809,this['mark']['attrs'][_0x20b809]);}return _0xf86c76;}['canReuseDOM'](_0x24218e){return super['canReuseDOM'](_0x24218e)&&!(0x8&(this['flags']|_0x24218e['flags']));}['reuseDOM'](_0x2082ed){_0x2082ed['nodeName']==this['mark']['tagName']['toUpperCase']()&&(this['setDOM'](_0x2082ed),this['flags']|=0x6);}['sync'](_0x4f1df5,_0x185074){this['dom']?0x4&this['flags']&&this['setAttrs'](this['dom']):this['setDOM'](this['setAttrs'](document['createElement'](this['mark']['tagName']))),super['sync'](_0x4f1df5,_0x185074);}['merge'](_0x5327c0,_0x2f3f99,_0x1878a0,_0x4f07f0,_0xa6c94f,_0x4d80c9){return(!_0x1878a0||!(!(_0x1878a0 instanceof MarkView&&_0x1878a0['mark']['eq'](this['mark']))||_0x5327c0&&_0xa6c94f<=0x0||_0x2f3f99<this['length']&&_0x4d80c9<=0x0))&&(mergeChildrenInto(this,_0x5327c0,_0x2f3f99,_0x1878a0?_0x1878a0['children']['slice']():[],_0xa6c94f-0x1,_0x4d80c9-0x1),this['markDirty'](),!0x0);}['split'](_0x3f09c2){let _0x147c44=[],_0x28071d=0x0,_0x57c2b3=-0x1,_0x4fdfcf=0x0;for(let _0x138392 of this['children']){let _0x417496=_0x28071d+_0x138392['length'];_0x417496>_0x3f09c2&&_0x147c44['push'](_0x28071d<_0x3f09c2?_0x138392['split'](_0x3f09c2-_0x28071d):_0x138392),_0x57c2b3<0x0&&_0x28071d>=_0x3f09c2&&(_0x57c2b3=_0x4fdfcf),_0x28071d=_0x417496,_0x4fdfcf++;}let _0x41d46d=this['length']-_0x3f09c2;return this['length']=_0x3f09c2,_0x57c2b3>-0x1&&(this['children']['length']=_0x57c2b3,this['markDirty']()),new MarkView(this['mark'],_0x147c44,_0x41d46d);}['domAtPos'](_0x37df16){return inlineDOMAtPos(this,_0x37df16);}['coordsAt'](_0x274082,_0x1bcd52){return coordsInChildren(this,_0x274082,_0x1bcd52);}}function textCoords(_0x2c7b13,_0x16031d,_0x5a5ab0){let _0x56d4b7=_0x2c7b13['nodeValue']['length'];_0x16031d>_0x56d4b7&&(_0x16031d=_0x56d4b7);let _0xf15379=_0x16031d,_0x4e16cd=_0x16031d,_0x335501=0x0;0x0==_0x16031d&&_0x5a5ab0<0x0||_0x16031d==_0x56d4b7&&_0x5a5ab0>=0x0?browser['chrome']||browser['gecko']||(_0x16031d?(_0xf15379--,_0x335501=0x1):_0x4e16cd<_0x56d4b7&&(_0x4e16cd++,_0x335501=-0x1)):_0x5a5ab0<0x0?_0xf15379--:_0x4e16cd<_0x56d4b7&&_0x4e16cd++;let _0x592905=textRange(_0x2c7b13,_0xf15379,_0x4e16cd)['getClientRects']();if(!_0x592905['length'])return null;let _0x179a31=_0x592905[(_0x335501?_0x335501<0x0:_0x5a5ab0>=0x0)?0x0:_0x592905['length']-0x1];return browser['safari']&&!_0x335501&&0x0==_0x179a31['width']&&(_0x179a31=Array['prototype']['find']['call'](_0x592905,_0x179c9f=>_0x179c9f['width'])||_0x179a31),_0x335501?flattenRect(_0x179a31,_0x335501<0x0):_0x179a31||null;}class WidgetView extends ContentView{static['create'](_0x38c1b9,_0x3a4d1d,_0x22bfa5){return new WidgetView(_0x38c1b9,_0x3a4d1d,_0x22bfa5);}constructor(_0x4f75cd,_0x3d7148,_0x3d9390){super(),this['widget']=_0x4f75cd,this['length']=_0x3d7148,this['side']=_0x3d9390,this['prevWidget']=null;}['split'](_0x314da3){let _0x593e2d=WidgetView['create'](this['widget'],this['length']-_0x314da3,this['side']);return this['length']-=_0x314da3,_0x593e2d;}['sync'](_0x357e4e){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x357e4e)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x357e4e)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}['getSide'](){return this['side'];}['merge'](_0x542013,_0x2c3b0a,_0x4aeb46,_0x1ea77d,_0x562bf5,_0x3b01af){return!(_0x4aeb46&&(!(_0x4aeb46 instanceof WidgetView&&this['widget']['compare'](_0x4aeb46['widget']))||_0x542013>0x0&&_0x562bf5<=0x0||_0x2c3b0a<this['length']&&_0x3b01af<=0x0))&&(this['length']=_0x542013+(_0x4aeb46?_0x4aeb46['length']:0x0)+(this['length']-_0x2c3b0a),!0x0);}['become'](_0x504fe0){return _0x504fe0 instanceof WidgetView&&_0x504fe0['side']==this['side']&&this['widget']['constructor']==_0x504fe0['widget']['constructor']&&(this['widget']['compare'](_0x504fe0['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x504fe0['widget'],this['length']=_0x504fe0['length'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x2ec303){return this['widget']['ignoreEvent'](_0x2ec303);}get['overrideDOMText'](){if(0x0==this['length'])return Text['empty'];let _0x4522ba=this;for(;_0x4522ba['parent'];)_0x4522ba=_0x4522ba['parent'];let {view:_0x1e35ac}=_0x4522ba,_0x50f0a9=_0x1e35ac&&_0x1e35ac['state']['doc'],_0x598f62=this['posAtStart'];return _0x50f0a9?_0x50f0a9['slice'](_0x598f62,_0x598f62+this['length']):Text['empty'];}['domAtPos'](_0xb6ac2c){return(this['length']?0x0==_0xb6ac2c:this['side']>0x0)?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0xb6ac2c==this['length']);}['domBoundsAround'](){return null;}['coordsAt'](_0x10b9b3,_0x5f5056){let _0xb76927=this['widget']['coordsAt'](this['dom'],_0x10b9b3,_0x5f5056);if(_0xb76927)return _0xb76927;let _0x3f954e=this['dom']['getClientRects'](),_0x1fdf30=null;if(!_0x3f954e['length'])return null;let _0x32762d=this['side']?this['side']<0x0:_0x10b9b3>0x0;for(let _0x2d0e3f=_0x32762d?_0x3f954e['length']-0x1:0x0;_0x1fdf30=_0x3f954e[_0x2d0e3f],!(_0x10b9b3>0x0?0x0==_0x2d0e3f:_0x2d0e3f==_0x3f954e['length']-0x1||_0x1fdf30['top']<_0x1fdf30['bottom']);_0x2d0e3f+=_0x32762d?-0x1:0x1);return flattenRect(_0x1fdf30,!_0x32762d);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}get['isHidden'](){return this['widget']['isHidden'];}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}}class WidgetBufferView extends ContentView{constructor(_0x579ee0){super(),this['side']=_0x579ee0;}get['length'](){return 0x0;}['merge'](){return!0x1;}['become'](_0x4d564a){return _0x4d564a instanceof WidgetBufferView&&_0x4d564a['side']==this['side'];}['split'](){return new WidgetBufferView(this['side']);}['sync'](){if(!this['dom']){let _0x182fbf=document['createElement']('img');_0x182fbf['className']='cm-widgetBuffer',_0x182fbf['setAttribute']('aria-hidden','true'),this['setDOM'](_0x182fbf);}}['getSide'](){return this['side'];}['domAtPos'](_0x1183ff){return this['side']>0x0?DOMPos['before'](this['dom']):DOMPos['after'](this['dom']);}['localPosFromDOM'](){return 0x0;}['domBoundsAround'](){return null;}['coordsAt'](_0x3d4311){return this['dom']['getBoundingClientRect']();}get['overrideDOMText'](){return Text['empty'];}get['isHidden'](){return!0x0;}}function inlineDOMAtPos(_0x3af81c,_0x5d64fb){let _0xcaa457=_0x3af81c['dom'],{children:_0x29a865}=_0x3af81c,_0x5c9a00=0x0;for(let _0x5e009d=0x0;_0x5c9a00<_0x29a865['length'];_0x5c9a00++){let _0x4575ae=_0x29a865[_0x5c9a00],_0x26d418=_0x5e009d+_0x4575ae['length'];if(!(_0x26d418==_0x5e009d&&_0x4575ae['getSide']()<=0x0)){if(_0x5d64fb>_0x5e009d&&_0x5d64fb<_0x26d418&&_0x4575ae['dom']['parentNode']==_0xcaa457)return _0x4575ae['domAtPos'](_0x5d64fb-_0x5e009d);if(_0x5d64fb<=_0x5e009d)break;_0x5e009d=_0x26d418;}}for(let _0x54e841=_0x5c9a00;_0x54e841>0x0;_0x54e841--){let _0x25ee3b=_0x29a865[_0x54e841-0x1];if(_0x25ee3b['dom']['parentNode']==_0xcaa457)return _0x25ee3b['domAtPos'](_0x25ee3b['length']);}for(let _0xab6c2c=_0x5c9a00;_0xab6c2c<_0x29a865['length'];_0xab6c2c++){let _0x5ea90e=_0x29a865[_0xab6c2c];if(_0x5ea90e['dom']['parentNode']==_0xcaa457)return _0x5ea90e['domAtPos'](0x0);}return new DOMPos(_0xcaa457,0x0);}function joinInlineInto(_0x3a6c5c,_0x11cecf,_0x39400b){let _0x5e0bdf,{children:_0x121e84}=_0x3a6c5c;_0x39400b>0x0&&_0x11cecf instanceof MarkView&&_0x121e84['length']&&(_0x5e0bdf=_0x121e84[_0x121e84['length']-0x1])instanceof MarkView&&_0x5e0bdf['mark']['eq'](_0x11cecf['mark'])?joinInlineInto(_0x5e0bdf,_0x11cecf['children'][0x0],_0x39400b-0x1):(_0x121e84['push'](_0x11cecf),_0x11cecf['setParent'](_0x3a6c5c)),_0x3a6c5c['length']+=_0x11cecf['length'];}function coordsInChildren(_0x26793d,_0x4555fe,_0x13dbe9){let _0x5b39f0=null,_0x37a613=-0x1,_0x224a67=null,_0x2f2316=-0x1;!function _0x2f03f6(_0x13985a,_0x6435a8){for(let _0x18df81=0x0,_0x5b5c15=0x0;_0x18df81<_0x13985a['children']['length']&&_0x5b5c15<=_0x6435a8;_0x18df81++){let _0x407d23=_0x13985a['children'][_0x18df81],_0x291730=_0x5b5c15+_0x407d23['length'];_0x291730>=_0x6435a8&&(_0x407d23['children']['length']?_0x2f03f6(_0x407d23,_0x6435a8-_0x5b5c15):(!_0x224a67||_0x224a67['isHidden']&&(_0x13dbe9>0x0||onSameLine(_0x224a67,_0x407d23)))&&(_0x291730>_0x6435a8||_0x5b5c15==_0x291730&&_0x407d23['getSide']()>0x0)?(_0x224a67=_0x407d23,_0x2f2316=_0x6435a8-_0x5b5c15):(_0x5b5c15<_0x6435a8||_0x5b5c15==_0x291730&&_0x407d23['getSide']()<0x0&&!_0x407d23['isHidden'])&&(_0x5b39f0=_0x407d23,_0x37a613=_0x6435a8-_0x5b5c15)),_0x5b5c15=_0x291730;}}(_0x26793d,_0x4555fe);let _0x125b37=(_0x13dbe9<0x0?_0x5b39f0:_0x224a67)||_0x5b39f0||_0x224a67;return _0x125b37?_0x125b37['coordsAt'](Math['max'](0x0,_0x125b37==_0x5b39f0?_0x37a613:_0x2f2316),_0x13dbe9):fallbackRect(_0x26793d);}function fallbackRect(_0x525c16){let _0x3e7e1e=_0x525c16['dom']['lastChild'];if(!_0x3e7e1e)return _0x525c16['dom']['getBoundingClientRect']();let _0x46271f=clientRectsFor(_0x3e7e1e);return _0x46271f[_0x46271f['length']-0x1]||null;}function onSameLine(_0x3e3b8f,_0x4ba24e){let _0x43bcb1=_0x3e3b8f['coordsAt'](0x0,0x1),_0x17b682=_0x4ba24e['coordsAt'](0x0,0x1);return _0x43bcb1&&_0x17b682&&_0x17b682['top']<_0x43bcb1['bottom'];}function combineAttrs(_0x39da15,_0x49edbe){for(let _0x3e6c39 in _0x39da15)'class'==_0x3e6c39&&_0x49edbe['class']?_0x49edbe['class']+='\x20'+_0x39da15['class']:'style'==_0x3e6c39&&_0x49edbe['style']?_0x49edbe['style']+=';'+_0x39da15['style']:_0x49edbe[_0x3e6c39]=_0x39da15[_0x3e6c39];return _0x49edbe;}TextView['prototype']['children']=WidgetView['prototype']['children']=WidgetBufferView['prototype']['children']=noChildren;const noAttrs$1=Object['create'](null);function attrsEq(_0x576650,_0x3e585e,_0x514e5c){if(_0x576650==_0x3e585e)return!0x0;_0x576650||(_0x576650=noAttrs$1),_0x3e585e||(_0x3e585e=noAttrs$1);let _0x4ff796=Object['keys'](_0x576650),_0x3d76c7=Object['keys'](_0x3e585e);if(_0x4ff796['length']-(_0x514e5c&&_0x4ff796['indexOf'](_0x514e5c)>-0x1?0x1:0x0)!=_0x3d76c7['length']-(_0x514e5c&&_0x3d76c7['indexOf'](_0x514e5c)>-0x1?0x1:0x0))return!0x1;for(let _0x1ad02f of _0x4ff796)if(_0x1ad02f!=_0x514e5c&&(-0x1==_0x3d76c7['indexOf'](_0x1ad02f)||_0x576650[_0x1ad02f]!==_0x3e585e[_0x1ad02f]))return!0x1;return!0x0;}function updateAttrs(_0x13d2ec,_0x220c6f,_0x4099b3){let _0x5ad13a=!0x1;if(_0x220c6f){for(let _0x52d3a9 in _0x220c6f)_0x4099b3&&_0x52d3a9 in _0x4099b3||(_0x5ad13a=!0x0,'style'==_0x52d3a9?_0x13d2ec['style']['cssText']='':_0x13d2ec['removeAttribute'](_0x52d3a9));}if(_0x4099b3){for(let _0xde5a44 in _0x4099b3)_0x220c6f&&_0x220c6f[_0xde5a44]==_0x4099b3[_0xde5a44]||(_0x5ad13a=!0x0,'style'==_0xde5a44?_0x13d2ec['style']['cssText']=_0x4099b3[_0xde5a44]:_0x13d2ec['setAttribute'](_0xde5a44,_0x4099b3[_0xde5a44]));}return _0x5ad13a;}function getAttrs$1(_0x2067cf){let _0x372be5=Object['create'](null);for(let _0x46b2dc=0x0;_0x46b2dc<_0x2067cf['attributes']['length'];_0x46b2dc++){let _0x106569=_0x2067cf['attributes'][_0x46b2dc];_0x372be5[_0x106569['name']]=_0x106569['value'];}return _0x372be5;}class WidgetType{['eq'](_0x5c4af1){return!0x1;}['updateDOM'](_0x482109,_0x6c8f9f){return!0x1;}['compare'](_0x106c51){return this==_0x106c51||this['constructor']==_0x106c51['constructor']&&this['eq'](_0x106c51);}get['estimatedHeight'](){return-0x1;}get['lineBreaks'](){return 0x0;}['ignoreEvent'](_0x5b035e){return!0x0;}['coordsAt'](_0x43f852,_0x4ea7f5,_0x3f25bd){return null;}get['isHidden'](){return!0x1;}get['editable'](){return!0x1;}['destroy'](_0x9b91f3){}}var BlockType=function(_0x1506a3){return _0x1506a3[_0x1506a3['Text']=0x0]='Text',_0x1506a3[_0x1506a3['WidgetBefore']=0x1]='WidgetBefore',_0x1506a3[_0x1506a3['WidgetAfter']=0x2]='WidgetAfter',_0x1506a3[_0x1506a3['WidgetRange']=0x3]='WidgetRange',_0x1506a3;}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(_0x34d19e,_0x1f9255,_0x46c96d,_0x368fa9){super(),this['startSide']=_0x34d19e,this['endSide']=_0x1f9255,this['widget']=_0x46c96d,this['spec']=_0x368fa9;}get['heightRelevant'](){return!0x1;}static['mark'](_0x5dc285){return new MarkDecoration(_0x5dc285);}static['widget'](_0x451c25){let _0x567205=Math['max'](-0x2710,Math['min'](0x2710,_0x451c25['side']||0x0)),_0x18276f=!!_0x451c25['block'];return _0x567205+=_0x18276f&&!_0x451c25['inlineOrder']?_0x567205>0x0?0x11e1a300:-0x17d78400:_0x567205>0x0?0x5f5e100:-0x5f5e100,new PointDecoration(_0x451c25,_0x567205,_0x567205,_0x18276f,_0x451c25['widget']||null,!0x1);}static['replace'](_0x33077f){let _0x3a6fe3,_0x7e80b8,_0x38e53b=!!_0x33077f['block'];if(_0x33077f['isBlockGap'])_0x3a6fe3=-0x1dcd6500,_0x7e80b8=0x17d78400;else{let {start:_0x4c662f,end:_0x349148}=getInclusive(_0x33077f,_0x38e53b);_0x3a6fe3=(_0x4c662f?_0x38e53b?-0x11e1a300:-0x1:0x1dcd6500)-0x1,_0x7e80b8=0x1+(_0x349148?_0x38e53b?0xbebc200:0x1:-0x23c34600);}return new PointDecoration(_0x33077f,_0x3a6fe3,_0x7e80b8,_0x38e53b,_0x33077f['widget']||null,!0x0);}static['line'](_0x4be552){return new LineDecoration(_0x4be552);}static['set'](_0x24e49b,_0x3cf29a=!0x1){return RangeSet['of'](_0x24e49b,_0x3cf29a);}['hasHeight'](){return!!this['widget']&&this['widget']['estimatedHeight']>-0x1;}}Decoration['none']=RangeSet['empty'];class MarkDecoration extends Decoration{constructor(_0x5a857c){let {start:_0x4c0f8c,end:_0x1bfc1f}=getInclusive(_0x5a857c);super(_0x4c0f8c?-0x1:0x1dcd6500,_0x1bfc1f?0x1:-0x23c34600,null,_0x5a857c),this['tagName']=_0x5a857c['tagName']||'span',this['class']=_0x5a857c['class']||'',this['attrs']=_0x5a857c['attributes']||null;}['eq'](_0xf88e0b){var _0x5babb3,_0x5b371f;return this==_0xf88e0b||_0xf88e0b instanceof MarkDecoration&&this['tagName']==_0xf88e0b['tagName']&&(this['class']||(null===(_0x5babb3=this['attrs'])||void 0x0===_0x5babb3?void 0x0:_0x5babb3['class']))==(_0xf88e0b['class']||(null===(_0x5b371f=_0xf88e0b['attrs'])||void 0x0===_0x5b371f?void 0x0:_0x5b371f['class']))&&attrsEq(this['attrs'],_0xf88e0b['attrs'],'class');}['range'](_0x197fbe,_0x144d79=_0x197fbe){if(_0x197fbe>=_0x144d79)throw new RangeError('Mark\x20decorations\x20may\x20not\x20be\x20empty');return super['range'](_0x197fbe,_0x144d79);}}MarkDecoration['prototype']['point']=!0x1;class LineDecoration extends Decoration{constructor(_0x5883da){super(-0xbebc200,-0xbebc200,null,_0x5883da);}['eq'](_0x593678){return _0x593678 instanceof LineDecoration&&this['spec']['class']==_0x593678['spec']['class']&&attrsEq(this['spec']['attributes'],_0x593678['spec']['attributes']);}['range'](_0x15f4d5,_0x4f8d93=_0x15f4d5){if(_0x4f8d93!=_0x15f4d5)throw new RangeError('Line\x20decoration\x20ranges\x20must\x20be\x20zero-length');return super['range'](_0x15f4d5,_0x4f8d93);}}LineDecoration['prototype']['mapMode']=MapMode['TrackBefore'],LineDecoration['prototype']['point']=!0x0;class PointDecoration extends Decoration{constructor(_0x393de1,_0x5e2859,_0xe09004,_0x36438a,_0x483118,_0x178536){super(_0x5e2859,_0xe09004,_0x483118,_0x393de1),this['block']=_0x36438a,this['isReplace']=_0x178536,this['mapMode']=_0x36438a?_0x5e2859<=0x0?MapMode['TrackBefore']:MapMode['TrackAfter']:MapMode['TrackDel'];}get['type'](){return this['startSide']!=this['endSide']?BlockType['WidgetRange']:this['startSide']<=0x0?BlockType['WidgetBefore']:BlockType['WidgetAfter'];}get['heightRelevant'](){return this['block']||!!this['widget']&&(this['widget']['estimatedHeight']>=0x5||this['widget']['lineBreaks']>0x0);}['eq'](_0x52e925){return _0x52e925 instanceof PointDecoration&&widgetsEq(this['widget'],_0x52e925['widget'])&&this['block']==_0x52e925['block']&&this['startSide']==_0x52e925['startSide']&&this['endSide']==_0x52e925['endSide'];}['range'](_0x1f80ba,_0x28ce4a=_0x1f80ba){if(this['isReplace']&&(_0x1f80ba>_0x28ce4a||_0x1f80ba==_0x28ce4a&&this['startSide']>0x0&&this['endSide']<=0x0))throw new RangeError('Invalid\x20range\x20for\x20replacement\x20decoration');if(!this['isReplace']&&_0x28ce4a!=_0x1f80ba)throw new RangeError('Widget\x20decorations\x20can\x20only\x20have\x20zero-length\x20ranges');return super['range'](_0x1f80ba,_0x28ce4a);}}function getInclusive(_0x5bc85c,_0x2eda4b=!0x1){let {inclusiveStart:_0x1e819d,inclusiveEnd:_0x32e00d}=_0x5bc85c;return null==_0x1e819d&&(_0x1e819d=_0x5bc85c['inclusive']),null==_0x32e00d&&(_0x32e00d=_0x5bc85c['inclusive']),{'start':null!=_0x1e819d?_0x1e819d:_0x2eda4b,'end':null!=_0x32e00d?_0x32e00d:_0x2eda4b};}function widgetsEq(_0x55a70a,_0x27b134){return _0x55a70a==_0x27b134||!!(_0x55a70a&&_0x27b134&&_0x55a70a['compare'](_0x27b134));}function addRange(_0x1b5c11,_0x2b22e1,_0x304612,_0x732e53=0x0){let _0x1e90a7=_0x304612['length']-0x1;_0x1e90a7>=0x0&&_0x304612[_0x1e90a7]+_0x732e53>=_0x1b5c11?_0x304612[_0x1e90a7]=Math['max'](_0x304612[_0x1e90a7],_0x2b22e1):_0x304612['push'](_0x1b5c11,_0x2b22e1);}PointDecoration['prototype']['point']=!0x0;class LineView extends ContentView{constructor(){super(...arguments),this['children']=[],this['length']=0x0,this['prevAttrs']=void 0x0,this['attrs']=null,this['breakAfter']=0x0;}['merge'](_0x4ca1dc,_0x10bcdb,_0x72b3ca,_0x66e730,_0x2a4c18,_0x115cd1){if(_0x72b3ca){if(!(_0x72b3ca instanceof LineView))return!0x1;this['dom']||_0x72b3ca['transferDOM'](this);}return _0x66e730&&this['setDeco'](_0x72b3ca?_0x72b3ca['attrs']:null),mergeChildrenInto(this,_0x4ca1dc,_0x10bcdb,_0x72b3ca?_0x72b3ca['children']['slice']():[],_0x2a4c18,_0x115cd1),!0x0;}['split'](_0x57cd52){let _0x4e2d3f=new LineView();if(_0x4e2d3f['breakAfter']=this['breakAfter'],0x0==this['length'])return _0x4e2d3f;let {i:_0x1788ca,off:_0x145b3e}=this['childPos'](_0x57cd52);_0x145b3e&&(_0x4e2d3f['append'](this['children'][_0x1788ca]['split'](_0x145b3e),0x0),this['children'][_0x1788ca]['merge'](_0x145b3e,this['children'][_0x1788ca]['length'],null,!0x1,0x0,0x0),_0x1788ca++);for(let _0x783e5c=_0x1788ca;_0x783e5c<this['children']['length'];_0x783e5c++)_0x4e2d3f['append'](this['children'][_0x783e5c],0x0);for(;_0x1788ca>0x0&&0x0==this['children'][_0x1788ca-0x1]['length'];)this['children'][--_0x1788ca]['destroy']();return this['children']['length']=_0x1788ca,this['markDirty'](),this['length']=_0x57cd52,_0x4e2d3f;}['transferDOM'](_0x38182c){this['dom']&&(this['markDirty'](),_0x38182c['setDOM'](this['dom']),_0x38182c['prevAttrs']=void 0x0===this['prevAttrs']?this['attrs']:this['prevAttrs'],this['prevAttrs']=void 0x0,this['dom']=null);}['setDeco'](_0x1b3cbc){attrsEq(this['attrs'],_0x1b3cbc)||(this['dom']&&(this['prevAttrs']=this['attrs'],this['markDirty']()),this['attrs']=_0x1b3cbc);}['append'](_0x34e928,_0x2cd6ec){joinInlineInto(this,_0x34e928,_0x2cd6ec);}['addLineDeco'](_0x14f07e){let _0x4bf3f7=_0x14f07e['spec']['attributes'],_0x2eebc5=_0x14f07e['spec']['class'];_0x4bf3f7&&(this['attrs']=combineAttrs(_0x4bf3f7,this['attrs']||{})),_0x2eebc5&&(this['attrs']=combineAttrs({'class':_0x2eebc5},this['attrs']||{}));}['domAtPos'](_0x5d52d2){return inlineDOMAtPos(this,_0x5d52d2);}['reuseDOM'](_0x2bea86){'DIV'==_0x2bea86['nodeName']&&(this['setDOM'](_0x2bea86),this['flags']|=0x6);}['sync'](_0xd8ae16,_0x4d6a03){var _0x3f7feb;this['dom']?0x4&this['flags']&&(clearAttributes(this['dom']),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0):(this['setDOM'](document['createElement']('div')),this['dom']['className']='cm-line',this['prevAttrs']=this['attrs']?null:void 0x0),void 0x0!==this['prevAttrs']&&(updateAttrs(this['dom'],this['prevAttrs'],this['attrs']),this['dom']['classList']['add']('cm-line'),this['prevAttrs']=void 0x0),super['sync'](_0xd8ae16,_0x4d6a03);let _0x7dbb0d=this['dom']['lastChild'];for(;_0x7dbb0d&&ContentView['get'](_0x7dbb0d)instanceof MarkView;)_0x7dbb0d=_0x7dbb0d['lastChild'];if(!(_0x7dbb0d&&this['length']&&('BR'==_0x7dbb0d['nodeName']||0x0!=(null===(_0x3f7feb=ContentView['get'](_0x7dbb0d))||void 0x0===_0x3f7feb?void 0x0:_0x3f7feb['isEditable'])||browser['ios']&&this['children']['some'](_0x1b3e2c=>_0x1b3e2c instanceof TextView)))){let _0x57ddb7=document['createElement']('BR');_0x57ddb7['cmIgnore']=!0x0,this['dom']['appendChild'](_0x57ddb7);}}['measureTextSize'](){if(0x0==this['children']['length']||this['length']>0x14)return null;let _0xfa870d,_0x47475b=0x0;for(let _0x21a287 of this['children']){if(!(_0x21a287 instanceof TextView)||/[^ -~]/['test'](_0x21a287['text']))return null;let _0x19f7be=clientRectsFor(_0x21a287['dom']);if(0x1!=_0x19f7be['length'])return null;_0x47475b+=_0x19f7be[0x0]['width'],_0xfa870d=_0x19f7be[0x0]['height'];}return _0x47475b?{'lineHeight':this['dom']['getBoundingClientRect']()['height'],'charWidth':_0x47475b/this['length'],'textHeight':_0xfa870d}:null;}['coordsAt'](_0x28f8d7,_0x4807c6){let _0x1f1daa=coordsInChildren(this,_0x28f8d7,_0x4807c6);if(!this['children']['length']&&_0x1f1daa&&this['parent']){let {heightOracle:_0x2b881}=this['parent']['view']['viewState'],_0x2d4414=_0x1f1daa['bottom']-_0x1f1daa['top'];if(Math['abs'](_0x2d4414-_0x2b881['lineHeight'])<0x2&&_0x2b881['textHeight']<_0x2d4414){let _0x195db9=(_0x2d4414-_0x2b881['textHeight'])/0x2;return{'top':_0x1f1daa['top']+_0x195db9,'bottom':_0x1f1daa['bottom']-_0x195db9,'left':_0x1f1daa['left'],'right':_0x1f1daa['left']};}}return _0x1f1daa;}['become'](_0x360daa){return _0x360daa instanceof LineView&&0x0==this['children']['length']&&0x0==_0x360daa['children']['length']&&attrsEq(this['attrs'],_0x360daa['attrs'])&&this['breakAfter']==_0x360daa['breakAfter'];}['covers'](){return!0x0;}static['find'](_0xc610c2,_0x15c0f3){for(let _0x221c02=0x0,_0x30f45c=0x0;_0x221c02<_0xc610c2['children']['length'];_0x221c02++){let _0x527cf9=_0xc610c2['children'][_0x221c02],_0x4aa182=_0x30f45c+_0x527cf9['length'];if(_0x4aa182>=_0x15c0f3){if(_0x527cf9 instanceof LineView)return _0x527cf9;if(_0x4aa182>_0x15c0f3)break;}_0x30f45c=_0x4aa182+_0x527cf9['breakAfter'];}return null;}}class BlockWidgetView extends ContentView{constructor(_0x377af0,_0x32efdb,_0x3afe9e){super(),this['widget']=_0x377af0,this['length']=_0x32efdb,this['deco']=_0x3afe9e,this['breakAfter']=0x0,this['prevWidget']=null;}['merge'](_0x3efe89,_0x2c6a6a,_0x16ed6c,_0x297129,_0x19a9d4,_0x33585a){return!(_0x16ed6c&&(!(_0x16ed6c instanceof BlockWidgetView&&this['widget']['compare'](_0x16ed6c['widget']))||_0x3efe89>0x0&&_0x19a9d4<=0x0||_0x2c6a6a<this['length']&&_0x33585a<=0x0))&&(this['length']=_0x3efe89+(_0x16ed6c?_0x16ed6c['length']:0x0)+(this['length']-_0x2c6a6a),!0x0);}['domAtPos'](_0x1f11ef){return 0x0==_0x1f11ef?DOMPos['before'](this['dom']):DOMPos['after'](this['dom'],_0x1f11ef==this['length']);}['split'](_0x352e0b){let _0x41beb4=this['length']-_0x352e0b;this['length']=_0x352e0b;let _0x204949=new BlockWidgetView(this['widget'],_0x41beb4,this['deco']);return _0x204949['breakAfter']=this['breakAfter'],_0x204949;}get['children'](){return noChildren;}['sync'](_0x65071a){this['dom']&&this['widget']['updateDOM'](this['dom'],_0x65071a)||(this['dom']&&this['prevWidget']&&this['prevWidget']['destroy'](this['dom']),this['prevWidget']=null,this['setDOM'](this['widget']['toDOM'](_0x65071a)),this['widget']['editable']||(this['dom']['contentEditable']='false'));}get['overrideDOMText'](){return this['parent']?this['parent']['view']['state']['doc']['slice'](this['posAtStart'],this['posAtEnd']):Text['empty'];}['domBoundsAround'](){return null;}['become'](_0x58c0d8){return _0x58c0d8 instanceof BlockWidgetView&&_0x58c0d8['widget']['constructor']==this['widget']['constructor']&&(_0x58c0d8['widget']['compare'](this['widget'])||this['markDirty'](!0x0),this['dom']&&!this['prevWidget']&&(this['prevWidget']=this['widget']),this['widget']=_0x58c0d8['widget'],this['length']=_0x58c0d8['length'],this['deco']=_0x58c0d8['deco'],this['breakAfter']=_0x58c0d8['breakAfter'],!0x0);}['ignoreMutation'](){return!0x0;}['ignoreEvent'](_0x126821){return this['widget']['ignoreEvent'](_0x126821);}get['isEditable'](){return!0x1;}get['isWidget'](){return!0x0;}['coordsAt'](_0x54382f,_0x57ae17){let _0x8adf25=this['widget']['coordsAt'](this['dom'],_0x54382f,_0x57ae17);return _0x8adf25||(this['widget']instanceof BlockGapWidget?null:flattenRect(this['dom']['getBoundingClientRect'](),this['length']?0x0==_0x54382f:_0x57ae17<=0x0));}['destroy'](){super['destroy'](),this['dom']&&this['widget']['destroy'](this['dom']);}['covers'](_0x29b879){let {startSide:_0x28fc74,endSide:_0x2ca55a}=this['deco'];return _0x28fc74!=_0x2ca55a&&(_0x29b879<0x0?_0x28fc74<0x0:_0x2ca55a>0x0);}}class BlockGapWidget extends WidgetType{constructor(_0x7cb309){super(),this['height']=_0x7cb309;}['toDOM'](){let _0x211c62=document['createElement']('div');return _0x211c62['className']='cm-gap',this['updateDOM'](_0x211c62),_0x211c62;}['eq'](_0x4e5881){return _0x4e5881['height']==this['height'];}['updateDOM'](_0x128e0c){return _0x128e0c['style']['height']=this['height']+'px',!0x0;}get['editable'](){return!0x0;}get['estimatedHeight'](){return this['height'];}['ignoreEvent'](){return!0x1;}}class ContentBuilder{constructor(_0x28e049,_0x31f88e,_0x35fe90,_0x5c8984){this['doc']=_0x28e049,this['pos']=_0x31f88e,this['end']=_0x35fe90,this['disallowBlockEffectsFor']=_0x5c8984,this['content']=[],this['curLine']=null,this['breakAtStart']=0x0,this['pendingBuffer']=0x0,this['bufferMarks']=[],this['atCursorPos']=!0x0,this['openStart']=-0x1,this['openEnd']=-0x1,this['text']='',this['textOff']=0x0,this['cursor']=_0x28e049['iter'](),this['skip']=_0x31f88e;}['posCovered'](){if(0x0==this['content']['length'])return!this['breakAtStart']&&this['doc']['lineAt'](this['pos'])['from']!=this['pos'];let _0x3c981b=this['content'][this['content']['length']-0x1];return!(_0x3c981b['breakAfter']||_0x3c981b instanceof BlockWidgetView&&_0x3c981b['deco']['endSide']<0x0);}['getLine'](){return this['curLine']||(this['content']['push'](this['curLine']=new LineView()),this['atCursorPos']=!0x0),this['curLine'];}['flushBuffer'](_0x34545b=this['bufferMarks']){this['pendingBuffer']&&(this['curLine']['append'](wrapMarks(new WidgetBufferView(-0x1),_0x34545b),_0x34545b['length']),this['pendingBuffer']=0x0);}['addBlockWidget'](_0x5c03c1){this['flushBuffer'](),this['curLine']=null,this['content']['push'](_0x5c03c1);}['finish'](_0x1de89e){this['pendingBuffer']&&_0x1de89e<=this['bufferMarks']['length']?this['flushBuffer']():this['pendingBuffer']=0x0,this['posCovered']()||_0x1de89e&&this['content']['length']&&this['content'][this['content']['length']-0x1]instanceof BlockWidgetView||this['getLine']();}['buildText'](_0x2c9ce2,_0x39ecc4,_0x4507a2){for(;_0x2c9ce2>0x0;){if(this['textOff']==this['text']['length']){let {value:_0x1bfbaa,lineBreak:_0x43a2c3,done:_0x3f10e1}=this['cursor']['next'](this['skip']);if(this['skip']=0x0,_0x3f10e1)throw new Error('Ran\x20out\x20of\x20text\x20content\x20when\x20drawing\x20inline\x20views');if(_0x43a2c3){this['posCovered']()||this['getLine'](),this['content']['length']?this['content'][this['content']['length']-0x1]['breakAfter']=0x1:this['breakAtStart']=0x1,this['flushBuffer'](),this['curLine']=null,this['atCursorPos']=!0x0,_0x2c9ce2--;continue;}this['text']=_0x1bfbaa,this['textOff']=0x0;}let _0x45439e=Math['min'](this['text']['length']-this['textOff'],_0x2c9ce2),_0x571b3f=Math['min'](_0x45439e,0x200);this['flushBuffer'](_0x39ecc4['slice'](_0x39ecc4['length']-_0x4507a2)),this['getLine']()['append'](wrapMarks(new TextView(this['text']['slice'](this['textOff'],this['textOff']+_0x571b3f)),_0x39ecc4),_0x4507a2),this['atCursorPos']=!0x0,this['textOff']+=_0x571b3f,_0x2c9ce2-=_0x571b3f,_0x4507a2=_0x45439e<=_0x571b3f?0x0:_0x39ecc4['length'];}}['span'](_0x3f059e,_0x5091bc,_0x3b66a1,_0x58589e){this['buildText'](_0x5091bc-_0x3f059e,_0x3b66a1,_0x58589e),this['pos']=_0x5091bc,this['openStart']<0x0&&(this['openStart']=_0x58589e);}['point'](_0x3cf13e,_0x29f63b,_0x227779,_0x120895,_0x736603,_0x258082){if(this['disallowBlockEffectsFor'][_0x258082]&&_0x227779 instanceof PointDecoration){if(_0x227779['block'])throw new RangeError('Block\x20decorations\x20may\x20not\x20be\x20specified\x20via\x20plugins');if(_0x29f63b>this['doc']['lineAt'](this['pos'])['to'])throw new RangeError('Decorations\x20that\x20replace\x20line\x20breaks\x20may\x20not\x20be\x20specified\x20via\x20plugins');}let _0x29bba4=_0x29f63b-_0x3cf13e;if(_0x227779 instanceof PointDecoration){if(_0x227779['block'])_0x227779['startSide']>0x0&&!this['posCovered']()&&this['getLine'](),this['addBlockWidget'](new BlockWidgetView(_0x227779['widget']||NullWidget['block'],_0x29bba4,_0x227779));else{let _0x5176a1=WidgetView['create'](_0x227779['widget']||NullWidget['inline'],_0x29bba4,_0x29bba4?0x0:_0x227779['startSide']),_0x2dfd35=this['atCursorPos']&&!_0x5176a1['isEditable']&&_0x736603<=_0x120895['length']&&(_0x3cf13e<_0x29f63b||_0x227779['startSide']>0x0),_0x2c6a9e=!_0x5176a1['isEditable']&&(_0x3cf13e<_0x29f63b||_0x736603>_0x120895['length']||_0x227779['startSide']<=0x0),_0x52fb84=this['getLine']();0x2!=this['pendingBuffer']||_0x2dfd35||_0x5176a1['isEditable']||(this['pendingBuffer']=0x0),this['flushBuffer'](_0x120895),_0x2dfd35&&(_0x52fb84['append'](wrapMarks(new WidgetBufferView(0x1),_0x120895),_0x736603),_0x736603=_0x120895['length']+Math['max'](0x0,_0x736603-_0x120895['length'])),_0x52fb84['append'](wrapMarks(_0x5176a1,_0x120895),_0x736603),this['atCursorPos']=_0x2c6a9e,this['pendingBuffer']=_0x2c6a9e?_0x3cf13e<_0x29f63b||_0x736603>_0x120895['length']?0x1:0x2:0x0,this['pendingBuffer']&&(this['bufferMarks']=_0x120895['slice']());}}else this['doc']['lineAt'](this['pos'])['from']==this['pos']&&this['getLine']()['addLineDeco'](_0x227779);_0x29bba4&&(this['textOff']+_0x29bba4<=this['text']['length']?this['textOff']+=_0x29bba4:(this['skip']+=_0x29bba4-(this['text']['length']-this['textOff']),this['text']='',this['textOff']=0x0),this['pos']=_0x29f63b),this['openStart']<0x0&&(this['openStart']=_0x736603);}static['build'](_0x47a245,_0x4f45b2,_0x4f9502,_0x5debda,_0x2c3b58){let _0x371b3d=new ContentBuilder(_0x47a245,_0x4f45b2,_0x4f9502,_0x2c3b58);return _0x371b3d['openEnd']=RangeSet['spans'](_0x5debda,_0x4f45b2,_0x4f9502,_0x371b3d),_0x371b3d['openStart']<0x0&&(_0x371b3d['openStart']=_0x371b3d['openEnd']),_0x371b3d['finish'](_0x371b3d['openEnd']),_0x371b3d;}}function wrapMarks(_0x2203d6,_0x42aa56){for(let _0x2d69c6 of _0x42aa56)_0x2203d6=new MarkView(_0x2d69c6,[_0x2203d6],_0x2203d6['length']);return _0x2203d6;}class NullWidget extends WidgetType{constructor(_0x5bfb94){super(),this['tag']=_0x5bfb94;}['eq'](_0x39baa7){return _0x39baa7['tag']==this['tag'];}['toDOM'](){return document['createElement'](this['tag']);}['updateDOM'](_0x14f663){return _0x14f663['nodeName']['toLowerCase']()==this['tag'];}get['isHidden'](){return!0x0;}}NullWidget['inline']=new NullWidget('span'),NullWidget['block']=new NullWidget('div');var Direction=function(_0x3e4790){return _0x3e4790[_0x3e4790['LTR']=0x0]='LTR',_0x3e4790[_0x3e4790['RTL']=0x1]='RTL',_0x3e4790;}(Direction||(Direction={}));const LTR=Direction['LTR'],RTL=Direction['RTL'];function dec(_0x33d8ae){let _0x21196e=[];for(let _0x389ada=0x0;_0x389ada<_0x33d8ae['length'];_0x389ada++)_0x21196e['push'](0x1<<+_0x33d8ae[_0x389ada]);return _0x21196e;}const LowTypes=dec('88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008'),ArabicTypes=dec('4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333'),Brackets=Object['create'](null),BracketStack=[];for(let e of['()','[]','{}']){let i=e['charCodeAt'](0x0),n=e['charCodeAt'](0x1);Brackets[i]=n,Brackets[n]=-i;}function charType(_0x1e8da2){return _0x1e8da2<=0xf7?LowTypes[_0x1e8da2]:0x590<=_0x1e8da2&&_0x1e8da2<=0x5f4?0x2:0x600<=_0x1e8da2&&_0x1e8da2<=0x6f9?ArabicTypes[_0x1e8da2-0x600]:0x6ee<=_0x1e8da2&&_0x1e8da2<=0x8ac?0x4:0x2000<=_0x1e8da2&&_0x1e8da2<=0x200c?0x100:0xfb50<=_0x1e8da2&&_0x1e8da2<=0xfdff?0x4:0x1;}const BidiRE=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class BidiSpan{get['dir'](){return this['level']%0x2?RTL:LTR;}constructor(_0x32484d,_0x311680,_0x22ebb2){this['from']=_0x32484d,this['to']=_0x311680,this['level']=_0x22ebb2;}['side'](_0x5d8bd3,_0x4e2db8){return this['dir']==_0x4e2db8==_0x5d8bd3?this['to']:this['from'];}['forward'](_0x4a21a7,_0x429722){return _0x4a21a7==(this['dir']==_0x429722);}static['find'](_0x3e13e2,_0x58d7e6,_0x3e086a,_0x72ea19){let _0x5a2aef=-0x1;for(let _0x2f780a=0x0;_0x2f780a<_0x3e13e2['length'];_0x2f780a++){let _0x45dc79=_0x3e13e2[_0x2f780a];if(_0x45dc79['from']<=_0x58d7e6&&_0x45dc79['to']>=_0x58d7e6){if(_0x45dc79['level']==_0x3e086a)return _0x2f780a;(_0x5a2aef<0x0||(0x0!=_0x72ea19?_0x72ea19<0x0?_0x45dc79['from']<_0x58d7e6:_0x45dc79['to']>_0x58d7e6:_0x3e13e2[_0x5a2aef]['level']>_0x45dc79['level']))&&(_0x5a2aef=_0x2f780a);}}if(_0x5a2aef<0x0)throw new RangeError('Index\x20out\x20of\x20range');return _0x5a2aef;}}function isolatesEq(_0x18a50f,_0x286216){if(_0x18a50f['length']!=_0x286216['length'])return!0x1;for(let _0x29ce5a=0x0;_0x29ce5a<_0x18a50f['length'];_0x29ce5a++){let _0x4373b8=_0x18a50f[_0x29ce5a],_0x3d25bf=_0x286216[_0x29ce5a];if(_0x4373b8['from']!=_0x3d25bf['from']||_0x4373b8['to']!=_0x3d25bf['to']||_0x4373b8['direction']!=_0x3d25bf['direction']||!isolatesEq(_0x4373b8['inner'],_0x3d25bf['inner']))return!0x1;}return!0x0;}const types=[];function computeCharTypes(_0xc25b8c,_0x426839,_0x273caa,_0xb57fb3,_0x27ab2d){for(let _0x2fd4c6=0x0;_0x2fd4c6<=_0xb57fb3['length'];_0x2fd4c6++){let _0x53efd1=_0x2fd4c6?_0xb57fb3[_0x2fd4c6-0x1]['to']:_0x426839,_0x411195=_0x2fd4c6<_0xb57fb3['length']?_0xb57fb3[_0x2fd4c6]['from']:_0x273caa,_0x56e8c4=_0x2fd4c6?0x100:_0x27ab2d;for(let _0x367c8b=_0x53efd1,_0x56eaaa=_0x56e8c4,_0x3fb33c=_0x56e8c4;_0x367c8b<_0x411195;_0x367c8b++){let _0x5dfe0c=charType(_0xc25b8c['charCodeAt'](_0x367c8b));0x200==_0x5dfe0c?_0x5dfe0c=_0x56eaaa:0x8==_0x5dfe0c&&0x4==_0x3fb33c&&(_0x5dfe0c=0x10),types[_0x367c8b]=0x4==_0x5dfe0c?0x2:_0x5dfe0c,0x7&_0x5dfe0c&&(_0x3fb33c=_0x5dfe0c),_0x56eaaa=_0x5dfe0c;}for(let _0x4e162b=_0x53efd1,_0xc5867d=_0x56e8c4,_0x55de12=_0x56e8c4;_0x4e162b<_0x411195;_0x4e162b++){let _0xbac714=types[_0x4e162b];if(0x80==_0xbac714)_0x4e162b<_0x411195-0x1&&_0xc5867d==types[_0x4e162b+0x1]&&0x18&_0xc5867d?_0xbac714=types[_0x4e162b]=_0xc5867d:types[_0x4e162b]=0x100;else{if(0x40==_0xbac714){let _0x2c1534=_0x4e162b+0x1;for(;_0x2c1534<_0x411195&&0x40==types[_0x2c1534];)_0x2c1534++;let _0x11f627=_0x4e162b&&0x8==_0xc5867d||_0x2c1534<_0x273caa&&0x8==types[_0x2c1534]?0x1==_0x55de12?0x1:0x8:0x100;for(let _0x5027d1=_0x4e162b;_0x5027d1<_0x2c1534;_0x5027d1++)types[_0x5027d1]=_0x11f627;_0x4e162b=_0x2c1534-0x1;}else 0x8==_0xbac714&&0x1==_0x55de12&&(types[_0x4e162b]=0x1);}_0xc5867d=_0xbac714,0x7&_0xbac714&&(_0x55de12=_0xbac714);}}}function processBracketPairs(_0x337458,_0x2e62a4,_0x323d04,_0x5e76f0,_0x1faf74){let _0x32d23a=0x1==_0x1faf74?0x2:0x1;for(let _0x31bec1=0x0,_0x24ce09=0x0,_0x23d2da=0x0;_0x31bec1<=_0x5e76f0['length'];_0x31bec1++){let _0x5f3e5d=_0x31bec1?_0x5e76f0[_0x31bec1-0x1]['to']:_0x2e62a4,_0x1aa7af=_0x31bec1<_0x5e76f0['length']?_0x5e76f0[_0x31bec1]['from']:_0x323d04;for(let _0x257560,_0x4ceb90,_0x4e5720,_0x4ec70f=_0x5f3e5d;_0x4ec70f<_0x1aa7af;_0x4ec70f++)if(_0x4ceb90=Brackets[_0x257560=_0x337458['charCodeAt'](_0x4ec70f)]){if(_0x4ceb90<0x0){for(let _0x5da1c4=_0x24ce09-0x3;_0x5da1c4>=0x0;_0x5da1c4-=0x3)if(BracketStack[_0x5da1c4+0x1]==-_0x4ceb90){let _0x20d25a=BracketStack[_0x5da1c4+0x2],_0x1d28c1=0x2&_0x20d25a?_0x1faf74:0x4&_0x20d25a?0x1&_0x20d25a?_0x32d23a:_0x1faf74:0x0;_0x1d28c1&&(types[_0x4ec70f]=types[BracketStack[_0x5da1c4]]=_0x1d28c1),_0x24ce09=_0x5da1c4;break;}}else{if(0xbd==BracketStack['length'])break;BracketStack[_0x24ce09++]=_0x4ec70f,BracketStack[_0x24ce09++]=_0x257560,BracketStack[_0x24ce09++]=_0x23d2da;}}else{if(0x2==(_0x4e5720=types[_0x4ec70f])||0x1==_0x4e5720){let _0x2af4ff=_0x4e5720==_0x1faf74;_0x23d2da=_0x2af4ff?0x0:0x1;for(let _0x3407ec=_0x24ce09-0x3;_0x3407ec>=0x0;_0x3407ec-=0x3){let _0x2c2315=BracketStack[_0x3407ec+0x2];if(0x2&_0x2c2315)break;if(_0x2af4ff)BracketStack[_0x3407ec+0x2]|=0x2;else{if(0x4&_0x2c2315)break;BracketStack[_0x3407ec+0x2]|=0x4;}}}}}}function processNeutrals(_0x55484b,_0x3eda3b,_0x3746fc,_0x13018b){for(let _0x3d4ea9=0x0,_0x27b3e2=_0x13018b;_0x3d4ea9<=_0x3746fc['length'];_0x3d4ea9++){let _0x49e2b1=_0x3d4ea9?_0x3746fc[_0x3d4ea9-0x1]['to']:_0x55484b,_0x7cc325=_0x3d4ea9<_0x3746fc['length']?_0x3746fc[_0x3d4ea9]['from']:_0x3eda3b;for(let _0x38f610=_0x49e2b1;_0x38f610<_0x7cc325;){let _0x175ff9=types[_0x38f610];if(0x100==_0x175ff9){let _0x258055=_0x38f610+0x1;for(;;)if(_0x258055==_0x7cc325){if(_0x3d4ea9==_0x3746fc['length'])break;_0x258055=_0x3746fc[_0x3d4ea9++]['to'],_0x7cc325=_0x3d4ea9<_0x3746fc['length']?_0x3746fc[_0x3d4ea9]['from']:_0x3eda3b;}else{if(0x100!=types[_0x258055])break;_0x258055++;}let _0x1613b7=0x1==_0x27b3e2,_0xac0eb6=_0x1613b7==(0x1==(_0x258055<_0x3eda3b?types[_0x258055]:_0x13018b))?_0x1613b7?0x1:0x2:_0x13018b;for(let _0x2aefca=_0x258055,_0xfeb532=_0x3d4ea9,_0x552f46=_0xfeb532?_0x3746fc[_0xfeb532-0x1]['to']:_0x55484b;_0x2aefca>_0x38f610;)_0x2aefca==_0x552f46&&(_0x2aefca=_0x3746fc[--_0xfeb532]['from'],_0x552f46=_0xfeb532?_0x3746fc[_0xfeb532-0x1]['to']:_0x55484b),types[--_0x2aefca]=_0xac0eb6;_0x38f610=_0x258055;}else _0x27b3e2=_0x175ff9,_0x38f610++;}}}function emitSpans(_0xfcafb1,_0xe9d714,_0x2773e0,_0x1c5227,_0xe8d710,_0x46c0fe,_0x4f1101){let _0xab4a38=_0x1c5227%0x2?0x2:0x1;if(_0x1c5227%0x2==_0xe8d710%0x2)for(let _0x4027ea=_0xe9d714,_0x200a91=0x0;_0x4027ea<_0x2773e0;){let _0x106bb0=!0x0,_0x13386c=!0x1;if(_0x200a91==_0x46c0fe['length']||_0x4027ea<_0x46c0fe[_0x200a91]['from']){let _0x48a549=types[_0x4027ea];_0x48a549!=_0xab4a38&&(_0x106bb0=!0x1,_0x13386c=0x10==_0x48a549);}let _0x226b0a=_0x106bb0||0x1!=_0xab4a38?null:[],_0x12ec48=_0x106bb0?_0x1c5227:_0x1c5227+0x1,_0x2c1d66=_0x4027ea;t:for(;;)if(_0x200a91<_0x46c0fe['length']&&_0x2c1d66==_0x46c0fe[_0x200a91]['from']){if(_0x13386c)break t;let _0x34d4db=_0x46c0fe[_0x200a91];if(!_0x106bb0)for(let _0xee39f9=_0x34d4db['to'],_0x138f6a=_0x200a91+0x1;;){if(_0xee39f9==_0x2773e0)break t;if(!(_0x138f6a<_0x46c0fe['length']&&_0x46c0fe[_0x138f6a]['from']==_0xee39f9)){if(types[_0xee39f9]==_0xab4a38)break t;break;}_0xee39f9=_0x46c0fe[_0x138f6a++]['to'];}if(_0x200a91++,_0x226b0a)_0x226b0a['push'](_0x34d4db);else _0x34d4db['from']>_0x4027ea&&_0x4f1101['push'](new BidiSpan(_0x4027ea,_0x34d4db['from'],_0x12ec48)),computeSectionOrder(_0xfcafb1,_0x34d4db['direction']==LTR!=!(_0x12ec48%0x2)?_0x1c5227+0x1:_0x1c5227,_0xe8d710,_0x34d4db['inner'],_0x34d4db['from'],_0x34d4db['to'],_0x4f1101),_0x4027ea=_0x34d4db['to'];_0x2c1d66=_0x34d4db['to'];}else{if(_0x2c1d66==_0x2773e0||(_0x106bb0?types[_0x2c1d66]!=_0xab4a38:types[_0x2c1d66]==_0xab4a38))break;_0x2c1d66++;}_0x226b0a?emitSpans(_0xfcafb1,_0x4027ea,_0x2c1d66,_0x1c5227+0x1,_0xe8d710,_0x226b0a,_0x4f1101):_0x4027ea<_0x2c1d66&&_0x4f1101['push'](new BidiSpan(_0x4027ea,_0x2c1d66,_0x12ec48)),_0x4027ea=_0x2c1d66;}else for(let _0x3627b3=_0x2773e0,_0x531433=_0x46c0fe['length'];_0x3627b3>_0xe9d714;){let _0x4a418b=!0x0,_0x2ab9fd=!0x1;if(!_0x531433||_0x3627b3>_0x46c0fe[_0x531433-0x1]['to']){let _0x3b243f=types[_0x3627b3-0x1];_0x3b243f!=_0xab4a38&&(_0x4a418b=!0x1,_0x2ab9fd=0x10==_0x3b243f);}let _0xdd81a0=_0x4a418b||0x1!=_0xab4a38?null:[],_0x4ffcd5=_0x4a418b?_0x1c5227:_0x1c5227+0x1,_0x745fce=_0x3627b3;t:for(;;)if(_0x531433&&_0x745fce==_0x46c0fe[_0x531433-0x1]['to']){if(_0x2ab9fd)break t;let _0x4fec5c=_0x46c0fe[--_0x531433];if(!_0x4a418b)for(let _0x5657f5=_0x4fec5c['from'],_0x174c9f=_0x531433;;){if(_0x5657f5==_0xe9d714)break t;if(!_0x174c9f||_0x46c0fe[_0x174c9f-0x1]['to']!=_0x5657f5){if(types[_0x5657f5-0x1]==_0xab4a38)break t;break;}_0x5657f5=_0x46c0fe[--_0x174c9f]['from'];}if(_0xdd81a0)_0xdd81a0['push'](_0x4fec5c);else _0x4fec5c['to']<_0x3627b3&&_0x4f1101['push'](new BidiSpan(_0x4fec5c['to'],_0x3627b3,_0x4ffcd5)),computeSectionOrder(_0xfcafb1,_0x4fec5c['direction']==LTR!=!(_0x4ffcd5%0x2)?_0x1c5227+0x1:_0x1c5227,_0xe8d710,_0x4fec5c['inner'],_0x4fec5c['from'],_0x4fec5c['to'],_0x4f1101),_0x3627b3=_0x4fec5c['from'];_0x745fce=_0x4fec5c['from'];}else{if(_0x745fce==_0xe9d714||(_0x4a418b?types[_0x745fce-0x1]!=_0xab4a38:types[_0x745fce-0x1]==_0xab4a38))break;_0x745fce--;}_0xdd81a0?emitSpans(_0xfcafb1,_0x745fce,_0x3627b3,_0x1c5227+0x1,_0xe8d710,_0xdd81a0,_0x4f1101):_0x745fce<_0x3627b3&&_0x4f1101['push'](new BidiSpan(_0x745fce,_0x3627b3,_0x4ffcd5)),_0x3627b3=_0x745fce;}}function computeSectionOrder(_0x398cdb,_0x426fda,_0x1f1984,_0x5a97e6,_0x19e171,_0x42487d,_0x3dbaae){let _0x1568a3=_0x426fda%0x2?0x2:0x1;computeCharTypes(_0x398cdb,_0x19e171,_0x42487d,_0x5a97e6,_0x1568a3),processBracketPairs(_0x398cdb,_0x19e171,_0x42487d,_0x5a97e6,_0x1568a3),processNeutrals(_0x19e171,_0x42487d,_0x5a97e6,_0x1568a3),emitSpans(_0x398cdb,_0x19e171,_0x42487d,_0x426fda,_0x1f1984,_0x5a97e6,_0x3dbaae);}function computeOrder(_0x3f7a04,_0x1cdf93,_0x5f2b33){if(!_0x3f7a04)return[new BidiSpan(0x0,0x0,_0x1cdf93==RTL?0x1:0x0)];if(_0x1cdf93==LTR&&!_0x5f2b33['length']&&!BidiRE['test'](_0x3f7a04))return trivialOrder(_0x3f7a04['length']);if(_0x5f2b33['length']){for(;_0x3f7a04['length']>types['length'];)types[types['length']]=0x100;}let _0x1f122f=[],_0x398f04=_0x1cdf93==LTR?0x0:0x1;return computeSectionOrder(_0x3f7a04,_0x398f04,_0x398f04,_0x5f2b33,0x0,_0x3f7a04['length'],_0x1f122f),_0x1f122f;}function trivialOrder(_0xc3f04a){return[new BidiSpan(0x0,_0xc3f04a,0x0)];}let movedOver='';function moveVisually(_0x2079ca,_0x3cc74e,_0xa51c42,_0x5222af,_0x597679){var _0x218ca2;let _0x157ca3=_0x5222af['head']-_0x2079ca['from'],_0xaaf21f=BidiSpan['find'](_0x3cc74e,_0x157ca3,null!==(_0x218ca2=_0x5222af['bidiLevel'])&&void 0x0!==_0x218ca2?_0x218ca2:-0x1,_0x5222af['assoc']),_0x2e0c87=_0x3cc74e[_0xaaf21f],_0x4c7782=_0x2e0c87['side'](_0x597679,_0xa51c42);if(_0x157ca3==_0x4c7782){let _0x21bda9=_0xaaf21f+=_0x597679?0x1:-0x1;if(_0x21bda9<0x0||_0x21bda9>=_0x3cc74e['length'])return null;_0x2e0c87=_0x3cc74e[_0xaaf21f=_0x21bda9],_0x157ca3=_0x2e0c87['side'](!_0x597679,_0xa51c42),_0x4c7782=_0x2e0c87['side'](_0x597679,_0xa51c42);}let _0x57be75=findClusterBreak(_0x2079ca['text'],_0x157ca3,_0x2e0c87['forward'](_0x597679,_0xa51c42));(_0x57be75<_0x2e0c87['from']||_0x57be75>_0x2e0c87['to'])&&(_0x57be75=_0x4c7782),movedOver=_0x2079ca['text']['slice'](Math['min'](_0x157ca3,_0x57be75),Math['max'](_0x157ca3,_0x57be75));let _0x3cd831=_0xaaf21f==(_0x597679?_0x3cc74e['length']-0x1:0x0)?null:_0x3cc74e[_0xaaf21f+(_0x597679?0x1:-0x1)];return _0x3cd831&&_0x57be75==_0x4c7782&&_0x3cd831['level']+(_0x597679?0x0:0x1)<_0x2e0c87['level']?EditorSelection['cursor'](_0x3cd831['side'](!_0x597679,_0xa51c42)+_0x2079ca['from'],_0x3cd831['forward'](_0x597679,_0xa51c42)?0x1:-0x1,_0x3cd831['level']):EditorSelection['cursor'](_0x57be75+_0x2079ca['from'],_0x2e0c87['forward'](_0x597679,_0xa51c42)?-0x1:0x1,_0x2e0c87['level']);}function autoDirection(_0x4d60a2,_0x1ce3f3,_0x3c625a){for(let _0x3a9bf6=_0x1ce3f3;_0x3a9bf6<_0x3c625a;_0x3a9bf6++){let _0x3f812a=charType(_0x4d60a2['charCodeAt'](_0x3a9bf6));if(0x1==_0x3f812a)return LTR;if(0x2==_0x3f812a||0x4==_0x3f812a)return RTL;}return LTR;}const clickAddsSelectionRange=Facet['define'](),dragMovesSelection$1=Facet['define'](),mouseSelectionStyle=Facet['define'](),exceptionSink=Facet['define'](),updateListener=Facet['define'](),inputHandler$1=Facet['define'](),focusChangeEffect=Facet['define'](),clipboardInputFilter=Facet['define'](),clipboardOutputFilter=Facet['define'](),perLineTextDirection=Facet['define']({'combine':_0x404dfc=>_0x404dfc['some'](_0x31739d=>_0x31739d)}),nativeSelectionHidden=Facet['define']({'combine':_0xaa66fd=>_0xaa66fd['some'](_0xdba571=>_0xdba571)}),scrollHandler=Facet['define']();class ScrollTarget{constructor(_0x14b6b5,_0x58b0f5='nearest',_0x5324c1='nearest',_0x2d51bc=0x5,_0x3e8d8d=0x5,_0x347f6c=!0x1){this['range']=_0x14b6b5,this['y']=_0x58b0f5,this['x']=_0x5324c1,this['yMargin']=_0x2d51bc,this['xMargin']=_0x3e8d8d,this['isSnapshot']=_0x347f6c;}['map'](_0x4ea5e9){return _0x4ea5e9['empty']?this:new ScrollTarget(this['range']['map'](_0x4ea5e9),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}['clip'](_0x5401ed){return this['range']['to']<=_0x5401ed['doc']['length']?this:new ScrollTarget(EditorSelection['cursor'](_0x5401ed['doc']['length']),this['y'],this['x'],this['yMargin'],this['xMargin'],this['isSnapshot']);}}const scrollIntoView$1=StateEffect['define']({'map':(t,_0x15c5ea)=>t['map'](_0x15c5ea)}),setEditContextFormatting=StateEffect['define']();function logException(_0x231b59,_0x5b7e5e,_0x3a9f69){let _0xdb875f=_0x231b59['facet'](exceptionSink);_0xdb875f['length']?_0xdb875f[0x0](_0x5b7e5e):window['onerror']&&window['onerror'](String(_0x5b7e5e),_0x3a9f69,void 0x0,void 0x0,_0x5b7e5e)||(_0x3a9f69?console['error'](_0x3a9f69+':',_0x5b7e5e):console['error'](_0x5b7e5e));}const editable=Facet['define']({'combine':_0x4d903d=>!_0x4d903d['length']||_0x4d903d[0x0]});let nextPluginID=0x0;const viewPlugin=Facet['define']({'combine':_0x127ef6=>_0x127ef6['filter']((_0x38c1e3,_0x35de4a)=>{for(let _0x29d0b1=0x0;_0x29d0b1<_0x35de4a;_0x29d0b1++)if(_0x127ef6[_0x29d0b1]['plugin']==_0x38c1e3['plugin'])return!0x1;return!0x0;})});class ViewPlugin{constructor(_0x4c91fa,_0x138509,_0x3b951a,_0x3801bb,_0x289c82){this['id']=_0x4c91fa,this['create']=_0x138509,this['domEventHandlers']=_0x3b951a,this['domEventObservers']=_0x3801bb,this['baseExtensions']=_0x289c82(this),this['extension']=this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':void 0x0}));}['of'](_0x4f8bdc){return this['baseExtensions']['concat'](viewPlugin['of']({'plugin':this,'arg':_0x4f8bdc}));}static['define'](_0x3825f5,_0x22b28e){const {eventHandlers:_0x163d21,eventObservers:_0x1133b8,provide:_0x4cfe1e,decorations:_0x5993d3}=_0x22b28e||{};return new ViewPlugin(nextPluginID++,_0x3825f5,_0x163d21,_0x1133b8,_0x5eba2f=>{let _0x2d9862=[];return _0x5993d3&&_0x2d9862['push'](decorations['of'](_0x218113=>{let _0x15c7a9=_0x218113['plugin'](_0x5eba2f);return _0x15c7a9?_0x5993d3(_0x15c7a9):Decoration['none'];})),_0x4cfe1e&&_0x2d9862['push'](_0x4cfe1e(_0x5eba2f)),_0x2d9862;});}static['fromClass'](_0x4fc043,_0x4f557b){return ViewPlugin['define']((_0x2cbcd1,_0x33afb2)=>new _0x4fc043(_0x2cbcd1,_0x33afb2),_0x4f557b);}}class PluginInstance{constructor(_0x52e7af){this['spec']=_0x52e7af,this['mustUpdate']=null,this['value']=null;}get['plugin'](){return this['spec']&&this['spec']['plugin'];}['update'](_0x160290){if(this['value']){if(this['mustUpdate']){let _0x125748=this['mustUpdate'];if(this['mustUpdate']=null,this['value']['update'])try{this['value']['update'](_0x125748);}catch(_0x5596f7){if(logException(_0x125748['state'],_0x5596f7,'CodeMirror\x20plugin\x20crashed'),this['value']['destroy'])try{this['value']['destroy']();}catch(_0x1c4e9a){}this['deactivate']();}}}else{if(this['spec'])try{this['value']=this['spec']['plugin']['create'](_0x160290,this['spec']['arg']);}catch(_0x25b7f7){logException(_0x160290['state'],_0x25b7f7,'CodeMirror\x20plugin\x20crashed'),this['deactivate']();}}return this;}['destroy'](_0x1c6f75){var _0x548717;if(null===(_0x548717=this['value'])||void 0x0===_0x548717?void 0x0:_0x548717['destroy'])try{this['value']['destroy']();}catch(_0xe32372){logException(_0x1c6f75['state'],_0xe32372,'CodeMirror\x20plugin\x20crashed');}}['deactivate'](){this['spec']=this['value']=null;}}const editorAttributes=Facet['define'](),contentAttributes=Facet['define'](),decorations=Facet['define'](),outerDecorations=Facet['define'](),atomicRanges=Facet['define'](),bidiIsolatedRanges=Facet['define']();function getIsolatedRanges(_0x5932d2,_0x5c7b81){let _0x560c4c=_0x5932d2['state']['facet'](bidiIsolatedRanges);if(!_0x560c4c['length'])return _0x560c4c;let _0x3cbe55=_0x560c4c['map'](_0x42a0d1=>_0x42a0d1 instanceof Function?_0x42a0d1(_0x5932d2):_0x42a0d1),_0x536959=[];return RangeSet['spans'](_0x3cbe55,_0x5c7b81['from'],_0x5c7b81['to'],{'point'(){},'span'(_0x5a7928,_0x44d8fd,_0x2a3d17,_0x41817d){let _0x258f25=_0x5a7928-_0x5c7b81['from'],_0x3ca75b=_0x44d8fd-_0x5c7b81['from'],_0x406436=_0x536959;for(let _0x19591f=_0x2a3d17['length']-0x1;_0x19591f>=0x0;_0x19591f--,_0x41817d--){let _0xd7fa1e,_0x387780=_0x2a3d17[_0x19591f]['spec']['bidiIsolate'];if(null==_0x387780&&(_0x387780=autoDirection(_0x5c7b81['text'],_0x258f25,_0x3ca75b)),_0x41817d>0x0&&_0x406436['length']&&(_0xd7fa1e=_0x406436[_0x406436['length']-0x1])['to']==_0x258f25&&_0xd7fa1e['direction']==_0x387780)_0xd7fa1e['to']=_0x3ca75b,_0x406436=_0xd7fa1e['inner'];else{let _0x3daadb={'from':_0x258f25,'to':_0x3ca75b,'direction':_0x387780,'inner':[]};_0x406436['push'](_0x3daadb),_0x406436=_0x3daadb['inner'];}}}}),_0x536959;}const scrollMargins=Facet['define']();function getScrollMargins(_0xb8fdbf){let _0x28a7ec=0x0,_0x22b7bb=0x0,_0x2b9588=0x0,_0x1af9c4=0x0;for(let _0x2e9929 of _0xb8fdbf['state']['facet'](scrollMargins)){let _0x5d62a5=_0x2e9929(_0xb8fdbf);_0x5d62a5&&(null!=_0x5d62a5['left']&&(_0x28a7ec=Math['max'](_0x28a7ec,_0x5d62a5['left'])),null!=_0x5d62a5['right']&&(_0x22b7bb=Math['max'](_0x22b7bb,_0x5d62a5['right'])),null!=_0x5d62a5['top']&&(_0x2b9588=Math['max'](_0x2b9588,_0x5d62a5['top'])),null!=_0x5d62a5['bottom']&&(_0x1af9c4=Math['max'](_0x1af9c4,_0x5d62a5['bottom'])));}return{'left':_0x28a7ec,'right':_0x22b7bb,'top':_0x2b9588,'bottom':_0x1af9c4};}const styleModule=Facet['define']();class ChangedRange{constructor(_0x55fc6a,_0x33ae68,_0x369439,_0x309e50){this['fromA']=_0x55fc6a,this['toA']=_0x33ae68,this['fromB']=_0x369439,this['toB']=_0x309e50;}['join'](_0x20aa34){return new ChangedRange(Math['min'](this['fromA'],_0x20aa34['fromA']),Math['max'](this['toA'],_0x20aa34['toA']),Math['min'](this['fromB'],_0x20aa34['fromB']),Math['max'](this['toB'],_0x20aa34['toB']));}['addToSet'](_0x39583c){let _0x3ee78e=_0x39583c['length'],_0x3d11ff=this;for(;_0x3ee78e>0x0;_0x3ee78e--){let _0x372c07=_0x39583c[_0x3ee78e-0x1];if(!(_0x372c07['fromA']>_0x3d11ff['toA'])){if(_0x372c07['toA']<_0x3d11ff['fromA'])break;_0x3d11ff=_0x3d11ff['join'](_0x372c07),_0x39583c['splice'](_0x3ee78e-0x1,0x1);}}return _0x39583c['splice'](_0x3ee78e,0x0,_0x3d11ff),_0x39583c;}static['extendWithRanges'](_0x3be9dc,_0x139a0d){if(0x0==_0x139a0d['length'])return _0x3be9dc;let _0x45d842=[];for(let _0x5c47e0=0x0,_0x12510b=0x0,_0x1fb144=0x0,_0x48b1f7=0x0;;_0x5c47e0++){let _0x5288f2=_0x5c47e0==_0x3be9dc['length']?null:_0x3be9dc[_0x5c47e0],_0x24df02=_0x1fb144-_0x48b1f7,_0x4d2b67=_0x5288f2?_0x5288f2['fromB']:0x3b9aca00;for(;_0x12510b<_0x139a0d['length']&&_0x139a0d[_0x12510b]<_0x4d2b67;){let _0x11108e=_0x139a0d[_0x12510b],_0x33772d=_0x139a0d[_0x12510b+0x1],_0x4c0c9a=Math['max'](_0x48b1f7,_0x11108e),_0x5647ff=Math['min'](_0x4d2b67,_0x33772d);if(_0x4c0c9a<=_0x5647ff&&new ChangedRange(_0x4c0c9a+_0x24df02,_0x5647ff+_0x24df02,_0x4c0c9a,_0x5647ff)['addToSet'](_0x45d842),_0x33772d>_0x4d2b67)break;_0x12510b+=0x2;}if(!_0x5288f2)return _0x45d842;new ChangedRange(_0x5288f2['fromA'],_0x5288f2['toA'],_0x5288f2['fromB'],_0x5288f2['toB'])['addToSet'](_0x45d842),_0x1fb144=_0x5288f2['toA'],_0x48b1f7=_0x5288f2['toB'];}}}class ViewUpdate{constructor(_0x3f36af,_0x5b2845,_0x587939){this['view']=_0x3f36af,this['state']=_0x5b2845,this['transactions']=_0x587939,this['flags']=0x0,this['startState']=_0x3f36af['state'],this['changes']=ChangeSet['empty'](this['startState']['doc']['length']);for(let _0x314bab of _0x587939)this['changes']=this['changes']['compose'](_0x314bab['changes']);let _0x3ebe49=[];this['changes']['iterChangedRanges']((_0x15714e,_0x37535a,_0x6524b5,_0x570344)=>_0x3ebe49['push'](new ChangedRange(_0x15714e,_0x37535a,_0x6524b5,_0x570344))),this['changedRanges']=_0x3ebe49;}static['create'](_0x3d587c,_0x1b6523,_0x592363){return new ViewUpdate(_0x3d587c,_0x1b6523,_0x592363);}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'](_0x3079f0=>_0x3079f0['selection']);}get['empty'](){return 0x0==this['flags']&&0x0==this['transactions']['length'];}}class DocView extends ContentView{get['length'](){return this['view']['state']['doc']['length'];}constructor(_0x828afc){super(),this['view']=_0x828afc,this['decorations']=[],this['dynamicDecorationMap']=[!0x1],this['domChanged']=null,this['hasComposition']=null,this['markedForComposition']=new Set(),this['editContextFormatting']=Decoration['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['setDOM'](_0x828afc['contentDOM']),this['children']=[new LineView()],this['children'][0x0]['setParent'](this),this['updateDeco'](),this['updateInner']([new ChangedRange(0x0,0x0,0x0,_0x828afc['state']['doc']['length'])],0x0,null);}['update'](_0x31c645){var _0x2655b5;let _0x344f5b=_0x31c645['changedRanges'];this['minWidth']>0x0&&_0x344f5b['length']&&(_0x344f5b['every'](({fromA:_0x42b3e0,toA:_0x4d895d})=>_0x4d895d<this['minWidthFrom']||_0x42b3e0>this['minWidthTo'])?(this['minWidthFrom']=_0x31c645['changes']['mapPos'](this['minWidthFrom'],0x1),this['minWidthTo']=_0x31c645['changes']['mapPos'](this['minWidthTo'],0x1)):this['minWidth']=this['minWidthFrom']=this['minWidthTo']=0x0),this['updateEditContextFormatting'](_0x31c645);let _0x401854=-0x1;this['view']['inputState']['composing']>=0x0&&!this['view']['observer']['editContext']&&((null===(_0x2655b5=this['domChanged'])||void 0x0===_0x2655b5?void 0x0:_0x2655b5['newSel'])?_0x401854=this['domChanged']['newSel']['head']:touchesComposition(_0x31c645['changes'],this['hasComposition'])||_0x31c645['selectionSet']||(_0x401854=_0x31c645['state']['selection']['main']['head']));let _0x41e00a=_0x401854>-0x1?findCompositionRange(this['view'],_0x31c645['changes'],_0x401854):null;if(this['domChanged']=null,this['hasComposition']){this['markedForComposition']['clear']();let {from:_0x5bfd4e,to:_0x344e19}=this['hasComposition'];_0x344f5b=new ChangedRange(_0x5bfd4e,_0x344e19,_0x31c645['changes']['mapPos'](_0x5bfd4e,-0x1),_0x31c645['changes']['mapPos'](_0x344e19,0x1))['addToSet'](_0x344f5b['slice']());}this['hasComposition']=_0x41e00a?{'from':_0x41e00a['range']['fromB'],'to':_0x41e00a['range']['toB']}:null,(browser['ie']||browser['chrome'])&&!_0x41e00a&&_0x31c645&&_0x31c645['state']['doc']['lines']!=_0x31c645['startState']['doc']['lines']&&(this['forceSelection']=!0x0);let _0x90646a=findChangedDeco(this['decorations'],this['updateDeco'](),_0x31c645['changes']);return _0x344f5b=ChangedRange['extendWithRanges'](_0x344f5b,_0x90646a),!!(0x7&this['flags']||0x0!=_0x344f5b['length'])&&(this['updateInner'](_0x344f5b,_0x31c645['startState']['doc']['length'],_0x41e00a),_0x31c645['transactions']['length']&&(this['lastUpdate']=Date['now']()),!0x0);}['updateInner'](_0x30609f,_0x1380b5,_0x485a6d){this['view']['viewState']['mustMeasureContent']=!0x0,this['updateChildren'](_0x30609f,_0x1380b5,_0x485a6d);let {observer:_0x3e8bf3}=this['view'];_0x3e8bf3['ignore'](()=>{this['dom']['style']['height']=this['view']['viewState']['contentHeight']/this['view']['scaleY']+'px',this['dom']['style']['flexBasis']=this['minWidth']?this['minWidth']+'px':'';let _0x207be0=browser['chrome']||browser['ios']?{'node':_0x3e8bf3['selectionRange']['focusNode'],'written':!0x1}:void 0x0;this['sync'](this['view'],_0x207be0),this['flags']&=-0x8,_0x207be0&&(_0x207be0['written']||_0x3e8bf3['selectionRange']['focusNode']!=_0x207be0['node'])&&(this['forceSelection']=!0x0),this['dom']['style']['height']='';}),this['markedForComposition']['forEach'](_0x585671=>_0x585671['flags']&=-0x9);let _0x4bd562=[];if(this['view']['viewport']['from']||this['view']['viewport']['to']<this['view']['state']['doc']['length']){for(let _0x5bf532 of this['children'])_0x5bf532 instanceof BlockWidgetView&&_0x5bf532['widget']instanceof BlockGapWidget&&_0x4bd562['push'](_0x5bf532['dom']);}_0x3e8bf3['updateGaps'](_0x4bd562);}['updateChildren'](_0x3e661a,_0x593e4c,_0x42d99e){let _0x5dc03e=_0x42d99e?_0x42d99e['range']['addToSet'](_0x3e661a['slice']()):_0x3e661a,_0x178459=this['childCursor'](_0x593e4c);for(let _0x315c1e=_0x5dc03e['length']-0x1;;_0x315c1e--){let _0x16460a=_0x315c1e>=0x0?_0x5dc03e[_0x315c1e]:null;if(!_0x16460a)break;let _0x5603db,_0x3d775d,_0x5af65d,_0x36fb16,{fromA:_0x42c723,toA:_0x4ec2b8,fromB:_0x4672dd,toB:_0x22b0c3}=_0x16460a;if(_0x42d99e&&_0x42d99e['range']['fromB']<_0x22b0c3&&_0x42d99e['range']['toB']>_0x4672dd){let _0x12608b=ContentBuilder['build'](this['view']['state']['doc'],_0x4672dd,_0x42d99e['range']['fromB'],this['decorations'],this['dynamicDecorationMap']),_0x38876d=ContentBuilder['build'](this['view']['state']['doc'],_0x42d99e['range']['toB'],_0x22b0c3,this['decorations'],this['dynamicDecorationMap']);_0x3d775d=_0x12608b['breakAtStart'],_0x5af65d=_0x12608b['openStart'],_0x36fb16=_0x38876d['openEnd'];let _0x4c8172=this['compositionView'](_0x42d99e);_0x38876d['breakAtStart']?_0x4c8172['breakAfter']=0x1:_0x38876d['content']['length']&&_0x4c8172['merge'](_0x4c8172['length'],_0x4c8172['length'],_0x38876d['content'][0x0],!0x1,_0x38876d['openStart'],0x0)&&(_0x4c8172['breakAfter']=_0x38876d['content'][0x0]['breakAfter'],_0x38876d['content']['shift']()),_0x12608b['content']['length']&&_0x4c8172['merge'](0x0,0x0,_0x12608b['content'][_0x12608b['content']['length']-0x1],!0x0,0x0,_0x12608b['openEnd'])&&_0x12608b['content']['pop'](),_0x5603db=_0x12608b['content']['concat'](_0x4c8172)['concat'](_0x38876d['content']);}else({content:_0x5603db,breakAtStart:_0x3d775d,openStart:_0x5af65d,openEnd:_0x36fb16}=ContentBuilder['build'](this['view']['state']['doc'],_0x4672dd,_0x22b0c3,this['decorations'],this['dynamicDecorationMap']));let {i:_0x5e4b51,off:_0x1fdd7b}=_0x178459['findPos'](_0x4ec2b8,0x1),{i:_0x258250,off:_0x59ff06}=_0x178459['findPos'](_0x42c723,-0x1);replaceRange(this,_0x258250,_0x59ff06,_0x5e4b51,_0x1fdd7b,_0x5603db,_0x3d775d,_0x5af65d,_0x36fb16);}_0x42d99e&&this['fixCompositionDOM'](_0x42d99e);}['updateEditContextFormatting'](_0x929d4e){this['editContextFormatting']=this['editContextFormatting']['map'](_0x929d4e['changes']);for(let _0x4c99a0 of _0x929d4e['transactions'])for(let _0xbeb042 of _0x4c99a0['effects'])_0xbeb042['is'](setEditContextFormatting)&&(this['editContextFormatting']=_0xbeb042['value']);}['compositionView'](_0xb24aaf){let _0x14c42a=new TextView(_0xb24aaf['text']['nodeValue']);_0x14c42a['flags']|=0x8;for(let {deco:_0xca4a17}of _0xb24aaf['marks'])_0x14c42a=new MarkView(_0xca4a17,[_0x14c42a],_0x14c42a['length']);let _0x16c157=new LineView();return _0x16c157['append'](_0x14c42a,0x0),_0x16c157;}['fixCompositionDOM'](_0x536164){let _0x11836b=(_0x82b29e,_0x4e3c7e)=>{_0x4e3c7e['flags']|=0x8|(_0x4e3c7e['children']['some'](_0x46f5d9=>0x7&_0x46f5d9['flags'])?0x1:0x0),this['markedForComposition']['add'](_0x4e3c7e);let _0x317ad9=ContentView['get'](_0x82b29e);_0x317ad9&&_0x317ad9!=_0x4e3c7e&&(_0x317ad9['dom']=null),_0x4e3c7e['setDOM'](_0x82b29e);},_0x3af949=this['childPos'](_0x536164['range']['fromB'],0x1),_0x2afce8=this['children'][_0x3af949['i']];_0x11836b(_0x536164['line'],_0x2afce8);for(let _0x4a5b0c=_0x536164['marks']['length']-0x1;_0x4a5b0c>=-0x1;_0x4a5b0c--)_0x3af949=_0x2afce8['childPos'](_0x3af949['off'],0x1),_0x2afce8=_0x2afce8['children'][_0x3af949['i']],_0x11836b(_0x4a5b0c>=0x0?_0x536164['marks'][_0x4a5b0c]['node']:_0x536164['text'],_0x2afce8);}['updateSelection'](_0x20023b=!0x1,_0x2174db=!0x1){!_0x20023b&&this['view']['observer']['selectionRange']['focusNode']||this['view']['observer']['readSelectionRange']();let _0x5f50ef=this['view']['root']['activeElement'],_0x383bfc=_0x5f50ef==this['dom'],_0x17bc82=!_0x383bfc&&!(this['view']['state']['facet'](editable)||this['dom']['tabIndex']>-0x1)&&hasSelection(this['dom'],this['view']['observer']['selectionRange'])&&!(_0x5f50ef&&this['dom']['contains'](_0x5f50ef));if(!(_0x383bfc||_0x2174db||_0x17bc82))return;let _0x3b8cad=this['forceSelection'];this['forceSelection']=!0x1;let _0xa0104=this['view']['state']['selection']['main'],_0x451ec6=this['moveToLine'](this['domAtPos'](_0xa0104['anchor'])),_0x244f59=_0xa0104['empty']?_0x451ec6:this['moveToLine'](this['domAtPos'](_0xa0104['head']));if(browser['gecko']&&_0xa0104['empty']&&!this['hasComposition']&&betweenUneditable(_0x451ec6)){let _0x1b08c2=document['createTextNode']('');this['view']['observer']['ignore'](()=>_0x451ec6['node']['insertBefore'](_0x1b08c2,_0x451ec6['node']['childNodes'][_0x451ec6['offset']]||null)),_0x451ec6=_0x244f59=new DOMPos(_0x1b08c2,0x0),_0x3b8cad=!0x0;}let _0x416692=this['view']['observer']['selectionRange'];!_0x3b8cad&&_0x416692['focusNode']&&(isEquivalentPosition(_0x451ec6['node'],_0x451ec6['offset'],_0x416692['anchorNode'],_0x416692['anchorOffset'])&&isEquivalentPosition(_0x244f59['node'],_0x244f59['offset'],_0x416692['focusNode'],_0x416692['focusOffset'])||this['suppressWidgetCursorChange'](_0x416692,_0xa0104))||(this['view']['observer']['ignore'](()=>{browser['android']&&browser['chrome']&&this['dom']['contains'](_0x416692['focusNode'])&&inUneditable(_0x416692['focusNode'],this['dom'])&&(this['dom']['blur'](),this['dom']['focus']({'preventScroll':!0x0}));let _0x3d673c=getSelection(this['view']['root']);if(_0x3d673c){if(_0xa0104['empty']){if(browser['gecko']){let _0x47ae54=nextToUneditable(_0x451ec6['node'],_0x451ec6['offset']);if(_0x47ae54&&0x3!=_0x47ae54){let _0x50ea1a=(0x1==_0x47ae54?textNodeBefore:textNodeAfter)(_0x451ec6['node'],_0x451ec6['offset']);_0x50ea1a&&(_0x451ec6=new DOMPos(_0x50ea1a['node'],_0x50ea1a['offset']));}}_0x3d673c['collapse'](_0x451ec6['node'],_0x451ec6['offset']),null!=_0xa0104['bidiLevel']&&void 0x0!==_0x3d673c['caretBidiLevel']&&(_0x3d673c['caretBidiLevel']=_0xa0104['bidiLevel']);}else{if(_0x3d673c['extend']){_0x3d673c['collapse'](_0x451ec6['node'],_0x451ec6['offset']);try{_0x3d673c['extend'](_0x244f59['node'],_0x244f59['offset']);}catch(_0x22bf6d){}}else{let _0x32c5d0=document['createRange']();_0xa0104['anchor']>_0xa0104['head']&&([_0x451ec6,_0x244f59]=[_0x244f59,_0x451ec6]),_0x32c5d0['setEnd'](_0x244f59['node'],_0x244f59['offset']),_0x32c5d0['setStart'](_0x451ec6['node'],_0x451ec6['offset']),_0x3d673c['removeAllRanges'](),_0x3d673c['addRange'](_0x32c5d0);}}}else;_0x17bc82&&this['view']['root']['activeElement']==this['dom']&&(this['dom']['blur'](),_0x5f50ef&&_0x5f50ef['focus']());}),this['view']['observer']['setSelectionRange'](_0x451ec6,_0x244f59)),this['impreciseAnchor']=_0x451ec6['precise']?null:new DOMPos(_0x416692['anchorNode'],_0x416692['anchorOffset']),this['impreciseHead']=_0x244f59['precise']?null:new DOMPos(_0x416692['focusNode'],_0x416692['focusOffset']);}['suppressWidgetCursorChange'](_0xfb260,_0xc8c0b){return this['hasComposition']&&_0xc8c0b['empty']&&isEquivalentPosition(_0xfb260['focusNode'],_0xfb260['focusOffset'],_0xfb260['anchorNode'],_0xfb260['anchorOffset'])&&this['posFromDOM'](_0xfb260['focusNode'],_0xfb260['focusOffset'])==_0xc8c0b['head'];}['enforceCursorAssoc'](){if(this['hasComposition'])return;let {view:_0x516b01}=this,_0x39c601=_0x516b01['state']['selection']['main'],_0x357f50=getSelection(_0x516b01['root']),{anchorNode:_0x426df7,anchorOffset:_0x3e1957}=_0x516b01['observer']['selectionRange'];if(!(_0x357f50&&_0x39c601['empty']&&_0x39c601['assoc']&&_0x357f50['modify']))return;let _0x5616af=LineView['find'](this,_0x39c601['head']);if(!_0x5616af)return;let _0x172516=_0x5616af['posAtStart'];if(_0x39c601['head']==_0x172516||_0x39c601['head']==_0x172516+_0x5616af['length'])return;let _0x322042=this['coordsAt'](_0x39c601['head'],-0x1),_0xec84e4=this['coordsAt'](_0x39c601['head'],0x1);if(!_0x322042||!_0xec84e4||_0x322042['bottom']>_0xec84e4['top'])return;let _0x53fbaa=this['domAtPos'](_0x39c601['head']+_0x39c601['assoc']);_0x357f50['collapse'](_0x53fbaa['node'],_0x53fbaa['offset']),_0x357f50['modify']('move',_0x39c601['assoc']<0x0?'forward':'backward','lineboundary'),_0x516b01['observer']['readSelectionRange']();let _0x9c3b7=_0x516b01['observer']['selectionRange'];_0x516b01['docView']['posFromDOM'](_0x9c3b7['anchorNode'],_0x9c3b7['anchorOffset'])!=_0x39c601['from']&&_0x357f50['collapse'](_0x426df7,_0x3e1957);}['moveToLine'](_0x22ac9a){let _0x11f87b,_0x22c2aa=this['dom'];if(_0x22ac9a['node']!=_0x22c2aa)return _0x22ac9a;for(let _0x4d9a9f=_0x22ac9a['offset'];!_0x11f87b&&_0x4d9a9f<_0x22c2aa['childNodes']['length'];_0x4d9a9f++){let _0x79ab3e=ContentView['get'](_0x22c2aa['childNodes'][_0x4d9a9f]);_0x79ab3e instanceof LineView&&(_0x11f87b=_0x79ab3e['domAtPos'](0x0));}for(let _0x512574=_0x22ac9a['offset']-0x1;!_0x11f87b&&_0x512574>=0x0;_0x512574--){let _0x562197=ContentView['get'](_0x22c2aa['childNodes'][_0x512574]);_0x562197 instanceof LineView&&(_0x11f87b=_0x562197['domAtPos'](_0x562197['length']));}return _0x11f87b?new DOMPos(_0x11f87b['node'],_0x11f87b['offset'],!0x0):_0x22ac9a;}['nearest'](_0x14c2d6){for(let _0x13271d=_0x14c2d6;_0x13271d;){let _0x166823=ContentView['get'](_0x13271d);if(_0x166823&&_0x166823['rootView']==this)return _0x166823;_0x13271d=_0x13271d['parentNode'];}return null;}['posFromDOM'](_0xf7ecdc,_0x17f32c){let _0x46f90d=this['nearest'](_0xf7ecdc);if(!_0x46f90d)throw new RangeError('Trying\x20to\x20find\x20position\x20for\x20a\x20DOM\x20position\x20outside\x20of\x20the\x20document');return _0x46f90d['localPosFromDOM'](_0xf7ecdc,_0x17f32c)+_0x46f90d['posAtStart'];}['domAtPos'](_0x475623){let {i:_0x2e4160,off:_0x51f3c1}=this['childCursor']()['findPos'](_0x475623,-0x1);for(;_0x2e4160<this['children']['length']-0x1;){let _0x96f029=this['children'][_0x2e4160];if(_0x51f3c1<_0x96f029['length']||_0x96f029 instanceof LineView)break;_0x2e4160++,_0x51f3c1=0x0;}return this['children'][_0x2e4160]['domAtPos'](_0x51f3c1);}['coordsAt'](_0x5970e2,_0x5981a2){let _0xaa73cc=null,_0x530133=0x0;for(let _0x36c676=this['length'],_0x3a835d=this['children']['length']-0x1;_0x3a835d>=0x0;_0x3a835d--){let _0x3eec5d=this['children'][_0x3a835d],_0x2241fc=_0x36c676-_0x3eec5d['breakAfter'],_0x46b3d0=_0x2241fc-_0x3eec5d['length'];if(_0x2241fc<_0x5970e2)break;if(_0x46b3d0<=_0x5970e2&&(_0x46b3d0<_0x5970e2||_0x3eec5d['covers'](-0x1))&&(_0x2241fc>_0x5970e2||_0x3eec5d['covers'](0x1))&&(!_0xaa73cc||_0x3eec5d instanceof LineView&&!(_0xaa73cc instanceof LineView&&_0x5981a2>=0x0)))_0xaa73cc=_0x3eec5d,_0x530133=_0x46b3d0;else{if(_0xaa73cc&&_0x46b3d0==_0x5970e2&&_0x2241fc==_0x5970e2&&_0x3eec5d instanceof BlockWidgetView&&Math['abs'](_0x5981a2)<0x2){if(_0x3eec5d['deco']['startSide']<0x0)break;_0x3a835d&&(_0xaa73cc=null);}}_0x36c676=_0x46b3d0;}return _0xaa73cc?_0xaa73cc['coordsAt'](_0x5970e2-_0x530133,_0x5981a2):null;}['coordsForChar'](_0x25fdad){let {i:_0x27db1a,off:_0x22f83e}=this['childPos'](_0x25fdad,0x1),_0x3ae98b=this['children'][_0x27db1a];if(!(_0x3ae98b instanceof LineView))return null;for(;_0x3ae98b['children']['length'];){let {i:_0x580672,off:_0x4495be}=_0x3ae98b['childPos'](_0x22f83e,0x1);for(;;_0x580672++){if(_0x580672==_0x3ae98b['children']['length'])return null;if((_0x3ae98b=_0x3ae98b['children'][_0x580672])['length'])break;}_0x22f83e=_0x4495be;}if(!(_0x3ae98b instanceof TextView))return null;let _0x4ca1d6=findClusterBreak(_0x3ae98b['text'],_0x22f83e);if(_0x4ca1d6==_0x22f83e)return null;let _0x5a3622=textRange(_0x3ae98b['dom'],_0x22f83e,_0x4ca1d6)['getClientRects']();for(let _0x4ca9fa=0x0;_0x4ca9fa<_0x5a3622['length'];_0x4ca9fa++){let _0x32c248=_0x5a3622[_0x4ca9fa];if(_0x4ca9fa==_0x5a3622['length']-0x1||_0x32c248['top']<_0x32c248['bottom']&&_0x32c248['left']<_0x32c248['right'])return _0x32c248;}return null;}['measureVisibleLineHeights'](_0x1c674f){let _0x4e178e=[],{from:_0x5436b5,to:_0x2f6de1}=_0x1c674f,_0x4d2963=this['view']['contentDOM']['clientWidth'],_0x3dbc8a=_0x4d2963>Math['max'](this['view']['scrollDOM']['clientWidth'],this['minWidth'])+0x1,_0x39b4f3=-0x1,_0x3d17da=this['view']['textDirection']==Direction['LTR'];for(let _0xfc086a=0x0,_0x3483db=0x0;_0x3483db<this['children']['length'];_0x3483db++){let _0x5b1569=this['children'][_0x3483db],_0x9ac1ce=_0xfc086a+_0x5b1569['length'];if(_0x9ac1ce>_0x2f6de1)break;if(_0xfc086a>=_0x5436b5){let _0x1bfbc0=_0x5b1569['dom']['getBoundingClientRect']();if(_0x4e178e['push'](_0x1bfbc0['height']),_0x3dbc8a){let _0x1a655f=_0x5b1569['dom']['lastChild'],_0x37fa95=_0x1a655f?clientRectsFor(_0x1a655f):[];if(_0x37fa95['length']){let _0x2ad996=_0x37fa95[_0x37fa95['length']-0x1],_0x1e4bb4=_0x3d17da?_0x2ad996['right']-_0x1bfbc0['left']:_0x1bfbc0['right']-_0x2ad996['left'];_0x1e4bb4>_0x39b4f3&&(_0x39b4f3=_0x1e4bb4,this['minWidth']=_0x4d2963,this['minWidthFrom']=_0xfc086a,this['minWidthTo']=_0x9ac1ce);}}}_0xfc086a=_0x9ac1ce+_0x5b1569['breakAfter'];}return _0x4e178e;}['textDirectionAt'](_0x22537c){let {i:_0x1fd689}=this['childPos'](_0x22537c,0x1);return'rtl'==getComputedStyle(this['children'][_0x1fd689]['dom'])['direction']?Direction['RTL']:Direction['LTR'];}['measureTextSize'](){for(let _0x22397a of this['children'])if(_0x22397a instanceof LineView){let _0xde657b=_0x22397a['measureTextSize']();if(_0xde657b)return _0xde657b;}let _0x2a910a,_0x24c77a,_0x3de131,_0x2ca5bc=document['createElement']('div');return _0x2ca5bc['className']='cm-line',_0x2ca5bc['style']['width']='99999px',_0x2ca5bc['style']['position']='absolute',_0x2ca5bc['textContent']='abc\x20def\x20ghi\x20jkl\x20mno\x20pqr\x20stu',this['view']['observer']['ignore'](()=>{this['dom']['appendChild'](_0x2ca5bc);let _0x27ba34=clientRectsFor(_0x2ca5bc['firstChild'])[0x0];_0x2a910a=_0x2ca5bc['getBoundingClientRect']()['height'],_0x24c77a=_0x27ba34?_0x27ba34['width']/0x1b:0x7,_0x3de131=_0x27ba34?_0x27ba34['height']:_0x2a910a,_0x2ca5bc['remove']();}),{'lineHeight':_0x2a910a,'charWidth':_0x24c77a,'textHeight':_0x3de131};}['childCursor'](_0x46f65b=this['length']){let _0x2d3736=this['children']['length'];return _0x2d3736&&(_0x46f65b-=this['children'][--_0x2d3736]['length']),new ChildCursor(this['children'],_0x46f65b,_0x2d3736);}['computeBlockGapDeco'](){let _0x4a989a=[],_0x2139ec=this['view']['viewState'];for(let _0x4c6e46=0x0,_0x1dd326=0x0;;_0x1dd326++){let _0x2619a9=_0x1dd326==_0x2139ec['viewports']['length']?null:_0x2139ec['viewports'][_0x1dd326],_0x65505f=_0x2619a9?_0x2619a9['from']-0x1:this['length'];if(_0x65505f>_0x4c6e46){let _0x2c02e1=(_0x2139ec['lineBlockAt'](_0x65505f)['bottom']-_0x2139ec['lineBlockAt'](_0x4c6e46)['top'])/this['view']['scaleY'];_0x4a989a['push'](Decoration['replace']({'widget':new BlockGapWidget(_0x2c02e1),'block':!0x0,'inclusive':!0x0,'isBlockGap':!0x0})['range'](_0x4c6e46,_0x65505f));}if(!_0x2619a9)break;_0x4c6e46=_0x2619a9['to']+0x1;}return Decoration['set'](_0x4a989a);}['updateDeco'](){let _0x56e5b9=0x1,_0x4b0165=this['view']['state']['facet'](decorations)['map'](_0x5b9d33=>(this['dynamicDecorationMap'][_0x56e5b9++]='function'==typeof _0x5b9d33)?_0x5b9d33(this['view']):_0x5b9d33),_0xf2be51=!0x1,_0x20b3f9=this['view']['state']['facet'](outerDecorations)['map']((_0x41fb51,_0x219fcb)=>{let _0x2c7e12='function'==typeof _0x41fb51;return _0x2c7e12&&(_0xf2be51=!0x0),_0x2c7e12?_0x41fb51(this['view']):_0x41fb51;});for(_0x20b3f9['length']&&(this['dynamicDecorationMap'][_0x56e5b9++]=_0xf2be51,_0x4b0165['push'](RangeSet['join'](_0x20b3f9))),this['decorations']=[this['editContextFormatting'],..._0x4b0165,this['computeBlockGapDeco'](),this['view']['viewState']['lineGapDeco']];_0x56e5b9<this['decorations']['length'];)this['dynamicDecorationMap'][_0x56e5b9++]=!0x1;return this['decorations'];}['scrollIntoView'](_0x3500db){if(_0x3500db['isSnapshot']){let _0x4d275a=this['view']['viewState']['lineBlockAt'](_0x3500db['range']['head']);return this['view']['scrollDOM']['scrollTop']=_0x4d275a['top']-_0x3500db['yMargin'],void(this['view']['scrollDOM']['scrollLeft']=_0x3500db['xMargin']);}for(let _0x2c9f0a of this['view']['state']['facet'](scrollHandler))try{if(_0x2c9f0a(this['view'],_0x3500db['range'],_0x3500db))return!0x0;}catch(_0x421ae0){logException(this['view']['state'],_0x421ae0,'scroll\x20handler');}let _0x5e0889,{range:_0x4fa45c}=_0x3500db,_0x4219e3=this['coordsAt'](_0x4fa45c['head'],_0x4fa45c['empty']?_0x4fa45c['assoc']:_0x4fa45c['head']>_0x4fa45c['anchor']?-0x1:0x1);if(!_0x4219e3)return;!_0x4fa45c['empty']&&(_0x5e0889=this['coordsAt'](_0x4fa45c['anchor'],_0x4fa45c['anchor']>_0x4fa45c['head']?-0x1:0x1))&&(_0x4219e3={'left':Math['min'](_0x4219e3['left'],_0x5e0889['left']),'top':Math['min'](_0x4219e3['top'],_0x5e0889['top']),'right':Math['max'](_0x4219e3['right'],_0x5e0889['right']),'bottom':Math['max'](_0x4219e3['bottom'],_0x5e0889['bottom'])});let _0x4d413d=getScrollMargins(this['view']),_0x42606f={'left':_0x4219e3['left']-_0x4d413d['left'],'top':_0x4219e3['top']-_0x4d413d['top'],'right':_0x4219e3['right']+_0x4d413d['right'],'bottom':_0x4219e3['bottom']+_0x4d413d['bottom']},{offsetWidth:_0xc5f35f,offsetHeight:_0x522d67}=this['view']['scrollDOM'];scrollRectIntoView(this['view']['scrollDOM'],_0x42606f,_0x4fa45c['head']<_0x4fa45c['anchor']?-0x1:0x1,_0x3500db['x'],_0x3500db['y'],Math['max'](Math['min'](_0x3500db['xMargin'],_0xc5f35f),-_0xc5f35f),Math['max'](Math['min'](_0x3500db['yMargin'],_0x522d67),-_0x522d67),this['view']['textDirection']==Direction['LTR']);}}function betweenUneditable(_0x34bc71){return 0x1==_0x34bc71['node']['nodeType']&&_0x34bc71['node']['firstChild']&&(0x0==_0x34bc71['offset']||'false'==_0x34bc71['node']['childNodes'][_0x34bc71['offset']-0x1]['contentEditable'])&&(_0x34bc71['offset']==_0x34bc71['node']['childNodes']['length']||'false'==_0x34bc71['node']['childNodes'][_0x34bc71['offset']]['contentEditable']);}function findCompositionNode(_0x325c91,_0x41e1a4){let _0x65e4ae=_0x325c91['observer']['selectionRange'];if(!_0x65e4ae['focusNode'])return null;let _0x5ee718=textNodeBefore(_0x65e4ae['focusNode'],_0x65e4ae['focusOffset']),_0x362420=textNodeAfter(_0x65e4ae['focusNode'],_0x65e4ae['focusOffset']),_0xf8e443=_0x5ee718||_0x362420;if(_0x362420&&_0x5ee718&&_0x362420['node']!=_0x5ee718['node']){let _0x1185b3=ContentView['get'](_0x362420['node']);if(!_0x1185b3||_0x1185b3 instanceof TextView&&_0x1185b3['text']!=_0x362420['node']['nodeValue'])_0xf8e443=_0x362420;else{if(_0x325c91['docView']['lastCompositionAfterCursor']){let _0x317fa6=ContentView['get'](_0x5ee718['node']);!_0x317fa6||_0x317fa6 instanceof TextView&&_0x317fa6['text']!=_0x5ee718['node']['nodeValue']||(_0xf8e443=_0x362420);}}}if(_0x325c91['docView']['lastCompositionAfterCursor']=_0xf8e443!=_0x5ee718,!_0xf8e443)return null;let _0x5e3795=_0x41e1a4-_0xf8e443['offset'];return{'from':_0x5e3795,'to':_0x5e3795+_0xf8e443['node']['nodeValue']['length'],'node':_0xf8e443['node']};}function findCompositionRange(_0x553a3d,_0xdec292,_0x291850){let _0x445c71=findCompositionNode(_0x553a3d,_0x291850);if(!_0x445c71)return null;let {node:_0x4c26c9,from:_0x1e79a1,to:_0x55e8dd}=_0x445c71,_0x24d424=_0x4c26c9['nodeValue'];if(/[\n\r]/['test'](_0x24d424))return null;if(_0x553a3d['state']['doc']['sliceString'](_0x445c71['from'],_0x445c71['to'])!=_0x24d424)return null;let _0x1cefad=_0xdec292['invertedDesc'],_0x47fe7d=new ChangedRange(_0x1cefad['mapPos'](_0x1e79a1),_0x1cefad['mapPos'](_0x55e8dd),_0x1e79a1,_0x55e8dd),_0x42d32b=[];for(let _0x2f25c9=_0x4c26c9['parentNode'];;_0x2f25c9=_0x2f25c9['parentNode']){let _0x1dc81f=ContentView['get'](_0x2f25c9);if(_0x1dc81f instanceof MarkView)_0x42d32b['push']({'node':_0x2f25c9,'deco':_0x1dc81f['mark']});else{if(_0x1dc81f instanceof LineView||'DIV'==_0x2f25c9['nodeName']&&_0x2f25c9['parentNode']==_0x553a3d['contentDOM'])return{'range':_0x47fe7d,'text':_0x4c26c9,'marks':_0x42d32b,'line':_0x2f25c9};if(_0x2f25c9==_0x553a3d['contentDOM'])return null;_0x42d32b['push']({'node':_0x2f25c9,'deco':new MarkDecoration({'inclusive':!0x0,'attributes':getAttrs$1(_0x2f25c9),'tagName':_0x2f25c9['tagName']['toLowerCase']()})});}}}function nextToUneditable(_0x39cd98,_0x7de4c4){return 0x1!=_0x39cd98['nodeType']?0x0:(_0x7de4c4&&'false'==_0x39cd98['childNodes'][_0x7de4c4-0x1]['contentEditable']?0x1:0x0)|(_0x7de4c4<_0x39cd98['childNodes']['length']&&'false'==_0x39cd98['childNodes'][_0x7de4c4]['contentEditable']?0x2:0x0);}let DecorationComparator$1=class{constructor(){this['changes']=[];}['compareRange'](_0x128449,_0x435cd4){addRange(_0x128449,_0x435cd4,this['changes']);}['comparePoint'](_0x427f50,_0x598a09){addRange(_0x427f50,_0x598a09,this['changes']);}['boundChange'](_0x2ae764){addRange(_0x2ae764,_0x2ae764,this['changes']);}};function findChangedDeco(_0x5698b8,_0x2169b9,_0x6e0fe9){let _0x2bd2a5=new DecorationComparator$1();return RangeSet['compare'](_0x5698b8,_0x2169b9,_0x6e0fe9,_0x2bd2a5),_0x2bd2a5['changes'];}function inUneditable(_0x37fc69,_0x2726a7){for(let _0x1456cd=_0x37fc69;_0x1456cd&&_0x1456cd!=_0x2726a7;_0x1456cd=_0x1456cd['assignedSlot']||_0x1456cd['parentNode'])if(0x1==_0x1456cd['nodeType']&&'false'==_0x1456cd['contentEditable'])return!0x0;return!0x1;}function touchesComposition(_0x1a56d3,_0x188812){let _0x52d4cf=!0x1;return _0x188812&&_0x1a56d3['iterChangedRanges']((_0x496fa9,_0x434e6f)=>{_0x496fa9<_0x188812['to']&&_0x434e6f>_0x188812['from']&&(_0x52d4cf=!0x0);}),_0x52d4cf;}function groupAt(_0x2ec7da,_0x54123e,_0xed8ae0=0x1){let _0x27d502=_0x2ec7da['charCategorizer'](_0x54123e),_0x23c5fd=_0x2ec7da['doc']['lineAt'](_0x54123e),_0x1ba305=_0x54123e-_0x23c5fd['from'];if(0x0==_0x23c5fd['length'])return EditorSelection['cursor'](_0x54123e);0x0==_0x1ba305?_0xed8ae0=0x1:_0x1ba305==_0x23c5fd['length']&&(_0xed8ae0=-0x1);let _0xebace=_0x1ba305,_0x1812d6=_0x1ba305;_0xed8ae0<0x0?_0xebace=findClusterBreak(_0x23c5fd['text'],_0x1ba305,!0x1):_0x1812d6=findClusterBreak(_0x23c5fd['text'],_0x1ba305);let _0x5ba04d=_0x27d502(_0x23c5fd['text']['slice'](_0xebace,_0x1812d6));for(;_0xebace>0x0;){let _0x18e1ad=findClusterBreak(_0x23c5fd['text'],_0xebace,!0x1);if(_0x27d502(_0x23c5fd['text']['slice'](_0x18e1ad,_0xebace))!=_0x5ba04d)break;_0xebace=_0x18e1ad;}for(;_0x1812d6<_0x23c5fd['length'];){let _0x3a35e3=findClusterBreak(_0x23c5fd['text'],_0x1812d6);if(_0x27d502(_0x23c5fd['text']['slice'](_0x1812d6,_0x3a35e3))!=_0x5ba04d)break;_0x1812d6=_0x3a35e3;}return EditorSelection['range'](_0xebace+_0x23c5fd['from'],_0x1812d6+_0x23c5fd['from']);}function getdx(_0x4aad6e,_0x3bbfbf){return _0x3bbfbf['left']>_0x4aad6e?_0x3bbfbf['left']-_0x4aad6e:Math['max'](0x0,_0x4aad6e-_0x3bbfbf['right']);}function getdy(_0xdfa23d,_0x2ab18f){return _0x2ab18f['top']>_0xdfa23d?_0x2ab18f['top']-_0xdfa23d:Math['max'](0x0,_0xdfa23d-_0x2ab18f['bottom']);}function yOverlap(_0x17fd70,_0xf49147){return _0x17fd70['top']<_0xf49147['bottom']-0x1&&_0x17fd70['bottom']>_0xf49147['top']+0x1;}function upTop(_0x2d94e7,_0x3cf330){return _0x3cf330<_0x2d94e7['top']?{'top':_0x3cf330,'left':_0x2d94e7['left'],'right':_0x2d94e7['right'],'bottom':_0x2d94e7['bottom']}:_0x2d94e7;}function upBot(_0x4bf4aa,_0x180685){return _0x180685>_0x4bf4aa['bottom']?{'top':_0x4bf4aa['top'],'left':_0x4bf4aa['left'],'right':_0x4bf4aa['right'],'bottom':_0x180685}:_0x4bf4aa;}function domPosAtCoords(_0x5acf26,_0x1b2d67,_0x5c5bd4){let _0xfcbdcf,_0x2ea024,_0x5935ef,_0x57f57f,_0x19532c,_0x2fcd54,_0x567bd6,_0x1ee706,_0x2f6e4=!0x1;for(let _0x57a83b=_0x5acf26['firstChild'];_0x57a83b;_0x57a83b=_0x57a83b['nextSibling']){let _0x41282f=clientRectsFor(_0x57a83b);for(let _0x3cc7bf=0x0;_0x3cc7bf<_0x41282f['length'];_0x3cc7bf++){let _0x25a6a8=_0x41282f[_0x3cc7bf];_0x2ea024&&yOverlap(_0x2ea024,_0x25a6a8)&&(_0x25a6a8=upTop(upBot(_0x25a6a8,_0x2ea024['bottom']),_0x2ea024['top']));let _0x526f92=getdx(_0x1b2d67,_0x25a6a8),_0x144f29=getdy(_0x5c5bd4,_0x25a6a8);if(0x0==_0x526f92&&0x0==_0x144f29)return 0x3==_0x57a83b['nodeType']?domPosInText(_0x57a83b,_0x1b2d67,_0x5c5bd4):domPosAtCoords(_0x57a83b,_0x1b2d67,_0x5c5bd4);(!_0xfcbdcf||_0x57f57f>_0x144f29||_0x57f57f==_0x144f29&&_0x5935ef>_0x526f92)&&(_0xfcbdcf=_0x57a83b,_0x2ea024=_0x25a6a8,_0x5935ef=_0x526f92,_0x57f57f=_0x144f29,_0x2f6e4=!_0x526f92||(_0x1b2d67<_0x25a6a8['left']?_0x3cc7bf>0x0:_0x3cc7bf<_0x41282f['length']-0x1)),0x0==_0x526f92?_0x5c5bd4>_0x25a6a8['bottom']&&(!_0x567bd6||_0x567bd6['bottom']<_0x25a6a8['bottom'])?(_0x19532c=_0x57a83b,_0x567bd6=_0x25a6a8):_0x5c5bd4<_0x25a6a8['top']&&(!_0x1ee706||_0x1ee706['top']>_0x25a6a8['top'])&&(_0x2fcd54=_0x57a83b,_0x1ee706=_0x25a6a8):_0x567bd6&&yOverlap(_0x567bd6,_0x25a6a8)?_0x567bd6=upBot(_0x567bd6,_0x25a6a8['bottom']):_0x1ee706&&yOverlap(_0x1ee706,_0x25a6a8)&&(_0x1ee706=upTop(_0x1ee706,_0x25a6a8['top']));}}if(_0x567bd6&&_0x567bd6['bottom']>=_0x5c5bd4?(_0xfcbdcf=_0x19532c,_0x2ea024=_0x567bd6):_0x1ee706&&_0x1ee706['top']<=_0x5c5bd4&&(_0xfcbdcf=_0x2fcd54,_0x2ea024=_0x1ee706),!_0xfcbdcf)return{'node':_0x5acf26,'offset':0x0};let _0x541b53=Math['max'](_0x2ea024['left'],Math['min'](_0x2ea024['right'],_0x1b2d67));return 0x3==_0xfcbdcf['nodeType']?domPosInText(_0xfcbdcf,_0x541b53,_0x5c5bd4):_0x2f6e4&&'false'!=_0xfcbdcf['contentEditable']?domPosAtCoords(_0xfcbdcf,_0x541b53,_0x5c5bd4):{'node':_0x5acf26,'offset':Array['prototype']['indexOf']['call'](_0x5acf26['childNodes'],_0xfcbdcf)+(_0x1b2d67>=(_0x2ea024['left']+_0x2ea024['right'])/0x2?0x1:0x0)};}function domPosInText(_0x1a7e99,_0x56a5f7,_0x3c37cc){let _0x49dafc=_0x1a7e99['nodeValue']['length'],_0x5cdcc9=-0x1,_0x2b7292=0x3b9aca00,_0x4feb58=0x0;for(let _0x2c29f4=0x0;_0x2c29f4<_0x49dafc;_0x2c29f4++){let _0x15475b=textRange(_0x1a7e99,_0x2c29f4,_0x2c29f4+0x1)['getClientRects']();for(let _0x1178f0=0x0;_0x1178f0<_0x15475b['length'];_0x1178f0++){let _0x54e59a=_0x15475b[_0x1178f0];if(_0x54e59a['top']==_0x54e59a['bottom'])continue;_0x4feb58||(_0x4feb58=_0x56a5f7-_0x54e59a['left']);let _0x43d895=(_0x54e59a['top']>_0x3c37cc?_0x54e59a['top']-_0x3c37cc:_0x3c37cc-_0x54e59a['bottom'])-0x1;if(_0x54e59a['left']-0x1<=_0x56a5f7&&_0x54e59a['right']+0x1>=_0x56a5f7&&_0x43d895<_0x2b7292){let _0x501483=_0x56a5f7>=(_0x54e59a['left']+_0x54e59a['right'])/0x2,_0x2c1187=_0x501483;(browser['chrome']||browser['gecko'])&&(textRange(_0x1a7e99,_0x2c29f4)['getBoundingClientRect']()['left']==_0x54e59a['right']&&(_0x2c1187=!_0x501483));if(_0x43d895<=0x0)return{'node':_0x1a7e99,'offset':_0x2c29f4+(_0x2c1187?0x1:0x0)};_0x5cdcc9=_0x2c29f4+(_0x2c1187?0x1:0x0),_0x2b7292=_0x43d895;}}}return{'node':_0x1a7e99,'offset':_0x5cdcc9>-0x1?_0x5cdcc9:_0x4feb58>0x0?_0x1a7e99['nodeValue']['length']:0x0};}function posAtCoords(_0x3cd6a4,_0x2ce8e3,_0x241474,_0x407465=-0x1){var _0x1e04fa,_0x55fb4c;let _0x220076,_0x2ef63a=_0x3cd6a4['contentDOM']['getBoundingClientRect'](),_0x3c6b1f=_0x2ef63a['top']+_0x3cd6a4['viewState']['paddingTop'],{docHeight:_0xf858e2}=_0x3cd6a4['viewState'],{x:_0x2510bc,y:_0x2c05ac}=_0x2ce8e3,_0x1087bb=_0x2c05ac-_0x3c6b1f;if(_0x1087bb<0x0)return 0x0;if(_0x1087bb>_0xf858e2)return _0x3cd6a4['state']['doc']['length'];for(let _0x1db1ad=_0x3cd6a4['viewState']['heightOracle']['textHeight']/0x2,_0x3de8b6=!0x1;_0x220076=_0x3cd6a4['elementAtHeight'](_0x1087bb),_0x220076['type']!=BlockType['Text'];)for(;_0x1087bb=_0x407465>0x0?_0x220076['bottom']+_0x1db1ad:_0x220076['top']-_0x1db1ad,!(_0x1087bb>=0x0&&_0x1087bb<=_0xf858e2);){if(_0x3de8b6)return _0x241474?null:0x0;_0x3de8b6=!0x0,_0x407465=-_0x407465;}_0x2c05ac=_0x3c6b1f+_0x1087bb;let _0x2fe64b=_0x220076['from'];if(_0x2fe64b<_0x3cd6a4['viewport']['from'])return 0x0==_0x3cd6a4['viewport']['from']?0x0:_0x241474?null:posAtCoordsImprecise(_0x3cd6a4,_0x2ef63a,_0x220076,_0x2510bc,_0x2c05ac);if(_0x2fe64b>_0x3cd6a4['viewport']['to'])return _0x3cd6a4['viewport']['to']==_0x3cd6a4['state']['doc']['length']?_0x3cd6a4['state']['doc']['length']:_0x241474?null:posAtCoordsImprecise(_0x3cd6a4,_0x2ef63a,_0x220076,_0x2510bc,_0x2c05ac);let _0xf60f8b=_0x3cd6a4['dom']['ownerDocument'],_0x264878=_0x3cd6a4['root']['elementFromPoint']?_0x3cd6a4['root']:_0xf60f8b,_0xa97368=_0x264878['elementFromPoint'](_0x2510bc,_0x2c05ac);_0xa97368&&!_0x3cd6a4['contentDOM']['contains'](_0xa97368)&&(_0xa97368=null),_0xa97368||(_0x2510bc=Math['max'](_0x2ef63a['left']+0x1,Math['min'](_0x2ef63a['right']-0x1,_0x2510bc)),_0xa97368=_0x264878['elementFromPoint'](_0x2510bc,_0x2c05ac),_0xa97368&&!_0x3cd6a4['contentDOM']['contains'](_0xa97368)&&(_0xa97368=null));let _0x522dde,_0x569c1b=-0x1;if(_0xa97368&&0x0!=(null===(_0x1e04fa=_0x3cd6a4['docView']['nearest'](_0xa97368))||void 0x0===_0x1e04fa?void 0x0:_0x1e04fa['isEditable'])){if(_0xf60f8b['caretPositionFromPoint']){let _0x38802a=_0xf60f8b['caretPositionFromPoint'](_0x2510bc,_0x2c05ac);_0x38802a&&({offsetNode:_0x522dde,offset:_0x569c1b}=_0x38802a);}else{if(_0xf60f8b['caretRangeFromPoint']){let _0x39f2cc=_0xf60f8b['caretRangeFromPoint'](_0x2510bc,_0x2c05ac);_0x39f2cc&&({startContainer:_0x522dde,startOffset:_0x569c1b}=_0x39f2cc);}}_0x522dde&&(!_0x3cd6a4['contentDOM']['contains'](_0x522dde)||browser['safari']&&isSuspiciousSafariCaretResult(_0x522dde,_0x569c1b,_0x2510bc)||browser['chrome']&&isSuspiciousChromeCaretResult(_0x522dde,_0x569c1b,_0x2510bc))&&(_0x522dde=void 0x0),_0x522dde&&(_0x569c1b=Math['min'](maxOffset(_0x522dde),_0x569c1b));}if(!_0x522dde||!_0x3cd6a4['docView']['dom']['contains'](_0x522dde)){let _0x17d478=LineView['find'](_0x3cd6a4['docView'],_0x2fe64b);if(!_0x17d478)return _0x1087bb>_0x220076['top']+_0x220076['height']/0x2?_0x220076['to']:_0x220076['from'];({node:_0x522dde,offset:_0x569c1b}=domPosAtCoords(_0x17d478['dom'],_0x2510bc,_0x2c05ac));}let _0x4eab86=_0x3cd6a4['docView']['nearest'](_0x522dde);if(!_0x4eab86)return null;if(_0x4eab86['isWidget']&&0x1==(null===(_0x55fb4c=_0x4eab86['dom'])||void 0x0===_0x55fb4c?void 0x0:_0x55fb4c['nodeType'])){let _0x2e64ea=_0x4eab86['dom']['getBoundingClientRect']();return _0x2ce8e3['y']<_0x2e64ea['top']||_0x2ce8e3['y']<=_0x2e64ea['bottom']&&_0x2ce8e3['x']<=(_0x2e64ea['left']+_0x2e64ea['right'])/0x2?_0x4eab86['posAtStart']:_0x4eab86['posAtEnd'];}return _0x4eab86['localPosFromDOM'](_0x522dde,_0x569c1b)+_0x4eab86['posAtStart'];}function posAtCoordsImprecise(_0x12af08,_0x53a461,_0x427df6,_0x2292bf,_0x128301){let _0x32745f=Math['round']((_0x2292bf-_0x53a461['left'])*_0x12af08['defaultCharacterWidth']);if(_0x12af08['lineWrapping']&&_0x427df6['height']>1.5*_0x12af08['defaultLineHeight']){let _0x18efa4=_0x12af08['viewState']['heightOracle']['textHeight'];_0x32745f+=Math['floor']((_0x128301-_0x427df6['top']-0.5*(_0x12af08['defaultLineHeight']-_0x18efa4))/_0x18efa4)*_0x12af08['viewState']['heightOracle']['lineLength'];}let _0x1928bc=_0x12af08['state']['sliceDoc'](_0x427df6['from'],_0x427df6['to']);return _0x427df6['from']+findColumn(_0x1928bc,_0x32745f,_0x12af08['state']['tabSize']);}function isEndOfLineBefore(_0x47213f,_0x12bbbf,_0x82c7df){let _0x4fce4f,_0x50e473=_0x47213f;if(0x3!=_0x47213f['nodeType']||_0x12bbbf!=(_0x4fce4f=_0x47213f['nodeValue']['length']))return!0x1;for(;;){let _0xb93647=_0x50e473['nextSibling'];if(_0xb93647){if('BR'==_0xb93647['nodeName'])break;return!0x1;}{let _0xed7358=_0x50e473['parentNode'];if(!_0xed7358||'DIV'==_0xed7358['nodeName'])break;_0x50e473=_0xed7358;}}return textRange(_0x47213f,_0x4fce4f-0x1,_0x4fce4f)['getBoundingClientRect']()['right']>_0x82c7df;}function isSuspiciousSafariCaretResult(_0x4f46e6,_0x59f393,_0x1bd6db){return isEndOfLineBefore(_0x4f46e6,_0x59f393,_0x1bd6db);}function isSuspiciousChromeCaretResult(_0x35bc11,_0x593235,_0x1312c4){if(0x0!=_0x593235)return isEndOfLineBefore(_0x35bc11,_0x593235,_0x1312c4);for(let _0x936d59=_0x35bc11;;){let _0x2a1228=_0x936d59['parentNode'];if(!_0x2a1228||0x1!=_0x2a1228['nodeType']||_0x2a1228['firstChild']!=_0x936d59)return!0x1;if(_0x2a1228['classList']['contains']('cm-line'))break;_0x936d59=_0x2a1228;}return _0x1312c4-(0x1==_0x35bc11['nodeType']?_0x35bc11['getBoundingClientRect']():textRange(_0x35bc11,0x0,Math['max'](_0x35bc11['nodeValue']['length'],0x1))['getBoundingClientRect']())['left']>0x5;}function blockAt(_0x4d04b5,_0x249031,_0x5afb49){let _0xeacb6=_0x4d04b5['lineBlockAt'](_0x249031);if(Array['isArray'](_0xeacb6['type'])){let _0x1b8305;for(let _0x4e37d4 of _0xeacb6['type']){if(_0x4e37d4['from']>_0x249031)break;if(!(_0x4e37d4['to']<_0x249031)){if(_0x4e37d4['from']<_0x249031&&_0x4e37d4['to']>_0x249031)return _0x4e37d4;_0x1b8305&&(_0x4e37d4['type']!=BlockType['Text']||_0x1b8305['type']==_0x4e37d4['type']&&!(_0x5afb49<0x0?_0x4e37d4['from']<_0x249031:_0x4e37d4['to']>_0x249031))||(_0x1b8305=_0x4e37d4);}}return _0x1b8305||_0xeacb6;}return _0xeacb6;}function moveToLineBoundary(_0x4df33e,_0x45ab44,_0x4a5b7f,_0x489e77){let _0x35544c=blockAt(_0x4df33e,_0x45ab44['head'],_0x45ab44['assoc']||-0x1),_0x5537ae=_0x489e77&&_0x35544c['type']==BlockType['Text']&&(_0x4df33e['lineWrapping']||_0x35544c['widgetLineBreaks'])?_0x4df33e['coordsAtPos'](_0x45ab44['assoc']<0x0&&_0x45ab44['head']>_0x35544c['from']?_0x45ab44['head']-0x1:_0x45ab44['head']):null;if(_0x5537ae){let _0x5ae742=_0x4df33e['dom']['getBoundingClientRect'](),_0x3a1761=_0x4df33e['textDirectionAt'](_0x35544c['from']),_0x1e5b69=_0x4df33e['posAtCoords']({'x':_0x4a5b7f==(_0x3a1761==Direction['LTR'])?_0x5ae742['right']-0x1:_0x5ae742['left']+0x1,'y':(_0x5537ae['top']+_0x5537ae['bottom'])/0x2});if(null!=_0x1e5b69)return EditorSelection['cursor'](_0x1e5b69,_0x4a5b7f?-0x1:0x1);}return EditorSelection['cursor'](_0x4a5b7f?_0x35544c['to']:_0x35544c['from'],_0x4a5b7f?-0x1:0x1);}function moveByChar(_0x37aec2,_0x1aacef,_0x4325fb,_0x143845){let _0x172d67=_0x37aec2['state']['doc']['lineAt'](_0x1aacef['head']),_0x1805f5=_0x37aec2['bidiSpans'](_0x172d67),_0x28e592=_0x37aec2['textDirectionAt'](_0x172d67['from']);for(let _0x140f61=_0x1aacef,_0x1b6f85=null;;){let _0x458598=moveVisually(_0x172d67,_0x1805f5,_0x28e592,_0x140f61,_0x4325fb),_0xa11d8d=movedOver;if(!_0x458598){if(_0x172d67['number']==(_0x4325fb?_0x37aec2['state']['doc']['lines']:0x1))return _0x140f61;_0xa11d8d='\x0a',_0x172d67=_0x37aec2['state']['doc']['line'](_0x172d67['number']+(_0x4325fb?0x1:-0x1)),_0x1805f5=_0x37aec2['bidiSpans'](_0x172d67),_0x458598=_0x37aec2['visualLineSide'](_0x172d67,!_0x4325fb);}if(_0x1b6f85){if(!_0x1b6f85(_0xa11d8d))return _0x140f61;}else{if(!_0x143845)return _0x458598;_0x1b6f85=_0x143845(_0xa11d8d);}_0x140f61=_0x458598;}}function byGroup(_0x17e672,_0x5aee34,_0x69e84e){let _0x268ff3=_0x17e672['state']['charCategorizer'](_0x5aee34),_0x316eca=_0x268ff3(_0x69e84e);return _0x1605b8=>{let _0x3c847a=_0x268ff3(_0x1605b8);return _0x316eca==CharCategory['Space']&&(_0x316eca=_0x3c847a),_0x316eca==_0x3c847a;};}function moveVertically(_0x40094f,_0x362868,_0x322653,_0x4692ea){let _0xb60a92=_0x362868['head'],_0x198e46=_0x322653?0x1:-0x1;if(_0xb60a92==(_0x322653?_0x40094f['state']['doc']['length']:0x0))return EditorSelection['cursor'](_0xb60a92,_0x362868['assoc']);let _0x1ae529,_0x42c4ea=_0x362868['goalColumn'],_0x559ba3=_0x40094f['contentDOM']['getBoundingClientRect'](),_0x11a2c3=_0x40094f['coordsAtPos'](_0xb60a92,_0x362868['assoc']||-0x1),_0x42ab9c=_0x40094f['documentTop'];if(_0x11a2c3)null==_0x42c4ea&&(_0x42c4ea=_0x11a2c3['left']-_0x559ba3['left']),_0x1ae529=_0x198e46<0x0?_0x11a2c3['top']:_0x11a2c3['bottom'];else{let _0x299195=_0x40094f['viewState']['lineBlockAt'](_0xb60a92);null==_0x42c4ea&&(_0x42c4ea=Math['min'](_0x559ba3['right']-_0x559ba3['left'],_0x40094f['defaultCharacterWidth']*(_0xb60a92-_0x299195['from']))),_0x1ae529=(_0x198e46<0x0?_0x299195['top']:_0x299195['bottom'])+_0x42ab9c;}let _0x35cd46=_0x559ba3['left']+_0x42c4ea,_0x3235c9=null!=_0x4692ea?_0x4692ea:_0x40094f['viewState']['heightOracle']['textHeight']>>0x1;for(let _0x2b7712=0x0;;_0x2b7712+=0xa){let _0x452759=_0x1ae529+(_0x3235c9+_0x2b7712)*_0x198e46,_0x344658=posAtCoords(_0x40094f,{'x':_0x35cd46,'y':_0x452759},!0x1,_0x198e46);if(_0x452759<_0x559ba3['top']||_0x452759>_0x559ba3['bottom']||(_0x198e46<0x0?_0x344658<_0xb60a92:_0x344658>_0xb60a92)){let _0x237e63=_0x40094f['docView']['coordsForChar'](_0x344658),_0x690fdc=!_0x237e63||_0x452759<_0x237e63['top']?-0x1:0x1;return EditorSelection['cursor'](_0x344658,_0x690fdc,void 0x0,_0x42c4ea);}}}function skipAtomicRanges(_0x31bf66,_0x100221,_0x43533d){for(;;){let _0x565205=0x0;for(let _0x13895e of _0x31bf66)_0x13895e['between'](_0x100221-0x1,_0x100221+0x1,(_0x51179f,_0xa7e5e0,_0x2aa1a1)=>{if(_0x100221>_0x51179f&&_0x100221<_0xa7e5e0){let _0x131ec1=_0x565205||_0x43533d||(_0x100221-_0x51179f<_0xa7e5e0-_0x100221?-0x1:0x1);_0x100221=_0x131ec1<0x0?_0x51179f:_0xa7e5e0,_0x565205=_0x131ec1;}});if(!_0x565205)return _0x100221;}}function skipAtomsForSelection(_0x12b95a,_0x286e33){let _0x151918=null;for(let _0x4ab1e7=0x0;_0x4ab1e7<_0x286e33['ranges']['length'];_0x4ab1e7++){let _0x280052=_0x286e33['ranges'][_0x4ab1e7],_0x29e9b0=null;if(_0x280052['empty']){let _0xa94aa0=skipAtomicRanges(_0x12b95a,_0x280052['from'],0x0);_0xa94aa0!=_0x280052['from']&&(_0x29e9b0=EditorSelection['cursor'](_0xa94aa0,-0x1));}else{let _0x4ec948=skipAtomicRanges(_0x12b95a,_0x280052['from'],-0x1),_0x2d910f=skipAtomicRanges(_0x12b95a,_0x280052['to'],0x1);_0x4ec948==_0x280052['from']&&_0x2d910f==_0x280052['to']||(_0x29e9b0=EditorSelection['range'](_0x280052['from']==_0x280052['anchor']?_0x4ec948:_0x2d910f,_0x280052['from']==_0x280052['head']?_0x4ec948:_0x2d910f));}_0x29e9b0&&(_0x151918||(_0x151918=_0x286e33['ranges']['slice']()),_0x151918[_0x4ab1e7]=_0x29e9b0);}return _0x151918?EditorSelection['create'](_0x151918,_0x286e33['mainIndex']):_0x286e33;}function skipAtoms(_0x1c2382,_0x43e9e3,_0x2e87eb){let _0x117dd4=skipAtomicRanges(_0x1c2382['state']['facet'](atomicRanges)['map'](_0x38c8e3=>_0x38c8e3(_0x1c2382)),_0x2e87eb['from'],_0x43e9e3['head']>_0x2e87eb['from']?-0x1:0x1);return _0x117dd4==_0x2e87eb['from']?_0x2e87eb:EditorSelection['cursor'](_0x117dd4,_0x117dd4<_0x2e87eb['from']?0x1:-0x1);}const LineBreakPlaceholder='';class DOMReader{constructor(_0x37bef6,_0x40edd5){this['points']=_0x37bef6,this['text']='',this['lineSeparator']=_0x40edd5['facet'](EditorState['lineSeparator']);}['append'](_0xe4114f){this['text']+=_0xe4114f;}['lineBreak'](){this['text']+=LineBreakPlaceholder;}['readRange'](_0x3544c4,_0x53832c){if(!_0x3544c4)return this;let _0x11cc2c=_0x3544c4['parentNode'];for(let _0x21f795=_0x3544c4;;){this['findPointBefore'](_0x11cc2c,_0x21f795);let _0x52b93a=this['text']['length'];this['readNode'](_0x21f795);let _0x34a283=_0x21f795['nextSibling'];if(_0x34a283==_0x53832c)break;let _0x4e7539=ContentView['get'](_0x21f795),_0x5a5e52=ContentView['get'](_0x34a283);(_0x4e7539&&_0x5a5e52?_0x4e7539['breakAfter']:(_0x4e7539?_0x4e7539['breakAfter']:isBlockElement(_0x21f795))||isBlockElement(_0x34a283)&&('BR'!=_0x21f795['nodeName']||_0x21f795['cmIgnore'])&&this['text']['length']>_0x52b93a)&&!isEmptyToEnd(_0x34a283,_0x53832c)&&this['lineBreak'](),_0x21f795=_0x34a283;}return this['findPointBefore'](_0x11cc2c,_0x53832c),this;}['readTextNode'](_0x1d124f){let _0x266e5b=_0x1d124f['nodeValue'];for(let _0x27e31e of this['points'])_0x27e31e['node']==_0x1d124f&&(_0x27e31e['pos']=this['text']['length']+Math['min'](_0x27e31e['offset'],_0x266e5b['length']));for(let _0x14ff1d=0x0,_0x3c0ee4=this['lineSeparator']?null:/\r\n?|\n/g;;){let _0x2f0c3d,_0x5429b=-0x1,_0x32eea9=0x1;if(this['lineSeparator']?(_0x5429b=_0x266e5b['indexOf'](this['lineSeparator'],_0x14ff1d),_0x32eea9=this['lineSeparator']['length']):(_0x2f0c3d=_0x3c0ee4['exec'](_0x266e5b))&&(_0x5429b=_0x2f0c3d['index'],_0x32eea9=_0x2f0c3d[0x0]['length']),this['append'](_0x266e5b['slice'](_0x14ff1d,_0x5429b<0x0?_0x266e5b['length']:_0x5429b)),_0x5429b<0x0)break;if(this['lineBreak'](),_0x32eea9>0x1){for(let _0x5b2c3d of this['points'])_0x5b2c3d['node']==_0x1d124f&&_0x5b2c3d['pos']>this['text']['length']&&(_0x5b2c3d['pos']-=_0x32eea9-0x1);}_0x14ff1d=_0x5429b+_0x32eea9;}}['readNode'](_0x2a3f27){if(_0x2a3f27['cmIgnore'])return;let _0x190153=ContentView['get'](_0x2a3f27),_0x5837db=_0x190153&&_0x190153['overrideDOMText'];if(null!=_0x5837db){this['findPointInside'](_0x2a3f27,_0x5837db['length']);for(let _0x230800=_0x5837db['iter']();!_0x230800['next']()['done'];)_0x230800['lineBreak']?this['lineBreak']():this['append'](_0x230800['value']);}else 0x3==_0x2a3f27['nodeType']?this['readTextNode'](_0x2a3f27):'BR'==_0x2a3f27['nodeName']?_0x2a3f27['nextSibling']&&this['lineBreak']():0x1==_0x2a3f27['nodeType']&&this['readRange'](_0x2a3f27['firstChild'],null);}['findPointBefore'](_0x54d137,_0x447e5f){for(let _0x3d4403 of this['points'])_0x3d4403['node']==_0x54d137&&_0x54d137['childNodes'][_0x3d4403['offset']]==_0x447e5f&&(_0x3d4403['pos']=this['text']['length']);}['findPointInside'](_0x2cf90b,_0x5ad59a){for(let _0x43b833 of this['points'])(0x3==_0x2cf90b['nodeType']?_0x43b833['node']==_0x2cf90b:_0x2cf90b['contains'](_0x43b833['node']))&&(_0x43b833['pos']=this['text']['length']+(isAtEnd(_0x2cf90b,_0x43b833['node'],_0x43b833['offset'])?_0x5ad59a:0x0));}}function isAtEnd(_0x421881,_0x59e24c,_0x20e004){for(;;){if(!_0x59e24c||_0x20e004<maxOffset(_0x59e24c))return!0x1;if(_0x59e24c==_0x421881)return!0x0;_0x20e004=domIndex(_0x59e24c)+0x1,_0x59e24c=_0x59e24c['parentNode'];}}function isEmptyToEnd(_0x392585,_0x234503){let _0x3ca550;for(;_0x392585!=_0x234503&&_0x392585;_0x392585=_0x392585['nextSibling']){let _0x5db71d=ContentView['get'](_0x392585);if(!(null==_0x5db71d?void 0x0:_0x5db71d['isWidget'])&&!_0x392585['cmIgnore'])return!0x1;_0x5db71d&&(_0x3ca550||(_0x3ca550=[]))['push'](_0x5db71d);}if(_0x3ca550)for(let _0x1f0b67 of _0x3ca550){let _0x3aabf8=_0x1f0b67['overrideDOMText'];if(null==_0x3aabf8?void 0x0:_0x3aabf8['length'])return!0x1;}return!0x0;}class DOMPoint{constructor(_0x4463be,_0x4b9bf1){this['node']=_0x4463be,this['offset']=_0x4b9bf1,this['pos']=-0x1;}}class DOMChange{constructor(_0x255e71,_0x199e94,_0x59a420,_0x276715){this['typeOver']=_0x276715,this['bounds']=null,this['text']='',this['domChanged']=_0x199e94>-0x1;let {impreciseHead:_0x5dabb7,impreciseAnchor:_0x15f933}=_0x255e71['docView'];if(_0x255e71['state']['readOnly']&&_0x199e94>-0x1)this['newSel']=null;else{if(_0x199e94>-0x1&&(this['bounds']=_0x255e71['docView']['domBoundsAround'](_0x199e94,_0x59a420,0x0))){let _0x4c542d=_0x5dabb7||_0x15f933?[]:selectionPoints(_0x255e71),_0x528193=new DOMReader(_0x4c542d,_0x255e71['state']);_0x528193['readRange'](this['bounds']['startDOM'],this['bounds']['endDOM']),this['text']=_0x528193['text'],this['newSel']=selectionFromPoints(_0x4c542d,this['bounds']['from']);}else{let _0x4ab295=_0x255e71['observer']['selectionRange'],_0xf5d7ba=_0x5dabb7&&_0x5dabb7['node']==_0x4ab295['focusNode']&&_0x5dabb7['offset']==_0x4ab295['focusOffset']||!contains(_0x255e71['contentDOM'],_0x4ab295['focusNode'])?_0x255e71['state']['selection']['main']['head']:_0x255e71['docView']['posFromDOM'](_0x4ab295['focusNode'],_0x4ab295['focusOffset']),_0x2803c9=_0x15f933&&_0x15f933['node']==_0x4ab295['anchorNode']&&_0x15f933['offset']==_0x4ab295['anchorOffset']||!contains(_0x255e71['contentDOM'],_0x4ab295['anchorNode'])?_0x255e71['state']['selection']['main']['anchor']:_0x255e71['docView']['posFromDOM'](_0x4ab295['anchorNode'],_0x4ab295['anchorOffset']),_0xd1341a=_0x255e71['viewport'];if((browser['ios']||browser['chrome'])&&_0x255e71['state']['selection']['main']['empty']&&_0xf5d7ba!=_0x2803c9&&(_0xd1341a['from']>0x0||_0xd1341a['to']<_0x255e71['state']['doc']['length'])){let _0x2cf816=Math['min'](_0xf5d7ba,_0x2803c9),_0x29416b=Math['max'](_0xf5d7ba,_0x2803c9),_0x95dbed=_0xd1341a['from']-_0x2cf816,_0x4c6068=_0xd1341a['to']-_0x29416b;0x0!=_0x95dbed&&0x1!=_0x95dbed&&0x0!=_0x2cf816||0x0!=_0x4c6068&&-0x1!=_0x4c6068&&_0x29416b!=_0x255e71['state']['doc']['length']||(_0xf5d7ba=0x0,_0x2803c9=_0x255e71['state']['doc']['length']);}this['newSel']=EditorSelection['single'](_0x2803c9,_0xf5d7ba);}}}}function applyDOMChange(_0x461b10,_0x45fb68){let _0x44d91a,{newSel:_0x6b8a69}=_0x45fb68,_0x58a489=_0x461b10['state']['selection']['main'],_0x3c1040=_0x461b10['inputState']['lastKeyTime']>Date['now']()-0x64?_0x461b10['inputState']['lastKeyCode']:-0x1;if(_0x45fb68['bounds']){let {from:_0x516b61,to:_0xe76c1c}=_0x45fb68['bounds'],_0x2d719e=_0x58a489['from'],_0x2e843f=null;(0x8===_0x3c1040||browser['android']&&_0x45fb68['text']['length']<_0xe76c1c-_0x516b61)&&(_0x2d719e=_0x58a489['to'],_0x2e843f='end');let _0x432375=findDiff(_0x461b10['state']['doc']['sliceString'](_0x516b61,_0xe76c1c,LineBreakPlaceholder),_0x45fb68['text'],_0x2d719e-_0x516b61,_0x2e843f);_0x432375&&(browser['chrome']&&0xd==_0x3c1040&&_0x432375['toB']==_0x432375['from']+0x2&&_0x45fb68['text']['slice'](_0x432375['from'],_0x432375['toB'])==LineBreakPlaceholder+LineBreakPlaceholder&&_0x432375['toB']--,_0x44d91a={'from':_0x516b61+_0x432375['from'],'to':_0x516b61+_0x432375['toA'],'insert':Text['of'](_0x45fb68['text']['slice'](_0x432375['from'],_0x432375['toB'])['split'](LineBreakPlaceholder))});}else _0x6b8a69&&(!_0x461b10['hasFocus']&&_0x461b10['state']['facet'](editable)||_0x6b8a69['main']['eq'](_0x58a489))&&(_0x6b8a69=null);if(!_0x44d91a&&!_0x6b8a69)return!0x1;if(!_0x44d91a&&_0x45fb68['typeOver']&&!_0x58a489['empty']&&_0x6b8a69&&_0x6b8a69['main']['empty']?_0x44d91a={'from':_0x58a489['from'],'to':_0x58a489['to'],'insert':_0x461b10['state']['doc']['slice'](_0x58a489['from'],_0x58a489['to'])}:(browser['mac']||browser['android'])&&_0x44d91a&&_0x44d91a['from']==_0x44d91a['to']&&_0x44d91a['from']==_0x58a489['head']-0x1&&/^\. ?$/['test'](_0x44d91a['insert']['toString']())&&'off'==_0x461b10['contentDOM']['getAttribute']('autocorrect')?(_0x6b8a69&&0x2==_0x44d91a['insert']['length']&&(_0x6b8a69=EditorSelection['single'](_0x6b8a69['main']['anchor']-0x1,_0x6b8a69['main']['head']-0x1)),_0x44d91a={'from':_0x44d91a['from'],'to':_0x44d91a['to'],'insert':Text['of']([_0x44d91a['insert']['toString']()['replace']('.','\x20')])}):_0x44d91a&&_0x44d91a['from']>=_0x58a489['from']&&_0x44d91a['to']<=_0x58a489['to']&&(_0x44d91a['from']!=_0x58a489['from']||_0x44d91a['to']!=_0x58a489['to'])&&_0x58a489['to']-_0x58a489['from']-(_0x44d91a['to']-_0x44d91a['from'])<=0x4?_0x44d91a={'from':_0x58a489['from'],'to':_0x58a489['to'],'insert':_0x461b10['state']['doc']['slice'](_0x58a489['from'],_0x44d91a['from'])['append'](_0x44d91a['insert'])['append'](_0x461b10['state']['doc']['slice'](_0x44d91a['to'],_0x58a489['to']))}:browser['chrome']&&_0x44d91a&&_0x44d91a['from']==_0x44d91a['to']&&_0x44d91a['from']==_0x58a489['head']&&'\x0a\x20'==_0x44d91a['insert']['toString']()&&_0x461b10['lineWrapping']&&(_0x6b8a69&&(_0x6b8a69=EditorSelection['single'](_0x6b8a69['main']['anchor']-0x1,_0x6b8a69['main']['head']-0x1)),_0x44d91a={'from':_0x58a489['from'],'to':_0x58a489['to'],'insert':Text['of'](['\x20'])}),_0x44d91a)return applyDOMChangeInner(_0x461b10,_0x44d91a,_0x6b8a69,_0x3c1040);if(_0x6b8a69&&!_0x6b8a69['main']['eq'](_0x58a489)){let _0x4790ac=!0x1,_0x2ff1e3='select';return _0x461b10['inputState']['lastSelectionTime']>Date['now']()-0x32&&('select'==_0x461b10['inputState']['lastSelectionOrigin']&&(_0x4790ac=!0x0),_0x2ff1e3=_0x461b10['inputState']['lastSelectionOrigin'],'select.pointer'==_0x2ff1e3&&(_0x6b8a69=skipAtomsForSelection(_0x461b10['state']['facet'](atomicRanges)['map'](_0xe2bfd8=>_0xe2bfd8(_0x461b10)),_0x6b8a69))),_0x461b10['dispatch']({'selection':_0x6b8a69,'scrollIntoView':_0x4790ac,'userEvent':_0x2ff1e3}),!0x0;}return!0x1;}function applyDOMChangeInner(_0x5075f,_0x56bc3e,_0x33d89f,_0x436d62=-0x1){if(browser['ios']&&_0x5075f['inputState']['flushIOSKey'](_0x56bc3e))return!0x0;let _0x304150=_0x5075f['state']['selection']['main'];if(browser['android']&&(_0x56bc3e['to']==_0x304150['to']&&(_0x56bc3e['from']==_0x304150['from']||_0x56bc3e['from']==_0x304150['from']-0x1&&'\x20'==_0x5075f['state']['sliceDoc'](_0x56bc3e['from'],_0x304150['from']))&&0x1==_0x56bc3e['insert']['length']&&0x2==_0x56bc3e['insert']['lines']&&dispatchKey(_0x5075f['contentDOM'],'Enter',0xd)||(_0x56bc3e['from']==_0x304150['from']-0x1&&_0x56bc3e['to']==_0x304150['to']&&0x0==_0x56bc3e['insert']['length']||0x8==_0x436d62&&_0x56bc3e['insert']['length']<_0x56bc3e['to']-_0x56bc3e['from']&&_0x56bc3e['to']>_0x304150['head'])&&dispatchKey(_0x5075f['contentDOM'],'Backspace',0x8)||_0x56bc3e['from']==_0x304150['from']&&_0x56bc3e['to']==_0x304150['to']+0x1&&0x0==_0x56bc3e['insert']['length']&&dispatchKey(_0x5075f['contentDOM'],'Delete',0x2e)))return!0x0;let _0x3c817f,_0x164d9d=_0x56bc3e['insert']['toString']();_0x5075f['inputState']['composing']>=0x0&&_0x5075f['inputState']['composing']++;let _0x1b21d6=()=>_0x3c817f||(_0x3c817f=applyDefaultInsert(_0x5075f,_0x56bc3e,_0x33d89f));return _0x5075f['state']['facet'](inputHandler$1)['some'](_0x2a64aa=>_0x2a64aa(_0x5075f,_0x56bc3e['from'],_0x56bc3e['to'],_0x164d9d,_0x1b21d6))||_0x5075f['dispatch'](_0x1b21d6()),!0x0;}function applyDefaultInsert(_0x109f23,_0x54c8d0,_0x496e8b){let _0x4a07fe,_0x2d3778=_0x109f23['state'],_0x5c7280=_0x2d3778['selection']['main'],_0x223af9=-0x1;if(_0x54c8d0['from']==_0x54c8d0['to']&&_0x54c8d0['from']<_0x5c7280['from']||_0x54c8d0['from']>_0x5c7280['to']){let _0x1d2e02=_0x54c8d0['from']<_0x5c7280['from']?-0x1:0x1,_0x11c89d=_0x1d2e02<0x0?_0x5c7280['from']:_0x5c7280['to'],_0x310054=skipAtomicRanges(_0x2d3778['facet'](atomicRanges)['map'](_0x5c808f=>_0x5c808f(_0x109f23)),_0x11c89d,_0x1d2e02);_0x54c8d0['from']==_0x310054&&(_0x223af9=_0x310054);}if(_0x223af9>-0x1)_0x4a07fe={'changes':_0x54c8d0,'selection':EditorSelection['cursor'](_0x54c8d0['from']+_0x54c8d0['insert']['length'],-0x1)};else{if(_0x54c8d0['from']>=_0x5c7280['from']&&_0x54c8d0['to']<=_0x5c7280['to']&&_0x54c8d0['to']-_0x54c8d0['from']>=(_0x5c7280['to']-_0x5c7280['from'])/0x3&&(!_0x496e8b||_0x496e8b['main']['empty']&&_0x496e8b['main']['from']==_0x54c8d0['from']+_0x54c8d0['insert']['length'])&&_0x109f23['inputState']['composing']<0x0){let _0x5f63f5=_0x5c7280['from']<_0x54c8d0['from']?_0x2d3778['sliceDoc'](_0x5c7280['from'],_0x54c8d0['from']):'',_0x20994e=_0x5c7280['to']>_0x54c8d0['to']?_0x2d3778['sliceDoc'](_0x54c8d0['to'],_0x5c7280['to']):'';_0x4a07fe=_0x2d3778['replaceSelection'](_0x109f23['state']['toText'](_0x5f63f5+_0x54c8d0['insert']['sliceString'](0x0,void 0x0,_0x109f23['state']['lineBreak'])+_0x20994e));}else{let _0x23c561=_0x2d3778['changes'](_0x54c8d0),_0x29f9ad=_0x496e8b&&_0x496e8b['main']['to']<=_0x23c561['newLength']?_0x496e8b['main']:void 0x0;if(_0x2d3778['selection']['ranges']['length']>0x1&&_0x109f23['inputState']['composing']>=0x0&&_0x54c8d0['to']<=_0x5c7280['to']&&_0x54c8d0['to']>=_0x5c7280['to']-0xa){let _0xb6053d,_0x566a0a=_0x109f23['state']['sliceDoc'](_0x54c8d0['from'],_0x54c8d0['to']),_0x2e3316=_0x496e8b&&findCompositionNode(_0x109f23,_0x496e8b['main']['head']);if(_0x2e3316){let _0x1e1711=_0x54c8d0['insert']['length']-(_0x54c8d0['to']-_0x54c8d0['from']);_0xb6053d={'from':_0x2e3316['from'],'to':_0x2e3316['to']-_0x1e1711};}else _0xb6053d=_0x109f23['state']['doc']['lineAt'](_0x5c7280['head']);let _0x50b951=_0x5c7280['to']-_0x54c8d0['to'],_0xf6e043=_0x5c7280['to']-_0x5c7280['from'];_0x4a07fe=_0x2d3778['changeByRange'](_0x1fe441=>{if(_0x1fe441['from']==_0x5c7280['from']&&_0x1fe441['to']==_0x5c7280['to'])return{'changes':_0x23c561,'range':_0x29f9ad||_0x1fe441['map'](_0x23c561)};let _0x33281f=_0x1fe441['to']-_0x50b951,_0xa09310=_0x33281f-_0x566a0a['length'];if(_0x1fe441['to']-_0x1fe441['from']!=_0xf6e043||_0x109f23['state']['sliceDoc'](_0xa09310,_0x33281f)!=_0x566a0a||_0x1fe441['to']>=_0xb6053d['from']&&_0x1fe441['from']<=_0xb6053d['to'])return{'range':_0x1fe441};let _0x5178fd=_0x2d3778['changes']({'from':_0xa09310,'to':_0x33281f,'insert':_0x54c8d0['insert']}),_0x3c58fb=_0x1fe441['to']-_0x5c7280['to'];return{'changes':_0x5178fd,'range':_0x29f9ad?EditorSelection['range'](Math['max'](0x0,_0x29f9ad['anchor']+_0x3c58fb),Math['max'](0x0,_0x29f9ad['head']+_0x3c58fb)):_0x1fe441['map'](_0x5178fd)};});}else _0x4a07fe={'changes':_0x23c561,'selection':_0x29f9ad&&_0x2d3778['selection']['replaceRange'](_0x29f9ad)};}}let _0x49be97='input.type';return(_0x109f23['composing']||_0x109f23['inputState']['compositionPendingChange']&&_0x109f23['inputState']['compositionEndedAt']>Date['now']()-0x32)&&(_0x109f23['inputState']['compositionPendingChange']=!0x1,_0x49be97+='.compose',_0x109f23['inputState']['compositionFirstChange']&&(_0x49be97+='.start',_0x109f23['inputState']['compositionFirstChange']=!0x1)),_0x2d3778['update'](_0x4a07fe,{'userEvent':_0x49be97,'scrollIntoView':!0x0});}function findDiff(_0x2f7783,_0x12431e,_0x3a2d07,_0x2ecff0){let _0x2fcdcf=Math['min'](_0x2f7783['length'],_0x12431e['length']),_0x4d7342=0x0;for(;_0x4d7342<_0x2fcdcf&&_0x2f7783['charCodeAt'](_0x4d7342)==_0x12431e['charCodeAt'](_0x4d7342);)_0x4d7342++;if(_0x4d7342==_0x2fcdcf&&_0x2f7783['length']==_0x12431e['length'])return null;let _0x52957a=_0x2f7783['length'],_0x348646=_0x12431e['length'];for(;_0x52957a>0x0&&_0x348646>0x0&&_0x2f7783['charCodeAt'](_0x52957a-0x1)==_0x12431e['charCodeAt'](_0x348646-0x1);)_0x52957a--,_0x348646--;'end'==_0x2ecff0&&(_0x3a2d07-=_0x52957a+Math['max'](0x0,_0x4d7342-Math['min'](_0x52957a,_0x348646))-_0x4d7342);if(_0x52957a<_0x4d7342&&_0x2f7783['length']<_0x12431e['length'])_0x4d7342-=_0x3a2d07<=_0x4d7342&&_0x3a2d07>=_0x52957a?_0x4d7342-_0x3a2d07:0x0,_0x348646=_0x4d7342+(_0x348646-_0x52957a),_0x52957a=_0x4d7342;else _0x348646<_0x4d7342&&(_0x4d7342-=_0x3a2d07<=_0x4d7342&&_0x3a2d07>=_0x348646?_0x4d7342-_0x3a2d07:0x0,_0x52957a=_0x4d7342+(_0x52957a-_0x348646),_0x348646=_0x4d7342);return{'from':_0x4d7342,'toA':_0x52957a,'toB':_0x348646};}function selectionPoints(_0x5cff67){let _0x5d97d5=[];if(_0x5cff67['root']['activeElement']!=_0x5cff67['contentDOM'])return _0x5d97d5;let {anchorNode:_0x30327b,anchorOffset:_0x456a4b,focusNode:_0x30fd4e,focusOffset:_0x26e357}=_0x5cff67['observer']['selectionRange'];return _0x30327b&&(_0x5d97d5['push'](new DOMPoint(_0x30327b,_0x456a4b)),_0x30fd4e==_0x30327b&&_0x26e357==_0x456a4b||_0x5d97d5['push'](new DOMPoint(_0x30fd4e,_0x26e357))),_0x5d97d5;}function selectionFromPoints(_0x7e27c3,_0x386ebd){if(0x0==_0x7e27c3['length'])return null;let _0x3c77f1=_0x7e27c3[0x0]['pos'],_0x467d69=0x2==_0x7e27c3['length']?_0x7e27c3[0x1]['pos']:_0x3c77f1;return _0x3c77f1>-0x1&&_0x467d69>-0x1?EditorSelection['single'](_0x3c77f1+_0x386ebd,_0x467d69+_0x386ebd):null;}class InputState{['setSelectionOrigin'](_0x460638){this['lastSelectionOrigin']=_0x460638,this['lastSelectionTime']=Date['now']();}constructor(_0x4210a1){this['view']=_0x4210a1,this['lastKeyCode']=0x0,this['lastKeyTime']=0x0,this['lastTouchTime']=0x0,this['lastFocusTime']=0x0,this['lastScrollTop']=0x0,this['lastScrollLeft']=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['mouseSelection']=null,this['draggedContent']=null,this['handleEvent']=this['handleEvent']['bind'](this),this['notifiedFocused']=_0x4210a1['hasFocus'],browser['safari']&&_0x4210a1['contentDOM']['addEventListener']('input',()=>null),browser['gecko']&&firefoxCopyCutHack(_0x4210a1['contentDOM']['ownerDocument']);}['handleEvent'](_0x15b205){eventBelongsToEditor(this['view'],_0x15b205)&&!this['ignoreDuringComposition'](_0x15b205)&&('keydown'==_0x15b205['type']&&this['keydown'](_0x15b205)||(0x0!=this['view']['updateState']?Promise['resolve']()['then'](()=>this['runHandlers'](_0x15b205['type'],_0x15b205)):this['runHandlers'](_0x15b205['type'],_0x15b205)));}['runHandlers'](_0x4d1f66,_0x1f1b2d){let _0x4882f0=this['handlers'][_0x4d1f66];if(_0x4882f0){for(let _0xe5d703 of _0x4882f0['observers'])_0xe5d703(this['view'],_0x1f1b2d);for(let _0x457140 of _0x4882f0['handlers']){if(_0x1f1b2d['defaultPrevented'])break;if(_0x457140(this['view'],_0x1f1b2d)){_0x1f1b2d['preventDefault']();break;}}}}['ensureHandlers'](_0x24dc20){let _0x3a88dc=computeHandlers(_0x24dc20),_0x28de20=this['handlers'],_0x3e29fc=this['view']['contentDOM'];for(let _0x3f4c24 in _0x3a88dc)if('scroll'!=_0x3f4c24){let _0x2e94a1=!_0x3a88dc[_0x3f4c24]['handlers']['length'],_0xf1df5d=_0x28de20[_0x3f4c24];_0xf1df5d&&_0x2e94a1!=!_0xf1df5d['handlers']['length']&&(_0x3e29fc['removeEventListener'](_0x3f4c24,this['handleEvent']),_0xf1df5d=null),_0xf1df5d||_0x3e29fc['addEventListener'](_0x3f4c24,this['handleEvent'],{'passive':_0x2e94a1});}for(let _0x1c00d2 in _0x28de20)'scroll'==_0x1c00d2||_0x3a88dc[_0x1c00d2]||_0x3e29fc['removeEventListener'](_0x1c00d2,this['handleEvent']);this['handlers']=_0x3a88dc;}['keydown'](_0x227382){if(this['lastKeyCode']=_0x227382['keyCode'],this['lastKeyTime']=Date['now'](),0x9==_0x227382['keyCode']&&this['tabFocusMode']>-0x1&&(!this['tabFocusMode']||Date['now']()<=this['tabFocusMode']))return!0x0;if(this['tabFocusMode']>0x0&&0x1b!=_0x227382['keyCode']&&modifierCodes['indexOf'](_0x227382['keyCode'])<0x0&&(this['tabFocusMode']=-0x1),browser['android']&&browser['chrome']&&!_0x227382['synthetic']&&(0xd==_0x227382['keyCode']||0x8==_0x227382['keyCode']))return this['view']['observer']['delayAndroidKey'](_0x227382['key'],_0x227382['keyCode']),!0x0;let _0x6939fd;return!browser['ios']||_0x227382['synthetic']||_0x227382['altKey']||_0x227382['metaKey']||!((_0x6939fd=PendingKeys['find'](_0x3f960d=>_0x3f960d['keyCode']==_0x227382['keyCode']))&&!_0x227382['ctrlKey']||EmacsyPendingKeys['indexOf'](_0x227382['key'])>-0x1&&_0x227382['ctrlKey']&&!_0x227382['shiftKey'])?(0xe5!=_0x227382['keyCode']&&this['view']['observer']['forceFlush'](),!0x1):(this['pendingIOSKey']=_0x6939fd||_0x227382,setTimeout(()=>this['flushIOSKey'](),0xfa),!0x0);}['flushIOSKey'](_0x42b03d){let _0xbb6707=this['pendingIOSKey'];return!!_0xbb6707&&(!('Enter'==_0xbb6707['key']&&_0x42b03d&&_0x42b03d['from']<_0x42b03d['to']&&/^\S+$/['test'](_0x42b03d['insert']['toString']()))&&(this['pendingIOSKey']=void 0x0,dispatchKey(this['view']['contentDOM'],_0xbb6707['key'],_0xbb6707['keyCode'],_0xbb6707 instanceof KeyboardEvent?_0xbb6707:void 0x0)));}['ignoreDuringComposition'](_0x2050a9){return!(!/^key/['test'](_0x2050a9['type'])||_0x2050a9['synthetic'])&&(this['composing']>0x0||!!(browser['safari']&&!browser['ios']&&this['compositionPendingKey']&&Date['now']()-this['compositionEndedAt']<0x64)&&(this['compositionPendingKey']=!0x1,!0x0));}['startMouseSelection'](_0x35f050){this['mouseSelection']&&this['mouseSelection']['destroy'](),this['mouseSelection']=_0x35f050;}['update'](_0x4590c0){this['view']['observer']['update'](_0x4590c0),this['mouseSelection']&&this['mouseSelection']['update'](_0x4590c0),this['draggedContent']&&_0x4590c0['docChanged']&&(this['draggedContent']=this['draggedContent']['map'](_0x4590c0['changes'])),_0x4590c0['transactions']['length']&&(this['lastKeyCode']=this['lastSelectionTime']=0x0);}['destroy'](){this['mouseSelection']&&this['mouseSelection']['destroy']();}}function bindHandler(_0x15ffe8,_0x3b1087){return(_0x163e5b,_0x30e38d)=>{try{return _0x3b1087['call'](_0x15ffe8,_0x30e38d,_0x163e5b);}catch(_0x5c9bfb){logException(_0x163e5b['state'],_0x5c9bfb);}};}function computeHandlers(_0x55577b){let _0xc7a295=Object['create'](null);function _0x43770e(_0xd1f53){return _0xc7a295[_0xd1f53]||(_0xc7a295[_0xd1f53]={'observers':[],'handlers':[]});}for(let _0x4ffa54 of _0x55577b){let _0x47697e=_0x4ffa54['spec'],_0x23bf26=_0x47697e&&_0x47697e['plugin']['domEventHandlers'],_0x10bcbd=_0x47697e&&_0x47697e['plugin']['domEventObservers'];if(_0x23bf26)for(let _0x58c84f in _0x23bf26){let _0x4891ce=_0x23bf26[_0x58c84f];_0x4891ce&&_0x43770e(_0x58c84f)['handlers']['push'](bindHandler(_0x4ffa54['value'],_0x4891ce));}if(_0x10bcbd)for(let _0x3900f5 in _0x10bcbd){let _0x4ee676=_0x10bcbd[_0x3900f5];_0x4ee676&&_0x43770e(_0x3900f5)['observers']['push'](bindHandler(_0x4ffa54['value'],_0x4ee676));}}for(let _0x116076 in handlers)_0x43770e(_0x116076)['handlers']['push'](handlers[_0x116076]);for(let _0x3ebaae in observers)_0x43770e(_0x3ebaae)['observers']['push'](observers[_0x3ebaae]);return _0xc7a295;}const PendingKeys=[{'key':'Backspace','keyCode':0x8,'inputType':'deleteContentBackward'},{'key':'Enter','keyCode':0xd,'inputType':'insertParagraph'},{'key':'Enter','keyCode':0xd,'inputType':'insertLineBreak'},{'key':'Delete','keyCode':0x2e,'inputType':'deleteContentForward'}],EmacsyPendingKeys='dthko',modifierCodes=[0x10,0x11,0x12,0x14,0x5b,0x5c,0xe0,0xe1],dragScrollMargin=0x6;function dragScrollSpeed(_0x3ffdab){return 0.7*Math['max'](0x0,_0x3ffdab)+0x8;}function dist(_0x45a5fb,_0x2c5aaa){return Math['max'](Math['abs'](_0x45a5fb['clientX']-_0x2c5aaa['clientX']),Math['abs'](_0x45a5fb['clientY']-_0x2c5aaa['clientY']));}class MouseSelection{constructor(_0x20bdd2,_0x470c5a,_0x203bc1,_0x145eb4){this['view']=_0x20bdd2,this['startEvent']=_0x470c5a,this['style']=_0x203bc1,this['mustSelect']=_0x145eb4,this['scrollSpeed']={'x':0x0,'y':0x0},this['scrolling']=-0x1,this['lastEvent']=_0x470c5a,this['scrollParents']=scrollableParents(_0x20bdd2['contentDOM']),this['atoms']=_0x20bdd2['state']['facet'](atomicRanges)['map'](_0x2b66de=>_0x2b66de(_0x20bdd2));let _0x374ce8=_0x20bdd2['contentDOM']['ownerDocument'];_0x374ce8['addEventListener']('mousemove',this['move']=this['move']['bind'](this)),_0x374ce8['addEventListener']('mouseup',this['up']=this['up']['bind'](this)),this['extend']=_0x470c5a['shiftKey'],this['multiple']=_0x20bdd2['state']['facet'](EditorState['allowMultipleSelections'])&&addsSelectionRange(_0x20bdd2,_0x470c5a),this['dragging']=!(!isInPrimarySelection(_0x20bdd2,_0x470c5a)||0x1!=getClickType(_0x470c5a))&&null;}['start'](_0x3efaf1){!0x1===this['dragging']&&this['select'](_0x3efaf1);}['move'](_0x3faf1e){if(0x0==_0x3faf1e['buttons'])return this['destroy']();if(this['dragging']||null==this['dragging']&&dist(this['startEvent'],_0x3faf1e)<0xa)return;this['select'](this['lastEvent']=_0x3faf1e);let _0x1ccc22=0x0,_0x1b6332=0x0,_0x273fdf=0x0,_0x39b3b2=0x0,_0x13cdde=this['view']['win']['innerWidth'],_0x2f1917=this['view']['win']['innerHeight'];this['scrollParents']['x']&&({left:_0x273fdf,right:_0x13cdde}=this['scrollParents']['x']['getBoundingClientRect']()),this['scrollParents']['y']&&({top:_0x39b3b2,bottom:_0x2f1917}=this['scrollParents']['y']['getBoundingClientRect']());let _0x5e26d3=getScrollMargins(this['view']);_0x3faf1e['clientX']-_0x5e26d3['left']<=_0x273fdf+dragScrollMargin?_0x1ccc22=-dragScrollSpeed(_0x273fdf-_0x3faf1e['clientX']):_0x3faf1e['clientX']+_0x5e26d3['right']>=_0x13cdde-dragScrollMargin&&(_0x1ccc22=dragScrollSpeed(_0x3faf1e['clientX']-_0x13cdde)),_0x3faf1e['clientY']-_0x5e26d3['top']<=_0x39b3b2+dragScrollMargin?_0x1b6332=-dragScrollSpeed(_0x39b3b2-_0x3faf1e['clientY']):_0x3faf1e['clientY']+_0x5e26d3['bottom']>=_0x2f1917-dragScrollMargin&&(_0x1b6332=dragScrollSpeed(_0x3faf1e['clientY']-_0x2f1917)),this['setScrollSpeed'](_0x1ccc22,_0x1b6332);}['up'](_0xf78753){null==this['dragging']&&this['select'](this['lastEvent']),this['dragging']||_0xf78753['preventDefault'](),this['destroy']();}['destroy'](){this['setScrollSpeed'](0x0,0x0);let _0x4d51ac=this['view']['contentDOM']['ownerDocument'];_0x4d51ac['removeEventListener']('mousemove',this['move']),_0x4d51ac['removeEventListener']('mouseup',this['up']),this['view']['inputState']['mouseSelection']=this['view']['inputState']['draggedContent']=null;}['setScrollSpeed'](_0x195974,_0x3e47a2){this['scrollSpeed']={'x':_0x195974,'y':_0x3e47a2},_0x195974||_0x3e47a2?this['scrolling']<0x0&&(this['scrolling']=setInterval(()=>this['scroll'](),0x32)):this['scrolling']>-0x1&&(clearInterval(this['scrolling']),this['scrolling']=-0x1);}['scroll'](){let {x:_0x4cb25e,y:_0x4ddcf6}=this['scrollSpeed'];_0x4cb25e&&this['scrollParents']['x']&&(this['scrollParents']['x']['scrollLeft']+=_0x4cb25e,_0x4cb25e=0x0),_0x4ddcf6&&this['scrollParents']['y']&&(this['scrollParents']['y']['scrollTop']+=_0x4ddcf6,_0x4ddcf6=0x0),(_0x4cb25e||_0x4ddcf6)&&this['view']['win']['scrollBy'](_0x4cb25e,_0x4ddcf6),!0x1===this['dragging']&&this['select'](this['lastEvent']);}['select'](_0x41552e){let {view:_0x2fad3a}=this,_0x2b3a79=skipAtomsForSelection(this['atoms'],this['style']['get'](_0x41552e,this['extend'],this['multiple']));!this['mustSelect']&&_0x2b3a79['eq'](_0x2fad3a['state']['selection'],!0x1===this['dragging'])||this['view']['dispatch']({'selection':_0x2b3a79,'userEvent':'select.pointer'}),this['mustSelect']=!0x1;}['update'](_0x148104){_0x148104['transactions']['some'](_0x53b9d7=>_0x53b9d7['isUserEvent']('input.type'))?this['destroy']():this['style']['update'](_0x148104)&&setTimeout(()=>this['select'](this['lastEvent']),0x14);}}function addsSelectionRange(_0x3fff47,_0x2fa06a){let _0x31f233=_0x3fff47['state']['facet'](clickAddsSelectionRange);return _0x31f233['length']?_0x31f233[0x0](_0x2fa06a):browser['mac']?_0x2fa06a['metaKey']:_0x2fa06a['ctrlKey'];}function dragMovesSelection(_0x1d8a5b,_0x472a62){let _0x24835a=_0x1d8a5b['state']['facet'](dragMovesSelection$1);return _0x24835a['length']?_0x24835a[0x0](_0x472a62):browser['mac']?!_0x472a62['altKey']:!_0x472a62['ctrlKey'];}function isInPrimarySelection(_0x4c6523,_0x52d325){let {main:_0x514472}=_0x4c6523['state']['selection'];if(_0x514472['empty'])return!0x1;let _0x252ed0=getSelection(_0x4c6523['root']);if(!_0x252ed0||0x0==_0x252ed0['rangeCount'])return!0x0;let _0x207e0a=_0x252ed0['getRangeAt'](0x0)['getClientRects']();for(let _0x597a68=0x0;_0x597a68<_0x207e0a['length'];_0x597a68++){let _0x2a1b3f=_0x207e0a[_0x597a68];if(_0x2a1b3f['left']<=_0x52d325['clientX']&&_0x2a1b3f['right']>=_0x52d325['clientX']&&_0x2a1b3f['top']<=_0x52d325['clientY']&&_0x2a1b3f['bottom']>=_0x52d325['clientY'])return!0x0;}return!0x1;}function eventBelongsToEditor(_0x463371,_0x1a9067){if(!_0x1a9067['bubbles'])return!0x0;if(_0x1a9067['defaultPrevented'])return!0x1;for(let _0x1c44cc,_0x500850=_0x1a9067['target'];_0x500850!=_0x463371['contentDOM'];_0x500850=_0x500850['parentNode'])if(!_0x500850||0xb==_0x500850['nodeType']||(_0x1c44cc=ContentView['get'](_0x500850))&&_0x1c44cc['ignoreEvent'](_0x1a9067))return!0x1;return!0x0;}const handlers=Object['create'](null),observers=Object['create'](null),brokenClipboardAPI=browser['ie']&&browser['ie_version']<0xf||browser['ios']&&browser['webkit_version']<0x25c;function capturePaste(_0xfd8780){let _0x593d0e=_0xfd8780['dom']['parentNode'];if(!_0x593d0e)return;let _0x32b4f7=_0x593d0e['appendChild'](document['createElement']('textarea'));_0x32b4f7['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x32b4f7['focus'](),setTimeout(()=>{_0xfd8780['focus'](),_0x32b4f7['remove'](),doPaste(_0xfd8780,_0x32b4f7['value']);},0x32);}function textFilter(_0x36bc97,_0x1f2a44,_0x524cfa){for(let _0x4ce966 of _0x36bc97['facet'](_0x1f2a44))_0x524cfa=_0x4ce966(_0x524cfa,_0x36bc97);return _0x524cfa;}function doPaste(_0x25ced5,_0x8e3dd2){_0x8e3dd2=textFilter(_0x25ced5['state'],clipboardInputFilter,_0x8e3dd2);let _0x8741f4,{state:_0x6c5619}=_0x25ced5,_0x3000aa=0x1,_0x4834ed=_0x6c5619['toText'](_0x8e3dd2),_0x2b46b2=_0x4834ed['lines']==_0x6c5619['selection']['ranges']['length'];if(null!=lastLinewiseCopy&&_0x6c5619['selection']['ranges']['every'](_0x41114b=>_0x41114b['empty'])&&lastLinewiseCopy==_0x4834ed['toString']()){let _0xcb875b=-0x1;_0x8741f4=_0x6c5619['changeByRange'](_0x106293=>{let _0x21c13c=_0x6c5619['doc']['lineAt'](_0x106293['from']);if(_0x21c13c['from']==_0xcb875b)return{'range':_0x106293};_0xcb875b=_0x21c13c['from'];let _0x442b23=_0x6c5619['toText']((_0x2b46b2?_0x4834ed['line'](_0x3000aa++)['text']:_0x8e3dd2)+_0x6c5619['lineBreak']);return{'changes':{'from':_0x21c13c['from'],'insert':_0x442b23},'range':EditorSelection['cursor'](_0x106293['from']+_0x442b23['length'])};});}else _0x8741f4=_0x2b46b2?_0x6c5619['changeByRange'](_0x126b85=>{let _0x6ab569=_0x4834ed['line'](_0x3000aa++);return{'changes':{'from':_0x126b85['from'],'to':_0x126b85['to'],'insert':_0x6ab569['text']},'range':EditorSelection['cursor'](_0x126b85['from']+_0x6ab569['length'])};}):_0x6c5619['replaceSelection'](_0x4834ed);_0x25ced5['dispatch'](_0x8741f4,{'userEvent':'input.paste','scrollIntoView':!0x0});}function rangeForClick(_0x4724d9,_0xe5fb49,_0xa5cd5a,_0x401bef){if(0x1==_0x401bef)return EditorSelection['cursor'](_0xe5fb49,_0xa5cd5a);if(0x2==_0x401bef)return groupAt(_0x4724d9['state'],_0xe5fb49,_0xa5cd5a);{let _0xb28c0e=LineView['find'](_0x4724d9['docView'],_0xe5fb49),_0x4ed9dc=_0x4724d9['state']['doc']['lineAt'](_0xb28c0e?_0xb28c0e['posAtEnd']:_0xe5fb49),_0x363a50=_0xb28c0e?_0xb28c0e['posAtStart']:_0x4ed9dc['from'],_0x46f8fc=_0xb28c0e?_0xb28c0e['posAtEnd']:_0x4ed9dc['to'];return _0x46f8fc<_0x4724d9['state']['doc']['length']&&_0x46f8fc==_0x4ed9dc['to']&&_0x46f8fc++,EditorSelection['range'](_0x363a50,_0x46f8fc);}}observers['scroll']=_0x1fd617=>{_0x1fd617['inputState']['lastScrollTop']=_0x1fd617['scrollDOM']['scrollTop'],_0x1fd617['inputState']['lastScrollLeft']=_0x1fd617['scrollDOM']['scrollLeft'];},handlers['keydown']=(_0x3a0d9f,_0x579db8)=>(_0x3a0d9f['inputState']['setSelectionOrigin']('select'),0x1b==_0x579db8['keyCode']&&0x0!=_0x3a0d9f['inputState']['tabFocusMode']&&(_0x3a0d9f['inputState']['tabFocusMode']=Date['now']()+0x7d0),!0x1),observers['touchstart']=(_0x478570,_0x2d5849)=>{_0x478570['inputState']['lastTouchTime']=Date['now'](),_0x478570['inputState']['setSelectionOrigin']('select.pointer');},observers['touchmove']=_0x7b7585=>{_0x7b7585['inputState']['setSelectionOrigin']('select.pointer');},handlers['mousedown']=(_0x1bb0b7,_0x219117)=>{if(_0x1bb0b7['observer']['flush'](),_0x1bb0b7['inputState']['lastTouchTime']>Date['now']()-0x7d0)return!0x1;let _0xdd8ea9=null;for(let _0x38c447 of _0x1bb0b7['state']['facet'](mouseSelectionStyle))if(_0xdd8ea9=_0x38c447(_0x1bb0b7,_0x219117),_0xdd8ea9)break;if(_0xdd8ea9||0x0!=_0x219117['button']||(_0xdd8ea9=basicMouseSelection(_0x1bb0b7,_0x219117)),_0xdd8ea9){let _0x4deb39=!_0x1bb0b7['hasFocus'];_0x1bb0b7['inputState']['startMouseSelection'](new MouseSelection(_0x1bb0b7,_0x219117,_0xdd8ea9,_0x4deb39)),_0x4deb39&&_0x1bb0b7['observer']['ignore'](()=>{focusPreventScroll(_0x1bb0b7['contentDOM']);let _0x30fdd5=_0x1bb0b7['root']['activeElement'];_0x30fdd5&&!_0x30fdd5['contains'](_0x1bb0b7['contentDOM'])&&_0x30fdd5['blur']();});let _0x578d1b=_0x1bb0b7['inputState']['mouseSelection'];if(_0x578d1b)return _0x578d1b['start'](_0x219117),!0x1===_0x578d1b['dragging'];}else _0x1bb0b7['inputState']['setSelectionOrigin']('select.pointer');return!0x1;};let inside=(_0x268238,_0x4d8779,_0x528e97)=>_0x4d8779>=_0x528e97['top']&&_0x4d8779<=_0x528e97['bottom']&&_0x268238>=_0x528e97['left']&&_0x268238<=_0x528e97['right'];function findPositionSide(_0x22d085,_0x322602,_0x28fce5,_0xe3aea6){let _0x285b37=LineView['find'](_0x22d085['docView'],_0x322602);if(!_0x285b37)return 0x1;let _0x2a0453=_0x322602-_0x285b37['posAtStart'];if(0x0==_0x2a0453)return 0x1;if(_0x2a0453==_0x285b37['length'])return-0x1;let _0x16f25c=_0x285b37['coordsAt'](_0x2a0453,-0x1);if(_0x16f25c&&inside(_0x28fce5,_0xe3aea6,_0x16f25c))return-0x1;let _0x450539=_0x285b37['coordsAt'](_0x2a0453,0x1);return _0x450539&&inside(_0x28fce5,_0xe3aea6,_0x450539)?0x1:_0x16f25c&&_0x16f25c['bottom']>=_0xe3aea6?-0x1:0x1;}function queryPos(_0x4782bf,_0x5a19e5){let _0x4aaf61=_0x4782bf['posAtCoords']({'x':_0x5a19e5['clientX'],'y':_0x5a19e5['clientY']},!0x1);return{'pos':_0x4aaf61,'bias':findPositionSide(_0x4782bf,_0x4aaf61,_0x5a19e5['clientX'],_0x5a19e5['clientY'])};}const BadMouseDetail=browser['ie']&&browser['ie_version']<=0xb;let lastMouseDown=null,lastMouseDownCount=0x0,lastMouseDownTime=0x0;function getClickType(_0x3a5e53){if(!BadMouseDetail)return _0x3a5e53['detail'];let _0x3aa611=lastMouseDown,_0x24c0bf=lastMouseDownTime;return lastMouseDown=_0x3a5e53,lastMouseDownTime=Date['now'](),lastMouseDownCount=!_0x3aa611||_0x24c0bf>Date['now']()-0x190&&Math['abs'](_0x3aa611['clientX']-_0x3a5e53['clientX'])<0x2&&Math['abs'](_0x3aa611['clientY']-_0x3a5e53['clientY'])<0x2?(lastMouseDownCount+0x1)%0x3:0x1;}function basicMouseSelection(_0x3b66f5,_0x4edd0b){let _0x5cdfc5=queryPos(_0x3b66f5,_0x4edd0b),_0x163561=getClickType(_0x4edd0b),_0x415066=_0x3b66f5['state']['selection'];return{'update'(_0xc9fc5b){_0xc9fc5b['docChanged']&&(_0x5cdfc5['pos']=_0xc9fc5b['changes']['mapPos'](_0x5cdfc5['pos']),_0x415066=_0x415066['map'](_0xc9fc5b['changes']));},'get'(_0x64bd25,_0x1dbef1,_0xc5564b){let _0x5f19d2,_0x2b4f7b=queryPos(_0x3b66f5,_0x64bd25),_0x24c4e6=rangeForClick(_0x3b66f5,_0x2b4f7b['pos'],_0x2b4f7b['bias'],_0x163561);if(_0x5cdfc5['pos']!=_0x2b4f7b['pos']&&!_0x1dbef1){let _0x5104ae=rangeForClick(_0x3b66f5,_0x5cdfc5['pos'],_0x5cdfc5['bias'],_0x163561),_0x14287d=Math['min'](_0x5104ae['from'],_0x24c4e6['from']),_0x2102a9=Math['max'](_0x5104ae['to'],_0x24c4e6['to']);_0x24c4e6=_0x14287d<_0x24c4e6['from']?EditorSelection['range'](_0x14287d,_0x2102a9):EditorSelection['range'](_0x2102a9,_0x14287d);}return _0x1dbef1?_0x415066['replaceRange'](_0x415066['main']['extend'](_0x24c4e6['from'],_0x24c4e6['to'])):_0xc5564b&&0x1==_0x163561&&_0x415066['ranges']['length']>0x1&&(_0x5f19d2=removeRangeAround(_0x415066,_0x2b4f7b['pos']))?_0x5f19d2:_0xc5564b?_0x415066['addRange'](_0x24c4e6):EditorSelection['create']([_0x24c4e6]);}};}function removeRangeAround(_0x629a7d,_0x248409){for(let _0x1de760=0x0;_0x1de760<_0x629a7d['ranges']['length'];_0x1de760++){let {from:_0x2481fa,to:_0x302f8e}=_0x629a7d['ranges'][_0x1de760];if(_0x2481fa<=_0x248409&&_0x302f8e>=_0x248409)return EditorSelection['create'](_0x629a7d['ranges']['slice'](0x0,_0x1de760)['concat'](_0x629a7d['ranges']['slice'](_0x1de760+0x1)),_0x629a7d['mainIndex']==_0x1de760?0x0:_0x629a7d['mainIndex']-(_0x629a7d['mainIndex']>_0x1de760?0x1:0x0));}return null;}function dropText(_0x86579d,_0x58a9a7,_0x2e6acc,_0x156b98){if(!(_0x2e6acc=textFilter(_0x86579d['state'],clipboardInputFilter,_0x2e6acc)))return;let _0x3218b9=_0x86579d['posAtCoords']({'x':_0x58a9a7['clientX'],'y':_0x58a9a7['clientY']},!0x1),{draggedContent:_0x3157da}=_0x86579d['inputState'],_0x1220f3=_0x156b98&&_0x3157da&&dragMovesSelection(_0x86579d,_0x58a9a7)?{'from':_0x3157da['from'],'to':_0x3157da['to']}:null,_0x3fe3bd={'from':_0x3218b9,'insert':_0x2e6acc},_0x3344d0=_0x86579d['state']['changes'](_0x1220f3?[_0x1220f3,_0x3fe3bd]:_0x3fe3bd);_0x86579d['focus'](),_0x86579d['dispatch']({'changes':_0x3344d0,'selection':{'anchor':_0x3344d0['mapPos'](_0x3218b9,-0x1),'head':_0x3344d0['mapPos'](_0x3218b9,0x1)},'userEvent':_0x1220f3?'move.drop':'input.drop'}),_0x86579d['inputState']['draggedContent']=null;}function captureCopy(_0x2ad3d4,_0x6c8bf4){let _0x598f3f=_0x2ad3d4['dom']['parentNode'];if(!_0x598f3f)return;let _0x2ae5df=_0x598f3f['appendChild'](document['createElement']('textarea'));_0x2ae5df['style']['cssText']='position:\x20fixed;\x20left:\x20-10000px;\x20top:\x2010px',_0x2ae5df['value']=_0x6c8bf4,_0x2ae5df['focus'](),_0x2ae5df['selectionEnd']=_0x6c8bf4['length'],_0x2ae5df['selectionStart']=0x0,setTimeout(()=>{_0x2ae5df['remove'](),_0x2ad3d4['focus']();},0x32);}function copiedRange(_0xa80a59){let _0x1475b2=[],_0x3b04e7=[],_0x39126c=!0x1;for(let _0x4540b0 of _0xa80a59['selection']['ranges'])_0x4540b0['empty']||(_0x1475b2['push'](_0xa80a59['sliceDoc'](_0x4540b0['from'],_0x4540b0['to'])),_0x3b04e7['push'](_0x4540b0));if(!_0x1475b2['length']){let _0x5e2ba7=-0x1;for(let {from:_0x5ea942}of _0xa80a59['selection']['ranges']){let _0x555afb=_0xa80a59['doc']['lineAt'](_0x5ea942);_0x555afb['number']>_0x5e2ba7&&(_0x1475b2['push'](_0x555afb['text']),_0x3b04e7['push']({'from':_0x555afb['from'],'to':Math['min'](_0xa80a59['doc']['length'],_0x555afb['to']+0x1)})),_0x5e2ba7=_0x555afb['number'];}_0x39126c=!0x0;}return{'text':textFilter(_0xa80a59,clipboardOutputFilter,_0x1475b2['join'](_0xa80a59['lineBreak'])),'ranges':_0x3b04e7,'linewise':_0x39126c};}handlers['dragstart']=(_0x228a12,_0x4ca823)=>{let {selection:{main:_0x4d1a4f}}=_0x228a12['state'];if(_0x4ca823['target']['draggable']){let _0x5df2a2=_0x228a12['docView']['nearest'](_0x4ca823['target']);if(_0x5df2a2&&_0x5df2a2['isWidget']){let _0x54e3c9=_0x5df2a2['posAtStart'],_0x1e4360=_0x54e3c9+_0x5df2a2['length'];(_0x54e3c9>=_0x4d1a4f['to']||_0x1e4360<=_0x4d1a4f['from'])&&(_0x4d1a4f=EditorSelection['range'](_0x54e3c9,_0x1e4360));}}let {inputState:_0x206a3e}=_0x228a12;return _0x206a3e['mouseSelection']&&(_0x206a3e['mouseSelection']['dragging']=!0x0),_0x206a3e['draggedContent']=_0x4d1a4f,_0x4ca823['dataTransfer']&&(_0x4ca823['dataTransfer']['setData']('Text',textFilter(_0x228a12['state'],clipboardOutputFilter,_0x228a12['state']['sliceDoc'](_0x4d1a4f['from'],_0x4d1a4f['to']))),_0x4ca823['dataTransfer']['effectAllowed']='copyMove'),!0x1;},handlers['dragend']=_0xa153c7=>(_0xa153c7['inputState']['draggedContent']=null,!0x1),handlers['drop']=(_0x1e5bee,_0x5d5ac7)=>{if(!_0x5d5ac7['dataTransfer'])return!0x1;if(_0x1e5bee['state']['readOnly'])return!0x0;let _0x3d9b4d=_0x5d5ac7['dataTransfer']['files'];if(_0x3d9b4d&&_0x3d9b4d['length']){let _0x341133=Array(_0x3d9b4d['length']),_0x23fb8c=0x0,_0x3d0ccd=()=>{++_0x23fb8c==_0x3d9b4d['length']&&dropText(_0x1e5bee,_0x5d5ac7,_0x341133['filter'](_0x39cde1=>null!=_0x39cde1)['join'](_0x1e5bee['state']['lineBreak']),!0x1);};for(let _0x3bd00d=0x0;_0x3bd00d<_0x3d9b4d['length'];_0x3bd00d++){let _0xf489bd=new FileReader();_0xf489bd['onerror']=_0x3d0ccd,_0xf489bd['onload']=()=>{/[\x00-\x08\x0e-\x1f]{2}/['test'](_0xf489bd['result'])||(_0x341133[_0x3bd00d]=_0xf489bd['result']),_0x3d0ccd();},_0xf489bd['readAsText'](_0x3d9b4d[_0x3bd00d]);}return!0x0;}{let _0x18980b=_0x5d5ac7['dataTransfer']['getData']('Text');if(_0x18980b)return dropText(_0x1e5bee,_0x5d5ac7,_0x18980b,!0x0),!0x0;}return!0x1;},handlers['paste']=(_0x39faac,_0x6b8870)=>{if(_0x39faac['state']['readOnly'])return!0x0;_0x39faac['observer']['flush']();let _0x523acd=brokenClipboardAPI?null:_0x6b8870['clipboardData'];return _0x523acd?(doPaste(_0x39faac,_0x523acd['getData']('text/plain')||_0x523acd['getData']('text/uri-list')),!0x0):(capturePaste(_0x39faac),!0x1);};let lastLinewiseCopy=null;handlers['copy']=handlers['cut']=(_0x40ab28,_0x3b1fbd)=>{let {text:_0x5ba6ce,ranges:_0x1a1546,linewise:_0x1b971c}=copiedRange(_0x40ab28['state']);if(!_0x5ba6ce&&!_0x1b971c)return!0x1;lastLinewiseCopy=_0x1b971c?_0x5ba6ce:null,'cut'!=_0x3b1fbd['type']||_0x40ab28['state']['readOnly']||_0x40ab28['dispatch']({'changes':_0x1a1546,'scrollIntoView':!0x0,'userEvent':'delete.cut'});let _0x1f9b77=brokenClipboardAPI?null:_0x3b1fbd['clipboardData'];return _0x1f9b77?(_0x1f9b77['clearData'](),_0x1f9b77['setData']('text/plain',_0x5ba6ce),!0x0):(captureCopy(_0x40ab28,_0x5ba6ce),!0x1);};const isFocusChange=Annotation['define']();function focusChangeTransaction(_0x4808f2,_0x413371){let _0x52a064=[];for(let _0x44c802 of _0x4808f2['facet'](focusChangeEffect)){let _0x4e920d=_0x44c802(_0x4808f2,_0x413371);_0x4e920d&&_0x52a064['push'](_0x4e920d);}return _0x52a064['length']?_0x4808f2['update']({'effects':_0x52a064,'annotations':isFocusChange['of'](!0x0)}):null;}function updateForFocusChange(_0x13bb37){setTimeout(()=>{let _0x2ad6e5=_0x13bb37['hasFocus'];if(_0x2ad6e5!=_0x13bb37['inputState']['notifiedFocused']){let _0x3dc594=focusChangeTransaction(_0x13bb37['state'],_0x2ad6e5);_0x3dc594?_0x13bb37['dispatch'](_0x3dc594):_0x13bb37['update']([]);}},0xa);}observers['focus']=_0x26fb38=>{_0x26fb38['inputState']['lastFocusTime']=Date['now'](),_0x26fb38['scrollDOM']['scrollTop']||!_0x26fb38['inputState']['lastScrollTop']&&!_0x26fb38['inputState']['lastScrollLeft']||(_0x26fb38['scrollDOM']['scrollTop']=_0x26fb38['inputState']['lastScrollTop'],_0x26fb38['scrollDOM']['scrollLeft']=_0x26fb38['inputState']['lastScrollLeft']),updateForFocusChange(_0x26fb38);},observers['blur']=_0x4bafe8=>{_0x4bafe8['observer']['clearSelectionRange'](),updateForFocusChange(_0x4bafe8);},observers['compositionstart']=observers['compositionupdate']=_0x35adb3=>{_0x35adb3['observer']['editContext']||(null==_0x35adb3['inputState']['compositionFirstChange']&&(_0x35adb3['inputState']['compositionFirstChange']=!0x0),_0x35adb3['inputState']['composing']<0x0&&(_0x35adb3['inputState']['composing']=0x0));},observers['compositionend']=_0x1ccab1=>{_0x1ccab1['observer']['editContext']||(_0x1ccab1['inputState']['composing']=-0x1,_0x1ccab1['inputState']['compositionEndedAt']=Date['now'](),_0x1ccab1['inputState']['compositionPendingKey']=!0x0,_0x1ccab1['inputState']['compositionPendingChange']=_0x1ccab1['observer']['pendingRecords']()['length']>0x0,_0x1ccab1['inputState']['compositionFirstChange']=null,browser['chrome']&&browser['android']?_0x1ccab1['observer']['flushSoon']():_0x1ccab1['inputState']['compositionPendingChange']?Promise['resolve']()['then'](()=>_0x1ccab1['observer']['flush']()):setTimeout(()=>{_0x1ccab1['inputState']['composing']<0x0&&_0x1ccab1['docView']['hasComposition']&&_0x1ccab1['update']([]);},0x32));},observers['contextmenu']=_0x46e923=>{_0x46e923['inputState']['lastContextMenu']=Date['now']();},handlers['beforeinput']=(_0x359468,_0x1932ef)=>{var _0x3a9c94,_0x66a7da;if('insertReplacementText'==_0x1932ef['inputType']&&_0x359468['observer']['editContext']){let _0x18701d=null===(_0x3a9c94=_0x1932ef['dataTransfer'])||void 0x0===_0x3a9c94?void 0x0:_0x3a9c94['getData']('text/plain'),_0x41c48e=_0x1932ef['getTargetRanges']();if(_0x18701d&&_0x41c48e['length']){let _0x43cb43=_0x41c48e[0x0],_0x23194e=_0x359468['posAtDOM'](_0x43cb43['startContainer'],_0x43cb43['startOffset']),_0x2a0a44=_0x359468['posAtDOM'](_0x43cb43['endContainer'],_0x43cb43['endOffset']);return applyDOMChangeInner(_0x359468,{'from':_0x23194e,'to':_0x2a0a44,'insert':_0x359468['state']['toText'](_0x18701d)},null),!0x0;}}let _0x2066fd;if(browser['chrome']&&browser['android']&&(_0x2066fd=PendingKeys['find'](_0x3d92be=>_0x3d92be['inputType']==_0x1932ef['inputType']))&&(_0x359468['observer']['delayAndroidKey'](_0x2066fd['key'],_0x2066fd['keyCode']),'Backspace'==_0x2066fd['key']||'Delete'==_0x2066fd['key'])){let _0xc8aaa6=(null===(_0x66a7da=window['visualViewport'])||void 0x0===_0x66a7da?void 0x0:_0x66a7da['height'])||0x0;setTimeout(()=>{var _0x4e6c14;((null===(_0x4e6c14=window['visualViewport'])||void 0x0===_0x4e6c14?void 0x0:_0x4e6c14['height'])||0x0)>_0xc8aaa6+0xa&&_0x359468['hasFocus']&&(_0x359468['contentDOM']['blur'](),_0x359468['focus']());},0x64);}return browser['ios']&&'deleteContentForward'==_0x1932ef['inputType']&&_0x359468['observer']['flushSoon'](),browser['safari']&&'insertText'==_0x1932ef['inputType']&&_0x359468['inputState']['composing']>=0x0&&setTimeout(()=>observers['compositionend'](_0x359468,_0x1932ef),0x14),!0x1;};const appliedFirefoxHack=new Set();function firefoxCopyCutHack(_0x50a18a){appliedFirefoxHack['has'](_0x50a18a)||(appliedFirefoxHack['add'](_0x50a18a),_0x50a18a['addEventListener']('copy',()=>{}),_0x50a18a['addEventListener']('cut',()=>{}));}const wrappingWhiteSpace=['pre-wrap','normal','pre-line','break-spaces'];let heightChangeFlag=!0x1;function clearHeightChangeFlag(){heightChangeFlag=!0x1;}class HeightOracle{constructor(_0x115ec9){this['lineWrapping']=_0x115ec9,this['doc']=Text['empty'],this['heightSamples']={},this['lineHeight']=0xe,this['charWidth']=0x7,this['textHeight']=0xe,this['lineLength']=0x1e;}['heightForGap'](_0x16faba,_0x52f913){let _0x125ece=this['doc']['lineAt'](_0x52f913)['number']-this['doc']['lineAt'](_0x16faba)['number']+0x1;return this['lineWrapping']&&(_0x125ece+=Math['max'](0x0,Math['ceil']((_0x52f913-_0x16faba-_0x125ece*this['lineLength']*0.5)/this['lineLength']))),this['lineHeight']*_0x125ece;}['heightForLine'](_0x38dc4c){if(!this['lineWrapping'])return this['lineHeight'];return(0x1+Math['max'](0x0,Math['ceil']((_0x38dc4c-this['lineLength'])/Math['max'](0x1,this['lineLength']-0x5))))*this['lineHeight'];}['setDoc'](_0x39d292){return this['doc']=_0x39d292,this;}['mustRefreshForWrapping'](_0x28a473){return wrappingWhiteSpace['indexOf'](_0x28a473)>-0x1!=this['lineWrapping'];}['mustRefreshForHeights'](_0x98edb6){let _0x243119=!0x1;for(let _0x794482=0x0;_0x794482<_0x98edb6['length'];_0x794482++){let _0x371d52=_0x98edb6[_0x794482];_0x371d52<0x0?_0x794482++:this['heightSamples'][Math['floor'](0xa*_0x371d52)]||(_0x243119=!0x0,this['heightSamples'][Math['floor'](0xa*_0x371d52)]=!0x0);}return _0x243119;}['refresh'](_0x1b62ec,_0x6f1a90,_0x591269,_0x4b846f,_0x1aa65,_0x2ded3b){let _0x59da1e=wrappingWhiteSpace['indexOf'](_0x1b62ec)>-0x1,_0x2af081=Math['round'](_0x6f1a90)!=Math['round'](this['lineHeight'])||this['lineWrapping']!=_0x59da1e;if(this['lineWrapping']=_0x59da1e,this['lineHeight']=_0x6f1a90,this['charWidth']=_0x591269,this['textHeight']=_0x4b846f,this['lineLength']=_0x1aa65,_0x2af081){this['heightSamples']={};for(let _0x5131b1=0x0;_0x5131b1<_0x2ded3b['length'];_0x5131b1++){let _0x46a474=_0x2ded3b[_0x5131b1];_0x46a474<0x0?_0x5131b1++:this['heightSamples'][Math['floor'](0xa*_0x46a474)]=!0x0;}}return _0x2af081;}}class MeasuredHeights{constructor(_0x481073,_0x32da3a){this['from']=_0x481073,this['heights']=_0x32da3a,this['index']=0x0;}get['more'](){return this['index']<this['heights']['length'];}}class BlockInfo{constructor(_0x4d433f,_0x2122e1,_0x2bfb09,_0x7938e2,_0x20a386){this['from']=_0x4d433f,this['length']=_0x2122e1,this['top']=_0x2bfb09,this['height']=_0x7938e2,this['_content']=_0x20a386;}get['type'](){return'number'==typeof this['_content']?BlockType['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 PointDecoration?this['_content']['widget']:null;}get['widgetLineBreaks'](){return'number'==typeof this['_content']?this['_content']:0x0;}['join'](_0x293e5e){let _0x4201b6=(Array['isArray'](this['_content'])?this['_content']:[this])['concat'](Array['isArray'](_0x293e5e['_content'])?_0x293e5e['_content']:[_0x293e5e]);return new BlockInfo(this['from'],this['length']+_0x293e5e['length'],this['top'],this['height']+_0x293e5e['height'],_0x4201b6);}}var QueryType=function(_0x578854){return _0x578854[_0x578854['ByPos']=0x0]='ByPos',_0x578854[_0x578854['ByHeight']=0x1]='ByHeight',_0x578854[_0x578854['ByPosNoHeight']=0x2]='ByPosNoHeight',_0x578854;}(QueryType||(QueryType={}));const Epsilon=0.001;class HeightMap{constructor(_0x25c59c,_0x4c4283,_0x1b7b7d=0x2){this['length']=_0x25c59c,this['height']=_0x4c4283,this['flags']=_0x1b7b7d;}get['outdated'](){return(0x2&this['flags'])>0x0;}set['outdated'](_0xf3a996){this['flags']=(_0xf3a996?0x2:0x0)|-0x3&this['flags'];}['setHeight'](_0x815de4){this['height']!=_0x815de4&&(Math['abs'](this['height']-_0x815de4)>Epsilon&&(heightChangeFlag=!0x0),this['height']=_0x815de4);}['replace'](_0x374fa6,_0x442174,_0x306052){return HeightMap['of'](_0x306052);}['decomposeLeft'](_0x3e7b07,_0x3529fe){_0x3529fe['push'](this);}['decomposeRight'](_0x1e8b3e,_0x45c995){_0x45c995['push'](this);}['applyChanges'](_0x3adea3,_0x191dce,_0x1fdf19,_0x2fdfef){let _0x3393b1=this,_0x99edb0=_0x1fdf19['doc'];for(let _0x4ece9c=_0x2fdfef['length']-0x1;_0x4ece9c>=0x0;_0x4ece9c--){let {fromA:_0x49d492,toA:_0x41f55a,fromB:_0x593fdd,toB:_0xf9530a}=_0x2fdfef[_0x4ece9c],_0x129967=_0x3393b1['lineAt'](_0x49d492,QueryType['ByPosNoHeight'],_0x1fdf19['setDoc'](_0x191dce),0x0,0x0),_0x4a5e66=_0x129967['to']>=_0x41f55a?_0x129967:_0x3393b1['lineAt'](_0x41f55a,QueryType['ByPosNoHeight'],_0x1fdf19,0x0,0x0);for(_0xf9530a+=_0x4a5e66['to']-_0x41f55a,_0x41f55a=_0x4a5e66['to'];_0x4ece9c>0x0&&_0x129967['from']<=_0x2fdfef[_0x4ece9c-0x1]['toA'];)_0x49d492=_0x2fdfef[_0x4ece9c-0x1]['fromA'],_0x593fdd=_0x2fdfef[_0x4ece9c-0x1]['fromB'],_0x4ece9c--,_0x49d492<_0x129967['from']&&(_0x129967=_0x3393b1['lineAt'](_0x49d492,QueryType['ByPosNoHeight'],_0x1fdf19,0x0,0x0));_0x593fdd+=_0x129967['from']-_0x49d492,_0x49d492=_0x129967['from'];let _0x169f45=NodeBuilder['build'](_0x1fdf19['setDoc'](_0x99edb0),_0x3adea3,_0x593fdd,_0xf9530a);_0x3393b1=replace(_0x3393b1,_0x3393b1['replace'](_0x49d492,_0x41f55a,_0x169f45));}return _0x3393b1['updateHeight'](_0x1fdf19,0x0);}static['empty'](){return new HeightMapText(0x0,0x0);}static['of'](_0x210651){if(0x1==_0x210651['length'])return _0x210651[0x0];let _0x3d0c68=0x0,_0xc08337=_0x210651['length'],_0x36e247=0x0,_0x18daef=0x0;for(;;)if(_0x3d0c68==_0xc08337){if(_0x36e247>0x2*_0x18daef){let _0x1a533e=_0x210651[_0x3d0c68-0x1];_0x1a533e['break']?_0x210651['splice'](--_0x3d0c68,0x1,_0x1a533e['left'],null,_0x1a533e['right']):_0x210651['splice'](--_0x3d0c68,0x1,_0x1a533e['left'],_0x1a533e['right']),_0xc08337+=0x1+_0x1a533e['break'],_0x36e247-=_0x1a533e['size'];}else{if(!(_0x18daef>0x2*_0x36e247))break;{let _0x4ce769=_0x210651[_0xc08337];_0x4ce769['break']?_0x210651['splice'](_0xc08337,0x1,_0x4ce769['left'],null,_0x4ce769['right']):_0x210651['splice'](_0xc08337,0x1,_0x4ce769['left'],_0x4ce769['right']),_0xc08337+=0x2+_0x4ce769['break'],_0x18daef-=_0x4ce769['size'];}}}else{if(_0x36e247<_0x18daef){let _0x1f164d=_0x210651[_0x3d0c68++];_0x1f164d&&(_0x36e247+=_0x1f164d['size']);}else{let _0x32e68f=_0x210651[--_0xc08337];_0x32e68f&&(_0x18daef+=_0x32e68f['size']);}}let _0x9f6dae=0x0;return null==_0x210651[_0x3d0c68-0x1]?(_0x9f6dae=0x1,_0x3d0c68--):null==_0x210651[_0x3d0c68]&&(_0x9f6dae=0x1,_0xc08337++),new HeightMapBranch(HeightMap['of'](_0x210651['slice'](0x0,_0x3d0c68)),_0x9f6dae,HeightMap['of'](_0x210651['slice'](_0xc08337)));}}function replace(_0x6b3f2b,_0x374e15){return _0x6b3f2b==_0x374e15?_0x6b3f2b:(_0x6b3f2b['constructor']!=_0x374e15['constructor']&&(heightChangeFlag=!0x0),_0x374e15);}HeightMap['prototype']['size']=0x1;class HeightMapBlock extends HeightMap{constructor(_0x319804,_0x455fae,_0x3d20b9){super(_0x319804,_0x455fae),this['deco']=_0x3d20b9;}['blockAt'](_0x221e4e,_0x3f7dd1,_0x1673b2,_0x10b20b){return new BlockInfo(_0x10b20b,this['length'],_0x1673b2,this['height'],this['deco']||0x0);}['lineAt'](_0x4fcb28,_0x48c942,_0x11105d,_0xe0bfa0,_0x244660){return this['blockAt'](0x0,_0x11105d,_0xe0bfa0,_0x244660);}['forEachLine'](_0x5e7e71,_0x2146f4,_0x5ba321,_0x101565,_0x12ea4a,_0x4448de){_0x5e7e71<=_0x12ea4a+this['length']&&_0x2146f4>=_0x12ea4a&&_0x4448de(this['blockAt'](0x0,_0x5ba321,_0x101565,_0x12ea4a));}['updateHeight'](_0x2e5312,_0x13d403=0x0,_0x11e7b3=!0x1,_0x28a494){return _0x28a494&&_0x28a494['from']<=_0x13d403&&_0x28a494['more']&&this['setHeight'](_0x28a494['heights'][_0x28a494['index']++]),this['outdated']=!0x1,this;}['toString'](){return'block('+this['length']+')';}}class HeightMapText extends HeightMapBlock{constructor(_0x595793,_0x23b175){super(_0x595793,_0x23b175,null),this['collapsed']=0x0,this['widgetHeight']=0x0,this['breaks']=0x0;}['blockAt'](_0x2442f4,_0x24a35e,_0x420d53,_0x4fa5ac){return new BlockInfo(_0x4fa5ac,this['length'],_0x420d53,this['height'],this['breaks']);}['replace'](_0x53c17f,_0x1e2a5b,_0x4985f1){let _0x175768=_0x4985f1[0x0];return 0x1==_0x4985f1['length']&&(_0x175768 instanceof HeightMapText||_0x175768 instanceof HeightMapGap&&0x4&_0x175768['flags'])&&Math['abs'](this['length']-_0x175768['length'])<0xa?(_0x175768 instanceof HeightMapGap?_0x175768=new HeightMapText(_0x175768['length'],this['height']):_0x175768['height']=this['height'],this['outdated']||(_0x175768['outdated']=!0x1),_0x175768):HeightMap['of'](_0x4985f1);}['updateHeight'](_0x755ad7,_0x3aa255=0x0,_0x100ad4=!0x1,_0x292fed){return _0x292fed&&_0x292fed['from']<=_0x3aa255&&_0x292fed['more']?this['setHeight'](_0x292fed['heights'][_0x292fed['index']++]):(_0x100ad4||this['outdated'])&&this['setHeight'](Math['max'](this['widgetHeight'],_0x755ad7['heightForLine'](this['length']-this['collapsed']))+this['breaks']*_0x755ad7['lineHeight']),this['outdated']=!0x1,this;}['toString'](){return'line('+this['length']+(this['collapsed']?-this['collapsed']:'')+(this['widgetHeight']?':'+this['widgetHeight']:'')+')';}}class HeightMapGap extends HeightMap{constructor(_0x50c639){super(_0x50c639,0x0);}['heightMetrics'](_0x21f341,_0x4516c7){let _0x197aa1,_0x18497c=_0x21f341['doc']['lineAt'](_0x4516c7)['number'],_0x4273da=_0x21f341['doc']['lineAt'](_0x4516c7+this['length'])['number'],_0x301e48=_0x4273da-_0x18497c+0x1,_0x4c8f95=0x0;if(_0x21f341['lineWrapping']){let _0x57ab22=Math['min'](this['height'],_0x21f341['lineHeight']*_0x301e48);_0x197aa1=_0x57ab22/_0x301e48,this['length']>_0x301e48+0x1&&(_0x4c8f95=(this['height']-_0x57ab22)/(this['length']-_0x301e48-0x1));}else _0x197aa1=this['height']/_0x301e48;return{'firstLine':_0x18497c,'lastLine':_0x4273da,'perLine':_0x197aa1,'perChar':_0x4c8f95};}['blockAt'](_0x4eed95,_0x58f359,_0x3a292b,_0x2bb15a){let {firstLine:_0x43c2b0,lastLine:_0x1caaca,perLine:_0x574084,perChar:_0x40a5e4}=this['heightMetrics'](_0x58f359,_0x2bb15a);if(_0x58f359['lineWrapping']){let _0x17416d=_0x2bb15a+(_0x4eed95<_0x58f359['lineHeight']?0x0:Math['round'](Math['max'](0x0,Math['min'](0x1,(_0x4eed95-_0x3a292b)/this['height']))*this['length'])),_0x4dc345=_0x58f359['doc']['lineAt'](_0x17416d),_0x35a663=_0x574084+_0x4dc345['length']*_0x40a5e4,_0x422296=Math['max'](_0x3a292b,_0x4eed95-_0x35a663/0x2);return new BlockInfo(_0x4dc345['from'],_0x4dc345['length'],_0x422296,_0x35a663,0x0);}{let _0x5d13ec=Math['max'](0x0,Math['min'](_0x1caaca-_0x43c2b0,Math['floor']((_0x4eed95-_0x3a292b)/_0x574084))),{from:_0x1af0b0,length:_0x571150}=_0x58f359['doc']['line'](_0x43c2b0+_0x5d13ec);return new BlockInfo(_0x1af0b0,_0x571150,_0x3a292b+_0x574084*_0x5d13ec,_0x574084,0x0);}}['lineAt'](_0x1ebbca,_0x222443,_0x357ebc,_0x16e00f,_0x3a4b5d){if(_0x222443==QueryType['ByHeight'])return this['blockAt'](_0x1ebbca,_0x357ebc,_0x16e00f,_0x3a4b5d);if(_0x222443==QueryType['ByPosNoHeight']){let {from:_0x4573cd,to:_0xd95e7}=_0x357ebc['doc']['lineAt'](_0x1ebbca);return new BlockInfo(_0x4573cd,_0xd95e7-_0x4573cd,0x0,0x0,0x0);}let {firstLine:_0x354473,perLine:_0x140d1c,perChar:_0x3ea6a7}=this['heightMetrics'](_0x357ebc,_0x3a4b5d),_0x4d1cc3=_0x357ebc['doc']['lineAt'](_0x1ebbca),_0x153e18=_0x140d1c+_0x4d1cc3['length']*_0x3ea6a7,_0x5effe7=_0x4d1cc3['number']-_0x354473,_0x45ef55=_0x16e00f+_0x140d1c*_0x5effe7+_0x3ea6a7*(_0x4d1cc3['from']-_0x3a4b5d-_0x5effe7);return new BlockInfo(_0x4d1cc3['from'],_0x4d1cc3['length'],Math['max'](_0x16e00f,Math['min'](_0x45ef55,_0x16e00f+this['height']-_0x153e18)),_0x153e18,0x0);}['forEachLine'](_0x4967bc,_0x5266e4,_0x3ab837,_0x1c4945,_0x28cb45,_0x5d28e5){_0x4967bc=Math['max'](_0x4967bc,_0x28cb45),_0x5266e4=Math['min'](_0x5266e4,_0x28cb45+this['length']);let {firstLine:_0xdff6cb,perLine:_0x232df9,perChar:_0x524303}=this['heightMetrics'](_0x3ab837,_0x28cb45);for(let _0x1615ba=_0x4967bc,_0x257dc6=_0x1c4945;_0x1615ba<=_0x5266e4;){let _0x928bb=_0x3ab837['doc']['lineAt'](_0x1615ba);if(_0x1615ba==_0x4967bc){let _0x40f100=_0x928bb['number']-_0xdff6cb;_0x257dc6+=_0x232df9*_0x40f100+_0x524303*(_0x4967bc-_0x28cb45-_0x40f100);}let _0x3d37da=_0x232df9+_0x524303*_0x928bb['length'];_0x5d28e5(new BlockInfo(_0x928bb['from'],_0x928bb['length'],_0x257dc6,_0x3d37da,0x0)),_0x257dc6+=_0x3d37da,_0x1615ba=_0x928bb['to']+0x1;}}['replace'](_0x1130ff,_0x1e59f7,_0x4b5acc){let _0x38d355=this['length']-_0x1e59f7;if(_0x38d355>0x0){let _0x157f62=_0x4b5acc[_0x4b5acc['length']-0x1];_0x157f62 instanceof HeightMapGap?_0x4b5acc[_0x4b5acc['length']-0x1]=new HeightMapGap(_0x157f62['length']+_0x38d355):_0x4b5acc['push'](null,new HeightMapGap(_0x38d355-0x1));}if(_0x1130ff>0x0){let _0x2c5390=_0x4b5acc[0x0];_0x2c5390 instanceof HeightMapGap?_0x4b5acc[0x0]=new HeightMapGap(_0x1130ff+_0x2c5390['length']):_0x4b5acc['unshift'](new HeightMapGap(_0x1130ff-0x1),null);}return HeightMap['of'](_0x4b5acc);}['decomposeLeft'](_0x48f7f8,_0x4e3d09){_0x4e3d09['push'](new HeightMapGap(_0x48f7f8-0x1),null);}['decomposeRight'](_0xca229c,_0x24f982){_0x24f982['push'](null,new HeightMapGap(this['length']-_0xca229c-0x1));}['updateHeight'](_0x7fa169,_0x55d67f=0x0,_0x3d2f33=!0x1,_0xf6ea34){let _0x3740cb=_0x55d67f+this['length'];if(_0xf6ea34&&_0xf6ea34['from']<=_0x55d67f+this['length']&&_0xf6ea34['more']){let _0x520899=[],_0x5cdc38=Math['max'](_0x55d67f,_0xf6ea34['from']),_0x3bcf5f=-0x1;for(_0xf6ea34['from']>_0x55d67f&&_0x520899['push'](new HeightMapGap(_0xf6ea34['from']-_0x55d67f-0x1)['updateHeight'](_0x7fa169,_0x55d67f));_0x5cdc38<=_0x3740cb&&_0xf6ea34['more'];){let _0x2e7bcf=_0x7fa169['doc']['lineAt'](_0x5cdc38)['length'];_0x520899['length']&&_0x520899['push'](null);let _0x5f41a2=_0xf6ea34['heights'][_0xf6ea34['index']++];-0x1==_0x3bcf5f?_0x3bcf5f=_0x5f41a2:Math['abs'](_0x5f41a2-_0x3bcf5f)>=Epsilon&&(_0x3bcf5f=-0x2);let _0x4e75fa=new HeightMapText(_0x2e7bcf,_0x5f41a2);_0x4e75fa['outdated']=!0x1,_0x520899['push'](_0x4e75fa),_0x5cdc38+=_0x2e7bcf+0x1;}_0x5cdc38<=_0x3740cb&&_0x520899['push'](null,new HeightMapGap(_0x3740cb-_0x5cdc38)['updateHeight'](_0x7fa169,_0x5cdc38));let _0x535caa=HeightMap['of'](_0x520899);return(_0x3bcf5f<0x0||Math['abs'](_0x535caa['height']-this['height'])>=Epsilon||Math['abs'](_0x3bcf5f-this['heightMetrics'](_0x7fa169,_0x55d67f)['perLine'])>=Epsilon)&&(heightChangeFlag=!0x0),replace(this,_0x535caa);}return(_0x3d2f33||this['outdated'])&&(this['setHeight'](_0x7fa169['heightForGap'](_0x55d67f,_0x55d67f+this['length'])),this['outdated']=!0x1),this;}['toString'](){return'gap('+this['length']+')';}}class HeightMapBranch extends HeightMap{constructor(_0x64b19,_0x802ec,_0x49ecca){super(_0x64b19['length']+_0x802ec+_0x49ecca['length'],_0x64b19['height']+_0x49ecca['height'],_0x802ec|(_0x64b19['outdated']||_0x49ecca['outdated']?0x2:0x0)),this['left']=_0x64b19,this['right']=_0x49ecca,this['size']=_0x64b19['size']+_0x49ecca['size'];}get['break'](){return 0x1&this['flags'];}['blockAt'](_0x37342c,_0x37d72f,_0x58f546,_0x51b10e){let _0x46d3fb=_0x58f546+this['left']['height'];return _0x37342c<_0x46d3fb?this['left']['blockAt'](_0x37342c,_0x37d72f,_0x58f546,_0x51b10e):this['right']['blockAt'](_0x37342c,_0x37d72f,_0x46d3fb,_0x51b10e+this['left']['length']+this['break']);}['lineAt'](_0x927f09,_0x37c278,_0x10c4a4,_0x3dc2c2,_0xa88a94){let _0x265f3c=_0x3dc2c2+this['left']['height'],_0x16b348=_0xa88a94+this['left']['length']+this['break'],_0x58ec3a=_0x37c278==QueryType['ByHeight']?_0x927f09<_0x265f3c:_0x927f09<_0x16b348,_0x2c5d62=_0x58ec3a?this['left']['lineAt'](_0x927f09,_0x37c278,_0x10c4a4,_0x3dc2c2,_0xa88a94):this['right']['lineAt'](_0x927f09,_0x37c278,_0x10c4a4,_0x265f3c,_0x16b348);if(this['break']||(_0x58ec3a?_0x2c5d62['to']<_0x16b348:_0x2c5d62['from']>_0x16b348))return _0x2c5d62;let _0xade8ac=_0x37c278==QueryType['ByPosNoHeight']?QueryType['ByPosNoHeight']:QueryType['ByPos'];return _0x58ec3a?_0x2c5d62['join'](this['right']['lineAt'](_0x16b348,_0xade8ac,_0x10c4a4,_0x265f3c,_0x16b348)):this['left']['lineAt'](_0x16b348,_0xade8ac,_0x10c4a4,_0x3dc2c2,_0xa88a94)['join'](_0x2c5d62);}['forEachLine'](_0x19de89,_0x436bed,_0x39c873,_0x2e81cf,_0x237ee7,_0x488c46){let _0x49a18e=_0x2e81cf+this['left']['height'],_0x31b0e1=_0x237ee7+this['left']['length']+this['break'];if(this['break'])_0x19de89<_0x31b0e1&&this['left']['forEachLine'](_0x19de89,_0x436bed,_0x39c873,_0x2e81cf,_0x237ee7,_0x488c46),_0x436bed>=_0x31b0e1&&this['right']['forEachLine'](_0x19de89,_0x436bed,_0x39c873,_0x49a18e,_0x31b0e1,_0x488c46);else{let _0x3d59d1=this['lineAt'](_0x31b0e1,QueryType['ByPos'],_0x39c873,_0x2e81cf,_0x237ee7);_0x19de89<_0x3d59d1['from']&&this['left']['forEachLine'](_0x19de89,_0x3d59d1['from']-0x1,_0x39c873,_0x2e81cf,_0x237ee7,_0x488c46),_0x3d59d1['to']>=_0x19de89&&_0x3d59d1['from']<=_0x436bed&&_0x488c46(_0x3d59d1),_0x436bed>_0x3d59d1['to']&&this['right']['forEachLine'](_0x3d59d1['to']+0x1,_0x436bed,_0x39c873,_0x49a18e,_0x31b0e1,_0x488c46);}}['replace'](_0x23df78,_0x5a6810,_0x5deefc){let _0x449884=this['left']['length']+this['break'];if(_0x5a6810<_0x449884)return this['balanced'](this['left']['replace'](_0x23df78,_0x5a6810,_0x5deefc),this['right']);if(_0x23df78>this['left']['length'])return this['balanced'](this['left'],this['right']['replace'](_0x23df78-_0x449884,_0x5a6810-_0x449884,_0x5deefc));let _0x3b48fb=[];_0x23df78>0x0&&this['decomposeLeft'](_0x23df78,_0x3b48fb);let _0x5618ed=_0x3b48fb['length'];for(let _0x3c8b52 of _0x5deefc)_0x3b48fb['push'](_0x3c8b52);if(_0x23df78>0x0&&mergeGaps(_0x3b48fb,_0x5618ed-0x1),_0x5a6810<this['length']){let _0x2bba21=_0x3b48fb['length'];this['decomposeRight'](_0x5a6810,_0x3b48fb),mergeGaps(_0x3b48fb,_0x2bba21);}return HeightMap['of'](_0x3b48fb);}['decomposeLeft'](_0x4ee595,_0x1d60f4){let _0xdc816a=this['left']['length'];if(_0x4ee595<=_0xdc816a)return this['left']['decomposeLeft'](_0x4ee595,_0x1d60f4);_0x1d60f4['push'](this['left']),this['break']&&(_0xdc816a++,_0x4ee595>=_0xdc816a&&_0x1d60f4['push'](null)),_0x4ee595>_0xdc816a&&this['right']['decomposeLeft'](_0x4ee595-_0xdc816a,_0x1d60f4);}['decomposeRight'](_0x27e007,_0x19fa3e){let _0x574370=this['left']['length'],_0x1b351f=_0x574370+this['break'];if(_0x27e007>=_0x1b351f)return this['right']['decomposeRight'](_0x27e007-_0x1b351f,_0x19fa3e);_0x27e007<_0x574370&&this['left']['decomposeRight'](_0x27e007,_0x19fa3e),this['break']&&_0x27e007<_0x1b351f&&_0x19fa3e['push'](null),_0x19fa3e['push'](this['right']);}['balanced'](_0x52edf9,_0x9bd03c){return _0x52edf9['size']>0x2*_0x9bd03c['size']||_0x9bd03c['size']>0x2*_0x52edf9['size']?HeightMap['of'](this['break']?[_0x52edf9,null,_0x9bd03c]:[_0x52edf9,_0x9bd03c]):(this['left']=replace(this['left'],_0x52edf9),this['right']=replace(this['right'],_0x9bd03c),this['setHeight'](_0x52edf9['height']+_0x9bd03c['height']),this['outdated']=_0x52edf9['outdated']||_0x9bd03c['outdated'],this['size']=_0x52edf9['size']+_0x9bd03c['size'],this['length']=_0x52edf9['length']+this['break']+_0x9bd03c['length'],this);}['updateHeight'](_0x28b38b,_0x81a974=0x0,_0x3d1845=!0x1,_0x488906){let {left:_0x33d6cc,right:_0x509b63}=this,_0x334b25=_0x81a974+_0x33d6cc['length']+this['break'],_0x38dde4=null;return _0x488906&&_0x488906['from']<=_0x81a974+_0x33d6cc['length']&&_0x488906['more']?_0x38dde4=_0x33d6cc=_0x33d6cc['updateHeight'](_0x28b38b,_0x81a974,_0x3d1845,_0x488906):_0x33d6cc['updateHeight'](_0x28b38b,_0x81a974,_0x3d1845),_0x488906&&_0x488906['from']<=_0x334b25+_0x509b63['length']&&_0x488906['more']?_0x38dde4=_0x509b63=_0x509b63['updateHeight'](_0x28b38b,_0x334b25,_0x3d1845,_0x488906):_0x509b63['updateHeight'](_0x28b38b,_0x334b25,_0x3d1845),_0x38dde4?this['balanced'](_0x33d6cc,_0x509b63):(this['height']=this['left']['height']+this['right']['height'],this['outdated']=!0x1,this);}['toString'](){return this['left']+(this['break']?'\x20':'-')+this['right'];}}function mergeGaps(_0x119824,_0x34b2f7){let _0x232ae3,_0x9c60cd;null==_0x119824[_0x34b2f7]&&(_0x232ae3=_0x119824[_0x34b2f7-0x1])instanceof HeightMapGap&&(_0x9c60cd=_0x119824[_0x34b2f7+0x1])instanceof HeightMapGap&&_0x119824['splice'](_0x34b2f7-0x1,0x3,new HeightMapGap(_0x232ae3['length']+0x1+_0x9c60cd['length']));}const relevantWidgetHeight=0x5;class NodeBuilder{constructor(_0xdd3df0,_0x5a2f41){this['pos']=_0xdd3df0,this['oracle']=_0x5a2f41,this['nodes']=[],this['lineStart']=-0x1,this['lineEnd']=-0x1,this['covering']=null,this['writtenTo']=_0xdd3df0;}get['isCovered'](){return this['covering']&&this['nodes'][this['nodes']['length']-0x1]==this['covering'];}['span'](_0x597b6e,_0x581975){if(this['lineStart']>-0x1){let _0xc468c4=Math['min'](_0x581975,this['lineEnd']),_0x24e68c=this['nodes'][this['nodes']['length']-0x1];_0x24e68c instanceof HeightMapText?_0x24e68c['length']+=_0xc468c4-this['pos']:(_0xc468c4>this['pos']||!this['isCovered'])&&this['nodes']['push'](new HeightMapText(_0xc468c4-this['pos'],-0x1)),this['writtenTo']=_0xc468c4,_0x581975>_0xc468c4&&(this['nodes']['push'](null),this['writtenTo']++,this['lineStart']=-0x1);}this['pos']=_0x581975;}['point'](_0x2592bc,_0x451404,_0x43c8de){if(_0x2592bc<_0x451404||_0x43c8de['heightRelevant']){let _0x2e1336=_0x43c8de['widget']?_0x43c8de['widget']['estimatedHeight']:0x0,_0x430d9f=_0x43c8de['widget']?_0x43c8de['widget']['lineBreaks']:0x0;_0x2e1336<0x0&&(_0x2e1336=this['oracle']['lineHeight']);let _0xfe7e97=_0x451404-_0x2592bc;_0x43c8de['block']?this['addBlock'](new HeightMapBlock(_0xfe7e97,_0x2e1336,_0x43c8de)):(_0xfe7e97||_0x430d9f||_0x2e1336>=relevantWidgetHeight)&&this['addLineDeco'](_0x2e1336,_0x430d9f,_0xfe7e97);}else _0x451404>_0x2592bc&&this['span'](_0x2592bc,_0x451404);this['lineEnd']>-0x1&&this['lineEnd']<this['pos']&&(this['lineEnd']=this['oracle']['doc']['lineAt'](this['pos'])['to']);}['enterLine'](){if(this['lineStart']>-0x1)return;let {from:_0x53b055,to:_0x42a24e}=this['oracle']['doc']['lineAt'](this['pos']);this['lineStart']=_0x53b055,this['lineEnd']=_0x42a24e,this['writtenTo']<_0x53b055&&((this['writtenTo']<_0x53b055-0x1||null==this['nodes'][this['nodes']['length']-0x1])&&this['nodes']['push'](this['blankContent'](this['writtenTo'],_0x53b055-0x1)),this['nodes']['push'](null)),this['pos']>_0x53b055&&this['nodes']['push'](new HeightMapText(this['pos']-_0x53b055,-0x1)),this['writtenTo']=this['pos'];}['blankContent'](_0x242194,_0xb181fd){let _0x8e9601=new HeightMapGap(_0xb181fd-_0x242194);return this['oracle']['doc']['lineAt'](_0x242194)['to']==_0xb181fd&&(_0x8e9601['flags']|=0x4),_0x8e9601;}['ensureLine'](){this['enterLine']();let _0x3a9fea=this['nodes']['length']?this['nodes'][this['nodes']['length']-0x1]:null;if(_0x3a9fea instanceof HeightMapText)return _0x3a9fea;let _0x4e988e=new HeightMapText(0x0,-0x1);return this['nodes']['push'](_0x4e988e),_0x4e988e;}['addBlock'](_0x4a1259){this['enterLine']();let _0x587c1e=_0x4a1259['deco'];_0x587c1e&&_0x587c1e['startSide']>0x0&&!this['isCovered']&&this['ensureLine'](),this['nodes']['push'](_0x4a1259),this['writtenTo']=this['pos']=this['pos']+_0x4a1259['length'],_0x587c1e&&_0x587c1e['endSide']>0x0&&(this['covering']=_0x4a1259);}['addLineDeco'](_0x232c03,_0x199105,_0x2e48be){let _0x44adda=this['ensureLine']();_0x44adda['length']+=_0x2e48be,_0x44adda['collapsed']+=_0x2e48be,_0x44adda['widgetHeight']=Math['max'](_0x44adda['widgetHeight'],_0x232c03),_0x44adda['breaks']+=_0x199105,this['writtenTo']=this['pos']=this['pos']+_0x2e48be;}['finish'](_0x4b5ab9){let _0x529073=0x0==this['nodes']['length']?null:this['nodes'][this['nodes']['length']-0x1];!(this['lineStart']>-0x1)||_0x529073 instanceof HeightMapText||this['isCovered']?(this['writtenTo']<this['pos']||null==_0x529073)&&this['nodes']['push'](this['blankContent'](this['writtenTo'],this['pos'])):this['nodes']['push'](new HeightMapText(0x0,-0x1));let _0x3cc249=_0x4b5ab9;for(let _0x82e97b of this['nodes'])_0x82e97b instanceof HeightMapText&&_0x82e97b['updateHeight'](this['oracle'],_0x3cc249),_0x3cc249+=_0x82e97b?_0x82e97b['length']:0x1;return this['nodes'];}static['build'](_0x1160db,_0x1f0232,_0x36ba87,_0x31d7a1){let _0x32b335=new NodeBuilder(_0x36ba87,_0x1160db);return RangeSet['spans'](_0x1f0232,_0x36ba87,_0x31d7a1,_0x32b335,0x0),_0x32b335['finish'](_0x36ba87);}}function heightRelevantDecoChanges(_0x98fc2f,_0xd4ce7c,_0x13b789){let _0x22489b=new DecorationComparator();return RangeSet['compare'](_0x98fc2f,_0xd4ce7c,_0x13b789,_0x22489b,0x0),_0x22489b['changes'];}class DecorationComparator{constructor(){this['changes']=[];}['compareRange'](){}['comparePoint'](_0x1639f1,_0x2a958d,_0x59d7ed,_0x4e1e06){(_0x1639f1<_0x2a958d||_0x59d7ed&&_0x59d7ed['heightRelevant']||_0x4e1e06&&_0x4e1e06['heightRelevant'])&&addRange(_0x1639f1,_0x2a958d,this['changes'],0x5);}}function visiblePixelRange(_0x50b683,_0x447198){let _0x229eeb=_0x50b683['getBoundingClientRect'](),_0x28f90a=_0x50b683['ownerDocument'],_0x1611ba=_0x28f90a['defaultView']||window,_0x13b8d1=Math['max'](0x0,_0x229eeb['left']),_0x2c2646=Math['min'](_0x1611ba['innerWidth'],_0x229eeb['right']),_0x1c7cf2=Math['max'](0x0,_0x229eeb['top']),_0xb6d00e=Math['min'](_0x1611ba['innerHeight'],_0x229eeb['bottom']);for(let _0x3f084a=_0x50b683['parentNode'];_0x3f084a&&_0x3f084a!=_0x28f90a['body'];)if(0x1==_0x3f084a['nodeType']){let _0x1f4b09=_0x3f084a,_0x3f39da=window['getComputedStyle'](_0x1f4b09);if((_0x1f4b09['scrollHeight']>_0x1f4b09['clientHeight']||_0x1f4b09['scrollWidth']>_0x1f4b09['clientWidth'])&&'visible'!=_0x3f39da['overflow']){let _0x2f8d31=_0x1f4b09['getBoundingClientRect']();_0x13b8d1=Math['max'](_0x13b8d1,_0x2f8d31['left']),_0x2c2646=Math['min'](_0x2c2646,_0x2f8d31['right']),_0x1c7cf2=Math['max'](_0x1c7cf2,_0x2f8d31['top']),_0xb6d00e=Math['min'](_0x3f084a==_0x50b683['parentNode']?_0x1611ba['innerHeight']:_0xb6d00e,_0x2f8d31['bottom']);}_0x3f084a='absolute'==_0x3f39da['position']||'fixed'==_0x3f39da['position']?_0x1f4b09['offsetParent']:_0x1f4b09['parentNode'];}else{if(0xb!=_0x3f084a['nodeType'])break;_0x3f084a=_0x3f084a['host'];}return{'left':_0x13b8d1-_0x229eeb['left'],'right':Math['max'](_0x13b8d1,_0x2c2646)-_0x229eeb['left'],'top':_0x1c7cf2-(_0x229eeb['top']+_0x447198),'bottom':Math['max'](_0x1c7cf2,_0xb6d00e)-(_0x229eeb['top']+_0x447198)};}function inWindow(_0x529656){let _0x166214=_0x529656['getBoundingClientRect'](),_0x3f2ff0=_0x529656['ownerDocument']['defaultView']||window;return _0x166214['left']<_0x3f2ff0['innerWidth']&&_0x166214['right']>0x0&&_0x166214['top']<_0x3f2ff0['innerHeight']&&_0x166214['bottom']>0x0;}function fullPixelRange(_0x727441,_0x1e7c4b){let _0x373afa=_0x727441['getBoundingClientRect']();return{'left':0x0,'right':_0x373afa['right']-_0x373afa['left'],'top':_0x1e7c4b,'bottom':_0x373afa['bottom']-(_0x373afa['top']+_0x1e7c4b)};}class LineGap{constructor(_0x347359,_0x36fda6,_0x3013a7,_0xd22234){this['from']=_0x347359,this['to']=_0x36fda6,this['size']=_0x3013a7,this['displaySize']=_0xd22234;}static['same'](_0x2ed2d5,_0x138341){if(_0x2ed2d5['length']!=_0x138341['length'])return!0x1;for(let _0x435561=0x0;_0x435561<_0x2ed2d5['length'];_0x435561++){let _0x2a9c47=_0x2ed2d5[_0x435561],_0x3402b0=_0x138341[_0x435561];if(_0x2a9c47['from']!=_0x3402b0['from']||_0x2a9c47['to']!=_0x3402b0['to']||_0x2a9c47['size']!=_0x3402b0['size'])return!0x1;}return!0x0;}['draw'](_0x34272a,_0x2bc187){return Decoration['replace']({'widget':new LineGapWidget(this['displaySize']*(_0x2bc187?_0x34272a['scaleY']:_0x34272a['scaleX']),_0x2bc187)})['range'](this['from'],this['to']);}}class LineGapWidget extends WidgetType{constructor(_0x44d9a6,_0x2c9301){super(),this['size']=_0x44d9a6,this['vertical']=_0x2c9301;}['eq'](_0x28591c){return _0x28591c['size']==this['size']&&_0x28591c['vertical']==this['vertical'];}['toDOM'](){let _0x5924aa=document['createElement']('div');return this['vertical']?_0x5924aa['style']['height']=this['size']+'px':(_0x5924aa['style']['width']=this['size']+'px',_0x5924aa['style']['height']='2px',_0x5924aa['style']['display']='inline-block'),_0x5924aa;}get['estimatedHeight'](){return this['vertical']?this['size']:-0x1;}}class ViewState{constructor(_0x12aeb6){this['state']=_0x12aeb6,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['scrollTop']=0x0,this['scrolledToBottom']=!0x1,this['scaleX']=0x1,this['scaleY']=0x1,this['scrollAnchorPos']=0x0,this['scrollAnchorHeight']=-0x1,this['scaler']=IdScaler,this['scrollTarget']=null,this['printing']=!0x1,this['mustMeasureContent']=!0x0,this['defaultTextDirection']=Direction['LTR'],this['visibleRanges']=[],this['mustEnforceCursorAssoc']=!0x1;let _0x43220b=_0x12aeb6['facet'](contentAttributes)['some'](_0x180283=>'function'!=typeof _0x180283&&'cm-lineWrapping'==_0x180283['class']);this['heightOracle']=new HeightOracle(_0x43220b),this['stateDeco']=_0x12aeb6['facet'](decorations)['filter'](_0x289615=>'function'!=typeof _0x289615),this['heightMap']=HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle']['setDoc'](_0x12aeb6['doc']),[new ChangedRange(0x0,0x0,0x0,_0x12aeb6['doc']['length'])]);for(let _0xfc1927=0x0;_0xfc1927<0x2&&(this['viewport']=this['getViewport'](0x0,null),this['updateForViewport']());_0xfc1927++);this['updateViewportLines'](),this['lineGaps']=this['ensureLineGaps']([]),this['lineGapDeco']=Decoration['set'](this['lineGaps']['map'](_0x2d78a7=>_0x2d78a7['draw'](this,!0x1))),this['computeVisibleRanges']();}['updateForViewport'](){let _0x37d105=[this['viewport']],{main:_0x94dc76}=this['state']['selection'];for(let _0x57b7b0=0x0;_0x57b7b0<=0x1;_0x57b7b0++){let _0x3ca4ac=_0x57b7b0?_0x94dc76['head']:_0x94dc76['anchor'];if(!_0x37d105['some'](({from:_0x1c655c,to:_0x4e1929})=>_0x3ca4ac>=_0x1c655c&&_0x3ca4ac<=_0x4e1929)){let {from:_0x3fbcca,to:_0x4d3844}=this['lineBlockAt'](_0x3ca4ac);_0x37d105['push'](new Viewport(_0x3fbcca,_0x4d3844));}}return this['viewports']=_0x37d105['sort']((_0x2c1b2e,_0x11dbbb)=>_0x2c1b2e['from']-_0x11dbbb['from']),this['updateScaler']();}['updateScaler'](){let _0x54bf79=this['scaler'];return this['scaler']=this['heightMap']['height']<=0x6acfc0?IdScaler:new BigScaler(this['heightOracle'],this['heightMap'],this['viewports']),_0x54bf79['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,_0x257961=>{this['viewportLines']['push'](scaleBlock(_0x257961,this['scaler']));});}['update'](_0x360b84,_0x14d860=null){this['state']=_0x360b84['state'];let _0x53f69e=this['stateDeco'];this['stateDeco']=this['state']['facet'](decorations)['filter'](_0x34c794=>'function'!=typeof _0x34c794);let _0x5c52b0=_0x360b84['changedRanges'],_0x2644da=ChangedRange['extendWithRanges'](_0x5c52b0,heightRelevantDecoChanges(_0x53f69e,this['stateDeco'],_0x360b84?_0x360b84['changes']:ChangeSet['empty'](this['state']['doc']['length']))),_0x1922fd=this['heightMap']['height'],_0xd689d3=this['scrolledToBottom']?null:this['scrollAnchorAt'](this['scrollTop']);clearHeightChangeFlag(),this['heightMap']=this['heightMap']['applyChanges'](this['stateDeco'],_0x360b84['startState']['doc'],this['heightOracle']['setDoc'](this['state']['doc']),_0x2644da),(this['heightMap']['height']!=_0x1922fd||heightChangeFlag)&&(_0x360b84['flags']|=0x2),_0xd689d3?(this['scrollAnchorPos']=_0x360b84['changes']['mapPos'](_0xd689d3['from'],-0x1),this['scrollAnchorHeight']=_0xd689d3['top']):(this['scrollAnchorPos']=-0x1,this['scrollAnchorHeight']=_0x1922fd);let _0x2686f2=_0x2644da['length']?this['mapViewport'](this['viewport'],_0x360b84['changes']):this['viewport'];(_0x14d860&&(_0x14d860['range']['head']<_0x2686f2['from']||_0x14d860['range']['head']>_0x2686f2['to'])||!this['viewportIsAppropriate'](_0x2686f2))&&(_0x2686f2=this['getViewport'](0x0,_0x14d860));let _0x15cf35=_0x2686f2['from']!=this['viewport']['from']||_0x2686f2['to']!=this['viewport']['to'];this['viewport']=_0x2686f2,_0x360b84['flags']|=this['updateForViewport'](),(_0x15cf35||!_0x360b84['changes']['empty']||0x2&_0x360b84['flags'])&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](this['mapLineGaps'](this['lineGaps'],_0x360b84['changes']))),_0x360b84['flags']|=this['computeVisibleRanges'](_0x360b84['changes']),_0x14d860&&(this['scrollTarget']=_0x14d860),!this['mustEnforceCursorAssoc']&&_0x360b84['selectionSet']&&_0x360b84['view']['lineWrapping']&&_0x360b84['state']['selection']['main']['empty']&&_0x360b84['state']['selection']['main']['assoc']&&!_0x360b84['state']['facet'](nativeSelectionHidden)&&(this['mustEnforceCursorAssoc']=!0x0);}['measure'](_0x39e21d){let _0x6ef6d0=_0x39e21d['contentDOM'],_0x4796ab=window['getComputedStyle'](_0x6ef6d0),_0x1cac4b=this['heightOracle'],_0x2a143d=_0x4796ab['whiteSpace'];this['defaultTextDirection']='rtl'==_0x4796ab['direction']?Direction['RTL']:Direction['LTR'];let _0x13dc09=this['heightOracle']['mustRefreshForWrapping'](_0x2a143d),_0x2844f8=_0x6ef6d0['getBoundingClientRect'](),_0x32c62c=_0x13dc09||this['mustMeasureContent']||this['contentDOMHeight']!=_0x2844f8['height'];this['contentDOMHeight']=_0x2844f8['height'],this['mustMeasureContent']=!0x1;let _0x2bd734=0x0,_0x341bc8=0x0;if(_0x2844f8['width']&&_0x2844f8['height']){let {scaleX:_0x170ba8,scaleY:_0x2409e3}=getScale(_0x6ef6d0,_0x2844f8);(_0x170ba8>0.005&&Math['abs'](this['scaleX']-_0x170ba8)>0.005||_0x2409e3>0.005&&Math['abs'](this['scaleY']-_0x2409e3)>0.005)&&(this['scaleX']=_0x170ba8,this['scaleY']=_0x2409e3,_0x2bd734|=0x10,_0x13dc09=_0x32c62c=!0x0);}let _0x52a07a=(parseInt(_0x4796ab['paddingTop'])||0x0)*this['scaleY'],_0x3825de=(parseInt(_0x4796ab['paddingBottom'])||0x0)*this['scaleY'];this['paddingTop']==_0x52a07a&&this['paddingBottom']==_0x3825de||(this['paddingTop']=_0x52a07a,this['paddingBottom']=_0x3825de,_0x2bd734|=0x12),this['editorWidth']!=_0x39e21d['scrollDOM']['clientWidth']&&(_0x1cac4b['lineWrapping']&&(_0x32c62c=!0x0),this['editorWidth']=_0x39e21d['scrollDOM']['clientWidth'],_0x2bd734|=0x10);let _0x408e5b=_0x39e21d['scrollDOM']['scrollTop']*this['scaleY'];this['scrollTop']!=_0x408e5b&&(this['scrollAnchorHeight']=-0x1,this['scrollTop']=_0x408e5b),this['scrolledToBottom']=isScrolledToBottom(_0x39e21d['scrollDOM']);let _0xcb6e89=(this['printing']?fullPixelRange:visiblePixelRange)(_0x6ef6d0,this['paddingTop']),_0x125e22=_0xcb6e89['top']-this['pixelViewport']['top'],_0x5aa230=_0xcb6e89['bottom']-this['pixelViewport']['bottom'];this['pixelViewport']=_0xcb6e89;let _0x168189=this['pixelViewport']['bottom']>this['pixelViewport']['top']&&this['pixelViewport']['right']>this['pixelViewport']['left'];if(_0x168189!=this['inView']&&(this['inView']=_0x168189,_0x168189&&(_0x32c62c=!0x0)),!this['inView']&&!this['scrollTarget']&&!inWindow(_0x39e21d['dom']))return 0x0;let _0x5c2de8=_0x2844f8['width'];if(this['contentDOMWidth']==_0x5c2de8&&this['editorHeight']==_0x39e21d['scrollDOM']['clientHeight']||(this['contentDOMWidth']=_0x2844f8['width'],this['editorHeight']=_0x39e21d['scrollDOM']['clientHeight'],_0x2bd734|=0x10),_0x32c62c){let _0x1033a6=_0x39e21d['docView']['measureVisibleLineHeights'](this['viewport']);if(_0x1cac4b['mustRefreshForHeights'](_0x1033a6)&&(_0x13dc09=!0x0),_0x13dc09||_0x1cac4b['lineWrapping']&&Math['abs'](_0x5c2de8-this['contentDOMWidth'])>_0x1cac4b['charWidth']){let {lineHeight:_0x33bdac,charWidth:_0x5ea381,textHeight:_0x388d78}=_0x39e21d['docView']['measureTextSize']();_0x13dc09=_0x33bdac>0x0&&_0x1cac4b['refresh'](_0x2a143d,_0x33bdac,_0x5ea381,_0x388d78,Math['max'](0x5,_0x5c2de8/_0x5ea381),_0x1033a6),_0x13dc09&&(_0x39e21d['docView']['minWidth']=0x0,_0x2bd734|=0x10);}_0x125e22>0x0&&_0x5aa230>0x0?_0x341bc8=Math['max'](_0x125e22,_0x5aa230):_0x125e22<0x0&&_0x5aa230<0x0&&(_0x341bc8=Math['min'](_0x125e22,_0x5aa230)),clearHeightChangeFlag();for(let _0x167ee7 of this['viewports']){let _0x3df6f1=_0x167ee7['from']==this['viewport']['from']?_0x1033a6:_0x39e21d['docView']['measureVisibleLineHeights'](_0x167ee7);this['heightMap']=(_0x13dc09?HeightMap['empty']()['applyChanges'](this['stateDeco'],Text['empty'],this['heightOracle'],[new ChangedRange(0x0,0x0,0x0,_0x39e21d['state']['doc']['length'])]):this['heightMap'])['updateHeight'](_0x1cac4b,0x0,_0x13dc09,new MeasuredHeights(_0x167ee7['from'],_0x3df6f1));}heightChangeFlag&&(_0x2bd734|=0x2);}let _0x50bb9b=!this['viewportIsAppropriate'](this['viewport'],_0x341bc8)||this['scrollTarget']&&(this['scrollTarget']['range']['head']<this['viewport']['from']||this['scrollTarget']['range']['head']>this['viewport']['to']);return _0x50bb9b&&(0x2&_0x2bd734&&(_0x2bd734|=this['updateScaler']()),this['viewport']=this['getViewport'](_0x341bc8,this['scrollTarget']),_0x2bd734|=this['updateForViewport']()),(0x2&_0x2bd734||_0x50bb9b)&&this['updateViewportLines'](),(this['lineGaps']['length']||this['viewport']['to']-this['viewport']['from']>0xfa0)&&this['updateLineGaps'](this['ensureLineGaps'](_0x13dc09?[]:this['lineGaps'],_0x39e21d)),_0x2bd734|=this['computeVisibleRanges'](),this['mustEnforceCursorAssoc']&&(this['mustEnforceCursorAssoc']=!0x1,_0x39e21d['docView']['enforceCursorAssoc']()),_0x2bd734;}get['visibleTop'](){return this['scaler']['fromDOM'](this['pixelViewport']['top']);}get['visibleBottom'](){return this['scaler']['fromDOM'](this['pixelViewport']['bottom']);}['getViewport'](_0x4d05b6,_0x1a2f3d){let _0x2f6b09=0.5-Math['max'](-0.5,Math['min'](0.5,_0x4d05b6/0x3e8/0x2)),_0x6e6dff=this['heightMap'],_0x1fdb2d=this['heightOracle'],{visibleTop:_0x20d868,visibleBottom:_0x2d8141}=this,_0x135c09=new Viewport(_0x6e6dff['lineAt'](_0x20d868-0x3e8*_0x2f6b09,QueryType['ByHeight'],_0x1fdb2d,0x0,0x0)['from'],_0x6e6dff['lineAt'](_0x2d8141+0x3e8*(0x1-_0x2f6b09),QueryType['ByHeight'],_0x1fdb2d,0x0,0x0)['to']);if(_0x1a2f3d){let {head:_0x280864}=_0x1a2f3d['range'];if(_0x280864<_0x135c09['from']||_0x280864>_0x135c09['to']){let _0x576f1f,_0x2a3523=Math['min'](this['editorHeight'],this['pixelViewport']['bottom']-this['pixelViewport']['top']),_0x12061b=_0x6e6dff['lineAt'](_0x280864,QueryType['ByPos'],_0x1fdb2d,0x0,0x0);_0x576f1f='center'==_0x1a2f3d['y']?(_0x12061b['top']+_0x12061b['bottom'])/0x2-_0x2a3523/0x2:'start'==_0x1a2f3d['y']||'nearest'==_0x1a2f3d['y']&&_0x280864<_0x135c09['from']?_0x12061b['top']:_0x12061b['bottom']-_0x2a3523,_0x135c09=new Viewport(_0x6e6dff['lineAt'](_0x576f1f-0x1f4,QueryType['ByHeight'],_0x1fdb2d,0x0,0x0)['from'],_0x6e6dff['lineAt'](_0x576f1f+_0x2a3523+0x1f4,QueryType['ByHeight'],_0x1fdb2d,0x0,0x0)['to']);}}return _0x135c09;}['mapViewport'](_0x5c4ec3,_0x7d8d23){let _0x135454=_0x7d8d23['mapPos'](_0x5c4ec3['from'],-0x1),_0x3f2eb5=_0x7d8d23['mapPos'](_0x5c4ec3['to'],0x1);return new Viewport(this['heightMap']['lineAt'](_0x135454,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['from'],this['heightMap']['lineAt'](_0x3f2eb5,QueryType['ByPos'],this['heightOracle'],0x0,0x0)['to']);}['viewportIsAppropriate']({from:_0x2076a4,to:_0x494a00},_0x1a2a6d=0x0){if(!this['inView'])return!0x0;let {top:_0x31530d}=this['heightMap']['lineAt'](_0x2076a4,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{bottom:_0x3efa2f}=this['heightMap']['lineAt'](_0x494a00,QueryType['ByPos'],this['heightOracle'],0x0,0x0),{visibleTop:_0x1c6d81,visibleBottom:_0x589b95}=this;return(0x0==_0x2076a4||_0x31530d<=_0x1c6d81-Math['max'](0xa,Math['min'](-_0x1a2a6d,0xfa)))&&(_0x494a00==this['state']['doc']['length']||_0x3efa2f>=_0x589b95+Math['max'](0xa,Math['min'](_0x1a2a6d,0xfa)))&&_0x31530d>_0x1c6d81-0x7d0&&_0x3efa2f<_0x589b95+0x7d0;}['mapLineGaps'](_0x1f3427,_0x2875ca){if(!_0x1f3427['length']||_0x2875ca['empty'])return _0x1f3427;let _0x1f80c1=[];for(let _0x212414 of _0x1f3427)_0x2875ca['touchesRange'](_0x212414['from'],_0x212414['to'])||_0x1f80c1['push'](new LineGap(_0x2875ca['mapPos'](_0x212414['from']),_0x2875ca['mapPos'](_0x212414['to']),_0x212414['size'],_0x212414['displaySize']));return _0x1f80c1;}['ensureLineGaps'](_0x9c1759,_0x474160){let _0x2eb75f=this['heightOracle']['lineWrapping'],_0x3bea2b=_0x2eb75f?0x2710:0x7d0,_0x34b51d=_0x3bea2b>>0x1,_0x81e51b=_0x3bea2b<<0x1;if(this['defaultTextDirection']!=Direction['LTR']&&!_0x2eb75f)return[];let _0x2e3437=[],_0x3203a7=(_0x2be2b2,_0x288164,_0x50b4e2,_0x1d8abe)=>{if(_0x288164-_0x2be2b2<_0x34b51d)return;let _0x2dd95c=this['state']['selection']['main'],_0x691acf=[_0x2dd95c['from']];_0x2dd95c['empty']||_0x691acf['push'](_0x2dd95c['to']);for(let _0x32f3c9 of _0x691acf)if(_0x32f3c9>_0x2be2b2&&_0x32f3c9<_0x288164)return _0x3203a7(_0x2be2b2,_0x32f3c9-0xa,_0x50b4e2,_0x1d8abe),void _0x3203a7(_0x32f3c9+0xa,_0x288164,_0x50b4e2,_0x1d8abe);let _0x3d604e=find(_0x9c1759,_0x4a4d59=>_0x4a4d59['from']>=_0x50b4e2['from']&&_0x4a4d59['to']<=_0x50b4e2['to']&&Math['abs'](_0x4a4d59['from']-_0x2be2b2)<_0x34b51d&&Math['abs'](_0x4a4d59['to']-_0x288164)<_0x34b51d&&!_0x691acf['some'](_0x17f292=>_0x4a4d59['from']<_0x17f292&&_0x4a4d59['to']>_0x17f292));if(!_0x3d604e){if(_0x288164<_0x50b4e2['to']&&_0x474160&&_0x2eb75f&&_0x474160['visibleRanges']['some'](_0x16f63e=>_0x16f63e['from']<=_0x288164&&_0x16f63e['to']>=_0x288164)){let _0x4d6377=_0x474160['moveToLineBoundary'](EditorSelection['cursor'](_0x288164),!0x1,!0x0)['head'];_0x4d6377>_0x2be2b2&&(_0x288164=_0x4d6377);}let _0x48a71c=this['gapSize'](_0x50b4e2,_0x2be2b2,_0x288164,_0x1d8abe);_0x3d604e=new LineGap(_0x2be2b2,_0x288164,_0x48a71c,_0x2eb75f||_0x48a71c<0x1e8480?_0x48a71c:0x1e8480);}_0x2e3437['push'](_0x3d604e);},_0x2c8657=_0x192bdf=>{if(_0x192bdf['length']<_0x81e51b||_0x192bdf['type']!=BlockType['Text'])return;let _0x5970dc=lineStructure(_0x192bdf['from'],_0x192bdf['to'],this['stateDeco']);if(_0x5970dc['total']<_0x81e51b)return;let _0x5ecc4e,_0x5bf5d4,_0x39f1d3=this['scrollTarget']?this['scrollTarget']['range']['head']:null;if(_0x2eb75f){let _0x34c8bc,_0x29e7ca,_0x56a92f=_0x3bea2b/this['heightOracle']['lineLength']*this['heightOracle']['lineHeight'];if(null!=_0x39f1d3){let _0x3c58b0=findFraction(_0x5970dc,_0x39f1d3),_0x760028=((this['visibleBottom']-this['visibleTop'])/0x2+_0x56a92f)/_0x192bdf['height'];_0x34c8bc=_0x3c58b0-_0x760028,_0x29e7ca=_0x3c58b0+_0x760028;}else _0x34c8bc=(this['visibleTop']-_0x192bdf['top']-_0x56a92f)/_0x192bdf['height'],_0x29e7ca=(this['visibleBottom']-_0x192bdf['top']+_0x56a92f)/_0x192bdf['height'];_0x5ecc4e=findPosition(_0x5970dc,_0x34c8bc),_0x5bf5d4=findPosition(_0x5970dc,_0x29e7ca);}else{let _0x44a2dd=_0x5970dc['total']*this['heightOracle']['charWidth'],_0x5b5ebd=_0x3bea2b*this['heightOracle']['charWidth'],_0x387d5f=0x0;if(_0x44a2dd>0x1e8480){for(let _0xf4a6ee of _0x9c1759)_0xf4a6ee['from']>=_0x192bdf['from']&&_0xf4a6ee['from']<_0x192bdf['to']&&_0xf4a6ee['size']!=_0xf4a6ee['displaySize']&&_0xf4a6ee['from']*this['heightOracle']['charWidth']+_0x387d5f<this['pixelViewport']['left']&&(_0x387d5f=_0xf4a6ee['size']-_0xf4a6ee['displaySize']);}let _0x4fb97b,_0x2ddbeb,_0x52a84e=this['pixelViewport']['left']+_0x387d5f,_0x34aeaa=this['pixelViewport']['right']+_0x387d5f;if(null!=_0x39f1d3){let _0x46cd35=findFraction(_0x5970dc,_0x39f1d3),_0x1d1904=((_0x34aeaa-_0x52a84e)/0x2+_0x5b5ebd)/_0x44a2dd;_0x4fb97b=_0x46cd35-_0x1d1904,_0x2ddbeb=_0x46cd35+_0x1d1904;}else _0x4fb97b=(_0x52a84e-_0x5b5ebd)/_0x44a2dd,_0x2ddbeb=(_0x34aeaa+_0x5b5ebd)/_0x44a2dd;_0x5ecc4e=findPosition(_0x5970dc,_0x4fb97b),_0x5bf5d4=findPosition(_0x5970dc,_0x2ddbeb);}_0x5ecc4e>_0x192bdf['from']&&_0x3203a7(_0x192bdf['from'],_0x5ecc4e,_0x192bdf,_0x5970dc),_0x5bf5d4<_0x192bdf['to']&&_0x3203a7(_0x5bf5d4,_0x192bdf['to'],_0x192bdf,_0x5970dc);};for(let _0x54261d of this['viewportLines'])Array['isArray'](_0x54261d['type'])?_0x54261d['type']['forEach'](_0x2c8657):_0x2c8657(_0x54261d);return _0x2e3437;}['gapSize'](_0x1e583d,_0x548759,_0x10347f,_0x3da7b8){let _0x19a80e=findFraction(_0x3da7b8,_0x10347f)-findFraction(_0x3da7b8,_0x548759);return this['heightOracle']['lineWrapping']?_0x1e583d['height']*_0x19a80e:_0x3da7b8['total']*this['heightOracle']['charWidth']*_0x19a80e;}['updateLineGaps'](_0x27b97c){LineGap['same'](_0x27b97c,this['lineGaps'])||(this['lineGaps']=_0x27b97c,this['lineGapDeco']=Decoration['set'](_0x27b97c['map'](_0xc4f39f=>_0xc4f39f['draw'](this,this['heightOracle']['lineWrapping']))));}['computeVisibleRanges'](_0xa0e0b3){let _0x16e3e6=this['stateDeco'];this['lineGaps']['length']&&(_0x16e3e6=_0x16e3e6['concat'](this['lineGapDeco']));let _0x40cce7=[];RangeSet['spans'](_0x16e3e6,this['viewport']['from'],this['viewport']['to'],{'span'(_0x29e0f3,_0x569de4){_0x40cce7['push']({'from':_0x29e0f3,'to':_0x569de4});},'point'(){}},0x14);let _0x269f6b=0x0;if(_0x40cce7['length']!=this['visibleRanges']['length'])_0x269f6b=0xc;else for(let _0x57e1f3=0x0;_0x57e1f3<_0x40cce7['length']&&!(0x8&_0x269f6b);_0x57e1f3++){let _0x15681a=this['visibleRanges'][_0x57e1f3],_0x57f341=_0x40cce7[_0x57e1f3];_0x15681a['from']==_0x57f341['from']&&_0x15681a['to']==_0x57f341['to']||(_0x269f6b|=0x4,_0xa0e0b3&&_0xa0e0b3['mapPos'](_0x15681a['from'],-0x1)==_0x57f341['from']&&_0xa0e0b3['mapPos'](_0x15681a['to'],0x1)==_0x57f341['to']||(_0x269f6b|=0x8));}return this['visibleRanges']=_0x40cce7,_0x269f6b;}['lineBlockAt'](_0x297f62){return _0x297f62>=this['viewport']['from']&&_0x297f62<=this['viewport']['to']&&this['viewportLines']['find'](_0x16091d=>_0x16091d['from']<=_0x297f62&&_0x16091d['to']>=_0x297f62)||scaleBlock(this['heightMap']['lineAt'](_0x297f62,QueryType['ByPos'],this['heightOracle'],0x0,0x0),this['scaler']);}['lineBlockAtHeight'](_0x3e45e8){return _0x3e45e8>=this['viewportLines'][0x0]['top']&&_0x3e45e8<=this['viewportLines'][this['viewportLines']['length']-0x1]['bottom']&&this['viewportLines']['find'](_0x10ef41=>_0x10ef41['top']<=_0x3e45e8&&_0x10ef41['bottom']>=_0x3e45e8)||scaleBlock(this['heightMap']['lineAt'](this['scaler']['fromDOM'](_0x3e45e8),QueryType['ByHeight'],this['heightOracle'],0x0,0x0),this['scaler']);}['scrollAnchorAt'](_0x46d9a6){let _0x5e797e=this['lineBlockAtHeight'](_0x46d9a6+0x8);return _0x5e797e['from']>=this['viewport']['from']||this['viewportLines'][0x0]['top']-_0x46d9a6>0xc8?_0x5e797e:this['viewportLines'][0x0];}['elementAtHeight'](_0x36b022){return scaleBlock(this['heightMap']['blockAt'](this['scaler']['fromDOM'](_0x36b022),this['heightOracle'],0x0,0x0),this['scaler']);}get['docHeight'](){return this['scaler']['toDOM'](this['heightMap']['height']);}get['contentHeight'](){return this['docHeight']+this['paddingTop']+this['paddingBottom'];}}class Viewport{constructor(_0x505859,_0x17dcb1){this['from']=_0x505859,this['to']=_0x17dcb1;}}function lineStructure(_0x2fa20f,_0x26a941,_0x10f15d){let _0x183ae8=[],_0x23f8b4=_0x2fa20f,_0x132361=0x0;return RangeSet['spans'](_0x10f15d,_0x2fa20f,_0x26a941,{'span'(){},'point'(_0x3a5bf6,_0x50b4c8){_0x3a5bf6>_0x23f8b4&&(_0x183ae8['push']({'from':_0x23f8b4,'to':_0x3a5bf6}),_0x132361+=_0x3a5bf6-_0x23f8b4),_0x23f8b4=_0x50b4c8;}},0x14),_0x23f8b4<_0x26a941&&(_0x183ae8['push']({'from':_0x23f8b4,'to':_0x26a941}),_0x132361+=_0x26a941-_0x23f8b4),{'total':_0x132361,'ranges':_0x183ae8};}function findPosition({total:_0x3a8937,ranges:_0x28fdbd},_0x169c6c){if(_0x169c6c<=0x0)return _0x28fdbd[0x0]['from'];if(_0x169c6c>=0x1)return _0x28fdbd[_0x28fdbd['length']-0x1]['to'];let _0x58fb7f=Math['floor'](_0x3a8937*_0x169c6c);for(let _0x1720ad=0x0;;_0x1720ad++){let {from:_0x9ad6c6,to:_0x28d840}=_0x28fdbd[_0x1720ad],_0xfd89b6=_0x28d840-_0x9ad6c6;if(_0x58fb7f<=_0xfd89b6)return _0x9ad6c6+_0x58fb7f;_0x58fb7f-=_0xfd89b6;}}function findFraction(_0x371d30,_0x537461){let _0x6ee381=0x0;for(let {from:_0x5b9828,to:_0x2073d6}of _0x371d30['ranges']){if(_0x537461<=_0x2073d6){_0x6ee381+=_0x537461-_0x5b9828;break;}_0x6ee381+=_0x2073d6-_0x5b9828;}return _0x6ee381/_0x371d30['total'];}function find(_0x5098fb,_0x5edc7f){for(let _0x1aa067 of _0x5098fb)if(_0x5edc7f(_0x1aa067))return _0x1aa067;}const IdScaler={'toDOM':_0x127b17=>_0x127b17,'fromDOM':_0x47565c=>_0x47565c,'scale':0x1,'eq'(_0xb14d7f){return _0xb14d7f==this;}};class BigScaler{constructor(_0x36fe28,_0x46ca77,_0x31bd87){let _0x27313c=0x0,_0x215afd=0x0,_0x3ba518=0x0;this['viewports']=_0x31bd87['map'](({from:_0x550660,to:_0x4b6dd4})=>{let _0x53f873=_0x46ca77['lineAt'](_0x550660,QueryType['ByPos'],_0x36fe28,0x0,0x0)['top'],_0x42ab52=_0x46ca77['lineAt'](_0x4b6dd4,QueryType['ByPos'],_0x36fe28,0x0,0x0)['bottom'];return _0x27313c+=_0x42ab52-_0x53f873,{'from':_0x550660,'to':_0x4b6dd4,'top':_0x53f873,'bottom':_0x42ab52,'domTop':0x0,'domBottom':0x0};}),this['scale']=(0x6acfc0-_0x27313c)/(_0x46ca77['height']-_0x27313c);for(let _0x5ca138 of this['viewports'])_0x5ca138['domTop']=_0x3ba518+(_0x5ca138['top']-_0x215afd)*this['scale'],_0x3ba518=_0x5ca138['domBottom']=_0x5ca138['domTop']+(_0x5ca138['bottom']-_0x5ca138['top']),_0x215afd=_0x5ca138['bottom'];}['toDOM'](_0x4badcb){for(let _0x5b5891=0x0,_0x421bf6=0x0,_0x14c714=0x0;;_0x5b5891++){let _0x43288d=_0x5b5891<this['viewports']['length']?this['viewports'][_0x5b5891]:null;if(!_0x43288d||_0x4badcb<_0x43288d['top'])return _0x14c714+(_0x4badcb-_0x421bf6)*this['scale'];if(_0x4badcb<=_0x43288d['bottom'])return _0x43288d['domTop']+(_0x4badcb-_0x43288d['top']);_0x421bf6=_0x43288d['bottom'],_0x14c714=_0x43288d['domBottom'];}}['fromDOM'](_0xab9ae7){for(let _0x299b63=0x0,_0x433feb=0x0,_0x33e5b3=0x0;;_0x299b63++){let _0x558482=_0x299b63<this['viewports']['length']?this['viewports'][_0x299b63]:null;if(!_0x558482||_0xab9ae7<_0x558482['domTop'])return _0x433feb+(_0xab9ae7-_0x33e5b3)/this['scale'];if(_0xab9ae7<=_0x558482['domBottom'])return _0x558482['top']+(_0xab9ae7-_0x558482['domTop']);_0x433feb=_0x558482['bottom'],_0x33e5b3=_0x558482['domBottom'];}}['eq'](_0x47ecba){return _0x47ecba instanceof BigScaler&&(this['scale']==_0x47ecba['scale']&&this['viewports']['length']==_0x47ecba['viewports']['length']&&this['viewports']['every']((_0x55a161,_0x28d6a2)=>_0x55a161['from']==_0x47ecba['viewports'][_0x28d6a2]['from']&&_0x55a161['to']==_0x47ecba['viewports'][_0x28d6a2]['to']));}}function scaleBlock(_0x310e0f,_0x8d0818){if(0x1==_0x8d0818['scale'])return _0x310e0f;let _0x4c90fe=_0x8d0818['toDOM'](_0x310e0f['top']),_0x31e82d=_0x8d0818['toDOM'](_0x310e0f['bottom']);return new BlockInfo(_0x310e0f['from'],_0x310e0f['length'],_0x4c90fe,_0x31e82d-_0x4c90fe,Array['isArray'](_0x310e0f['_content'])?_0x310e0f['_content']['map'](_0x174da7=>scaleBlock(_0x174da7,_0x8d0818)):_0x310e0f['_content']);}const theme=Facet['define']({'combine':_0x2bd4c7=>_0x2bd4c7['join']('\x20')}),darkTheme=Facet['define']({'combine':_0x4680bb=>_0x4680bb['indexOf'](!0x0)>-0x1}),baseThemeID=StyleModule['newName'](),baseLightID=StyleModule['newName'](),baseDarkID=StyleModule['newName'](),lightDarkIDs={'&light':'.'+baseLightID,'&dark':'.'+baseDarkID};function buildTheme(_0x3eb9d6,_0x287d13,_0x3ab982){return new StyleModule(_0x287d13,{'finish':_0x221b25=>/&/['test'](_0x221b25)?_0x221b25['replace'](/&\w*/,_0x2b248e=>{if('&'==_0x2b248e)return _0x3eb9d6;if(!_0x3ab982||!_0x3ab982[_0x2b248e])throw new RangeError('Unsupported\x20selector:\x20'+_0x2b248e);return _0x3ab982[_0x2b248e];}):_0x3eb9d6+'\x20'+_0x221b25});}const baseTheme$1$1=buildTheme('.'+baseThemeID,{'&':{'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':{'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-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'}},lightDarkIDs),observeOptions={'childList':!0x0,'characterData':!0x0,'subtree':!0x0,'attributes':!0x0,'characterDataOldValue':!0x0},useCharData=browser['ie']&&browser['ie_version']<=0xb;class DOMObserver{constructor(_0xb02fee){this['view']=_0xb02fee,this['active']=!0x1,this['editContext']=null,this['selectionRange']=new DOMSelectionState(),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']=_0xb02fee['contentDOM'],this['observer']=new MutationObserver(_0x309259=>{for(let _0x2964ad of _0x309259)this['queue']['push'](_0x2964ad);(browser['ie']&&browser['ie_version']<=0xb||browser['ios']&&_0xb02fee['composing'])&&_0x309259['some'](_0x1fb143=>'childList'==_0x1fb143['type']&&_0x1fb143['removedNodes']['length']||'characterData'==_0x1fb143['type']&&_0x1fb143['oldValue']['length']>_0x1fb143['target']['nodeValue']['length'])?this['flushSoon']():this['flush']();}),!window['EditContext']||!browser['android']||!0x1===_0xb02fee['constructor']['EDIT_CONTEXT']||browser['chrome']&&browser['chrome_version']<0x7e||(this['editContext']=new EditContextManager(_0xb02fee),_0xb02fee['state']['facet'](editable)&&(_0xb02fee['contentDOM']['editContext']=this['editContext']['editContext'])),useCharData&&(this['onCharData']=_0x33348d=>{this['queue']['push']({'target':_0x33348d['target'],'type':'characterData','oldValue':_0x33348d['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 _0x197998;(null===(_0x197998=this['view']['docView'])||void 0x0===_0x197998?void 0x0:_0x197998['lastUpdate'])<Date['now']()-0x4b&&this['onResize']();}),this['resizeScroll']['observe'](_0xb02fee['scrollDOM'])),this['addWindowListeners'](this['win']=_0xb02fee['win']),this['start'](),'function'==typeof IntersectionObserver&&(this['intersection']=new IntersectionObserver(_0x52973c=>{this['parentCheck']<0x0&&(this['parentCheck']=setTimeout(this['listenForScroll']['bind'](this),0x3e8)),_0x52973c['length']>0x0&&_0x52973c[_0x52973c['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(_0x2722aa=>{_0x2722aa['length']>0x0&&_0x2722aa[_0x2722aa['length']-0x1]['intersectionRatio']>0x0&&this['onScrollChanged'](document['createEvent']('Event'));},{})),this['listenForScroll'](),this['readSelectionRange']();}['onScrollChanged'](_0x51f0c6){this['view']['inputState']['runHandlers']('scroll',_0x51f0c6),this['intersecting']&&this['view']['measure']();}['onScroll'](_0x3a442a){this['intersecting']&&this['flush'](!0x1),this['editContext']&&this['view']['requestMeasure'](this['editContext']['measureReq']),this['onScrollChanged'](_0x3a442a);}['onResize'](){this['resizeTimeout']<0x0&&(this['resizeTimeout']=setTimeout(()=>{this['resizeTimeout']=-0x1,this['view']['requestMeasure']();},0x32));}['onPrint'](_0x22d202){('change'!=_0x22d202['type']&&_0x22d202['type']||_0x22d202['matches'])&&(this['view']['viewState']['printing']=!0x0,this['view']['measure'](),setTimeout(()=>{this['view']['viewState']['printing']=!0x1,this['view']['requestMeasure']();},0x1f4));}['updateGaps'](_0x236b04){if(this['gapIntersection']&&(_0x236b04['length']!=this['gaps']['length']||this['gaps']['some']((_0x50fddc,_0x389ff0)=>_0x50fddc!=_0x236b04[_0x389ff0]))){this['gapIntersection']['disconnect']();for(let _0x3fc355 of _0x236b04)this['gapIntersection']['observe'](_0x3fc355);this['gaps']=_0x236b04;}}['onSelectionChange'](_0x59a45e){let _0xbc3fc6=this['selectionChanged'];if(!this['readSelectionRange']()||this['delayedAndroidKey'])return;let {view:_0x592264}=this,_0x3c3ada=this['selectionRange'];if(_0x592264['state']['facet'](editable)?_0x592264['root']['activeElement']!=this['dom']:!hasSelection(this['dom'],_0x3c3ada))return;let _0x2d6b44=_0x3c3ada['anchorNode']&&_0x592264['docView']['nearest'](_0x3c3ada['anchorNode']);_0x2d6b44&&_0x2d6b44['ignoreEvent'](_0x59a45e)?_0xbc3fc6||(this['selectionChanged']=!0x1):(browser['ie']&&browser['ie_version']<=0xb||browser['android']&&browser['chrome'])&&!_0x592264['state']['selection']['main']['empty']&&_0x3c3ada['focusNode']&&isEquivalentPosition(_0x3c3ada['focusNode'],_0x3c3ada['focusOffset'],_0x3c3ada['anchorNode'],_0x3c3ada['anchorOffset'])?this['flushSoon']():this['flush'](!0x1);}['readSelectionRange'](){let {view:_0x328621}=this,_0x3ccb1d=getSelection(_0x328621['root']);if(!_0x3ccb1d)return!0x1;let _0x377262=browser['safari']&&0xb==_0x328621['root']['nodeType']&&_0x328621['root']['activeElement']==this['dom']&&safariSelectionRangeHack(this['view'],_0x3ccb1d)||_0x3ccb1d;if(!_0x377262||this['selectionRange']['eq'](_0x377262))return!0x1;let _0x13f3d2=hasSelection(this['dom'],_0x377262);return _0x13f3d2&&!this['selectionChanged']&&_0x328621['inputState']['lastFocusTime']>Date['now']()-0xc8&&_0x328621['inputState']['lastTouchTime']<Date['now']()-0x12c&&atElementStart(this['dom'],_0x377262)?(this['view']['inputState']['lastFocusTime']=0x0,_0x328621['docView']['updateSelection'](),!0x1):(this['selectionRange']['setRange'](_0x377262),_0x13f3d2&&(this['selectionChanged']=!0x0),!0x0);}['setSelectionRange'](_0xd03313,_0x53ef9a){this['selectionRange']['set'](_0xd03313['node'],_0xd03313['offset'],_0x53ef9a['node'],_0x53ef9a['offset']),this['selectionChanged']=!0x1;}['clearSelectionRange'](){this['selectionRange']['set'](null,0x0,null,0x0);}['listenForScroll'](){this['parentCheck']=-0x1;let _0x13e3ad=0x0,_0xf5731f=null;for(let _0x518120=this['dom'];_0x518120;)if(0x1==_0x518120['nodeType'])!_0xf5731f&&_0x13e3ad<this['scrollTargets']['length']&&this['scrollTargets'][_0x13e3ad]==_0x518120?_0x13e3ad++:_0xf5731f||(_0xf5731f=this['scrollTargets']['slice'](0x0,_0x13e3ad)),_0xf5731f&&_0xf5731f['push'](_0x518120),_0x518120=_0x518120['assignedSlot']||_0x518120['parentNode'];else{if(0xb!=_0x518120['nodeType'])break;_0x518120=_0x518120['host'];}if(_0x13e3ad<this['scrollTargets']['length']&&!_0xf5731f&&(_0xf5731f=this['scrollTargets']['slice'](0x0,_0x13e3ad)),_0xf5731f){for(let _0x577967 of this['scrollTargets'])_0x577967['removeEventListener']('scroll',this['onScroll']);for(let _0x403f79 of this['scrollTargets']=_0xf5731f)_0x403f79['addEventListener']('scroll',this['onScroll']);}}['ignore'](_0x59ad88){if(!this['active'])return _0x59ad88();try{return this['stop'](),_0x59ad88();}finally{this['start'](),this['clear']();}}['start'](){this['active']||(this['observer']['observe'](this['dom'],observeOptions),useCharData&&this['dom']['addEventListener']('DOMCharacterDataModified',this['onCharData']),this['active']=!0x0);}['stop'](){this['active']&&(this['active']=!0x1,this['observer']['disconnect'](),useCharData&&this['dom']['removeEventListener']('DOMCharacterDataModified',this['onCharData']));}['clear'](){this['processRecords'](),this['queue']['length']=0x0,this['selectionChanged']=!0x1;}['delayAndroidKey'](_0x395484,_0x594901){var _0x592cc2;if(!this['delayedAndroidKey']){let _0x145577=()=>{let _0x59f571=this['delayedAndroidKey'];_0x59f571&&(this['clearDelayedAndroidKey'](),this['view']['inputState']['lastKeyCode']=_0x59f571['keyCode'],this['view']['inputState']['lastKeyTime']=Date['now'](),!this['flush']()&&_0x59f571['force']&&dispatchKey(this['dom'],_0x59f571['key'],_0x59f571['keyCode']));};this['flushingAndroidKey']=this['view']['win']['requestAnimationFrame'](_0x145577);}this['delayedAndroidKey']&&'Enter'!=_0x395484||(this['delayedAndroidKey']={'key':_0x395484,'keyCode':_0x594901,'force':this['lastChange']<Date['now']()-0x32||!!(null===(_0x592cc2=this['delayedAndroidKey'])||void 0x0===_0x592cc2?void 0x0:_0x592cc2['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 _0x5808d2 of this['observer']['takeRecords']())this['queue']['push'](_0x5808d2);return this['queue'];}['processRecords'](){let _0x31c3b5=this['pendingRecords']();_0x31c3b5['length']&&(this['queue']=[]);let _0x2da090=-0x1,_0x57c238=-0x1,_0x2e4099=!0x1;for(let _0x4e5120 of _0x31c3b5){let _0x5f3d04=this['readMutation'](_0x4e5120);_0x5f3d04&&(_0x5f3d04['typeOver']&&(_0x2e4099=!0x0),-0x1==_0x2da090?{from:_0x2da090,to:_0x57c238}=_0x5f3d04:(_0x2da090=Math['min'](_0x5f3d04['from'],_0x2da090),_0x57c238=Math['max'](_0x5f3d04['to'],_0x57c238)));}return{'from':_0x2da090,'to':_0x57c238,'typeOver':_0x2e4099};}['readChange'](){let {from:_0x2037ea,to:_0x36a57d,typeOver:_0x5a4db9}=this['processRecords'](),_0x1e7ce6=this['selectionChanged']&&hasSelection(this['dom'],this['selectionRange']);if(_0x2037ea<0x0&&!_0x1e7ce6)return null;_0x2037ea>-0x1&&(this['lastChange']=Date['now']()),this['view']['inputState']['lastFocusTime']=0x0,this['selectionChanged']=!0x1;let _0x643389=new DOMChange(this['view'],_0x2037ea,_0x36a57d,_0x5a4db9);return this['view']['docView']['domChanged']={'newSel':_0x643389['newSel']?_0x643389['newSel']['main']:null},_0x643389;}['flush'](_0x4dfcc2=!0x0){if(this['delayedFlush']>=0x0||this['delayedAndroidKey'])return!0x1;_0x4dfcc2&&this['readSelectionRange']();let _0x390c59=this['readChange']();if(!_0x390c59)return this['view']['requestMeasure'](),!0x1;let _0x576202=this['view']['state'],_0x521c5d=applyDOMChange(this['view'],_0x390c59);return this['view']['state']==_0x576202&&(_0x390c59['domChanged']||_0x390c59['newSel']&&!_0x390c59['newSel']['main']['eq'](this['view']['state']['selection']['main']))&&this['view']['update']([]),_0x521c5d;}['readMutation'](_0x579a90){let _0x255855=this['view']['docView']['nearest'](_0x579a90['target']);if(!_0x255855||_0x255855['ignoreMutation'](_0x579a90))return null;if(_0x255855['markDirty']('attributes'==_0x579a90['type']),'attributes'==_0x579a90['type']&&(_0x255855['flags']|=0x4),'childList'==_0x579a90['type']){let _0x421b20=findChild(_0x255855,_0x579a90['previousSibling']||_0x579a90['target']['previousSibling'],-0x1),_0x48d19a=findChild(_0x255855,_0x579a90['nextSibling']||_0x579a90['target']['nextSibling'],0x1);return{'from':_0x421b20?_0x255855['posAfter'](_0x421b20):_0x255855['posAtStart'],'to':_0x48d19a?_0x255855['posBefore'](_0x48d19a):_0x255855['posAtEnd'],'typeOver':!0x1};}return'characterData'==_0x579a90['type']?{'from':_0x255855['posAtStart'],'to':_0x255855['posAtEnd'],'typeOver':_0x579a90['target']['nodeValue']==_0x579a90['oldValue']}:null;}['setWindow'](_0x34345d){_0x34345d!=this['win']&&(this['removeWindowListeners'](this['win']),this['win']=_0x34345d,this['addWindowListeners'](this['win']));}['addWindowListeners'](_0x117037){_0x117037['addEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['addEventListener']?this['printQuery']['addEventListener']('change',this['onPrint']):this['printQuery']['addListener'](this['onPrint']):_0x117037['addEventListener']('beforeprint',this['onPrint']),_0x117037['addEventListener']('scroll',this['onScroll']),_0x117037['document']['addEventListener']('selectionchange',this['onSelectionChange']);}['removeWindowListeners'](_0x2e6be2){_0x2e6be2['removeEventListener']('scroll',this['onScroll']),_0x2e6be2['removeEventListener']('resize',this['onResize']),this['printQuery']?this['printQuery']['removeEventListener']?this['printQuery']['removeEventListener']('change',this['onPrint']):this['printQuery']['removeListener'](this['onPrint']):_0x2e6be2['removeEventListener']('beforeprint',this['onPrint']),_0x2e6be2['document']['removeEventListener']('selectionchange',this['onSelectionChange']);}['update'](_0x5c903f){this['editContext']&&(this['editContext']['update'](_0x5c903f),_0x5c903f['startState']['facet'](editable)!=_0x5c903f['state']['facet'](editable)&&(_0x5c903f['view']['contentDOM']['editContext']=_0x5c903f['state']['facet'](editable)?this['editContext']['editContext']:null));}['destroy'](){var _0x11f6e2,_0x2bb137,_0x11678a;this['stop'](),null===(_0x11f6e2=this['intersection'])||void 0x0===_0x11f6e2||_0x11f6e2['disconnect'](),null===(_0x2bb137=this['gapIntersection'])||void 0x0===_0x2bb137||_0x2bb137['disconnect'](),null===(_0x11678a=this['resizeScroll'])||void 0x0===_0x11678a||_0x11678a['disconnect']();for(let _0x551a9f of this['scrollTargets'])_0x551a9f['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 findChild(_0x323d10,_0x9826d,_0x1177de){for(;_0x9826d;){let _0x5ebf94=ContentView['get'](_0x9826d);if(_0x5ebf94&&_0x5ebf94['parent']==_0x323d10)return _0x5ebf94;let _0x35a317=_0x9826d['parentNode'];_0x9826d=_0x35a317!=_0x323d10['dom']?_0x35a317:_0x1177de>0x0?_0x9826d['nextSibling']:_0x9826d['previousSibling'];}return null;}function buildSelectionRangeFromRange(_0xeb638c,_0x28d7c6){let _0x215a80=_0x28d7c6['startContainer'],_0x1da143=_0x28d7c6['startOffset'],_0x1e66dc=_0x28d7c6['endContainer'],_0x32485b=_0x28d7c6['endOffset'],_0xd54ad3=_0xeb638c['docView']['domAtPos'](_0xeb638c['state']['selection']['main']['anchor']);return isEquivalentPosition(_0xd54ad3['node'],_0xd54ad3['offset'],_0x1e66dc,_0x32485b)&&([_0x215a80,_0x1da143,_0x1e66dc,_0x32485b]=[_0x1e66dc,_0x32485b,_0x215a80,_0x1da143]),{'anchorNode':_0x215a80,'anchorOffset':_0x1da143,'focusNode':_0x1e66dc,'focusOffset':_0x32485b};}function safariSelectionRangeHack(_0x41c67e,_0x18cb1d){if(_0x18cb1d['getComposedRanges']){let _0x20c5e8=_0x18cb1d['getComposedRanges'](_0x41c67e['root'])[0x0];if(_0x20c5e8)return buildSelectionRangeFromRange(_0x41c67e,_0x20c5e8);}let _0x47e9ac=null;function _0xddca12(_0x17b1ed){_0x17b1ed['preventDefault'](),_0x17b1ed['stopImmediatePropagation'](),_0x47e9ac=_0x17b1ed['getTargetRanges']()[0x0];}return _0x41c67e['contentDOM']['addEventListener']('beforeinput',_0xddca12,!0x0),_0x41c67e['dom']['ownerDocument']['execCommand']('indent'),_0x41c67e['contentDOM']['removeEventListener']('beforeinput',_0xddca12,!0x0),_0x47e9ac?buildSelectionRangeFromRange(_0x41c67e,_0x47e9ac):null;}class EditContextManager{constructor(_0x160207){this['from']=0x0,this['to']=0x0,this['pendingContextChange']=null,this['handlers']=Object['create'](null),this['composing']=null,this['resetRange'](_0x160207['state']);let _0x4bff5d=this['editContext']=new window['EditContext']({'text':_0x160207['state']['doc']['sliceString'](this['from'],this['to']),'selectionStart':this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x160207['state']['selection']['main']['anchor']))),'selectionEnd':this['toContextPos'](_0x160207['state']['selection']['main']['head'])});this['handlers']['textupdate']=_0x26bcbd=>{let _0x7ac548=_0x160207['state']['selection']['main'],{anchor:_0x55fafb,head:_0x44a70b}=_0x7ac548,_0x3e8826=this['toEditorPos'](_0x26bcbd['updateRangeStart']),_0x3b2588=this['toEditorPos'](_0x26bcbd['updateRangeEnd']);_0x160207['inputState']['composing']>=0x0&&!this['composing']&&(this['composing']={'contextBase':_0x26bcbd['updateRangeStart'],'editorBase':_0x3e8826,'drifted':!0x1});let _0x12272d=_0x3b2588-_0x3e8826>_0x26bcbd['text']['length'];_0x3e8826==this['from']&&_0x55fafb<this['from']?_0x3e8826=_0x55fafb:_0x3b2588==this['to']&&_0x55fafb>this['to']&&(_0x3b2588=_0x55fafb);let _0x1b0c52=findDiff(_0x160207['state']['sliceDoc'](_0x3e8826,_0x3b2588),_0x26bcbd['text'],(_0x12272d?_0x7ac548['from']:_0x7ac548['to'])-_0x3e8826,_0x12272d?'end':null);if(!_0x1b0c52){let _0x13a95a=EditorSelection['single'](this['toEditorPos'](_0x26bcbd['selectionStart']),this['toEditorPos'](_0x26bcbd['selectionEnd']));return void(_0x13a95a['main']['eq'](_0x7ac548)||_0x160207['dispatch']({'selection':_0x13a95a,'userEvent':'select'}));}let _0xa6ed0f={'from':_0x1b0c52['from']+_0x3e8826,'to':_0x1b0c52['toA']+_0x3e8826,'insert':Text['of'](_0x26bcbd['text']['slice'](_0x1b0c52['from'],_0x1b0c52['toB'])['split']('\x0a'))};if((browser['mac']||browser['android'])&&_0xa6ed0f['from']==_0x44a70b-0x1&&/^\. ?$/['test'](_0x26bcbd['text'])&&'off'==_0x160207['contentDOM']['getAttribute']('autocorrect')&&(_0xa6ed0f={'from':_0x3e8826,'to':_0x3b2588,'insert':Text['of']([_0x26bcbd['text']['replace']('.','\x20')])}),this['pendingContextChange']=_0xa6ed0f,!_0x160207['state']['readOnly']){let _0x210a73=this['to']-this['from']+(_0xa6ed0f['to']-_0xa6ed0f['from']+_0xa6ed0f['insert']['length']);applyDOMChangeInner(_0x160207,_0xa6ed0f,EditorSelection['single'](this['toEditorPos'](_0x26bcbd['selectionStart'],_0x210a73),this['toEditorPos'](_0x26bcbd['selectionEnd'],_0x210a73)));}this['pendingContextChange']&&(this['revertPending'](_0x160207['state']),this['setSelection'](_0x160207['state'])),_0xa6ed0f['from']<_0xa6ed0f['to']&&!_0xa6ed0f['insert']['length']&&_0x160207['inputState']['composing']>=0x0&&!/[\\p{Alphabetic}\\p{Number}_]/['test'](_0x4bff5d['text']['slice'](Math['max'](0x0,_0x26bcbd['updateRangeStart']-0x1),Math['min'](_0x4bff5d['text']['length'],_0x26bcbd['updateRangeStart']+0x1)))&&this['handlers']['compositionend'](_0x26bcbd);},this['handlers']['characterboundsupdate']=_0x57b10c=>{let _0x92f67e=[],_0x31028f=null;for(let _0x3a3e17=this['toEditorPos'](_0x57b10c['rangeStart']),_0x3493c3=this['toEditorPos'](_0x57b10c['rangeEnd']);_0x3a3e17<_0x3493c3;_0x3a3e17++){let _0x4afb22=_0x160207['coordsForChar'](_0x3a3e17);_0x31028f=_0x4afb22&&new DOMRect(_0x4afb22['left'],_0x4afb22['top'],_0x4afb22['right']-_0x4afb22['left'],_0x4afb22['bottom']-_0x4afb22['top'])||_0x31028f||new DOMRect(),_0x92f67e['push'](_0x31028f);}_0x4bff5d['updateCharacterBounds'](_0x57b10c['rangeStart'],_0x92f67e);},this['handlers']['textformatupdate']=_0xbacfc8=>{let _0x3e567d=[];for(let _0x386014 of _0xbacfc8['getTextFormats']()){let _0x10e998=_0x386014['underlineStyle'],_0x550b85=_0x386014['underlineThickness'];if(!/none/i['test'](_0x10e998)&&!/none/i['test'](_0x550b85)){let _0x7dd9e0=this['toEditorPos'](_0x386014['rangeStart']),_0x282f30=this['toEditorPos'](_0x386014['rangeEnd']);if(_0x7dd9e0<_0x282f30){let _0x19a2af='text-decoration:\x20underline\x20'+(/^[a-z]/['test'](_0x10e998)?_0x10e998+'\x20':'Dashed'==_0x10e998?'dashed\x20':'Squiggle'==_0x10e998?'wavy\x20':'')+(/thin/i['test'](_0x550b85)?0x1:0x2)+'px';_0x3e567d['push'](Decoration['mark']({'attributes':{'style':_0x19a2af}})['range'](_0x7dd9e0,_0x282f30));}}}_0x160207['dispatch']({'effects':setEditContextFormatting['of'](Decoration['set'](_0x3e567d))});},this['handlers']['compositionstart']=()=>{_0x160207['inputState']['composing']<0x0&&(_0x160207['inputState']['composing']=0x0,_0x160207['inputState']['compositionFirstChange']=!0x0);},this['handlers']['compositionend']=()=>{if(_0x160207['inputState']['composing']=-0x1,_0x160207['inputState']['compositionFirstChange']=null,this['composing']){let {drifted:_0x5e1b5a}=this['composing'];this['composing']=null,_0x5e1b5a&&this['reset'](_0x160207['state']);}};for(let _0x58298e in this['handlers'])_0x4bff5d['addEventListener'](_0x58298e,this['handlers'][_0x58298e]);this['measureReq']={'read':_0x35fb69=>{this['editContext']['updateControlBounds'](_0x35fb69['contentDOM']['getBoundingClientRect']());let _0x5d9b3a=getSelection(_0x35fb69['root']);_0x5d9b3a&&_0x5d9b3a['rangeCount']&&this['editContext']['updateSelectionBounds'](_0x5d9b3a['getRangeAt'](0x0)['getBoundingClientRect']());}};}['applyEdits'](_0x2c403b){let _0x3dace6=0x0,_0x4e84f9=!0x1,_0x49cdee=this['pendingContextChange'];return _0x2c403b['changes']['iterChanges']((_0x5a7c68,_0x31054d,_0x17f97d,_0x376ec9,_0x3f7cb3)=>{if(_0x4e84f9)return;let _0x87b26e=_0x3f7cb3['length']-(_0x31054d-_0x5a7c68);if(_0x49cdee&&_0x31054d>=_0x49cdee['to']){if(_0x49cdee['from']==_0x5a7c68&&_0x49cdee['to']==_0x31054d&&_0x49cdee['insert']['eq'](_0x3f7cb3))return _0x49cdee=this['pendingContextChange']=null,_0x3dace6+=_0x87b26e,void(this['to']+=_0x87b26e);_0x49cdee=null,this['revertPending'](_0x2c403b['state']);}if(_0x5a7c68+=_0x3dace6,(_0x31054d+=_0x3dace6)<=this['from'])this['from']+=_0x87b26e,this['to']+=_0x87b26e;else{if(_0x5a7c68<this['to']){if(_0x5a7c68<this['from']||_0x31054d>this['to']||this['to']-this['from']+_0x3f7cb3['length']>0x7530)return void(_0x4e84f9=!0x0);this['editContext']['updateText'](this['toContextPos'](_0x5a7c68),this['toContextPos'](_0x31054d),_0x3f7cb3['toString']()),this['to']+=_0x87b26e;}}_0x3dace6+=_0x87b26e;}),_0x49cdee&&!_0x4e84f9&&this['revertPending'](_0x2c403b['state']),!_0x4e84f9;}['update'](_0x229f63){let _0x5268f4=this['pendingContextChange'],_0x5dfb35=_0x229f63['startState']['selection']['main'];this['composing']&&(this['composing']['drifted']||!_0x229f63['changes']['touchesRange'](_0x5dfb35['from'],_0x5dfb35['to'])&&_0x229f63['transactions']['some'](_0x190a9b=>!_0x190a9b['isUserEvent']('input.type')&&_0x190a9b['changes']['touchesRange'](this['from'],this['to'])))?(this['composing']['drifted']=!0x0,this['composing']['editorBase']=_0x229f63['changes']['mapPos'](this['composing']['editorBase'])):this['applyEdits'](_0x229f63)&&this['rangeIsValid'](_0x229f63['state'])?(_0x229f63['docChanged']||_0x229f63['selectionSet']||_0x5268f4)&&this['setSelection'](_0x229f63['state']):(this['pendingContextChange']=null,this['reset'](_0x229f63['state'])),(_0x229f63['geometryChanged']||_0x229f63['docChanged']||_0x229f63['selectionSet'])&&_0x229f63['view']['requestMeasure'](this['measureReq']);}['resetRange'](_0x258f84){let {head:_0xdd5400}=_0x258f84['selection']['main'];this['from']=Math['max'](0x0,_0xdd5400-0x2710),this['to']=Math['min'](_0x258f84['doc']['length'],_0xdd5400+0x2710);}['reset'](_0x1c227a){this['resetRange'](_0x1c227a),this['editContext']['updateText'](0x0,this['editContext']['text']['length'],_0x1c227a['doc']['sliceString'](this['from'],this['to'])),this['setSelection'](_0x1c227a);}['revertPending'](_0x135440){let _0x2822d4=this['pendingContextChange'];this['pendingContextChange']=null,this['editContext']['updateText'](this['toContextPos'](_0x2822d4['from']),this['toContextPos'](_0x2822d4['from']+_0x2822d4['insert']['length']),_0x135440['doc']['sliceString'](_0x2822d4['from'],_0x2822d4['to']));}['setSelection'](_0x443acb){let {main:_0x439347}=_0x443acb['selection'],_0x20232c=this['toContextPos'](Math['max'](this['from'],Math['min'](this['to'],_0x439347['anchor']))),_0x3b1f1f=this['toContextPos'](_0x439347['head']);this['editContext']['selectionStart']==_0x20232c&&this['editContext']['selectionEnd']==_0x3b1f1f||this['editContext']['updateSelection'](_0x20232c,_0x3b1f1f);}['rangeIsValid'](_0x5e9c4f){let {head:_0x2c369f}=_0x5e9c4f['selection']['main'];return!(this['from']>0x0&&_0x2c369f-this['from']<0x1f4||this['to']<_0x5e9c4f['doc']['length']&&this['to']-_0x2c369f<0x1f4||this['to']-this['from']>0x7530);}['toEditorPos'](_0x5810bf,_0x1e200b=this['to']-this['from']){_0x5810bf=Math['min'](_0x5810bf,_0x1e200b);let _0x41d040=this['composing'];return _0x41d040&&_0x41d040['drifted']?_0x41d040['editorBase']+(_0x5810bf-_0x41d040['contextBase']):_0x5810bf+this['from'];}['toContextPos'](_0x561e1c){let _0x660f12=this['composing'];return _0x660f12&&_0x660f12['drifted']?_0x660f12['contextBase']+(_0x561e1c-_0x660f12['editorBase']):_0x561e1c-this['from'];}['destroy'](){for(let _0x65703a in this['handlers'])this['editContext']['removeEventListener'](_0x65703a,this['handlers'][_0x65703a]);}}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(_0x5d1b16={}){var _0x310122;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']),_0x5d1b16['parent']&&_0x5d1b16['parent']['appendChild'](this['dom']);let {dispatch:_0x57a7f0}=_0x5d1b16;this['dispatchTransactions']=_0x5d1b16['dispatchTransactions']||_0x57a7f0&&(_0x355f3b=>_0x355f3b['forEach'](_0x475477=>_0x57a7f0(_0x475477,this)))||(_0x3b4bbb=>this['update'](_0x3b4bbb)),this['dispatch']=this['dispatch']['bind'](this),this['_root']=_0x5d1b16['root']||getRoot(_0x5d1b16['parent'])||document,this['viewState']=new ViewState(_0x5d1b16['state']||EditorState['create'](_0x5d1b16)),_0x5d1b16['scrollTo']&&_0x5d1b16['scrollTo']['is'](scrollIntoView$1)&&(this['viewState']['scrollTarget']=_0x5d1b16['scrollTo']['value']['clip'](this['viewState']['state'])),this['plugins']=this['state']['facet'](viewPlugin)['map'](_0x31d431=>new PluginInstance(_0x31d431));for(let _0x35bac3 of this['plugins'])_0x35bac3['update'](this);this['observer']=new DOMObserver(this),this['inputState']=new InputState(this),this['inputState']['ensureHandlers'](this['plugins']),this['docView']=new DocView(this),this['mountStyles'](),this['updateAttrs'](),this['updateState']=0x0,this['requestMeasure'](),(null===(_0x310122=document['fonts'])||void 0x0===_0x310122?void 0x0:_0x310122['ready'])&&document['fonts']['ready']['then'](()=>this['requestMeasure']());}['dispatch'](..._0x3f1f53){let _0x4ae668=0x1==_0x3f1f53['length']&&_0x3f1f53[0x0]instanceof Transaction?_0x3f1f53:0x1==_0x3f1f53['length']&&Array['isArray'](_0x3f1f53[0x0])?_0x3f1f53[0x0]:[this['state']['update'](..._0x3f1f53)];this['dispatchTransactions'](_0x4ae668,this);}['update'](_0x38b6a9){if(0x0!=this['updateState'])throw new Error('Calls\x20to\x20EditorView.update\x20are\x20not\x20allowed\x20while\x20an\x20update\x20is\x20in\x20progress');let _0x3c0388,_0x35464e=!0x1,_0x2e0d67=!0x1,_0xef7b55=this['state'];for(let _0x276440 of _0x38b6a9){if(_0x276440['startState']!=_0xef7b55)throw new RangeError('Trying\x20to\x20update\x20state\x20with\x20a\x20transaction\x20that\x20doesn\x27t\x20start\x20from\x20the\x20previous\x20state.');_0xef7b55=_0x276440['state'];}if(this['destroyed'])return void(this['viewState']['state']=_0xef7b55);let _0x38c88b=this['hasFocus'],_0x38e12e=0x0,_0x34ad65=null;_0x38b6a9['some'](_0x3bda15=>_0x3bda15['annotation'](isFocusChange))?(this['inputState']['notifiedFocused']=_0x38c88b,_0x38e12e=0x1):_0x38c88b!=this['inputState']['notifiedFocused']&&(this['inputState']['notifiedFocused']=_0x38c88b,_0x34ad65=focusChangeTransaction(_0xef7b55,_0x38c88b),_0x34ad65||(_0x38e12e=0x1));let _0x23a6a4=this['observer']['delayedAndroidKey'],_0x5378ea=null;if(_0x23a6a4?(this['observer']['clearDelayedAndroidKey'](),_0x5378ea=this['observer']['readChange'](),(_0x5378ea&&!this['state']['doc']['eq'](_0xef7b55['doc'])||!this['state']['selection']['eq'](_0xef7b55['selection']))&&(_0x5378ea=null)):this['observer']['clear'](),_0xef7b55['facet'](EditorState['phrases'])!=this['state']['facet'](EditorState['phrases']))return this['setState'](_0xef7b55);_0x3c0388=ViewUpdate['create'](this,_0xef7b55,_0x38b6a9),_0x3c0388['flags']|=_0x38e12e;let _0x3fe410=this['viewState']['scrollTarget'];try{this['updateState']=0x2;for(let _0x34d991 of _0x38b6a9){if(_0x3fe410&&(_0x3fe410=_0x3fe410['map'](_0x34d991['changes'])),_0x34d991['scrollIntoView']){let {main:_0x4e4e89}=_0x34d991['state']['selection'];_0x3fe410=new ScrollTarget(_0x4e4e89['empty']?_0x4e4e89:EditorSelection['cursor'](_0x4e4e89['head'],_0x4e4e89['head']>_0x4e4e89['anchor']?-0x1:0x1));}for(let _0x5f0f38 of _0x34d991['effects'])_0x5f0f38['is'](scrollIntoView$1)&&(_0x3fe410=_0x5f0f38['value']['clip'](this['state']));}this['viewState']['update'](_0x3c0388,_0x3fe410),this['bidiCache']=CachedOrder['update'](this['bidiCache'],_0x3c0388['changes']),_0x3c0388['empty']||(this['updatePlugins'](_0x3c0388),this['inputState']['update'](_0x3c0388)),_0x35464e=this['docView']['update'](_0x3c0388),this['state']['facet'](styleModule)!=this['styleModules']&&this['mountStyles'](),_0x2e0d67=this['updateAttrs'](),this['showAnnouncements'](_0x38b6a9),this['docView']['updateSelection'](_0x35464e,_0x38b6a9['some'](_0x4e91e7=>_0x4e91e7['isUserEvent']('select.pointer')));}finally{this['updateState']=0x0;}if(_0x3c0388['startState']['facet'](theme)!=_0x3c0388['state']['facet'](theme)&&(this['viewState']['mustMeasureContent']=!0x0),(_0x35464e||_0x2e0d67||_0x3fe410||this['viewState']['mustEnforceCursorAssoc']||this['viewState']['mustMeasureContent'])&&this['requestMeasure'](),_0x35464e&&this['docViewUpdate'](),!_0x3c0388['empty']){for(let _0x482f60 of this['state']['facet'](updateListener))try{_0x482f60(_0x3c0388);}catch(_0x316d26){logException(this['state'],_0x316d26,'update\x20listener');}}(_0x34ad65||_0x5378ea)&&Promise['resolve']()['then'](()=>{_0x34ad65&&this['state']==_0x34ad65['startState']&&this['dispatch'](_0x34ad65),_0x5378ea&&!applyDOMChange(this,_0x5378ea)&&_0x23a6a4['force']&&dispatchKey(this['contentDOM'],_0x23a6a4['key'],_0x23a6a4['keyCode']);});}['setState'](_0x176c77){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']=_0x176c77);this['updateState']=0x2;let _0x4bce28=this['hasFocus'];try{for(let _0x3d9ee of this['plugins'])_0x3d9ee['destroy'](this);this['viewState']=new ViewState(_0x176c77),this['plugins']=_0x176c77['facet'](viewPlugin)['map'](_0x56f485=>new PluginInstance(_0x56f485)),this['pluginMap']['clear']();for(let _0x37eaed of this['plugins'])_0x37eaed['update'](this);this['docView']['destroy'](),this['docView']=new DocView(this),this['inputState']['ensureHandlers'](this['plugins']),this['mountStyles'](),this['updateAttrs'](),this['bidiCache']=[];}finally{this['updateState']=0x0;}_0x4bce28&&this['focus'](),this['requestMeasure']();}['updatePlugins'](_0x4dcab5){let _0x466df6=_0x4dcab5['startState']['facet'](viewPlugin),_0x4e3082=_0x4dcab5['state']['facet'](viewPlugin);if(_0x466df6!=_0x4e3082){let _0x3517b6=[];for(let _0x3051f4 of _0x4e3082){let _0xbc8ac1=_0x466df6['indexOf'](_0x3051f4);if(_0xbc8ac1<0x0)_0x3517b6['push'](new PluginInstance(_0x3051f4));else{let _0xd011bf=this['plugins'][_0xbc8ac1];_0xd011bf['mustUpdate']=_0x4dcab5,_0x3517b6['push'](_0xd011bf);}}for(let _0x4a5fa4 of this['plugins'])_0x4a5fa4['mustUpdate']!=_0x4dcab5&&_0x4a5fa4['destroy'](this);this['plugins']=_0x3517b6,this['pluginMap']['clear']();}else{for(let _0xf07602 of this['plugins'])_0xf07602['mustUpdate']=_0x4dcab5;}for(let _0x4294da=0x0;_0x4294da<this['plugins']['length'];_0x4294da++)this['plugins'][_0x4294da]['update'](this);_0x466df6!=_0x4e3082&&this['inputState']['ensureHandlers'](this['plugins']);}['docViewUpdate'](){for(let _0x1b150 of this['plugins']){let _0x2ac21d=_0x1b150['value'];if(_0x2ac21d&&_0x2ac21d['docViewUpdate'])try{_0x2ac21d['docViewUpdate'](this);}catch(_0x3b00c8){logException(this['state'],_0x3b00c8,'doc\x20view\x20update\x20listener');}}}['measure'](_0x6c94df=!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,_0x6c94df&&this['observer']['forceFlush']();let _0xe870eb=null,_0x4ec7a4=this['scrollDOM'],_0x17a530=_0x4ec7a4['scrollTop']*this['scaleY'],{scrollAnchorPos:_0x3e1c94,scrollAnchorHeight:_0xb8f53b}=this['viewState'];Math['abs'](_0x17a530-this['viewState']['scrollTop'])>0x1&&(_0xb8f53b=-0x1),this['viewState']['scrollAnchorHeight']=-0x1;try{for(let _0x4e07b6=0x0;;_0x4e07b6++){if(_0xb8f53b<0x0){if(isScrolledToBottom(_0x4ec7a4))_0x3e1c94=-0x1,_0xb8f53b=this['viewState']['heightMap']['height'];else{let _0x4e131a=this['viewState']['scrollAnchorAt'](_0x17a530);_0x3e1c94=_0x4e131a['from'],_0xb8f53b=_0x4e131a['top'];}}this['updateState']=0x1;let _0x4a78ff=this['viewState']['measure'](this);if(!_0x4a78ff&&!this['measureRequests']['length']&&null==this['viewState']['scrollTarget'])break;if(_0x4e07b6>0x5){console['warn'](this['measureRequests']['length']?'Measure\x20loop\x20restarted\x20more\x20than\x205\x20times':'Viewport\x20failed\x20to\x20stabilize');break;}let _0x1e0bad=[];0x4&_0x4a78ff||([this['measureRequests'],_0x1e0bad]=[_0x1e0bad,this['measureRequests']]);let _0x268ba6=_0x1e0bad['map'](_0x4aad36=>{try{return _0x4aad36['read'](this);}catch(_0x4e9b14){return logException(this['state'],_0x4e9b14),BadMeasure;}}),_0x560bb=ViewUpdate['create'](this,this['state'],[]),_0x1cb03e=!0x1;_0x560bb['flags']|=_0x4a78ff,_0xe870eb?_0xe870eb['flags']|=_0x4a78ff:_0xe870eb=_0x560bb,this['updateState']=0x2,_0x560bb['empty']||(this['updatePlugins'](_0x560bb),this['inputState']['update'](_0x560bb),this['updateAttrs'](),_0x1cb03e=this['docView']['update'](_0x560bb),_0x1cb03e&&this['docViewUpdate']());for(let _0x3ddbca=0x0;_0x3ddbca<_0x1e0bad['length'];_0x3ddbca++)if(_0x268ba6[_0x3ddbca]!=BadMeasure)try{let _0x565722=_0x1e0bad[_0x3ddbca];_0x565722['write']&&_0x565722['write'](_0x268ba6[_0x3ddbca],this);}catch(_0x2c2d91){logException(this['state'],_0x2c2d91);}if(_0x1cb03e&&this['docView']['updateSelection'](!0x0),!_0x560bb['viewportChanged']&&0x0==this['measureRequests']['length']){if(this['viewState']['editorHeight']){if(this['viewState']['scrollTarget']){this['docView']['scrollIntoView'](this['viewState']['scrollTarget']),this['viewState']['scrollTarget']=null,_0xb8f53b=-0x1;continue;}{let _0x5b8489=(_0x3e1c94<0x0?this['viewState']['heightMap']['height']:this['viewState']['lineBlockAt'](_0x3e1c94)['top'])-_0xb8f53b;if(_0x5b8489>0x1||_0x5b8489<-0x1){_0x17a530+=_0x5b8489,_0x4ec7a4['scrollTop']=_0x17a530/this['scaleY'],_0xb8f53b=-0x1;continue;}}}break;}}}finally{this['updateState']=0x0,this['measureScheduled']=-0x1;}if(_0xe870eb&&!_0xe870eb['empty']){for(let _0x2a7486 of this['state']['facet'](updateListener))_0x2a7486(_0xe870eb);}}get['themeClasses'](){return baseThemeID+'\x20'+(this['state']['facet'](darkTheme)?baseDarkID:baseLightID)+'\x20'+this['state']['facet'](theme);}['updateAttrs'](){let _0x29526e=attrsFromFacet(this,editorAttributes,{'class':'cm-editor'+(this['hasFocus']?'\x20cm-focused\x20':'\x20')+this['themeClasses']}),_0xf64e29={'spellcheck':'false','autocorrect':'off','autocapitalize':'off','writingsuggestions':'false','translate':'no','contenteditable':this['state']['facet'](editable)?'true':'false','class':'cm-content','style':browser['tabSize']+':\x20'+this['state']['tabSize'],'role':'textbox','aria-multiline':'true'};this['state']['readOnly']&&(_0xf64e29['aria-readonly']='true'),attrsFromFacet(this,contentAttributes,_0xf64e29);let _0x51cecf=this['observer']['ignore'](()=>{let _0x53d66e=updateAttrs(this['contentDOM'],this['contentAttrs'],_0xf64e29),_0x114ea3=updateAttrs(this['dom'],this['editorAttrs'],_0x29526e);return _0x53d66e||_0x114ea3;});return this['editorAttrs']=_0x29526e,this['contentAttrs']=_0xf64e29,_0x51cecf;}['showAnnouncements'](_0x13244d){let _0x23123d=!0x0;for(let _0x195e95 of _0x13244d)for(let _0x188e66 of _0x195e95['effects'])_0x188e66['is'](EditorView['announce'])&&(_0x23123d&&(this['announceDOM']['textContent']=''),_0x23123d=!0x1,this['announceDOM']['appendChild'](document['createElement']('div'))['textContent']=_0x188e66['value']);}['mountStyles'](){this['styleModules']=this['state']['facet'](styleModule);let _0x3a4404=this['state']['facet'](EditorView['cspNonce']);StyleModule['mount'](this['root'],this['styleModules']['concat'](baseTheme$1$1)['reverse'](),_0x3a4404?{'nonce':_0x3a4404}: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'](_0x31c4e6){if(this['measureScheduled']<0x0&&(this['measureScheduled']=this['win']['requestAnimationFrame'](()=>this['measure']())),_0x31c4e6){if(this['measureRequests']['indexOf'](_0x31c4e6)>-0x1)return;if(null!=_0x31c4e6['key']){for(let _0x5455d9=0x0;_0x5455d9<this['measureRequests']['length'];_0x5455d9++)if(this['measureRequests'][_0x5455d9]['key']===_0x31c4e6['key'])return void(this['measureRequests'][_0x5455d9]=_0x31c4e6);}this['measureRequests']['push'](_0x31c4e6);}}['plugin'](_0x32f3d6){let _0x420e2b=this['pluginMap']['get'](_0x32f3d6);return(void 0x0===_0x420e2b||_0x420e2b&&_0x420e2b['plugin']!=_0x32f3d6)&&this['pluginMap']['set'](_0x32f3d6,_0x420e2b=this['plugins']['find'](_0x57d27c=>_0x57d27c['plugin']==_0x32f3d6)||null),_0x420e2b&&_0x420e2b['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'](_0x1c7d81){return this['readMeasured'](),this['viewState']['elementAtHeight'](_0x1c7d81);}['lineBlockAtHeight'](_0x4c8aca){return this['readMeasured'](),this['viewState']['lineBlockAtHeight'](_0x4c8aca);}get['viewportLineBlocks'](){return this['viewState']['viewportLines'];}['lineBlockAt'](_0x1df4b2){return this['viewState']['lineBlockAt'](_0x1df4b2);}get['contentHeight'](){return this['viewState']['contentHeight'];}['moveByChar'](_0x22e30d,_0x7b5735,_0x18e9c1){return skipAtoms(this,_0x22e30d,moveByChar(this,_0x22e30d,_0x7b5735,_0x18e9c1));}['moveByGroup'](_0x3172a6,_0x163e0e){return skipAtoms(this,_0x3172a6,moveByChar(this,_0x3172a6,_0x163e0e,_0x5442da=>byGroup(this,_0x3172a6['head'],_0x5442da)));}['visualLineSide'](_0x4aba6c,_0x5271df){let _0x1d3063=this['bidiSpans'](_0x4aba6c),_0x3c819a=this['textDirectionAt'](_0x4aba6c['from']),_0x442af0=_0x1d3063[_0x5271df?_0x1d3063['length']-0x1:0x0];return EditorSelection['cursor'](_0x442af0['side'](_0x5271df,_0x3c819a)+_0x4aba6c['from'],_0x442af0['forward'](!_0x5271df,_0x3c819a)?0x1:-0x1);}['moveToLineBoundary'](_0x4b77e3,_0x328962,_0x5947c4=!0x0){return moveToLineBoundary(this,_0x4b77e3,_0x328962,_0x5947c4);}['moveVertically'](_0x33babf,_0x475886,_0x213565){return skipAtoms(this,_0x33babf,moveVertically(this,_0x33babf,_0x475886,_0x213565));}['domAtPos'](_0x2c09f6){return this['docView']['domAtPos'](_0x2c09f6);}['posAtDOM'](_0x39b183,_0x125150=0x0){return this['docView']['posFromDOM'](_0x39b183,_0x125150);}['posAtCoords'](_0x31f3bd,_0x59c6e1=!0x0){return this['readMeasured'](),posAtCoords(this,_0x31f3bd,_0x59c6e1);}['coordsAtPos'](_0x5db2b1,_0x4b3fc7=0x1){this['readMeasured']();let _0x2e0c13=this['docView']['coordsAt'](_0x5db2b1,_0x4b3fc7);if(!_0x2e0c13||_0x2e0c13['left']==_0x2e0c13['right'])return _0x2e0c13;let _0x1a10d9=this['state']['doc']['lineAt'](_0x5db2b1),_0x2ffdb2=this['bidiSpans'](_0x1a10d9);return flattenRect(_0x2e0c13,_0x2ffdb2[BidiSpan['find'](_0x2ffdb2,_0x5db2b1-_0x1a10d9['from'],-0x1,_0x4b3fc7)]['dir']==Direction['LTR']==_0x4b3fc7>0x0);}['coordsForChar'](_0x1d1f5a){return this['readMeasured'](),this['docView']['coordsForChar'](_0x1d1f5a);}get['defaultCharacterWidth'](){return this['viewState']['heightOracle']['charWidth'];}get['defaultLineHeight'](){return this['viewState']['heightOracle']['lineHeight'];}get['textDirection'](){return this['viewState']['defaultTextDirection'];}['textDirectionAt'](_0x2a0c6f){return!this['state']['facet'](perLineTextDirection)||_0x2a0c6f<this['viewport']['from']||_0x2a0c6f>this['viewport']['to']?this['textDirection']:(this['readMeasured'](),this['docView']['textDirectionAt'](_0x2a0c6f));}get['lineWrapping'](){return this['viewState']['heightOracle']['lineWrapping'];}['bidiSpans'](_0x1f14e9){if(_0x1f14e9['length']>MaxBidiLine)return trivialOrder(_0x1f14e9['length']);let _0x263001,_0x45451b=this['textDirectionAt'](_0x1f14e9['from']);for(let _0x4d727f of this['bidiCache'])if(_0x4d727f['from']==_0x1f14e9['from']&&_0x4d727f['dir']==_0x45451b&&(_0x4d727f['fresh']||isolatesEq(_0x4d727f['isolates'],_0x263001=getIsolatedRanges(this,_0x1f14e9))))return _0x4d727f['order'];_0x263001||(_0x263001=getIsolatedRanges(this,_0x1f14e9));let _0x36053f=computeOrder(_0x1f14e9['text'],_0x45451b,_0x263001);return this['bidiCache']['push'](new CachedOrder(_0x1f14e9['from'],_0x1f14e9['to'],_0x45451b,_0x263001,!0x0,_0x36053f)),_0x36053f;}get['hasFocus'](){var _0x22b6f9;return(this['dom']['ownerDocument']['hasFocus']()||browser['safari']&&(null===(_0x22b6f9=this['inputState'])||void 0x0===_0x22b6f9?void 0x0:_0x22b6f9['lastContextMenu'])>Date['now']()-0x7530)&&this['root']['activeElement']==this['contentDOM'];}['focus'](){this['observer']['ignore'](()=>{focusPreventScroll(this['contentDOM']),this['docView']['updateSelection']();});}['setRoot'](_0x243128){this['_root']!=_0x243128&&(this['_root']=_0x243128,this['observer']['setWindow']((0x9==_0x243128['nodeType']?_0x243128:_0x243128['ownerDocument'])['defaultView']||window),this['mountStyles']());}['destroy'](){this['root']['activeElement']==this['contentDOM']&&this['contentDOM']['blur']();for(let _0x484ff0 of this['plugins'])_0x484ff0['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'](_0x429736,_0x5d2eec={}){return scrollIntoView$1['of'](new ScrollTarget('number'==typeof _0x429736?EditorSelection['cursor'](_0x429736):_0x429736,_0x5d2eec['y'],_0x5d2eec['x'],_0x5d2eec['yMargin'],_0x5d2eec['xMargin']));}['scrollSnapshot'](){let {scrollTop:_0x2596fa,scrollLeft:_0x420830}=this['scrollDOM'],_0x4b6277=this['viewState']['scrollAnchorAt'](_0x2596fa);return scrollIntoView$1['of'](new ScrollTarget(EditorSelection['cursor'](_0x4b6277['from']),'start','start',_0x4b6277['top']-_0x2596fa,_0x420830,!0x0));}['setTabFocusMode'](_0x12ede9){null==_0x12ede9?this['inputState']['tabFocusMode']=this['inputState']['tabFocusMode']<0x0?0x0:-0x1:'boolean'==typeof _0x12ede9?this['inputState']['tabFocusMode']=_0x12ede9?0x0:-0x1:0x0!=this['inputState']['tabFocusMode']&&(this['inputState']['tabFocusMode']=Date['now']()+_0x12ede9);}static['domEventHandlers'](_0x17cab6){return ViewPlugin['define'](()=>({}),{'eventHandlers':_0x17cab6});}static['domEventObservers'](_0x1ad50e){return ViewPlugin['define'](()=>({}),{'eventObservers':_0x1ad50e});}static['theme'](_0x3d399c,_0x22c3c3){let _0x438020=StyleModule['newName'](),_0x315bb5=[theme['of'](_0x438020),styleModule['of'](buildTheme('.'+_0x438020,_0x3d399c))];return _0x22c3c3&&_0x22c3c3['dark']&&_0x315bb5['push'](darkTheme['of'](!0x0)),_0x315bb5;}static['baseTheme'](_0x314cb9){return Prec['lowest'](styleModule['of'](buildTheme('.'+baseThemeID,_0x314cb9,lightDarkIDs)));}static['findFromDOM'](_0x16e1f5){var _0x49bf20;let _0x4a23eb=_0x16e1f5['querySelector']('.cm-content'),_0x205c65=_0x4a23eb&&ContentView['get'](_0x4a23eb)||ContentView['get'](_0x16e1f5);return(null===(_0x49bf20=null==_0x205c65?void 0x0:_0x205c65['rootView'])||void 0x0===_0x49bf20?void 0x0:_0x49bf20['view'])||null;}}EditorView['styleModule']=styleModule,EditorView['inputHandler']=inputHandler$1,EditorView['clipboardInputFilter']=clipboardInputFilter,EditorView['clipboardOutputFilter']=clipboardOutputFilter,EditorView['scrollHandler']=scrollHandler,EditorView['focusChangeEffect']=focusChangeEffect,EditorView['perLineTextDirection']=perLineTextDirection,EditorView['exceptionSink']=exceptionSink,EditorView['updateListener']=updateListener,EditorView['editable']=editable,EditorView['mouseSelectionStyle']=mouseSelectionStyle,EditorView['dragMovesSelection']=dragMovesSelection$1,EditorView['clickAddsSelectionRange']=clickAddsSelectionRange,EditorView['decorations']=decorations,EditorView['outerDecorations']=outerDecorations,EditorView['atomicRanges']=atomicRanges,EditorView['bidiIsolatedRanges']=bidiIsolatedRanges,EditorView['scrollMargins']=scrollMargins,EditorView['darkTheme']=darkTheme,EditorView['cspNonce']=Facet['define']({'combine':_0x3b842f=>_0x3b842f['length']?_0x3b842f[0x0]:''}),EditorView['contentAttributes']=contentAttributes,EditorView['editorAttributes']=editorAttributes,EditorView['lineWrapping']=EditorView['contentAttributes']['of']({'class':'cm-lineWrapping'}),EditorView['announce']=StateEffect['define']();const MaxBidiLine=0x1000,BadMeasure={};class CachedOrder{constructor(_0x449b46,_0x414db3,_0x45d242,_0x12f876,_0x4a2d6a,_0x3a2412){this['from']=_0x449b46,this['to']=_0x414db3,this['dir']=_0x45d242,this['isolates']=_0x12f876,this['fresh']=_0x4a2d6a,this['order']=_0x3a2412;}static['update'](_0x1c8771,_0x59cbb7){if(_0x59cbb7['empty']&&!_0x1c8771['some'](_0x22a853=>_0x22a853['fresh']))return _0x1c8771;let _0x3a8051=[],_0x1c7922=_0x1c8771['length']?_0x1c8771[_0x1c8771['length']-0x1]['dir']:Direction['LTR'];for(let _0x1e00c3=Math['max'](0x0,_0x1c8771['length']-0xa);_0x1e00c3<_0x1c8771['length'];_0x1e00c3++){let _0x22bd99=_0x1c8771[_0x1e00c3];_0x22bd99['dir']!=_0x1c7922||_0x59cbb7['touchesRange'](_0x22bd99['from'],_0x22bd99['to'])||_0x3a8051['push'](new CachedOrder(_0x59cbb7['mapPos'](_0x22bd99['from'],0x1),_0x59cbb7['mapPos'](_0x22bd99['to'],-0x1),_0x22bd99['dir'],_0x22bd99['isolates'],!0x1,_0x22bd99['order']));}return _0x3a8051;}}function attrsFromFacet(_0x23bfe0,_0x311281,_0x4fe9d7){for(let _0x5b4599=_0x23bfe0['state']['facet'](_0x311281),_0x154483=_0x5b4599['length']-0x1;_0x154483>=0x0;_0x154483--){let _0x647c17=_0x5b4599[_0x154483],_0x5d2025='function'==typeof _0x647c17?_0x647c17(_0x23bfe0):_0x647c17;_0x5d2025&&combineAttrs(_0x5d2025,_0x4fe9d7);}return _0x4fe9d7;}const currentPlatform=browser['mac']?'mac':browser['windows']?'win':browser['linux']?'linux':'key';function normalizeKeyName(_0x445ff4,_0x5671ca){const _0x31d0e9=_0x445ff4['split'](/-(?!$)/);let _0x3db15a,_0x36b8b9,_0x59de2d,_0x120362,_0x3f11bc=_0x31d0e9[_0x31d0e9['length']-0x1];'Space'==_0x3f11bc&&(_0x3f11bc='\x20');for(let _0x409406=0x0;_0x409406<_0x31d0e9['length']-0x1;++_0x409406){const _0x21e7a4=_0x31d0e9[_0x409406];if(/^(cmd|meta|m)$/i['test'](_0x21e7a4))_0x120362=!0x0;else{if(/^a(lt)?$/i['test'](_0x21e7a4))_0x3db15a=!0x0;else{if(/^(c|ctrl|control)$/i['test'](_0x21e7a4))_0x36b8b9=!0x0;else{if(/^s(hift)?$/i['test'](_0x21e7a4))_0x59de2d=!0x0;else{if(!/^mod$/i['test'](_0x21e7a4))throw new Error('Unrecognized\x20modifier\x20name:\x20'+_0x21e7a4);'mac'==_0x5671ca?_0x120362=!0x0:_0x36b8b9=!0x0;}}}}}return _0x3db15a&&(_0x3f11bc='Alt-'+_0x3f11bc),_0x36b8b9&&(_0x3f11bc='Ctrl-'+_0x3f11bc),_0x120362&&(_0x3f11bc='Meta-'+_0x3f11bc),_0x59de2d&&(_0x3f11bc='Shift-'+_0x3f11bc),_0x3f11bc;}function modifiers(_0x482eca,_0xf9f783,_0x51f923){return _0xf9f783['altKey']&&(_0x482eca='Alt-'+_0x482eca),_0xf9f783['ctrlKey']&&(_0x482eca='Ctrl-'+_0x482eca),_0xf9f783['metaKey']&&(_0x482eca='Meta-'+_0x482eca),!0x1!==_0x51f923&&_0xf9f783['shiftKey']&&(_0x482eca='Shift-'+_0x482eca),_0x482eca;}const handleKeyEvents=Prec['default'](EditorView['domEventHandlers']({'keydown':(_0x4e9e1f,_0x35f2e0)=>runHandlers(getKeymap(_0x35f2e0['state']),_0x4e9e1f,_0x35f2e0,'editor')})),keymap=Facet['define']({'enables':handleKeyEvents}),Keymaps=new WeakMap();function getKeymap(_0x4b0809){let _0x3dccca=_0x4b0809['facet'](keymap),_0x5c94bf=Keymaps['get'](_0x3dccca);return _0x5c94bf||Keymaps['set'](_0x3dccca,_0x5c94bf=buildKeymap(_0x3dccca['reduce']((_0x44f0fd,_0x56ba64)=>_0x44f0fd['concat'](_0x56ba64),[]))),_0x5c94bf;}let storedPrefix=null;const PrefixTimeout=0xfa0;function buildKeymap(_0x5f353f,_0x42a5a9=currentPlatform){let _0x166e86=Object['create'](null),_0x4f50a9=Object['create'](null),_0x3fb718=(_0x46f41a,_0x4f6d5f)=>{let _0x596aea=_0x4f50a9[_0x46f41a];if(null==_0x596aea)_0x4f50a9[_0x46f41a]=_0x4f6d5f;else{if(_0x596aea!=_0x4f6d5f)throw new Error('Key\x20binding\x20'+_0x46f41a+'\x20is\x20used\x20both\x20as\x20a\x20regular\x20binding\x20and\x20as\x20a\x20multi-stroke\x20prefix');}},_0x5c550a=(_0x2ebbfd,_0x35bfc6,_0x2e5e71,_0x50a712,_0x408fa6)=>{var _0x31c76c,_0x1f9304;let _0x55d33b=_0x166e86[_0x2ebbfd]||(_0x166e86[_0x2ebbfd]=Object['create'](null)),_0x56e392=_0x35bfc6['split'](/ (?!$)/)['map'](_0x2fd3b2=>normalizeKeyName(_0x2fd3b2,_0x42a5a9));for(let _0x89a675=0x1;_0x89a675<_0x56e392['length'];_0x89a675++){let _0xd78b88=_0x56e392['slice'](0x0,_0x89a675)['join']('\x20');_0x3fb718(_0xd78b88,!0x0),_0x55d33b[_0xd78b88]||(_0x55d33b[_0xd78b88]={'preventDefault':!0x0,'stopPropagation':!0x1,'run':[_0x5ba1aa=>{let _0x26fca5=storedPrefix={'view':_0x5ba1aa,'prefix':_0xd78b88,'scope':_0x2ebbfd};return setTimeout(()=>{storedPrefix==_0x26fca5&&(storedPrefix=null);},PrefixTimeout),!0x0;}]});}let _0x2e7b41=_0x56e392['join']('\x20');_0x3fb718(_0x2e7b41,!0x1);let _0x4470e9=_0x55d33b[_0x2e7b41]||(_0x55d33b[_0x2e7b41]={'preventDefault':!0x1,'stopPropagation':!0x1,'run':(null===(_0x1f9304=null===(_0x31c76c=_0x55d33b['_any'])||void 0x0===_0x31c76c?void 0x0:_0x31c76c['run'])||void 0x0===_0x1f9304?void 0x0:_0x1f9304['slice']())||[]});_0x2e5e71&&_0x4470e9['run']['push'](_0x2e5e71),_0x50a712&&(_0x4470e9['preventDefault']=!0x0),_0x408fa6&&(_0x4470e9['stopPropagation']=!0x0);};for(let _0x374030 of _0x5f353f){let _0x3e7546=_0x374030['scope']?_0x374030['scope']['split']('\x20'):['editor'];if(_0x374030['any'])for(let _0x69b382 of _0x3e7546){let _0x13473e=_0x166e86[_0x69b382]||(_0x166e86[_0x69b382]=Object['create'](null));_0x13473e['_any']||(_0x13473e['_any']={'preventDefault':!0x1,'stopPropagation':!0x1,'run':[]});let {any:_0x4de13e}=_0x374030;for(let _0x5d70f4 in _0x13473e)_0x13473e[_0x5d70f4]['run']['push'](_0x2d6533=>_0x4de13e(_0x2d6533,currentKeyEvent));}let _0x4df80b=_0x374030[_0x42a5a9]||_0x374030['key'];if(_0x4df80b){for(let _0x3278c0 of _0x3e7546)_0x5c550a(_0x3278c0,_0x4df80b,_0x374030['run'],_0x374030['preventDefault'],_0x374030['stopPropagation']),_0x374030['shift']&&_0x5c550a(_0x3278c0,'Shift-'+_0x4df80b,_0x374030['shift'],_0x374030['preventDefault'],_0x374030['stopPropagation']);}}return _0x166e86;}let currentKeyEvent=null;function runHandlers(_0x1bba8b,_0x235c03,_0x2ebe45,_0x2d8f41){currentKeyEvent=_0x235c03;let _0x53ab5a=keyName(_0x235c03),_0x562805=codePointSize(codePointAt(_0x53ab5a,0x0))==_0x53ab5a['length']&&'\x20'!=_0x53ab5a,_0x4360c0='',_0x114f7d=!0x1,_0x2a2288=!0x1,_0x49c85c=!0x1;storedPrefix&&storedPrefix['view']==_0x2ebe45&&storedPrefix['scope']==_0x2d8f41&&(_0x4360c0=storedPrefix['prefix']+'\x20',modifierCodes['indexOf'](_0x235c03['keyCode'])<0x0&&(_0x2a2288=!0x0,storedPrefix=null));let _0x5ca0fa,_0x32e612,_0x283f83=new Set(),_0x4fc2b6=_0x3840a3=>{if(_0x3840a3){for(let _0x16be0f of _0x3840a3['run'])if(!_0x283f83['has'](_0x16be0f)&&(_0x283f83['add'](_0x16be0f),_0x16be0f(_0x2ebe45)))return _0x3840a3['stopPropagation']&&(_0x49c85c=!0x0),!0x0;_0x3840a3['preventDefault']&&(_0x3840a3['stopPropagation']&&(_0x49c85c=!0x0),_0x2a2288=!0x0);}return!0x1;},_0x4132b4=_0x1bba8b[_0x2d8f41];return _0x4132b4&&(_0x4fc2b6(_0x4132b4[_0x4360c0+modifiers(_0x53ab5a,_0x235c03,!_0x562805)])?_0x114f7d=!0x0:!_0x562805||!(_0x235c03['altKey']||_0x235c03['metaKey']||_0x235c03['ctrlKey'])||browser['windows']&&_0x235c03['ctrlKey']&&_0x235c03['altKey']||browser['mac']&&_0x235c03['altKey']&&!_0x235c03['ctrlKey']&&!_0x235c03['metaKey']||!(_0x5ca0fa=base$2[_0x235c03['keyCode']])||_0x5ca0fa==_0x53ab5a?_0x562805&&_0x235c03['shiftKey']&&_0x4fc2b6(_0x4132b4[_0x4360c0+modifiers(_0x53ab5a,_0x235c03,!0x0)])&&(_0x114f7d=!0x0):(_0x4fc2b6(_0x4132b4[_0x4360c0+modifiers(_0x5ca0fa,_0x235c03,!0x0)])||_0x235c03['shiftKey']&&(_0x32e612=shift[_0x235c03['keyCode']])!=_0x53ab5a&&_0x32e612!=_0x5ca0fa&&_0x4fc2b6(_0x4132b4[_0x4360c0+modifiers(_0x32e612,_0x235c03,!0x1)]))&&(_0x114f7d=!0x0),!_0x114f7d&&_0x4fc2b6(_0x4132b4['_any'])&&(_0x114f7d=!0x0)),_0x2a2288&&(_0x114f7d=!0x0),_0x114f7d&&_0x49c85c&&_0x235c03['stopPropagation'](),currentKeyEvent=null,_0x114f7d;}class RectangleMarker{constructor(_0x341980,_0x2a9ed3,_0x520667,_0x2e6514,_0x2ac79c){this['className']=_0x341980,this['left']=_0x2a9ed3,this['top']=_0x520667,this['width']=_0x2e6514,this['height']=_0x2ac79c;}['draw'](){let _0x2e4b45=document['createElement']('div');return _0x2e4b45['className']=this['className'],this['adjust'](_0x2e4b45),_0x2e4b45;}['update'](_0x324f8c,_0x24721b){return _0x24721b['className']==this['className']&&(this['adjust'](_0x324f8c),!0x0);}['adjust'](_0x18bfbc){_0x18bfbc['style']['left']=this['left']+'px',_0x18bfbc['style']['top']=this['top']+'px',null!=this['width']&&(_0x18bfbc['style']['width']=this['width']+'px'),_0x18bfbc['style']['height']=this['height']+'px';}['eq'](_0xaafc28){return this['left']==_0xaafc28['left']&&this['top']==_0xaafc28['top']&&this['width']==_0xaafc28['width']&&this['height']==_0xaafc28['height']&&this['className']==_0xaafc28['className'];}static['forRange'](_0x340ac1,_0x1c659a,_0x94c3b4){if(_0x94c3b4['empty']){let _0x3446cc=_0x340ac1['coordsAtPos'](_0x94c3b4['head'],_0x94c3b4['assoc']||0x1);if(!_0x3446cc)return[];let _0x1c51f8=getBase(_0x340ac1);return[new RectangleMarker(_0x1c659a,_0x3446cc['left']-_0x1c51f8['left'],_0x3446cc['top']-_0x1c51f8['top'],null,_0x3446cc['bottom']-_0x3446cc['top'])];}return rectanglesForRange(_0x340ac1,_0x1c659a,_0x94c3b4);}}function getBase(_0x2e4758){let _0x44068b=_0x2e4758['scrollDOM']['getBoundingClientRect']();return{'left':(_0x2e4758['textDirection']==Direction['LTR']?_0x44068b['left']:_0x44068b['right']-_0x2e4758['scrollDOM']['clientWidth']*_0x2e4758['scaleX'])-_0x2e4758['scrollDOM']['scrollLeft']*_0x2e4758['scaleX'],'top':_0x44068b['top']-_0x2e4758['scrollDOM']['scrollTop']*_0x2e4758['scaleY']};}function wrappedLine(_0x2d482c,_0x320adf,_0x3c7700,_0x9fcc1d){let _0x5c26b2=_0x2d482c['coordsAtPos'](_0x320adf,0x2*_0x3c7700);if(!_0x5c26b2)return _0x9fcc1d;let _0x30a726=_0x2d482c['dom']['getBoundingClientRect'](),_0x15af24=(_0x5c26b2['top']+_0x5c26b2['bottom'])/0x2,_0x4a8e83=_0x2d482c['posAtCoords']({'x':_0x30a726['left']+0x1,'y':_0x15af24}),_0x24a321=_0x2d482c['posAtCoords']({'x':_0x30a726['right']-0x1,'y':_0x15af24});return null==_0x4a8e83||null==_0x24a321?_0x9fcc1d:{'from':Math['max'](_0x9fcc1d['from'],Math['min'](_0x4a8e83,_0x24a321)),'to':Math['min'](_0x9fcc1d['to'],Math['max'](_0x4a8e83,_0x24a321))};}function rectanglesForRange(_0x19cdf3,_0x36123b,_0x158a41){if(_0x158a41['to']<=_0x19cdf3['viewport']['from']||_0x158a41['from']>=_0x19cdf3['viewport']['to'])return[];let _0x51fec9=Math['max'](_0x158a41['from'],_0x19cdf3['viewport']['from']),_0x5be6c3=Math['min'](_0x158a41['to'],_0x19cdf3['viewport']['to']),_0x5761d6=_0x19cdf3['textDirection']==Direction['LTR'],_0x20f58b=_0x19cdf3['contentDOM'],_0x2f0ca0=_0x20f58b['getBoundingClientRect'](),_0xd4f4f2=getBase(_0x19cdf3),_0x36ed3d=_0x20f58b['querySelector']('.cm-line'),_0x498ea3=_0x36ed3d&&window['getComputedStyle'](_0x36ed3d),_0x420e04=_0x2f0ca0['left']+(_0x498ea3?parseInt(_0x498ea3['paddingLeft'])+Math['min'](0x0,parseInt(_0x498ea3['textIndent'])):0x0),_0xac5d6b=_0x2f0ca0['right']-(_0x498ea3?parseInt(_0x498ea3['paddingRight']):0x0),_0x3d7322=blockAt(_0x19cdf3,_0x51fec9,0x1),_0x45bfa6=blockAt(_0x19cdf3,_0x5be6c3,-0x1),_0x39fed5=_0x3d7322['type']==BlockType['Text']?_0x3d7322:null,_0x27e4d7=_0x45bfa6['type']==BlockType['Text']?_0x45bfa6:null;if(_0x39fed5&&(_0x19cdf3['lineWrapping']||_0x3d7322['widgetLineBreaks'])&&(_0x39fed5=wrappedLine(_0x19cdf3,_0x51fec9,0x1,_0x39fed5)),_0x27e4d7&&(_0x19cdf3['lineWrapping']||_0x45bfa6['widgetLineBreaks'])&&(_0x27e4d7=wrappedLine(_0x19cdf3,_0x5be6c3,-0x1,_0x27e4d7)),_0x39fed5&&_0x27e4d7&&_0x39fed5['from']==_0x27e4d7['from']&&_0x39fed5['to']==_0x27e4d7['to'])return _0x3ba371(_0x1f5ab2(_0x158a41['from'],_0x158a41['to'],_0x39fed5));{let _0x1c9142=_0x39fed5?_0x1f5ab2(_0x158a41['from'],null,_0x39fed5):_0x358246(_0x3d7322,!0x1),_0x52d1bc=_0x27e4d7?_0x1f5ab2(null,_0x158a41['to'],_0x27e4d7):_0x358246(_0x45bfa6,!0x0),_0x5b02f9=[];return(_0x39fed5||_0x3d7322)['to']<(_0x27e4d7||_0x45bfa6)['from']-(_0x39fed5&&_0x27e4d7?0x1:0x0)||_0x3d7322['widgetLineBreaks']>0x1&&_0x1c9142['bottom']+_0x19cdf3['defaultLineHeight']/0x2<_0x52d1bc['top']?_0x5b02f9['push'](_0x4eba8d(_0x420e04,_0x1c9142['bottom'],_0xac5d6b,_0x52d1bc['top'])):_0x1c9142['bottom']<_0x52d1bc['top']&&_0x19cdf3['elementAtHeight']((_0x1c9142['bottom']+_0x52d1bc['top'])/0x2)['type']==BlockType['Text']&&(_0x1c9142['bottom']=_0x52d1bc['top']=(_0x1c9142['bottom']+_0x52d1bc['top'])/0x2),_0x3ba371(_0x1c9142)['concat'](_0x5b02f9)['concat'](_0x3ba371(_0x52d1bc));}function _0x4eba8d(_0x392150,_0x798f80,_0x2dbcdc,_0xfc4c99){return new RectangleMarker(_0x36123b,_0x392150-_0xd4f4f2['left'],_0x798f80-_0xd4f4f2['top'],_0x2dbcdc-_0x392150,_0xfc4c99-_0x798f80);}function _0x3ba371({top:_0x2d4248,bottom:_0x2d9de2,horizontal:_0x45881d}){let _0x19ad27=[];for(let _0x4cb357=0x0;_0x4cb357<_0x45881d['length'];_0x4cb357+=0x2)_0x19ad27['push'](_0x4eba8d(_0x45881d[_0x4cb357],_0x2d4248,_0x45881d[_0x4cb357+0x1],_0x2d9de2));return _0x19ad27;}function _0x1f5ab2(_0x35de04,_0x3a6cf8,_0x43a564){let _0x27f571=0x3b9aca00,_0xd6e771=-0x3b9aca00,_0x5cdffb=[];function _0x5ce463(_0x326942,_0x21784f,_0x1effab,_0x36c33a,_0x1f1788){let _0x100f8a=_0x19cdf3['coordsAtPos'](_0x326942,_0x326942==_0x43a564['to']?-0x2:0x2),_0x3bd734=_0x19cdf3['coordsAtPos'](_0x1effab,_0x1effab==_0x43a564['from']?0x2:-0x2);_0x100f8a&&_0x3bd734&&(_0x27f571=Math['min'](_0x100f8a['top'],_0x3bd734['top'],_0x27f571),_0xd6e771=Math['max'](_0x100f8a['bottom'],_0x3bd734['bottom'],_0xd6e771),_0x1f1788==Direction['LTR']?_0x5cdffb['push'](_0x5761d6&&_0x21784f?_0x420e04:_0x100f8a['left'],_0x5761d6&&_0x36c33a?_0xac5d6b:_0x3bd734['right']):_0x5cdffb['push'](!_0x5761d6&&_0x36c33a?_0x420e04:_0x3bd734['left'],!_0x5761d6&&_0x21784f?_0xac5d6b:_0x100f8a['right']));}let _0x492469=null!=_0x35de04?_0x35de04:_0x43a564['from'],_0x15107a=null!=_0x3a6cf8?_0x3a6cf8:_0x43a564['to'];for(let _0x2687c9 of _0x19cdf3['visibleRanges'])if(_0x2687c9['to']>_0x492469&&_0x2687c9['from']<_0x15107a)for(let _0x3f4068=Math['max'](_0x2687c9['from'],_0x492469),_0x5e42a1=Math['min'](_0x2687c9['to'],_0x15107a);;){let _0x5f36c9=_0x19cdf3['state']['doc']['lineAt'](_0x3f4068);for(let _0xb1070b of _0x19cdf3['bidiSpans'](_0x5f36c9)){let _0x454f04=_0xb1070b['from']+_0x5f36c9['from'],_0x55ebb4=_0xb1070b['to']+_0x5f36c9['from'];if(_0x454f04>=_0x5e42a1)break;_0x55ebb4>_0x3f4068&&_0x5ce463(Math['max'](_0x454f04,_0x3f4068),null==_0x35de04&&_0x454f04<=_0x492469,Math['min'](_0x55ebb4,_0x5e42a1),null==_0x3a6cf8&&_0x55ebb4>=_0x15107a,_0xb1070b['dir']);}if(_0x3f4068=_0x5f36c9['to']+0x1,_0x3f4068>=_0x5e42a1)break;}return 0x0==_0x5cdffb['length']&&_0x5ce463(_0x492469,null==_0x35de04,_0x15107a,null==_0x3a6cf8,_0x19cdf3['textDirection']),{'top':_0x27f571,'bottom':_0xd6e771,'horizontal':_0x5cdffb};}function _0x358246(_0x3a1dd8,_0x58486d){let _0x5276cd=_0x2f0ca0['top']+(_0x58486d?_0x3a1dd8['top']:_0x3a1dd8['bottom']);return{'top':_0x5276cd,'bottom':_0x5276cd,'horizontal':[]};}}function sameMarker(_0x33bff6,_0x2fb504){return _0x33bff6['constructor']==_0x2fb504['constructor']&&_0x33bff6['eq'](_0x2fb504);}class LayerView{constructor(_0x49908d,_0x473e42){this['view']=_0x49908d,this['layer']=_0x473e42,this['drawn']=[],this['scaleX']=0x1,this['scaleY']=0x1,this['measureReq']={'read':this['measure']['bind'](this),'write':this['draw']['bind'](this)},this['dom']=_0x49908d['scrollDOM']['appendChild'](document['createElement']('div')),this['dom']['classList']['add']('cm-layer'),_0x473e42['above']&&this['dom']['classList']['add']('cm-layer-above'),_0x473e42['class']&&this['dom']['classList']['add'](_0x473e42['class']),this['scale'](),this['dom']['setAttribute']('aria-hidden','true'),this['setOrder'](_0x49908d['state']),_0x49908d['requestMeasure'](this['measureReq']),_0x473e42['mount']&&_0x473e42['mount'](this['dom'],_0x49908d);}['update'](_0x2d2959){_0x2d2959['startState']['facet'](layerOrder)!=_0x2d2959['state']['facet'](layerOrder)&&this['setOrder'](_0x2d2959['state']),(this['layer']['update'](_0x2d2959,this['dom'])||_0x2d2959['geometryChanged'])&&(this['scale'](),_0x2d2959['view']['requestMeasure'](this['measureReq']));}['docViewUpdate'](_0x410846){!0x1!==this['layer']['updateOnDocViewUpdate']&&_0x410846['requestMeasure'](this['measureReq']);}['setOrder'](_0x2b9f30){let _0x3168d6=0x0,_0x2b8f7d=_0x2b9f30['facet'](layerOrder);for(;_0x3168d6<_0x2b8f7d['length']&&_0x2b8f7d[_0x3168d6]!=this['layer'];)_0x3168d6++;this['dom']['style']['zIndex']=String((this['layer']['above']?0x96:-0x1)-_0x3168d6);}['measure'](){return this['layer']['markers'](this['view']);}['scale'](){let {scaleX:_0xa52d24,scaleY:_0x4a29ca}=this['view'];_0xa52d24==this['scaleX']&&_0x4a29ca==this['scaleY']||(this['scaleX']=_0xa52d24,this['scaleY']=_0x4a29ca,this['dom']['style']['transform']='scale('+0x1/_0xa52d24+',\x20'+0x1/_0x4a29ca+')');}['draw'](_0x20a794){if(_0x20a794['length']!=this['drawn']['length']||_0x20a794['some']((_0x53e964,_0x22d659)=>!sameMarker(_0x53e964,this['drawn'][_0x22d659]))){let _0x162411=this['dom']['firstChild'],_0x190b00=0x0;for(let _0xee1030 of _0x20a794)_0xee1030['update']&&_0x162411&&_0xee1030['constructor']&&this['drawn'][_0x190b00]['constructor']&&_0xee1030['update'](_0x162411,this['drawn'][_0x190b00])?(_0x162411=_0x162411['nextSibling'],_0x190b00++):this['dom']['insertBefore'](_0xee1030['draw'](),_0x162411);for(;_0x162411;){let _0x2ef5d4=_0x162411['nextSibling'];_0x162411['remove'](),_0x162411=_0x2ef5d4;}this['drawn']=_0x20a794,browser['safari']&&browser['safari_version']>=0x1a&&(this['dom']['style']['display']=this['dom']['firstChild']?'':'none');}}['destroy'](){this['layer']['destroy']&&this['layer']['destroy'](this['dom'],this['view']),this['dom']['remove']();}}const layerOrder=Facet['define']();function layer(_0x428a40){return[ViewPlugin['define'](_0xc474a4=>new LayerView(_0xc474a4,_0x428a40)),layerOrder['of'](_0x428a40)];}const selectionConfig=Facet['define']({'combine':_0x5c512e=>combineConfig(_0x5c512e,{'cursorBlinkRate':0x4b0,'drawRangeCursor':!0x0},{'cursorBlinkRate':(_0x3195b3,_0x105169)=>Math['min'](_0x3195b3,_0x105169),'drawRangeCursor':(_0x252b46,_0x46bc4c)=>_0x252b46||_0x46bc4c})});function drawSelection(_0x3cf9cc={}){return[selectionConfig['of'](_0x3cf9cc),cursorLayer,selectionLayer,hideNativeSelection,nativeSelectionHidden['of'](!0x0)];}function configChanged(_0x47e8a2){return _0x47e8a2['startState']['facet'](selectionConfig)!=_0x47e8a2['state']['facet'](selectionConfig);}const cursorLayer=layer({'above':!0x0,'markers'(_0x304bd9){let {state:_0x3cc7f9}=_0x304bd9,_0x108ad0=_0x3cc7f9['facet'](selectionConfig),_0x1cf458=[];for(let _0x1ec3ce of _0x3cc7f9['selection']['ranges']){let _0x236cd5=_0x1ec3ce==_0x3cc7f9['selection']['main'];if(_0x1ec3ce['empty']||_0x108ad0['drawRangeCursor']){let _0xad282b=_0x236cd5?'cm-cursor\x20cm-cursor-primary':'cm-cursor\x20cm-cursor-secondary',_0x1c1b6d=_0x1ec3ce['empty']?_0x1ec3ce:EditorSelection['cursor'](_0x1ec3ce['head'],_0x1ec3ce['head']>_0x1ec3ce['anchor']?-0x1:0x1);for(let _0x27edc0 of RectangleMarker['forRange'](_0x304bd9,_0xad282b,_0x1c1b6d))_0x1cf458['push'](_0x27edc0);}}return _0x1cf458;},'update'(_0x47f963,_0xf30beb){_0x47f963['transactions']['some'](_0x25b74f=>_0x25b74f['selection'])&&(_0xf30beb['style']['animationName']='cm-blink'==_0xf30beb['style']['animationName']?'cm-blink2':'cm-blink');let _0xf87ae6=configChanged(_0x47f963);return _0xf87ae6&&setBlinkRate(_0x47f963['state'],_0xf30beb),_0x47f963['docChanged']||_0x47f963['selectionSet']||_0xf87ae6;},'mount'(_0x554a7b,_0x55a519){setBlinkRate(_0x55a519['state'],_0x554a7b);},'class':'cm-cursorLayer'});function setBlinkRate(_0x5c8754,_0x48cd07){_0x48cd07['style']['animationDuration']=_0x5c8754['facet'](selectionConfig)['cursorBlinkRate']+'ms';}const selectionLayer=layer({'above':!0x1,'markers':_0x5e3e47=>_0x5e3e47['state']['selection']['ranges']['map'](_0x276c56=>_0x276c56['empty']?[]:RectangleMarker['forRange'](_0x5e3e47,'cm-selectionBackground',_0x276c56))['reduce']((_0x2b302e,_0x573763)=>_0x2b302e['concat'](_0x573763)),'update':(_0x51dbb0,_0x23e011)=>_0x51dbb0['docChanged']||_0x51dbb0['selectionSet']||_0x51dbb0['viewportChanged']||configChanged(_0x51dbb0),'class':'cm-selectionLayer'}),hideNativeSelection=Prec['highest'](EditorView['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'}}}})),setDropCursorPos=StateEffect['define']({'map':(_0x45ba3c,_0x511b5f)=>null==_0x45ba3c?null:_0x511b5f['mapPos'](_0x45ba3c)}),dropCursorPos=StateField['define']({'create':()=>null,'update':(_0x20daa8,_0xf2b447)=>(null!=_0x20daa8&&(_0x20daa8=_0xf2b447['changes']['mapPos'](_0x20daa8)),_0xf2b447['effects']['reduce']((_0x4ec4c2,_0x28323c)=>_0x28323c['is'](setDropCursorPos)?_0x28323c['value']:_0x4ec4c2,_0x20daa8))}),drawDropCursor=ViewPlugin['fromClass'](class{constructor(_0x3ce98d){this['view']=_0x3ce98d,this['cursor']=null,this['measureReq']={'read':this['readPos']['bind'](this),'write':this['drawCursor']['bind'](this)};}['update'](_0x5a061d){var _0x119423;let _0x1114ae=_0x5a061d['state']['field'](dropCursorPos);null==_0x1114ae?null!=this['cursor']&&(null===(_0x119423=this['cursor'])||void 0x0===_0x119423||_0x119423['remove'](),this['cursor']=null):(this['cursor']||(this['cursor']=this['view']['scrollDOM']['appendChild'](document['createElement']('div')),this['cursor']['className']='cm-dropCursor'),(_0x5a061d['startState']['field'](dropCursorPos)!=_0x1114ae||_0x5a061d['docChanged']||_0x5a061d['geometryChanged'])&&this['view']['requestMeasure'](this['measureReq']));}['readPos'](){let {view:_0x45eb19}=this,_0x4489a0=_0x45eb19['state']['field'](dropCursorPos),_0x26a638=null!=_0x4489a0&&_0x45eb19['coordsAtPos'](_0x4489a0);if(!_0x26a638)return null;let _0x290868=_0x45eb19['scrollDOM']['getBoundingClientRect']();return{'left':_0x26a638['left']-_0x290868['left']+_0x45eb19['scrollDOM']['scrollLeft']*_0x45eb19['scaleX'],'top':_0x26a638['top']-_0x290868['top']+_0x45eb19['scrollDOM']['scrollTop']*_0x45eb19['scaleY'],'height':_0x26a638['bottom']-_0x26a638['top']};}['drawCursor'](_0x9bb4b2){if(this['cursor']){let {scaleX:_0x1a1a96,scaleY:_0x967841}=this['view'];_0x9bb4b2?(this['cursor']['style']['left']=_0x9bb4b2['left']/_0x1a1a96+'px',this['cursor']['style']['top']=_0x9bb4b2['top']/_0x967841+'px',this['cursor']['style']['height']=_0x9bb4b2['height']/_0x967841+'px'):this['cursor']['style']['left']='-100000px';}}['destroy'](){this['cursor']&&this['cursor']['remove']();}['setDropPos'](_0x4b62b6){this['view']['state']['field'](dropCursorPos)!=_0x4b62b6&&this['view']['dispatch']({'effects':setDropCursorPos['of'](_0x4b62b6)});}},{'eventObservers':{'dragover'(_0x4e5e42){this['setDropPos'](this['view']['posAtCoords']({'x':_0x4e5e42['clientX'],'y':_0x4e5e42['clientY']}));},'dragleave'(_0x39592f){_0x39592f['target']!=this['view']['contentDOM']&&this['view']['contentDOM']['contains'](_0x39592f['relatedTarget'])||this['setDropPos'](null);},'dragend'(){this['setDropPos'](null);},'drop'(){this['setDropPos'](null);}}});function dropCursor(){return[dropCursorPos,drawDropCursor];}function iterMatches(_0x44539d,_0x288498,_0x34c29b,_0x53f0fc,_0x2b1a86){_0x288498['lastIndex']=0x0;for(let _0xf68e99,_0x3450b5=_0x44539d['iterRange'](_0x34c29b,_0x53f0fc),_0x5e6b7b=_0x34c29b;!_0x3450b5['next']()['done'];_0x5e6b7b+=_0x3450b5['value']['length'])if(!_0x3450b5['lineBreak']){for(;_0xf68e99=_0x288498['exec'](_0x3450b5['value']);)_0x2b1a86(_0x5e6b7b+_0xf68e99['index'],_0xf68e99);}}function matchRanges(_0x461408,_0x309954){let _0x82cf09=_0x461408['visibleRanges'];if(0x1==_0x82cf09['length']&&_0x82cf09[0x0]['from']==_0x461408['viewport']['from']&&_0x82cf09[0x0]['to']==_0x461408['viewport']['to'])return _0x82cf09;let _0x7818bf=[];for(let {from:_0x1a3e85,to:_0x3c79b9}of _0x82cf09)_0x1a3e85=Math['max'](_0x461408['state']['doc']['lineAt'](_0x1a3e85)['from'],_0x1a3e85-_0x309954),_0x3c79b9=Math['min'](_0x461408['state']['doc']['lineAt'](_0x3c79b9)['to'],_0x3c79b9+_0x309954),_0x7818bf['length']&&_0x7818bf[_0x7818bf['length']-0x1]['to']>=_0x1a3e85?_0x7818bf[_0x7818bf['length']-0x1]['to']=_0x3c79b9:_0x7818bf['push']({'from':_0x1a3e85,'to':_0x3c79b9});return _0x7818bf;}class MatchDecorator{constructor(_0x4df00a){const {regexp:_0x5a5340,decoration:_0x3616c9,decorate:_0x186fd4,boundary:_0x463a46,maxLength:_0x5320ae=0x3e8}=_0x4df00a;if(!_0x5a5340['global'])throw new RangeError('The\x20regular\x20expression\x20given\x20to\x20MatchDecorator\x20should\x20have\x20its\x20\x27g\x27\x20flag\x20set');if(this['regexp']=_0x5a5340,_0x186fd4)this['addMatch']=(_0x3286b9,_0xdb6673,_0x5dbf7e,_0x1686a2)=>_0x186fd4(_0x1686a2,_0x5dbf7e,_0x5dbf7e+_0x3286b9[0x0]['length'],_0x3286b9,_0xdb6673);else{if('function'==typeof _0x3616c9)this['addMatch']=(_0x5d7ce8,_0xbbe719,_0x4b028b,_0x16e3e2)=>{let _0x39fdd5=_0x3616c9(_0x5d7ce8,_0xbbe719,_0x4b028b);_0x39fdd5&&_0x16e3e2(_0x4b028b,_0x4b028b+_0x5d7ce8[0x0]['length'],_0x39fdd5);};else{if(!_0x3616c9)throw new RangeError('Either\x20\x27decorate\x27\x20or\x20\x27decoration\x27\x20should\x20be\x20provided\x20to\x20MatchDecorator');this['addMatch']=(_0x1b3a40,_0x541abe,_0x4b6127,_0x3d6126)=>_0x3d6126(_0x4b6127,_0x4b6127+_0x1b3a40[0x0]['length'],_0x3616c9);}}this['boundary']=_0x463a46,this['maxLength']=_0x5320ae;}['createDeco'](_0x20ed41){let _0x5beaa7=new RangeSetBuilder(),_0x260e8e=_0x5beaa7['add']['bind'](_0x5beaa7);for(let {from:_0x38f0cb,to:_0x1d0d9d}of matchRanges(_0x20ed41,this['maxLength']))iterMatches(_0x20ed41['state']['doc'],this['regexp'],_0x38f0cb,_0x1d0d9d,(_0x360303,_0x42bfca)=>this['addMatch'](_0x42bfca,_0x20ed41,_0x360303,_0x260e8e));return _0x5beaa7['finish']();}['updateDeco'](_0x399c1f,_0x4cabf7){let _0x598333=0x3b9aca00,_0x16c990=-0x1;return _0x399c1f['docChanged']&&_0x399c1f['changes']['iterChanges']((_0x3ce4fb,_0x4b0b7c,_0x398726,_0x1d6af7)=>{_0x1d6af7>=_0x399c1f['view']['viewport']['from']&&_0x398726<=_0x399c1f['view']['viewport']['to']&&(_0x598333=Math['min'](_0x398726,_0x598333),_0x16c990=Math['max'](_0x1d6af7,_0x16c990));}),_0x399c1f['viewportMoved']||_0x16c990-_0x598333>0x3e8?this['createDeco'](_0x399c1f['view']):_0x16c990>-0x1?this['updateRange'](_0x399c1f['view'],_0x4cabf7['map'](_0x399c1f['changes']),_0x598333,_0x16c990):_0x4cabf7;}['updateRange'](_0x3d41cb,_0x3dd9c5,_0x4c67bb,_0x3f47dd){for(let _0x23505a of _0x3d41cb['visibleRanges']){let _0x40d750=Math['max'](_0x23505a['from'],_0x4c67bb),_0xc4027c=Math['min'](_0x23505a['to'],_0x3f47dd);if(_0xc4027c>=_0x40d750){let _0x545678=_0x3d41cb['state']['doc']['lineAt'](_0x40d750),_0x972e0a=_0x545678['to']<_0xc4027c?_0x3d41cb['state']['doc']['lineAt'](_0xc4027c):_0x545678,_0x4a62cc=Math['max'](_0x23505a['from'],_0x545678['from']),_0x899924=Math['min'](_0x23505a['to'],_0x972e0a['to']);if(this['boundary']){for(;_0x40d750>_0x545678['from'];_0x40d750--)if(this['boundary']['test'](_0x545678['text'][_0x40d750-0x1-_0x545678['from']])){_0x4a62cc=_0x40d750;break;}for(;_0xc4027c<_0x972e0a['to'];_0xc4027c++)if(this['boundary']['test'](_0x972e0a['text'][_0xc4027c-_0x972e0a['from']])){_0x899924=_0xc4027c;break;}}let _0x388bdc,_0x462aeb=[],_0xfc8e01=(_0x48d4d9,_0x52e1c8,_0x1fae89)=>_0x462aeb['push'](_0x1fae89['range'](_0x48d4d9,_0x52e1c8));if(_0x545678==_0x972e0a){for(this['regexp']['lastIndex']=_0x4a62cc-_0x545678['from'];(_0x388bdc=this['regexp']['exec'](_0x545678['text']))&&_0x388bdc['index']<_0x899924-_0x545678['from'];)this['addMatch'](_0x388bdc,_0x3d41cb,_0x388bdc['index']+_0x545678['from'],_0xfc8e01);}else iterMatches(_0x3d41cb['state']['doc'],this['regexp'],_0x4a62cc,_0x899924,(_0x5ed8e3,_0x4b0a33)=>this['addMatch'](_0x4b0a33,_0x3d41cb,_0x5ed8e3,_0xfc8e01));_0x3dd9c5=_0x3dd9c5['update']({'filterFrom':_0x4a62cc,'filterTo':_0x899924,'filter':(_0x3e49f8,_0x4a8957)=>_0x3e49f8<_0x4a62cc||_0x4a8957>_0x899924,'add':_0x462aeb});}}return _0x3dd9c5;}}const UnicodeRegexpSupport=null!=/x/['unicode']?'gu':'g',Specials=new RegExp('[\x00-\x08\x0a-\x1f\x7f-\u009f­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]',UnicodeRegexpSupport),Names={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 _supportsTabSize=null;function supportsTabSize(){var _0x35304a;if(null==_supportsTabSize&&'undefined'!=typeof document&&document['body']){let _0x2bccd9=document['body']['style'];_supportsTabSize=null!=(null!==(_0x35304a=_0x2bccd9['tabSize'])&&void 0x0!==_0x35304a?_0x35304a:_0x2bccd9['MozTabSize']);}return _supportsTabSize||!0x1;}const specialCharConfig=Facet['define']({'combine'(_0x5b8e95){let _0x3302ef=combineConfig(_0x5b8e95,{'render':null,'specialChars':Specials,'addSpecialChars':null});return(_0x3302ef['replaceTabs']=!supportsTabSize())&&(_0x3302ef['specialChars']=new RegExp('\x09|'+_0x3302ef['specialChars']['source'],UnicodeRegexpSupport)),_0x3302ef['addSpecialChars']&&(_0x3302ef['specialChars']=new RegExp(_0x3302ef['specialChars']['source']+'|'+_0x3302ef['addSpecialChars']['source'],UnicodeRegexpSupport)),_0x3302ef;}});function highlightSpecialChars(_0x4e90a5={}){return[specialCharConfig['of'](_0x4e90a5),specialCharPlugin()];}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin['fromClass'](class{constructor(_0x442042){this['view']=_0x442042,this['decorations']=Decoration['none'],this['decorationCache']=Object['create'](null),this['decorator']=this['makeDecorator'](_0x442042['state']['facet'](specialCharConfig)),this['decorations']=this['decorator']['createDeco'](_0x442042);}['makeDecorator'](_0x41503c){return new MatchDecorator({'regexp':_0x41503c['specialChars'],'decoration':(_0x1eba45,_0x524ed0,_0x341f4e)=>{let {doc:_0x5937f7}=_0x524ed0['state'],_0x4f107b=codePointAt(_0x1eba45[0x0],0x0);if(0x9==_0x4f107b){let _0x337ee5=_0x5937f7['lineAt'](_0x341f4e),_0x186bda=_0x524ed0['state']['tabSize'],_0xa346d9=countColumn(_0x337ee5['text'],_0x186bda,_0x341f4e-_0x337ee5['from']);return Decoration['replace']({'widget':new TabWidget((_0x186bda-_0xa346d9%_0x186bda)*this['view']['defaultCharacterWidth']/this['view']['scaleX'])});}return this['decorationCache'][_0x4f107b]||(this['decorationCache'][_0x4f107b]=Decoration['replace']({'widget':new SpecialCharWidget(_0x41503c,_0x4f107b)}));},'boundary':_0x41503c['replaceTabs']?void 0x0:/[^]/});}['update'](_0xc752ff){let _0x54799d=_0xc752ff['state']['facet'](specialCharConfig);_0xc752ff['startState']['facet'](specialCharConfig)!=_0x54799d?(this['decorator']=this['makeDecorator'](_0x54799d),this['decorations']=this['decorator']['createDeco'](_0xc752ff['view'])):this['decorations']=this['decorator']['updateDeco'](_0xc752ff,this['decorations']);}},{'decorations':_0x4c220e=>_0x4c220e['decorations']}));}const DefaultPlaceholder='•';function placeholder$1(_0x4f2804){return _0x4f2804>=0x20?DefaultPlaceholder:0xa==_0x4f2804?'␤':String['fromCharCode'](0x2400+_0x4f2804);}class SpecialCharWidget extends WidgetType{constructor(_0x2c64fd,_0x1f65ff){super(),this['options']=_0x2c64fd,this['code']=_0x1f65ff;}['eq'](_0x3cd589){return _0x3cd589['code']==this['code'];}['toDOM'](_0x2b41c0){let _0x2cb15b=placeholder$1(this['code']),_0x5ed7c5=_0x2b41c0['state']['phrase']('Control\x20character')+'\x20'+(Names[this['code']]||'0x'+this['code']['toString'](0x10)),_0x383062=this['options']['render']&&this['options']['render'](this['code'],_0x5ed7c5,_0x2cb15b);if(_0x383062)return _0x383062;let _0x3957be=document['createElement']('span');return _0x3957be['textContent']=_0x2cb15b,_0x3957be['title']=_0x5ed7c5,_0x3957be['setAttribute']('aria-label',_0x5ed7c5),_0x3957be['className']='cm-specialChar',_0x3957be;}['ignoreEvent'](){return!0x1;}}class TabWidget extends WidgetType{constructor(_0x17f03a){super(),this['width']=_0x17f03a;}['eq'](_0x38ed3e){return _0x38ed3e['width']==this['width'];}['toDOM'](){let _0x10a45f=document['createElement']('span');return _0x10a45f['textContent']='\x09',_0x10a45f['className']='cm-tab',_0x10a45f['style']['width']=this['width']+'px',_0x10a45f;}['ignoreEvent'](){return!0x1;}}function highlightActiveLine(){return activeLineHighlighter;}const lineDeco=Decoration['line']({'class':'cm-activeLine'}),activeLineHighlighter=ViewPlugin['fromClass'](class{constructor(_0x499d4b){this['decorations']=this['getDeco'](_0x499d4b);}['update'](_0x49f68d){(_0x49f68d['docChanged']||_0x49f68d['selectionSet'])&&(this['decorations']=this['getDeco'](_0x49f68d['view']));}['getDeco'](_0xa5fd73){let _0xca0c7a=-0x1,_0x370723=[];for(let _0x412bd6 of _0xa5fd73['state']['selection']['ranges']){let _0x4f2aef=_0xa5fd73['lineBlockAt'](_0x412bd6['head']);_0x4f2aef['from']>_0xca0c7a&&(_0x370723['push'](lineDeco['range'](_0x4f2aef['from'])),_0xca0c7a=_0x4f2aef['from']);}return Decoration['set'](_0x370723);}},{'decorations':_0x4cb967=>_0x4cb967['decorations']}),MaxOff=0x7d0;function rectangleFor(_0x4035e5,_0xb11399,_0x4fa44e){let _0x4d9892=Math['min'](_0xb11399['line'],_0x4fa44e['line']),_0x16c7ac=Math['max'](_0xb11399['line'],_0x4fa44e['line']),_0x2b695a=[];if(_0xb11399['off']>MaxOff||_0x4fa44e['off']>MaxOff||_0xb11399['col']<0x0||_0x4fa44e['col']<0x0){let _0x55f282=Math['min'](_0xb11399['off'],_0x4fa44e['off']),_0x5c787a=Math['max'](_0xb11399['off'],_0x4fa44e['off']);for(let _0x44ab9b=_0x4d9892;_0x44ab9b<=_0x16c7ac;_0x44ab9b++){let _0x2958d8=_0x4035e5['doc']['line'](_0x44ab9b);_0x2958d8['length']<=_0x5c787a&&_0x2b695a['push'](EditorSelection['range'](_0x2958d8['from']+_0x55f282,_0x2958d8['to']+_0x5c787a));}}else{let _0x7196b6=Math['min'](_0xb11399['col'],_0x4fa44e['col']),_0x1b4568=Math['max'](_0xb11399['col'],_0x4fa44e['col']);for(let _0x5c6652=_0x4d9892;_0x5c6652<=_0x16c7ac;_0x5c6652++){let _0x230640=_0x4035e5['doc']['line'](_0x5c6652),_0x56eb54=findColumn(_0x230640['text'],_0x7196b6,_0x4035e5['tabSize'],!0x0);if(_0x56eb54<0x0)_0x2b695a['push'](EditorSelection['cursor'](_0x230640['to']));else{let _0xe315c0=findColumn(_0x230640['text'],_0x1b4568,_0x4035e5['tabSize']);_0x2b695a['push'](EditorSelection['range'](_0x230640['from']+_0x56eb54,_0x230640['from']+_0xe315c0));}}}return _0x2b695a;}function absoluteColumn(_0x29778f,_0x56e6f1){let _0x465d98=_0x29778f['coordsAtPos'](_0x29778f['viewport']['from']);return _0x465d98?Math['round'](Math['abs']((_0x465d98['left']-_0x56e6f1)/_0x29778f['defaultCharacterWidth'])):-0x1;}function getPos(_0x116bb7,_0x183833){let _0x4522cf=_0x116bb7['posAtCoords']({'x':_0x183833['clientX'],'y':_0x183833['clientY']},!0x1),_0x1d61c0=_0x116bb7['state']['doc']['lineAt'](_0x4522cf),_0x5be8dd=_0x4522cf-_0x1d61c0['from'],_0x10fe9f=_0x5be8dd>MaxOff?-0x1:_0x5be8dd==_0x1d61c0['length']?absoluteColumn(_0x116bb7,_0x183833['clientX']):countColumn(_0x1d61c0['text'],_0x116bb7['state']['tabSize'],_0x4522cf-_0x1d61c0['from']);return{'line':_0x1d61c0['number'],'col':_0x10fe9f,'off':_0x5be8dd};}function rectangleSelectionStyle(_0x2cfd88,_0x2ecc35){let _0x13b0cb=getPos(_0x2cfd88,_0x2ecc35),_0x348959=_0x2cfd88['state']['selection'];return _0x13b0cb?{'update'(_0xcf9dd9){if(_0xcf9dd9['docChanged']){let _0x5e7b5e=_0xcf9dd9['changes']['mapPos'](_0xcf9dd9['startState']['doc']['line'](_0x13b0cb['line'])['from']),_0x5e3705=_0xcf9dd9['state']['doc']['lineAt'](_0x5e7b5e);_0x13b0cb={'line':_0x5e3705['number'],'col':_0x13b0cb['col'],'off':Math['min'](_0x13b0cb['off'],_0x5e3705['length'])},_0x348959=_0x348959['map'](_0xcf9dd9['changes']);}},'get'(_0x28cad0,_0x51a57f,_0x4c0259){let _0x247ee8=getPos(_0x2cfd88,_0x28cad0);if(!_0x247ee8)return _0x348959;let _0x1ec0da=rectangleFor(_0x2cfd88['state'],_0x13b0cb,_0x247ee8);return _0x1ec0da['length']?_0x4c0259?EditorSelection['create'](_0x1ec0da['concat'](_0x348959['ranges'])):EditorSelection['create'](_0x1ec0da):_0x348959;}}:null;}function rectangularSelection(_0x5c4231){return EditorView['mouseSelectionStyle']['of']((_0x3ead54,_0x1312db)=>{return(_0x3e863c=_0x1312db)['altKey']&&0x0==_0x3e863c['button']?rectangleSelectionStyle(_0x3ead54,_0x1312db):null;var _0x3e863c;});}const keys={'Alt':[0x12,_0x1ebb9c=>!!_0x1ebb9c['altKey']],'Control':[0x11,_0x127b62=>!!_0x127b62['ctrlKey']],'Shift':[0x10,_0x40a6fa=>!!_0x40a6fa['shiftKey']],'Meta':[0x5b,_0x4f9a2d=>!!_0x4f9a2d['metaKey']]},showCrosshair={'style':'cursor:\x20crosshair'};function crosshairCursor(_0x4ffbb7={}){let [_0x5d3770,_0x5d33b7]=keys[_0x4ffbb7['key']||'Alt'],_0x11bd05=ViewPlugin['fromClass'](class{constructor(_0x181aed){this['view']=_0x181aed,this['isDown']=!0x1;}['set'](_0x7f346c){this['isDown']!=_0x7f346c&&(this['isDown']=_0x7f346c,this['view']['update']([]));}},{'eventObservers':{'keydown'(_0x1dd462){this['set'](_0x1dd462['keyCode']==_0x5d3770||_0x5d33b7(_0x1dd462));},'keyup'(_0x3a3a9c){_0x3a3a9c['keyCode']!=_0x5d3770&&_0x5d33b7(_0x3a3a9c)||this['set'](!0x1);},'mousemove'(_0x1b0dfd){this['set'](_0x5d33b7(_0x1b0dfd));}}});return[_0x11bd05,EditorView['contentAttributes']['of'](_0x2b11a9=>{var _0x2dad27;return(null===(_0x2dad27=_0x2b11a9['plugin'](_0x11bd05))||void 0x0===_0x2dad27?void 0x0:_0x2dad27['isDown'])?showCrosshair:null;})];}const Outside='-10000px';class TooltipViewManager{constructor(_0x2272fa,_0x80307,_0x2e1f81,_0x2c6cc6){this['facet']=_0x80307,this['createTooltipView']=_0x2e1f81,this['removeTooltipView']=_0x2c6cc6,this['input']=_0x2272fa['state']['facet'](_0x80307),this['tooltips']=this['input']['filter'](t=>t);let _0x89af60=null;this['tooltipViews']=this['tooltips']['map'](t=>_0x89af60=_0x2e1f81(t,_0x89af60));}['update'](_0x2cbf87,_0x249fe0){var _0x1e9184;let _0x500804=_0x2cbf87['state']['facet'](this['facet']),_0x20b637=_0x500804['filter'](_0x2d0e6b=>_0x2d0e6b);if(_0x500804===this['input']){for(let t of this['tooltipViews'])t['update']&&t['update'](_0x2cbf87);return!0x1;}let _0x2194d7=[],_0x5c760c=_0x249fe0?[]:null;for(let _0xeec2b8=0x0;_0xeec2b8<_0x20b637['length'];_0xeec2b8++){let _0x55908f=_0x20b637[_0xeec2b8],_0x2f1768=-0x1;if(_0x55908f){for(let _0x3e54a5=0x0;_0x3e54a5<this['tooltips']['length'];_0x3e54a5++){let _0x4bc08d=this['tooltips'][_0x3e54a5];_0x4bc08d&&_0x4bc08d['create']==_0x55908f['create']&&(_0x2f1768=_0x3e54a5);}if(_0x2f1768<0x0)_0x2194d7[_0xeec2b8]=this['createTooltipView'](_0x55908f,_0xeec2b8?_0x2194d7[_0xeec2b8-0x1]:null),_0x5c760c&&(_0x5c760c[_0xeec2b8]=!!_0x55908f['above']);else{let _0x2d3d58=_0x2194d7[_0xeec2b8]=this['tooltipViews'][_0x2f1768];_0x5c760c&&(_0x5c760c[_0xeec2b8]=_0x249fe0[_0x2f1768]),_0x2d3d58['update']&&_0x2d3d58['update'](_0x2cbf87);}}}for(let t of this['tooltipViews'])_0x2194d7['indexOf'](t)<0x0&&(this['removeTooltipView'](t),null===(_0x1e9184=t['destroy'])||void 0x0===_0x1e9184||_0x1e9184['call'](t));return _0x249fe0&&(_0x5c760c['forEach']((_0x3fe9cd,_0x1c59b3)=>_0x249fe0[_0x1c59b3]=_0x3fe9cd),_0x249fe0['length']=_0x5c760c['length']),this['input']=_0x500804,this['tooltips']=_0x20b637,this['tooltipViews']=_0x2194d7,!0x0;}}function windowSpace(_0x4ad3a6){let _0x1068bf=_0x4ad3a6['dom']['ownerDocument']['documentElement'];return{'top':0x0,'left':0x0,'bottom':_0x1068bf['clientHeight'],'right':_0x1068bf['clientWidth']};}const tooltipConfig=Facet['define']({'combine':_0x4ff756=>{var _0x4503f5,_0x5491d5,_0x5a9179;return{'position':browser['ios']?'absolute':(null===(_0x4503f5=_0x4ff756['find'](_0xa25a3b=>_0xa25a3b['position']))||void 0x0===_0x4503f5?void 0x0:_0x4503f5['position'])||'fixed','parent':(null===(_0x5491d5=_0x4ff756['find'](_0x2087b3=>_0x2087b3['parent']))||void 0x0===_0x5491d5?void 0x0:_0x5491d5['parent'])||null,'tooltipSpace':(null===(_0x5a9179=_0x4ff756['find'](_0x2d774d=>_0x2d774d['tooltipSpace']))||void 0x0===_0x5a9179?void 0x0:_0x5a9179['tooltipSpace'])||windowSpace};}}),knownHeight=new WeakMap(),tooltipPlugin=ViewPlugin['fromClass'](class{constructor(_0x5ae16e){this['view']=_0x5ae16e,this['above']=[],this['inView']=!0x0,this['madeAbsolute']=!0x1,this['lastTransaction']=0x0,this['measureTimeout']=-0x1;let _0x3a3176=_0x5ae16e['state']['facet'](tooltipConfig);this['position']=_0x3a3176['position'],this['parent']=_0x3a3176['parent'],this['classes']=_0x5ae16e['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 TooltipViewManager(_0x5ae16e,showTooltip,(t,_0x32ec04)=>this['createTooltip'](t,_0x32ec04),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(_0x46b5fe=>{Date['now']()>this['lastTransaction']-0x32&&_0x46b5fe['length']>0x0&&_0x46b5fe[_0x46b5fe['length']-0x1]['intersectionRatio']<0x1&&this['measureSoon']();},{'threshold':[0x1]}):null,this['observeIntersection'](),_0x5ae16e['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 _0x2c6b27 of this['manager']['tooltipViews'])this['intersectionObserver']['observe'](_0x2c6b27['dom']);}}['measureSoon'](){this['measureTimeout']<0x0&&(this['measureTimeout']=setTimeout(()=>{this['measureTimeout']=-0x1,this['maybeMeasure']();},0x32));}['update'](_0x24f94e){_0x24f94e['transactions']['length']&&(this['lastTransaction']=Date['now']());let _0x29ddec=this['manager']['update'](_0x24f94e,this['above']);_0x29ddec&&this['observeIntersection']();let _0x48e8c8=_0x29ddec||_0x24f94e['geometryChanged'],_0x449aae=_0x24f94e['state']['facet'](tooltipConfig);if(_0x449aae['position']!=this['position']&&!this['madeAbsolute']){this['position']=_0x449aae['position'];for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']=this['position'];_0x48e8c8=!0x0;}if(_0x449aae['parent']!=this['parent']){this['parent']&&this['container']['remove'](),this['parent']=_0x449aae['parent'],this['createContainer']();for(let t of this['manager']['tooltipViews'])this['container']['appendChild'](t['dom']);_0x48e8c8=!0x0;}else this['parent']&&this['view']['themeClasses']!=this['classes']&&(this['classes']=this['container']['className']=this['view']['themeClasses']);_0x48e8c8&&this['maybeMeasure']();}['createTooltip'](_0xaa5cc2,_0x597d82){let _0x3cfda9=_0xaa5cc2['create'](this['view']),_0x2f2ca6=_0x597d82?_0x597d82['dom']:null;if(_0x3cfda9['dom']['classList']['add']('cm-tooltip'),_0xaa5cc2['arrow']&&!_0x3cfda9['dom']['querySelector']('.cm-tooltip\x20>\x20.cm-tooltip-arrow')){let _0x88f59f=document['createElement']('div');_0x88f59f['className']='cm-tooltip-arrow',_0x3cfda9['dom']['appendChild'](_0x88f59f);}return _0x3cfda9['dom']['style']['position']=this['position'],_0x3cfda9['dom']['style']['top']=Outside,_0x3cfda9['dom']['style']['left']='0px',this['container']['insertBefore'](_0x3cfda9['dom'],_0x2f2ca6),_0x3cfda9['mount']&&_0x3cfda9['mount'](this['view']),this['resizeObserver']&&this['resizeObserver']['observe'](_0x3cfda9['dom']),_0x3cfda9;}['destroy'](){var _0x55b064,_0x241300,_0x4c797c;this['view']['win']['removeEventListener']('resize',this['measureSoon']);for(let _0x4e0d0e of this['manager']['tooltipViews'])_0x4e0d0e['dom']['remove'](),null===(_0x55b064=_0x4e0d0e['destroy'])||void 0x0===_0x55b064||_0x55b064['call'](_0x4e0d0e);this['parent']&&this['container']['remove'](),null===(_0x241300=this['resizeObserver'])||void 0x0===_0x241300||_0x241300['disconnect'](),null===(_0x4c797c=this['intersectionObserver'])||void 0x0===_0x4c797c||_0x4c797c['disconnect'](),clearTimeout(this['measureTimeout']);}['readMeasure'](){let _0x339326=0x1,_0x2486f9=0x1,_0x138976=!0x1;if('fixed'==this['position']&&this['manager']['tooltipViews']['length']){let {dom:_0x32c9e4}=this['manager']['tooltipViews'][0x0];if(browser['gecko'])_0x138976=_0x32c9e4['offsetParent']!=this['container']['ownerDocument']['body'];else{if(_0x32c9e4['style']['top']==Outside&&'0px'==_0x32c9e4['style']['left']){let _0x33690a=_0x32c9e4['getBoundingClientRect']();_0x138976=Math['abs'](_0x33690a['top']+0x2710)>0x1||Math['abs'](_0x33690a['left'])>0x1;}}}if(_0x138976||'absolute'==this['position']){if(this['parent']){let _0x33f0a8=this['parent']['getBoundingClientRect']();_0x33f0a8['width']&&_0x33f0a8['height']&&(_0x339326=_0x33f0a8['width']/this['parent']['offsetWidth'],_0x2486f9=_0x33f0a8['height']/this['parent']['offsetHeight']);}else({scaleX:_0x339326,scaleY:_0x2486f9}=this['view']['viewState']);}let _0x3ec705=this['view']['scrollDOM']['getBoundingClientRect'](),_0x5912e4=getScrollMargins(this['view']);return{'visible':{'left':_0x3ec705['left']+_0x5912e4['left'],'top':_0x3ec705['top']+_0x5912e4['top'],'right':_0x3ec705['right']-_0x5912e4['right'],'bottom':_0x3ec705['bottom']-_0x5912e4['bottom']},'parent':this['parent']?this['container']['getBoundingClientRect']():this['view']['dom']['getBoundingClientRect'](),'pos':this['manager']['tooltips']['map']((t,_0x16b560)=>{let _0x225aa9=this['manager']['tooltipViews'][_0x16b560];return _0x225aa9['getCoords']?_0x225aa9['getCoords'](t['pos']):this['view']['coordsAtPos'](t['pos']);}),'size':this['manager']['tooltipViews']['map'](({dom:_0x4245ce})=>_0x4245ce['getBoundingClientRect']()),'space':this['view']['state']['facet'](tooltipConfig)['tooltipSpace'](this['view']),'scaleX':_0x339326,'scaleY':_0x2486f9,'makeAbsolute':_0x138976};}['writeMeasure'](_0x3e3469){var _0x2a9f8e;if(_0x3e3469['makeAbsolute']){this['madeAbsolute']=!0x0,this['position']='absolute';for(let t of this['manager']['tooltipViews'])t['dom']['style']['position']='absolute';}let {visible:_0x3d0c62,space:_0x3ba5ea,scaleX:_0x39c3ec,scaleY:_0x1ef116}=_0x3e3469,_0x590d94=[];for(let _0x39f72b=0x0;_0x39f72b<this['manager']['tooltips']['length'];_0x39f72b++){let _0x59948b=this['manager']['tooltips'][_0x39f72b],_0x450042=this['manager']['tooltipViews'][_0x39f72b],{dom:_0x35f4ff}=_0x450042,_0x39eea7=_0x3e3469['pos'][_0x39f72b],_0x1f6b65=_0x3e3469['size'][_0x39f72b];if(!_0x39eea7||!0x1!==_0x59948b['clip']&&(_0x39eea7['bottom']<=Math['max'](_0x3d0c62['top'],_0x3ba5ea['top'])||_0x39eea7['top']>=Math['min'](_0x3d0c62['bottom'],_0x3ba5ea['bottom'])||_0x39eea7['right']<Math['max'](_0x3d0c62['left'],_0x3ba5ea['left'])-0.1||_0x39eea7['left']>Math['min'](_0x3d0c62['right'],_0x3ba5ea['right'])+0.1)){_0x35f4ff['style']['top']=Outside;continue;}let _0x2f088f=_0x59948b['arrow']?_0x450042['dom']['querySelector']('.cm-tooltip-arrow'):null,_0x488eb3=_0x2f088f?0x7:0x0,_0x1caf4d=_0x1f6b65['right']-_0x1f6b65['left'],_0x5216c9=null!==(_0x2a9f8e=knownHeight['get'](_0x450042))&&void 0x0!==_0x2a9f8e?_0x2a9f8e:_0x1f6b65['bottom']-_0x1f6b65['top'],_0x1d5cc0=_0x450042['offset']||noOffset,_0x5240a7=this['view']['textDirection']==Direction['LTR'],_0x148907=_0x1f6b65['width']>_0x3ba5ea['right']-_0x3ba5ea['left']?_0x5240a7?_0x3ba5ea['left']:_0x3ba5ea['right']-_0x1f6b65['width']:_0x5240a7?Math['max'](_0x3ba5ea['left'],Math['min'](_0x39eea7['left']-(_0x2f088f?0xe:0x0)+_0x1d5cc0['x'],_0x3ba5ea['right']-_0x1caf4d)):Math['min'](Math['max'](_0x3ba5ea['left'],_0x39eea7['left']-_0x1caf4d+(_0x2f088f?0xe:0x0)-_0x1d5cc0['x']),_0x3ba5ea['right']-_0x1caf4d),_0x251b4b=this['above'][_0x39f72b];!_0x59948b['strictSide']&&(_0x251b4b?_0x39eea7['top']-_0x5216c9-_0x488eb3-_0x1d5cc0['y']<_0x3ba5ea['top']:_0x39eea7['bottom']+_0x5216c9+_0x488eb3+_0x1d5cc0['y']>_0x3ba5ea['bottom'])&&_0x251b4b==_0x3ba5ea['bottom']-_0x39eea7['bottom']>_0x39eea7['top']-_0x3ba5ea['top']&&(_0x251b4b=this['above'][_0x39f72b]=!_0x251b4b);let _0x401622=(_0x251b4b?_0x39eea7['top']-_0x3ba5ea['top']:_0x3ba5ea['bottom']-_0x39eea7['bottom'])-_0x488eb3;if(_0x401622<_0x5216c9&&!0x1!==_0x450042['resize']){if(_0x401622<this['view']['defaultLineHeight']){_0x35f4ff['style']['top']=Outside;continue;}knownHeight['set'](_0x450042,_0x5216c9),_0x35f4ff['style']['height']=(_0x5216c9=_0x401622)/_0x1ef116+'px';}else _0x35f4ff['style']['height']&&(_0x35f4ff['style']['height']='');let _0x9636ab=_0x251b4b?_0x39eea7['top']-_0x5216c9-_0x488eb3-_0x1d5cc0['y']:_0x39eea7['bottom']+_0x488eb3+_0x1d5cc0['y'],_0xf2c3e7=_0x148907+_0x1caf4d;if(!0x0!==_0x450042['overlap']){for(let _0x15a439 of _0x590d94)_0x15a439['left']<_0xf2c3e7&&_0x15a439['right']>_0x148907&&_0x15a439['top']<_0x9636ab+_0x5216c9&&_0x15a439['bottom']>_0x9636ab&&(_0x9636ab=_0x251b4b?_0x15a439['top']-_0x5216c9-0x2-_0x488eb3:_0x15a439['bottom']+_0x488eb3+0x2);}if('absolute'==this['position']?(_0x35f4ff['style']['top']=(_0x9636ab-_0x3e3469['parent']['top'])/_0x1ef116+'px',setLeftStyle(_0x35f4ff,(_0x148907-_0x3e3469['parent']['left'])/_0x39c3ec)):(_0x35f4ff['style']['top']=_0x9636ab/_0x1ef116+'px',setLeftStyle(_0x35f4ff,_0x148907/_0x39c3ec)),_0x2f088f){let _0x4fc7b5=_0x39eea7['left']+(_0x5240a7?_0x1d5cc0['x']:-_0x1d5cc0['x'])-(_0x148907+0xe-0x7);_0x2f088f['style']['left']=_0x4fc7b5/_0x39c3ec+'px';}!0x0!==_0x450042['overlap']&&_0x590d94['push']({'left':_0x148907,'top':_0x9636ab,'right':_0xf2c3e7,'bottom':_0x9636ab+_0x5216c9}),_0x35f4ff['classList']['toggle']('cm-tooltip-above',_0x251b4b),_0x35f4ff['classList']['toggle']('cm-tooltip-below',!_0x251b4b),_0x450042['positioned']&&_0x450042['positioned'](_0x3e3469['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 _0x2a1ebb of this['manager']['tooltipViews'])_0x2a1ebb['dom']['style']['top']=Outside;}}},{'eventObservers':{'scroll'(){this['maybeMeasure']();}}});function setLeftStyle(_0x371ce3,_0x5f1e14){let _0x1013df=parseInt(_0x371ce3['style']['left'],0xa);(isNaN(_0x1013df)||Math['abs'](_0x5f1e14-_0x1013df)>0x1)&&(_0x371ce3['style']['left']=_0x5f1e14+'px');}const baseTheme$3=EditorView['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'}}}),noOffset={'x':0x0,'y':0x0},showTooltip=Facet['define']({'enables':[tooltipPlugin,baseTheme$3]});function getTooltip(_0x305390,_0xd9b8ac){let _0x49cc04=_0x305390['plugin'](tooltipPlugin);if(!_0x49cc04)return null;let _0x51d15a=_0x49cc04['manager']['tooltips']['indexOf'](_0xd9b8ac);return _0x51d15a<0x0?null:_0x49cc04['manager']['tooltipViews'][_0x51d15a];}class GutterMarker extends RangeValue{['compare'](_0x191f7f){return this==_0x191f7f||this['constructor']==_0x191f7f['constructor']&&this['eq'](_0x191f7f);}['eq'](_0x5dda35){return!0x1;}['destroy'](_0x350f8a){}}GutterMarker['prototype']['elementClass']='',GutterMarker['prototype']['toDOM']=void 0x0,GutterMarker['prototype']['mapMode']=MapMode['TrackBefore'],GutterMarker['prototype']['startSide']=GutterMarker['prototype']['endSide']=-0x1,GutterMarker['prototype']['point']=!0x0;const gutterLineClass=Facet['define'](),gutterWidgetClass=Facet['define'](),defaults$1={'class':'','renderEmptyElements':!0x1,'elementStyle':'','markers':()=>RangeSet['empty'],'lineMarker':()=>null,'widgetMarker':()=>null,'lineMarkerChange':null,'initialSpacer':null,'updateSpacer':null,'domEventHandlers':{},'side':'before'},activeGutters=Facet['define']();function gutter(_0x1a15c9){return[gutters(),activeGutters['of']({...defaults$1,..._0x1a15c9})];}const unfixGutters=Facet['define']({'combine':_0x3db6e4=>_0x3db6e4['some'](_0x36a5fb=>_0x36a5fb)});function gutters(_0x2d1daf){return[gutterView];}const gutterView=ViewPlugin['fromClass'](class{constructor(_0xf2fb58){this['view']=_0xf2fb58,this['domAfter']=null,this['prevViewport']=_0xf2fb58['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']=_0xf2fb58['state']['facet'](activeGutters)['map'](_0x98a15a=>new SingleGutterView(_0xf2fb58,_0x98a15a)),this['fixed']=!_0xf2fb58['state']['facet'](unfixGutters);for(let _0x49ca94 of this['gutters'])'after'==_0x49ca94['config']['side']?this['getDOMAfter']()['appendChild'](_0x49ca94['dom']):this['dom']['appendChild'](_0x49ca94['dom']);this['fixed']&&(this['dom']['style']['position']='sticky'),this['syncGutters'](!0x1),_0xf2fb58['scrollDOM']['insertBefore'](this['dom'],_0xf2fb58['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'](_0x48fab2){if(this['updateGutters'](_0x48fab2)){let _0x3101bb=this['prevViewport'],_0x2bb130=_0x48fab2['view']['viewport'],_0x4c46dc=Math['min'](_0x3101bb['to'],_0x2bb130['to'])-Math['max'](_0x3101bb['from'],_0x2bb130['from']);this['syncGutters'](_0x4c46dc<0.8*(_0x2bb130['to']-_0x2bb130['from']));}if(_0x48fab2['geometryChanged']){let _0x1b2391=this['view']['contentHeight']/this['view']['scaleY']+'px';this['dom']['style']['minHeight']=_0x1b2391,this['domAfter']&&(this['domAfter']['style']['minHeight']=_0x1b2391);}this['view']['state']['facet'](unfixGutters)!=!this['fixed']&&(this['fixed']=!this['fixed'],this['dom']['style']['position']=this['fixed']?'sticky':'',this['domAfter']&&(this['domAfter']['style']['position']=this['fixed']?'sticky':'')),this['prevViewport']=_0x48fab2['view']['viewport'];}['syncGutters'](_0x379e76){let _0x3ad546=this['dom']['nextSibling'];_0x379e76&&(this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']());let _0x281ca1=RangeSet['iter'](this['view']['state']['facet'](gutterLineClass),this['view']['viewport']['from']),_0x178627=[],_0x1d0dc3=this['gutters']['map'](_0x34193c=>new UpdateContext(_0x34193c,this['view']['viewport'],-this['view']['documentPadding']['top']));for(let _0x22f01a of this['view']['viewportLineBlocks'])if(_0x178627['length']&&(_0x178627=[]),Array['isArray'](_0x22f01a['type'])){let _0x85f7a2=!0x0;for(let _0xaf19ab of _0x22f01a['type'])if(_0xaf19ab['type']==BlockType['Text']&&_0x85f7a2){advanceCursor(_0x281ca1,_0x178627,_0xaf19ab['from']);for(let _0x532a66 of _0x1d0dc3)_0x532a66['line'](this['view'],_0xaf19ab,_0x178627);_0x85f7a2=!0x1;}else{if(_0xaf19ab['widget']){for(let _0xde13f9 of _0x1d0dc3)_0xde13f9['widget'](this['view'],_0xaf19ab);}}}else{if(_0x22f01a['type']==BlockType['Text']){advanceCursor(_0x281ca1,_0x178627,_0x22f01a['from']);for(let _0xafd74f of _0x1d0dc3)_0xafd74f['line'](this['view'],_0x22f01a,_0x178627);}else{if(_0x22f01a['widget']){for(let _0x1121bf of _0x1d0dc3)_0x1121bf['widget'](this['view'],_0x22f01a);}}}for(let _0x33988f of _0x1d0dc3)_0x33988f['finish']();_0x379e76&&(this['view']['scrollDOM']['insertBefore'](this['dom'],_0x3ad546),this['domAfter']&&this['view']['scrollDOM']['appendChild'](this['domAfter']));}['updateGutters'](_0x162cc){let _0x5929b4=_0x162cc['startState']['facet'](activeGutters),_0x7490fc=_0x162cc['state']['facet'](activeGutters),_0x38b317=_0x162cc['docChanged']||_0x162cc['heightChanged']||_0x162cc['viewportChanged']||!RangeSet['eq'](_0x162cc['startState']['facet'](gutterLineClass),_0x162cc['state']['facet'](gutterLineClass),_0x162cc['view']['viewport']['from'],_0x162cc['view']['viewport']['to']);if(_0x5929b4==_0x7490fc){for(let _0x15ac61 of this['gutters'])_0x15ac61['update'](_0x162cc)&&(_0x38b317=!0x0);}else{_0x38b317=!0x0;let _0x23f34a=[];for(let _0x414106 of _0x7490fc){let _0x59d4e9=_0x5929b4['indexOf'](_0x414106);_0x59d4e9<0x0?_0x23f34a['push'](new SingleGutterView(this['view'],_0x414106)):(this['gutters'][_0x59d4e9]['update'](_0x162cc),_0x23f34a['push'](this['gutters'][_0x59d4e9]));}for(let _0x1fa653 of this['gutters'])_0x1fa653['dom']['remove'](),_0x23f34a['indexOf'](_0x1fa653)<0x0&&_0x1fa653['destroy']();for(let _0x4f81ed of _0x23f34a)'after'==_0x4f81ed['config']['side']?this['getDOMAfter']()['appendChild'](_0x4f81ed['dom']):this['dom']['appendChild'](_0x4f81ed['dom']);this['gutters']=_0x23f34a;}return _0x38b317;}['destroy'](){for(let _0x4eec96 of this['gutters'])_0x4eec96['destroy']();this['dom']['remove'](),this['domAfter']&&this['domAfter']['remove']();}},{'provide':_0x1432b2=>EditorView['scrollMargins']['of'](_0x5118e9=>{let _0x374b7e=_0x5118e9['plugin'](_0x1432b2);if(!_0x374b7e||0x0==_0x374b7e['gutters']['length']||!_0x374b7e['fixed'])return null;let _0x1331e0=_0x374b7e['dom']['offsetWidth']*_0x5118e9['scaleX'],_0x7ef301=_0x374b7e['domAfter']?_0x374b7e['domAfter']['offsetWidth']*_0x5118e9['scaleX']:0x0;return _0x5118e9['textDirection']==Direction['LTR']?{'left':_0x1331e0,'right':_0x7ef301}:{'right':_0x1331e0,'left':_0x7ef301};})});function asArray$1(_0x37bbbf){return Array['isArray'](_0x37bbbf)?_0x37bbbf:[_0x37bbbf];}function advanceCursor(_0x50a3e2,_0x488fa2,_0x4b88c2){for(;_0x50a3e2['value']&&_0x50a3e2['from']<=_0x4b88c2;)_0x50a3e2['from']==_0x4b88c2&&_0x488fa2['push'](_0x50a3e2['value']),_0x50a3e2['next']();}class UpdateContext{constructor(_0x2a7ab7,_0x10f525,_0x1d2433){this['gutter']=_0x2a7ab7,this['height']=_0x1d2433,this['i']=0x0,this['cursor']=RangeSet['iter'](_0x2a7ab7['markers'],_0x10f525['from']);}['addElement'](_0x411e0c,_0x2b42c4,_0x33722f){let {gutter:_0x2449b8}=this,_0xded548=(_0x2b42c4['top']-this['height'])/_0x411e0c['scaleY'],_0x33d6c2=_0x2b42c4['height']/_0x411e0c['scaleY'];if(this['i']==_0x2449b8['elements']['length']){let _0x2a878b=new GutterElement(_0x411e0c,_0x33d6c2,_0xded548,_0x33722f);_0x2449b8['elements']['push'](_0x2a878b),_0x2449b8['dom']['appendChild'](_0x2a878b['dom']);}else _0x2449b8['elements'][this['i']]['update'](_0x411e0c,_0x33d6c2,_0xded548,_0x33722f);this['height']=_0x2b42c4['bottom'],this['i']++;}['line'](_0x12efe9,_0x123af3,_0x2c5d7c){let _0x4c22a0=[];advanceCursor(this['cursor'],_0x4c22a0,_0x123af3['from']),_0x2c5d7c['length']&&(_0x4c22a0=_0x4c22a0['concat'](_0x2c5d7c));let _0x2ad62b=this['gutter']['config']['lineMarker'](_0x12efe9,_0x123af3,_0x4c22a0);_0x2ad62b&&_0x4c22a0['unshift'](_0x2ad62b);let _0x44f36b=this['gutter'];(0x0!=_0x4c22a0['length']||_0x44f36b['config']['renderEmptyElements'])&&this['addElement'](_0x12efe9,_0x123af3,_0x4c22a0);}['widget'](_0x563efe,_0x4bbeb0){let _0x171034=this['gutter']['config']['widgetMarker'](_0x563efe,_0x4bbeb0['widget'],_0x4bbeb0),_0x22c0d0=_0x171034?[_0x171034]:null;for(let _0x2b51be of _0x563efe['state']['facet'](gutterWidgetClass)){let _0x554e50=_0x2b51be(_0x563efe,_0x4bbeb0['widget'],_0x4bbeb0);_0x554e50&&(_0x22c0d0||(_0x22c0d0=[]))['push'](_0x554e50);}_0x22c0d0&&this['addElement'](_0x563efe,_0x4bbeb0,_0x22c0d0);}['finish'](){let _0x4aa28c=this['gutter'];for(;_0x4aa28c['elements']['length']>this['i'];){let _0xea3677=_0x4aa28c['elements']['pop']();_0x4aa28c['dom']['removeChild'](_0xea3677['dom']),_0xea3677['destroy']();}}}class SingleGutterView{constructor(_0x4cb236,_0x5b71d7){this['view']=_0x4cb236,this['config']=_0x5b71d7,this['elements']=[],this['spacer']=null,this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutter'+(this['config']['class']?'\x20'+this['config']['class']:'');for(let _0x129f7c in _0x5b71d7['domEventHandlers'])this['dom']['addEventListener'](_0x129f7c,_0x3feed1=>{let _0x328056,_0x3276d1=_0x3feed1['target'];if(_0x3276d1!=this['dom']&&this['dom']['contains'](_0x3276d1)){for(;_0x3276d1['parentNode']!=this['dom'];)_0x3276d1=_0x3276d1['parentNode'];let _0x51952a=_0x3276d1['getBoundingClientRect']();_0x328056=(_0x51952a['top']+_0x51952a['bottom'])/0x2;}else _0x328056=_0x3feed1['clientY'];let _0x414982=_0x4cb236['lineBlockAtHeight'](_0x328056-_0x4cb236['documentTop']);_0x5b71d7['domEventHandlers'][_0x129f7c](_0x4cb236,_0x414982,_0x3feed1)&&_0x3feed1['preventDefault']();});this['markers']=asArray$1(_0x5b71d7['markers'](_0x4cb236)),_0x5b71d7['initialSpacer']&&(this['spacer']=new GutterElement(_0x4cb236,0x0,0x0,[_0x5b71d7['initialSpacer'](_0x4cb236)]),this['dom']['appendChild'](this['spacer']['dom']),this['spacer']['dom']['style']['cssText']+='visibility:\x20hidden;\x20pointer-events:\x20none');}['update'](_0x40567e){let _0x1bb3b6=this['markers'];if(this['markers']=asArray$1(this['config']['markers'](_0x40567e['view'])),this['spacer']&&this['config']['updateSpacer']){let _0x1bc389=this['config']['updateSpacer'](this['spacer']['markers'][0x0],_0x40567e);_0x1bc389!=this['spacer']['markers'][0x0]&&this['spacer']['update'](_0x40567e['view'],0x0,0x0,[_0x1bc389]);}let _0x4faab6=_0x40567e['view']['viewport'];return!RangeSet['eq'](this['markers'],_0x1bb3b6,_0x4faab6['from'],_0x4faab6['to'])||!!this['config']['lineMarkerChange']&&this['config']['lineMarkerChange'](_0x40567e);}['destroy'](){for(let _0x1fad28 of this['elements'])_0x1fad28['destroy']();}}class GutterElement{constructor(_0x500e15,_0x1b331d,_0x238972,_0x1b1a73){this['height']=-0x1,this['above']=0x0,this['markers']=[],this['dom']=document['createElement']('div'),this['dom']['className']='cm-gutterElement',this['update'](_0x500e15,_0x1b331d,_0x238972,_0x1b1a73);}['update'](_0x4b52e9,_0x462fea,_0x1d17f5,_0x4b0046){this['height']!=_0x462fea&&(this['height']=_0x462fea,this['dom']['style']['height']=_0x462fea+'px'),this['above']!=_0x1d17f5&&(this['dom']['style']['marginTop']=(this['above']=_0x1d17f5)?_0x1d17f5+'px':''),sameMarkers(this['markers'],_0x4b0046)||this['setMarkers'](_0x4b52e9,_0x4b0046);}['setMarkers'](_0x2b5b00,_0xe36a3e){let _0x1b59ec='cm-gutterElement',_0x4317d4=this['dom']['firstChild'];for(let _0x17abd6=0x0,_0x3d574d=0x0;;){let _0x157931=_0x3d574d,_0x11c82b=_0x17abd6<_0xe36a3e['length']?_0xe36a3e[_0x17abd6++]:null,_0x54fa66=!0x1;if(_0x11c82b){let _0x581247=_0x11c82b['elementClass'];_0x581247&&(_0x1b59ec+='\x20'+_0x581247);for(let _0x2bb988=_0x3d574d;_0x2bb988<this['markers']['length'];_0x2bb988++)if(this['markers'][_0x2bb988]['compare'](_0x11c82b)){_0x157931=_0x2bb988,_0x54fa66=!0x0;break;}}else _0x157931=this['markers']['length'];for(;_0x3d574d<_0x157931;){let _0x282826=this['markers'][_0x3d574d++];if(_0x282826['toDOM']){_0x282826['destroy'](_0x4317d4);let _0x51838e=_0x4317d4['nextSibling'];_0x4317d4['remove'](),_0x4317d4=_0x51838e;}}if(!_0x11c82b)break;_0x11c82b['toDOM']&&(_0x54fa66?_0x4317d4=_0x4317d4['nextSibling']:this['dom']['insertBefore'](_0x11c82b['toDOM'](_0x2b5b00),_0x4317d4)),_0x54fa66&&_0x3d574d++;}this['dom']['className']=_0x1b59ec,this['markers']=_0xe36a3e;}['destroy'](){this['setMarkers'](null,[]);}}function sameMarkers(_0x1ff401,_0x346cc6){if(_0x1ff401['length']!=_0x346cc6['length'])return!0x1;for(let _0x1530e3=0x0;_0x1530e3<_0x1ff401['length'];_0x1530e3++)if(!_0x1ff401[_0x1530e3]['compare'](_0x346cc6[_0x1530e3]))return!0x1;return!0x0;}const lineNumberMarkers=Facet['define'](),lineNumberWidgetMarker=Facet['define'](),lineNumberConfig=Facet['define']({'combine':_0x426ade=>combineConfig(_0x426ade,{'formatNumber':String,'domEventHandlers':{}},{'domEventHandlers'(_0x135474,_0x284c3c){let _0x44cc76=Object['assign']({},_0x135474);for(let _0x5d2ee2 in _0x284c3c){let _0x3251cd=_0x44cc76[_0x5d2ee2],_0x3a4637=_0x284c3c[_0x5d2ee2];_0x44cc76[_0x5d2ee2]=_0x3251cd?(_0x552960,_0x2165fe,_0x5347c4)=>_0x3251cd(_0x552960,_0x2165fe,_0x5347c4)||_0x3a4637(_0x552960,_0x2165fe,_0x5347c4):_0x3a4637;}return _0x44cc76;}})});class NumberMarker extends GutterMarker{constructor(_0x12e3b1){super(),this['number']=_0x12e3b1;}['eq'](_0x3e35b1){return this['number']==_0x3e35b1['number'];}['toDOM'](){return document['createTextNode'](this['number']);}}function formatNumber(_0x4537be,_0x575079){return _0x4537be['state']['facet'](lineNumberConfig)['formatNumber'](_0x575079,_0x4537be['state']);}const lineNumberGutter=activeGutters['compute']([lineNumberConfig],_0x6fbe3e=>({'class':'cm-lineNumbers','renderEmptyElements':!0x1,'markers':_0x3533b7=>_0x3533b7['state']['facet'](lineNumberMarkers),'lineMarker':(_0x78c60a,_0x2efbd4,_0x42d493)=>_0x42d493['some'](_0x4bcc32=>_0x4bcc32['toDOM'])?null:new NumberMarker(formatNumber(_0x78c60a,_0x78c60a['state']['doc']['lineAt'](_0x2efbd4['from'])['number'])),'widgetMarker':(_0x1d45d6,_0x54181a,_0x2bc54f)=>{for(let _0x2b03f6 of _0x1d45d6['state']['facet'](lineNumberWidgetMarker)){let _0x3389d9=_0x2b03f6(_0x1d45d6,_0x54181a,_0x2bc54f);if(_0x3389d9)return _0x3389d9;}return null;},'lineMarkerChange':_0x4fa0b5=>_0x4fa0b5['startState']['facet'](lineNumberConfig)!=_0x4fa0b5['state']['facet'](lineNumberConfig),'initialSpacer':_0x4e5772=>new NumberMarker(formatNumber(_0x4e5772,maxLineNumber(_0x4e5772['state']['doc']['lines']))),'updateSpacer'(_0x4a67e1,_0x4d1c0b){let _0x3b2ccf=formatNumber(_0x4d1c0b['view'],maxLineNumber(_0x4d1c0b['view']['state']['doc']['lines']));return _0x3b2ccf==_0x4a67e1['number']?_0x4a67e1:new NumberMarker(_0x3b2ccf);},'domEventHandlers':_0x6fbe3e['facet'](lineNumberConfig)['domEventHandlers'],'side':'before'}));function lineNumbers(_0xed0275={}){return[lineNumberConfig['of'](_0xed0275),gutters(),lineNumberGutter];}function maxLineNumber(_0x19ce2c){let _0x503828=0x9;for(;_0x503828<_0x19ce2c;)_0x503828=0xa*_0x503828+0x9;return _0x503828;}const activeLineGutterMarker=new class extends GutterMarker{constructor(){super(...arguments),this['elementClass']='cm-activeLineGutter';}}(),activeLineGutterHighlighter=gutterLineClass['compute'](['selection'],_0x23b3b3=>{let _0x4a110d=[],_0x340453=-0x1;for(let _0x55d12e of _0x23b3b3['selection']['ranges']){let _0x362de4=_0x23b3b3['doc']['lineAt'](_0x55d12e['head'])['from'];_0x362de4>_0x340453&&(_0x340453=_0x362de4,_0x4a110d['push'](activeLineGutterMarker['range'](_0x362de4)));}return RangeSet['of'](_0x4a110d);});function highlightActiveLineGutter(){return activeLineGutterHighlighter;}const DefaultBufferLength=0x400;let nextPropID=0x0;class Range{constructor(_0x98f1db,_0x515d93){this['from']=_0x98f1db,this['to']=_0x515d93;}}class NodeProp{constructor(_0x29dfce={}){this['id']=nextPropID++,this['perNode']=!!_0x29dfce['perNode'],this['deserialize']=_0x29dfce['deserialize']||(()=>{throw new Error('This\x20node\x20type\x20doesn\x27t\x20define\x20a\x20deserialize\x20function');}),this['combine']=_0x29dfce['combine']||null;}['add'](_0x4b318f){if(this['perNode'])throw new RangeError('Can\x27t\x20add\x20per-node\x20props\x20to\x20node\x20types');return'function'!=typeof _0x4b318f&&(_0x4b318f=NodeType['match'](_0x4b318f)),_0x143beb=>{let _0x7c88d5=_0x4b318f(_0x143beb);return void 0x0===_0x7c88d5?null:[this,_0x7c88d5];};}}NodeProp['closedBy']=new NodeProp({'deserialize':_0x22c488=>_0x22c488['split']('\x20')}),NodeProp['openedBy']=new NodeProp({'deserialize':_0x1bd4eb=>_0x1bd4eb['split']('\x20')}),NodeProp['group']=new NodeProp({'deserialize':_0x52469f=>_0x52469f['split']('\x20')}),NodeProp['isolate']=new NodeProp({'deserialize':_0x311fd6=>{if(_0x311fd6&&'rtl'!=_0x311fd6&&'ltr'!=_0x311fd6&&'auto'!=_0x311fd6)throw new RangeError('Invalid\x20value\x20for\x20isolate:\x20'+_0x311fd6);return _0x311fd6||'auto';}}),NodeProp['contextHash']=new NodeProp({'perNode':!0x0}),NodeProp['lookAhead']=new NodeProp({'perNode':!0x0}),NodeProp['mounted']=new NodeProp({'perNode':!0x0});class MountedTree{constructor(_0x50122e,_0x46a890,_0x22eeb6){this['tree']=_0x50122e,this['overlay']=_0x46a890,this['parser']=_0x22eeb6;}static['get'](_0x27da07){return _0x27da07&&_0x27da07['props']&&_0x27da07['props'][NodeProp['mounted']['id']];}}const noProps=Object['create'](null);class NodeType{constructor(_0x5e2d03,_0x37854d,_0x4925a2,_0x17ecc4=0x0){this['name']=_0x5e2d03,this['props']=_0x37854d,this['id']=_0x4925a2,this['flags']=_0x17ecc4;}static['define'](_0x123b1b){let _0x3d879c=_0x123b1b['props']&&_0x123b1b['props']['length']?Object['create'](null):noProps,_0x3372f6=(_0x123b1b['top']?0x1:0x0)|(_0x123b1b['skipped']?0x2:0x0)|(_0x123b1b['error']?0x4:0x0)|(null==_0x123b1b['name']?0x8:0x0),_0x5ab0c2=new NodeType(_0x123b1b['name']||'',_0x3d879c,_0x123b1b['id'],_0x3372f6);if(_0x123b1b['props']){for(let _0x23fed5 of _0x123b1b['props'])if(Array['isArray'](_0x23fed5)||(_0x23fed5=_0x23fed5(_0x5ab0c2)),_0x23fed5){if(_0x23fed5[0x0]['perNode'])throw new RangeError('Can\x27t\x20store\x20a\x20per-node\x20prop\x20on\x20a\x20node\x20type');_0x3d879c[_0x23fed5[0x0]['id']]=_0x23fed5[0x1];}}return _0x5ab0c2;}['prop'](_0x2f73e0){return this['props'][_0x2f73e0['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'](_0x2e7618){if('string'==typeof _0x2e7618){if(this['name']==_0x2e7618)return!0x0;let _0x237421=this['prop'](NodeProp['group']);return!!_0x237421&&_0x237421['indexOf'](_0x2e7618)>-0x1;}return this['id']==_0x2e7618;}static['match'](_0x2e35f2){let _0x2886ec=Object['create'](null);for(let _0x638a05 in _0x2e35f2)for(let _0x5aa477 of _0x638a05['split']('\x20'))_0x2886ec[_0x5aa477]=_0x2e35f2[_0x638a05];return _0x536f84=>{for(let _0x57d44d=_0x536f84['prop'](NodeProp['group']),_0x3df4df=-0x1;_0x3df4df<(_0x57d44d?_0x57d44d['length']:0x0);_0x3df4df++){let _0x55e964=_0x2886ec[_0x3df4df<0x0?_0x536f84['name']:_0x57d44d[_0x3df4df]];if(_0x55e964)return _0x55e964;}};}}NodeType['none']=new NodeType('',Object['create'](null),0x0,0x8);class NodeSet{constructor(_0x214d06){this['types']=_0x214d06;for(let _0x35a603=0x0;_0x35a603<_0x214d06['length'];_0x35a603++)if(_0x214d06[_0x35a603]['id']!=_0x35a603)throw new RangeError('Node\x20type\x20ids\x20should\x20correspond\x20to\x20array\x20positions\x20when\x20creating\x20a\x20node\x20set');}['extend'](..._0xf04570){let _0x260ef7=[];for(let _0x5522e2 of this['types']){let _0x4f4bcb=null;for(let _0x4c10cd of _0xf04570){let _0x3b42e8=_0x4c10cd(_0x5522e2);if(_0x3b42e8){_0x4f4bcb||(_0x4f4bcb=Object['assign']({},_0x5522e2['props']));let _0x2533dc=_0x3b42e8[0x1],_0x43a063=_0x3b42e8[0x0];_0x43a063['combine']&&_0x43a063['id']in _0x4f4bcb&&(_0x2533dc=_0x43a063['combine'](_0x4f4bcb[_0x43a063['id']],_0x2533dc)),_0x4f4bcb[_0x43a063['id']]=_0x2533dc;}}_0x260ef7['push'](_0x4f4bcb?new NodeType(_0x5522e2['name'],_0x4f4bcb,_0x5522e2['id'],_0x5522e2['flags']):_0x5522e2);}return new NodeSet(_0x260ef7);}}const CachedNode=new WeakMap(),CachedInnerNode=new WeakMap();var IterMode;!function(_0x10fb65){_0x10fb65[_0x10fb65['ExcludeBuffers']=0x1]='ExcludeBuffers',_0x10fb65[_0x10fb65['IncludeAnonymous']=0x2]='IncludeAnonymous',_0x10fb65[_0x10fb65['IgnoreMounts']=0x4]='IgnoreMounts',_0x10fb65[_0x10fb65['IgnoreOverlays']=0x8]='IgnoreOverlays';}(IterMode||(IterMode={}));class Tree{constructor(_0x4ad79d,_0x563eae,_0x253bc4,_0x1181d8,_0x305977){if(this['type']=_0x4ad79d,this['children']=_0x563eae,this['positions']=_0x253bc4,this['length']=_0x1181d8,this['props']=null,_0x305977&&_0x305977['length']){this['props']=Object['create'](null);for(let [_0x56398f,_0x46ecd7]of _0x305977)this['props']['number'==typeof _0x56398f?_0x56398f:_0x56398f['id']]=_0x46ecd7;}}['toString'](){let _0x53e4a7=MountedTree['get'](this);if(_0x53e4a7&&!_0x53e4a7['overlay'])return _0x53e4a7['tree']['toString']();let _0x448726='';for(let _0x14e975 of this['children']){let _0x54d9a1=_0x14e975['toString']();_0x54d9a1&&(_0x448726&&(_0x448726+=','),_0x448726+=_0x54d9a1);}return this['type']['name']?(/\W/['test'](this['type']['name'])&&!this['type']['isError']?JSON['stringify'](this['type']['name']):this['type']['name'])+(_0x448726['length']?'('+_0x448726+')':''):_0x448726;}['cursor'](_0x2e87e3=0x0){return new TreeCursor(this['topNode'],_0x2e87e3);}['cursorAt'](_0x1304b0,_0x3ebfe6=0x0,_0x6986b7=0x0){let _0x29ca65=CachedNode['get'](this)||this['topNode'],_0x39a3f1=new TreeCursor(_0x29ca65);return _0x39a3f1['moveTo'](_0x1304b0,_0x3ebfe6),CachedNode['set'](this,_0x39a3f1['_tree']),_0x39a3f1;}get['topNode'](){return new TreeNode(this,0x0,0x0,null);}['resolve'](_0x3ee6ed,_0x2940ff=0x0){let _0x5af9f2=resolveNode(CachedNode['get'](this)||this['topNode'],_0x3ee6ed,_0x2940ff,!0x1);return CachedNode['set'](this,_0x5af9f2),_0x5af9f2;}['resolveInner'](_0x1b52fd,_0x2246f0=0x0){let _0x3249d2=resolveNode(CachedInnerNode['get'](this)||this['topNode'],_0x1b52fd,_0x2246f0,!0x0);return CachedInnerNode['set'](this,_0x3249d2),_0x3249d2;}['resolveStack'](_0x3aba6d,_0x5efedd=0x0){return stackIterator(this,_0x3aba6d,_0x5efedd);}['iterate'](_0x56ac54){let {enter:_0x17716b,leave:_0x3aaef6,from:_0x1ec8cc=0x0,to:_0x2ab35d=this['length']}=_0x56ac54,_0x1a282e=_0x56ac54['mode']||0x0,_0x5e0588=(_0x1a282e&IterMode['IncludeAnonymous'])>0x0;for(let _0x4f8075=this['cursor'](_0x1a282e|IterMode['IncludeAnonymous']);;){let _0x5f11ed=!0x1;if(_0x4f8075['from']<=_0x2ab35d&&_0x4f8075['to']>=_0x1ec8cc&&(!_0x5e0588&&_0x4f8075['type']['isAnonymous']||!0x1!==_0x17716b(_0x4f8075))){if(_0x4f8075['firstChild']())continue;_0x5f11ed=!0x0;}for(;_0x5f11ed&&_0x3aaef6&&(_0x5e0588||!_0x4f8075['type']['isAnonymous'])&&_0x3aaef6(_0x4f8075),!_0x4f8075['nextSibling']();){if(!_0x4f8075['parent']())return;_0x5f11ed=!0x0;}}}['prop'](_0x276547){return _0x276547['perNode']?this['props']?this['props'][_0x276547['id']]:void 0x0:this['type']['prop'](_0x276547);}get['propValues'](){let _0x555d6d=[];if(this['props']){for(let _0x96721b in this['props'])_0x555d6d['push']([+_0x96721b,this['props'][_0x96721b]]);}return _0x555d6d;}['balance'](_0x1460ac={}){return this['children']['length']<=0x8?this:balanceRange(NodeType['none'],this['children'],this['positions'],0x0,this['children']['length'],0x0,this['length'],(_0x13e826,_0x53218a,_0x589720)=>new Tree(this['type'],_0x13e826,_0x53218a,_0x589720,this['propValues']),_0x1460ac['makeTree']||((_0x24960f,_0x30e044,_0x4a2c79)=>new Tree(NodeType['none'],_0x24960f,_0x30e044,_0x4a2c79)));}static['build'](_0x546e76){return buildTree(_0x546e76);}}Tree['empty']=new Tree(NodeType['none'],[],[],0x0);class FlatBufferCursor{constructor(_0x5e953a,_0x3f5d31){this['buffer']=_0x5e953a,this['index']=_0x3f5d31;}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']);}}class TreeBuffer{constructor(_0x318224,_0x3c3f2d,_0x7d6236){this['buffer']=_0x318224,this['length']=_0x3c3f2d,this['set']=_0x7d6236;}get['type'](){return NodeType['none'];}['toString'](){let _0xc3c2e1=[];for(let _0x59f009=0x0;_0x59f009<this['buffer']['length'];)_0xc3c2e1['push'](this['childString'](_0x59f009)),_0x59f009=this['buffer'][_0x59f009+0x3];return _0xc3c2e1['join'](',');}['childString'](_0x4f9d91){let _0x32db52=this['buffer'][_0x4f9d91],_0x268b6b=this['buffer'][_0x4f9d91+0x3],_0x5450a5=this['set']['types'][_0x32db52],_0x315a26=_0x5450a5['name'];if(/\W/['test'](_0x315a26)&&!_0x5450a5['isError']&&(_0x315a26=JSON['stringify'](_0x315a26)),_0x268b6b==(_0x4f9d91+=0x4))return _0x315a26;let _0x10a9f0=[];for(;_0x4f9d91<_0x268b6b;)_0x10a9f0['push'](this['childString'](_0x4f9d91)),_0x4f9d91=this['buffer'][_0x4f9d91+0x3];return _0x315a26+'('+_0x10a9f0['join'](',')+')';}['findChild'](_0x1c619f,_0x24d0d2,_0x210e41,_0x1fe461,_0xaff33a){let {buffer:_0x5ca1b9}=this,_0x1f915e=-0x1;for(let _0x46f818=_0x1c619f;_0x46f818!=_0x24d0d2&&!(checkSide(_0xaff33a,_0x1fe461,_0x5ca1b9[_0x46f818+0x1],_0x5ca1b9[_0x46f818+0x2])&&(_0x1f915e=_0x46f818,_0x210e41>0x0));_0x46f818=_0x5ca1b9[_0x46f818+0x3]);return _0x1f915e;}['slice'](_0x1b64a9,_0x52a5b9,_0x1681e5){let _0x30a9c2=this['buffer'],_0x2703aa=new Uint16Array(_0x52a5b9-_0x1b64a9),_0x271f82=0x0;for(let _0x351001=_0x1b64a9,_0xdf4e87=0x0;_0x351001<_0x52a5b9;){_0x2703aa[_0xdf4e87++]=_0x30a9c2[_0x351001++],_0x2703aa[_0xdf4e87++]=_0x30a9c2[_0x351001++]-_0x1681e5;let _0x3f4e82=_0x2703aa[_0xdf4e87++]=_0x30a9c2[_0x351001++]-_0x1681e5;_0x2703aa[_0xdf4e87++]=_0x30a9c2[_0x351001++]-_0x1b64a9,_0x271f82=Math['max'](_0x271f82,_0x3f4e82);}return new TreeBuffer(_0x2703aa,_0x271f82,this['set']);}}function checkSide(_0x31e2c1,_0x28f7a2,_0x4bc8e0,_0x5c9a56){switch(_0x31e2c1){case-0x2:return _0x4bc8e0<_0x28f7a2;case-0x1:return _0x5c9a56>=_0x28f7a2&&_0x4bc8e0<_0x28f7a2;case 0x0:return _0x4bc8e0<_0x28f7a2&&_0x5c9a56>_0x28f7a2;case 0x1:return _0x4bc8e0<=_0x28f7a2&&_0x5c9a56>_0x28f7a2;case 0x2:return _0x5c9a56>_0x28f7a2;case 0x4:return!0x0;}}function resolveNode(_0x2ff1fb,_0x507e84,_0x4fe9f4,_0x3cb98a){for(var _0x3fcf1c;_0x2ff1fb['from']==_0x2ff1fb['to']||(_0x4fe9f4<0x1?_0x2ff1fb['from']>=_0x507e84:_0x2ff1fb['from']>_0x507e84)||(_0x4fe9f4>-0x1?_0x2ff1fb['to']<=_0x507e84:_0x2ff1fb['to']<_0x507e84);){let _0x26ff42=!_0x3cb98a&&_0x2ff1fb instanceof TreeNode&&_0x2ff1fb['index']<0x0?null:_0x2ff1fb['parent'];if(!_0x26ff42)return _0x2ff1fb;_0x2ff1fb=_0x26ff42;}let _0x4970f2=_0x3cb98a?0x0:IterMode['IgnoreOverlays'];if(_0x3cb98a){for(let _0x4c0a47=_0x2ff1fb,_0x97529e=_0x4c0a47['parent'];_0x97529e;_0x4c0a47=_0x97529e,_0x97529e=_0x4c0a47['parent'])_0x4c0a47 instanceof TreeNode&&_0x4c0a47['index']<0x0&&(null===(_0x3fcf1c=_0x97529e['enter'](_0x507e84,_0x4fe9f4,_0x4970f2))||void 0x0===_0x3fcf1c?void 0x0:_0x3fcf1c['from'])!=_0x4c0a47['from']&&(_0x2ff1fb=_0x97529e);}for(;;){let _0x15b38c=_0x2ff1fb['enter'](_0x507e84,_0x4fe9f4,_0x4970f2);if(!_0x15b38c)return _0x2ff1fb;_0x2ff1fb=_0x15b38c;}}class BaseNode{['cursor'](_0x1d7465=0x0){return new TreeCursor(this,_0x1d7465);}['getChild'](_0x458645,_0x5e8a1c=null,_0x144c97=null){let _0x15d96f=getChildren(this,_0x458645,_0x5e8a1c,_0x144c97);return _0x15d96f['length']?_0x15d96f[0x0]:null;}['getChildren'](_0x4bbe5e,_0x14e00d=null,_0x414ec3=null){return getChildren(this,_0x4bbe5e,_0x14e00d,_0x414ec3);}['resolve'](_0x21f0c2,_0x2b6ca5=0x0){return resolveNode(this,_0x21f0c2,_0x2b6ca5,!0x1);}['resolveInner'](_0xdf831f,_0x85dcdd=0x0){return resolveNode(this,_0xdf831f,_0x85dcdd,!0x0);}['matchContext'](_0x42d0b8){return matchNodeContext(this['parent'],_0x42d0b8);}['enterUnfinishedNodesBefore'](_0x1d7796){let _0x54b493=this['childBefore'](_0x1d7796),_0x551ff0=this;for(;_0x54b493;){let _0x507ebb=_0x54b493['lastChild'];if(!_0x507ebb||_0x507ebb['to']!=_0x54b493['to'])break;_0x507ebb['type']['isError']&&_0x507ebb['from']==_0x507ebb['to']?(_0x551ff0=_0x54b493,_0x54b493=_0x507ebb['prevSibling']):_0x54b493=_0x507ebb;}return _0x551ff0;}get['node'](){return this;}get['next'](){return this['parent'];}}class TreeNode extends BaseNode{constructor(_0x8a0da4,_0x57c0c5,_0x426160,_0x57f709){super(),this['_tree']=_0x8a0da4,this['from']=_0x57c0c5,this['index']=_0x426160,this['_parent']=_0x57f709;}get['type'](){return this['_tree']['type'];}get['name'](){return this['_tree']['type']['name'];}get['to'](){return this['from']+this['_tree']['length'];}['nextChild'](_0xf3621e,_0x570743,_0xe19e23,_0x2b7eae,_0x320092=0x0){for(let _0x586d18=this;;){for(let {children:_0x13da9e,positions:_0x59d625}=_0x586d18['_tree'],_0x3e7948=_0x570743>0x0?_0x13da9e['length']:-0x1;_0xf3621e!=_0x3e7948;_0xf3621e+=_0x570743){let _0x3bbda4=_0x13da9e[_0xf3621e],_0x39dd56=_0x59d625[_0xf3621e]+_0x586d18['from'];if(checkSide(_0x2b7eae,_0xe19e23,_0x39dd56,_0x39dd56+_0x3bbda4['length'])){if(_0x3bbda4 instanceof TreeBuffer){if(_0x320092&IterMode['ExcludeBuffers'])continue;let _0x15d2d4=_0x3bbda4['findChild'](0x0,_0x3bbda4['buffer']['length'],_0x570743,_0xe19e23-_0x39dd56,_0x2b7eae);if(_0x15d2d4>-0x1)return new BufferNode(new BufferContext(_0x586d18,_0x3bbda4,_0xf3621e,_0x39dd56),null,_0x15d2d4);}else{if(_0x320092&IterMode['IncludeAnonymous']||!_0x3bbda4['type']['isAnonymous']||hasChild(_0x3bbda4)){let _0x2ec764;if(!(_0x320092&IterMode['IgnoreMounts'])&&(_0x2ec764=MountedTree['get'](_0x3bbda4))&&!_0x2ec764['overlay'])return new TreeNode(_0x2ec764['tree'],_0x39dd56,_0xf3621e,_0x586d18);let _0x2812cf=new TreeNode(_0x3bbda4,_0x39dd56,_0xf3621e,_0x586d18);return _0x320092&IterMode['IncludeAnonymous']||!_0x2812cf['type']['isAnonymous']?_0x2812cf:_0x2812cf['nextChild'](_0x570743<0x0?_0x3bbda4['children']['length']-0x1:0x0,_0x570743,_0xe19e23,_0x2b7eae);}}}}if(_0x320092&IterMode['IncludeAnonymous']||!_0x586d18['type']['isAnonymous'])return null;if(_0xf3621e=_0x586d18['index']>=0x0?_0x586d18['index']+_0x570743:_0x570743<0x0?-0x1:_0x586d18['_parent']['_tree']['children']['length'],_0x586d18=_0x586d18['_parent'],!_0x586d18)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'](_0x351c24){return this['nextChild'](0x0,0x1,_0x351c24,0x2);}['childBefore'](_0x203998){return this['nextChild'](this['_tree']['children']['length']-0x1,-0x1,_0x203998,-0x2);}['enter'](_0xc43a80,_0x332274,_0x1ef21c=0x0){let _0x5356d7;if(!(_0x1ef21c&IterMode['IgnoreOverlays'])&&(_0x5356d7=MountedTree['get'](this['_tree']))&&_0x5356d7['overlay']){let _0x3ca027=_0xc43a80-this['from'];for(let {from:_0x21b617,to:_0x5a6afa}of _0x5356d7['overlay'])if((_0x332274>0x0?_0x21b617<=_0x3ca027:_0x21b617<_0x3ca027)&&(_0x332274<0x0?_0x5a6afa>=_0x3ca027:_0x5a6afa>_0x3ca027))return new TreeNode(_0x5356d7['tree'],_0x5356d7['overlay'][0x0]['from']+this['from'],-0x1,this);}return this['nextChild'](0x0,0x1,_0xc43a80,_0x332274,_0x1ef21c);}['nextSignificantParent'](){let _0xe831c7=this;for(;_0xe831c7['type']['isAnonymous']&&_0xe831c7['_parent'];)_0xe831c7=_0xe831c7['_parent'];return _0xe831c7;}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 getChildren(_0x5d8f39,_0x9faa3f,_0x4f7526,_0x191367){let _0x268e9d=_0x5d8f39['cursor'](),_0x386043=[];if(!_0x268e9d['firstChild']())return _0x386043;if(null!=_0x4f7526){for(let _0x273c36=!0x1;!_0x273c36;)if(_0x273c36=_0x268e9d['type']['is'](_0x4f7526),!_0x268e9d['nextSibling']())return _0x386043;}for(;;){if(null!=_0x191367&&_0x268e9d['type']['is'](_0x191367))return _0x386043;if(_0x268e9d['type']['is'](_0x9faa3f)&&_0x386043['push'](_0x268e9d['node']),!_0x268e9d['nextSibling']())return null==_0x191367?_0x386043:[];}}function matchNodeContext(_0x3b06dd,_0x111583,_0x45ab77=_0x111583['length']-0x1){for(let _0x3a4811=_0x3b06dd;_0x45ab77>=0x0;_0x3a4811=_0x3a4811['parent']){if(!_0x3a4811)return!0x1;if(!_0x3a4811['type']['isAnonymous']){if(_0x111583[_0x45ab77]&&_0x111583[_0x45ab77]!=_0x3a4811['name'])return!0x1;_0x45ab77--;}}return!0x0;}class BufferContext{constructor(_0x3ed352,_0x932bd8,_0x59693c,_0x55ec14){this['parent']=_0x3ed352,this['buffer']=_0x932bd8,this['index']=_0x59693c,this['start']=_0x55ec14;}}class BufferNode extends BaseNode{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(_0x3e3d13,_0x1fb2c6,_0x1ad0f5){super(),this['context']=_0x3e3d13,this['_parent']=_0x1fb2c6,this['index']=_0x1ad0f5,this['type']=_0x3e3d13['buffer']['set']['types'][_0x3e3d13['buffer']['buffer'][_0x1ad0f5]];}['child'](_0x59e60a,_0x1d7db2,_0x1c9b07){let {buffer:_0x5bbed3}=this['context'],_0x1e4f04=_0x5bbed3['findChild'](this['index']+0x4,_0x5bbed3['buffer'][this['index']+0x3],_0x59e60a,_0x1d7db2-this['context']['start'],_0x1c9b07);return _0x1e4f04<0x0?null:new BufferNode(this['context'],this,_0x1e4f04);}get['firstChild'](){return this['child'](0x1,0x0,0x4);}get['lastChild'](){return this['child'](-0x1,0x0,0x4);}['childAfter'](_0x12cf85){return this['child'](0x1,_0x12cf85,0x2);}['childBefore'](_0x20ffeb){return this['child'](-0x1,_0x20ffeb,-0x2);}['enter'](_0x373d97,_0x43f877,_0x281da2=0x0){if(_0x281da2&IterMode['ExcludeBuffers'])return null;let {buffer:_0x34a28d}=this['context'],_0x7ba3a4=_0x34a28d['findChild'](this['index']+0x4,_0x34a28d['buffer'][this['index']+0x3],_0x43f877>0x0?0x1:-0x1,_0x373d97-this['context']['start'],_0x43f877);return _0x7ba3a4<0x0?null:new BufferNode(this['context'],this,_0x7ba3a4);}get['parent'](){return this['_parent']||this['context']['parent']['nextSignificantParent']();}['externalSibling'](_0x1e4736){return this['_parent']?null:this['context']['parent']['nextChild'](this['context']['index']+_0x1e4736,_0x1e4736,0x0,0x4);}get['nextSibling'](){let {buffer:_0x143ab6}=this['context'],_0x164178=_0x143ab6['buffer'][this['index']+0x3];return _0x164178<(this['_parent']?_0x143ab6['buffer'][this['_parent']['index']+0x3]:_0x143ab6['buffer']['length'])?new BufferNode(this['context'],this['_parent'],_0x164178):this['externalSibling'](0x1);}get['prevSibling'](){let {buffer:_0x3703c7}=this['context'],_0x2f2601=this['_parent']?this['_parent']['index']+0x4:0x0;return this['index']==_0x2f2601?this['externalSibling'](-0x1):new BufferNode(this['context'],this['_parent'],_0x3703c7['findChild'](_0x2f2601,this['index'],-0x1,0x0,0x4));}get['tree'](){return null;}['toTree'](){let _0x1ceebe=[],_0x5bf3c0=[],{buffer:_0x76045a}=this['context'],_0x2e3c93=this['index']+0x4,_0x49bf49=_0x76045a['buffer'][this['index']+0x3];if(_0x49bf49>_0x2e3c93){let _0x2238ca=_0x76045a['buffer'][this['index']+0x1];_0x1ceebe['push'](_0x76045a['slice'](_0x2e3c93,_0x49bf49,_0x2238ca)),_0x5bf3c0['push'](0x0);}return new Tree(this['type'],_0x1ceebe,_0x5bf3c0,this['to']-this['from']);}['toString'](){return this['context']['buffer']['childString'](this['index']);}}function iterStack(_0x5de041){if(!_0x5de041['length'])return null;let _0x11eaef=0x0,_0x3db474=_0x5de041[0x0];for(let _0x57404f=0x1;_0x57404f<_0x5de041['length'];_0x57404f++){let _0x21926c=_0x5de041[_0x57404f];(_0x21926c['from']>_0x3db474['from']||_0x21926c['to']<_0x3db474['to'])&&(_0x3db474=_0x21926c,_0x11eaef=_0x57404f);}let _0x140dc4=_0x3db474 instanceof TreeNode&&_0x3db474['index']<0x0?null:_0x3db474['parent'],_0x476b40=_0x5de041['slice']();return _0x140dc4?_0x476b40[_0x11eaef]=_0x140dc4:_0x476b40['splice'](_0x11eaef,0x1),new StackIterator(_0x476b40,_0x3db474);}class StackIterator{constructor(_0x491cd8,_0x4e5078){this['heads']=_0x491cd8,this['node']=_0x4e5078;}get['next'](){return iterStack(this['heads']);}}function stackIterator(_0x448fa2,_0x14675c,_0xb5ebed){let _0x8a951d=_0x448fa2['resolveInner'](_0x14675c,_0xb5ebed),_0xfd0189=null;for(let _0x332d32=_0x8a951d instanceof TreeNode?_0x8a951d:_0x8a951d['context']['parent'];_0x332d32;_0x332d32=_0x332d32['parent'])if(_0x332d32['index']<0x0){let _0x429295=_0x332d32['parent'];(_0xfd0189||(_0xfd0189=[_0x8a951d]))['push'](_0x429295['resolve'](_0x14675c,_0xb5ebed)),_0x332d32=_0x429295;}else{let _0x449fa7=MountedTree['get'](_0x332d32['tree']);if(_0x449fa7&&_0x449fa7['overlay']&&_0x449fa7['overlay'][0x0]['from']<=_0x14675c&&_0x449fa7['overlay'][_0x449fa7['overlay']['length']-0x1]['to']>=_0x14675c){let _0x5183af=new TreeNode(_0x449fa7['tree'],_0x449fa7['overlay'][0x0]['from']+_0x332d32['from'],-0x1,_0x332d32);(_0xfd0189||(_0xfd0189=[_0x8a951d]))['push'](resolveNode(_0x5183af,_0x14675c,_0xb5ebed,!0x1));}}return _0xfd0189?iterStack(_0xfd0189):_0x8a951d;}class TreeCursor{get['name'](){return this['type']['name'];}constructor(_0x51d8ce,_0x31a36e=0x0){if(this['mode']=_0x31a36e,this['buffer']=null,this['stack']=[],this['index']=0x0,this['bufferNode']=null,_0x51d8ce instanceof TreeNode)this['yieldNode'](_0x51d8ce);else{this['_tree']=_0x51d8ce['context']['parent'],this['buffer']=_0x51d8ce['context'];for(let _0x420fd4=_0x51d8ce['_parent'];_0x420fd4;_0x420fd4=_0x420fd4['_parent'])this['stack']['unshift'](_0x420fd4['index']);this['bufferNode']=_0x51d8ce,this['yieldBuf'](_0x51d8ce['index']);}}['yieldNode'](_0x76905f){return!!_0x76905f&&(this['_tree']=_0x76905f,this['type']=_0x76905f['type'],this['from']=_0x76905f['from'],this['to']=_0x76905f['to'],!0x0);}['yieldBuf'](_0x481e41,_0x23a838){this['index']=_0x481e41;let {start:_0xcf476e,buffer:_0x1b7785}=this['buffer'];return this['type']=_0x23a838||_0x1b7785['set']['types'][_0x1b7785['buffer'][_0x481e41]],this['from']=_0xcf476e+_0x1b7785['buffer'][_0x481e41+0x1],this['to']=_0xcf476e+_0x1b7785['buffer'][_0x481e41+0x2],!0x0;}['yield'](_0x453249){return!!_0x453249&&(_0x453249 instanceof TreeNode?(this['buffer']=null,this['yieldNode'](_0x453249)):(this['buffer']=_0x453249['context'],this['yieldBuf'](_0x453249['index'],_0x453249['type'])));}['toString'](){return this['buffer']?this['buffer']['buffer']['childString'](this['index']):this['_tree']['toString']();}['enterChild'](_0x37acff,_0x51338a,_0x2d2f23){if(!this['buffer'])return this['yield'](this['_tree']['nextChild'](_0x37acff<0x0?this['_tree']['_tree']['children']['length']-0x1:0x0,_0x37acff,_0x51338a,_0x2d2f23,this['mode']));let {buffer:_0x484139}=this['buffer'],_0x2fa61f=_0x484139['findChild'](this['index']+0x4,_0x484139['buffer'][this['index']+0x3],_0x37acff,_0x51338a-this['buffer']['start'],_0x2d2f23);return!(_0x2fa61f<0x0)&&(this['stack']['push'](this['index']),this['yieldBuf'](_0x2fa61f));}['firstChild'](){return this['enterChild'](0x1,0x0,0x4);}['lastChild'](){return this['enterChild'](-0x1,0x0,0x4);}['childAfter'](_0x1f3eaa){return this['enterChild'](0x1,_0x1f3eaa,0x2);}['childBefore'](_0x5312af){return this['enterChild'](-0x1,_0x5312af,-0x2);}['enter'](_0x518c15,_0x454a22,_0x44ca7a=this['mode']){return this['buffer']?!(_0x44ca7a&IterMode['ExcludeBuffers'])&&this['enterChild'](0x1,_0x518c15,_0x454a22):this['yield'](this['_tree']['enter'](_0x518c15,_0x454a22,_0x44ca7a));}['parent'](){if(!this['buffer'])return this['yieldNode'](this['mode']&IterMode['IncludeAnonymous']?this['_tree']['_parent']:this['_tree']['parent']);if(this['stack']['length'])return this['yieldBuf'](this['stack']['pop']());let _0x378ae3=this['mode']&IterMode['IncludeAnonymous']?this['buffer']['parent']:this['buffer']['parent']['nextSignificantParent']();return this['buffer']=null,this['yieldNode'](_0x378ae3);}['sibling'](_0xfdeca9){if(!this['buffer'])return!!this['_tree']['_parent']&&this['yield'](this['_tree']['index']<0x0?null:this['_tree']['_parent']['nextChild'](this['_tree']['index']+_0xfdeca9,_0xfdeca9,0x0,0x4,this['mode']));let {buffer:_0x36b7b5}=this['buffer'],_0x53a188=this['stack']['length']-0x1;if(_0xfdeca9<0x0){let _0x3229b8=_0x53a188<0x0?0x0:this['stack'][_0x53a188]+0x4;if(this['index']!=_0x3229b8)return this['yieldBuf'](_0x36b7b5['findChild'](_0x3229b8,this['index'],-0x1,0x0,0x4));}else{let _0x2331cc=_0x36b7b5['buffer'][this['index']+0x3];if(_0x2331cc<(_0x53a188<0x0?_0x36b7b5['buffer']['length']:_0x36b7b5['buffer'][this['stack'][_0x53a188]+0x3]))return this['yieldBuf'](_0x2331cc);}return _0x53a188<0x0&&this['yield'](this['buffer']['parent']['nextChild'](this['buffer']['index']+_0xfdeca9,_0xfdeca9,0x0,0x4,this['mode']));}['nextSibling'](){return this['sibling'](0x1);}['prevSibling'](){return this['sibling'](-0x1);}['atLastNode'](_0xd0fe30){let _0x1d27a9,_0xfe95b1,{buffer:_0x46e0a1}=this;if(_0x46e0a1){if(_0xd0fe30>0x0){if(this['index']<_0x46e0a1['buffer']['buffer']['length'])return!0x1;}else{for(let _0x2cb3da=0x0;_0x2cb3da<this['index'];_0x2cb3da++)if(_0x46e0a1['buffer']['buffer'][_0x2cb3da+0x3]<this['index'])return!0x1;}({index:_0x1d27a9,parent:_0xfe95b1}=_0x46e0a1);}else({index:_0x1d27a9,_parent:_0xfe95b1}=this['_tree']);for(;_0xfe95b1;{index:_0x1d27a9,_parent:_0xfe95b1}=_0xfe95b1)if(_0x1d27a9>-0x1)for(let _0x187b51=_0x1d27a9+_0xd0fe30,_0x1e129f=_0xd0fe30<0x0?-0x1:_0xfe95b1['_tree']['children']['length'];_0x187b51!=_0x1e129f;_0x187b51+=_0xd0fe30){let _0x2f7cdc=_0xfe95b1['_tree']['children'][_0x187b51];if(this['mode']&IterMode['IncludeAnonymous']||_0x2f7cdc instanceof TreeBuffer||!_0x2f7cdc['type']['isAnonymous']||hasChild(_0x2f7cdc))return!0x1;}return!0x0;}['move'](_0x52e6c6,_0x272e4f){if(_0x272e4f&&this['enterChild'](_0x52e6c6,0x0,0x4))return!0x0;for(;;){if(this['sibling'](_0x52e6c6))return!0x0;if(this['atLastNode'](_0x52e6c6)||!this['parent']())return!0x1;}}['next'](_0x4b6957=!0x0){return this['move'](0x1,_0x4b6957);}['prev'](_0x53bf12=!0x0){return this['move'](-0x1,_0x53bf12);}['moveTo'](_0x4a8719,_0x5862a8=0x0){for(;(this['from']==this['to']||(_0x5862a8<0x1?this['from']>=_0x4a8719:this['from']>_0x4a8719)||(_0x5862a8>-0x1?this['to']<=_0x4a8719:this['to']<_0x4a8719))&&this['parent'](););for(;this['enterChild'](0x1,_0x4a8719,_0x5862a8););return this;}get['node'](){if(!this['buffer'])return this['_tree'];let _0x558d62=this['bufferNode'],_0x40dc29=null,_0x444508=0x0;if(_0x558d62&&_0x558d62['context']==this['buffer']){t:for(let _0xcf1a12=this['index'],_0x30ba54=this['stack']['length'];_0x30ba54>=0x0;){for(let _0x55f22f=_0x558d62;_0x55f22f;_0x55f22f=_0x55f22f['_parent'])if(_0x55f22f['index']==_0xcf1a12){if(_0xcf1a12==this['index'])return _0x55f22f;_0x40dc29=_0x55f22f,_0x444508=_0x30ba54+0x1;break t;}_0xcf1a12=this['stack'][--_0x30ba54];}}for(let _0xc6ae20=_0x444508;_0xc6ae20<this['stack']['length'];_0xc6ae20++)_0x40dc29=new BufferNode(this['buffer'],_0x40dc29,this['stack'][_0xc6ae20]);return this['bufferNode']=new BufferNode(this['buffer'],_0x40dc29,this['index']);}get['tree'](){return this['buffer']?null:this['_tree']['_tree'];}['iterate'](_0xd546cf,_0x2c34a3){for(let _0x5de2d8=0x0;;){let _0x356721=!0x1;if(this['type']['isAnonymous']||!0x1!==_0xd546cf(this)){if(this['firstChild']()){_0x5de2d8++;continue;}this['type']['isAnonymous']||(_0x356721=!0x0);}for(;;){if(_0x356721&&_0x2c34a3&&_0x2c34a3(this),_0x356721=this['type']['isAnonymous'],!_0x5de2d8)return;if(this['nextSibling']())break;this['parent'](),_0x5de2d8--,_0x356721=!0x0;}}}['matchContext'](_0x4108f9){if(!this['buffer'])return matchNodeContext(this['node']['parent'],_0x4108f9);let {buffer:_0x3b2ddb}=this['buffer'],{types:_0x4ca8c0}=_0x3b2ddb['set'];for(let _0x4e1849=_0x4108f9['length']-0x1,_0x4ec897=this['stack']['length']-0x1;_0x4e1849>=0x0;_0x4ec897--){if(_0x4ec897<0x0)return matchNodeContext(this['_tree'],_0x4108f9,_0x4e1849);let _0x52bf75=_0x4ca8c0[_0x3b2ddb['buffer'][this['stack'][_0x4ec897]]];if(!_0x52bf75['isAnonymous']){if(_0x4108f9[_0x4e1849]&&_0x4108f9[_0x4e1849]!=_0x52bf75['name'])return!0x1;_0x4e1849--;}}return!0x0;}}function hasChild(_0x4257a1){return _0x4257a1['children']['some'](_0x4fbe50=>_0x4fbe50 instanceof TreeBuffer||!_0x4fbe50['type']['isAnonymous']||hasChild(_0x4fbe50));}function buildTree(_0x15b4e4){var _0x9bcea8;let {buffer:_0x248399,nodeSet:_0x13d480,maxBufferLength:_0x29062a=DefaultBufferLength,reused:_0x14760a=[],minRepeatType:_0x916c7=_0x13d480['types']['length']}=_0x15b4e4,_0x4f6a2b=Array['isArray'](_0x248399)?new FlatBufferCursor(_0x248399,_0x248399['length']):_0x248399,_0x2a4e22=_0x13d480['types'],_0x1a1588=0x0,_0x2e1968=0x0;function _0x14f8db(_0x2bad2f,_0x15f75a,_0x687aa9,_0x39ae01,_0x1a0c93,_0x4029f5){let {id:_0x4eabc0,start:_0x531bf2,end:_0x336b27,size:_0x2a7764}=_0x4f6a2b,_0xc31f7d=_0x2e1968,_0x693d7a=_0x1a1588;if(_0x2a7764<0x0){if(_0x4f6a2b['next'](),-0x1==_0x2a7764){let _0x2c4565=_0x14760a[_0x4eabc0];return _0x687aa9['push'](_0x2c4565),void _0x39ae01['push'](_0x531bf2-_0x2bad2f);}if(-0x3==_0x2a7764)return void(_0x1a1588=_0x4eabc0);if(-0x4==_0x2a7764)return void(_0x2e1968=_0x4eabc0);throw new RangeError('Unrecognized\x20record\x20size:\x20'+_0x2a7764);}let _0x4fa72a,_0x55b645,_0x11a292=_0x2a4e22[_0x4eabc0],_0x42a537=_0x531bf2-_0x2bad2f;if(_0x336b27-_0x531bf2<=_0x29062a&&(_0x55b645=function(_0x4ff160,_0x5e481a){let _0x5a4d3c=_0x4f6a2b['fork'](),_0x36c97f=0x0,_0x29c27f=0x0,_0x36cad0=0x0,_0x2cd51e=_0x5a4d3c['end']-_0x29062a,_0x2e8811={'size':0x0,'start':0x0,'skip':0x0};t:for(let _0xafb35f=_0x5a4d3c['pos']-_0x4ff160;_0x5a4d3c['pos']>_0xafb35f;){let _0x3b7060=_0x5a4d3c['size'];if(_0x5a4d3c['id']==_0x5e481a&&_0x3b7060>=0x0){_0x2e8811['size']=_0x36c97f,_0x2e8811['start']=_0x29c27f,_0x2e8811['skip']=_0x36cad0,_0x36cad0+=0x4,_0x36c97f+=0x4,_0x5a4d3c['next']();continue;}let _0x4ab9fe=_0x5a4d3c['pos']-_0x3b7060;if(_0x3b7060<0x0||_0x4ab9fe<_0xafb35f||_0x5a4d3c['start']<_0x2cd51e)break;let _0xe27e64=_0x5a4d3c['id']>=_0x916c7?0x4:0x0,_0xc7611f=_0x5a4d3c['start'];for(_0x5a4d3c['next']();_0x5a4d3c['pos']>_0x4ab9fe;){if(_0x5a4d3c['size']<0x0){if(-0x3!=_0x5a4d3c['size'])break t;_0xe27e64+=0x4;}else _0x5a4d3c['id']>=_0x916c7&&(_0xe27e64+=0x4);_0x5a4d3c['next']();}_0x29c27f=_0xc7611f,_0x36c97f+=_0x3b7060,_0x36cad0+=_0xe27e64;}return(_0x5e481a<0x0||_0x36c97f==_0x4ff160)&&(_0x2e8811['size']=_0x36c97f,_0x2e8811['start']=_0x29c27f,_0x2e8811['skip']=_0x36cad0),_0x2e8811['size']>0x4?_0x2e8811:void 0x0;}(_0x4f6a2b['pos']-_0x15f75a,_0x1a0c93))){let _0x2fa65a=new Uint16Array(_0x55b645['size']-_0x55b645['skip']),_0x1ebb14=_0x4f6a2b['pos']-_0x55b645['size'],_0x2200c9=_0x2fa65a['length'];for(;_0x4f6a2b['pos']>_0x1ebb14;)_0x2200c9=_0x373dd2(_0x55b645['start'],_0x2fa65a,_0x2200c9);_0x4fa72a=new TreeBuffer(_0x2fa65a,_0x336b27-_0x55b645['start'],_0x13d480),_0x42a537=_0x55b645['start']-_0x2bad2f;}else{let _0x2a6ced=_0x4f6a2b['pos']-_0x2a7764;_0x4f6a2b['next']();let _0x472606=[],_0x694ebf=[],_0x340ec6=_0x4eabc0>=_0x916c7?_0x4eabc0:-0x1,_0x11cf28=0x0,_0x4556d5=_0x336b27;for(;_0x4f6a2b['pos']>_0x2a6ced;)_0x340ec6>=0x0&&_0x4f6a2b['id']==_0x340ec6&&_0x4f6a2b['size']>=0x0?(_0x4f6a2b['end']<=_0x4556d5-_0x29062a&&(_0x50944b(_0x472606,_0x694ebf,_0x531bf2,_0x11cf28,_0x4f6a2b['end'],_0x4556d5,_0x340ec6,_0xc31f7d,_0x693d7a),_0x11cf28=_0x472606['length'],_0x4556d5=_0x4f6a2b['end']),_0x4f6a2b['next']()):_0x4029f5>0x9c4?_0x4fbc82(_0x531bf2,_0x2a6ced,_0x472606,_0x694ebf):_0x14f8db(_0x531bf2,_0x2a6ced,_0x472606,_0x694ebf,_0x340ec6,_0x4029f5+0x1);if(_0x340ec6>=0x0&&_0x11cf28>0x0&&_0x11cf28<_0x472606['length']&&_0x50944b(_0x472606,_0x694ebf,_0x531bf2,_0x11cf28,_0x531bf2,_0x4556d5,_0x340ec6,_0xc31f7d,_0x693d7a),_0x472606['reverse'](),_0x694ebf['reverse'](),_0x340ec6>-0x1&&_0x11cf28>0x0){let _0x209c71=function(_0xf8b8ed,_0x35cea9){return(_0x57ceab,_0x263502,_0x26cfe3)=>{let _0x324805,_0x17f7a5,_0x1fe7d0=0x0,_0x53449a=_0x57ceab['length']-0x1;if(_0x53449a>=0x0&&(_0x324805=_0x57ceab[_0x53449a])instanceof Tree){if(!_0x53449a&&_0x324805['type']==_0xf8b8ed&&_0x324805['length']==_0x26cfe3)return _0x324805;(_0x17f7a5=_0x324805['prop'](NodeProp['lookAhead']))&&(_0x1fe7d0=_0x263502[_0x53449a]+_0x324805['length']+_0x17f7a5);}return _0x14fd63(_0xf8b8ed,_0x57ceab,_0x263502,_0x26cfe3,_0x1fe7d0,_0x35cea9);};}(_0x11a292,_0x693d7a);_0x4fa72a=balanceRange(_0x11a292,_0x472606,_0x694ebf,0x0,_0x472606['length'],0x0,_0x336b27-_0x531bf2,_0x209c71,_0x209c71);}else _0x4fa72a=_0x14fd63(_0x11a292,_0x472606,_0x694ebf,_0x336b27-_0x531bf2,_0xc31f7d-_0x336b27,_0x693d7a);}_0x687aa9['push'](_0x4fa72a),_0x39ae01['push'](_0x42a537);}function _0x4fbc82(_0x562ac2,_0x13daf7,_0x44d8a7,_0x2d5701){let _0x26fbd1=[],_0x4715de=0x0,_0x250820=-0x1;for(;_0x4f6a2b['pos']>_0x13daf7;){let {id:_0x4e217c,start:_0x4ed88c,end:_0x31b900,size:_0x593768}=_0x4f6a2b;if(_0x593768>0x4)_0x4f6a2b['next']();else{if(_0x250820>-0x1&&_0x4ed88c<_0x250820)break;_0x250820<0x0&&(_0x250820=_0x31b900-_0x29062a),_0x26fbd1['push'](_0x4e217c,_0x4ed88c,_0x31b900),_0x4715de++,_0x4f6a2b['next']();}}if(_0x4715de){let _0x5ba132=new Uint16Array(0x4*_0x4715de),_0x12c391=_0x26fbd1[_0x26fbd1['length']-0x2];for(let _0x5339d0=_0x26fbd1['length']-0x3,_0x3e19c7=0x0;_0x5339d0>=0x0;_0x5339d0-=0x3)_0x5ba132[_0x3e19c7++]=_0x26fbd1[_0x5339d0],_0x5ba132[_0x3e19c7++]=_0x26fbd1[_0x5339d0+0x1]-_0x12c391,_0x5ba132[_0x3e19c7++]=_0x26fbd1[_0x5339d0+0x2]-_0x12c391,_0x5ba132[_0x3e19c7++]=_0x3e19c7;_0x44d8a7['push'](new TreeBuffer(_0x5ba132,_0x26fbd1[0x2]-_0x12c391,_0x13d480)),_0x2d5701['push'](_0x12c391-_0x562ac2);}}function _0x50944b(_0x112bcf,_0x3f8e38,_0x568819,_0x2addb8,_0x3b1953,_0x3820d2,_0xaa8141,_0x360d47,_0x59cfd2){let _0x43a38c=[],_0x606ab9=[];for(;_0x112bcf['length']>_0x2addb8;)_0x43a38c['push'](_0x112bcf['pop']()),_0x606ab9['push'](_0x3f8e38['pop']()+_0x568819-_0x3b1953);_0x112bcf['push'](_0x14fd63(_0x13d480['types'][_0xaa8141],_0x43a38c,_0x606ab9,_0x3820d2-_0x3b1953,_0x360d47-_0x3820d2,_0x59cfd2)),_0x3f8e38['push'](_0x3b1953-_0x568819);}function _0x14fd63(_0x53f146,_0x25c3f2,_0x456fa4,_0x34ab08,_0x1fa529,_0x1503b1,_0x46a6ee){if(_0x1503b1){let _0x5baaf9=[NodeProp['contextHash'],_0x1503b1];_0x46a6ee=_0x46a6ee?[_0x5baaf9]['concat'](_0x46a6ee):[_0x5baaf9];}if(_0x1fa529>0x19){let _0x1de51d=[NodeProp['lookAhead'],_0x1fa529];_0x46a6ee=_0x46a6ee?[_0x1de51d]['concat'](_0x46a6ee):[_0x1de51d];}return new Tree(_0x53f146,_0x25c3f2,_0x456fa4,_0x34ab08,_0x46a6ee);}function _0x373dd2(_0xde91c3,_0x1591a6,_0x20465d){let {id:_0x28ae50,start:_0x31e654,end:_0x250ccb,size:_0x3b9a05}=_0x4f6a2b;if(_0x4f6a2b['next'](),_0x3b9a05>=0x0&&_0x28ae50<_0x916c7){let _0x404d0a=_0x20465d;if(_0x3b9a05>0x4){let _0x52ae87=_0x4f6a2b['pos']-(_0x3b9a05-0x4);for(;_0x4f6a2b['pos']>_0x52ae87;)_0x20465d=_0x373dd2(_0xde91c3,_0x1591a6,_0x20465d);}_0x1591a6[--_0x20465d]=_0x404d0a,_0x1591a6[--_0x20465d]=_0x250ccb-_0xde91c3,_0x1591a6[--_0x20465d]=_0x31e654-_0xde91c3,_0x1591a6[--_0x20465d]=_0x28ae50;}else-0x3==_0x3b9a05?_0x1a1588=_0x28ae50:-0x4==_0x3b9a05&&(_0x2e1968=_0x28ae50);return _0x20465d;}let _0x2b51d5=[],_0x1326f7=[];for(;_0x4f6a2b['pos']>0x0;)_0x14f8db(_0x15b4e4['start']||0x0,_0x15b4e4['bufferStart']||0x0,_0x2b51d5,_0x1326f7,-0x1,0x0);let _0x424e0c=null!==(_0x9bcea8=_0x15b4e4['length'])&&void 0x0!==_0x9bcea8?_0x9bcea8:_0x2b51d5['length']?_0x1326f7[0x0]+_0x2b51d5[0x0]['length']:0x0;return new Tree(_0x2a4e22[_0x15b4e4['topID']],_0x2b51d5['reverse'](),_0x1326f7['reverse'](),_0x424e0c);}const nodeSizeCache=new WeakMap();function nodeSize(_0x83e297,_0x509e38){if(!_0x83e297['isAnonymous']||_0x509e38 instanceof TreeBuffer||_0x509e38['type']!=_0x83e297)return 0x1;let _0x5a9f1a=nodeSizeCache['get'](_0x509e38);if(null==_0x5a9f1a){_0x5a9f1a=0x1;for(let _0x51df32 of _0x509e38['children']){if(_0x51df32['type']!=_0x83e297||!(_0x51df32 instanceof Tree)){_0x5a9f1a=0x1;break;}_0x5a9f1a+=nodeSize(_0x83e297,_0x51df32);}nodeSizeCache['set'](_0x509e38,_0x5a9f1a);}return _0x5a9f1a;}function balanceRange(_0x97e259,_0x47b3d3,_0x55c5f0,_0x342e2e,_0x1e3f30,_0x1f7c31,_0x34bf81,_0xf87866,_0x222afb){let _0x14bc9b=0x0;for(let _0x36207c=_0x342e2e;_0x36207c<_0x1e3f30;_0x36207c++)_0x14bc9b+=nodeSize(_0x97e259,_0x47b3d3[_0x36207c]);let _0x3125e2=Math['ceil'](1.5*_0x14bc9b/0x8),_0x22bfd7=[],_0x5df1f2=[];return function _0x4d2508(_0x154a8d,_0x476919,_0x525324,_0x5d6e0d,_0x83bf36){for(let _0x11a18b=_0x525324;_0x11a18b<_0x5d6e0d;){let _0x4cbfc0=_0x11a18b,_0x3b3063=_0x476919[_0x11a18b],_0x10a645=nodeSize(_0x97e259,_0x154a8d[_0x11a18b]);for(_0x11a18b++;_0x11a18b<_0x5d6e0d;_0x11a18b++){let _0x2955fd=nodeSize(_0x97e259,_0x154a8d[_0x11a18b]);if(_0x10a645+_0x2955fd>=_0x3125e2)break;_0x10a645+=_0x2955fd;}if(_0x11a18b==_0x4cbfc0+0x1){if(_0x10a645>_0x3125e2){let _0x1b369c=_0x154a8d[_0x4cbfc0];_0x4d2508(_0x1b369c['children'],_0x1b369c['positions'],0x0,_0x1b369c['children']['length'],_0x476919[_0x4cbfc0]+_0x83bf36);continue;}_0x22bfd7['push'](_0x154a8d[_0x4cbfc0]);}else{let _0x60994e=_0x476919[_0x11a18b-0x1]+_0x154a8d[_0x11a18b-0x1]['length']-_0x3b3063;_0x22bfd7['push'](balanceRange(_0x97e259,_0x154a8d,_0x476919,_0x4cbfc0,_0x11a18b,_0x3b3063,_0x60994e,null,_0x222afb));}_0x5df1f2['push'](_0x3b3063+_0x83bf36-_0x1f7c31);}}(_0x47b3d3,_0x55c5f0,_0x342e2e,_0x1e3f30,0x0),(_0xf87866||_0x222afb)(_0x22bfd7,_0x5df1f2,_0x34bf81);}class NodeWeakMap{constructor(){this['map']=new WeakMap();}['setBuffer'](_0x2acf44,_0x387abd,_0x5f11f8){let _0x57219d=this['map']['get'](_0x2acf44);_0x57219d||this['map']['set'](_0x2acf44,_0x57219d=new Map()),_0x57219d['set'](_0x387abd,_0x5f11f8);}['getBuffer'](_0x424adf,_0x25ec4c){let _0x3b9a47=this['map']['get'](_0x424adf);return _0x3b9a47&&_0x3b9a47['get'](_0x25ec4c);}['set'](_0x430619,_0x4ec9d2){_0x430619 instanceof BufferNode?this['setBuffer'](_0x430619['context']['buffer'],_0x430619['index'],_0x4ec9d2):_0x430619 instanceof TreeNode&&this['map']['set'](_0x430619['tree'],_0x4ec9d2);}['get'](_0x68585f){return _0x68585f instanceof BufferNode?this['getBuffer'](_0x68585f['context']['buffer'],_0x68585f['index']):_0x68585f instanceof TreeNode?this['map']['get'](_0x68585f['tree']):void 0x0;}['cursorSet'](_0x502b3c,_0xdd5f1b){_0x502b3c['buffer']?this['setBuffer'](_0x502b3c['buffer']['buffer'],_0x502b3c['index'],_0xdd5f1b):this['map']['set'](_0x502b3c['tree'],_0xdd5f1b);}['cursorGet'](_0x1e77c4){return _0x1e77c4['buffer']?this['getBuffer'](_0x1e77c4['buffer']['buffer'],_0x1e77c4['index']):this['map']['get'](_0x1e77c4['tree']);}}class TreeFragment{constructor(_0x495230,_0x2aee26,_0x5de46,_0x5b8e55,_0x3f17a=!0x1,_0x2d49a2=!0x1){this['from']=_0x495230,this['to']=_0x2aee26,this['tree']=_0x5de46,this['offset']=_0x5b8e55,this['open']=(_0x3f17a?0x1:0x0)|(_0x2d49a2?0x2:0x0);}get['openStart'](){return(0x1&this['open'])>0x0;}get['openEnd'](){return(0x2&this['open'])>0x0;}static['addTree'](_0x1acc35,_0x515bd2=[],_0x178402=!0x1){let _0x53d0e3=[new TreeFragment(0x0,_0x1acc35['length'],_0x1acc35,0x0,!0x1,_0x178402)];for(let _0x3bbfa7 of _0x515bd2)_0x3bbfa7['to']>_0x1acc35['length']&&_0x53d0e3['push'](_0x3bbfa7);return _0x53d0e3;}static['applyChanges'](_0x1b9f3d,_0x25abbe,_0x5601e2=0x80){if(!_0x25abbe['length'])return _0x1b9f3d;let _0x17e80d=[],_0x423f75=0x1,_0x4d3586=_0x1b9f3d['length']?_0x1b9f3d[0x0]:null;for(let _0x344b0d=0x0,_0x34440f=0x0,_0xa8cfb5=0x0;;_0x344b0d++){let _0x51caba=_0x344b0d<_0x25abbe['length']?_0x25abbe[_0x344b0d]:null,_0x1ecec5=_0x51caba?_0x51caba['fromA']:0x3b9aca00;if(_0x1ecec5-_0x34440f>=_0x5601e2)for(;_0x4d3586&&_0x4d3586['from']<_0x1ecec5;){let _0x3a91fd=_0x4d3586;if(_0x34440f>=_0x3a91fd['from']||_0x1ecec5<=_0x3a91fd['to']||_0xa8cfb5){let _0x28a84f=Math['max'](_0x3a91fd['from'],_0x34440f)-_0xa8cfb5,_0x394114=Math['min'](_0x3a91fd['to'],_0x1ecec5)-_0xa8cfb5;_0x3a91fd=_0x28a84f>=_0x394114?null:new TreeFragment(_0x28a84f,_0x394114,_0x3a91fd['tree'],_0x3a91fd['offset']+_0xa8cfb5,_0x344b0d>0x0,!!_0x51caba);}if(_0x3a91fd&&_0x17e80d['push'](_0x3a91fd),_0x4d3586['to']>_0x1ecec5)break;_0x4d3586=_0x423f75<_0x1b9f3d['length']?_0x1b9f3d[_0x423f75++]:null;}if(!_0x51caba)break;_0x34440f=_0x51caba['toA'],_0xa8cfb5=_0x51caba['toA']-_0x51caba['toB'];}return _0x17e80d;}}class Parser{['startParse'](_0x33ad16,_0x56687d,_0x1d160f){return'string'==typeof _0x33ad16&&(_0x33ad16=new StringInput(_0x33ad16)),_0x1d160f=_0x1d160f?_0x1d160f['length']?_0x1d160f['map'](_0x1586e8=>new Range(_0x1586e8['from'],_0x1586e8['to'])):[new Range(0x0,0x0)]:[new Range(0x0,_0x33ad16['length'])],this['createParse'](_0x33ad16,_0x56687d||[],_0x1d160f);}['parse'](_0x42f1b7,_0x562e45,_0x21193d){let _0x2d703b=this['startParse'](_0x42f1b7,_0x562e45,_0x21193d);for(;;){let _0x56b2d9=_0x2d703b['advance']();if(_0x56b2d9)return _0x56b2d9;}}}class StringInput{constructor(_0x1c7783){this['string']=_0x1c7783;}get['length'](){return this['string']['length'];}['chunk'](_0x11276a){return this['string']['slice'](_0x11276a);}get['lineChunks'](){return!0x1;}['read'](_0x425440,_0x53546f){return this['string']['slice'](_0x425440,_0x53546f);}}function parseMixed(_0x68c1f1){return(_0x3020bc,_0x332b92,_0x4287a4,_0x862a90)=>new MixedParse(_0x3020bc,_0x68c1f1,_0x332b92,_0x4287a4,_0x862a90);}class InnerParse{constructor(_0x2394a7,_0x5b262e,_0x2a5383,_0xfe69b3,_0x2a9fff){this['parser']=_0x2394a7,this['parse']=_0x5b262e,this['overlay']=_0x2a5383,this['target']=_0xfe69b3,this['from']=_0x2a9fff;}}function checkRanges(_0x7dda68){if(!_0x7dda68['length']||_0x7dda68['some'](_0x1520c6=>_0x1520c6['from']>=_0x1520c6['to']))throw new RangeError('Invalid\x20inner\x20parse\x20ranges\x20given:\x20'+JSON['stringify'](_0x7dda68));}class ActiveOverlay{constructor(_0x144dff,_0x45a048,_0x191a44,_0x59d1c0,_0x114948,_0x3e2d99,_0x3d5cc6){this['parser']=_0x144dff,this['predicate']=_0x45a048,this['mounts']=_0x191a44,this['index']=_0x59d1c0,this['start']=_0x114948,this['target']=_0x3e2d99,this['prev']=_0x3d5cc6,this['depth']=0x0,this['ranges']=[];}}const stoppedInner=new NodeProp({'perNode':!0x0});class MixedParse{constructor(_0x5eb0f8,_0x1a034a,_0x518095,_0x50d3ba,_0x30cfb0){this['nest']=_0x1a034a,this['input']=_0x518095,this['fragments']=_0x50d3ba,this['ranges']=_0x30cfb0,this['inner']=[],this['innerDone']=0x0,this['baseTree']=null,this['stoppedAt']=null,this['baseParse']=_0x5eb0f8;}['advance'](){if(this['baseParse']){let _0x24e09c=this['baseParse']['advance']();if(!_0x24e09c)return null;if(this['baseParse']=null,this['baseTree']=_0x24e09c,this['startInner'](),null!=this['stoppedAt']){for(let _0x57f1f6 of this['inner'])_0x57f1f6['parse']['stopAt'](this['stoppedAt']);}}if(this['innerDone']==this['inner']['length']){let _0x36ccc4=this['baseTree'];return null!=this['stoppedAt']&&(_0x36ccc4=new Tree(_0x36ccc4['type'],_0x36ccc4['children'],_0x36ccc4['positions'],_0x36ccc4['length'],_0x36ccc4['propValues']['concat']([[stoppedInner,this['stoppedAt']]]))),_0x36ccc4;}let _0x26ae33=this['inner'][this['innerDone']],_0x2b2498=_0x26ae33['parse']['advance']();if(_0x2b2498){this['innerDone']++;let _0xd22958=Object['assign'](Object['create'](null),_0x26ae33['target']['props']);_0xd22958[NodeProp['mounted']['id']]=new MountedTree(_0x2b2498,_0x26ae33['overlay'],_0x26ae33['parser']),_0x26ae33['target']['props']=_0xd22958;}return null;}get['parsedPos'](){if(this['baseParse'])return 0x0;let _0x32b514=this['input']['length'];for(let _0x823466=this['innerDone'];_0x823466<this['inner']['length'];_0x823466++)this['inner'][_0x823466]['from']<_0x32b514&&(_0x32b514=Math['min'](_0x32b514,this['inner'][_0x823466]['parse']['parsedPos']));return _0x32b514;}['stopAt'](_0x2e6202){if(this['stoppedAt']=_0x2e6202,this['baseParse'])this['baseParse']['stopAt'](_0x2e6202);else{for(let _0x5a3557=this['innerDone'];_0x5a3557<this['inner']['length'];_0x5a3557++)this['inner'][_0x5a3557]['parse']['stopAt'](_0x2e6202);}}['startInner'](){let _0x30988e=new FragmentCursor$2(this['fragments']),_0x55a94a=null,_0x32acb2=null,_0x4a2a64=new TreeCursor(new TreeNode(this['baseTree'],this['ranges'][0x0]['from'],0x0,null),IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);t:for(let _0x196da8,_0x45def4;;){let _0x3fce55,_0x308c08=!0x0;if(null!=this['stoppedAt']&&_0x4a2a64['from']>=this['stoppedAt'])_0x308c08=!0x1;else{if(_0x30988e['hasNode'](_0x4a2a64)){if(_0x55a94a){let _0x517e7c=_0x55a94a['mounts']['find'](_0x42af46=>_0x42af46['frag']['from']<=_0x4a2a64['from']&&_0x42af46['frag']['to']>=_0x4a2a64['to']&&_0x42af46['mount']['overlay']);if(_0x517e7c)for(let _0xfdfe0 of _0x517e7c['mount']['overlay']){let _0x17d57f=_0xfdfe0['from']+_0x517e7c['pos'],_0x7d9f29=_0xfdfe0['to']+_0x517e7c['pos'];_0x17d57f>=_0x4a2a64['from']&&_0x7d9f29<=_0x4a2a64['to']&&!_0x55a94a['ranges']['some'](_0x31ff1d=>_0x31ff1d['from']<_0x7d9f29&&_0x31ff1d['to']>_0x17d57f)&&_0x55a94a['ranges']['push']({'from':_0x17d57f,'to':_0x7d9f29});}}_0x308c08=!0x1;}else{if(_0x32acb2&&(_0x45def4=checkCover(_0x32acb2['ranges'],_0x4a2a64['from'],_0x4a2a64['to'])))_0x308c08=0x2!=_0x45def4;else{if(!_0x4a2a64['type']['isAnonymous']&&(_0x196da8=this['nest'](_0x4a2a64,this['input']))&&(_0x4a2a64['from']<_0x4a2a64['to']||!_0x196da8['overlay'])){_0x4a2a64['tree']||(materialize(_0x4a2a64),_0x55a94a&&_0x55a94a['depth']++,_0x32acb2&&_0x32acb2['depth']++);let _0x17ee8c=_0x30988e['findMounts'](_0x4a2a64['from'],_0x196da8['parser']);if('function'==typeof _0x196da8['overlay'])_0x55a94a=new ActiveOverlay(_0x196da8['parser'],_0x196da8['overlay'],_0x17ee8c,this['inner']['length'],_0x4a2a64['from'],_0x4a2a64['tree'],_0x55a94a);else{let _0x300084=punchRanges(this['ranges'],_0x196da8['overlay']||(_0x4a2a64['from']<_0x4a2a64['to']?[new Range(_0x4a2a64['from'],_0x4a2a64['to'])]:[]));_0x300084['length']&&checkRanges(_0x300084),!_0x300084['length']&&_0x196da8['overlay']||this['inner']['push'](new InnerParse(_0x196da8['parser'],_0x300084['length']?_0x196da8['parser']['startParse'](this['input'],enterFragments(_0x17ee8c,_0x300084),_0x300084):_0x196da8['parser']['startParse'](''),_0x196da8['overlay']?_0x196da8['overlay']['map'](_0x518cac=>new Range(_0x518cac['from']-_0x4a2a64['from'],_0x518cac['to']-_0x4a2a64['from'])):null,_0x4a2a64['tree'],_0x300084['length']?_0x300084[0x0]['from']:_0x4a2a64['from'])),_0x196da8['overlay']?_0x300084['length']&&(_0x32acb2={'ranges':_0x300084,'depth':0x0,'prev':_0x32acb2}):_0x308c08=!0x1;}}else{if(_0x55a94a&&(_0x3fce55=_0x55a94a['predicate'](_0x4a2a64))&&(!0x0===_0x3fce55&&(_0x3fce55=new Range(_0x4a2a64['from'],_0x4a2a64['to'])),_0x3fce55['from']<_0x3fce55['to'])){let _0x5d731c=_0x55a94a['ranges']['length']-0x1;_0x5d731c>=0x0&&_0x55a94a['ranges'][_0x5d731c]['to']==_0x3fce55['from']?_0x55a94a['ranges'][_0x5d731c]={'from':_0x55a94a['ranges'][_0x5d731c]['from'],'to':_0x3fce55['to']}:_0x55a94a['ranges']['push'](_0x3fce55);}}}}}if(_0x308c08&&_0x4a2a64['firstChild']())_0x55a94a&&_0x55a94a['depth']++,_0x32acb2&&_0x32acb2['depth']++;else for(;!_0x4a2a64['nextSibling']();){if(!_0x4a2a64['parent']())break t;if(_0x55a94a&&!--_0x55a94a['depth']){let _0x4ddb93=punchRanges(this['ranges'],_0x55a94a['ranges']);_0x4ddb93['length']&&(checkRanges(_0x4ddb93),this['inner']['splice'](_0x55a94a['index'],0x0,new InnerParse(_0x55a94a['parser'],_0x55a94a['parser']['startParse'](this['input'],enterFragments(_0x55a94a['mounts'],_0x4ddb93),_0x4ddb93),_0x55a94a['ranges']['map'](_0x30992a=>new Range(_0x30992a['from']-_0x55a94a['start'],_0x30992a['to']-_0x55a94a['start'])),_0x55a94a['target'],_0x4ddb93[0x0]['from']))),_0x55a94a=_0x55a94a['prev'];}_0x32acb2&&!--_0x32acb2['depth']&&(_0x32acb2=_0x32acb2['prev']);}}}}function checkCover(_0x5033ee,_0x1dff47,_0x4654d2){for(let _0x3017ab of _0x5033ee){if(_0x3017ab['from']>=_0x4654d2)break;if(_0x3017ab['to']>_0x1dff47)return _0x3017ab['from']<=_0x1dff47&&_0x3017ab['to']>=_0x4654d2?0x2:0x1;}return 0x0;}function sliceBuf(_0x321ac6,_0x28907e,_0x311285,_0x298cfd,_0x3a6e67,_0x4ea197){if(_0x28907e<_0x311285){let _0x39507b=_0x321ac6['buffer'][_0x28907e+0x1];_0x298cfd['push'](_0x321ac6['slice'](_0x28907e,_0x311285,_0x39507b)),_0x3a6e67['push'](_0x39507b-_0x4ea197);}}function materialize(_0x27b6b1){let {node:_0x45b2d3}=_0x27b6b1,_0x5dcfa1=[],_0xfa217e=_0x45b2d3['context']['buffer'];do{_0x5dcfa1['push'](_0x27b6b1['index']),_0x27b6b1['parent']();}while(!_0x27b6b1['tree']);let _0x1f971b=_0x27b6b1['tree'],_0x5d8963=_0x1f971b['children']['indexOf'](_0xfa217e),_0x39cf52=_0x1f971b['children'][_0x5d8963],_0x5e98bd=_0x39cf52['buffer'],_0x3b0a5f=[_0x5d8963];_0x1f971b['children'][_0x5d8963]=function _0x5894fe(_0xed03e0,_0x1013a2,_0x5c83bd,_0x48de79,_0x5e5d0e,_0x990b5b){let _0x2b4d24=_0x5dcfa1[_0x990b5b],_0xf4527a=[],_0x5ae39f=[];sliceBuf(_0x39cf52,_0xed03e0,_0x2b4d24,_0xf4527a,_0x5ae39f,_0x48de79);let _0x17a879=_0x5e98bd[_0x2b4d24+0x1],_0x3feda9=_0x5e98bd[_0x2b4d24+0x2];_0x3b0a5f['push'](_0xf4527a['length']);let _0x1f90f8=_0x990b5b?_0x5894fe(_0x2b4d24+0x4,_0x5e98bd[_0x2b4d24+0x3],_0x39cf52['set']['types'][_0x5e98bd[_0x2b4d24]],_0x17a879,_0x3feda9-_0x17a879,_0x990b5b-0x1):_0x45b2d3['toTree']();return _0xf4527a['push'](_0x1f90f8),_0x5ae39f['push'](_0x17a879-_0x48de79),sliceBuf(_0x39cf52,_0x5e98bd[_0x2b4d24+0x3],_0x1013a2,_0xf4527a,_0x5ae39f,_0x48de79),new Tree(_0x5c83bd,_0xf4527a,_0x5ae39f,_0x5e5d0e);}(0x0,_0x5e98bd['length'],NodeType['none'],0x0,_0x39cf52['length'],_0x5dcfa1['length']-0x1);for(let _0x146c31 of _0x3b0a5f){let _0x51bd6c=_0x27b6b1['tree']['children'][_0x146c31],_0x31cad9=_0x27b6b1['tree']['positions'][_0x146c31];_0x27b6b1['yield'](new TreeNode(_0x51bd6c,_0x31cad9+_0x27b6b1['from'],_0x146c31,_0x27b6b1['_tree']));}}class StructureCursor{constructor(_0x216d96,_0x17a986){this['offset']=_0x17a986,this['done']=!0x1,this['cursor']=_0x216d96['cursor'](IterMode['IncludeAnonymous']|IterMode['IgnoreMounts']);}['moveTo'](_0x224589){let {cursor:_0x5b9ce1}=this,_0x5845ad=_0x224589-this['offset'];for(;!this['done']&&_0x5b9ce1['from']<_0x5845ad;)_0x5b9ce1['to']>=_0x224589&&_0x5b9ce1['enter'](_0x5845ad,0x1,IterMode['IgnoreOverlays']|IterMode['ExcludeBuffers'])||_0x5b9ce1['next'](!0x1)||(this['done']=!0x0);}['hasNode'](_0x4e2f75){if(this['moveTo'](_0x4e2f75['from']),!this['done']&&this['cursor']['from']+this['offset']==_0x4e2f75['from']&&this['cursor']['tree'])for(let _0x155ea3=this['cursor']['tree'];;){if(_0x155ea3==_0x4e2f75['tree'])return!0x0;if(!(_0x155ea3['children']['length']&&0x0==_0x155ea3['positions'][0x0]&&_0x155ea3['children'][0x0]instanceof Tree))break;_0x155ea3=_0x155ea3['children'][0x0];}return!0x1;}}let FragmentCursor$2=class{constructor(_0x5e05f7){var _0x2c3cb6;if(this['fragments']=_0x5e05f7,this['curTo']=0x0,this['fragI']=0x0,_0x5e05f7['length']){let _0x13ca30=this['curFrag']=_0x5e05f7[0x0];this['curTo']=null!==(_0x2c3cb6=_0x13ca30['tree']['prop'](stoppedInner))&&void 0x0!==_0x2c3cb6?_0x2c3cb6:_0x13ca30['to'],this['inner']=new StructureCursor(_0x13ca30['tree'],-_0x13ca30['offset']);}else this['curFrag']=this['inner']=null;}['hasNode'](_0x19a507){for(;this['curFrag']&&_0x19a507['from']>=this['curTo'];)this['nextFrag']();return this['curFrag']&&this['curFrag']['from']<=_0x19a507['from']&&this['curTo']>=_0x19a507['to']&&this['inner']['hasNode'](_0x19a507);}['nextFrag'](){var _0xcf19d3;if(this['fragI']++,this['fragI']==this['fragments']['length'])this['curFrag']=this['inner']=null;else{let _0x760dad=this['curFrag']=this['fragments'][this['fragI']];this['curTo']=null!==(_0xcf19d3=_0x760dad['tree']['prop'](stoppedInner))&&void 0x0!==_0xcf19d3?_0xcf19d3:_0x760dad['to'],this['inner']=new StructureCursor(_0x760dad['tree'],-_0x760dad['offset']);}}['findMounts'](_0x461dc1,_0x28c980){var _0xd8b6cb;let _0x223110=[];if(this['inner']){this['inner']['cursor']['moveTo'](_0x461dc1,0x1);for(let _0x339e09=this['inner']['cursor']['node'];_0x339e09;_0x339e09=_0x339e09['parent']){let _0x3bd970=null===(_0xd8b6cb=_0x339e09['tree'])||void 0x0===_0xd8b6cb?void 0x0:_0xd8b6cb['prop'](NodeProp['mounted']);if(_0x3bd970&&_0x3bd970['parser']==_0x28c980)for(let _0x2bcf4f=this['fragI'];_0x2bcf4f<this['fragments']['length'];_0x2bcf4f++){let _0x30888a=this['fragments'][_0x2bcf4f];if(_0x30888a['from']>=_0x339e09['to'])break;_0x30888a['tree']==this['curFrag']['tree']&&_0x223110['push']({'frag':_0x30888a,'pos':_0x339e09['from']-_0x30888a['offset'],'mount':_0x3bd970});}}}return _0x223110;}};function punchRanges(_0x7f90bc,_0x4df864){let _0x107b52=null,_0x4ac5ab=_0x4df864;for(let _0x6bf1f9=0x1,_0x574e99=0x0;_0x6bf1f9<_0x7f90bc['length'];_0x6bf1f9++){let _0x3b453c=_0x7f90bc[_0x6bf1f9-0x1]['to'],_0x4bc5d9=_0x7f90bc[_0x6bf1f9]['from'];for(;_0x574e99<_0x4ac5ab['length'];_0x574e99++){let _0x4f0c4f=_0x4ac5ab[_0x574e99];if(_0x4f0c4f['from']>=_0x4bc5d9)break;_0x4f0c4f['to']<=_0x3b453c||(_0x107b52||(_0x4ac5ab=_0x107b52=_0x4df864['slice']()),_0x4f0c4f['from']<_0x3b453c?(_0x107b52[_0x574e99]=new Range(_0x4f0c4f['from'],_0x3b453c),_0x4f0c4f['to']>_0x4bc5d9&&_0x107b52['splice'](_0x574e99+0x1,0x0,new Range(_0x4bc5d9,_0x4f0c4f['to']))):_0x4f0c4f['to']>_0x4bc5d9?_0x107b52[_0x574e99--]=new Range(_0x4bc5d9,_0x4f0c4f['to']):_0x107b52['splice'](_0x574e99--,0x1));}}return _0x4ac5ab;}function findCoverChanges(_0x18f7f5,_0xd3635,_0x26d26c,_0x3ffd42){let _0x3dbba5=0x0,_0x4fb6e1=0x0,_0x23e264=!0x1,_0x4a83da=!0x1,_0x32e0a4=-0x3b9aca00,_0x12efd0=[];for(;;){let _0x2a1e3a=_0x3dbba5==_0x18f7f5['length']?0x3b9aca00:_0x23e264?_0x18f7f5[_0x3dbba5]['to']:_0x18f7f5[_0x3dbba5]['from'],_0x317944=_0x4fb6e1==_0xd3635['length']?0x3b9aca00:_0x4a83da?_0xd3635[_0x4fb6e1]['to']:_0xd3635[_0x4fb6e1]['from'];if(_0x23e264!=_0x4a83da){let _0x419bec=Math['max'](_0x32e0a4,_0x26d26c),_0xe040dd=Math['min'](_0x2a1e3a,_0x317944,_0x3ffd42);_0x419bec<_0xe040dd&&_0x12efd0['push'](new Range(_0x419bec,_0xe040dd));}if(_0x32e0a4=Math['min'](_0x2a1e3a,_0x317944),0x3b9aca00==_0x32e0a4)break;_0x2a1e3a==_0x32e0a4&&(_0x23e264?(_0x23e264=!0x1,_0x3dbba5++):_0x23e264=!0x0),_0x317944==_0x32e0a4&&(_0x4a83da?(_0x4a83da=!0x1,_0x4fb6e1++):_0x4a83da=!0x0);}return _0x12efd0;}function enterFragments(_0x2e2a74,_0x447f41){let _0x361222=[];for(let {pos:_0x4f42a6,mount:_0x426385,frag:_0x4b98c6}of _0x2e2a74){let _0x1a027d=_0x4f42a6+(_0x426385['overlay']?_0x426385['overlay'][0x0]['from']:0x0),_0x1cdfd1=_0x1a027d+_0x426385['tree']['length'],_0x3c2dd5=Math['max'](_0x4b98c6['from'],_0x1a027d),_0x232511=Math['min'](_0x4b98c6['to'],_0x1cdfd1);if(_0x426385['overlay']){let _0x5bc56c=findCoverChanges(_0x447f41,_0x426385['overlay']['map'](_0x4714fa=>new Range(_0x4714fa['from']+_0x4f42a6,_0x4714fa['to']+_0x4f42a6)),_0x3c2dd5,_0x232511);for(let _0x13fa37=0x0,_0x2c64bc=_0x3c2dd5;;_0x13fa37++){let _0x5051b3=_0x13fa37==_0x5bc56c['length'],_0x3918a7=_0x5051b3?_0x232511:_0x5bc56c[_0x13fa37]['from'];if(_0x3918a7>_0x2c64bc&&_0x361222['push'](new TreeFragment(_0x2c64bc,_0x3918a7,_0x426385['tree'],-_0x1a027d,_0x4b98c6['from']>=_0x2c64bc||_0x4b98c6['openStart'],_0x4b98c6['to']<=_0x3918a7||_0x4b98c6['openEnd'])),_0x5051b3)break;_0x2c64bc=_0x5bc56c[_0x13fa37]['to'];}}else _0x361222['push'](new TreeFragment(_0x3c2dd5,_0x232511,_0x426385['tree'],-_0x1a027d,_0x4b98c6['from']>=_0x1a027d||_0x4b98c6['openStart'],_0x4b98c6['to']<=_0x1cdfd1||_0x4b98c6['openEnd']));}return _0x361222;}let nextTagID=0x0;class Tag{constructor(_0x12814e,_0x24b743,_0x523312,_0x19f054){this['name']=_0x12814e,this['set']=_0x24b743,this['base']=_0x523312,this['modified']=_0x19f054,this['id']=nextTagID++;}['toString'](){let {name:_0x2a7b4c}=this;for(let _0x5c4f84 of this['modified'])_0x5c4f84['name']&&(_0x2a7b4c=_0x5c4f84['name']+'('+_0x2a7b4c+')');return _0x2a7b4c;}static['define'](_0x567d26,_0x57f515){let _0xb3da40='string'==typeof _0x567d26?_0x567d26:'?';if(_0x567d26 instanceof Tag&&(_0x57f515=_0x567d26),null==_0x57f515?void 0x0:_0x57f515['base'])throw new Error('Can\x20not\x20derive\x20from\x20a\x20modified\x20tag');let _0x70c9bf=new Tag(_0xb3da40,[],null,[]);if(_0x70c9bf['set']['push'](_0x70c9bf),_0x57f515){for(let t of _0x57f515['set'])_0x70c9bf['set']['push'](t);}return _0x70c9bf;}static['defineModifier'](_0x5a721a){let _0xa34df=new Modifier(_0x5a721a);return _0x570f58=>_0x570f58['modified']['indexOf'](_0xa34df)>-0x1?_0x570f58:Modifier['get'](_0x570f58['base']||_0x570f58,_0x570f58['modified']['concat'](_0xa34df)['sort']((_0x15ebea,_0xf85d4e)=>_0x15ebea['id']-_0xf85d4e['id']));}}let nextModifierID=0x0;class Modifier{constructor(_0x19c69c){this['name']=_0x19c69c,this['instances']=[],this['id']=nextModifierID++;}static['get'](_0x566aca,_0x2f6b58){if(!_0x2f6b58['length'])return _0x566aca;let _0x4866d5=_0x2f6b58[0x0]['instances']['find'](t=>t['base']==_0x566aca&&sameArray(_0x2f6b58,t['modified']));if(_0x4866d5)return _0x4866d5;let _0x91b905=[],_0x28fc50=new Tag(_0x566aca['name'],_0x91b905,_0x566aca,_0x2f6b58);for(let _0x3f4aaf of _0x2f6b58)_0x3f4aaf['instances']['push'](_0x28fc50);let _0x526634=powerSet(_0x2f6b58);for(let _0x283b73 of _0x566aca['set'])if(!_0x283b73['modified']['length']){for(let _0x357a1a of _0x526634)_0x91b905['push'](Modifier['get'](_0x283b73,_0x357a1a));}return _0x28fc50;}}function sameArray(_0x532c63,_0x3e279c){return _0x532c63['length']==_0x3e279c['length']&&_0x532c63['every']((_0x31894d,_0x342dd0)=>_0x31894d==_0x3e279c[_0x342dd0]);}function powerSet(_0x52aa0c){let _0xf7ed4=[[]];for(let _0x5f5f13=0x0;_0x5f5f13<_0x52aa0c['length'];_0x5f5f13++)for(let _0x46be4c=0x0,_0x1e072f=_0xf7ed4['length'];_0x46be4c<_0x1e072f;_0x46be4c++)_0xf7ed4['push'](_0xf7ed4[_0x46be4c]['concat'](_0x52aa0c[_0x5f5f13]));return _0xf7ed4['sort']((_0x200f5f,_0x15dd01)=>_0x15dd01['length']-_0x200f5f['length']);}function styleTags(_0x34cb7d){let _0x20c4d1=Object['create'](null);for(let _0x3571a7 in _0x34cb7d){let _0x2aa8b0=_0x34cb7d[_0x3571a7];Array['isArray'](_0x2aa8b0)||(_0x2aa8b0=[_0x2aa8b0]);for(let _0x3a38ec of _0x3571a7['split']('\x20'))if(_0x3a38ec){let _0x3f5b55=[],_0x37698c=0x2,_0x13d495=_0x3a38ec;for(let _0x4b8220=0x0;;){if('...'==_0x13d495&&_0x4b8220>0x0&&_0x4b8220+0x3==_0x3a38ec['length']){_0x37698c=0x1;break;}let _0x5a7fb4=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/['exec'](_0x13d495);if(!_0x5a7fb4)throw new RangeError('Invalid\x20path:\x20'+_0x3a38ec);if(_0x3f5b55['push']('*'==_0x5a7fb4[0x0]?'':'\x22'==_0x5a7fb4[0x0][0x0]?JSON['parse'](_0x5a7fb4[0x0]):_0x5a7fb4[0x0]),_0x4b8220+=_0x5a7fb4[0x0]['length'],_0x4b8220==_0x3a38ec['length'])break;let _0x2dbe48=_0x3a38ec[_0x4b8220++];if(_0x4b8220==_0x3a38ec['length']&&'!'==_0x2dbe48){_0x37698c=0x0;break;}if('/'!=_0x2dbe48)throw new RangeError('Invalid\x20path:\x20'+_0x3a38ec);_0x13d495=_0x3a38ec['slice'](_0x4b8220);}let _0x40d12f=_0x3f5b55['length']-0x1,_0xdae063=_0x3f5b55[_0x40d12f];if(!_0xdae063)throw new RangeError('Invalid\x20path:\x20'+_0x3a38ec);let _0x3960d8=new Rule(_0x2aa8b0,_0x37698c,_0x40d12f>0x0?_0x3f5b55['slice'](0x0,_0x40d12f):null);_0x20c4d1[_0xdae063]=_0x3960d8['sort'](_0x20c4d1[_0xdae063]);}}return ruleNodeProp['add'](_0x20c4d1);}const ruleNodeProp=new NodeProp({'combine'(_0x1ca87d,_0x21b210){let _0x2c2544,_0xa68aea,_0x4078c7;for(;_0x1ca87d||_0x21b210;){if(!_0x1ca87d||_0x21b210&&_0x1ca87d['depth']>=_0x21b210['depth']?(_0x4078c7=_0x21b210,_0x21b210=_0x21b210['next']):(_0x4078c7=_0x1ca87d,_0x1ca87d=_0x1ca87d['next']),_0x2c2544&&_0x2c2544['mode']==_0x4078c7['mode']&&!_0x4078c7['context']&&!_0x2c2544['context'])continue;let _0x6857f7=new Rule(_0x4078c7['tags'],_0x4078c7['mode'],_0x4078c7['context']);_0x2c2544?_0x2c2544['next']=_0x6857f7:_0xa68aea=_0x6857f7,_0x2c2544=_0x6857f7;}return _0xa68aea;}});class Rule{constructor(_0x3bcd6d,_0x4e0ff3,_0x104d9d,_0x17c5ec){this['tags']=_0x3bcd6d,this['mode']=_0x4e0ff3,this['context']=_0x104d9d,this['next']=_0x17c5ec;}get['opaque'](){return 0x0==this['mode'];}get['inherit'](){return 0x1==this['mode'];}['sort'](_0x230248){return!_0x230248||_0x230248['depth']<this['depth']?(this['next']=_0x230248,this):(_0x230248['next']=this['sort'](_0x230248['next']),_0x230248);}get['depth'](){return this['context']?this['context']['length']:0x0;}}function tagHighlighter(_0x44cb96,_0x440594){let _0x15814e=Object['create'](null);for(let _0x939501 of _0x44cb96)if(Array['isArray'](_0x939501['tag'])){for(let _0x241925 of _0x939501['tag'])_0x15814e[_0x241925['id']]=_0x939501['class'];}else _0x15814e[_0x939501['tag']['id']]=_0x939501['class'];let {scope:_0x4e7ddf,all:_0x621312=null}=_0x440594||{};return{'style':_0x11442e=>{let _0x5099d9=_0x621312;for(let _0x5a61fb of _0x11442e)for(let _0x4d7784 of _0x5a61fb['set']){let _0x219d2b=_0x15814e[_0x4d7784['id']];if(_0x219d2b){_0x5099d9=_0x5099d9?_0x5099d9+'\x20'+_0x219d2b:_0x219d2b;break;}}return _0x5099d9;},'scope':_0x4e7ddf};}function highlightTags(_0x3110b0,_0x441e53){let _0x1c0a83=null;for(let _0x5d8d11 of _0x3110b0){let _0x5daca5=_0x5d8d11['style'](_0x441e53);_0x5daca5&&(_0x1c0a83=_0x1c0a83?_0x1c0a83+'\x20'+_0x5daca5:_0x5daca5);}return _0x1c0a83;}function highlightTree(_0x562f63,_0x110922,_0x4759df,_0x519cdd=0x0,_0x51890=_0x562f63['length']){let _0x1289bc=new HighlightBuilder(_0x519cdd,Array['isArray'](_0x110922)?_0x110922:[_0x110922],_0x4759df);_0x1289bc['highlightRange'](_0x562f63['cursor'](),_0x519cdd,_0x51890,'',_0x1289bc['highlighters']),_0x1289bc['flush'](_0x51890);}Rule['empty']=new Rule([],0x2,null);class HighlightBuilder{constructor(_0x151020,_0xa89c4f,_0x5958e7){this['at']=_0x151020,this['highlighters']=_0xa89c4f,this['span']=_0x5958e7,this['class']='';}['startSpan'](_0x47b839,_0x3071c9){_0x3071c9!=this['class']&&(this['flush'](_0x47b839),_0x47b839>this['at']&&(this['at']=_0x47b839),this['class']=_0x3071c9);}['flush'](_0x30b22b){_0x30b22b>this['at']&&this['class']&&this['span'](this['at'],_0x30b22b,this['class']);}['highlightRange'](_0x494cbe,_0x54326c,_0x3cece6,_0x500fc6,_0x262a84){let {type:_0x10e9fc,from:_0x544fbf,to:_0x459176}=_0x494cbe;if(_0x544fbf>=_0x3cece6||_0x459176<=_0x54326c)return;_0x10e9fc['isTop']&&(_0x262a84=this['highlighters']['filter'](_0x2f4385=>!_0x2f4385['scope']||_0x2f4385['scope'](_0x10e9fc)));let _0x287785=_0x500fc6,_0x38c60b=getStyleTags(_0x494cbe)||Rule['empty'],_0x28cafc=highlightTags(_0x262a84,_0x38c60b['tags']);if(_0x28cafc&&(_0x287785&&(_0x287785+='\x20'),_0x287785+=_0x28cafc,0x1==_0x38c60b['mode']&&(_0x500fc6+=(_0x500fc6?'\x20':'')+_0x28cafc)),this['startSpan'](Math['max'](_0x54326c,_0x544fbf),_0x287785),_0x38c60b['opaque'])return;let _0x2cd565=_0x494cbe['tree']&&_0x494cbe['tree']['prop'](NodeProp['mounted']);if(_0x2cd565&&_0x2cd565['overlay']){let _0x38b22f=_0x494cbe['node']['enter'](_0x2cd565['overlay'][0x0]['from']+_0x544fbf,0x1),_0x5e0f17=this['highlighters']['filter'](_0x53939f=>!_0x53939f['scope']||_0x53939f['scope'](_0x2cd565['tree']['type'])),_0x4ea97c=_0x494cbe['firstChild']();for(let _0x4ea034=0x0,_0x2482ee=_0x544fbf;;_0x4ea034++){let _0x4c4a72=_0x4ea034<_0x2cd565['overlay']['length']?_0x2cd565['overlay'][_0x4ea034]:null,_0x33ff9c=_0x4c4a72?_0x4c4a72['from']+_0x544fbf:_0x459176,_0x3f1c3d=Math['max'](_0x54326c,_0x2482ee),_0x560a47=Math['min'](_0x3cece6,_0x33ff9c);if(_0x3f1c3d<_0x560a47&&_0x4ea97c){for(;_0x494cbe['from']<_0x560a47&&(this['highlightRange'](_0x494cbe,_0x3f1c3d,_0x560a47,_0x500fc6,_0x262a84),this['startSpan'](Math['min'](_0x560a47,_0x494cbe['to']),_0x287785),!(_0x494cbe['to']>=_0x33ff9c)&&_0x494cbe['nextSibling']()););}if(!_0x4c4a72||_0x33ff9c>_0x3cece6)break;_0x2482ee=_0x4c4a72['to']+_0x544fbf,_0x2482ee>_0x54326c&&(this['highlightRange'](_0x38b22f['cursor'](),Math['max'](_0x54326c,_0x4c4a72['from']+_0x544fbf),Math['min'](_0x3cece6,_0x2482ee),'',_0x5e0f17),this['startSpan'](Math['min'](_0x3cece6,_0x2482ee),_0x287785));}_0x4ea97c&&_0x494cbe['parent']();}else{if(_0x494cbe['firstChild']()){_0x2cd565&&(_0x500fc6='');do{if(!(_0x494cbe['to']<=_0x54326c)){if(_0x494cbe['from']>=_0x3cece6)break;this['highlightRange'](_0x494cbe,_0x54326c,_0x3cece6,_0x500fc6,_0x262a84),this['startSpan'](Math['min'](_0x3cece6,_0x494cbe['to']),_0x287785);}}while(_0x494cbe['nextSibling']());_0x494cbe['parent']();}}}}function getStyleTags(_0x437b1e){let _0x5a5a32=_0x437b1e['type']['prop'](ruleNodeProp);for(;_0x5a5a32&&_0x5a5a32['context']&&!_0x437b1e['matchContext'](_0x5a5a32['context']);)_0x5a5a32=_0x5a5a32['next'];return _0x5a5a32||null;}const t=Tag['define'],comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags$1={'comment':comment,'lineComment':t(comment),'blockComment':t(comment),'docComment':t(comment),'name':name,'variableName':t(name),'typeName':typeName,'tagName':t(typeName),'propertyName':propertyName,'attributeName':t(propertyName),'className':t(name),'labelName':t(name),'namespace':t(name),'macroName':t(name),'literal':literal,'string':string,'docString':t(string),'character':t(string),'attributeValue':t(string),'number':number,'integer':t(number),'float':t(number),'bool':t(literal),'regexp':t(literal),'escape':t(literal),'color':t(literal),'url':t(literal),'keyword':keyword,'self':t(keyword),'null':t(keyword),'atom':t(keyword),'unit':t(keyword),'modifier':t(keyword),'operatorKeyword':t(keyword),'controlKeyword':t(keyword),'definitionKeyword':t(keyword),'moduleKeyword':t(keyword),'operator':operator,'derefOperator':t(operator),'arithmeticOperator':t(operator),'logicOperator':t(operator),'bitwiseOperator':t(operator),'compareOperator':t(operator),'updateOperator':t(operator),'definitionOperator':t(operator),'typeOperator':t(operator),'controlOperator':t(operator),'punctuation':punctuation,'separator':t(punctuation),'bracket':bracket,'angleBracket':t(bracket),'squareBracket':t(bracket),'paren':t(bracket),'brace':t(bracket),'content':content,'heading':heading,'heading1':t(heading),'heading2':t(heading),'heading3':t(heading),'heading4':t(heading),'heading5':t(heading),'heading6':t(heading),'contentSeparator':t(content),'list':t(content),'quote':t(content),'emphasis':t(content),'strong':t(content),'link':t(content),'monospace':t(content),'strikethrough':t(content),'inserted':t(),'deleted':t(),'changed':t(),'invalid':t(),'meta':meta,'documentMeta':t(meta),'annotation':t(meta),'processingInstruction':t(meta),'definition':Tag['defineModifier']('definition'),'constant':Tag['defineModifier']('constant'),'function':Tag['defineModifier']('function'),'standard':Tag['defineModifier']('standard'),'local':Tag['defineModifier']('local'),'special':Tag['defineModifier']('special')};for(let e in tags$1){let i=tags$1[e];i instanceof Tag&&(i['name']=e);}var _a;tagHighlighter([{'tag':tags$1['link'],'class':'tok-link'},{'tag':tags$1['heading'],'class':'tok-heading'},{'tag':tags$1['emphasis'],'class':'tok-emphasis'},{'tag':tags$1['strong'],'class':'tok-strong'},{'tag':tags$1['keyword'],'class':'tok-keyword'},{'tag':tags$1['atom'],'class':'tok-atom'},{'tag':tags$1['bool'],'class':'tok-bool'},{'tag':tags$1['url'],'class':'tok-url'},{'tag':tags$1['labelName'],'class':'tok-labelName'},{'tag':tags$1['inserted'],'class':'tok-inserted'},{'tag':tags$1['deleted'],'class':'tok-deleted'},{'tag':tags$1['literal'],'class':'tok-literal'},{'tag':tags$1['string'],'class':'tok-string'},{'tag':tags$1['number'],'class':'tok-number'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'class':'tok-string2'},{'tag':tags$1['variableName'],'class':'tok-variableName'},{'tag':tags$1['local'](tags$1['variableName']),'class':'tok-variableName\x20tok-local'},{'tag':tags$1['definition'](tags$1['variableName']),'class':'tok-variableName\x20tok-definition'},{'tag':tags$1['special'](tags$1['variableName']),'class':'tok-variableName2'},{'tag':tags$1['definition'](tags$1['propertyName']),'class':'tok-propertyName\x20tok-definition'},{'tag':tags$1['typeName'],'class':'tok-typeName'},{'tag':tags$1['namespace'],'class':'tok-namespace'},{'tag':tags$1['className'],'class':'tok-className'},{'tag':tags$1['macroName'],'class':'tok-macroName'},{'tag':tags$1['propertyName'],'class':'tok-propertyName'},{'tag':tags$1['operator'],'class':'tok-operator'},{'tag':tags$1['comment'],'class':'tok-comment'},{'tag':tags$1['meta'],'class':'tok-meta'},{'tag':tags$1['invalid'],'class':'tok-invalid'},{'tag':tags$1['punctuation'],'class':'tok-punctuation'}]);const languageDataProp=new NodeProp();function defineLanguageFacet(_0x89ee6e){return Facet['define']({'combine':_0x89ee6e?_0x54a954=>_0x54a954['concat'](_0x89ee6e):void 0x0});}const sublanguageProp=new NodeProp();class Language{constructor(_0x3f4aa5,_0x4a3995,_0x232c0d=[],_0x271240=''){this['data']=_0x3f4aa5,this['name']=_0x271240,EditorState['prototype']['hasOwnProperty']('tree')||Object['defineProperty'](EditorState['prototype'],'tree',{'get'(){return syntaxTree(this);}}),this['parser']=_0x4a3995,this['extension']=[language['of'](this),EditorState['languageData']['of']((_0x438543,_0x18f8b8,_0x7ccb82)=>{let _0x3d75e7=topNodeAt(_0x438543,_0x18f8b8,_0x7ccb82),_0x128a68=_0x3d75e7['type']['prop'](languageDataProp);if(!_0x128a68)return[];let _0x3f9a94=_0x438543['facet'](_0x128a68),_0x3f8c15=_0x3d75e7['type']['prop'](sublanguageProp);if(_0x3f8c15){let _0x3df148=_0x3d75e7['resolve'](_0x18f8b8-_0x3d75e7['from'],_0x7ccb82);for(let _0x166e04 of _0x3f8c15)if(_0x166e04['test'](_0x3df148,_0x438543)){let _0x302b69=_0x438543['facet'](_0x166e04['facet']);return'replace'==_0x166e04['type']?_0x302b69:_0x302b69['concat'](_0x3f9a94);}}return _0x3f9a94;})]['concat'](_0x232c0d);}['isActiveAt'](_0x56bf79,_0x545cfb,_0x22f24a=-0x1){return topNodeAt(_0x56bf79,_0x545cfb,_0x22f24a)['type']['prop'](languageDataProp)==this['data'];}['findRegions'](_0x439134){let _0x535df8=_0x439134['facet'](language);if((null==_0x535df8?void 0x0:_0x535df8['data'])==this['data'])return[{'from':0x0,'to':_0x439134['doc']['length']}];if(!_0x535df8||!_0x535df8['allowsNesting'])return[];let _0x2473b=[],_0x25e1a1=(_0x7b72e4,_0x540716)=>{if(_0x7b72e4['prop'](languageDataProp)==this['data'])return void _0x2473b['push']({'from':_0x540716,'to':_0x540716+_0x7b72e4['length']});let _0x12ccd1=_0x7b72e4['prop'](NodeProp['mounted']);if(_0x12ccd1){if(_0x12ccd1['tree']['prop'](languageDataProp)==this['data']){if(_0x12ccd1['overlay']){for(let _0x175cb6 of _0x12ccd1['overlay'])_0x2473b['push']({'from':_0x175cb6['from']+_0x540716,'to':_0x175cb6['to']+_0x540716});}else _0x2473b['push']({'from':_0x540716,'to':_0x540716+_0x7b72e4['length']});return;}if(_0x12ccd1['overlay']){let _0x40f356=_0x2473b['length'];if(_0x25e1a1(_0x12ccd1['tree'],_0x12ccd1['overlay'][0x0]['from']+_0x540716),_0x2473b['length']>_0x40f356)return;}}for(let _0x142650=0x0;_0x142650<_0x7b72e4['children']['length'];_0x142650++){let _0x7f6bb5=_0x7b72e4['children'][_0x142650];_0x7f6bb5 instanceof Tree&&_0x25e1a1(_0x7f6bb5,_0x7b72e4['positions'][_0x142650]+_0x540716);}};return _0x25e1a1(syntaxTree(_0x439134),0x0),_0x2473b;}get['allowsNesting'](){return!0x0;}}function topNodeAt(_0x4290cc,_0x392e8c,_0xe3f7e6){let _0x3bf615=_0x4290cc['facet'](language),_0x158ec5=syntaxTree(_0x4290cc)['topNode'];if(!_0x3bf615||_0x3bf615['allowsNesting']){for(let _0x347d80=_0x158ec5;_0x347d80;_0x347d80=_0x347d80['enter'](_0x392e8c,_0xe3f7e6,IterMode['ExcludeBuffers']))_0x347d80['type']['isTop']&&(_0x158ec5=_0x347d80);}return _0x158ec5;}Language['setState']=StateEffect['define']();class LRLanguage extends Language{constructor(_0x2a16b3,_0x570b0e,_0x38e468){super(_0x2a16b3,_0x570b0e,[],_0x38e468),this['parser']=_0x570b0e;}static['define'](_0x11bf43){let _0x4f3abf=defineLanguageFacet(_0x11bf43['languageData']);return new LRLanguage(_0x4f3abf,_0x11bf43['parser']['configure']({'props':[languageDataProp['add'](_0x2cb9a6=>_0x2cb9a6['isTop']?_0x4f3abf:void 0x0)]}),_0x11bf43['name']);}['configure'](_0x4c4961,_0x50ad96){return new LRLanguage(this['data'],this['parser']['configure'](_0x4c4961),_0x50ad96||this['name']);}get['allowsNesting'](){return this['parser']['hasWrappers']();}}function syntaxTree(_0x4a5085){let _0x447279=_0x4a5085['field'](Language['state'],!0x1);return _0x447279?_0x447279['tree']:Tree['empty'];}class DocInput{constructor(_0x3f0a95){this['doc']=_0x3f0a95,this['cursorPos']=0x0,this['string']='',this['cursor']=_0x3f0a95['iter']();}get['length'](){return this['doc']['length'];}['syncTo'](_0x27ebf){return this['string']=this['cursor']['next'](_0x27ebf-this['cursorPos'])['value'],this['cursorPos']=_0x27ebf+this['string']['length'],this['cursorPos']-this['string']['length'];}['chunk'](_0x20f7dd){return this['syncTo'](_0x20f7dd),this['string'];}get['lineChunks'](){return!0x0;}['read'](_0x55cf4b,_0x9f1153){let _0x2451b2=this['cursorPos']-this['string']['length'];return _0x55cf4b<_0x2451b2||_0x9f1153>=this['cursorPos']?this['doc']['sliceString'](_0x55cf4b,_0x9f1153):this['string']['slice'](_0x55cf4b-_0x2451b2,_0x9f1153-_0x2451b2);}}let currentContext=null;class ParseContext{constructor(_0x432e17,_0x245a8a,_0x28cf31=[],_0x467643,_0x59f652,_0x3a4fec,_0x57960b,_0x175f59){this['parser']=_0x432e17,this['state']=_0x245a8a,this['fragments']=_0x28cf31,this['tree']=_0x467643,this['treeLen']=_0x59f652,this['viewport']=_0x3a4fec,this['skipped']=_0x57960b,this['scheduleOn']=_0x175f59,this['parse']=null,this['tempSkipped']=[];}static['create'](_0x3e7253,_0x4cad7f,_0x24da17){return new ParseContext(_0x3e7253,_0x4cad7f,[],Tree['empty'],0x0,_0x24da17,[],null);}['startParse'](){return this['parser']['startParse'](new DocInput(this['state']['doc']),this['fragments']);}['work'](_0x23bbc7,_0x250748){return null!=_0x250748&&_0x250748>=this['state']['doc']['length']&&(_0x250748=void 0x0),this['tree']!=Tree['empty']&&this['isDone'](null!=_0x250748?_0x250748:this['state']['doc']['length'])?(this['takeTree'](),!0x0):this['withContext'](()=>{var _0x42432b;if('number'==typeof _0x23bbc7){let _0x1192d0=Date['now']()+_0x23bbc7;_0x23bbc7=()=>Date['now']()>_0x1192d0;}for(this['parse']||(this['parse']=this['startParse']()),null!=_0x250748&&(null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x250748)&&_0x250748<this['state']['doc']['length']&&this['parse']['stopAt'](_0x250748);;){let _0x3f080f=this['parse']['advance']();if(_0x3f080f){if(this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](_0x3f080f,this['fragments'],null!=this['parse']['stoppedAt'])),this['treeLen']=null!==(_0x42432b=this['parse']['stoppedAt'])&&void 0x0!==_0x42432b?_0x42432b:this['state']['doc']['length'],this['tree']=_0x3f080f,this['parse']=null,!(this['treeLen']<(null!=_0x250748?_0x250748:this['state']['doc']['length'])))return!0x0;this['parse']=this['startParse']();}if(_0x23bbc7())return!0x1;}});}['takeTree'](){let _0x1e15c5,_0x34b2c6;this['parse']&&(_0x1e15c5=this['parse']['parsedPos'])>=this['treeLen']&&((null==this['parse']['stoppedAt']||this['parse']['stoppedAt']>_0x1e15c5)&&this['parse']['stopAt'](_0x1e15c5),this['withContext'](()=>{for(;!(_0x34b2c6=this['parse']['advance']()););}),this['treeLen']=_0x1e15c5,this['tree']=_0x34b2c6,this['fragments']=this['withoutTempSkipped'](TreeFragment['addTree'](this['tree'],this['fragments'],!0x0)),this['parse']=null);}['withContext'](_0x271f11){let _0x128cae=currentContext;currentContext=this;try{return _0x271f11();}finally{currentContext=_0x128cae;}}['withoutTempSkipped'](_0x133a10){for(let _0x17519a;_0x17519a=this['tempSkipped']['pop']();)_0x133a10=cutFragments(_0x133a10,_0x17519a['from'],_0x17519a['to']);return _0x133a10;}['changes'](_0x263e41,_0x44939b){let {fragments:_0x416d3e,tree:_0x3add06,treeLen:_0x1a7fab,viewport:_0x35565c,skipped:_0x3373b2}=this;if(this['takeTree'](),!_0x263e41['empty']){let _0x424b35=[];if(_0x263e41['iterChangedRanges']((_0x6ab470,_0xb43330,_0x5c1fad,_0x9e70b)=>_0x424b35['push']({'fromA':_0x6ab470,'toA':_0xb43330,'fromB':_0x5c1fad,'toB':_0x9e70b})),_0x416d3e=TreeFragment['applyChanges'](_0x416d3e,_0x424b35),_0x3add06=Tree['empty'],_0x1a7fab=0x0,_0x35565c={'from':_0x263e41['mapPos'](_0x35565c['from'],-0x1),'to':_0x263e41['mapPos'](_0x35565c['to'],0x1)},this['skipped']['length']){_0x3373b2=[];for(let _0x139d05 of this['skipped']){let _0x2e73f8=_0x263e41['mapPos'](_0x139d05['from'],0x1),_0x5ca508=_0x263e41['mapPos'](_0x139d05['to'],-0x1);_0x2e73f8<_0x5ca508&&_0x3373b2['push']({'from':_0x2e73f8,'to':_0x5ca508});}}}return new ParseContext(this['parser'],_0x44939b,_0x416d3e,_0x3add06,_0x1a7fab,_0x35565c,_0x3373b2,this['scheduleOn']);}['updateViewport'](_0x16c9ef){if(this['viewport']['from']==_0x16c9ef['from']&&this['viewport']['to']==_0x16c9ef['to'])return!0x1;this['viewport']=_0x16c9ef;let _0xc61951=this['skipped']['length'];for(let _0x1d2d6e=0x0;_0x1d2d6e<this['skipped']['length'];_0x1d2d6e++){let {from:_0xa8a3a3,to:_0x6a5cb7}=this['skipped'][_0x1d2d6e];_0xa8a3a3<_0x16c9ef['to']&&_0x6a5cb7>_0x16c9ef['from']&&(this['fragments']=cutFragments(this['fragments'],_0xa8a3a3,_0x6a5cb7),this['skipped']['splice'](_0x1d2d6e--,0x1));}return!(this['skipped']['length']>=_0xc61951)&&(this['reset'](),!0x0);}['reset'](){this['parse']&&(this['takeTree'](),this['parse']=null);}['skipUntilInView'](_0x3dcae8,_0x42d1c4){this['skipped']['push']({'from':_0x3dcae8,'to':_0x42d1c4});}static['getSkippingParser'](_0x289cff){return new class extends Parser{['createParse'](_0x3b2261,_0x5672c8,_0x15063f){let _0x2adfe6=_0x15063f[0x0]['from'],_0x12a5f4=_0x15063f[_0x15063f['length']-0x1]['to'];return{'parsedPos':_0x2adfe6,'advance'(){let _0x43363e=currentContext;if(_0x43363e){for(let _0x2f4f70 of _0x15063f)_0x43363e['tempSkipped']['push'](_0x2f4f70);_0x289cff&&(_0x43363e['scheduleOn']=_0x43363e['scheduleOn']?Promise['all']([_0x43363e['scheduleOn'],_0x289cff]):_0x289cff);}return this['parsedPos']=_0x12a5f4,new Tree(NodeType['none'],[],[],_0x12a5f4-_0x2adfe6);},'stoppedAt':null,'stopAt'(){}};}}();}['isDone'](_0x581841){_0x581841=Math['min'](_0x581841,this['state']['doc']['length']);let _0x1ef40e=this['fragments'];return this['treeLen']>=_0x581841&&_0x1ef40e['length']&&0x0==_0x1ef40e[0x0]['from']&&_0x1ef40e[0x0]['to']>=_0x581841;}static['get'](){return currentContext;}}function cutFragments(_0x45d5f0,_0x39735a,_0x55968e){return TreeFragment['applyChanges'](_0x45d5f0,[{'fromA':_0x39735a,'toA':_0x55968e,'fromB':_0x39735a,'toB':_0x55968e}]);}class LanguageState{constructor(_0x1be69c){this['context']=_0x1be69c,this['tree']=_0x1be69c['tree'];}['apply'](_0x33c519){if(!_0x33c519['docChanged']&&this['tree']==this['context']['tree'])return this;let _0x3a2cc2=this['context']['changes'](_0x33c519['changes'],_0x33c519['state']),_0x1449be=this['context']['treeLen']==_0x33c519['startState']['doc']['length']?void 0x0:Math['max'](_0x33c519['changes']['mapPos'](this['context']['treeLen']),_0x3a2cc2['viewport']['to']);return _0x3a2cc2['work'](0x14,_0x1449be)||_0x3a2cc2['takeTree'](),new LanguageState(_0x3a2cc2);}static['init'](_0x404fcf){let _0x519902=Math['min'](0xbb8,_0x404fcf['doc']['length']),_0x232ff0=ParseContext['create'](_0x404fcf['facet'](language)['parser'],_0x404fcf,{'from':0x0,'to':_0x519902});return _0x232ff0['work'](0x14,_0x519902)||_0x232ff0['takeTree'](),new LanguageState(_0x232ff0);}}Language['state']=StateField['define']({'create':LanguageState['init'],'update'(_0xbd6386,_0x4aeef4){for(let _0x497bc6 of _0x4aeef4['effects'])if(_0x497bc6['is'](Language['setState']))return _0x497bc6['value'];return _0x4aeef4['startState']['facet'](language)!=_0x4aeef4['state']['facet'](language)?LanguageState['init'](_0x4aeef4['state']):_0xbd6386['apply'](_0x4aeef4);}});let requestIdle=_0x53608e=>{let _0x5a4b58=setTimeout(()=>_0x53608e(),0x1f4);return()=>clearTimeout(_0x5a4b58);};'undefined'!=typeof requestIdleCallback&&(requestIdle=_0x4544a2=>{let _0x3109af=-0x1,_0x528a8e=setTimeout(()=>{_0x3109af=requestIdleCallback(_0x4544a2,{'timeout':0x190});},0x64);return()=>_0x3109af<0x0?clearTimeout(_0x528a8e):cancelIdleCallback(_0x3109af);});const isInputPending='undefined'!=typeof navigator&&(null===(_a=navigator['scheduling'])||void 0x0===_a?void 0x0:_a['isInputPending'])?()=>navigator['scheduling']['isInputPending']():null,parseWorker=ViewPlugin['fromClass'](class{constructor(_0x28e3aa){this['view']=_0x28e3aa,this['working']=null,this['workScheduled']=0x0,this['chunkEnd']=-0x1,this['chunkBudget']=-0x1,this['work']=this['work']['bind'](this),this['scheduleWork']();}['update'](_0x4b42ef){let _0x3f99ef=this['view']['state']['field'](Language['state'])['context'];(_0x3f99ef['updateViewport'](_0x4b42ef['view']['viewport'])||this['view']['viewport']['to']>_0x3f99ef['treeLen'])&&this['scheduleWork'](),(_0x4b42ef['docChanged']||_0x4b42ef['selectionSet'])&&(this['view']['hasFocus']&&(this['chunkBudget']+=0x32),this['scheduleWork']()),this['checkAsyncSchedule'](_0x3f99ef);}['scheduleWork'](){if(this['working'])return;let {state:_0x13d4da}=this['view'],_0x4f5221=_0x13d4da['field'](Language['state']);_0x4f5221['tree']==_0x4f5221['context']['tree']&&_0x4f5221['context']['isDone'](_0x13d4da['doc']['length'])||(this['working']=requestIdle(this['work']));}['work'](_0x59a2d8){this['working']=null;let _0x2114fe=Date['now']();if(this['chunkEnd']<_0x2114fe&&(this['chunkEnd']<0x0||this['view']['hasFocus'])&&(this['chunkEnd']=_0x2114fe+0x7530,this['chunkBudget']=0xbb8),this['chunkBudget']<=0x0)return;let {state:_0x1ff0c4,viewport:{to:_0x21e07f}}=this['view'],_0x51dd3c=_0x1ff0c4['field'](Language['state']);if(_0x51dd3c['tree']==_0x51dd3c['context']['tree']&&_0x51dd3c['context']['isDone'](_0x21e07f+0x186a0))return;let _0x2a968e=Date['now']()+Math['min'](this['chunkBudget'],0x64,_0x59a2d8&&!isInputPending?Math['max'](0x19,_0x59a2d8['timeRemaining']()-0x5):0x3b9aca00),_0xfaeef7=_0x51dd3c['context']['treeLen']<_0x21e07f&&_0x1ff0c4['doc']['length']>_0x21e07f+0x3e8,_0x58ec90=_0x51dd3c['context']['work'](()=>isInputPending&&isInputPending()||Date['now']()>_0x2a968e,_0x21e07f+(_0xfaeef7?0x0:0x186a0));this['chunkBudget']-=Date['now']()-_0x2114fe,(_0x58ec90||this['chunkBudget']<=0x0)&&(_0x51dd3c['context']['takeTree'](),this['view']['dispatch']({'effects':Language['setState']['of'](new LanguageState(_0x51dd3c['context']))})),this['chunkBudget']>0x0&&(!_0x58ec90||_0xfaeef7)&&this['scheduleWork'](),this['checkAsyncSchedule'](_0x51dd3c['context']);}['checkAsyncSchedule'](_0x52dc82){_0x52dc82['scheduleOn']&&(this['workScheduled']++,_0x52dc82['scheduleOn']['then'](()=>this['scheduleWork']())['catch'](_0x4789b3=>logException(this['view']['state'],_0x4789b3))['then'](()=>this['workScheduled']--),_0x52dc82['scheduleOn']=null);}['destroy'](){this['working']&&this['working']();}['isWorking'](){return!!(this['working']||this['workScheduled']>0x0);}},{'eventHandlers':{'focus'(){this['scheduleWork']();}}}),language=Facet['define']({'combine':_0x233a1d=>_0x233a1d['length']?_0x233a1d[0x0]:null,'enables':_0x2f1590=>[Language['state'],parseWorker,EditorView['contentAttributes']['compute']([_0x2f1590],_0x192296=>{let _0x1b9b8b=_0x192296['facet'](_0x2f1590);return _0x1b9b8b&&_0x1b9b8b['name']?{'data-language':_0x1b9b8b['name']}:{};})]});class LanguageSupport{constructor(_0x1b8196,_0xd57d0a=[]){this['language']=_0x1b8196,this['support']=_0xd57d0a,this['extension']=[_0x1b8196,_0xd57d0a];}}class LanguageDescription{constructor(_0x1f96a7,_0x20d740,_0x2eeb33,_0xa64cd,_0x41e4ce,_0x42abeb=void 0x0){this['name']=_0x1f96a7,this['alias']=_0x20d740,this['extensions']=_0x2eeb33,this['filename']=_0xa64cd,this['loadFunc']=_0x41e4ce,this['support']=_0x42abeb,this['loading']=null;}['load'](){return this['loading']||(this['loading']=this['loadFunc']()['then'](_0xf47f15=>this['support']=_0xf47f15,_0xcdafa1=>{throw this['loading']=null,_0xcdafa1;}));}static['of'](_0x33a22d){let {load:_0x3a8dc9,support:_0x586d90}=_0x33a22d;if(!_0x3a8dc9){if(!_0x586d90)throw new RangeError('Must\x20pass\x20either\x20\x27load\x27\x20or\x20\x27support\x27\x20to\x20LanguageDescription.of');_0x3a8dc9=()=>Promise['resolve'](_0x586d90);}return new LanguageDescription(_0x33a22d['name'],(_0x33a22d['alias']||[])['concat'](_0x33a22d['name'])['map'](_0x3aaba8=>_0x3aaba8['toLowerCase']()),_0x33a22d['extensions']||[],_0x33a22d['filename'],_0x3a8dc9,_0x586d90);}static['matchFilename'](_0x38e5df,_0x3249c8){for(let _0x57c94c of _0x38e5df)if(_0x57c94c['filename']&&_0x57c94c['filename']['test'](_0x3249c8))return _0x57c94c;let _0x1ecbd3=/\.([^.]+)$/['exec'](_0x3249c8);if(_0x1ecbd3){for(let _0x35b116 of _0x38e5df)if(_0x35b116['extensions']['indexOf'](_0x1ecbd3[0x1])>-0x1)return _0x35b116;}return null;}static['matchLanguageName'](_0x575f1d,_0x49fe16,_0x45786c=!0x0){_0x49fe16=_0x49fe16['toLowerCase']();for(let _0x1bae15 of _0x575f1d)if(_0x1bae15['alias']['some'](_0x24a49b=>_0x24a49b==_0x49fe16))return _0x1bae15;if(_0x45786c){for(let _0x599097 of _0x575f1d)for(let _0x2b01d8 of _0x599097['alias']){let _0x1e623b=_0x49fe16['indexOf'](_0x2b01d8);if(_0x1e623b>-0x1&&(_0x2b01d8['length']>0x2||!/\w/['test'](_0x49fe16[_0x1e623b-0x1])&&!/\w/['test'](_0x49fe16[_0x1e623b+_0x2b01d8['length']])))return _0x599097;}}return null;}}const indentService=Facet['define'](),indentUnit=Facet['define']({'combine':_0x32c3ca=>{if(!_0x32c3ca['length'])return'\x20\x20';let _0x33dc8b=_0x32c3ca[0x0];if(!_0x33dc8b||/\S/['test'](_0x33dc8b)||Array['from'](_0x33dc8b)['some'](_0x44454c=>_0x44454c!=_0x33dc8b[0x0]))throw new Error('Invalid\x20indent\x20unit:\x20'+JSON['stringify'](_0x32c3ca[0x0]));return _0x33dc8b;}});function getIndentUnit(_0x1b8e18){let _0x15b283=_0x1b8e18['facet'](indentUnit);return 0x9==_0x15b283['charCodeAt'](0x0)?_0x1b8e18['tabSize']*_0x15b283['length']:_0x15b283['length'];}function indentString(_0x16eb4c,_0x1f8ac8){let _0x249bed='',_0x2f5edd=_0x16eb4c['tabSize'],_0x3b24d0=_0x16eb4c['facet'](indentUnit)[0x0];if('\x09'==_0x3b24d0){for(;_0x1f8ac8>=_0x2f5edd;)_0x249bed+='\x09',_0x1f8ac8-=_0x2f5edd;_0x3b24d0='\x20';}for(let _0x1dc606=0x0;_0x1dc606<_0x1f8ac8;_0x1dc606++)_0x249bed+=_0x3b24d0;return _0x249bed;}function getIndentation(_0xfcdcb7,_0x277529){_0xfcdcb7 instanceof EditorState&&(_0xfcdcb7=new IndentContext(_0xfcdcb7));for(let _0x3271ce of _0xfcdcb7['state']['facet'](indentService)){let _0x18f466=_0x3271ce(_0xfcdcb7,_0x277529);if(void 0x0!==_0x18f466)return _0x18f466;}let _0x31f1d1=syntaxTree(_0xfcdcb7['state']);return _0x31f1d1['length']>=_0x277529?syntaxIndentation(_0xfcdcb7,_0x31f1d1,_0x277529):null;}class IndentContext{constructor(_0xea760,_0x162987={}){this['state']=_0xea760,this['options']=_0x162987,this['unit']=getIndentUnit(_0xea760);}['lineAt'](_0xe6622f,_0x409ed3=0x1){let _0x44196d=this['state']['doc']['lineAt'](_0xe6622f),{simulateBreak:_0x54fb9e,simulateDoubleBreak:_0x55b582}=this['options'];return null!=_0x54fb9e&&_0x54fb9e>=_0x44196d['from']&&_0x54fb9e<=_0x44196d['to']?_0x55b582&&_0x54fb9e==_0xe6622f?{'text':'','from':_0xe6622f}:(_0x409ed3<0x0?_0x54fb9e<_0xe6622f:_0x54fb9e<=_0xe6622f)?{'text':_0x44196d['text']['slice'](_0x54fb9e-_0x44196d['from']),'from':_0x54fb9e}:{'text':_0x44196d['text']['slice'](0x0,_0x54fb9e-_0x44196d['from']),'from':_0x44196d['from']}:_0x44196d;}['textAfterPos'](_0x1ad890,_0x29b9c0=0x1){if(this['options']['simulateDoubleBreak']&&_0x1ad890==this['options']['simulateBreak'])return'';let {text:_0x36d7fa,from:_0x504883}=this['lineAt'](_0x1ad890,_0x29b9c0);return _0x36d7fa['slice'](_0x1ad890-_0x504883,Math['min'](_0x36d7fa['length'],_0x1ad890+0x64-_0x504883));}['column'](_0xd1db45,_0x2d97f7=0x1){let {text:_0x4bd6d8,from:_0x110bec}=this['lineAt'](_0xd1db45,_0x2d97f7),_0x282b1a=this['countColumn'](_0x4bd6d8,_0xd1db45-_0x110bec),_0x20ba40=this['options']['overrideIndentation']?this['options']['overrideIndentation'](_0x110bec):-0x1;return _0x20ba40>-0x1&&(_0x282b1a+=_0x20ba40-this['countColumn'](_0x4bd6d8,_0x4bd6d8['search'](/\S|$/))),_0x282b1a;}['countColumn'](_0x47604a,_0x4a726f=_0x47604a['length']){return countColumn(_0x47604a,this['state']['tabSize'],_0x4a726f);}['lineIndent'](_0x354cd8,_0x323052=0x1){let {text:_0x1e0fc4,from:_0x4386e9}=this['lineAt'](_0x354cd8,_0x323052),_0x24dd59=this['options']['overrideIndentation'];if(_0x24dd59){let _0x3f6aaa=_0x24dd59(_0x4386e9);if(_0x3f6aaa>-0x1)return _0x3f6aaa;}return this['countColumn'](_0x1e0fc4,_0x1e0fc4['search'](/\S|$/));}get['simulatedBreak'](){return this['options']['simulateBreak']||null;}}const indentNodeProp=new NodeProp();function syntaxIndentation(_0x3ae528,_0x232efd,_0x5e575){let _0x2d689f=_0x232efd['resolveStack'](_0x5e575),_0x38e5c7=_0x232efd['resolveInner'](_0x5e575,-0x1)['resolve'](_0x5e575,0x0)['enterUnfinishedNodesBefore'](_0x5e575);if(_0x38e5c7!=_0x2d689f['node']){let _0x5b7fa3=[];for(let _0x7f139e=_0x38e5c7;_0x7f139e&&!(_0x7f139e['from']<_0x2d689f['node']['from']||_0x7f139e['to']>_0x2d689f['node']['to']||_0x7f139e['from']==_0x2d689f['node']['from']&&_0x7f139e['type']==_0x2d689f['node']['type']);_0x7f139e=_0x7f139e['parent'])_0x5b7fa3['push'](_0x7f139e);for(let _0x485674=_0x5b7fa3['length']-0x1;_0x485674>=0x0;_0x485674--)_0x2d689f={'node':_0x5b7fa3[_0x485674],'next':_0x2d689f};}return indentFor(_0x2d689f,_0x3ae528,_0x5e575);}function indentFor(_0x895ee5,_0x2eefac,_0x20d98e){for(let _0x143970=_0x895ee5;_0x143970;_0x143970=_0x143970['next']){let _0x237dad=indentStrategy(_0x143970['node']);if(_0x237dad)return _0x237dad(TreeIndentContext['create'](_0x2eefac,_0x20d98e,_0x143970));}return 0x0;}function ignoreClosed(_0x2cb660){return _0x2cb660['pos']==_0x2cb660['options']['simulateBreak']&&_0x2cb660['options']['simulateDoubleBreak'];}function indentStrategy(_0xa80d4a){let _0x20ecd7=_0xa80d4a['type']['prop'](indentNodeProp);if(_0x20ecd7)return _0x20ecd7;let _0x2a0102,_0x529b62=_0xa80d4a['firstChild'];if(_0x529b62&&(_0x2a0102=_0x529b62['type']['prop'](NodeProp['closedBy']))){let _0x3bc056=_0xa80d4a['lastChild'],_0x280893=_0x3bc056&&_0x2a0102['indexOf'](_0x3bc056['name'])>-0x1;return _0x461f5d=>delimitedStrategy(_0x461f5d,!0x0,0x1,void 0x0,_0x280893&&!ignoreClosed(_0x461f5d)?_0x3bc056['from']:void 0x0);}return null==_0xa80d4a['parent']?topIndent:null;}function topIndent(){return 0x0;}class TreeIndentContext extends IndentContext{constructor(_0x49fcce,_0x4a7127,_0x3d3b1e){super(_0x49fcce['state'],_0x49fcce['options']),this['base']=_0x49fcce,this['pos']=_0x4a7127,this['context']=_0x3d3b1e;}get['node'](){return this['context']['node'];}static['create'](_0x19ff2e,_0x3dbeb3,_0x9119d6){return new TreeIndentContext(_0x19ff2e,_0x3dbeb3,_0x9119d6);}get['textAfter'](){return this['textAfterPos'](this['pos']);}get['baseIndent'](){return this['baseIndentFor'](this['node']);}['baseIndentFor'](_0x216cdd){let _0x49f4ea=this['state']['doc']['lineAt'](_0x216cdd['from']);for(;;){let _0x125020=_0x216cdd['resolve'](_0x49f4ea['from']);for(;_0x125020['parent']&&_0x125020['parent']['from']==_0x125020['from'];)_0x125020=_0x125020['parent'];if(isParent(_0x125020,_0x216cdd))break;_0x49f4ea=this['state']['doc']['lineAt'](_0x125020['from']);}return this['lineIndent'](_0x49f4ea['from']);}['continue'](){return indentFor(this['context']['next'],this['base'],this['pos']);}}function isParent(_0x1b9714,_0x38a0f4){for(let _0x51d165=_0x38a0f4;_0x51d165;_0x51d165=_0x51d165['parent'])if(_0x1b9714==_0x51d165)return!0x0;return!0x1;}function bracketedAligned(_0x227588){let _0xdb86b3=_0x227588['node'],_0x3f37c2=_0xdb86b3['childAfter'](_0xdb86b3['from']),_0x31f67f=_0xdb86b3['lastChild'];if(!_0x3f37c2)return null;let _0x4531a6=_0x227588['options']['simulateBreak'],_0x431665=_0x227588['state']['doc']['lineAt'](_0x3f37c2['from']),_0x5be5eb=null==_0x4531a6||_0x4531a6<=_0x431665['from']?_0x431665['to']:Math['min'](_0x431665['to'],_0x4531a6);for(let _0x45db08=_0x3f37c2['to'];;){let _0x61b804=_0xdb86b3['childAfter'](_0x45db08);if(!_0x61b804||_0x61b804==_0x31f67f)return null;if(!_0x61b804['type']['isSkipped']){if(_0x61b804['from']>=_0x5be5eb)return null;let _0x569da1=/^ */['exec'](_0x431665['text']['slice'](_0x3f37c2['to']-_0x431665['from']))[0x0]['length'];return{'from':_0x3f37c2['from'],'to':_0x3f37c2['to']+_0x569da1};}_0x45db08=_0x61b804['to'];}}function delimitedIndent({closing:_0x3d0093,align:_0x5ecbb9=!0x0,units:_0x3e2e1b=0x1}){return _0x397fd6=>delimitedStrategy(_0x397fd6,_0x5ecbb9,_0x3e2e1b,_0x3d0093);}function delimitedStrategy(_0x52c985,_0x3cdc7d,_0x41eaa5,_0x4b7023,_0x451065){let _0x24c241=_0x52c985['textAfter'],_0x1ecd02=_0x24c241['match'](/^\s*/)[0x0]['length'],_0x4b4355=_0x4b7023&&_0x24c241['slice'](_0x1ecd02,_0x1ecd02+_0x4b7023['length'])==_0x4b7023||_0x451065==_0x52c985['pos']+_0x1ecd02,_0x592354=_0x3cdc7d?bracketedAligned(_0x52c985):null;return _0x592354?_0x4b4355?_0x52c985['column'](_0x592354['from']):_0x52c985['column'](_0x592354['to']):_0x52c985['baseIndent']+(_0x4b4355?0x0:_0x52c985['unit']*_0x41eaa5);}const flatIndent=_0x1ce7d3=>_0x1ce7d3['baseIndent'];function continuedIndent({except:_0x1c5236,units:_0x5050fa=0x1}={}){return _0x152548=>{let _0x38f0a5=_0x1c5236&&_0x1c5236['test'](_0x152548['textAfter']);return _0x152548['baseIndent']+(_0x38f0a5?0x0:_0x5050fa*_0x152548['unit']);};}const DontIndentBeyond=0xc8;function indentOnInput(){return EditorState['transactionFilter']['of'](_0xdc9a4d=>{if(!_0xdc9a4d['docChanged']||!_0xdc9a4d['isUserEvent']('input.type')&&!_0xdc9a4d['isUserEvent']('input.complete'))return _0xdc9a4d;let _0x41a4dd=_0xdc9a4d['startState']['languageDataAt']('indentOnInput',_0xdc9a4d['startState']['selection']['main']['head']);if(!_0x41a4dd['length'])return _0xdc9a4d;let _0x47d6f1=_0xdc9a4d['newDoc'],{head:_0x4db30a}=_0xdc9a4d['newSelection']['main'],_0x178f47=_0x47d6f1['lineAt'](_0x4db30a);if(_0x4db30a>_0x178f47['from']+DontIndentBeyond)return _0xdc9a4d;let _0x559b1a=_0x47d6f1['sliceString'](_0x178f47['from'],_0x4db30a);if(!_0x41a4dd['some'](_0x564593=>_0x564593['test'](_0x559b1a)))return _0xdc9a4d;let {state:_0x3b03fc}=_0xdc9a4d,_0x3ec512=-0x1,_0x452451=[];for(let {head:_0x3a76cd}of _0x3b03fc['selection']['ranges']){let _0x4ab3b4=_0x3b03fc['doc']['lineAt'](_0x3a76cd);if(_0x4ab3b4['from']==_0x3ec512)continue;_0x3ec512=_0x4ab3b4['from'];let _0x1e9aab=getIndentation(_0x3b03fc,_0x4ab3b4['from']);if(null==_0x1e9aab)continue;let _0x4e4b0b=/^\s*/['exec'](_0x4ab3b4['text'])[0x0],_0x324038=indentString(_0x3b03fc,_0x1e9aab);_0x4e4b0b!=_0x324038&&_0x452451['push']({'from':_0x4ab3b4['from'],'to':_0x4ab3b4['from']+_0x4e4b0b['length'],'insert':_0x324038});}return _0x452451['length']?[_0xdc9a4d,{'changes':_0x452451,'sequential':!0x0}]:_0xdc9a4d;});}const foldService=Facet['define'](),foldNodeProp=new NodeProp();function foldInside(_0x22034d){let _0x313cd2=_0x22034d['firstChild'],_0x548696=_0x22034d['lastChild'];return _0x313cd2&&_0x313cd2['to']<_0x548696['from']?{'from':_0x313cd2['to'],'to':_0x548696['type']['isError']?_0x22034d['to']:_0x548696['from']}:null;}function syntaxFolding(_0x4d6099,_0x8a00f0,_0x11195d){let _0x496d84=syntaxTree(_0x4d6099);if(_0x496d84['length']<_0x11195d)return null;let _0x32aff3=null;for(let _0x54c779=_0x496d84['resolveStack'](_0x11195d,0x1);_0x54c779;_0x54c779=_0x54c779['next']){let _0x5d48b2=_0x54c779['node'];if(_0x5d48b2['to']<=_0x11195d||_0x5d48b2['from']>_0x11195d)continue;if(_0x32aff3&&_0x5d48b2['from']<_0x8a00f0)break;let _0x260763=_0x5d48b2['type']['prop'](foldNodeProp);if(_0x260763&&(_0x5d48b2['to']<_0x496d84['length']-0x32||_0x496d84['length']==_0x4d6099['doc']['length']||!isUnfinished(_0x5d48b2))){let _0x3ceea4=_0x260763(_0x5d48b2,_0x4d6099);_0x3ceea4&&_0x3ceea4['from']<=_0x11195d&&_0x3ceea4['from']>=_0x8a00f0&&_0x3ceea4['to']>_0x11195d&&(_0x32aff3=_0x3ceea4);}}return _0x32aff3;}function isUnfinished(_0x160b48){let _0x3451f8=_0x160b48['lastChild'];return _0x3451f8&&_0x3451f8['to']==_0x160b48['to']&&_0x3451f8['type']['isError'];}function foldable(_0x2af328,_0x3147c1,_0x357350){for(let _0xa4c747 of _0x2af328['facet'](foldService)){let _0x210c65=_0xa4c747(_0x2af328,_0x3147c1,_0x357350);if(_0x210c65)return _0x210c65;}return syntaxFolding(_0x2af328,_0x3147c1,_0x357350);}function mapRange(_0x3a230e,_0x15b0b8){let _0x2a599b=_0x15b0b8['mapPos'](_0x3a230e['from'],0x1),_0x3a7eb6=_0x15b0b8['mapPos'](_0x3a230e['to'],-0x1);return _0x2a599b>=_0x3a7eb6?void 0x0:{'from':_0x2a599b,'to':_0x3a7eb6};}const foldEffect=StateEffect['define']({'map':mapRange}),unfoldEffect=StateEffect['define']({'map':mapRange});function selectedLines(_0x5164f8){let _0x1ff70a=[];for(let {head:_0x206524}of _0x5164f8['state']['selection']['ranges'])_0x1ff70a['some'](_0x5e6bdb=>_0x5e6bdb['from']<=_0x206524&&_0x5e6bdb['to']>=_0x206524)||_0x1ff70a['push'](_0x5164f8['lineBlockAt'](_0x206524));return _0x1ff70a;}const foldState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x56756b,_0x4925b8){_0x4925b8['isUserEvent']('delete')&&_0x4925b8['changes']['iterChangedRanges']((_0xdb5c3e,_0x5b1017)=>_0x56756b=clearTouchedFolds(_0x56756b,_0xdb5c3e,_0x5b1017)),_0x56756b=_0x56756b['map'](_0x4925b8['changes']);for(let _0x4fd34d of _0x4925b8['effects'])if(_0x4fd34d['is'](foldEffect)&&!foldExists(_0x56756b,_0x4fd34d['value']['from'],_0x4fd34d['value']['to'])){let {preparePlaceholder:_0x23e00a}=_0x4925b8['state']['facet'](foldConfig),_0x4e534b=_0x23e00a?Decoration['replace']({'widget':new PreparedFoldWidget(_0x23e00a(_0x4925b8['state'],_0x4fd34d['value']))}):foldWidget;_0x56756b=_0x56756b['update']({'add':[_0x4e534b['range'](_0x4fd34d['value']['from'],_0x4fd34d['value']['to'])]});}else _0x4fd34d['is'](unfoldEffect)&&(_0x56756b=_0x56756b['update']({'filter':(_0x37999a,_0xeea031)=>_0x4fd34d['value']['from']!=_0x37999a||_0x4fd34d['value']['to']!=_0xeea031,'filterFrom':_0x4fd34d['value']['from'],'filterTo':_0x4fd34d['value']['to']}));return _0x4925b8['selection']&&(_0x56756b=clearTouchedFolds(_0x56756b,_0x4925b8['selection']['main']['head'])),_0x56756b;},'provide':_0x395841=>EditorView['decorations']['from'](_0x395841),'toJSON'(_0x15dc99,_0x3bc059){let _0x466bea=[];return _0x15dc99['between'](0x0,_0x3bc059['doc']['length'],(_0x59f0d1,_0x9c907f)=>{_0x466bea['push'](_0x59f0d1,_0x9c907f);}),_0x466bea;},'fromJSON'(_0x48354d){if(!Array['isArray'](_0x48354d)||_0x48354d['length']%0x2)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');let _0x3d3068=[];for(let _0x2c920f=0x0;_0x2c920f<_0x48354d['length'];){let _0x6a1c96=_0x48354d[_0x2c920f++],_0x251d88=_0x48354d[_0x2c920f++];if('number'!=typeof _0x6a1c96||'number'!=typeof _0x251d88)throw new RangeError('Invalid\x20JSON\x20for\x20fold\x20state');_0x3d3068['push'](foldWidget['range'](_0x6a1c96,_0x251d88));}return Decoration['set'](_0x3d3068,!0x0);}});function clearTouchedFolds(_0x4a7a64,_0x5a913e,_0x24e34e=_0x5a913e){let _0x480f01=!0x1;return _0x4a7a64['between'](_0x5a913e,_0x24e34e,(_0x60741f,_0x3bfc89)=>{_0x60741f<_0x24e34e&&_0x3bfc89>_0x5a913e&&(_0x480f01=!0x0);}),_0x480f01?_0x4a7a64['update']({'filterFrom':_0x5a913e,'filterTo':_0x24e34e,'filter':(_0x2e8ba7,_0x4bb6d0)=>_0x2e8ba7>=_0x24e34e||_0x4bb6d0<=_0x5a913e}):_0x4a7a64;}function findFold(_0x18d3c3,_0x379034,_0x556822){var _0x4d6244;let _0x367651=null;return null===(_0x4d6244=_0x18d3c3['field'](foldState,!0x1))||void 0x0===_0x4d6244||_0x4d6244['between'](_0x379034,_0x556822,(_0xd1faf3,_0x5b45ce)=>{(!_0x367651||_0x367651['from']>_0xd1faf3)&&(_0x367651={'from':_0xd1faf3,'to':_0x5b45ce});}),_0x367651;}function foldExists(_0x13333e,_0x241c90,_0x268622){let _0x4ddd17=!0x1;return _0x13333e['between'](_0x241c90,_0x241c90,(_0x42eb72,_0x39e4bd)=>{_0x42eb72==_0x241c90&&_0x39e4bd==_0x268622&&(_0x4ddd17=!0x0);}),_0x4ddd17;}function maybeEnable(_0x30b56b,_0xeccc17){return _0x30b56b['field'](foldState,!0x1)?_0xeccc17:_0xeccc17['concat'](StateEffect['appendConfig']['of'](codeFolding()));}const foldCode=_0x36cf04=>{for(let _0x1b1668 of selectedLines(_0x36cf04)){let _0x28f28a=foldable(_0x36cf04['state'],_0x1b1668['from'],_0x1b1668['to']);if(_0x28f28a)return _0x36cf04['dispatch']({'effects':maybeEnable(_0x36cf04['state'],[foldEffect['of'](_0x28f28a),announceFold(_0x36cf04,_0x28f28a)])}),!0x0;}return!0x1;},unfoldCode=_0x1cfb76=>{if(!_0x1cfb76['state']['field'](foldState,!0x1))return!0x1;let _0x4c98e5=[];for(let _0x1bbbac of selectedLines(_0x1cfb76)){let _0x38e148=findFold(_0x1cfb76['state'],_0x1bbbac['from'],_0x1bbbac['to']);_0x38e148&&_0x4c98e5['push'](unfoldEffect['of'](_0x38e148),announceFold(_0x1cfb76,_0x38e148,!0x1));}return _0x4c98e5['length']&&_0x1cfb76['dispatch']({'effects':_0x4c98e5}),_0x4c98e5['length']>0x0;};function announceFold(_0x5bdae2,_0x37f13d,_0xbcb547=!0x0){let _0x3c5d73=_0x5bdae2['state']['doc']['lineAt'](_0x37f13d['from'])['number'],_0x292e24=_0x5bdae2['state']['doc']['lineAt'](_0x37f13d['to'])['number'];return EditorView['announce']['of'](_0x5bdae2['state']['phrase'](_0xbcb547?'Folded\x20lines':'Unfolded\x20lines')+'\x20'+_0x3c5d73+'\x20'+_0x5bdae2['state']['phrase']('to')+'\x20'+_0x292e24+'.');}const foldAll=_0x16716a=>{let {state:_0x340906}=_0x16716a,_0x471190=[];for(let _0x115f67=0x0;_0x115f67<_0x340906['doc']['length'];){let _0x549ccc=_0x16716a['lineBlockAt'](_0x115f67),_0x4675f9=foldable(_0x340906,_0x549ccc['from'],_0x549ccc['to']);_0x4675f9&&_0x471190['push'](foldEffect['of'](_0x4675f9)),_0x115f67=(_0x4675f9?_0x16716a['lineBlockAt'](_0x4675f9['to']):_0x549ccc)['to']+0x1;}return _0x471190['length']&&_0x16716a['dispatch']({'effects':maybeEnable(_0x16716a['state'],_0x471190)}),!!_0x471190['length'];},unfoldAll=_0x4ca446=>{let _0x66a93e=_0x4ca446['state']['field'](foldState,!0x1);if(!_0x66a93e||!_0x66a93e['size'])return!0x1;let _0x58e6d8=[];return _0x66a93e['between'](0x0,_0x4ca446['state']['doc']['length'],(_0xca12c2,_0x4d27be)=>{_0x58e6d8['push'](unfoldEffect['of']({'from':_0xca12c2,'to':_0x4d27be}));}),_0x4ca446['dispatch']({'effects':_0x58e6d8}),!0x0;},foldKeymap=[{'key':'Ctrl-Shift-[','mac':'Cmd-Alt-[','run':foldCode},{'key':'Ctrl-Shift-]','mac':'Cmd-Alt-]','run':unfoldCode},{'key':'Ctrl-Alt-[','run':foldAll},{'key':'Ctrl-Alt-]','run':unfoldAll}],defaultConfig={'placeholderDOM':null,'preparePlaceholder':null,'placeholderText':'…'},foldConfig=Facet['define']({'combine':_0xeffcc6=>combineConfig(_0xeffcc6,defaultConfig)});function codeFolding(_0x4cb325){return[foldState,baseTheme$1];}function widgetToDOM(_0x58ef1e,_0x1bfdf1){let {state:_0x14962c}=_0x58ef1e,_0xe90c68=_0x14962c['facet'](foldConfig),_0x21cfc0=_0x119e6d=>{let _0x3bd997=_0x58ef1e['lineBlockAt'](_0x58ef1e['posAtDOM'](_0x119e6d['target'])),_0x5d8118=findFold(_0x58ef1e['state'],_0x3bd997['from'],_0x3bd997['to']);_0x5d8118&&_0x58ef1e['dispatch']({'effects':unfoldEffect['of'](_0x5d8118)}),_0x119e6d['preventDefault']();};if(_0xe90c68['placeholderDOM'])return _0xe90c68['placeholderDOM'](_0x58ef1e,_0x21cfc0,_0x1bfdf1);let _0x917982=document['createElement']('span');return _0x917982['textContent']=_0xe90c68['placeholderText'],_0x917982['setAttribute']('aria-label',_0x14962c['phrase']('folded\x20code')),_0x917982['title']=_0x14962c['phrase']('unfold'),_0x917982['className']='cm-foldPlaceholder',_0x917982['onclick']=_0x21cfc0,_0x917982;}const foldWidget=Decoration['replace']({'widget':new class extends WidgetType{['toDOM'](_0x469b8b){return widgetToDOM(_0x469b8b,null);}}()});class PreparedFoldWidget extends WidgetType{constructor(_0x31b8f5){super(),this['value']=_0x31b8f5;}['eq'](_0x41171a){return this['value']==_0x41171a['value'];}['toDOM'](_0x30ce4b){return widgetToDOM(_0x30ce4b,this['value']);}}const foldGutterDefaults={'openText':'⌄','closedText':'›','markerDOM':null,'domEventHandlers':{},'foldingChanged':()=>!0x1};class FoldMarker extends GutterMarker{constructor(_0x21ef9f,_0x5cd432){super(),this['config']=_0x21ef9f,this['open']=_0x5cd432;}['eq'](_0x2f6329){return this['config']==_0x2f6329['config']&&this['open']==_0x2f6329['open'];}['toDOM'](_0x3f688e){if(this['config']['markerDOM'])return this['config']['markerDOM'](this['open']);let _0xcbe29d=document['createElement']('span');return _0xcbe29d['textContent']=this['open']?this['config']['openText']:this['config']['closedText'],_0xcbe29d['title']=_0x3f688e['state']['phrase'](this['open']?'Fold\x20line':'Unfold\x20line'),_0xcbe29d;}}function foldGutter(_0x1bc0ea={}){let _0x1c538c={...foldGutterDefaults,..._0x1bc0ea},_0x3d84f3=new FoldMarker(_0x1c538c,!0x0),_0x11c9ff=new FoldMarker(_0x1c538c,!0x1),_0x1d45f4=ViewPlugin['fromClass'](class{constructor(_0x4ca214){this['from']=_0x4ca214['viewport']['from'],this['markers']=this['buildMarkers'](_0x4ca214);}['update'](_0x3f46ca){(_0x3f46ca['docChanged']||_0x3f46ca['viewportChanged']||_0x3f46ca['startState']['facet'](language)!=_0x3f46ca['state']['facet'](language)||_0x3f46ca['startState']['field'](foldState,!0x1)!=_0x3f46ca['state']['field'](foldState,!0x1)||syntaxTree(_0x3f46ca['startState'])!=syntaxTree(_0x3f46ca['state'])||_0x1c538c['foldingChanged'](_0x3f46ca))&&(this['markers']=this['buildMarkers'](_0x3f46ca['view']));}['buildMarkers'](_0x3ca309){let _0x32588b=new RangeSetBuilder();for(let _0x57c9e8 of _0x3ca309['viewportLineBlocks']){let _0x335850=findFold(_0x3ca309['state'],_0x57c9e8['from'],_0x57c9e8['to'])?_0x11c9ff:foldable(_0x3ca309['state'],_0x57c9e8['from'],_0x57c9e8['to'])?_0x3d84f3:null;_0x335850&&_0x32588b['add'](_0x57c9e8['from'],_0x57c9e8['from'],_0x335850);}return _0x32588b['finish']();}}),{domEventHandlers:_0x562c01}=_0x1c538c;return[_0x1d45f4,gutter({'class':'cm-foldGutter','markers'(_0x34e8c3){var _0x2d1eac;return(null===(_0x2d1eac=_0x34e8c3['plugin'](_0x1d45f4))||void 0x0===_0x2d1eac?void 0x0:_0x2d1eac['markers'])||RangeSet['empty'];},'initialSpacer':()=>new FoldMarker(_0x1c538c,!0x1),'domEventHandlers':{..._0x562c01,'click':(_0x3dcef4,_0x5c5653,_0x4e4558)=>{if(_0x562c01['click']&&_0x562c01['click'](_0x3dcef4,_0x5c5653,_0x4e4558))return!0x0;let _0x5ae6bc=findFold(_0x3dcef4['state'],_0x5c5653['from'],_0x5c5653['to']);if(_0x5ae6bc)return _0x3dcef4['dispatch']({'effects':unfoldEffect['of'](_0x5ae6bc)}),!0x0;let _0x5c3c53=foldable(_0x3dcef4['state'],_0x5c5653['from'],_0x5c5653['to']);return!!_0x5c3c53&&(_0x3dcef4['dispatch']({'effects':foldEffect['of'](_0x5c3c53)}),!0x0);}}}),codeFolding()];}const baseTheme$1=EditorView['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'}});class HighlightStyle{constructor(_0x20bf35,_0x46ea70){let _0x1039a0;function _0x2d2615(_0x50ed1c){let _0x37e760=StyleModule['newName']();return(_0x1039a0||(_0x1039a0=Object['create'](null)))['.'+_0x37e760]=_0x50ed1c,_0x37e760;}this['specs']=_0x20bf35;const _0xdf6f74='string'==typeof _0x46ea70['all']?_0x46ea70['all']:_0x46ea70['all']?_0x2d2615(_0x46ea70['all']):void 0x0,_0x59eff8=_0x46ea70['scope'];this['scope']=_0x59eff8 instanceof Language?_0x244fc7=>_0x244fc7['prop'](languageDataProp)==_0x59eff8['data']:_0x59eff8?_0x40063f=>_0x40063f==_0x59eff8:void 0x0,this['style']=tagHighlighter(_0x20bf35['map'](_0x3ff7a1=>({'tag':_0x3ff7a1['tag'],'class':_0x3ff7a1['class']||_0x2d2615(Object['assign']({},_0x3ff7a1,{'tag':null}))})),{'all':_0xdf6f74})['style'],this['module']=_0x1039a0?new StyleModule(_0x1039a0):null,this['themeType']=_0x46ea70['themeType'];}static['define'](_0x432718,_0xa1901f){return new HighlightStyle(_0x432718,_0xa1901f||{});}}const highlighterFacet=Facet['define'](),fallbackHighlighter=Facet['define']({'combine':_0x536b47=>_0x536b47['length']?[_0x536b47[0x0]]:null});function getHighlighters(_0x5e96c4){let _0x3b62dc=_0x5e96c4['facet'](highlighterFacet);return _0x3b62dc['length']?_0x3b62dc:_0x5e96c4['facet'](fallbackHighlighter);}function syntaxHighlighting(_0x2b8165,_0xc336b1){let _0x16684d,_0x2abae4=[treeHighlighter];return _0x2b8165 instanceof HighlightStyle&&(_0x2b8165['module']&&_0x2abae4['push'](EditorView['styleModule']['of'](_0x2b8165['module'])),_0x16684d=_0x2b8165['themeType']),(null==_0xc336b1?void 0x0:_0xc336b1['fallback'])?_0x2abae4['push'](fallbackHighlighter['of'](_0x2b8165)):_0x16684d?_0x2abae4['push'](highlighterFacet['computeN']([EditorView['darkTheme']],_0x141fb7=>_0x141fb7['facet'](EditorView['darkTheme'])==('dark'==_0x16684d)?[_0x2b8165]:[])):_0x2abae4['push'](highlighterFacet['of'](_0x2b8165)),_0x2abae4;}class TreeHighlighter{constructor(_0x2b2c6f){this['markCache']=Object['create'](null),this['tree']=syntaxTree(_0x2b2c6f['state']),this['decorations']=this['buildDeco'](_0x2b2c6f,getHighlighters(_0x2b2c6f['state'])),this['decoratedTo']=_0x2b2c6f['viewport']['to'];}['update'](_0x2c29dc){let _0x330e8e=syntaxTree(_0x2c29dc['state']),_0x800d99=getHighlighters(_0x2c29dc['state']),_0x128360=_0x800d99!=getHighlighters(_0x2c29dc['startState']),{viewport:_0x1f0458}=_0x2c29dc['view'],_0x2a2857=_0x2c29dc['changes']['mapPos'](this['decoratedTo'],0x1);_0x330e8e['length']<_0x1f0458['to']&&!_0x128360&&_0x330e8e['type']==this['tree']['type']&&_0x2a2857>=_0x1f0458['to']?(this['decorations']=this['decorations']['map'](_0x2c29dc['changes']),this['decoratedTo']=_0x2a2857):(_0x330e8e!=this['tree']||_0x2c29dc['viewportChanged']||_0x128360)&&(this['tree']=_0x330e8e,this['decorations']=this['buildDeco'](_0x2c29dc['view'],_0x800d99),this['decoratedTo']=_0x1f0458['to']);}['buildDeco'](_0xba8ff7,_0x55d64e){if(!_0x55d64e||!this['tree']['length'])return Decoration['none'];let _0xfccfc8=new RangeSetBuilder();for(let {from:_0x1c6532,to:_0x9543ce}of _0xba8ff7['visibleRanges'])highlightTree(this['tree'],_0x55d64e,(_0x517f62,_0x10b38b,_0x25a9fe)=>{_0xfccfc8['add'](_0x517f62,_0x10b38b,this['markCache'][_0x25a9fe]||(this['markCache'][_0x25a9fe]=Decoration['mark']({'class':_0x25a9fe})));},_0x1c6532,_0x9543ce);return _0xfccfc8['finish']();}}const treeHighlighter=Prec['high'](ViewPlugin['fromClass'](TreeHighlighter,{'decorations':_0x45793a=>_0x45793a['decorations']})),defaultHighlightStyle=HighlightStyle['define']([{'tag':tags$1['meta'],'color':'#404740'},{'tag':tags$1['link'],'textDecoration':'underline'},{'tag':tags$1['heading'],'textDecoration':'underline','fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['keyword'],'color':'#708'},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['url'],tags$1['contentSeparator'],tags$1['labelName']],'color':'#219'},{'tag':[tags$1['literal'],tags$1['inserted']],'color':'#164'},{'tag':[tags$1['string'],tags$1['deleted']],'color':'#a11'},{'tag':[tags$1['regexp'],tags$1['escape'],tags$1['special'](tags$1['string'])],'color':'#e40'},{'tag':tags$1['definition'](tags$1['variableName']),'color':'#00f'},{'tag':tags$1['local'](tags$1['variableName']),'color':'#30a'},{'tag':[tags$1['typeName'],tags$1['namespace']],'color':'#085'},{'tag':tags$1['className'],'color':'#167'},{'tag':[tags$1['special'](tags$1['variableName']),tags$1['macroName']],'color':'#256'},{'tag':tags$1['definition'](tags$1['propertyName']),'color':'#00c'},{'tag':tags$1['comment'],'color':'#940'},{'tag':tags$1['invalid'],'color':'#f00'}]),baseTheme$2=EditorView['baseTheme']({'&.cm-focused\x20.cm-matchingBracket':{'backgroundColor':'#328c8252'},'&.cm-focused\x20.cm-nonmatchingBracket':{'backgroundColor':'#bb555544'}}),DefaultScanDist=0x2710,DefaultBrackets='()[]{}',bracketMatchingConfig=Facet['define']({'combine':_0x365321=>combineConfig(_0x365321,{'afterCursor':!0x0,'brackets':DefaultBrackets,'maxScanDistance':DefaultScanDist,'renderMatch':defaultRenderMatch})}),matchingMark=Decoration['mark']({'class':'cm-matchingBracket'}),nonmatchingMark=Decoration['mark']({'class':'cm-nonmatchingBracket'});function defaultRenderMatch(_0x56f3db){let _0x10ee8b=[],_0x3f0ed6=_0x56f3db['matched']?matchingMark:nonmatchingMark;return _0x10ee8b['push'](_0x3f0ed6['range'](_0x56f3db['start']['from'],_0x56f3db['start']['to'])),_0x56f3db['end']&&_0x10ee8b['push'](_0x3f0ed6['range'](_0x56f3db['end']['from'],_0x56f3db['end']['to'])),_0x10ee8b;}const bracketMatchingState=StateField['define']({'create':()=>Decoration['none'],'update'(_0x12bcb3,_0x37080b){if(!_0x37080b['docChanged']&&!_0x37080b['selection'])return _0x12bcb3;let _0x263e54=[],_0x13c642=_0x37080b['state']['facet'](bracketMatchingConfig);for(let _0x14d9b5 of _0x37080b['state']['selection']['ranges']){if(!_0x14d9b5['empty'])continue;let _0x349eb9=matchBrackets(_0x37080b['state'],_0x14d9b5['head'],-0x1,_0x13c642)||_0x14d9b5['head']>0x0&&matchBrackets(_0x37080b['state'],_0x14d9b5['head']-0x1,0x1,_0x13c642)||_0x13c642['afterCursor']&&(matchBrackets(_0x37080b['state'],_0x14d9b5['head'],0x1,_0x13c642)||_0x14d9b5['head']<_0x37080b['state']['doc']['length']&&matchBrackets(_0x37080b['state'],_0x14d9b5['head']+0x1,-0x1,_0x13c642));_0x349eb9&&(_0x263e54=_0x263e54['concat'](_0x13c642['renderMatch'](_0x349eb9,_0x37080b['state'])));}return Decoration['set'](_0x263e54,!0x0);},'provide':_0x4a18e6=>EditorView['decorations']['from'](_0x4a18e6)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$2];function bracketMatching(_0x3cd2cd={}){return[bracketMatchingConfig['of'](_0x3cd2cd),bracketMatchingUnique];}const bracketMatchingHandle=new NodeProp();function matchingNodes(_0x3d5ca8,_0x569deb,_0x28f2fd){let _0x1ad7d3=_0x3d5ca8['prop'](_0x569deb<0x0?NodeProp['openedBy']:NodeProp['closedBy']);if(_0x1ad7d3)return _0x1ad7d3;if(0x1==_0x3d5ca8['name']['length']){let _0x364533=_0x28f2fd['indexOf'](_0x3d5ca8['name']);if(_0x364533>-0x1&&_0x364533%0x2==(_0x569deb<0x0?0x1:0x0))return[_0x28f2fd[_0x364533+_0x569deb]];}return null;}function findHandle(_0x324323){let _0x293474=_0x324323['type']['prop'](bracketMatchingHandle);return _0x293474?_0x293474(_0x324323['node']):_0x324323;}function matchBrackets(_0x20ea01,_0x13784c,_0x33c3d9,_0x2bbb08={}){let _0x1f3a9a=_0x2bbb08['maxScanDistance']||DefaultScanDist,_0x149ce7=_0x2bbb08['brackets']||DefaultBrackets,_0x4e3bea=syntaxTree(_0x20ea01),_0x362f39=_0x4e3bea['resolveInner'](_0x13784c,_0x33c3d9);for(let _0x31c984=_0x362f39;_0x31c984;_0x31c984=_0x31c984['parent']){let _0x35745f=matchingNodes(_0x31c984['type'],_0x33c3d9,_0x149ce7);if(_0x35745f&&_0x31c984['from']<_0x31c984['to']){let _0x4925c6=findHandle(_0x31c984);if(_0x4925c6&&(_0x33c3d9>0x0?_0x13784c>=_0x4925c6['from']&&_0x13784c<_0x4925c6['to']:_0x13784c>_0x4925c6['from']&&_0x13784c<=_0x4925c6['to']))return matchMarkedBrackets(_0x20ea01,_0x13784c,_0x33c3d9,_0x31c984,_0x4925c6,_0x35745f,_0x149ce7);}}return matchPlainBrackets(_0x20ea01,_0x13784c,_0x33c3d9,_0x4e3bea,_0x362f39['type'],_0x1f3a9a,_0x149ce7);}function matchMarkedBrackets(_0x385531,_0x180f74,_0x2c750c,_0x2345d6,_0x453a99,_0x1869ad,_0xdcb4a4){let _0x3525e2=_0x2345d6['parent'],_0x24f9f8={'from':_0x453a99['from'],'to':_0x453a99['to']},_0x30fb8a=0x0,_0x4adc2a=null==_0x3525e2?void 0x0:_0x3525e2['cursor']();if(_0x4adc2a&&(_0x2c750c<0x0?_0x4adc2a['childBefore'](_0x2345d6['from']):_0x4adc2a['childAfter'](_0x2345d6['to'])))do{if(_0x2c750c<0x0?_0x4adc2a['to']<=_0x2345d6['from']:_0x4adc2a['from']>=_0x2345d6['to']){if(0x0==_0x30fb8a&&_0x1869ad['indexOf'](_0x4adc2a['type']['name'])>-0x1&&_0x4adc2a['from']<_0x4adc2a['to']){let _0x405edb=findHandle(_0x4adc2a);return{'start':_0x24f9f8,'end':_0x405edb?{'from':_0x405edb['from'],'to':_0x405edb['to']}:void 0x0,'matched':!0x0};}if(matchingNodes(_0x4adc2a['type'],_0x2c750c,_0xdcb4a4))_0x30fb8a++;else{if(matchingNodes(_0x4adc2a['type'],-_0x2c750c,_0xdcb4a4)){if(0x0==_0x30fb8a){let _0x3794e1=findHandle(_0x4adc2a);return{'start':_0x24f9f8,'end':_0x3794e1&&_0x3794e1['from']<_0x3794e1['to']?{'from':_0x3794e1['from'],'to':_0x3794e1['to']}:void 0x0,'matched':!0x1};}_0x30fb8a--;}}}}while(_0x2c750c<0x0?_0x4adc2a['prevSibling']():_0x4adc2a['nextSibling']());return{'start':_0x24f9f8,'matched':!0x1};}function matchPlainBrackets(_0x114c9c,_0x248b2b,_0x3ff662,_0x2e5f65,_0x59b431,_0x338287,_0x37b1c3){let _0x293b9e=_0x3ff662<0x0?_0x114c9c['sliceDoc'](_0x248b2b-0x1,_0x248b2b):_0x114c9c['sliceDoc'](_0x248b2b,_0x248b2b+0x1),_0x205eb0=_0x37b1c3['indexOf'](_0x293b9e);if(_0x205eb0<0x0||_0x205eb0%0x2==0x0!=_0x3ff662>0x0)return null;let _0x3dc85f={'from':_0x3ff662<0x0?_0x248b2b-0x1:_0x248b2b,'to':_0x3ff662>0x0?_0x248b2b+0x1:_0x248b2b},_0x44b02a=_0x114c9c['doc']['iterRange'](_0x248b2b,_0x3ff662>0x0?_0x114c9c['doc']['length']:0x0),_0x2384d3=0x0;for(let _0x484c1f=0x0;!_0x44b02a['next']()['done']&&_0x484c1f<=_0x338287;){let _0x205187=_0x44b02a['value'];_0x3ff662<0x0&&(_0x484c1f+=_0x205187['length']);let _0x33fb84=_0x248b2b+_0x484c1f*_0x3ff662;for(let _0x36f61f=_0x3ff662>0x0?0x0:_0x205187['length']-0x1,_0x5e40f0=_0x3ff662>0x0?_0x205187['length']:-0x1;_0x36f61f!=_0x5e40f0;_0x36f61f+=_0x3ff662){let _0x1cc69c=_0x37b1c3['indexOf'](_0x205187[_0x36f61f]);if(!(_0x1cc69c<0x0||_0x2e5f65['resolveInner'](_0x33fb84+_0x36f61f,0x1)['type']!=_0x59b431)){if(_0x1cc69c%0x2==0x0==_0x3ff662>0x0)_0x2384d3++;else{if(0x1==_0x2384d3)return{'start':_0x3dc85f,'end':{'from':_0x33fb84+_0x36f61f,'to':_0x33fb84+_0x36f61f+0x1},'matched':_0x1cc69c>>0x1==_0x205eb0>>0x1};_0x2384d3--;}}}_0x3ff662>0x0&&(_0x484c1f+=_0x205187['length']);}return _0x44b02a['done']?{'start':_0x3dc85f,'matched':!0x1}:null;}const noTokens=Object['create'](null),typeArray=[NodeType['none']],warned=[],byTag=Object['create'](null),defaultTable=Object['create'](null);for(let [e,i]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']])defaultTable[e]=createTokenType(noTokens,i);function warnForPart(_0x1e3f62,_0x1d2151){warned['indexOf'](_0x1e3f62)>-0x1||(warned['push'](_0x1e3f62),console['warn'](_0x1d2151));}function createTokenType(_0x5a5ffe,_0x4f62f2){let _0x312de2=[];for(let _0x5644b4 of _0x4f62f2['split']('\x20')){let _0x990cc=[];for(let _0x5e3e69 of _0x5644b4['split']('.')){let _0x17d413=_0x5a5ffe[_0x5e3e69]||tags$1[_0x5e3e69];_0x17d413?'function'==typeof _0x17d413?_0x990cc['length']?_0x990cc=_0x990cc['map'](_0x17d413):warnForPart(_0x5e3e69,'Modifier\x20'+_0x5e3e69+'\x20used\x20at\x20start\x20of\x20tag'):_0x990cc['length']?warnForPart(_0x5e3e69,'Tag\x20'+_0x5e3e69+'\x20used\x20as\x20modifier'):_0x990cc=Array['isArray'](_0x17d413)?_0x17d413:[_0x17d413]:warnForPart(_0x5e3e69,'Unknown\x20highlighting\x20tag\x20'+_0x5e3e69);}for(let _0xa45f01 of _0x990cc)_0x312de2['push'](_0xa45f01);}if(!_0x312de2['length'])return 0x0;let _0x2d2f8b=_0x4f62f2['replace'](/ /g,'_'),_0x170640=_0x2d2f8b+'\x20'+_0x312de2['map'](t=>t['id']),_0x245fc3=byTag[_0x170640];if(_0x245fc3)return _0x245fc3['id'];let _0x995134=byTag[_0x170640]=NodeType['define']({'id':typeArray['length'],'name':_0x2d2f8b,'props':[styleTags({[_0x2d2f8b]:_0x312de2})]});return typeArray['push'](_0x995134),_0x995134['id'];}Direction['RTL'],Direction['LTR'];const toggleComment=_0x5c74e1=>{let {state:_0x3a9528}=_0x5c74e1,_0x1126bb=_0x3a9528['doc']['lineAt'](_0x3a9528['selection']['main']['from']),_0x315886=getConfig(_0x5c74e1['state'],_0x1126bb['from']);return _0x315886['line']?toggleLineComment(_0x5c74e1):!!_0x315886['block']&&toggleBlockCommentByLine(_0x5c74e1);};function command(_0x2e1fab,_0x35f4b9){return({state:_0xe9d952,dispatch:_0x27cc44})=>{if(_0xe9d952['readOnly'])return!0x1;let _0x290710=_0x2e1fab(_0x35f4b9,_0xe9d952);return!!_0x290710&&(_0x27cc44(_0xe9d952['update'](_0x290710)),!0x0);};}const toggleLineComment=command(changeLineComment,0x0),toggleBlockComment=command(changeBlockComment,0x0),toggleBlockCommentByLine=command((_0x4c7cd8,_0x182852)=>changeBlockComment(_0x4c7cd8,_0x182852,selectedLineRanges(_0x182852)),0x0);function getConfig(_0x18d6df,_0x2da104){let _0x5cd562=_0x18d6df['languageDataAt']('commentTokens',_0x2da104,0x1);return _0x5cd562['length']?_0x5cd562[0x0]:{};}const SearchMargin=0x32;function findBlockComment(_0x30448c,{open:_0x570823,close:_0x2e3c87},_0x3f05c0,_0x40b502){let _0x15cb39,_0x9da536,_0x453273=_0x30448c['sliceDoc'](_0x3f05c0-SearchMargin,_0x3f05c0),_0x32053c=_0x30448c['sliceDoc'](_0x40b502,_0x40b502+SearchMargin),_0x5bee85=/\s*$/['exec'](_0x453273)[0x0]['length'],_0x6c5f1e=/^\s*/['exec'](_0x32053c)[0x0]['length'],_0x10f4ef=_0x453273['length']-_0x5bee85;if(_0x453273['slice'](_0x10f4ef-_0x570823['length'],_0x10f4ef)==_0x570823&&_0x32053c['slice'](_0x6c5f1e,_0x6c5f1e+_0x2e3c87['length'])==_0x2e3c87)return{'open':{'pos':_0x3f05c0-_0x5bee85,'margin':_0x5bee85&&0x1},'close':{'pos':_0x40b502+_0x6c5f1e,'margin':_0x6c5f1e&&0x1}};_0x40b502-_0x3f05c0<=0x2*SearchMargin?_0x15cb39=_0x9da536=_0x30448c['sliceDoc'](_0x3f05c0,_0x40b502):(_0x15cb39=_0x30448c['sliceDoc'](_0x3f05c0,_0x3f05c0+SearchMargin),_0x9da536=_0x30448c['sliceDoc'](_0x40b502-SearchMargin,_0x40b502));let _0x10fcaf=/^\s*/['exec'](_0x15cb39)[0x0]['length'],_0x2f4455=/\s*$/['exec'](_0x9da536)[0x0]['length'],_0x48e2db=_0x9da536['length']-_0x2f4455-_0x2e3c87['length'];return _0x15cb39['slice'](_0x10fcaf,_0x10fcaf+_0x570823['length'])==_0x570823&&_0x9da536['slice'](_0x48e2db,_0x48e2db+_0x2e3c87['length'])==_0x2e3c87?{'open':{'pos':_0x3f05c0+_0x10fcaf+_0x570823['length'],'margin':/\s/['test'](_0x15cb39['charAt'](_0x10fcaf+_0x570823['length']))?0x1:0x0},'close':{'pos':_0x40b502-_0x2f4455-_0x2e3c87['length'],'margin':/\s/['test'](_0x9da536['charAt'](_0x48e2db-0x1))?0x1:0x0}}:null;}function selectedLineRanges(_0x5edf5b){let _0x111c95=[];for(let _0x258732 of _0x5edf5b['selection']['ranges']){let _0x4dcdd4=_0x5edf5b['doc']['lineAt'](_0x258732['from']),_0x28173b=_0x258732['to']<=_0x4dcdd4['to']?_0x4dcdd4:_0x5edf5b['doc']['lineAt'](_0x258732['to']);_0x28173b['from']>_0x4dcdd4['from']&&_0x28173b['from']==_0x258732['to']&&(_0x28173b=_0x258732['to']==_0x4dcdd4['to']+0x1?_0x4dcdd4:_0x5edf5b['doc']['lineAt'](_0x258732['to']-0x1));let _0x57dc19=_0x111c95['length']-0x1;_0x57dc19>=0x0&&_0x111c95[_0x57dc19]['to']>_0x4dcdd4['from']?_0x111c95[_0x57dc19]['to']=_0x28173b['to']:_0x111c95['push']({'from':_0x4dcdd4['from']+/^\s*/['exec'](_0x4dcdd4['text'])[0x0]['length'],'to':_0x28173b['to']});}return _0x111c95;}function changeBlockComment(_0x28e1c6,_0x25abb8,_0x4fcfcc=_0x25abb8['selection']['ranges']){let _0x3de6cd=_0x4fcfcc['map'](_0x279cd8=>getConfig(_0x25abb8,_0x279cd8['from'])['block']);if(!_0x3de6cd['every'](_0x4cd16f=>_0x4cd16f))return null;let _0x19f915=_0x4fcfcc['map']((_0x73050f,_0x373038)=>findBlockComment(_0x25abb8,_0x3de6cd[_0x373038],_0x73050f['from'],_0x73050f['to']));if(0x2!=_0x28e1c6&&!_0x19f915['every'](_0xf7e8ad=>_0xf7e8ad))return{'changes':_0x25abb8['changes'](_0x4fcfcc['map']((_0xda75f7,_0x2f643d)=>_0x19f915[_0x2f643d]?[]:[{'from':_0xda75f7['from'],'insert':_0x3de6cd[_0x2f643d]['open']+'\x20'},{'from':_0xda75f7['to'],'insert':'\x20'+_0x3de6cd[_0x2f643d]['close']}]))};if(0x1!=_0x28e1c6&&_0x19f915['some'](_0x54a092=>_0x54a092)){let _0x31f506=[];for(let _0x477cac,_0x10b031=0x0;_0x10b031<_0x19f915['length'];_0x10b031++)if(_0x477cac=_0x19f915[_0x10b031]){let _0x392214=_0x3de6cd[_0x10b031],{open:_0x1295c7,close:_0x2d4d84}=_0x477cac;_0x31f506['push']({'from':_0x1295c7['pos']-_0x392214['open']['length'],'to':_0x1295c7['pos']+_0x1295c7['margin']},{'from':_0x2d4d84['pos']-_0x2d4d84['margin'],'to':_0x2d4d84['pos']+_0x392214['close']['length']});}return{'changes':_0x31f506};}return null;}function changeLineComment(_0x313ae3,_0x526ab3,_0x4c71ed=_0x526ab3['selection']['ranges']){let _0x2b580d=[],_0x2ce546=-0x1;for(let {from:_0x89e402,to:_0x1dad4d}of _0x4c71ed){let _0x2249e4=_0x2b580d['length'],_0x12bef2=0x3b9aca00,_0x5a7878=getConfig(_0x526ab3,_0x89e402)['line'];if(_0x5a7878){for(let _0x43e7a4=_0x89e402;_0x43e7a4<=_0x1dad4d;){let _0x4e9ba2=_0x526ab3['doc']['lineAt'](_0x43e7a4);if(_0x4e9ba2['from']>_0x2ce546&&(_0x89e402==_0x1dad4d||_0x1dad4d>_0x4e9ba2['from'])){_0x2ce546=_0x4e9ba2['from'];let _0x345b3c=/^\s*/['exec'](_0x4e9ba2['text'])[0x0]['length'],_0x41ff6f=_0x345b3c==_0x4e9ba2['length'],_0x406539=_0x4e9ba2['text']['slice'](_0x345b3c,_0x345b3c+_0x5a7878['length'])==_0x5a7878?_0x345b3c:-0x1;_0x345b3c<_0x4e9ba2['text']['length']&&_0x345b3c<_0x12bef2&&(_0x12bef2=_0x345b3c),_0x2b580d['push']({'line':_0x4e9ba2,'comment':_0x406539,'token':_0x5a7878,'indent':_0x345b3c,'empty':_0x41ff6f,'single':!0x1});}_0x43e7a4=_0x4e9ba2['to']+0x1;}if(_0x12bef2<0x3b9aca00){for(let _0x8f2c3a=_0x2249e4;_0x8f2c3a<_0x2b580d['length'];_0x8f2c3a++)_0x2b580d[_0x8f2c3a]['indent']<_0x2b580d[_0x8f2c3a]['line']['text']['length']&&(_0x2b580d[_0x8f2c3a]['indent']=_0x12bef2);}_0x2b580d['length']==_0x2249e4+0x1&&(_0x2b580d[_0x2249e4]['single']=!0x0);}}if(0x2!=_0x313ae3&&_0x2b580d['some'](_0x333f2a=>_0x333f2a['comment']<0x0&&(!_0x333f2a['empty']||_0x333f2a['single']))){let _0x5846b5=[];for(let {line:_0x295072,token:_0x2873ff,indent:_0x46c49f,empty:_0x49733f,single:_0x5cc1f4}of _0x2b580d)!_0x5cc1f4&&_0x49733f||_0x5846b5['push']({'from':_0x295072['from']+_0x46c49f,'insert':_0x2873ff+'\x20'});let _0x4b1e7c=_0x526ab3['changes'](_0x5846b5);return{'changes':_0x4b1e7c,'selection':_0x526ab3['selection']['map'](_0x4b1e7c,0x1)};}if(0x1!=_0x313ae3&&_0x2b580d['some'](_0x2bf972=>_0x2bf972['comment']>=0x0)){let _0x21403a=[];for(let {line:_0x488961,comment:_0x20dad2,token:_0x281819}of _0x2b580d)if(_0x20dad2>=0x0){let _0x51a650=_0x488961['from']+_0x20dad2,_0x4405cc=_0x51a650+_0x281819['length'];'\x20'==_0x488961['text'][_0x4405cc-_0x488961['from']]&&_0x4405cc++,_0x21403a['push']({'from':_0x51a650,'to':_0x4405cc});}return{'changes':_0x21403a};}return null;}const fromHistory=Annotation['define'](),isolateHistory=Annotation['define'](),invertedEffects=Facet['define'](),historyConfig=Facet['define']({'combine':_0x197f14=>combineConfig(_0x197f14,{'minDepth':0x64,'newGroupDelay':0x1f4,'joinToEvent':(_0x46a96b,_0x1ac5d2)=>_0x1ac5d2},{'minDepth':Math['max'],'newGroupDelay':Math['min'],'joinToEvent':(_0x103220,_0x1cd477)=>(_0x2f58d8,_0x1a41f7)=>_0x103220(_0x2f58d8,_0x1a41f7)||_0x1cd477(_0x2f58d8,_0x1a41f7)})}),historyField_=StateField['define']({'create':()=>HistoryState['empty'],'update'(_0x8f246d,_0x5ad3fa){let _0x24d6a9=_0x5ad3fa['state']['facet'](historyConfig),_0x5ef7ae=_0x5ad3fa['annotation'](fromHistory);if(_0x5ef7ae){let _0xbc0f43=HistEvent['fromTransaction'](_0x5ad3fa,_0x5ef7ae['selection']),_0xd3f8e7=_0x5ef7ae['side'],_0xd944a=0x0==_0xd3f8e7?_0x8f246d['undone']:_0x8f246d['done'];return _0xd944a=_0xbc0f43?updateBranch(_0xd944a,_0xd944a['length'],_0x24d6a9['minDepth'],_0xbc0f43):addSelection(_0xd944a,_0x5ad3fa['startState']['selection']),new HistoryState(0x0==_0xd3f8e7?_0x5ef7ae['rest']:_0xd944a,0x0==_0xd3f8e7?_0xd944a:_0x5ef7ae['rest']);}let _0xfb86e5=_0x5ad3fa['annotation'](isolateHistory);if('full'!=_0xfb86e5&&'before'!=_0xfb86e5||(_0x8f246d=_0x8f246d['isolate']()),!0x1===_0x5ad3fa['annotation'](Transaction['addToHistory']))return _0x5ad3fa['changes']['empty']?_0x8f246d:_0x8f246d['addMapping'](_0x5ad3fa['changes']['desc']);let _0x32ff9f=HistEvent['fromTransaction'](_0x5ad3fa),_0x20eec1=_0x5ad3fa['annotation'](Transaction['time']),_0x2f6166=_0x5ad3fa['annotation'](Transaction['userEvent']);return _0x32ff9f?_0x8f246d=_0x8f246d['addChanges'](_0x32ff9f,_0x20eec1,_0x2f6166,_0x24d6a9,_0x5ad3fa):_0x5ad3fa['selection']&&(_0x8f246d=_0x8f246d['addSelection'](_0x5ad3fa['startState']['selection'],_0x20eec1,_0x2f6166,_0x24d6a9['newGroupDelay'])),'full'!=_0xfb86e5&&'after'!=_0xfb86e5||(_0x8f246d=_0x8f246d['isolate']()),_0x8f246d;},'toJSON':_0xd3a64a=>({'done':_0xd3a64a['done']['map'](_0xaf0fcb=>_0xaf0fcb['toJSON']()),'undone':_0xd3a64a['undone']['map'](_0x286ab2=>_0x286ab2['toJSON']())}),'fromJSON':_0x4ebdf3=>new HistoryState(_0x4ebdf3['done']['map'](HistEvent['fromJSON']),_0x4ebdf3['undone']['map'](HistEvent['fromJSON']))});function history(_0x169656={}){return[historyField_,historyConfig['of'](_0x169656),EditorView['domEventHandlers']({'beforeinput'(_0x4547b6,_0x19e835){let _0x1c0cfc='historyUndo'==_0x4547b6['inputType']?undo:'historyRedo'==_0x4547b6['inputType']?redo:null;return!!_0x1c0cfc&&(_0x4547b6['preventDefault'](),_0x1c0cfc(_0x19e835));}})];}function cmd(_0x5ab5df,_0x5b6b88){return function({state:_0x1e9d8e,dispatch:_0xfe94ad}){if(!_0x5b6b88&&_0x1e9d8e['readOnly'])return!0x1;let _0x360655=_0x1e9d8e['field'](historyField_,!0x1);if(!_0x360655)return!0x1;let _0x1ff12e=_0x360655['pop'](_0x5ab5df,_0x1e9d8e,_0x5b6b88);return!!_0x1ff12e&&(_0xfe94ad(_0x1ff12e),!0x0);};}const undo=cmd(0x0,!0x1),redo=cmd(0x1,!0x1),undoSelection=cmd(0x0,!0x0),redoSelection=cmd(0x1,!0x0);class HistEvent{constructor(_0x1ab045,_0x2d3162,_0x296a1a,_0x434dba,_0x31ac49){this['changes']=_0x1ab045,this['effects']=_0x2d3162,this['mapped']=_0x296a1a,this['startSelection']=_0x434dba,this['selectionsAfter']=_0x31ac49;}['setSelAfter'](_0x23082f){return new HistEvent(this['changes'],this['effects'],this['mapped'],this['startSelection'],_0x23082f);}['toJSON'](){var _0x1f8e78,_0x3c546c,_0x56a1c5;return{'changes':null===(_0x1f8e78=this['changes'])||void 0x0===_0x1f8e78?void 0x0:_0x1f8e78['toJSON'](),'mapped':null===(_0x3c546c=this['mapped'])||void 0x0===_0x3c546c?void 0x0:_0x3c546c['toJSON'](),'startSelection':null===(_0x56a1c5=this['startSelection'])||void 0x0===_0x56a1c5?void 0x0:_0x56a1c5['toJSON'](),'selectionsAfter':this['selectionsAfter']['map'](_0x5c1e5b=>_0x5c1e5b['toJSON']())};}static['fromJSON'](_0x32ccbc){return new HistEvent(_0x32ccbc['changes']&&ChangeSet['fromJSON'](_0x32ccbc['changes']),[],_0x32ccbc['mapped']&&ChangeDesc['fromJSON'](_0x32ccbc['mapped']),_0x32ccbc['startSelection']&&EditorSelection['fromJSON'](_0x32ccbc['startSelection']),_0x32ccbc['selectionsAfter']['map'](EditorSelection['fromJSON']));}static['fromTransaction'](_0x5eb11d,_0x57e0ca){let _0x50608f=none$2;for(let _0x53cde7 of _0x5eb11d['startState']['facet'](invertedEffects)){let _0x33a36f=_0x53cde7(_0x5eb11d);_0x33a36f['length']&&(_0x50608f=_0x50608f['concat'](_0x33a36f));}return!_0x50608f['length']&&_0x5eb11d['changes']['empty']?null:new HistEvent(_0x5eb11d['changes']['invert'](_0x5eb11d['startState']['doc']),_0x50608f,void 0x0,_0x57e0ca||_0x5eb11d['startState']['selection'],none$2);}static['selection'](_0x1e0836){return new HistEvent(void 0x0,none$2,void 0x0,void 0x0,_0x1e0836);}}function updateBranch(_0x102247,_0x29bd60,_0x65b81b,_0x41c958){let _0x321bf2=_0x29bd60+0x1>_0x65b81b+0x14?_0x29bd60-_0x65b81b-0x1:0x0,_0x484474=_0x102247['slice'](_0x321bf2,_0x29bd60);return _0x484474['push'](_0x41c958),_0x484474;}function isAdjacent(_0x267c53,_0x3e63c7){let _0x30eb4b=[],_0xb8acc0=!0x1;return _0x267c53['iterChangedRanges']((_0x34eebb,t)=>_0x30eb4b['push'](_0x34eebb,t)),_0x3e63c7['iterChangedRanges']((_0x4a0e67,_0x4beb4,_0x57fa7b,t)=>{for(let _0x58362f=0x0;_0x58362f<_0x30eb4b['length'];){let _0x284cb7=_0x30eb4b[_0x58362f++],_0x434613=_0x30eb4b[_0x58362f++];t>=_0x284cb7&&_0x57fa7b<=_0x434613&&(_0xb8acc0=!0x0);}}),_0xb8acc0;}function eqSelectionShape(_0xb34cf5,_0xbefef){return _0xb34cf5['ranges']['length']==_0xbefef['ranges']['length']&&0x0===_0xb34cf5['ranges']['filter']((_0x5f58ea,_0x4565a6)=>_0x5f58ea['empty']!=_0xbefef['ranges'][_0x4565a6]['empty'])['length'];}function conc(_0x365b15,_0x8a7f06){return _0x365b15['length']?_0x8a7f06['length']?_0x365b15['concat'](_0x8a7f06):_0x365b15:_0x8a7f06;}const none$2=[],MaxSelectionsPerEvent=0xc8;function addSelection(_0x34cf22,_0xf8363c){if(_0x34cf22['length']){let _0x1af751=_0x34cf22[_0x34cf22['length']-0x1],_0x59ea5c=_0x1af751['selectionsAfter']['slice'](Math['max'](0x0,_0x1af751['selectionsAfter']['length']-MaxSelectionsPerEvent));return _0x59ea5c['length']&&_0x59ea5c[_0x59ea5c['length']-0x1]['eq'](_0xf8363c)?_0x34cf22:(_0x59ea5c['push'](_0xf8363c),updateBranch(_0x34cf22,_0x34cf22['length']-0x1,0x3b9aca00,_0x1af751['setSelAfter'](_0x59ea5c)));}return[HistEvent['selection']([_0xf8363c])];}function popSelection(_0x4eb7d8){let _0x1d7f8f=_0x4eb7d8[_0x4eb7d8['length']-0x1],_0x1854f0=_0x4eb7d8['slice']();return _0x1854f0[_0x4eb7d8['length']-0x1]=_0x1d7f8f['setSelAfter'](_0x1d7f8f['selectionsAfter']['slice'](0x0,_0x1d7f8f['selectionsAfter']['length']-0x1)),_0x1854f0;}function addMappingToBranch(_0x1ef186,_0x3841c6){if(!_0x1ef186['length'])return _0x1ef186;let _0x3a2846=_0x1ef186['length'],_0x173dd6=none$2;for(;_0x3a2846;){let _0x3d2ddf=mapEvent(_0x1ef186[_0x3a2846-0x1],_0x3841c6,_0x173dd6);if(_0x3d2ddf['changes']&&!_0x3d2ddf['changes']['empty']||_0x3d2ddf['effects']['length']){let _0x222a93=_0x1ef186['slice'](0x0,_0x3a2846);return _0x222a93[_0x3a2846-0x1]=_0x3d2ddf,_0x222a93;}_0x3841c6=_0x3d2ddf['mapped'],_0x3a2846--,_0x173dd6=_0x3d2ddf['selectionsAfter'];}return _0x173dd6['length']?[HistEvent['selection'](_0x173dd6)]:none$2;}function mapEvent(_0x1b3c70,_0x51b494,_0x1d0c3e){let _0x182348=conc(_0x1b3c70['selectionsAfter']['length']?_0x1b3c70['selectionsAfter']['map'](_0x3e1750=>_0x3e1750['map'](_0x51b494)):none$2,_0x1d0c3e);if(!_0x1b3c70['changes'])return HistEvent['selection'](_0x182348);let _0x19512d=_0x1b3c70['changes']['map'](_0x51b494),_0x2cc938=_0x51b494['mapDesc'](_0x1b3c70['changes'],!0x0),_0xcd9957=_0x1b3c70['mapped']?_0x1b3c70['mapped']['composeDesc'](_0x2cc938):_0x2cc938;return new HistEvent(_0x19512d,StateEffect['mapEffects'](_0x1b3c70['effects'],_0x51b494),_0xcd9957,_0x1b3c70['startSelection']['map'](_0x2cc938),_0x182348);}const joinableUserEvent=/^(input\.type|delete)($|\.)/;class HistoryState{constructor(_0x134b15,_0x482a6f,_0x38539e=0x0,_0x11e08b=void 0x0){this['done']=_0x134b15,this['undone']=_0x482a6f,this['prevTime']=_0x38539e,this['prevUserEvent']=_0x11e08b;}['isolate'](){return this['prevTime']?new HistoryState(this['done'],this['undone']):this;}['addChanges'](_0x46b518,_0x268adb,_0x368589,_0x533f03,_0xa33b70){let _0x301328=this['done'],_0x4ba936=_0x301328[_0x301328['length']-0x1];return _0x301328=_0x4ba936&&_0x4ba936['changes']&&!_0x4ba936['changes']['empty']&&_0x46b518['changes']&&(!_0x368589||joinableUserEvent['test'](_0x368589))&&(!_0x4ba936['selectionsAfter']['length']&&_0x268adb-this['prevTime']<_0x533f03['newGroupDelay']&&_0x533f03['joinToEvent'](_0xa33b70,isAdjacent(_0x4ba936['changes'],_0x46b518['changes']))||'input.type.compose'==_0x368589)?updateBranch(_0x301328,_0x301328['length']-0x1,_0x533f03['minDepth'],new HistEvent(_0x46b518['changes']['compose'](_0x4ba936['changes']),conc(StateEffect['mapEffects'](_0x46b518['effects'],_0x4ba936['changes']),_0x4ba936['effects']),_0x4ba936['mapped'],_0x4ba936['startSelection'],none$2)):updateBranch(_0x301328,_0x301328['length'],_0x533f03['minDepth'],_0x46b518),new HistoryState(_0x301328,none$2,_0x268adb,_0x368589);}['addSelection'](_0xce2142,_0x26b1d8,_0x11afab,_0x172fde){let _0x21ed87=this['done']['length']?this['done'][this['done']['length']-0x1]['selectionsAfter']:none$2;return _0x21ed87['length']>0x0&&_0x26b1d8-this['prevTime']<_0x172fde&&_0x11afab==this['prevUserEvent']&&_0x11afab&&/^select($|\.)/['test'](_0x11afab)&&eqSelectionShape(_0x21ed87[_0x21ed87['length']-0x1],_0xce2142)?this:new HistoryState(addSelection(this['done'],_0xce2142),this['undone'],_0x26b1d8,_0x11afab);}['addMapping'](_0x17e7b9){return new HistoryState(addMappingToBranch(this['done'],_0x17e7b9),addMappingToBranch(this['undone'],_0x17e7b9),this['prevTime'],this['prevUserEvent']);}['pop'](_0x4be7f6,_0x3ebfc1,_0x4dc1e1){let _0x16e20f=0x0==_0x4be7f6?this['done']:this['undone'];if(0x0==_0x16e20f['length'])return null;let _0x19c420=_0x16e20f[_0x16e20f['length']-0x1],_0x557c7c=_0x19c420['selectionsAfter'][0x0]||_0x3ebfc1['selection'];if(_0x4dc1e1&&_0x19c420['selectionsAfter']['length'])return _0x3ebfc1['update']({'selection':_0x19c420['selectionsAfter'][_0x19c420['selectionsAfter']['length']-0x1],'annotations':fromHistory['of']({'side':_0x4be7f6,'rest':popSelection(_0x16e20f),'selection':_0x557c7c}),'userEvent':0x0==_0x4be7f6?'select.undo':'select.redo','scrollIntoView':!0x0});if(_0x19c420['changes']){let _0x482d5a=0x1==_0x16e20f['length']?none$2:_0x16e20f['slice'](0x0,_0x16e20f['length']-0x1);return _0x19c420['mapped']&&(_0x482d5a=addMappingToBranch(_0x482d5a,_0x19c420['mapped'])),_0x3ebfc1['update']({'changes':_0x19c420['changes'],'selection':_0x19c420['startSelection'],'effects':_0x19c420['effects'],'annotations':fromHistory['of']({'side':_0x4be7f6,'rest':_0x482d5a,'selection':_0x557c7c}),'filter':!0x1,'userEvent':0x0==_0x4be7f6?'undo':'redo','scrollIntoView':!0x0});}return null;}}HistoryState['empty']=new HistoryState(none$2,none$2);const historyKeymap=[{'key':'Mod-z','run':undo,'preventDefault':!0x0},{'key':'Mod-y','mac':'Mod-Shift-z','run':redo,'preventDefault':!0x0},{'linux':'Ctrl-Shift-z','run':redo,'preventDefault':!0x0},{'key':'Mod-u','run':undoSelection,'preventDefault':!0x0},{'key':'Alt-u','mac':'Mod-Shift-u','run':redoSelection,'preventDefault':!0x0}];function updateSel(_0x3bf564,_0x263757){return EditorSelection['create'](_0x3bf564['ranges']['map'](_0x263757),_0x3bf564['mainIndex']);}function setSel(_0x164189,_0x20f082){return _0x164189['update']({'selection':_0x20f082,'scrollIntoView':!0x0,'userEvent':'select'});}function moveSel({state:_0x1d6d53,dispatch:_0x225f8b},_0x5ddcb6){let _0x2d73b0=updateSel(_0x1d6d53['selection'],_0x5ddcb6);return!_0x2d73b0['eq'](_0x1d6d53['selection'],!0x0)&&(_0x225f8b(setSel(_0x1d6d53,_0x2d73b0)),!0x0);}function rangeEnd(_0x35bf72,_0x40a9b5){return EditorSelection['cursor'](_0x40a9b5?_0x35bf72['to']:_0x35bf72['from']);}function cursorByChar(_0x1db1f8,_0x1cfc82){return moveSel(_0x1db1f8,_0x2f35dd=>_0x2f35dd['empty']?_0x1db1f8['moveByChar'](_0x2f35dd,_0x1cfc82):rangeEnd(_0x2f35dd,_0x1cfc82));}function ltrAtCursor(_0x1c9a0d){return _0x1c9a0d['textDirectionAt'](_0x1c9a0d['state']['selection']['main']['head'])==Direction['LTR'];}const cursorCharLeft=_0x719035=>cursorByChar(_0x719035,!ltrAtCursor(_0x719035)),cursorCharRight=_0x5202d4=>cursorByChar(_0x5202d4,ltrAtCursor(_0x5202d4));function cursorByGroup(_0x21785d,_0x247709){return moveSel(_0x21785d,_0x56df43=>_0x56df43['empty']?_0x21785d['moveByGroup'](_0x56df43,_0x247709):rangeEnd(_0x56df43,_0x247709));}const cursorGroupLeft=_0x1bdf45=>cursorByGroup(_0x1bdf45,!ltrAtCursor(_0x1bdf45)),cursorGroupRight=_0x3ecae9=>cursorByGroup(_0x3ecae9,ltrAtCursor(_0x3ecae9));function interestingNode(_0x17c42f,_0x562f8f,_0x123202){if(_0x562f8f['type']['prop'](_0x123202))return!0x0;let _0x2a7c4a=_0x562f8f['to']-_0x562f8f['from'];return _0x2a7c4a&&(_0x2a7c4a>0x2||/[^\s,.;:]/['test'](_0x17c42f['sliceDoc'](_0x562f8f['from'],_0x562f8f['to'])))||_0x562f8f['firstChild'];}function moveBySyntax(_0x1eb485,_0x56029b,_0x1d4757){let _0xeb63bc,_0x960ae6,_0x3eb2e8=syntaxTree(_0x1eb485)['resolveInner'](_0x56029b['head']),_0x45f828=_0x1d4757?NodeProp['closedBy']:NodeProp['openedBy'];for(let _0x3b99da=_0x56029b['head'];;){let _0x5720c3=_0x1d4757?_0x3eb2e8['childAfter'](_0x3b99da):_0x3eb2e8['childBefore'](_0x3b99da);if(!_0x5720c3)break;interestingNode(_0x1eb485,_0x5720c3,_0x45f828)?_0x3eb2e8=_0x5720c3:_0x3b99da=_0x1d4757?_0x5720c3['to']:_0x5720c3['from'];}return _0x960ae6=_0x3eb2e8['type']['prop'](_0x45f828)&&(_0xeb63bc=_0x1d4757?matchBrackets(_0x1eb485,_0x3eb2e8['from'],0x1):matchBrackets(_0x1eb485,_0x3eb2e8['to'],-0x1))&&_0xeb63bc['matched']?_0x1d4757?_0xeb63bc['end']['to']:_0xeb63bc['end']['from']:_0x1d4757?_0x3eb2e8['to']:_0x3eb2e8['from'],EditorSelection['cursor'](_0x960ae6,_0x1d4757?-0x1:0x1);}const cursorSyntaxLeft=_0x3159f1=>moveSel(_0x3159f1,_0x56d60f=>moveBySyntax(_0x3159f1['state'],_0x56d60f,!ltrAtCursor(_0x3159f1))),cursorSyntaxRight=_0x2578e5=>moveSel(_0x2578e5,_0x1e7dfa=>moveBySyntax(_0x2578e5['state'],_0x1e7dfa,ltrAtCursor(_0x2578e5)));function cursorByLine(_0x3f5772,_0x119431){return moveSel(_0x3f5772,_0x16aeb6=>{if(!_0x16aeb6['empty'])return rangeEnd(_0x16aeb6,_0x119431);let _0x30a2ab=_0x3f5772['moveVertically'](_0x16aeb6,_0x119431);return _0x30a2ab['head']!=_0x16aeb6['head']?_0x30a2ab:_0x3f5772['moveToLineBoundary'](_0x16aeb6,_0x119431);});}const cursorLineUp=_0x530d7e=>cursorByLine(_0x530d7e,!0x1),cursorLineDown=_0xf92714=>cursorByLine(_0xf92714,!0x0);function pageInfo(_0x505485){let _0x35bde6,_0x592ff3=_0x505485['scrollDOM']['clientHeight']<_0x505485['scrollDOM']['scrollHeight']-0x2,_0x564e08=0x0,_0x1f941b=0x0;if(_0x592ff3){for(let _0x15d60c of _0x505485['state']['facet'](EditorView['scrollMargins'])){let _0x2a7133=_0x15d60c(_0x505485);(null==_0x2a7133?void 0x0:_0x2a7133['top'])&&(_0x564e08=Math['max'](null==_0x2a7133?void 0x0:_0x2a7133['top'],_0x564e08)),(null==_0x2a7133?void 0x0:_0x2a7133['bottom'])&&(_0x1f941b=Math['max'](null==_0x2a7133?void 0x0:_0x2a7133['bottom'],_0x1f941b));}_0x35bde6=_0x505485['scrollDOM']['clientHeight']-_0x564e08-_0x1f941b;}else _0x35bde6=(_0x505485['dom']['ownerDocument']['defaultView']||window)['innerHeight'];return{'marginTop':_0x564e08,'marginBottom':_0x1f941b,'selfScroll':_0x592ff3,'height':Math['max'](_0x505485['defaultLineHeight'],_0x35bde6-0x5)};}function cursorByPage(_0x1ee7aa,_0x4db3e6){let _0x5c282e,_0x274d04=pageInfo(_0x1ee7aa),{state:_0xc87361}=_0x1ee7aa,_0x2625c6=updateSel(_0xc87361['selection'],_0x7c569e=>_0x7c569e['empty']?_0x1ee7aa['moveVertically'](_0x7c569e,_0x4db3e6,_0x274d04['height']):rangeEnd(_0x7c569e,_0x4db3e6));if(_0x2625c6['eq'](_0xc87361['selection']))return!0x1;if(_0x274d04['selfScroll']){let _0x4568da=_0x1ee7aa['coordsAtPos'](_0xc87361['selection']['main']['head']),_0x336601=_0x1ee7aa['scrollDOM']['getBoundingClientRect'](),_0x3cf144=_0x336601['top']+_0x274d04['marginTop'],_0x3e4df3=_0x336601['bottom']-_0x274d04['marginBottom'];_0x4568da&&_0x4568da['top']>_0x3cf144&&_0x4568da['bottom']<_0x3e4df3&&(_0x5c282e=EditorView['scrollIntoView'](_0x2625c6['main']['head'],{'y':'start','yMargin':_0x4568da['top']-_0x3cf144}));}return _0x1ee7aa['dispatch'](setSel(_0xc87361,_0x2625c6),{'effects':_0x5c282e}),!0x0;}const cursorPageUp=_0x259fcd=>cursorByPage(_0x259fcd,!0x1),cursorPageDown=_0x253ef0=>cursorByPage(_0x253ef0,!0x0);function moveByLineBoundary(_0x3cade3,_0x15dd74,_0x405d58){let _0x497db3=_0x3cade3['lineBlockAt'](_0x15dd74['head']),_0x369616=_0x3cade3['moveToLineBoundary'](_0x15dd74,_0x405d58);if(_0x369616['head']==_0x15dd74['head']&&_0x369616['head']!=(_0x405d58?_0x497db3['to']:_0x497db3['from'])&&(_0x369616=_0x3cade3['moveToLineBoundary'](_0x15dd74,_0x405d58,!0x1)),!_0x405d58&&_0x369616['head']==_0x497db3['from']&&_0x497db3['length']){let _0x47e43a=/^\s*/['exec'](_0x3cade3['state']['sliceDoc'](_0x497db3['from'],Math['min'](_0x497db3['from']+0x64,_0x497db3['to'])))[0x0]['length'];_0x47e43a&&_0x15dd74['head']!=_0x497db3['from']+_0x47e43a&&(_0x369616=EditorSelection['cursor'](_0x497db3['from']+_0x47e43a));}return _0x369616;}const cursorLineBoundaryForward=_0x59bcb5=>moveSel(_0x59bcb5,_0x235748=>moveByLineBoundary(_0x59bcb5,_0x235748,!0x0)),cursorLineBoundaryBackward=_0x20130c=>moveSel(_0x20130c,_0x590f68=>moveByLineBoundary(_0x20130c,_0x590f68,!0x1)),cursorLineBoundaryLeft=_0x11463b=>moveSel(_0x11463b,_0x2c2dc7=>moveByLineBoundary(_0x11463b,_0x2c2dc7,!ltrAtCursor(_0x11463b))),cursorLineBoundaryRight=_0x21d725=>moveSel(_0x21d725,_0x2832f5=>moveByLineBoundary(_0x21d725,_0x2832f5,ltrAtCursor(_0x21d725))),cursorLineStart=_0x4c4b68=>moveSel(_0x4c4b68,_0x5bd4e7=>EditorSelection['cursor'](_0x4c4b68['lineBlockAt'](_0x5bd4e7['head'])['from'],0x1)),cursorLineEnd=_0x5a3619=>moveSel(_0x5a3619,_0x2b8d5e=>EditorSelection['cursor'](_0x5a3619['lineBlockAt'](_0x2b8d5e['head'])['to'],-0x1));function toMatchingBracket(_0x1c2a85,_0x2be6ee,_0x55e31c){let _0x816351=!0x1,_0x20b19d=updateSel(_0x1c2a85['selection'],_0x5c0647=>{let _0xbbc1da=matchBrackets(_0x1c2a85,_0x5c0647['head'],-0x1)||matchBrackets(_0x1c2a85,_0x5c0647['head'],0x1)||_0x5c0647['head']>0x0&&matchBrackets(_0x1c2a85,_0x5c0647['head']-0x1,0x1)||_0x5c0647['head']<_0x1c2a85['doc']['length']&&matchBrackets(_0x1c2a85,_0x5c0647['head']+0x1,-0x1);if(!_0xbbc1da||!_0xbbc1da['end'])return _0x5c0647;_0x816351=!0x0;let _0x3cb64b=_0xbbc1da['start']['from']==_0x5c0647['head']?_0xbbc1da['end']['to']:_0xbbc1da['end']['from'];return EditorSelection['cursor'](_0x3cb64b);});return!!_0x816351&&(_0x2be6ee(setSel(_0x1c2a85,_0x20b19d)),!0x0);}const cursorMatchingBracket=({state:_0x530d43,dispatch:_0x1f743b})=>toMatchingBracket(_0x530d43,_0x1f743b);function extendSel(_0x25a35b,_0x21cf82){let _0x4edcbf=updateSel(_0x25a35b['state']['selection'],_0xb4d7b6=>{let _0x97392d=_0x21cf82(_0xb4d7b6);return EditorSelection['range'](_0xb4d7b6['anchor'],_0x97392d['head'],_0x97392d['goalColumn'],_0x97392d['bidiLevel']||void 0x0);});return!_0x4edcbf['eq'](_0x25a35b['state']['selection'])&&(_0x25a35b['dispatch'](setSel(_0x25a35b['state'],_0x4edcbf)),!0x0);}function selectByChar(_0x5f0c1d,_0x2dd523){return extendSel(_0x5f0c1d,_0x2cce71=>_0x5f0c1d['moveByChar'](_0x2cce71,_0x2dd523));}const selectCharLeft=_0x714191=>selectByChar(_0x714191,!ltrAtCursor(_0x714191)),selectCharRight=_0x2b1a43=>selectByChar(_0x2b1a43,ltrAtCursor(_0x2b1a43));function selectByGroup(_0x2ef2a6,_0xd3e78d){return extendSel(_0x2ef2a6,_0x9860fd=>_0x2ef2a6['moveByGroup'](_0x9860fd,_0xd3e78d));}const selectGroupLeft=_0x32a4f3=>selectByGroup(_0x32a4f3,!ltrAtCursor(_0x32a4f3)),selectGroupRight=_0x1caabb=>selectByGroup(_0x1caabb,ltrAtCursor(_0x1caabb)),selectSyntaxLeft=_0x227414=>extendSel(_0x227414,_0x582dcf=>moveBySyntax(_0x227414['state'],_0x582dcf,!ltrAtCursor(_0x227414))),selectSyntaxRight=_0x5a06b1=>extendSel(_0x5a06b1,_0x179d55=>moveBySyntax(_0x5a06b1['state'],_0x179d55,ltrAtCursor(_0x5a06b1)));function selectByLine(_0x4dc064,_0x4774ae){return extendSel(_0x4dc064,_0x4fa6ee=>_0x4dc064['moveVertically'](_0x4fa6ee,_0x4774ae));}const selectLineUp=_0x4f59ac=>selectByLine(_0x4f59ac,!0x1),selectLineDown=_0x39829e=>selectByLine(_0x39829e,!0x0);function selectByPage(_0x2659bb,_0x1b06be){return extendSel(_0x2659bb,_0x5a6518=>_0x2659bb['moveVertically'](_0x5a6518,_0x1b06be,pageInfo(_0x2659bb)['height']));}const selectPageUp=_0x249c37=>selectByPage(_0x249c37,!0x1),selectPageDown=_0x8d6b76=>selectByPage(_0x8d6b76,!0x0),selectLineBoundaryForward=_0x4037dd=>extendSel(_0x4037dd,_0x4722d7=>moveByLineBoundary(_0x4037dd,_0x4722d7,!0x0)),selectLineBoundaryBackward=_0x542dfb=>extendSel(_0x542dfb,_0x1677b9=>moveByLineBoundary(_0x542dfb,_0x1677b9,!0x1)),selectLineBoundaryLeft=_0x1944d4=>extendSel(_0x1944d4,_0x275c05=>moveByLineBoundary(_0x1944d4,_0x275c05,!ltrAtCursor(_0x1944d4))),selectLineBoundaryRight=_0x1ab2d0=>extendSel(_0x1ab2d0,_0xce0578=>moveByLineBoundary(_0x1ab2d0,_0xce0578,ltrAtCursor(_0x1ab2d0))),selectLineStart=_0x34d6ae=>extendSel(_0x34d6ae,_0x3c8d24=>EditorSelection['cursor'](_0x34d6ae['lineBlockAt'](_0x3c8d24['head'])['from'])),selectLineEnd=_0x58ca4c=>extendSel(_0x58ca4c,_0x401634=>EditorSelection['cursor'](_0x58ca4c['lineBlockAt'](_0x401634['head'])['to'])),cursorDocStart=({state:_0x515fc6,dispatch:_0x7dc14a})=>(_0x7dc14a(setSel(_0x515fc6,{'anchor':0x0})),!0x0),cursorDocEnd=({state:_0xd20d7c,dispatch:_0x531412})=>(_0x531412(setSel(_0xd20d7c,{'anchor':_0xd20d7c['doc']['length']})),!0x0),selectDocStart=({state:_0x3de261,dispatch:_0x12465f})=>(_0x12465f(setSel(_0x3de261,{'anchor':_0x3de261['selection']['main']['anchor'],'head':0x0})),!0x0),selectDocEnd=({state:_0x586ecc,dispatch:_0x38c249})=>(_0x38c249(setSel(_0x586ecc,{'anchor':_0x586ecc['selection']['main']['anchor'],'head':_0x586ecc['doc']['length']})),!0x0),selectAll=({state:_0x12ca45,dispatch:_0x4d461d})=>(_0x4d461d(_0x12ca45['update']({'selection':{'anchor':0x0,'head':_0x12ca45['doc']['length']},'userEvent':'select'})),!0x0),selectLine=({state:_0x1ab1a6,dispatch:_0x58bcb8})=>{let _0x290352=selectedLineBlocks(_0x1ab1a6)['map'](({from:_0x1e44d9,to:_0x179175})=>EditorSelection['range'](_0x1e44d9,Math['min'](_0x179175+0x1,_0x1ab1a6['doc']['length'])));return _0x58bcb8(_0x1ab1a6['update']({'selection':EditorSelection['create'](_0x290352),'userEvent':'select'})),!0x0;},selectParentSyntax=({state:_0x38371b,dispatch:_0xff710d})=>{let _0x2cc047=updateSel(_0x38371b['selection'],_0x14a184=>{let _0x246ae3=syntaxTree(_0x38371b),_0x1a83ec=_0x246ae3['resolveStack'](_0x14a184['from'],0x1);if(_0x14a184['empty']){let _0x3b19c5=_0x246ae3['resolveStack'](_0x14a184['from'],-0x1);_0x3b19c5['node']['from']>=_0x1a83ec['node']['from']&&_0x3b19c5['node']['to']<=_0x1a83ec['node']['to']&&(_0x1a83ec=_0x3b19c5);}for(let _0x32b30b=_0x1a83ec;_0x32b30b;_0x32b30b=_0x32b30b['next']){let {node:_0x2a48f3}=_0x32b30b;if((_0x2a48f3['from']<_0x14a184['from']&&_0x2a48f3['to']>=_0x14a184['to']||_0x2a48f3['to']>_0x14a184['to']&&_0x2a48f3['from']<=_0x14a184['from'])&&_0x32b30b['next'])return EditorSelection['range'](_0x2a48f3['to'],_0x2a48f3['from']);}return _0x14a184;});return!_0x2cc047['eq'](_0x38371b['selection'])&&(_0xff710d(setSel(_0x38371b,_0x2cc047)),!0x0);},simplifySelection=({state:_0x4345cb,dispatch:_0x57b5e3})=>{let _0x3aca58=_0x4345cb['selection'],_0x41d9e6=null;return _0x3aca58['ranges']['length']>0x1?_0x41d9e6=EditorSelection['create']([_0x3aca58['main']]):_0x3aca58['main']['empty']||(_0x41d9e6=EditorSelection['create']([EditorSelection['cursor'](_0x3aca58['main']['head'])])),!!_0x41d9e6&&(_0x57b5e3(setSel(_0x4345cb,_0x41d9e6)),!0x0);};function deleteBy(_0x1ea553,_0x333a4a){if(_0x1ea553['state']['readOnly'])return!0x1;let _0x1ca9e4='delete.selection',{state:_0x3b925e}=_0x1ea553,_0x4f08f3=_0x3b925e['changeByRange'](_0x4a6002=>{let {from:_0xaba07,to:_0x2e588a}=_0x4a6002;if(_0xaba07==_0x2e588a){let _0x2033b7=_0x333a4a(_0x4a6002);_0x2033b7<_0xaba07?(_0x1ca9e4='delete.backward',_0x2033b7=skipAtomic(_0x1ea553,_0x2033b7,!0x1)):_0x2033b7>_0xaba07&&(_0x1ca9e4='delete.forward',_0x2033b7=skipAtomic(_0x1ea553,_0x2033b7,!0x0)),_0xaba07=Math['min'](_0xaba07,_0x2033b7),_0x2e588a=Math['max'](_0x2e588a,_0x2033b7);}else _0xaba07=skipAtomic(_0x1ea553,_0xaba07,!0x1),_0x2e588a=skipAtomic(_0x1ea553,_0x2e588a,!0x0);return _0xaba07==_0x2e588a?{'range':_0x4a6002}:{'changes':{'from':_0xaba07,'to':_0x2e588a},'range':EditorSelection['cursor'](_0xaba07,_0xaba07<_0x4a6002['head']?-0x1:0x1)};});return!_0x4f08f3['changes']['empty']&&(_0x1ea553['dispatch'](_0x3b925e['update'](_0x4f08f3,{'scrollIntoView':!0x0,'userEvent':_0x1ca9e4,'effects':'delete.selection'==_0x1ca9e4?EditorView['announce']['of'](_0x3b925e['phrase']('Selection\x20deleted')):void 0x0})),!0x0);}function skipAtomic(_0x5b5ec5,_0x45c070,_0x1a389f){if(_0x5b5ec5 instanceof EditorView){for(let _0x83b2e3 of _0x5b5ec5['state']['facet'](EditorView['atomicRanges'])['map'](_0x1be770=>_0x1be770(_0x5b5ec5)))_0x83b2e3['between'](_0x45c070,_0x45c070,(_0x58b1e7,_0x47b84a)=>{_0x58b1e7<_0x45c070&&_0x47b84a>_0x45c070&&(_0x45c070=_0x1a389f?_0x47b84a:_0x58b1e7);});}return _0x45c070;}const deleteByChar=(_0x494ff2,_0x3cfc1a,_0x121192)=>deleteBy(_0x494ff2,_0x1afed0=>{let _0x3785c2,_0x55aacc,_0x7f357b=_0x1afed0['from'],{state:_0x3baeaa}=_0x494ff2,_0x5c3d7c=_0x3baeaa['doc']['lineAt'](_0x7f357b);if(_0x121192&&!_0x3cfc1a&&_0x7f357b>_0x5c3d7c['from']&&_0x7f357b<_0x5c3d7c['from']+0xc8&&!/[^ \t]/['test'](_0x3785c2=_0x5c3d7c['text']['slice'](0x0,_0x7f357b-_0x5c3d7c['from']))){if('\x09'==_0x3785c2[_0x3785c2['length']-0x1])return _0x7f357b-0x1;let _0x2ad87b=countColumn(_0x3785c2,_0x3baeaa['tabSize'])%getIndentUnit(_0x3baeaa)||getIndentUnit(_0x3baeaa);for(let _0x39e9e1=0x0;_0x39e9e1<_0x2ad87b&&'\x20'==_0x3785c2[_0x3785c2['length']-0x1-_0x39e9e1];_0x39e9e1++)_0x7f357b--;_0x55aacc=_0x7f357b;}else _0x55aacc=findClusterBreak(_0x5c3d7c['text'],_0x7f357b-_0x5c3d7c['from'],_0x3cfc1a,_0x3cfc1a)+_0x5c3d7c['from'],_0x55aacc==_0x7f357b&&_0x5c3d7c['number']!=(_0x3cfc1a?_0x3baeaa['doc']['lines']:0x1)?_0x55aacc+=_0x3cfc1a?0x1:-0x1:!_0x3cfc1a&&/[\ufe00-\ufe0f]/['test'](_0x5c3d7c['text']['slice'](_0x55aacc-_0x5c3d7c['from'],_0x7f357b-_0x5c3d7c['from']))&&(_0x55aacc=findClusterBreak(_0x5c3d7c['text'],_0x55aacc-_0x5c3d7c['from'],!0x1,!0x1)+_0x5c3d7c['from']);return _0x55aacc;}),deleteCharBackward=_0x50507c=>deleteByChar(_0x50507c,!0x1,!0x0),deleteCharForward=_0x4cfd3f=>deleteByChar(_0x4cfd3f,!0x0,!0x1),deleteByGroup=(_0x1b2069,_0x262591)=>deleteBy(_0x1b2069,_0x3f2081=>{let _0x5c38f8=_0x3f2081['head'],{state:_0x4e79fd}=_0x1b2069,_0x330c30=_0x4e79fd['doc']['lineAt'](_0x5c38f8),_0x555fb8=_0x4e79fd['charCategorizer'](_0x5c38f8);for(let _0x2e18dc=null;;){if(_0x5c38f8==(_0x262591?_0x330c30['to']:_0x330c30['from'])){_0x5c38f8==_0x3f2081['head']&&_0x330c30['number']!=(_0x262591?_0x4e79fd['doc']['lines']:0x1)&&(_0x5c38f8+=_0x262591?0x1:-0x1);break;}let _0x77ed06=findClusterBreak(_0x330c30['text'],_0x5c38f8-_0x330c30['from'],_0x262591)+_0x330c30['from'],_0x46ba27=_0x330c30['text']['slice'](Math['min'](_0x5c38f8,_0x77ed06)-_0x330c30['from'],Math['max'](_0x5c38f8,_0x77ed06)-_0x330c30['from']),_0x563a87=_0x555fb8(_0x46ba27);if(null!=_0x2e18dc&&_0x563a87!=_0x2e18dc)break;'\x20'==_0x46ba27&&_0x5c38f8==_0x3f2081['head']||(_0x2e18dc=_0x563a87),_0x5c38f8=_0x77ed06;}return _0x5c38f8;}),deleteGroupBackward=_0x40cd71=>deleteByGroup(_0x40cd71,!0x1),deleteGroupForward=_0x4b7c59=>deleteByGroup(_0x4b7c59,!0x0),deleteToLineEnd=_0xa98097=>deleteBy(_0xa98097,_0x11827a=>{let _0x36357e=_0xa98097['lineBlockAt'](_0x11827a['head'])['to'];return _0x11827a['head']<_0x36357e?_0x36357e:Math['min'](_0xa98097['state']['doc']['length'],_0x11827a['head']+0x1);}),deleteLineBoundaryBackward=_0x4238b5=>deleteBy(_0x4238b5,_0x1dafb4=>{let _0x30b62c=_0x4238b5['moveToLineBoundary'](_0x1dafb4,!0x1)['head'];return _0x1dafb4['head']>_0x30b62c?_0x30b62c:Math['max'](0x0,_0x1dafb4['head']-0x1);}),deleteLineBoundaryForward=_0x335cfe=>deleteBy(_0x335cfe,_0x5e113a=>{let _0x284173=_0x335cfe['moveToLineBoundary'](_0x5e113a,!0x0)['head'];return _0x5e113a['head']<_0x284173?_0x284173:Math['min'](_0x335cfe['state']['doc']['length'],_0x5e113a['head']+0x1);}),splitLine=({state:_0xfc55e2,dispatch:_0xe4807e})=>{if(_0xfc55e2['readOnly'])return!0x1;let _0x283545=_0xfc55e2['changeByRange'](_0x5bc436=>({'changes':{'from':_0x5bc436['from'],'to':_0x5bc436['to'],'insert':Text['of'](['',''])},'range':EditorSelection['cursor'](_0x5bc436['from'])}));return _0xe4807e(_0xfc55e2['update'](_0x283545,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;},transposeChars=({state:_0x582538,dispatch:_0x5d5240})=>{if(_0x582538['readOnly'])return!0x1;let _0x2731ce=_0x582538['changeByRange'](_0x5a3b4e=>{if(!_0x5a3b4e['empty']||0x0==_0x5a3b4e['from']||_0x5a3b4e['from']==_0x582538['doc']['length'])return{'range':_0x5a3b4e};let _0x49bc06=_0x5a3b4e['from'],_0x5ebd81=_0x582538['doc']['lineAt'](_0x49bc06),_0x43ddc5=_0x49bc06==_0x5ebd81['from']?_0x49bc06-0x1:findClusterBreak(_0x5ebd81['text'],_0x49bc06-_0x5ebd81['from'],!0x1)+_0x5ebd81['from'],_0x29c39c=_0x49bc06==_0x5ebd81['to']?_0x49bc06+0x1:findClusterBreak(_0x5ebd81['text'],_0x49bc06-_0x5ebd81['from'],!0x0)+_0x5ebd81['from'];return{'changes':{'from':_0x43ddc5,'to':_0x29c39c,'insert':_0x582538['doc']['slice'](_0x49bc06,_0x29c39c)['append'](_0x582538['doc']['slice'](_0x43ddc5,_0x49bc06))},'range':EditorSelection['cursor'](_0x29c39c)};});return!_0x2731ce['changes']['empty']&&(_0x5d5240(_0x582538['update'](_0x2731ce,{'scrollIntoView':!0x0,'userEvent':'move.character'})),!0x0);};function selectedLineBlocks(_0x1450e1){let _0x47683b=[],_0x1a6f11=-0x1;for(let _0xdad067 of _0x1450e1['selection']['ranges']){let _0x127856=_0x1450e1['doc']['lineAt'](_0xdad067['from']),_0x30785c=_0x1450e1['doc']['lineAt'](_0xdad067['to']);if(_0xdad067['empty']||_0xdad067['to']!=_0x30785c['from']||(_0x30785c=_0x1450e1['doc']['lineAt'](_0xdad067['to']-0x1)),_0x1a6f11>=_0x127856['number']){let _0x366be5=_0x47683b[_0x47683b['length']-0x1];_0x366be5['to']=_0x30785c['to'],_0x366be5['ranges']['push'](_0xdad067);}else _0x47683b['push']({'from':_0x127856['from'],'to':_0x30785c['to'],'ranges':[_0xdad067]});_0x1a6f11=_0x30785c['number']+0x1;}return _0x47683b;}function moveLine(_0x1d413a,_0x30fd43,_0x2da5f9){if(_0x1d413a['readOnly'])return!0x1;let _0x5e952b=[],_0xad088d=[];for(let _0x2fc4c0 of selectedLineBlocks(_0x1d413a)){if(_0x2da5f9?_0x2fc4c0['to']==_0x1d413a['doc']['length']:0x0==_0x2fc4c0['from'])continue;let _0x42fd26=_0x1d413a['doc']['lineAt'](_0x2da5f9?_0x2fc4c0['to']+0x1:_0x2fc4c0['from']-0x1),_0x3a3804=_0x42fd26['length']+0x1;if(_0x2da5f9){_0x5e952b['push']({'from':_0x2fc4c0['to'],'to':_0x42fd26['to']},{'from':_0x2fc4c0['from'],'insert':_0x42fd26['text']+_0x1d413a['lineBreak']});for(let _0x35466a of _0x2fc4c0['ranges'])_0xad088d['push'](EditorSelection['range'](Math['min'](_0x1d413a['doc']['length'],_0x35466a['anchor']+_0x3a3804),Math['min'](_0x1d413a['doc']['length'],_0x35466a['head']+_0x3a3804)));}else{_0x5e952b['push']({'from':_0x42fd26['from'],'to':_0x2fc4c0['from']},{'from':_0x2fc4c0['to'],'insert':_0x1d413a['lineBreak']+_0x42fd26['text']});for(let _0x44d84e of _0x2fc4c0['ranges'])_0xad088d['push'](EditorSelection['range'](_0x44d84e['anchor']-_0x3a3804,_0x44d84e['head']-_0x3a3804));}}return!!_0x5e952b['length']&&(_0x30fd43(_0x1d413a['update']({'changes':_0x5e952b,'scrollIntoView':!0x0,'selection':EditorSelection['create'](_0xad088d,_0x1d413a['selection']['mainIndex']),'userEvent':'move.line'})),!0x0);}const moveLineUp=({state:_0xea3ecf,dispatch:_0xa4cd97})=>moveLine(_0xea3ecf,_0xa4cd97,!0x1),moveLineDown=({state:_0x20bd7a,dispatch:_0x420996})=>moveLine(_0x20bd7a,_0x420996,!0x0);function copyLine(_0xb91572,_0x1d1abd,_0x1a6530){if(_0xb91572['readOnly'])return!0x1;let _0x286206=[];for(let _0x2dda92 of selectedLineBlocks(_0xb91572))_0x1a6530?_0x286206['push']({'from':_0x2dda92['from'],'insert':_0xb91572['doc']['slice'](_0x2dda92['from'],_0x2dda92['to'])+_0xb91572['lineBreak']}):_0x286206['push']({'from':_0x2dda92['to'],'insert':_0xb91572['lineBreak']+_0xb91572['doc']['slice'](_0x2dda92['from'],_0x2dda92['to'])});return _0x1d1abd(_0xb91572['update']({'changes':_0x286206,'scrollIntoView':!0x0,'userEvent':'input.copyline'})),!0x0;}const copyLineUp=({state:_0x4693b4,dispatch:_0x4661b8})=>copyLine(_0x4693b4,_0x4661b8,!0x1),copyLineDown=({state:_0x49188d,dispatch:_0x31ec37})=>copyLine(_0x49188d,_0x31ec37,!0x0),deleteLine=_0x569d07=>{if(_0x569d07['state']['readOnly'])return!0x1;let {state:_0xec7dbb}=_0x569d07,_0x34340d=_0xec7dbb['changes'](selectedLineBlocks(_0xec7dbb)['map'](({from:_0x51118a,to:_0x50132b})=>(_0x51118a>0x0?_0x51118a--:_0x50132b<_0xec7dbb['doc']['length']&&_0x50132b++,{'from':_0x51118a,'to':_0x50132b}))),_0x5b671d=updateSel(_0xec7dbb['selection'],_0x2bb848=>{let _0x56993f;if(_0x569d07['lineWrapping']){let _0x15a76d=_0x569d07['lineBlockAt'](_0x2bb848['head']),_0xba7a=_0x569d07['coordsAtPos'](_0x2bb848['head'],_0x2bb848['assoc']||0x1);_0xba7a&&(_0x56993f=_0x15a76d['bottom']+_0x569d07['documentTop']-_0xba7a['bottom']+_0x569d07['defaultLineHeight']/0x2);}return _0x569d07['moveVertically'](_0x2bb848,!0x0,_0x56993f);})['map'](_0x34340d);return _0x569d07['dispatch']({'changes':_0x34340d,'selection':_0x5b671d,'scrollIntoView':!0x0,'userEvent':'delete.line'}),!0x0;};function isBetweenBrackets(_0x33c350,_0x2f0680){if(/\(\)|\[\]|\{\}/['test'](_0x33c350['sliceDoc'](_0x2f0680-0x1,_0x2f0680+0x1)))return{'from':_0x2f0680,'to':_0x2f0680};let _0x558735,_0x5cd74e=syntaxTree(_0x33c350)['resolveInner'](_0x2f0680),_0x28be6a=_0x5cd74e['childBefore'](_0x2f0680),_0xdaf8de=_0x5cd74e['childAfter'](_0x2f0680);return _0x28be6a&&_0xdaf8de&&_0x28be6a['to']<=_0x2f0680&&_0xdaf8de['from']>=_0x2f0680&&(_0x558735=_0x28be6a['type']['prop'](NodeProp['closedBy']))&&_0x558735['indexOf'](_0xdaf8de['name'])>-0x1&&_0x33c350['doc']['lineAt'](_0x28be6a['to'])['from']==_0x33c350['doc']['lineAt'](_0xdaf8de['from'])['from']&&!/\S/['test'](_0x33c350['sliceDoc'](_0x28be6a['to'],_0xdaf8de['from']))?{'from':_0x28be6a['to'],'to':_0xdaf8de['from']}:null;}const insertNewlineAndIndent=newlineAndIndent(!0x1),insertBlankLine=newlineAndIndent(!0x0);function newlineAndIndent(_0x3182a4){return({state:_0x9039d1,dispatch:_0x5c50b0})=>{if(_0x9039d1['readOnly'])return!0x1;let _0x34e759=_0x9039d1['changeByRange'](_0x522a4d=>{let {from:_0x450a9b,to:_0x1e8aeb}=_0x522a4d,_0x34cbfa=_0x9039d1['doc']['lineAt'](_0x450a9b),_0x680709=!_0x3182a4&&_0x450a9b==_0x1e8aeb&&isBetweenBrackets(_0x9039d1,_0x450a9b);_0x3182a4&&(_0x450a9b=_0x1e8aeb=(_0x1e8aeb<=_0x34cbfa['to']?_0x34cbfa:_0x9039d1['doc']['lineAt'](_0x1e8aeb))['to']);let _0x248dec=new IndentContext(_0x9039d1,{'simulateBreak':_0x450a9b,'simulateDoubleBreak':!!_0x680709}),_0x245a3d=getIndentation(_0x248dec,_0x450a9b);for(null==_0x245a3d&&(_0x245a3d=countColumn(/^\s*/['exec'](_0x9039d1['doc']['lineAt'](_0x450a9b)['text'])[0x0],_0x9039d1['tabSize']));_0x1e8aeb<_0x34cbfa['to']&&/\s/['test'](_0x34cbfa['text'][_0x1e8aeb-_0x34cbfa['from']]);)_0x1e8aeb++;_0x680709?{from:_0x450a9b,to:_0x1e8aeb}=_0x680709:_0x450a9b>_0x34cbfa['from']&&_0x450a9b<_0x34cbfa['from']+0x64&&!/\S/['test'](_0x34cbfa['text']['slice'](0x0,_0x450a9b))&&(_0x450a9b=_0x34cbfa['from']);let _0x88f986=['',indentString(_0x9039d1,_0x245a3d)];return _0x680709&&_0x88f986['push'](indentString(_0x9039d1,_0x248dec['lineIndent'](_0x34cbfa['from'],-0x1))),{'changes':{'from':_0x450a9b,'to':_0x1e8aeb,'insert':Text['of'](_0x88f986)},'range':EditorSelection['cursor'](_0x450a9b+0x1+_0x88f986[0x1]['length'])};});return _0x5c50b0(_0x9039d1['update'](_0x34e759,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0;};}function changeBySelectedLine(_0xe20b9f,_0x5a533b){let _0x305d27=-0x1;return _0xe20b9f['changeByRange'](_0x3a3eeb=>{let _0x3e92e3=[];for(let _0x394dc8=_0x3a3eeb['from'];_0x394dc8<=_0x3a3eeb['to'];){let _0x237390=_0xe20b9f['doc']['lineAt'](_0x394dc8);_0x237390['number']>_0x305d27&&(_0x3a3eeb['empty']||_0x3a3eeb['to']>_0x237390['from'])&&(_0x5a533b(_0x237390,_0x3e92e3,_0x3a3eeb),_0x305d27=_0x237390['number']),_0x394dc8=_0x237390['to']+0x1;}let _0x3ffd1e=_0xe20b9f['changes'](_0x3e92e3);return{'changes':_0x3e92e3,'range':EditorSelection['range'](_0x3ffd1e['mapPos'](_0x3a3eeb['anchor'],0x1),_0x3ffd1e['mapPos'](_0x3a3eeb['head'],0x1))};});}const indentSelection=({state:_0x528745,dispatch:_0x5391a0})=>{if(_0x528745['readOnly'])return!0x1;let _0x309cc9=Object['create'](null),_0x3c759a=new IndentContext(_0x528745,{'overrideIndentation':_0x341010=>{let _0x356822=_0x309cc9[_0x341010];return null==_0x356822?-0x1:_0x356822;}}),_0x32d7dc=changeBySelectedLine(_0x528745,(_0x53e9e7,_0x1ccb4b,_0x588ceb)=>{let _0xd8bebf=getIndentation(_0x3c759a,_0x53e9e7['from']);if(null==_0xd8bebf)return;/\S/['test'](_0x53e9e7['text'])||(_0xd8bebf=0x0);let _0x47212c=/^\s*/['exec'](_0x53e9e7['text'])[0x0],_0x52e2e4=indentString(_0x528745,_0xd8bebf);(_0x47212c!=_0x52e2e4||_0x588ceb['from']<_0x53e9e7['from']+_0x47212c['length'])&&(_0x309cc9[_0x53e9e7['from']]=_0xd8bebf,_0x1ccb4b['push']({'from':_0x53e9e7['from'],'to':_0x53e9e7['from']+_0x47212c['length'],'insert':_0x52e2e4}));});return _0x32d7dc['changes']['empty']||_0x5391a0(_0x528745['update'](_0x32d7dc,{'userEvent':'indent'})),!0x0;},indentMore=({state:_0x3e767f,dispatch:_0x5da9c9})=>!_0x3e767f['readOnly']&&(_0x5da9c9(_0x3e767f['update'](changeBySelectedLine(_0x3e767f,(_0x2e25ba,_0x3cb8f8)=>{_0x3cb8f8['push']({'from':_0x2e25ba['from'],'insert':_0x3e767f['facet'](indentUnit)});}),{'userEvent':'input.indent'})),!0x0),indentLess=({state:_0x24cca5,dispatch:_0x1e352a})=>!_0x24cca5['readOnly']&&(_0x1e352a(_0x24cca5['update'](changeBySelectedLine(_0x24cca5,(_0x131fd2,_0x282585)=>{let _0x20223b=/^\s*/['exec'](_0x131fd2['text'])[0x0];if(!_0x20223b)return;let _0x4ced5e=countColumn(_0x20223b,_0x24cca5['tabSize']),_0x3e9ced=0x0,_0x4f648e=indentString(_0x24cca5,Math['max'](0x0,_0x4ced5e-getIndentUnit(_0x24cca5)));for(;_0x3e9ced<_0x20223b['length']&&_0x3e9ced<_0x4f648e['length']&&_0x20223b['charCodeAt'](_0x3e9ced)==_0x4f648e['charCodeAt'](_0x3e9ced);)_0x3e9ced++;_0x282585['push']({'from':_0x131fd2['from']+_0x3e9ced,'to':_0x131fd2['from']+_0x20223b['length'],'insert':_0x4f648e['slice'](_0x3e9ced)});}),{'userEvent':'delete.dedent'})),!0x0),toggleTabFocusMode=_0x550ad1=>(_0x550ad1['setTabFocusMode'](),!0x0),emacsStyleKeymap=[{'key':'Ctrl-b','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Ctrl-f','run':cursorCharRight,'shift':selectCharRight},{'key':'Ctrl-p','run':cursorLineUp,'shift':selectLineUp},{'key':'Ctrl-n','run':cursorLineDown,'shift':selectLineDown},{'key':'Ctrl-a','run':cursorLineStart,'shift':selectLineStart},{'key':'Ctrl-e','run':cursorLineEnd,'shift':selectLineEnd},{'key':'Ctrl-d','run':deleteCharForward},{'key':'Ctrl-h','run':deleteCharBackward},{'key':'Ctrl-k','run':deleteToLineEnd},{'key':'Ctrl-Alt-h','run':deleteGroupBackward},{'key':'Ctrl-o','run':splitLine},{'key':'Ctrl-t','run':transposeChars},{'key':'Ctrl-v','run':cursorPageDown}],standardKeymap=[{'key':'ArrowLeft','run':cursorCharLeft,'shift':selectCharLeft,'preventDefault':!0x0},{'key':'Mod-ArrowLeft','mac':'Alt-ArrowLeft','run':cursorGroupLeft,'shift':selectGroupLeft,'preventDefault':!0x0},{'mac':'Cmd-ArrowLeft','run':cursorLineBoundaryLeft,'shift':selectLineBoundaryLeft,'preventDefault':!0x0},{'key':'ArrowRight','run':cursorCharRight,'shift':selectCharRight,'preventDefault':!0x0},{'key':'Mod-ArrowRight','mac':'Alt-ArrowRight','run':cursorGroupRight,'shift':selectGroupRight,'preventDefault':!0x0},{'mac':'Cmd-ArrowRight','run':cursorLineBoundaryRight,'shift':selectLineBoundaryRight,'preventDefault':!0x0},{'key':'ArrowUp','run':cursorLineUp,'shift':selectLineUp,'preventDefault':!0x0},{'mac':'Cmd-ArrowUp','run':cursorDocStart,'shift':selectDocStart},{'mac':'Ctrl-ArrowUp','run':cursorPageUp,'shift':selectPageUp},{'key':'ArrowDown','run':cursorLineDown,'shift':selectLineDown,'preventDefault':!0x0},{'mac':'Cmd-ArrowDown','run':cursorDocEnd,'shift':selectDocEnd},{'mac':'Ctrl-ArrowDown','run':cursorPageDown,'shift':selectPageDown},{'key':'PageUp','run':cursorPageUp,'shift':selectPageUp},{'key':'PageDown','run':cursorPageDown,'shift':selectPageDown},{'key':'Home','run':cursorLineBoundaryBackward,'shift':selectLineBoundaryBackward,'preventDefault':!0x0},{'key':'Mod-Home','run':cursorDocStart,'shift':selectDocStart},{'key':'End','run':cursorLineBoundaryForward,'shift':selectLineBoundaryForward,'preventDefault':!0x0},{'key':'Mod-End','run':cursorDocEnd,'shift':selectDocEnd},{'key':'Enter','run':insertNewlineAndIndent,'shift':insertNewlineAndIndent},{'key':'Mod-a','run':selectAll},{'key':'Backspace','run':deleteCharBackward,'shift':deleteCharBackward},{'key':'Delete','run':deleteCharForward},{'key':'Mod-Backspace','mac':'Alt-Backspace','run':deleteGroupBackward},{'key':'Mod-Delete','mac':'Alt-Delete','run':deleteGroupForward},{'mac':'Mod-Backspace','run':deleteLineBoundaryBackward},{'mac':'Mod-Delete','run':deleteLineBoundaryForward}]['concat'](emacsStyleKeymap['map'](_0x1876ad=>({'mac':_0x1876ad['key'],'run':_0x1876ad['run'],'shift':_0x1876ad['shift']}))),defaultKeymap=[{'key':'Alt-ArrowLeft','mac':'Ctrl-ArrowLeft','run':cursorSyntaxLeft,'shift':selectSyntaxLeft},{'key':'Alt-ArrowRight','mac':'Ctrl-ArrowRight','run':cursorSyntaxRight,'shift':selectSyntaxRight},{'key':'Alt-ArrowUp','run':moveLineUp},{'key':'Shift-Alt-ArrowUp','run':copyLineUp},{'key':'Alt-ArrowDown','run':moveLineDown},{'key':'Shift-Alt-ArrowDown','run':copyLineDown},{'key':'Escape','run':simplifySelection},{'key':'Mod-Enter','run':insertBlankLine},{'key':'Alt-l','mac':'Ctrl-l','run':selectLine},{'key':'Mod-i','run':selectParentSyntax,'preventDefault':!0x0},{'key':'Mod-[','run':indentLess},{'key':'Mod-]','run':indentMore},{'key':'Mod-Alt-\x5c','run':indentSelection},{'key':'Shift-Mod-k','run':deleteLine},{'key':'Shift-Mod-\x5c','run':cursorMatchingBracket},{'key':'Mod-/','run':toggleComment},{'key':'Alt-A','run':toggleBlockComment},{'key':'Ctrl-m','mac':'Shift-Alt-m','run':toggleTabFocusMode}]['concat'](standardKeymap);class CompletionContext{constructor(_0x417f28,_0x55d440,_0x38f6b9,_0x4f8abb){this['state']=_0x417f28,this['pos']=_0x55d440,this['explicit']=_0x38f6b9,this['view']=_0x4f8abb,this['abortListeners']=[],this['abortOnDocChange']=!0x1;}['tokenBefore'](_0x5ecbcd){let _0x2b31b8=syntaxTree(this['state'])['resolveInner'](this['pos'],-0x1);for(;_0x2b31b8&&_0x5ecbcd['indexOf'](_0x2b31b8['name'])<0x0;)_0x2b31b8=_0x2b31b8['parent'];return _0x2b31b8?{'from':_0x2b31b8['from'],'to':this['pos'],'text':this['state']['sliceDoc'](_0x2b31b8['from'],this['pos']),'type':_0x2b31b8['type']}:null;}['matchBefore'](_0x4b2c56){let _0x34daad=this['state']['doc']['lineAt'](this['pos']),_0x55b8b8=Math['max'](_0x34daad['from'],this['pos']-0xfa),_0x3467a2=_0x34daad['text']['slice'](_0x55b8b8-_0x34daad['from'],this['pos']-_0x34daad['from']),_0x1aa52a=_0x3467a2['search'](ensureAnchor(_0x4b2c56,!0x1));return _0x1aa52a<0x0?null:{'from':_0x55b8b8+_0x1aa52a,'to':this['pos'],'text':_0x3467a2['slice'](_0x1aa52a)};}get['aborted'](){return null==this['abortListeners'];}['addEventListener'](_0x4d3235,_0x5e3274,_0x16dcc3){'abort'==_0x4d3235&&this['abortListeners']&&(this['abortListeners']['push'](_0x5e3274),_0x16dcc3&&_0x16dcc3['onDocChange']&&(this['abortOnDocChange']=!0x0));}}function toSet(_0x4edef8){let _0x34eef2=Object['keys'](_0x4edef8)['join'](''),_0x5fedf1=/\w/['test'](_0x34eef2);return _0x5fedf1&&(_0x34eef2=_0x34eef2['replace'](/\w/g,'')),'['+(_0x5fedf1?'\x5cw':'')+_0x34eef2['replace'](/[^\w\s]/g,'\x5c$&')+']';}function prefixMatch(_0xb9be73){let _0x1bdfe5=Object['create'](null),_0xbf9b25=Object['create'](null);for(let {label:_0xc089d3}of _0xb9be73){_0x1bdfe5[_0xc089d3[0x0]]=!0x0;for(let _0x4fa80e=0x1;_0x4fa80e<_0xc089d3['length'];_0x4fa80e++)_0xbf9b25[_0xc089d3[_0x4fa80e]]=!0x0;}let _0x50de31=toSet(_0x1bdfe5)+toSet(_0xbf9b25)+'*$';return[new RegExp('^'+_0x50de31),new RegExp(_0x50de31)];}function completeFromList(_0x429717){let _0x281a34=_0x429717['map'](_0xfd4b95=>'string'==typeof _0xfd4b95?{'label':_0xfd4b95}:_0xfd4b95),[_0xa499a4,_0x56e240]=_0x281a34['every'](_0x3eb64c=>/^\w+$/['test'](_0x3eb64c['label']))?[/\w*$/,/\w+$/]:prefixMatch(_0x281a34);return _0x23647e=>{let _0x1aa059=_0x23647e['matchBefore'](_0x56e240);return _0x1aa059||_0x23647e['explicit']?{'from':_0x1aa059?_0x1aa059['from']:_0x23647e['pos'],'options':_0x281a34,'validFor':_0xa499a4}:null;};}function ifNotIn(_0x52304a,_0x4a8667){return _0x12d439=>{for(let _0x4ee2e3=syntaxTree(_0x12d439['state'])['resolveInner'](_0x12d439['pos'],-0x1);_0x4ee2e3;_0x4ee2e3=_0x4ee2e3['parent']){if(_0x52304a['indexOf'](_0x4ee2e3['name'])>-0x1)return null;if(_0x4ee2e3['type']['isTop'])break;}return _0x4a8667(_0x12d439);};}class Option{constructor(_0x4908de,_0x19d001,_0x258e15,_0x19dbc8){this['completion']=_0x4908de,this['source']=_0x19d001,this['match']=_0x258e15,this['score']=_0x19dbc8;}}function cur(_0x562209){return _0x562209['selection']['main']['from'];}function ensureAnchor(_0x34efa2,_0x3f4c88){var _0x1f5cad;let {source:_0x28d14e}=_0x34efa2,_0x580a2e=_0x3f4c88&&'^'!=_0x28d14e[0x0],_0x8a8e2d='$'!=_0x28d14e[_0x28d14e['length']-0x1];return _0x580a2e||_0x8a8e2d?new RegExp((_0x580a2e?'^':'')+'(?:'+_0x28d14e+')'+(_0x8a8e2d?'$':''),null!==(_0x1f5cad=_0x34efa2['flags'])&&void 0x0!==_0x1f5cad?_0x1f5cad:_0x34efa2['ignoreCase']?'i':''):_0x34efa2;}const pickedCompletion=Annotation['define']();function insertCompletionText(_0x55dfca,_0x2c5892,_0x3dbe67,_0x24fbb7){let {main:_0x564e84}=_0x55dfca['selection'],_0x3c4be5=_0x3dbe67-_0x564e84['from'],_0x35a85f=_0x24fbb7-_0x564e84['from'];return{..._0x55dfca['changeByRange'](_0x159a0b=>{if(_0x159a0b!=_0x564e84&&_0x3dbe67!=_0x24fbb7&&_0x55dfca['sliceDoc'](_0x159a0b['from']+_0x3c4be5,_0x159a0b['from']+_0x35a85f)!=_0x55dfca['sliceDoc'](_0x3dbe67,_0x24fbb7))return{'range':_0x159a0b};let _0x5e8603=_0x55dfca['toText'](_0x2c5892);return{'changes':{'from':_0x159a0b['from']+_0x3c4be5,'to':_0x24fbb7==_0x564e84['from']?_0x159a0b['to']:_0x159a0b['from']+_0x35a85f,'insert':_0x5e8603},'range':EditorSelection['cursor'](_0x159a0b['from']+_0x3c4be5+_0x5e8603['length'])};}),'scrollIntoView':!0x0,'userEvent':'input.complete'};}const SourceCache=new WeakMap();function asSource(_0x21b5fe){if(!Array['isArray'](_0x21b5fe))return _0x21b5fe;let _0xa98b1=SourceCache['get'](_0x21b5fe);return _0xa98b1||SourceCache['set'](_0x21b5fe,_0xa98b1=completeFromList(_0x21b5fe)),_0xa98b1;}const startCompletionEffect=StateEffect['define'](),closeCompletionEffect=StateEffect['define']();class FuzzyMatcher{constructor(_0x27a44e){this['pattern']=_0x27a44e,this['chars']=[],this['folded']=[],this['any']=[],this['precise']=[],this['byWord']=[],this['score']=0x0,this['matched']=[];for(let _0x257b1b=0x0;_0x257b1b<_0x27a44e['length'];){let _0x338343=codePointAt(_0x27a44e,_0x257b1b),_0x25704e=codePointSize(_0x338343);this['chars']['push'](_0x338343);let _0x54a20b=_0x27a44e['slice'](_0x257b1b,_0x257b1b+_0x25704e),_0x585810=_0x54a20b['toUpperCase']();this['folded']['push'](codePointAt(_0x585810==_0x54a20b?_0x54a20b['toLowerCase']():_0x585810,0x0)),_0x257b1b+=_0x25704e;}this['astral']=_0x27a44e['length']!=this['chars']['length'];}['ret'](_0x5e0e6e,_0x5ad306){return this['score']=_0x5e0e6e,this['matched']=_0x5ad306,this;}['match'](_0x427bd5){if(0x0==this['pattern']['length'])return this['ret'](-0x64,[]);if(_0x427bd5['length']<this['pattern']['length'])return null;let {chars:_0x32c294,folded:_0x2a171b,any:_0x1b5a8e,precise:_0x230055,byWord:_0x1d8722}=this;if(0x1==_0x32c294['length']){let _0x193016=codePointAt(_0x427bd5,0x0),_0x3fb18c=codePointSize(_0x193016),_0x276363=_0x3fb18c==_0x427bd5['length']?0x0:-0x64;if(_0x193016==_0x32c294[0x0]);else{if(_0x193016!=_0x2a171b[0x0])return null;_0x276363+=-0xc8;}return this['ret'](_0x276363,[0x0,_0x3fb18c]);}let _0x18edff=_0x427bd5['indexOf'](this['pattern']);if(0x0==_0x18edff)return this['ret'](_0x427bd5['length']==this['pattern']['length']?0x0:-0x64,[0x0,this['pattern']['length']]);let _0x34a1ca=_0x32c294['length'],_0x21d526=0x0;if(_0x18edff<0x0){for(let _0x290deb=0x0,_0x3d70ac=Math['min'](_0x427bd5['length'],0xc8);_0x290deb<_0x3d70ac&&_0x21d526<_0x34a1ca;){let _0x4b3ea0=codePointAt(_0x427bd5,_0x290deb);_0x4b3ea0!=_0x32c294[_0x21d526]&&_0x4b3ea0!=_0x2a171b[_0x21d526]||(_0x1b5a8e[_0x21d526++]=_0x290deb),_0x290deb+=codePointSize(_0x4b3ea0);}if(_0x21d526<_0x34a1ca)return null;}let _0x5c80a3=0x0,_0x1905f3=0x0,_0xf94e3=!0x1,_0x462679=0x0,_0x440b1b=-0x1,_0x5d03c4=-0x1,_0x28d9e9=/[a-z]/['test'](_0x427bd5),_0x93de6b=!0x0;for(let _0x472216=0x0,_0x2af8ef=Math['min'](_0x427bd5['length'],0xc8),_0x20f0dd=0x0;_0x472216<_0x2af8ef&&_0x1905f3<_0x34a1ca;){let _0x1a5d65=codePointAt(_0x427bd5,_0x472216);_0x18edff<0x0&&(_0x5c80a3<_0x34a1ca&&_0x1a5d65==_0x32c294[_0x5c80a3]&&(_0x230055[_0x5c80a3++]=_0x472216),_0x462679<_0x34a1ca&&(_0x1a5d65==_0x32c294[_0x462679]||_0x1a5d65==_0x2a171b[_0x462679]?(0x0==_0x462679&&(_0x440b1b=_0x472216),_0x5d03c4=_0x472216+0x1,_0x462679++):_0x462679=0x0));let _0xb5f7e4,_0x21b01b=_0x1a5d65<0xff?_0x1a5d65>=0x30&&_0x1a5d65<=0x39||_0x1a5d65>=0x61&&_0x1a5d65<=0x7a?0x2:_0x1a5d65>=0x41&&_0x1a5d65<=0x5a?0x1:0x0:(_0xb5f7e4=fromCodePoint(_0x1a5d65))!=_0xb5f7e4['toLowerCase']()?0x1:_0xb5f7e4!=_0xb5f7e4['toUpperCase']()?0x2:0x0;(!_0x472216||0x1==_0x21b01b&&_0x28d9e9||0x0==_0x20f0dd&&0x0!=_0x21b01b)&&(_0x32c294[_0x1905f3]==_0x1a5d65||_0x2a171b[_0x1905f3]==_0x1a5d65&&(_0xf94e3=!0x0)?_0x1d8722[_0x1905f3++]=_0x472216:_0x1d8722['length']&&(_0x93de6b=!0x1)),_0x20f0dd=_0x21b01b,_0x472216+=codePointSize(_0x1a5d65);}return _0x1905f3==_0x34a1ca&&0x0==_0x1d8722[0x0]&&_0x93de6b?this['result']((_0xf94e3?-0xc8:0x0)-0x64,_0x1d8722,_0x427bd5):_0x462679==_0x34a1ca&&0x0==_0x440b1b?this['ret'](-0xc8-_0x427bd5['length']+(_0x5d03c4==_0x427bd5['length']?0x0:-0x64),[0x0,_0x5d03c4]):_0x18edff>-0x1?this['ret'](-0x2bc-_0x427bd5['length'],[_0x18edff,_0x18edff+this['pattern']['length']]):_0x462679==_0x34a1ca?this['ret'](-0x384-_0x427bd5['length'],[_0x440b1b,_0x5d03c4]):_0x1905f3==_0x34a1ca?this['result']((_0xf94e3?-0xc8:0x0)-0x64-0x2bc+(_0x93de6b?0x0:-0x44c),_0x1d8722,_0x427bd5):0x2==_0x32c294['length']?null:this['result']((_0x1b5a8e[0x0]?-0x2bc:0x0)-0xc8-0x44c,_0x1b5a8e,_0x427bd5);}['result'](_0x344e65,_0x422b84,_0x24e067){let _0x1912cc=[],_0x5428c2=0x0;for(let _0x55de5a of _0x422b84){let _0x506f5f=_0x55de5a+(this['astral']?codePointSize(codePointAt(_0x24e067,_0x55de5a)):0x1);_0x5428c2&&_0x1912cc[_0x5428c2-0x1]==_0x55de5a?_0x1912cc[_0x5428c2-0x1]=_0x506f5f:(_0x1912cc[_0x5428c2++]=_0x55de5a,_0x1912cc[_0x5428c2++]=_0x506f5f);}return this['ret'](_0x344e65-_0x24e067['length'],_0x1912cc);}}class StrictMatcher{constructor(_0x2ed21b){this['pattern']=_0x2ed21b,this['matched']=[],this['score']=0x0,this['folded']=_0x2ed21b['toLowerCase']();}['match'](_0x47461a){if(_0x47461a['length']<this['pattern']['length'])return null;let _0x211a44=_0x47461a['slice'](0x0,this['pattern']['length']),_0x5434d4=_0x211a44==this['pattern']?0x0:_0x211a44['toLowerCase']()==this['folded']?-0xc8:null;return null==_0x5434d4?null:(this['matched']=[0x0,_0x211a44['length']],this['score']=_0x5434d4+(_0x47461a['length']==this['pattern']['length']?0x0:-0x64),this);}}const completionConfig=Facet['define']({'combine':_0xd08ae3=>combineConfig(_0xd08ae3,{'activateOnTyping':!0x0,'activateOnCompletion':()=>!0x1,'activateOnTypingDelay':0x64,'selectOnOpen':!0x0,'override':null,'closeOnBlur':!0x0,'maxRenderedOptions':0x64,'defaultKeymap':!0x0,'tooltipClass':()=>'','optionClass':()=>'','aboveCursor':!0x1,'icons':!0x0,'addToOptions':[],'positionInfo':defaultPositionInfo,'filterStrict':!0x1,'compareCompletions':(_0x524494,_0x1b9091)=>_0x524494['label']['localeCompare'](_0x1b9091['label']),'interactionDelay':0x4b,'updateSyncTime':0x64},{'defaultKeymap':(_0x82b10,_0x75ed74)=>_0x82b10&&_0x75ed74,'closeOnBlur':(_0x3cae79,_0x126f17)=>_0x3cae79&&_0x126f17,'icons':(_0x3a3538,_0x51464e)=>_0x3a3538&&_0x51464e,'tooltipClass':(_0x18858f,_0x10032d)=>_0x502ed5=>joinClass(_0x18858f(_0x502ed5),_0x10032d(_0x502ed5)),'optionClass':(_0xa386d5,_0x39edcd)=>_0x55a60b=>joinClass(_0xa386d5(_0x55a60b),_0x39edcd(_0x55a60b)),'addToOptions':(_0x2e07b1,_0xc40a0)=>_0x2e07b1['concat'](_0xc40a0),'filterStrict':(_0x600f7b,_0x209a1f)=>_0x600f7b||_0x209a1f})});function joinClass(_0x340ed7,_0x56a4bd){return _0x340ed7?_0x56a4bd?_0x340ed7+'\x20'+_0x56a4bd:_0x340ed7:_0x56a4bd;}function defaultPositionInfo(_0x452403,_0x5ab8ab,_0x1a1511,_0x26fff6,_0x3a4b65,_0x993d8d){let _0x4681b0,_0x5f2f85,_0x113574=_0x452403['textDirection']==Direction['RTL'],_0x9e6079=_0x113574,_0x28eae0=!0x1,_0x1fa52b='top',_0x147985=_0x5ab8ab['left']-_0x3a4b65['left'],_0xf541fd=_0x3a4b65['right']-_0x5ab8ab['right'],_0x116a8e=_0x26fff6['right']-_0x26fff6['left'],_0x50cef5=_0x26fff6['bottom']-_0x26fff6['top'];if(_0x9e6079&&_0x147985<Math['min'](_0x116a8e,_0xf541fd)?_0x9e6079=!0x1:!_0x9e6079&&_0xf541fd<Math['min'](_0x116a8e,_0x147985)&&(_0x9e6079=!0x0),_0x116a8e<=(_0x9e6079?_0x147985:_0xf541fd))_0x4681b0=Math['max'](_0x3a4b65['top'],Math['min'](_0x1a1511['top'],_0x3a4b65['bottom']-_0x50cef5))-_0x5ab8ab['top'],_0x5f2f85=Math['min'](0x190,_0x9e6079?_0x147985:_0xf541fd);else{_0x28eae0=!0x0,_0x5f2f85=Math['min'](0x190,(_0x113574?_0x5ab8ab['right']:_0x3a4b65['right']-_0x5ab8ab['left'])-0x1e);let _0x14b04e=_0x3a4b65['bottom']-_0x5ab8ab['bottom'];_0x14b04e>=_0x50cef5||_0x14b04e>_0x5ab8ab['top']?_0x4681b0=_0x1a1511['bottom']-_0x5ab8ab['top']:(_0x1fa52b='bottom',_0x4681b0=_0x5ab8ab['bottom']-_0x1a1511['top']);}return{'style':_0x1fa52b+':\x20'+_0x4681b0/((_0x5ab8ab['bottom']-_0x5ab8ab['top'])/_0x993d8d['offsetHeight'])+'px;\x20max-width:\x20'+_0x5f2f85/((_0x5ab8ab['right']-_0x5ab8ab['left'])/_0x993d8d['offsetWidth'])+'px','class':'cm-completionInfo-'+(_0x28eae0?_0x113574?'left-narrow':'right-narrow':_0x9e6079?'left':'right')};}function optionContent(_0x59cb40){let _0x42a7fd=_0x59cb40['addToOptions']['slice']();return _0x59cb40['icons']&&_0x42a7fd['push']({'render'(_0x1ec93f){let _0x30ad09=document['createElement']('div');return _0x30ad09['classList']['add']('cm-completionIcon'),_0x1ec93f['type']&&_0x30ad09['classList']['add'](..._0x1ec93f['type']['split'](/\s+/g)['map'](_0x5d1da7=>'cm-completionIcon-'+_0x5d1da7)),_0x30ad09['setAttribute']('aria-hidden','true'),_0x30ad09;},'position':0x14}),_0x42a7fd['push']({'render'(_0x27725b,_0x594e2a,_0x42d97c,_0x424508){let _0x556097=document['createElement']('span');_0x556097['className']='cm-completionLabel';let _0x1a274f=_0x27725b['displayLabel']||_0x27725b['label'],_0x1ad097=0x0;for(let _0x4f8bf8=0x0;_0x4f8bf8<_0x424508['length'];){let _0x41f0cd=_0x424508[_0x4f8bf8++],_0x412a01=_0x424508[_0x4f8bf8++];_0x41f0cd>_0x1ad097&&_0x556097['appendChild'](document['createTextNode'](_0x1a274f['slice'](_0x1ad097,_0x41f0cd)));let _0x107de7=_0x556097['appendChild'](document['createElement']('span'));_0x107de7['appendChild'](document['createTextNode'](_0x1a274f['slice'](_0x41f0cd,_0x412a01))),_0x107de7['className']='cm-completionMatchedText',_0x1ad097=_0x412a01;}return _0x1ad097<_0x1a274f['length']&&_0x556097['appendChild'](document['createTextNode'](_0x1a274f['slice'](_0x1ad097))),_0x556097;},'position':0x32},{'render'(_0x4bd7da){if(!_0x4bd7da['detail'])return null;let _0x4c7530=document['createElement']('span');return _0x4c7530['className']='cm-completionDetail',_0x4c7530['textContent']=_0x4bd7da['detail'],_0x4c7530;},'position':0x50}),_0x42a7fd['sort']((_0x531f72,_0xd3e5df)=>_0x531f72['position']-_0xd3e5df['position'])['map'](_0x2def4c=>_0x2def4c['render']);}function rangeAroundSelected(_0x29962b,_0x259d1f,_0x5d1ce1){if(_0x29962b<=_0x5d1ce1)return{'from':0x0,'to':_0x29962b};if(_0x259d1f<0x0&&(_0x259d1f=0x0),_0x259d1f<=_0x29962b>>0x1){let _0x385fa6=Math['floor'](_0x259d1f/_0x5d1ce1);return{'from':_0x385fa6*_0x5d1ce1,'to':(_0x385fa6+0x1)*_0x5d1ce1};}let _0x439265=Math['floor']((_0x29962b-_0x259d1f)/_0x5d1ce1);return{'from':_0x29962b-(_0x439265+0x1)*_0x5d1ce1,'to':_0x29962b-_0x439265*_0x5d1ce1};}class CompletionTooltip{constructor(_0xcdf206,_0x5316cb,_0x372040){this['view']=_0xcdf206,this['stateField']=_0x5316cb,this['applyCompletion']=_0x372040,this['info']=null,this['infoDestroy']=null,this['placeInfoReq']={'read':()=>this['measureInfo'](),'write':_0x5fee4d=>this['placeInfo'](_0x5fee4d),'key':this},this['space']=null,this['currentClass']='';let _0x5207ea=_0xcdf206['state']['field'](_0x5316cb),{options:_0x44dfb2,selected:_0x3ef0bf}=_0x5207ea['open'],_0xea555b=_0xcdf206['state']['facet'](completionConfig);this['optionContent']=optionContent(_0xea555b),this['optionClass']=_0xea555b['optionClass'],this['tooltipClass']=_0xea555b['tooltipClass'],this['range']=rangeAroundSelected(_0x44dfb2['length'],_0x3ef0bf,_0xea555b['maxRenderedOptions']),this['dom']=document['createElement']('div'),this['dom']['className']='cm-tooltip-autocomplete',this['updateTooltipClass'](_0xcdf206['state']),this['dom']['addEventListener']('mousedown',_0x22d463=>{let {options:_0xa7a1aa}=_0xcdf206['state']['field'](_0x5316cb)['open'];for(let _0x37df45,_0x1036eb=_0x22d463['target'];_0x1036eb&&_0x1036eb!=this['dom'];_0x1036eb=_0x1036eb['parentNode'])if('LI'==_0x1036eb['nodeName']&&(_0x37df45=/-(\d+)$/['exec'](_0x1036eb['id']))&&+_0x37df45[0x1]<_0xa7a1aa['length'])return this['applyCompletion'](_0xcdf206,_0xa7a1aa[+_0x37df45[0x1]]),void _0x22d463['preventDefault']();}),this['dom']['addEventListener']('focusout',_0x2c2384=>{let _0x570db8=_0xcdf206['state']['field'](this['stateField'],!0x1);_0x570db8&&_0x570db8['tooltip']&&_0xcdf206['state']['facet'](completionConfig)['closeOnBlur']&&_0x2c2384['relatedTarget']!=_0xcdf206['contentDOM']&&_0xcdf206['dispatch']({'effects':closeCompletionEffect['of'](null)});}),this['showOptions'](_0x44dfb2,_0x5207ea['id']);}['mount'](){this['updateSel']();}['showOptions'](_0xf8a935,_0x422b7e){this['list']&&this['list']['remove'](),this['list']=this['dom']['appendChild'](this['createListBox'](_0xf8a935,_0x422b7e,this['range'])),this['list']['addEventListener']('scroll',()=>{this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);});}['update'](_0x4e1080){var _0x526b53;let _0x3c639c=_0x4e1080['state']['field'](this['stateField']),_0x4a3e9e=_0x4e1080['startState']['field'](this['stateField']);if(this['updateTooltipClass'](_0x4e1080['state']),_0x3c639c!=_0x4a3e9e){let {options:_0x1d4085,selected:_0xf609b5,disabled:_0x1b032a}=_0x3c639c['open'];_0x4a3e9e['open']&&_0x4a3e9e['open']['options']==_0x1d4085||(this['range']=rangeAroundSelected(_0x1d4085['length'],_0xf609b5,_0x4e1080['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x1d4085,_0x3c639c['id'])),this['updateSel'](),_0x1b032a!=(null===(_0x526b53=_0x4a3e9e['open'])||void 0x0===_0x526b53?void 0x0:_0x526b53['disabled'])&&this['dom']['classList']['toggle']('cm-tooltip-autocomplete-disabled',!!_0x1b032a);}}['updateTooltipClass'](_0x29d4d8){let _0xc6209b=this['tooltipClass'](_0x29d4d8);if(_0xc6209b!=this['currentClass']){for(let _0x2ddbfa of this['currentClass']['split']('\x20'))_0x2ddbfa&&this['dom']['classList']['remove'](_0x2ddbfa);for(let _0x2d2632 of _0xc6209b['split']('\x20'))_0x2d2632&&this['dom']['classList']['add'](_0x2d2632);this['currentClass']=_0xc6209b;}}['positioned'](_0x129eeb){this['space']=_0x129eeb,this['info']&&this['view']['requestMeasure'](this['placeInfoReq']);}['updateSel'](){let _0x132994=this['view']['state']['field'](this['stateField']),_0x2eee5e=_0x132994['open'];(_0x2eee5e['selected']>-0x1&&_0x2eee5e['selected']<this['range']['from']||_0x2eee5e['selected']>=this['range']['to'])&&(this['range']=rangeAroundSelected(_0x2eee5e['options']['length'],_0x2eee5e['selected'],this['view']['state']['facet'](completionConfig)['maxRenderedOptions']),this['showOptions'](_0x2eee5e['options'],_0x132994['id']));let _0x363fe7=this['updateSelectedOption'](_0x2eee5e['selected']);if(_0x363fe7){this['destroyInfo']();let {completion:_0x1fb795}=_0x2eee5e['options'][_0x2eee5e['selected']],{info:_0x2442a3}=_0x1fb795;if(!_0x2442a3)return;let _0x5dce18='string'==typeof _0x2442a3?document['createTextNode'](_0x2442a3):_0x2442a3(_0x1fb795);if(!_0x5dce18)return;'then'in _0x5dce18?_0x5dce18['then'](_0x58fbad=>{_0x58fbad&&this['view']['state']['field'](this['stateField'],!0x1)==_0x132994&&this['addInfoPane'](_0x58fbad,_0x1fb795);})['catch'](_0x515a35=>logException(this['view']['state'],_0x515a35,'completion\x20info')):(this['addInfoPane'](_0x5dce18,_0x1fb795),_0x363fe7['setAttribute']('aria-describedby',this['info']['id']));}}['addInfoPane'](_0x1cc145,_0x8d0ef7){this['destroyInfo']();let _0x5efa51=this['info']=document['createElement']('div');if(_0x5efa51['className']='cm-tooltip\x20cm-completionInfo',_0x5efa51['id']='cm-completionInfo-'+Math['floor'](0xffff*Math['random']())['toString'](0x10),null!=_0x1cc145['nodeType'])_0x5efa51['appendChild'](_0x1cc145),this['infoDestroy']=null;else{let {dom:_0x18f301,destroy:_0x4366e7}=_0x1cc145;_0x5efa51['appendChild'](_0x18f301),this['infoDestroy']=_0x4366e7||null;}this['dom']['appendChild'](_0x5efa51),this['view']['requestMeasure'](this['placeInfoReq']);}['updateSelectedOption'](_0x12839e){let _0x539af8=null;for(let _0x290086=this['list']['firstChild'],_0xcaf404=this['range']['from'];_0x290086;_0x290086=_0x290086['nextSibling'],_0xcaf404++)'LI'==_0x290086['nodeName']&&_0x290086['id']?_0xcaf404==_0x12839e?_0x290086['hasAttribute']('aria-selected')||(_0x290086['setAttribute']('aria-selected','true'),_0x539af8=_0x290086):_0x290086['hasAttribute']('aria-selected')&&(_0x290086['removeAttribute']('aria-selected'),_0x290086['removeAttribute']('aria-describedby')):_0xcaf404--;return _0x539af8&&scrollIntoView(this['list'],_0x539af8),_0x539af8;}['measureInfo'](){let _0x3f7c0b=this['dom']['querySelector']('[aria-selected]');if(!_0x3f7c0b||!this['info'])return null;let _0x33a509=this['dom']['getBoundingClientRect'](),_0x26c21e=this['info']['getBoundingClientRect'](),_0x995b26=_0x3f7c0b['getBoundingClientRect'](),_0x4dd694=this['space'];if(!_0x4dd694){let _0x38a5c4=this['dom']['ownerDocument']['documentElement'];_0x4dd694={'left':0x0,'top':0x0,'right':_0x38a5c4['clientWidth'],'bottom':_0x38a5c4['clientHeight']};}return _0x995b26['top']>Math['min'](_0x4dd694['bottom'],_0x33a509['bottom'])-0xa||_0x995b26['bottom']<Math['max'](_0x4dd694['top'],_0x33a509['top'])+0xa?null:this['view']['state']['facet'](completionConfig)['positionInfo'](this['view'],_0x33a509,_0x995b26,_0x26c21e,_0x4dd694,this['dom']);}['placeInfo'](_0x1e08a7){this['info']&&(_0x1e08a7?(_0x1e08a7['style']&&(this['info']['style']['cssText']=_0x1e08a7['style']),this['info']['className']='cm-tooltip\x20cm-completionInfo\x20'+(_0x1e08a7['class']||'')):this['info']['style']['cssText']='top:\x20-1e6px');}['createListBox'](_0x308816,_0x4d2f89,_0x5350b3){const _0x3f22d5=document['createElement']('ul');_0x3f22d5['id']=_0x4d2f89,_0x3f22d5['setAttribute']('role','listbox'),_0x3f22d5['setAttribute']('aria-expanded','true'),_0x3f22d5['setAttribute']('aria-label',this['view']['state']['phrase']('Completions')),_0x3f22d5['addEventListener']('mousedown',_0x337a2a=>{_0x337a2a['target']==_0x3f22d5&&_0x337a2a['preventDefault']();});let _0x10223b=null;for(let _0x2bf9e7=_0x5350b3['from'];_0x2bf9e7<_0x5350b3['to'];_0x2bf9e7++){let {completion:_0x945ca7,match:_0x4f8cc9}=_0x308816[_0x2bf9e7],{section:_0x5d28cb}=_0x945ca7;if(_0x5d28cb){let _0x31e1d7='string'==typeof _0x5d28cb?_0x5d28cb:_0x5d28cb['name'];if(_0x31e1d7!=_0x10223b&&(_0x2bf9e7>_0x5350b3['from']||0x0==_0x5350b3['from'])){if(_0x10223b=_0x31e1d7,'string'!=typeof _0x5d28cb&&_0x5d28cb['header'])_0x3f22d5['appendChild'](_0x5d28cb['header'](_0x5d28cb));else _0x3f22d5['appendChild'](document['createElement']('completion-section'))['textContent']=_0x31e1d7;}}const _0x176bc2=_0x3f22d5['appendChild'](document['createElement']('li'));_0x176bc2['id']=_0x4d2f89+'-'+_0x2bf9e7,_0x176bc2['setAttribute']('role','option');let _0xa11e21=this['optionClass'](_0x945ca7);_0xa11e21&&(_0x176bc2['className']=_0xa11e21);for(let _0x1414a5 of this['optionContent']){let _0x3ce3cb=_0x1414a5(_0x945ca7,this['view']['state'],this['view'],_0x4f8cc9);_0x3ce3cb&&_0x176bc2['appendChild'](_0x3ce3cb);}}return _0x5350b3['from']&&_0x3f22d5['classList']['add']('cm-completionListIncompleteTop'),_0x5350b3['to']<_0x308816['length']&&_0x3f22d5['classList']['add']('cm-completionListIncompleteBottom'),_0x3f22d5;}['destroyInfo'](){this['info']&&(this['infoDestroy']&&this['infoDestroy'](),this['info']['remove'](),this['info']=null);}['destroy'](){this['destroyInfo']();}}function completionTooltip(_0x21a2e4,_0x5bb6f3){return _0x1377f2=>new CompletionTooltip(_0x1377f2,_0x21a2e4,_0x5bb6f3);}function scrollIntoView(_0x288454,_0x58e9fc){let _0xc00a5a=_0x288454['getBoundingClientRect'](),_0x460960=_0x58e9fc['getBoundingClientRect'](),_0x2618b7=_0xc00a5a['height']/_0x288454['offsetHeight'];_0x460960['top']<_0xc00a5a['top']?_0x288454['scrollTop']-=(_0xc00a5a['top']-_0x460960['top'])/_0x2618b7:_0x460960['bottom']>_0xc00a5a['bottom']&&(_0x288454['scrollTop']+=(_0x460960['bottom']-_0xc00a5a['bottom'])/_0x2618b7);}function score(_0x518dcc){return 0x64*(_0x518dcc['boost']||0x0)+(_0x518dcc['apply']?0xa:0x0)+(_0x518dcc['info']?0x5:0x0)+(_0x518dcc['type']?0x1:0x0);}function sortOptions(_0x59360c,_0x50d47b){let _0x3cb430=[],_0xf3affa=null,_0x193508=null,_0x15115e=_0x2a3a55=>{_0x3cb430['push'](_0x2a3a55);let {section:_0x4ac178}=_0x2a3a55['completion'];if(_0x4ac178){_0xf3affa||(_0xf3affa=[]);let _0xc64da9='string'==typeof _0x4ac178?_0x4ac178:_0x4ac178['name'];_0xf3affa['some'](_0x503d4b=>_0x503d4b['name']==_0xc64da9)||_0xf3affa['push']('string'==typeof _0x4ac178?{'name':_0xc64da9}:_0x4ac178);}},_0x46de84=_0x50d47b['facet'](completionConfig);for(let _0x2bb61d of _0x59360c)if(_0x2bb61d['hasResult']()){let _0x2ec31e=_0x2bb61d['result']['getMatch'];if(!0x1===_0x2bb61d['result']['filter']){for(let _0xe16f86 of _0x2bb61d['result']['options'])_0x15115e(new Option(_0xe16f86,_0x2bb61d['source'],_0x2ec31e?_0x2ec31e(_0xe16f86):[],0x3b9aca00-_0x3cb430['length']));}else{let _0x55f814,_0x55d22b=_0x50d47b['sliceDoc'](_0x2bb61d['from'],_0x2bb61d['to']),_0x2715b8=_0x46de84['filterStrict']?new StrictMatcher(_0x55d22b):new FuzzyMatcher(_0x55d22b);for(let _0x1eb8fa of _0x2bb61d['result']['options'])if(_0x55f814=_0x2715b8['match'](_0x1eb8fa['label'])){let _0x10dc3f=_0x1eb8fa['displayLabel']?_0x2ec31e?_0x2ec31e(_0x1eb8fa,_0x55f814['matched']):[]:_0x55f814['matched'],_0x4276b9=_0x55f814['score']+(_0x1eb8fa['boost']||0x0);if(_0x15115e(new Option(_0x1eb8fa,_0x2bb61d['source'],_0x10dc3f,_0x4276b9)),'object'==typeof _0x1eb8fa['section']&&'dynamic'===_0x1eb8fa['section']['rank']){let {name:_0x3ae4ef}=_0x1eb8fa['section'];_0x193508||(_0x193508=Object['create'](null)),_0x193508[_0x3ae4ef]=Math['max'](_0x4276b9,_0x193508[_0x3ae4ef]||-0x3b9aca00);}}}}if(_0xf3affa){let _0x2f55af=Object['create'](null),_0x5069f6=0x0,_0x31a410=(_0x4995ec,_0x355969)=>('dynamic'===_0x4995ec['rank']&&'dynamic'===_0x355969['rank']?_0x193508[_0x355969['name']]-_0x193508[_0x4995ec['name']]:0x0)||('number'==typeof _0x4995ec['rank']?_0x4995ec['rank']:0x3b9aca00)-('number'==typeof _0x355969['rank']?_0x355969['rank']:0x3b9aca00)||(_0x4995ec['name']<_0x355969['name']?-0x1:0x1);for(let _0xfa6be4 of _0xf3affa['sort'](_0x31a410))_0x5069f6-=0x186a0,_0x2f55af[_0xfa6be4['name']]=_0x5069f6;for(let _0x322dee of _0x3cb430){let {section:_0x5710be}=_0x322dee['completion'];_0x5710be&&(_0x322dee['score']+=_0x2f55af['string'==typeof _0x5710be?_0x5710be:_0x5710be['name']]);}}let _0x55d4d7=[],_0x3b810b=null,_0x9c8bce=_0x46de84['compareCompletions'];for(let _0x166258 of _0x3cb430['sort']((_0x26a66d,_0x359b5a)=>_0x359b5a['score']-_0x26a66d['score']||_0x9c8bce(_0x26a66d['completion'],_0x359b5a['completion']))){let _0x4f0664=_0x166258['completion'];!_0x3b810b||_0x3b810b['label']!=_0x4f0664['label']||_0x3b810b['detail']!=_0x4f0664['detail']||null!=_0x3b810b['type']&&null!=_0x4f0664['type']&&_0x3b810b['type']!=_0x4f0664['type']||_0x3b810b['apply']!=_0x4f0664['apply']||_0x3b810b['boost']!=_0x4f0664['boost']?_0x55d4d7['push'](_0x166258):score(_0x166258['completion'])>score(_0x3b810b)&&(_0x55d4d7[_0x55d4d7['length']-0x1]=_0x166258),_0x3b810b=_0x166258['completion'];}return _0x55d4d7;}class CompletionDialog{constructor(_0xb30c9f,_0x44338d,_0x2787f1,_0x733477,_0x4be888,_0x126c00){this['options']=_0xb30c9f,this['attrs']=_0x44338d,this['tooltip']=_0x2787f1,this['timestamp']=_0x733477,this['selected']=_0x4be888,this['disabled']=_0x126c00;}['setSelected'](_0x4294c8,_0x2bbe89){return _0x4294c8==this['selected']||_0x4294c8>=this['options']['length']?this:new CompletionDialog(this['options'],makeAttrs(_0x2bbe89,_0x4294c8),this['tooltip'],this['timestamp'],_0x4294c8,this['disabled']);}static['build'](_0x323945,_0x408554,_0x3e5de2,_0x5a91f4,_0x12d6da,_0x4741a5){if(_0x5a91f4&&!_0x4741a5&&_0x323945['some'](_0x23fc0d=>_0x23fc0d['isPending']))return _0x5a91f4['setDisabled']();let _0x2e785d=sortOptions(_0x323945,_0x408554);if(!_0x2e785d['length'])return _0x5a91f4&&_0x323945['some'](_0x1c0efa=>_0x1c0efa['isPending'])?_0x5a91f4['setDisabled']():null;let _0x4d347b=_0x408554['facet'](completionConfig)['selectOnOpen']?0x0:-0x1;if(_0x5a91f4&&_0x5a91f4['selected']!=_0x4d347b&&-0x1!=_0x5a91f4['selected']){let _0x3416c6=_0x5a91f4['options'][_0x5a91f4['selected']]['completion'];for(let _0x40f9fa=0x0;_0x40f9fa<_0x2e785d['length'];_0x40f9fa++)if(_0x2e785d[_0x40f9fa]['completion']==_0x3416c6){_0x4d347b=_0x40f9fa;break;}}return new CompletionDialog(_0x2e785d,makeAttrs(_0x3e5de2,_0x4d347b),{'pos':_0x323945['reduce']((_0x585ed2,_0x52f4e1)=>_0x52f4e1['hasResult']()?Math['min'](_0x585ed2,_0x52f4e1['from']):_0x585ed2,0x5f5e100),'create':createTooltip,'above':_0x12d6da['aboveCursor']},_0x5a91f4?_0x5a91f4['timestamp']:Date['now'](),_0x4d347b,!0x1);}['map'](_0x198083){return new CompletionDialog(this['options'],this['attrs'],{...this['tooltip'],'pos':_0x198083['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);}}class CompletionState{constructor(_0x1ffc2a,_0x48689f,_0x29e525){this['active']=_0x1ffc2a,this['id']=_0x48689f,this['open']=_0x29e525;}static['start'](){return new CompletionState(none$1,'cm-ac-'+Math['floor'](0x1e8480*Math['random']())['toString'](0x24),null);}['update'](_0x33b4ee){let {state:_0x2a7e2f}=_0x33b4ee,_0x38b30a=_0x2a7e2f['facet'](completionConfig),_0x52fb39=(_0x38b30a['override']||_0x2a7e2f['languageDataAt']('autocomplete',cur(_0x2a7e2f))['map'](asSource))['map'](_0x40dc5f=>{let _0x3b06eb=this['active']['find'](_0x14beb4=>_0x14beb4['source']==_0x40dc5f)||new ActiveSource(_0x40dc5f,this['active']['some'](_0x11ebce=>0x0!=_0x11ebce['state'])?0x1:0x0);return _0x3b06eb['update'](_0x33b4ee,_0x38b30a);});_0x52fb39['length']==this['active']['length']&&_0x52fb39['every']((_0x5764e3,_0x3d26ff)=>_0x5764e3==this['active'][_0x3d26ff])&&(_0x52fb39=this['active']);let _0x25f58c=this['open'],_0x52780e=_0x33b4ee['effects']['some'](_0x127e81=>_0x127e81['is'](setActiveEffect));_0x25f58c&&_0x33b4ee['docChanged']&&(_0x25f58c=_0x25f58c['map'](_0x33b4ee['changes'])),_0x33b4ee['selection']||_0x52fb39['some'](_0x4d0f84=>_0x4d0f84['hasResult']()&&_0x33b4ee['changes']['touchesRange'](_0x4d0f84['from'],_0x4d0f84['to']))||!sameResults(_0x52fb39,this['active'])||_0x52780e?_0x25f58c=CompletionDialog['build'](_0x52fb39,_0x2a7e2f,this['id'],_0x25f58c,_0x38b30a,_0x52780e):_0x25f58c&&_0x25f58c['disabled']&&!_0x52fb39['some'](_0x22d036=>_0x22d036['isPending'])&&(_0x25f58c=null),!_0x25f58c&&_0x52fb39['every'](_0x3dfb2d=>!_0x3dfb2d['isPending'])&&_0x52fb39['some'](_0x24ecba=>_0x24ecba['hasResult']())&&(_0x52fb39=_0x52fb39['map'](_0x14812b=>_0x14812b['hasResult']()?new ActiveSource(_0x14812b['source'],0x0):_0x14812b));for(let _0x3d2436 of _0x33b4ee['effects'])_0x3d2436['is'](setSelectedEffect)&&(_0x25f58c=_0x25f58c&&_0x25f58c['setSelected'](_0x3d2436['value'],this['id']));return _0x52fb39==this['active']&&_0x25f58c==this['open']?this:new CompletionState(_0x52fb39,this['id'],_0x25f58c);}get['tooltip'](){return this['open']?this['open']['tooltip']:null;}get['attrs'](){return this['open']?this['open']['attrs']:this['active']['length']?baseAttrs:noAttrs;}}function sameResults(_0x515b81,_0x1ac40e){if(_0x515b81==_0x1ac40e)return!0x0;for(let _0x29085c=0x0,_0x427427=0x0;;){for(;_0x29085c<_0x515b81['length']&&!_0x515b81[_0x29085c]['hasResult']();)_0x29085c++;for(;_0x427427<_0x1ac40e['length']&&!_0x1ac40e[_0x427427]['hasResult']();)_0x427427++;let _0x365e8f=_0x29085c==_0x515b81['length'],_0x13c4a0=_0x427427==_0x1ac40e['length'];if(_0x365e8f||_0x13c4a0)return _0x365e8f==_0x13c4a0;if(_0x515b81[_0x29085c++]['result']!=_0x1ac40e[_0x427427++]['result'])return!0x1;}}const baseAttrs={'aria-autocomplete':'list'},noAttrs={};function makeAttrs(_0x5cc082,_0x29e7e1){let _0x422e7a={'aria-autocomplete':'list','aria-haspopup':'listbox','aria-controls':_0x5cc082};return _0x29e7e1>-0x1&&(_0x422e7a['aria-activedescendant']=_0x5cc082+'-'+_0x29e7e1),_0x422e7a;}const none$1=[];function getUpdateType(_0x313ae0,_0x33b2c6){if(_0x313ae0['isUserEvent']('input.complete')){let _0x33f1f5=_0x313ae0['annotation'](pickedCompletion);if(_0x33f1f5&&_0x33b2c6['activateOnCompletion'](_0x33f1f5))return 0xc;}let _0x25bec3=_0x313ae0['isUserEvent']('input.type');return _0x25bec3&&_0x33b2c6['activateOnTyping']?0x5:_0x25bec3?0x1:_0x313ae0['isUserEvent']('delete.backward')?0x2:_0x313ae0['selection']?0x8:_0x313ae0['docChanged']?0x10:0x0;}class ActiveSource{constructor(_0xf4523e,_0x1e83ca,_0xef458=!0x1){this['source']=_0xf4523e,this['state']=_0x1e83ca,this['explicit']=_0xef458;}['hasResult'](){return!0x1;}get['isPending'](){return 0x1==this['state'];}['update'](_0x3e0e7c,_0x4468ae){let _0x2abd1f=getUpdateType(_0x3e0e7c,_0x4468ae),_0xbbbb5d=this;(0x8&_0x2abd1f||0x10&_0x2abd1f&&this['touches'](_0x3e0e7c))&&(_0xbbbb5d=new ActiveSource(_0xbbbb5d['source'],0x0)),0x4&_0x2abd1f&&0x0==_0xbbbb5d['state']&&(_0xbbbb5d=new ActiveSource(this['source'],0x1)),_0xbbbb5d=_0xbbbb5d['updateFor'](_0x3e0e7c,_0x2abd1f);for(let _0x12a4cf of _0x3e0e7c['effects'])if(_0x12a4cf['is'](startCompletionEffect))_0xbbbb5d=new ActiveSource(_0xbbbb5d['source'],0x1,_0x12a4cf['value']);else{if(_0x12a4cf['is'](closeCompletionEffect))_0xbbbb5d=new ActiveSource(_0xbbbb5d['source'],0x0);else{if(_0x12a4cf['is'](setActiveEffect)){for(let _0x17e28b of _0x12a4cf['value'])_0x17e28b['source']==_0xbbbb5d['source']&&(_0xbbbb5d=_0x17e28b);}}}return _0xbbbb5d;}['updateFor'](_0xb90599,_0x47d0cd){return this['map'](_0xb90599['changes']);}['map'](_0x20825a){return this;}['touches'](_0x11ef9b){return _0x11ef9b['changes']['touchesRange'](cur(_0x11ef9b['state']));}}class ActiveResult extends ActiveSource{constructor(_0x3caaf6,_0x31c313,_0xc4f2fb,_0x2ad35f,_0x3c11a5,_0x4af13e){super(_0x3caaf6,0x3,_0x31c313),this['limit']=_0xc4f2fb,this['result']=_0x2ad35f,this['from']=_0x3c11a5,this['to']=_0x4af13e;}['hasResult'](){return!0x0;}['updateFor'](_0x152c31,_0x305eb2){var _0x5397ab;if(!(0x3&_0x305eb2))return this['map'](_0x152c31['changes']);let _0x351c10=this['result'];_0x351c10['map']&&!_0x152c31['changes']['empty']&&(_0x351c10=_0x351c10['map'](_0x351c10,_0x152c31['changes']));let _0x292937=_0x152c31['changes']['mapPos'](this['from']),_0x1a0501=_0x152c31['changes']['mapPos'](this['to'],0x1),_0x178450=cur(_0x152c31['state']);if(_0x178450>_0x1a0501||!_0x351c10||0x2&_0x305eb2&&(cur(_0x152c31['startState'])==this['from']||_0x178450<this['limit']))return new ActiveSource(this['source'],0x4&_0x305eb2?0x1:0x0);let _0x5e7a9c=_0x152c31['changes']['mapPos'](this['limit']);return checkValid(_0x351c10['validFor'],_0x152c31['state'],_0x292937,_0x1a0501)?new ActiveResult(this['source'],this['explicit'],_0x5e7a9c,_0x351c10,_0x292937,_0x1a0501):_0x351c10['update']&&(_0x351c10=_0x351c10['update'](_0x351c10,_0x292937,_0x1a0501,new CompletionContext(_0x152c31['state'],_0x178450,!0x1)))?new ActiveResult(this['source'],this['explicit'],_0x5e7a9c,_0x351c10,_0x351c10['from'],null!==(_0x5397ab=_0x351c10['to'])&&void 0x0!==_0x5397ab?_0x5397ab:cur(_0x152c31['state'])):new ActiveSource(this['source'],0x1,this['explicit']);}['map'](_0x185c1e){if(_0x185c1e['empty'])return this;return(this['result']['map']?this['result']['map'](this['result'],_0x185c1e):this['result'])?new ActiveResult(this['source'],this['explicit'],_0x185c1e['mapPos'](this['limit']),this['result'],_0x185c1e['mapPos'](this['from']),_0x185c1e['mapPos'](this['to'],0x1)):new ActiveSource(this['source'],0x0);}['touches'](_0x457511){return _0x457511['changes']['touchesRange'](this['from'],this['to']);}}function checkValid(_0x22ba38,_0xa6a78a,_0x356153,_0x537aa6){if(!_0x22ba38)return!0x1;let _0x5ae71b=_0xa6a78a['sliceDoc'](_0x356153,_0x537aa6);return'function'==typeof _0x22ba38?_0x22ba38(_0x5ae71b,_0x356153,_0x537aa6,_0xa6a78a):ensureAnchor(_0x22ba38,!0x0)['test'](_0x5ae71b);}const setActiveEffect=StateEffect['define']({'map':(_0x4ac93a,_0x677721)=>_0x4ac93a['map'](_0x41563d=>_0x41563d['map'](_0x677721))}),setSelectedEffect=StateEffect['define'](),completionState=StateField['define']({'create':()=>CompletionState['start'](),'update':(_0x7557e6,_0x4328f8)=>_0x7557e6['update'](_0x4328f8),'provide':_0x5f2f5a=>[showTooltip['from'](_0x5f2f5a,_0x1b607d=>_0x1b607d['tooltip']),EditorView['contentAttributes']['from'](_0x5f2f5a,_0x4b63bd=>_0x4b63bd['attrs'])]});function applyCompletion(_0x439952,_0x171320){const _0x1323c2=_0x171320['completion']['apply']||_0x171320['completion']['label'];let _0x5cf353=_0x439952['state']['field'](completionState)['active']['find'](_0x334a8b=>_0x334a8b['source']==_0x171320['source']);return _0x5cf353 instanceof ActiveResult&&('string'==typeof _0x1323c2?_0x439952['dispatch']({...insertCompletionText(_0x439952['state'],_0x1323c2,_0x5cf353['from'],_0x5cf353['to']),'annotations':pickedCompletion['of'](_0x171320['completion'])}):_0x1323c2(_0x439952,_0x171320['completion'],_0x5cf353['from'],_0x5cf353['to']),!0x0);}const createTooltip=completionTooltip(completionState,applyCompletion);function moveCompletionSelection(_0x42b423,_0x13b124='option'){return _0x261857=>{let _0x5b8a70=_0x261857['state']['field'](completionState,!0x1);if(!_0x5b8a70||!_0x5b8a70['open']||_0x5b8a70['open']['disabled']||Date['now']()-_0x5b8a70['open']['timestamp']<_0x261857['state']['facet'](completionConfig)['interactionDelay'])return!0x1;let _0x64a002,_0x2a7ee6=0x1;'page'==_0x13b124&&(_0x64a002=getTooltip(_0x261857,_0x5b8a70['open']['tooltip']))&&(_0x2a7ee6=Math['max'](0x2,Math['floor'](_0x64a002['dom']['offsetHeight']/_0x64a002['dom']['querySelector']('li')['offsetHeight'])-0x1));let {length:_0x284a91}=_0x5b8a70['open']['options'],_0x51bbce=_0x5b8a70['open']['selected']>-0x1?_0x5b8a70['open']['selected']+_0x2a7ee6*(_0x42b423?0x1:-0x1):_0x42b423?0x0:_0x284a91-0x1;return _0x51bbce<0x0?_0x51bbce='page'==_0x13b124?0x0:_0x284a91-0x1:_0x51bbce>=_0x284a91&&(_0x51bbce='page'==_0x13b124?_0x284a91-0x1:0x0),_0x261857['dispatch']({'effects':setSelectedEffect['of'](_0x51bbce)}),!0x0;};}const acceptCompletion=_0x120b2d=>{let _0x142ae3=_0x120b2d['state']['field'](completionState,!0x1);return!(_0x120b2d['state']['readOnly']||!_0x142ae3||!_0x142ae3['open']||_0x142ae3['open']['selected']<0x0||_0x142ae3['open']['disabled']||Date['now']()-_0x142ae3['open']['timestamp']<_0x120b2d['state']['facet'](completionConfig)['interactionDelay'])&&applyCompletion(_0x120b2d,_0x142ae3['open']['options'][_0x142ae3['open']['selected']]);},startCompletion=_0x5d26a9=>!!_0x5d26a9['state']['field'](completionState,!0x1)&&(_0x5d26a9['dispatch']({'effects':startCompletionEffect['of'](!0x0)}),!0x0),closeCompletion=_0x15403e=>{let _0x2733f4=_0x15403e['state']['field'](completionState,!0x1);return!(!_0x2733f4||!_0x2733f4['active']['some'](_0x1ce066=>0x0!=_0x1ce066['state']))&&(_0x15403e['dispatch']({'effects':closeCompletionEffect['of'](null)}),!0x0);};class RunningQuery{constructor(_0x4d1664,_0x2d785a){this['active']=_0x4d1664,this['context']=_0x2d785a,this['time']=Date['now'](),this['updates']=[],this['done']=void 0x0;}}const MaxUpdateCount=0x32,MinAbortTime=0x3e8,completionPlugin=ViewPlugin['fromClass'](class{constructor(_0x5d5adc){this['view']=_0x5d5adc,this['debounceUpdate']=-0x1,this['running']=[],this['debounceAccept']=-0x1,this['pendingStart']=!0x1,this['composing']=0x0;for(let _0x2e8a39 of _0x5d5adc['state']['field'](completionState)['active'])_0x2e8a39['isPending']&&this['startQuery'](_0x2e8a39);}['update'](_0x37074e){let _0x38be14=_0x37074e['state']['field'](completionState),_0x1c7ca9=_0x37074e['state']['facet'](completionConfig);if(!_0x37074e['selectionSet']&&!_0x37074e['docChanged']&&_0x37074e['startState']['field'](completionState)==_0x38be14)return;let _0x4f99e2=_0x37074e['transactions']['some'](_0x40aea7=>{let _0x2fd133=getUpdateType(_0x40aea7,_0x1c7ca9);return 0x8&_0x2fd133||(_0x40aea7['selection']||_0x40aea7['docChanged'])&&!(0x3&_0x2fd133);});for(let _0x47662a=0x0;_0x47662a<this['running']['length'];_0x47662a++){let _0x153949=this['running'][_0x47662a];if(_0x4f99e2||_0x153949['context']['abortOnDocChange']&&_0x37074e['docChanged']||_0x153949['updates']['length']+_0x37074e['transactions']['length']>MaxUpdateCount&&Date['now']()-_0x153949['time']>MinAbortTime){for(let _0x433286 of _0x153949['context']['abortListeners'])try{_0x433286();}catch(_0x5b8c87){logException(this['view']['state'],_0x5b8c87);}_0x153949['context']['abortListeners']=null,this['running']['splice'](_0x47662a--,0x1);}else _0x153949['updates']['push'](..._0x37074e['transactions']);}this['debounceUpdate']>-0x1&&clearTimeout(this['debounceUpdate']),_0x37074e['transactions']['some'](_0xb4ac29=>_0xb4ac29['effects']['some'](_0x47ee2b=>_0x47ee2b['is'](startCompletionEffect)))&&(this['pendingStart']=!0x0);let _0x2f3a81=this['pendingStart']?0x32:_0x1c7ca9['activateOnTypingDelay'];if(this['debounceUpdate']=_0x38be14['active']['some'](_0x3cc0a9=>_0x3cc0a9['isPending']&&!this['running']['some'](_0x23a235=>_0x23a235['active']['source']==_0x3cc0a9['source']))?setTimeout(()=>this['startUpdate'](),_0x2f3a81):-0x1,0x0!=this['composing']){for(let _0xb80a6d of _0x37074e['transactions'])_0xb80a6d['isUserEvent']('input.type')?this['composing']=0x2:0x2==this['composing']&&_0xb80a6d['selection']&&(this['composing']=0x3);}}['startUpdate'](){this['debounceUpdate']=-0x1,this['pendingStart']=!0x1;let {state:_0x317cf5}=this['view'],_0x12a52f=_0x317cf5['field'](completionState);for(let _0x22f89 of _0x12a52f['active'])_0x22f89['isPending']&&!this['running']['some'](_0x47379c=>_0x47379c['active']['source']==_0x22f89['source'])&&this['startQuery'](_0x22f89);this['running']['length']&&_0x12a52f['open']&&_0x12a52f['open']['disabled']&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['startQuery'](_0x325be5){let {state:_0x5b19af}=this['view'],_0x49cef0=cur(_0x5b19af),_0x4c8ae6=new CompletionContext(_0x5b19af,_0x49cef0,_0x325be5['explicit'],this['view']),_0x4c2003=new RunningQuery(_0x325be5,_0x4c8ae6);this['running']['push'](_0x4c2003),Promise['resolve'](_0x325be5['source'](_0x4c8ae6))['then'](_0x1b5ff9=>{_0x4c2003['context']['aborted']||(_0x4c2003['done']=_0x1b5ff9||null,this['scheduleAccept']());},_0x1bd4de=>{this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),logException(this['view']['state'],_0x1bd4de);});}['scheduleAccept'](){this['running']['every'](_0x4f8e4c=>void 0x0!==_0x4f8e4c['done'])?this['accept']():this['debounceAccept']<0x0&&(this['debounceAccept']=setTimeout(()=>this['accept'](),this['view']['state']['facet'](completionConfig)['updateSyncTime']));}['accept'](){var _0x56c2dd;this['debounceAccept']>-0x1&&clearTimeout(this['debounceAccept']),this['debounceAccept']=-0x1;let _0x4685c8=[],_0x1ec1d4=this['view']['state']['facet'](completionConfig),_0x24d6a3=this['view']['state']['field'](completionState);for(let _0x1c7dc9=0x0;_0x1c7dc9<this['running']['length'];_0x1c7dc9++){let _0x4daeda=this['running'][_0x1c7dc9];if(void 0x0===_0x4daeda['done'])continue;if(this['running']['splice'](_0x1c7dc9--,0x1),_0x4daeda['done']){let _0x3557f0=cur(_0x4daeda['updates']['length']?_0x4daeda['updates'][0x0]['startState']:this['view']['state']),_0x1fbd12=Math['min'](_0x3557f0,_0x4daeda['done']['from']+(_0x4daeda['active']['explicit']?0x0:0x1)),_0x4761e0=new ActiveResult(_0x4daeda['active']['source'],_0x4daeda['active']['explicit'],_0x1fbd12,_0x4daeda['done'],_0x4daeda['done']['from'],null!==(_0x56c2dd=_0x4daeda['done']['to'])&&void 0x0!==_0x56c2dd?_0x56c2dd:_0x3557f0);for(let _0x5173d2 of _0x4daeda['updates'])_0x4761e0=_0x4761e0['update'](_0x5173d2,_0x1ec1d4);if(_0x4761e0['hasResult']()){_0x4685c8['push'](_0x4761e0);continue;}}let _0x46d6a8=_0x24d6a3['active']['find'](_0x35f0a5=>_0x35f0a5['source']==_0x4daeda['active']['source']);if(_0x46d6a8&&_0x46d6a8['isPending']){if(null==_0x4daeda['done']){let _0x524d3b=new ActiveSource(_0x4daeda['active']['source'],0x0);for(let _0x421106 of _0x4daeda['updates'])_0x524d3b=_0x524d3b['update'](_0x421106,_0x1ec1d4);_0x524d3b['isPending']||_0x4685c8['push'](_0x524d3b);}else this['startQuery'](_0x46d6a8);}}(_0x4685c8['length']||_0x24d6a3['open']&&_0x24d6a3['open']['disabled'])&&this['view']['dispatch']({'effects':setActiveEffect['of'](_0x4685c8)});}},{'eventHandlers':{'blur'(_0x25187c){let _0x3c2d75=this['view']['state']['field'](completionState,!0x1);if(_0x3c2d75&&_0x3c2d75['tooltip']&&this['view']['state']['facet'](completionConfig)['closeOnBlur']){let _0x4ea7fd=_0x3c2d75['open']&&getTooltip(this['view'],_0x3c2d75['open']['tooltip']);_0x4ea7fd&&_0x4ea7fd['dom']['contains'](_0x25187c['relatedTarget'])||setTimeout(()=>this['view']['dispatch']({'effects':closeCompletionEffect['of'](null)}),0xa);}},'compositionstart'(){this['composing']=0x1;},'compositionend'(){0x3==this['composing']&&setTimeout(()=>this['view']['dispatch']({'effects':startCompletionEffect['of'](!0x1)}),0x14),this['composing']=0x0;}}}),windows='object'==typeof navigator&&/Win/['test'](navigator['platform']),commitCharacters=Prec['highest'](EditorView['domEventHandlers']({'keydown'(_0x593411,_0x112119){let _0x3e9886=_0x112119['state']['field'](completionState,!0x1);if(!_0x3e9886||!_0x3e9886['open']||_0x3e9886['open']['disabled']||_0x3e9886['open']['selected']<0x0||_0x593411['key']['length']>0x1||_0x593411['ctrlKey']&&(!windows||!_0x593411['altKey'])||_0x593411['metaKey'])return!0x1;let _0x12c350=_0x3e9886['open']['options'][_0x3e9886['open']['selected']],_0x3c1781=_0x3e9886['active']['find'](_0x6f13ac=>_0x6f13ac['source']==_0x12c350['source']),_0x12536f=_0x12c350['completion']['commitCharacters']||_0x3c1781['result']['commitCharacters'];return _0x12536f&&_0x12536f['indexOf'](_0x593411['key'])>-0x1&&applyCompletion(_0x112119,_0x12c350),!0x1;}})),baseTheme=EditorView['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'},'.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'}}});class FieldPos{constructor(_0x63e9a4,_0x4a34b1,_0xd5a203,_0x231ac8){this['field']=_0x63e9a4,this['line']=_0x4a34b1,this['from']=_0xd5a203,this['to']=_0x231ac8;}}class FieldRange{constructor(_0x5ecad4,_0x335034,_0x77e6f5){this['field']=_0x5ecad4,this['from']=_0x335034,this['to']=_0x77e6f5;}['map'](_0x4c3967){let _0x2e8115=_0x4c3967['mapPos'](this['from'],-0x1,MapMode['TrackDel']),_0x2f75d5=_0x4c3967['mapPos'](this['to'],0x1,MapMode['TrackDel']);return null==_0x2e8115||null==_0x2f75d5?null:new FieldRange(this['field'],_0x2e8115,_0x2f75d5);}}class Snippet{constructor(_0xd91027,_0x2c0ef7){this['lines']=_0xd91027,this['fieldPositions']=_0x2c0ef7;}['instantiate'](_0xff4b31,_0xef4cfa){let _0xbcf275=[],_0x46c5dd=[_0xef4cfa],_0x1bf2e6=_0xff4b31['doc']['lineAt'](_0xef4cfa),_0x45a298=/^\s*/['exec'](_0x1bf2e6['text'])[0x0];for(let _0x4062a2 of this['lines']){if(_0xbcf275['length']){let _0x57e856=_0x45a298,_0x7a8e96=/^\t*/['exec'](_0x4062a2)[0x0]['length'];for(let _0x35fb88=0x0;_0x35fb88<_0x7a8e96;_0x35fb88++)_0x57e856+=_0xff4b31['facet'](indentUnit);_0x46c5dd['push'](_0xef4cfa+_0x57e856['length']-_0x7a8e96),_0x4062a2=_0x57e856+_0x4062a2['slice'](_0x7a8e96);}_0xbcf275['push'](_0x4062a2),_0xef4cfa+=_0x4062a2['length']+0x1;}let _0x8c81f8=this['fieldPositions']['map'](_0x2687c7=>new FieldRange(_0x2687c7['field'],_0x46c5dd[_0x2687c7['line']]+_0x2687c7['from'],_0x46c5dd[_0x2687c7['line']]+_0x2687c7['to']));return{'text':_0xbcf275,'ranges':_0x8c81f8};}static['parse'](_0x59b256){let _0x57afaf,_0x53d66d=[],_0x349dac=[],_0x254ede=[];for(let _0x2492be of _0x59b256['split'](/\r\n?|\n/)){for(;_0x57afaf=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/['exec'](_0x2492be);){let _0x46d4d5=_0x57afaf[0x1]?+_0x57afaf[0x1]:null,_0x229271=_0x57afaf[0x2]||_0x57afaf[0x3]||'',_0x1907c5=-0x1,_0x8dafbd=_0x229271['replace'](/\\[{}]/g,_0x96ec9b=>_0x96ec9b[0x1]);for(let _0x57235b=0x0;_0x57235b<_0x53d66d['length'];_0x57235b++)(null!=_0x46d4d5?_0x53d66d[_0x57235b]['seq']==_0x46d4d5:_0x8dafbd&&_0x53d66d[_0x57235b]['name']==_0x8dafbd)&&(_0x1907c5=_0x57235b);if(_0x1907c5<0x0){let _0xf1a953=0x0;for(;_0xf1a953<_0x53d66d['length']&&(null==_0x46d4d5||null!=_0x53d66d[_0xf1a953]['seq']&&_0x53d66d[_0xf1a953]['seq']<_0x46d4d5);)_0xf1a953++;_0x53d66d['splice'](_0xf1a953,0x0,{'seq':_0x46d4d5,'name':_0x8dafbd}),_0x1907c5=_0xf1a953;for(let _0x3c6954 of _0x254ede)_0x3c6954['field']>=_0x1907c5&&_0x3c6954['field']++;}for(let _0xd80848 of _0x254ede)if(_0xd80848['line']==_0x349dac['length']&&_0xd80848['from']>_0x57afaf['index']){let _0x48be41=_0x57afaf[0x2]?0x3+(_0x57afaf[0x1]||'')['length']:0x2;_0xd80848['from']-=_0x48be41,_0xd80848['to']-=_0x48be41;}_0x254ede['push'](new FieldPos(_0x1907c5,_0x349dac['length'],_0x57afaf['index'],_0x57afaf['index']+_0x8dafbd['length'])),_0x2492be=_0x2492be['slice'](0x0,_0x57afaf['index'])+_0x229271+_0x2492be['slice'](_0x57afaf['index']+_0x57afaf[0x0]['length']);}_0x2492be=_0x2492be['replace'](/\\([{}])/g,(_0x266f02,_0x1c5017,_0x41faf7)=>{for(let _0x8eba2d of _0x254ede)_0x8eba2d['line']==_0x349dac['length']&&_0x8eba2d['from']>_0x41faf7&&(_0x8eba2d['from']--,_0x8eba2d['to']--);return _0x1c5017;}),_0x349dac['push'](_0x2492be);}return new Snippet(_0x349dac,_0x254ede);}}let fieldMarker=Decoration['widget']({'widget':new class extends WidgetType{['toDOM'](){let _0x218d84=document['createElement']('span');return _0x218d84['className']='cm-snippetFieldPosition',_0x218d84;}['ignoreEvent'](){return!0x1;}}()}),fieldRange=Decoration['mark']({'class':'cm-snippetField'});class ActiveSnippet{constructor(_0x403ff7,_0x23f50e){this['ranges']=_0x403ff7,this['active']=_0x23f50e,this['deco']=Decoration['set'](_0x403ff7['map'](_0x2c4850=>(_0x2c4850['from']==_0x2c4850['to']?fieldMarker:fieldRange)['range'](_0x2c4850['from'],_0x2c4850['to'])),!0x0);}['map'](_0x31810f){let _0x112e43=[];for(let _0x12cfe0 of this['ranges']){let _0x5d283a=_0x12cfe0['map'](_0x31810f);if(!_0x5d283a)return null;_0x112e43['push'](_0x5d283a);}return new ActiveSnippet(_0x112e43,this['active']);}['selectionInsideField'](_0x2da57a){return _0x2da57a['ranges']['every'](_0x3527d8=>this['ranges']['some'](_0x148990=>_0x148990['field']==this['active']&&_0x148990['from']<=_0x3527d8['from']&&_0x148990['to']>=_0x3527d8['to']));}}const setActive=StateEffect['define']({'map':(_0x216970,_0x4eae7d)=>_0x216970&&_0x216970['map'](_0x4eae7d)}),moveToField=StateEffect['define'](),snippetState=StateField['define']({'create':()=>null,'update'(_0x176b5f,_0x252c09){for(let _0x56620c of _0x252c09['effects']){if(_0x56620c['is'](setActive))return _0x56620c['value'];if(_0x56620c['is'](moveToField)&&_0x176b5f)return new ActiveSnippet(_0x176b5f['ranges'],_0x56620c['value']);}return _0x176b5f&&_0x252c09['docChanged']&&(_0x176b5f=_0x176b5f['map'](_0x252c09['changes'])),_0x176b5f&&_0x252c09['selection']&&!_0x176b5f['selectionInsideField'](_0x252c09['selection'])&&(_0x176b5f=null),_0x176b5f;},'provide':_0x1ab95f=>EditorView['decorations']['from'](_0x1ab95f,_0x5ea153=>_0x5ea153?_0x5ea153['deco']:Decoration['none'])});function fieldSelection(_0x55e3c8,_0x1f057f){return EditorSelection['create'](_0x55e3c8['filter'](_0x1c4cdb=>_0x1c4cdb['field']==_0x1f057f)['map'](_0x415a56=>EditorSelection['range'](_0x415a56['from'],_0x415a56['to'])));}function snippet(_0x570eec){let _0x33780b=Snippet['parse'](_0x570eec);return(_0x3a02bc,_0x5e3a9b,_0x34630e,_0x4cfd25)=>{let {text:_0x4779df,ranges:_0x48137d}=_0x33780b['instantiate'](_0x3a02bc['state'],_0x34630e),{main:_0x1062f5}=_0x3a02bc['state']['selection'],_0x3c16a2={'changes':{'from':_0x34630e,'to':_0x4cfd25==_0x1062f5['from']?_0x1062f5['to']:_0x4cfd25,'insert':Text['of'](_0x4779df)},'scrollIntoView':!0x0,'annotations':_0x5e3a9b?[pickedCompletion['of'](_0x5e3a9b),Transaction['userEvent']['of']('input.complete')]:void 0x0};if(_0x48137d['length']&&(_0x3c16a2['selection']=fieldSelection(_0x48137d,0x0)),_0x48137d['some'](_0x26ce80=>_0x26ce80['field']>0x0)){let _0x4db97d=new ActiveSnippet(_0x48137d,0x0),_0x79b688=_0x3c16a2['effects']=[setActive['of'](_0x4db97d)];void 0x0===_0x3a02bc['state']['field'](snippetState,!0x1)&&_0x79b688['push'](StateEffect['appendConfig']['of']([snippetState,addSnippetKeymap,snippetPointerHandler,baseTheme]));}_0x3a02bc['dispatch'](_0x3a02bc['state']['update'](_0x3c16a2));};}function moveField(_0x3d0cbd){return({state:_0x5cee17,dispatch:_0x43c582})=>{let _0x2bdedf=_0x5cee17['field'](snippetState,!0x1);if(!_0x2bdedf||_0x3d0cbd<0x0&&0x0==_0x2bdedf['active'])return!0x1;let _0x9a55a3=_0x2bdedf['active']+_0x3d0cbd,_0x1f5d7e=_0x3d0cbd>0x0&&!_0x2bdedf['ranges']['some'](_0x2e7d2f=>_0x2e7d2f['field']==_0x9a55a3+_0x3d0cbd);return _0x43c582(_0x5cee17['update']({'selection':fieldSelection(_0x2bdedf['ranges'],_0x9a55a3),'effects':setActive['of'](_0x1f5d7e?null:new ActiveSnippet(_0x2bdedf['ranges'],_0x9a55a3)),'scrollIntoView':!0x0})),!0x0;};}const clearSnippet=({state:_0x28388f,dispatch:_0x2a1fec})=>!!_0x28388f['field'](snippetState,!0x1)&&(_0x2a1fec(_0x28388f['update']({'effects':setActive['of'](null)})),!0x0),nextSnippetField=moveField(0x1),prevSnippetField=moveField(-0x1),defaultSnippetKeymap=[{'key':'Tab','run':nextSnippetField,'shift':prevSnippetField},{'key':'Escape','run':clearSnippet}],snippetKeymap=Facet['define']({'combine':_0x306f1c=>_0x306f1c['length']?_0x306f1c[0x0]:defaultSnippetKeymap}),addSnippetKeymap=Prec['highest'](keymap['compute']([snippetKeymap],_0x35d3ee=>_0x35d3ee['facet'](snippetKeymap)));function snippetCompletion(_0x3831bb,_0x507331){return{..._0x507331,'apply':snippet(_0x3831bb)};}const snippetPointerHandler=EditorView['domEventHandlers']({'mousedown'(_0x20f6b6,_0x4afd18){let _0x20457e,_0x1bae68=_0x4afd18['state']['field'](snippetState,!0x1);if(!_0x1bae68||null==(_0x20457e=_0x4afd18['posAtCoords']({'x':_0x20f6b6['clientX'],'y':_0x20f6b6['clientY']})))return!0x1;let _0x3764ef=_0x1bae68['ranges']['find'](_0x25ebdf=>_0x25ebdf['from']<=_0x20457e&&_0x25ebdf['to']>=_0x20457e);return!(!_0x3764ef||_0x3764ef['field']==_0x1bae68['active'])&&(_0x4afd18['dispatch']({'selection':fieldSelection(_0x1bae68['ranges'],_0x3764ef['field']),'effects':setActive['of'](_0x1bae68['ranges']['some'](_0x42fa51=>_0x42fa51['field']>_0x3764ef['field'])?new ActiveSnippet(_0x1bae68['ranges'],_0x3764ef['field']):null),'scrollIntoView':!0x0}),!0x0);}}),defaults={'brackets':['(','[','{','\x27','\x22'],'before':')]}:;>','stringPrefixes':[]},closeBracketEffect=StateEffect['define']({'map'(_0x494ff6,_0x1c2b10){let _0x56b20c=_0x1c2b10['mapPos'](_0x494ff6,-0x1,MapMode['TrackAfter']);return null==_0x56b20c?void 0x0:_0x56b20c;}}),closedBracket=new class extends RangeValue{}();closedBracket['startSide']=0x1,closedBracket['endSide']=-0x1;const bracketState=StateField['define']({'create':()=>RangeSet['empty'],'update'(_0x8c77e8,_0x3a5325){if(_0x8c77e8=_0x8c77e8['map'](_0x3a5325['changes']),_0x3a5325['selection']){let _0x34d7a=_0x3a5325['state']['doc']['lineAt'](_0x3a5325['selection']['main']['head']);_0x8c77e8=_0x8c77e8['update']({'filter':_0x4ec7da=>_0x4ec7da>=_0x34d7a['from']&&_0x4ec7da<=_0x34d7a['to']});}for(let _0x770865 of _0x3a5325['effects'])_0x770865['is'](closeBracketEffect)&&(_0x8c77e8=_0x8c77e8['update']({'add':[closedBracket['range'](_0x770865['value'],_0x770865['value']+0x1)]}));return _0x8c77e8;}});function closeBrackets(){return[inputHandler,bracketState];}const definedClosing='()[]{}<>«»»«［］｛｝';function closing(_0x3c8207){for(let _0x19becb=0x0;_0x19becb<definedClosing['length'];_0x19becb+=0x2)if(definedClosing['charCodeAt'](_0x19becb)==_0x3c8207)return definedClosing['charAt'](_0x19becb+0x1);return fromCodePoint(_0x3c8207<0x80?_0x3c8207:_0x3c8207+0x1);}function config$1(_0x412a07,_0x565dee){return _0x412a07['languageDataAt']('closeBrackets',_0x565dee)[0x0]||defaults;}const android$1='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),inputHandler=EditorView['inputHandler']['of']((_0x3d6be5,_0x49d8dd,_0x14cfd5,_0x3f6642)=>{if((android$1?_0x3d6be5['composing']:_0x3d6be5['compositionStarted'])||_0x3d6be5['state']['readOnly'])return!0x1;let _0x37d573=_0x3d6be5['state']['selection']['main'];if(_0x3f6642['length']>0x2||0x2==_0x3f6642['length']&&0x1==codePointSize(codePointAt(_0x3f6642,0x0))||_0x49d8dd!=_0x37d573['from']||_0x14cfd5!=_0x37d573['to'])return!0x1;let _0x4e7562=insertBracket(_0x3d6be5['state'],_0x3f6642);return!!_0x4e7562&&(_0x3d6be5['dispatch'](_0x4e7562),!0x0);}),deleteBracketPair=({state:_0x50c861,dispatch:_0x288f6c})=>{if(_0x50c861['readOnly'])return!0x1;let _0x44380e=config$1(_0x50c861,_0x50c861['selection']['main']['head'])['brackets']||defaults['brackets'],_0x56c682=null,_0x8425b5=_0x50c861['changeByRange'](_0x17e339=>{if(_0x17e339['empty']){let _0x246144=prevChar(_0x50c861['doc'],_0x17e339['head']);for(let _0x1c10c4 of _0x44380e)if(_0x1c10c4==_0x246144&&nextChar(_0x50c861['doc'],_0x17e339['head'])==closing(codePointAt(_0x1c10c4,0x0)))return{'changes':{'from':_0x17e339['head']-_0x1c10c4['length'],'to':_0x17e339['head']+_0x1c10c4['length']},'range':EditorSelection['cursor'](_0x17e339['head']-_0x1c10c4['length'])};}return{'range':_0x56c682=_0x17e339};});return _0x56c682||_0x288f6c(_0x50c861['update'](_0x8425b5,{'scrollIntoView':!0x0,'userEvent':'delete.backward'})),!_0x56c682;},closeBracketsKeymap=[{'key':'Backspace','run':deleteBracketPair}];function insertBracket(_0x28275c,_0x3297ad){let _0x1a1064=config$1(_0x28275c,_0x28275c['selection']['main']['head']),_0x11bbc9=_0x1a1064['brackets']||defaults['brackets'];for(let _0x4113e1 of _0x11bbc9){let _0x4728e5=closing(codePointAt(_0x4113e1,0x0));if(_0x3297ad==_0x4113e1)return _0x4728e5==_0x4113e1?handleSame(_0x28275c,_0x4113e1,_0x11bbc9['indexOf'](_0x4113e1+_0x4113e1+_0x4113e1)>-0x1,_0x1a1064):handleOpen(_0x28275c,_0x4113e1,_0x4728e5,_0x1a1064['before']||defaults['before']);if(_0x3297ad==_0x4728e5&&closedBracketAt(_0x28275c,_0x28275c['selection']['main']['from']))return handleClose(_0x28275c,_0x4113e1,_0x4728e5);}return null;}function closedBracketAt(_0x347d60,_0x4a8e02){let _0x100d90=!0x1;return _0x347d60['field'](bracketState)['between'](0x0,_0x347d60['doc']['length'],_0x420092=>{_0x420092==_0x4a8e02&&(_0x100d90=!0x0);}),_0x100d90;}function nextChar(_0xabf4c7,_0x4528d2){let _0x25b396=_0xabf4c7['sliceString'](_0x4528d2,_0x4528d2+0x2);return _0x25b396['slice'](0x0,codePointSize(codePointAt(_0x25b396,0x0)));}function prevChar(_0xcfaeae,_0x5f3735){let _0x31e252=_0xcfaeae['sliceString'](_0x5f3735-0x2,_0x5f3735);return codePointSize(codePointAt(_0x31e252,0x0))==_0x31e252['length']?_0x31e252:_0x31e252['slice'](0x1);}function handleOpen(_0x46c281,_0x159ee0,_0x4c3d10,_0xd3bc11){let _0x4c0803=null,_0x11744f=_0x46c281['changeByRange'](_0x43c581=>{if(!_0x43c581['empty'])return{'changes':[{'insert':_0x159ee0,'from':_0x43c581['from']},{'insert':_0x4c3d10,'from':_0x43c581['to']}],'effects':closeBracketEffect['of'](_0x43c581['to']+_0x159ee0['length']),'range':EditorSelection['range'](_0x43c581['anchor']+_0x159ee0['length'],_0x43c581['head']+_0x159ee0['length'])};let _0x817283=nextChar(_0x46c281['doc'],_0x43c581['head']);return!_0x817283||/\s/['test'](_0x817283)||_0xd3bc11['indexOf'](_0x817283)>-0x1?{'changes':{'insert':_0x159ee0+_0x4c3d10,'from':_0x43c581['head']},'effects':closeBracketEffect['of'](_0x43c581['head']+_0x159ee0['length']),'range':EditorSelection['cursor'](_0x43c581['head']+_0x159ee0['length'])}:{'range':_0x4c0803=_0x43c581};});return _0x4c0803?null:_0x46c281['update'](_0x11744f,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleClose(_0xdd078d,_0x4f022b,_0x214cc1){let _0x2ac259=null,_0xab1f34=_0xdd078d['changeByRange'](_0x482e35=>_0x482e35['empty']&&nextChar(_0xdd078d['doc'],_0x482e35['head'])==_0x214cc1?{'changes':{'from':_0x482e35['head'],'to':_0x482e35['head']+_0x214cc1['length'],'insert':_0x214cc1},'range':EditorSelection['cursor'](_0x482e35['head']+_0x214cc1['length'])}:_0x2ac259={'range':_0x482e35});return _0x2ac259?null:_0xdd078d['update'](_0xab1f34,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function handleSame(_0x116f35,_0x27e1c9,_0x399ee4,_0x480e2c){let _0x44c13a=_0x480e2c['stringPrefixes']||defaults['stringPrefixes'],_0x2cce8c=null,_0x49cfc0=_0x116f35['changeByRange'](_0x5c54fc=>{if(!_0x5c54fc['empty'])return{'changes':[{'insert':_0x27e1c9,'from':_0x5c54fc['from']},{'insert':_0x27e1c9,'from':_0x5c54fc['to']}],'effects':closeBracketEffect['of'](_0x5c54fc['to']+_0x27e1c9['length']),'range':EditorSelection['range'](_0x5c54fc['anchor']+_0x27e1c9['length'],_0x5c54fc['head']+_0x27e1c9['length'])};let _0x11e69e,_0x353ea2=_0x5c54fc['head'],_0x31b3b4=nextChar(_0x116f35['doc'],_0x353ea2);if(_0x31b3b4==_0x27e1c9){if(nodeStart(_0x116f35,_0x353ea2))return{'changes':{'insert':_0x27e1c9+_0x27e1c9,'from':_0x353ea2},'effects':closeBracketEffect['of'](_0x353ea2+_0x27e1c9['length']),'range':EditorSelection['cursor'](_0x353ea2+_0x27e1c9['length'])};if(closedBracketAt(_0x116f35,_0x353ea2)){let _0x3a425b=_0x399ee4&&_0x116f35['sliceDoc'](_0x353ea2,_0x353ea2+0x3*_0x27e1c9['length'])==_0x27e1c9+_0x27e1c9+_0x27e1c9?_0x27e1c9+_0x27e1c9+_0x27e1c9:_0x27e1c9;return{'changes':{'from':_0x353ea2,'to':_0x353ea2+_0x3a425b['length'],'insert':_0x3a425b},'range':EditorSelection['cursor'](_0x353ea2+_0x3a425b['length'])};}}else{if(_0x399ee4&&_0x116f35['sliceDoc'](_0x353ea2-0x2*_0x27e1c9['length'],_0x353ea2)==_0x27e1c9+_0x27e1c9&&(_0x11e69e=canStartStringAt(_0x116f35,_0x353ea2-0x2*_0x27e1c9['length'],_0x44c13a))>-0x1&&nodeStart(_0x116f35,_0x11e69e))return{'changes':{'insert':_0x27e1c9+_0x27e1c9+_0x27e1c9+_0x27e1c9,'from':_0x353ea2},'effects':closeBracketEffect['of'](_0x353ea2+_0x27e1c9['length']),'range':EditorSelection['cursor'](_0x353ea2+_0x27e1c9['length'])};if(_0x116f35['charCategorizer'](_0x353ea2)(_0x31b3b4)!=CharCategory['Word']&&canStartStringAt(_0x116f35,_0x353ea2,_0x44c13a)>-0x1&&!probablyInString(_0x116f35,_0x353ea2,_0x27e1c9,_0x44c13a))return{'changes':{'insert':_0x27e1c9+_0x27e1c9,'from':_0x353ea2},'effects':closeBracketEffect['of'](_0x353ea2+_0x27e1c9['length']),'range':EditorSelection['cursor'](_0x353ea2+_0x27e1c9['length'])};}return{'range':_0x2cce8c=_0x5c54fc};});return _0x2cce8c?null:_0x116f35['update'](_0x49cfc0,{'scrollIntoView':!0x0,'userEvent':'input.type'});}function nodeStart(_0x5034bb,_0x174af2){let _0x5ca80a=syntaxTree(_0x5034bb)['resolveInner'](_0x174af2+0x1);return _0x5ca80a['parent']&&_0x5ca80a['from']==_0x174af2;}function probablyInString(_0x31e8c9,_0x5d3ce0,_0x159db5,_0x332e74){let _0x469517=syntaxTree(_0x31e8c9)['resolveInner'](_0x5d3ce0,-0x1),_0x4810b3=_0x332e74['reduce']((_0x181ef6,_0x4f0f8c)=>Math['max'](_0x181ef6,_0x4f0f8c['length']),0x0);for(let _0xe151aa=0x0;_0xe151aa<0x5;_0xe151aa++){let _0x1817a7=_0x31e8c9['sliceDoc'](_0x469517['from'],Math['min'](_0x469517['to'],_0x469517['from']+_0x159db5['length']+_0x4810b3)),_0x437139=_0x1817a7['indexOf'](_0x159db5);if(!_0x437139||_0x437139>-0x1&&_0x332e74['indexOf'](_0x1817a7['slice'](0x0,_0x437139))>-0x1){let _0x292dec=_0x469517['firstChild'];for(;_0x292dec&&_0x292dec['from']==_0x469517['from']&&_0x292dec['to']-_0x292dec['from']>_0x159db5['length']+_0x437139;){if(_0x31e8c9['sliceDoc'](_0x292dec['to']-_0x159db5['length'],_0x292dec['to'])==_0x159db5)return!0x1;_0x292dec=_0x292dec['firstChild'];}return!0x0;}let _0x4d9b10=_0x469517['to']==_0x5d3ce0&&_0x469517['parent'];if(!_0x4d9b10)break;_0x469517=_0x4d9b10;}return!0x1;}function canStartStringAt(_0x4d357b,_0x5a9482,_0x3c1e60){let _0x18ebc=_0x4d357b['charCategorizer'](_0x5a9482);if(_0x18ebc(_0x4d357b['sliceDoc'](_0x5a9482-0x1,_0x5a9482))!=CharCategory['Word'])return _0x5a9482;for(let _0x1a47c2 of _0x3c1e60){let _0x148657=_0x5a9482-_0x1a47c2['length'];if(_0x4d357b['sliceDoc'](_0x148657,_0x5a9482)==_0x1a47c2&&_0x18ebc(_0x4d357b['sliceDoc'](_0x148657-0x1,_0x148657))!=CharCategory['Word'])return _0x148657;}return-0x1;}function autocompletion(_0x16588b={}){return[commitCharacters,completionState,completionConfig['of'](_0x16588b),completionPlugin,completionKeymapExt,baseTheme];}const completionKeymap=[{'key':'Ctrl-Space','run':startCompletion},{'mac':'Alt-`','run':startCompletion},{'mac':'Alt-i','run':startCompletion},{'key':'Escape','run':closeCompletion},{'key':'ArrowDown','run':moveCompletionSelection(!0x0)},{'key':'ArrowUp','run':moveCompletionSelection(!0x1)},{'key':'PageDown','run':moveCompletionSelection(!0x0,'page')},{'key':'PageUp','run':moveCompletionSelection(!0x1,'page')},{'key':'Enter','run':acceptCompletion}],completionKeymapExt=Prec['highest'](keymap['computeN']([completionConfig],_0x4d073a=>_0x4d073a['facet'](completionConfig)['defaultKeymap']?[completionKeymap]:[]));class Stack{constructor(_0x1d4cc2,_0x158ef1,_0x62de7c,_0x5bac7b,_0x3d804a,_0x519aa0,_0x1c12d6,_0x1e709e,_0x147d50,_0x217774=0x0,_0x1461b3){this['p']=_0x1d4cc2,this['stack']=_0x158ef1,this['state']=_0x62de7c,this['reducePos']=_0x5bac7b,this['pos']=_0x3d804a,this['score']=_0x519aa0,this['buffer']=_0x1c12d6,this['bufferBase']=_0x1e709e,this['curContext']=_0x147d50,this['lookAhead']=_0x217774,this['parent']=_0x1461b3;}['toString'](){return'['+this['stack']['filter']((_0x515ed4,_0x308209)=>_0x308209%0x3==0x0)['concat'](this['state'])+']@'+this['pos']+(this['score']?'!'+this['score']:'');}static['start'](_0x595bf7,_0x2858cf,_0x53a664=0x0){let _0x45e2d2=_0x595bf7['parser']['context'];return new Stack(_0x595bf7,[],_0x2858cf,_0x53a664,_0x53a664,0x0,[],0x0,_0x45e2d2?new StackContext(_0x45e2d2,_0x45e2d2['start']):null,0x0,null);}get['context'](){return this['curContext']?this['curContext']['context']:null;}['pushState'](_0x3caab1,_0x157d5c){this['stack']['push'](this['state'],_0x157d5c,this['bufferBase']+this['buffer']['length']),this['state']=_0x3caab1;}['reduce'](_0x2a4750){var _0x2e6862;let _0x28f1ea=_0x2a4750>>0x13,_0xf7193c=0xffff&_0x2a4750,{parser:_0x27e298}=this['p'],_0x4a6e78=this['reducePos']<this['pos']-0x19;_0x4a6e78&&this['setLookAhead'](this['pos']);let _0x40b51e=_0x27e298['dynamicPrecedence'](_0xf7193c);if(_0x40b51e&&(this['score']+=_0x40b51e),0x0==_0x28f1ea)return this['pushState'](_0x27e298['getGoto'](this['state'],_0xf7193c,!0x0),this['reducePos']),_0xf7193c<_0x27e298['minRepeatTerm']&&this['storeNode'](_0xf7193c,this['reducePos'],this['reducePos'],_0x4a6e78?0x8:0x4,!0x0),void this['reduceContext'](_0xf7193c,this['reducePos']);let _0x4a4797=this['stack']['length']-0x3*(_0x28f1ea-0x1)-(0x40000&_0x2a4750?0x6:0x0),_0x23063a=_0x4a4797?this['stack'][_0x4a4797-0x2]:this['p']['ranges'][0x0]['from'],_0x28aaa8=this['reducePos']-_0x23063a;_0x28aaa8>=0x7d0&&!(null===(_0x2e6862=this['p']['parser']['nodeSet']['types'][_0xf7193c])||void 0x0===_0x2e6862?void 0x0:_0x2e6862['isAnonymous'])&&(_0x23063a==this['p']['lastBigReductionStart']?(this['p']['bigReductionCount']++,this['p']['lastBigReductionSize']=_0x28aaa8):this['p']['lastBigReductionSize']<_0x28aaa8&&(this['p']['bigReductionCount']=0x1,this['p']['lastBigReductionStart']=_0x23063a,this['p']['lastBigReductionSize']=_0x28aaa8));let _0x143ad2=_0x4a4797?this['stack'][_0x4a4797-0x1]:0x0,_0x30bef3=this['bufferBase']+this['buffer']['length']-_0x143ad2;if(_0xf7193c<_0x27e298['minRepeatTerm']||0x20000&_0x2a4750){let _0x2c9cdb=_0x27e298['stateFlag'](this['state'],0x1)?this['pos']:this['reducePos'];this['storeNode'](_0xf7193c,_0x23063a,_0x2c9cdb,_0x30bef3+0x4,!0x0);}if(0x40000&_0x2a4750)this['state']=this['stack'][_0x4a4797];else{let _0x414e6d=this['stack'][_0x4a4797-0x3];this['state']=_0x27e298['getGoto'](_0x414e6d,_0xf7193c,!0x0);}for(;this['stack']['length']>_0x4a4797;)this['stack']['pop']();this['reduceContext'](_0xf7193c,_0x23063a);}['storeNode'](_0x10014f,_0x47509c,_0x2c6f15,_0x163dbd=0x4,_0x3f1ab2=!0x1){if(0x0==_0x10014f&&(!this['stack']['length']||this['stack'][this['stack']['length']-0x1]<this['buffer']['length']+this['bufferBase'])){let _0x2b5b9d=this,_0x347d1e=this['buffer']['length'];if(0x0==_0x347d1e&&_0x2b5b9d['parent']&&(_0x347d1e=_0x2b5b9d['bufferBase']-_0x2b5b9d['parent']['bufferBase'],_0x2b5b9d=_0x2b5b9d['parent']),_0x347d1e>0x0&&0x0==_0x2b5b9d['buffer'][_0x347d1e-0x4]&&_0x2b5b9d['buffer'][_0x347d1e-0x1]>-0x1){if(_0x47509c==_0x2c6f15)return;if(_0x2b5b9d['buffer'][_0x347d1e-0x2]>=_0x47509c)return void(_0x2b5b9d['buffer'][_0x347d1e-0x2]=_0x2c6f15);}}if(_0x3f1ab2&&this['pos']!=_0x2c6f15){let _0x2f0082=this['buffer']['length'];if(_0x2f0082>0x0&&(0x0!=this['buffer'][_0x2f0082-0x4]||this['buffer'][_0x2f0082-0x1]<0x0)){let _0x538c77=!0x1;for(let _0x1579e9=_0x2f0082;_0x1579e9>0x0&&this['buffer'][_0x1579e9-0x2]>_0x2c6f15;_0x1579e9-=0x4)if(this['buffer'][_0x1579e9-0x1]>=0x0){_0x538c77=!0x0;break;}if(_0x538c77){for(;_0x2f0082>0x0&&this['buffer'][_0x2f0082-0x2]>_0x2c6f15;)this['buffer'][_0x2f0082]=this['buffer'][_0x2f0082-0x4],this['buffer'][_0x2f0082+0x1]=this['buffer'][_0x2f0082-0x3],this['buffer'][_0x2f0082+0x2]=this['buffer'][_0x2f0082-0x2],this['buffer'][_0x2f0082+0x3]=this['buffer'][_0x2f0082-0x1],_0x2f0082-=0x4,_0x163dbd>0x4&&(_0x163dbd-=0x4);}}this['buffer'][_0x2f0082]=_0x10014f,this['buffer'][_0x2f0082+0x1]=_0x47509c,this['buffer'][_0x2f0082+0x2]=_0x2c6f15,this['buffer'][_0x2f0082+0x3]=_0x163dbd;}else this['buffer']['push'](_0x10014f,_0x47509c,_0x2c6f15,_0x163dbd);}['shift'](_0x2853c1,_0xab8769,_0x33b930,_0x5e47f1){if(0x20000&_0x2853c1)this['pushState'](0xffff&_0x2853c1,this['pos']);else{if(0x40000&_0x2853c1)this['pos']=_0x5e47f1,this['shiftContext'](_0xab8769,_0x33b930),_0xab8769<=this['p']['parser']['maxNode']&&this['buffer']['push'](_0xab8769,_0x33b930,_0x5e47f1,0x4);else{let _0x198df3=_0x2853c1,{parser:_0x4dc1cb}=this['p'];(_0x5e47f1>this['pos']||_0xab8769<=_0x4dc1cb['maxNode'])&&(this['pos']=_0x5e47f1,_0x4dc1cb['stateFlag'](_0x198df3,0x1)||(this['reducePos']=_0x5e47f1)),this['pushState'](_0x198df3,_0x33b930),this['shiftContext'](_0xab8769,_0x33b930),_0xab8769<=_0x4dc1cb['maxNode']&&this['buffer']['push'](_0xab8769,_0x33b930,_0x5e47f1,0x4);}}}['apply'](_0x2d0251,_0x469ac,_0x1c35ef,_0x2ac4ca){0x10000&_0x2d0251?this['reduce'](_0x2d0251):this['shift'](_0x2d0251,_0x469ac,_0x1c35ef,_0x2ac4ca);}['useNode'](_0x5c2798,_0xcf861e){let _0x3f1349=this['p']['reused']['length']-0x1;(_0x3f1349<0x0||this['p']['reused'][_0x3f1349]!=_0x5c2798)&&(this['p']['reused']['push'](_0x5c2798),_0x3f1349++);let _0x43f1cc=this['pos'];this['reducePos']=this['pos']=_0x43f1cc+_0x5c2798['length'],this['pushState'](_0xcf861e,_0x43f1cc),this['buffer']['push'](_0x3f1349,_0x43f1cc,this['reducePos'],-0x1),this['curContext']&&this['updateContext'](this['curContext']['tracker']['reuse'](this['curContext']['context'],_0x5c2798,this,this['p']['stream']['reset'](this['pos']-_0x5c2798['length'])));}['split'](){let _0x5e32d4=this,_0x1b47ba=_0x5e32d4['buffer']['length'];for(;_0x1b47ba>0x0&&_0x5e32d4['buffer'][_0x1b47ba-0x2]>_0x5e32d4['reducePos'];)_0x1b47ba-=0x4;let _0x1ad21a=_0x5e32d4['buffer']['slice'](_0x1b47ba),_0x679a61=_0x5e32d4['bufferBase']+_0x1b47ba;for(;_0x5e32d4&&_0x679a61==_0x5e32d4['bufferBase'];)_0x5e32d4=_0x5e32d4['parent'];return new Stack(this['p'],this['stack']['slice'](),this['state'],this['reducePos'],this['pos'],this['score'],_0x1ad21a,_0x679a61,this['curContext'],this['lookAhead'],_0x5e32d4);}['recoverByDelete'](_0xb3305e,_0x4c6bb1){let _0x28e470=_0xb3305e<=this['p']['parser']['maxNode'];_0x28e470&&this['storeNode'](_0xb3305e,this['pos'],_0x4c6bb1,0x4),this['storeNode'](0x0,this['pos'],_0x4c6bb1,_0x28e470?0x8:0x4),this['pos']=this['reducePos']=_0x4c6bb1,this['score']-=0xbe;}['canShift'](_0x4bdea3){for(let _0x624cdb=new SimulatedStack(this);;){let _0x315a9=this['p']['parser']['stateSlot'](_0x624cdb['state'],0x4)||this['p']['parser']['hasAction'](_0x624cdb['state'],_0x4bdea3);if(0x0==_0x315a9)return!0x1;if(!(0x10000&_0x315a9))return!0x0;_0x624cdb['reduce'](_0x315a9);}}['recoverByInsert'](_0x36a3f2){if(this['stack']['length']>=0x12c)return[];let _0x3f6c7a=this['p']['parser']['nextStates'](this['state']);if(_0x3f6c7a['length']>0x8||this['stack']['length']>=0x78){let _0x236e7c=[];for(let _0x564f0e,_0x464b46=0x0;_0x464b46<_0x3f6c7a['length'];_0x464b46+=0x2)(_0x564f0e=_0x3f6c7a[_0x464b46+0x1])!=this['state']&&this['p']['parser']['hasAction'](_0x564f0e,_0x36a3f2)&&_0x236e7c['push'](_0x3f6c7a[_0x464b46],_0x564f0e);if(this['stack']['length']<0x78)for(let _0x2dd769=0x0;_0x236e7c['length']<0x8&&_0x2dd769<_0x3f6c7a['length'];_0x2dd769+=0x2){let _0x4229e9=_0x3f6c7a[_0x2dd769+0x1];_0x236e7c['some']((_0xf48aac,_0x13a721)=>0x1&_0x13a721&&_0xf48aac==_0x4229e9)||_0x236e7c['push'](_0x3f6c7a[_0x2dd769],_0x4229e9);}_0x3f6c7a=_0x236e7c;}let _0x10eeb5=[];for(let _0x19000e=0x0;_0x19000e<_0x3f6c7a['length']&&_0x10eeb5['length']<0x4;_0x19000e+=0x2){let _0x22435d=_0x3f6c7a[_0x19000e+0x1];if(_0x22435d==this['state'])continue;let _0xed585=this['split']();_0xed585['pushState'](_0x22435d,this['pos']),_0xed585['storeNode'](0x0,_0xed585['pos'],_0xed585['pos'],0x4,!0x0),_0xed585['shiftContext'](_0x3f6c7a[_0x19000e],this['pos']),_0xed585['reducePos']=this['pos'],_0xed585['score']-=0xc8,_0x10eeb5['push'](_0xed585);}return _0x10eeb5;}['forceReduce'](){let {parser:_0xb502a0}=this['p'],_0x4de655=_0xb502a0['stateSlot'](this['state'],0x5);if(!(0x10000&_0x4de655))return!0x1;if(!_0xb502a0['validAction'](this['state'],_0x4de655)){let _0x17aece=_0x4de655>>0x13,_0x1a8db7=0xffff&_0x4de655,_0x562dba=this['stack']['length']-0x3*_0x17aece;if(_0x562dba<0x0||_0xb502a0['getGoto'](this['stack'][_0x562dba],_0x1a8db7,!0x1)<0x0){let _0x3a6fa5=this['findForcedReduction']();if(null==_0x3a6fa5)return!0x1;_0x4de655=_0x3a6fa5;}this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['score']-=0x64;}return this['reducePos']=this['pos'],this['reduce'](_0x4de655),!0x0;}['findForcedReduction'](){let {parser:_0x4c180f}=this['p'],_0x1418a0=[],_0x456fb2=(_0x4ea8f3,_0x57ff98)=>{if(!_0x1418a0['includes'](_0x4ea8f3))return _0x1418a0['push'](_0x4ea8f3),_0x4c180f['allActions'](_0x4ea8f3,_0x17c474=>{if(0x60000&_0x17c474);else{if(0x10000&_0x17c474){let _0x437ba0=(_0x17c474>>0x13)-_0x57ff98;if(_0x437ba0>0x1){let _0x1b8c8a=0xffff&_0x17c474,_0x83f077=this['stack']['length']-0x3*_0x437ba0;if(_0x83f077>=0x0&&_0x4c180f['getGoto'](this['stack'][_0x83f077],_0x1b8c8a,!0x1)>=0x0)return _0x437ba0<<0x13|0x10000|_0x1b8c8a;}}else{let _0x4e9af7=_0x456fb2(_0x17c474,_0x57ff98+0x1);if(null!=_0x4e9af7)return _0x4e9af7;}}});};return _0x456fb2(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:_0x4cb3f1}=this['p'];return 0xffff==_0x4cb3f1['data'][_0x4cb3f1['stateSlot'](this['state'],0x1)]&&!_0x4cb3f1['stateSlot'](this['state'],0x4);}['restart'](){this['storeNode'](0x0,this['pos'],this['pos'],0x4,!0x0),this['state']=this['stack'][0x0],this['stack']['length']=0x0;}['sameState'](_0x53a966){if(this['state']!=_0x53a966['state']||this['stack']['length']!=_0x53a966['stack']['length'])return!0x1;for(let _0x1a4d30=0x0;_0x1a4d30<this['stack']['length'];_0x1a4d30+=0x3)if(this['stack'][_0x1a4d30]!=_0x53a966['stack'][_0x1a4d30])return!0x1;return!0x0;}get['parser'](){return this['p']['parser'];}['dialectEnabled'](_0x48c5d0){return this['p']['parser']['dialect']['flags'][_0x48c5d0];}['shiftContext'](_0x27a70f,_0x2e4c86){this['curContext']&&this['updateContext'](this['curContext']['tracker']['shift'](this['curContext']['context'],_0x27a70f,this,this['p']['stream']['reset'](_0x2e4c86)));}['reduceContext'](_0x2966a7,_0x5307c0){this['curContext']&&this['updateContext'](this['curContext']['tracker']['reduce'](this['curContext']['context'],_0x2966a7,this,this['p']['stream']['reset'](_0x5307c0)));}['emitContext'](){let _0x29f419=this['buffer']['length']-0x1;(_0x29f419<0x0||-0x3!=this['buffer'][_0x29f419])&&this['buffer']['push'](this['curContext']['hash'],this['pos'],this['pos'],-0x3);}['emitLookAhead'](){let _0x38089f=this['buffer']['length']-0x1;(_0x38089f<0x0||-0x4!=this['buffer'][_0x38089f])&&this['buffer']['push'](this['lookAhead'],this['pos'],this['pos'],-0x4);}['updateContext'](_0x5511a1){if(_0x5511a1!=this['curContext']['context']){let _0x4c3f39=new StackContext(this['curContext']['tracker'],_0x5511a1);_0x4c3f39['hash']!=this['curContext']['hash']&&this['emitContext'](),this['curContext']=_0x4c3f39;}}['setLookAhead'](_0x2b1d4a){_0x2b1d4a>this['lookAhead']&&(this['emitLookAhead'](),this['lookAhead']=_0x2b1d4a);}['close'](){this['curContext']&&this['curContext']['tracker']['strict']&&this['emitContext'](),this['lookAhead']>0x0&&this['emitLookAhead']();}}class StackContext{constructor(_0x205fd1,_0x531901){this['tracker']=_0x205fd1,this['context']=_0x531901,this['hash']=_0x205fd1['strict']?_0x205fd1['hash'](_0x531901):0x0;}}class SimulatedStack{constructor(_0x38a2c4){this['start']=_0x38a2c4,this['state']=_0x38a2c4['state'],this['stack']=_0x38a2c4['stack'],this['base']=this['stack']['length'];}['reduce'](_0x9b62c0){let _0x5635d4=0xffff&_0x9b62c0,_0x47bbf6=_0x9b62c0>>0x13;0x0==_0x47bbf6?(this['stack']==this['start']['stack']&&(this['stack']=this['stack']['slice']()),this['stack']['push'](this['state'],0x0,0x0),this['base']+=0x3):this['base']-=0x3*(_0x47bbf6-0x1);let _0x234347=this['start']['p']['parser']['getGoto'](this['stack'][this['base']-0x3],_0x5635d4,!0x0);this['state']=_0x234347;}}class StackBufferCursor{constructor(_0x44f2a5,_0x1b5499,_0x2ea7ad){this['stack']=_0x44f2a5,this['pos']=_0x1b5499,this['index']=_0x2ea7ad,this['buffer']=_0x44f2a5['buffer'],0x0==this['index']&&this['maybeNext']();}static['create'](_0x33a659,_0x56ff0e=_0x33a659['bufferBase']+_0x33a659['buffer']['length']){return new StackBufferCursor(_0x33a659,_0x56ff0e,_0x56ff0e-_0x33a659['bufferBase']);}['maybeNext'](){let _0x55f1e5=this['stack']['parent'];null!=_0x55f1e5&&(this['index']=this['stack']['bufferBase']-_0x55f1e5['bufferBase'],this['stack']=_0x55f1e5,this['buffer']=_0x55f1e5['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 decodeArray(_0x49ec57,_0x24e32b=Uint16Array){if('string'!=typeof _0x49ec57)return _0x49ec57;let _0xb4a25f=null;for(let _0x44cdd0=0x0,_0x472efd=0x0;_0x44cdd0<_0x49ec57['length'];){let _0xa645e0=0x0;for(;;){let _0x13f141=_0x49ec57['charCodeAt'](_0x44cdd0++),_0x2f188d=!0x1;if(0x7e==_0x13f141){_0xa645e0=0xffff;break;}_0x13f141>=0x5c&&_0x13f141--,_0x13f141>=0x22&&_0x13f141--;let _0x59c7b8=_0x13f141-0x20;if(_0x59c7b8>=0x2e&&(_0x59c7b8-=0x2e,_0x2f188d=!0x0),_0xa645e0+=_0x59c7b8,_0x2f188d)break;_0xa645e0*=0x2e;}_0xb4a25f?_0xb4a25f[_0x472efd++]=_0xa645e0:_0xb4a25f=new _0x24e32b(_0xa645e0);}return _0xb4a25f;}class CachedToken{constructor(){this['start']=-0x1,this['value']=-0x1,this['end']=-0x1,this['extended']=-0x1,this['lookAhead']=0x0,this['mask']=0x0,this['context']=0x0;}}const nullToken=new CachedToken();class InputStream{constructor(_0x3d52a6,_0x561b9d){this['input']=_0x3d52a6,this['ranges']=_0x561b9d,this['chunk']='',this['chunkOff']=0x0,this['chunk2']='',this['chunk2Pos']=0x0,this['next']=-0x1,this['token']=nullToken,this['rangeIndex']=0x0,this['pos']=this['chunkPos']=_0x561b9d[0x0]['from'],this['range']=_0x561b9d[0x0],this['end']=_0x561b9d[_0x561b9d['length']-0x1]['to'],this['readNext']();}['resolveOffset'](_0x16379e,_0x110152){let _0x3f304f=this['range'],_0x4a5755=this['rangeIndex'],_0x3be1df=this['pos']+_0x16379e;for(;_0x3be1df<_0x3f304f['from'];){if(!_0x4a5755)return null;let _0x204d9e=this['ranges'][--_0x4a5755];_0x3be1df-=_0x3f304f['from']-_0x204d9e['to'],_0x3f304f=_0x204d9e;}for(;_0x110152<0x0?_0x3be1df>_0x3f304f['to']:_0x3be1df>=_0x3f304f['to'];){if(_0x4a5755==this['ranges']['length']-0x1)return null;let _0x2e9035=this['ranges'][++_0x4a5755];_0x3be1df+=_0x2e9035['from']-_0x3f304f['to'],_0x3f304f=_0x2e9035;}return _0x3be1df;}['clipPos'](_0x56572e){if(_0x56572e>=this['range']['from']&&_0x56572e<this['range']['to'])return _0x56572e;for(let _0x4dbcf2 of this['ranges'])if(_0x4dbcf2['to']>_0x56572e)return Math['max'](_0x56572e,_0x4dbcf2['from']);return this['end'];}['peek'](_0x9c6dcc){let _0x468118,_0x30f3e,_0x532548=this['chunkOff']+_0x9c6dcc;if(_0x532548>=0x0&&_0x532548<this['chunk']['length'])_0x468118=this['pos']+_0x9c6dcc,_0x30f3e=this['chunk']['charCodeAt'](_0x532548);else{let _0x270c16=this['resolveOffset'](_0x9c6dcc,0x1);if(null==_0x270c16)return-0x1;if(_0x468118=_0x270c16,_0x468118>=this['chunk2Pos']&&_0x468118<this['chunk2Pos']+this['chunk2']['length'])_0x30f3e=this['chunk2']['charCodeAt'](_0x468118-this['chunk2Pos']);else{let _0x50769e=this['rangeIndex'],_0x5d4dde=this['range'];for(;_0x5d4dde['to']<=_0x468118;)_0x5d4dde=this['ranges'][++_0x50769e];this['chunk2']=this['input']['chunk'](this['chunk2Pos']=_0x468118),_0x468118+this['chunk2']['length']>_0x5d4dde['to']&&(this['chunk2']=this['chunk2']['slice'](0x0,_0x5d4dde['to']-_0x468118)),_0x30f3e=this['chunk2']['charCodeAt'](0x0);}}return _0x468118>=this['token']['lookAhead']&&(this['token']['lookAhead']=_0x468118+0x1),_0x30f3e;}['acceptToken'](_0x114e11,_0x49c406=0x0){let _0x1eb462=_0x49c406?this['resolveOffset'](_0x49c406,-0x1):this['pos'];if(null==_0x1eb462||_0x1eb462<this['token']['start'])throw new RangeError('Token\x20end\x20out\x20of\x20bounds');this['token']['value']=_0x114e11,this['token']['end']=_0x1eb462;}['acceptTokenTo'](_0x56273d,_0x15313d){this['token']['value']=_0x56273d,this['token']['end']=_0x15313d;}['getChunk'](){if(this['pos']>=this['chunk2Pos']&&this['pos']<this['chunk2Pos']+this['chunk2']['length']){let {chunk:_0x3601a3,chunkPos:_0x559673}=this;this['chunk']=this['chunk2'],this['chunkPos']=this['chunk2Pos'],this['chunk2']=_0x3601a3,this['chunk2Pos']=_0x559673,this['chunkOff']=this['pos']-this['chunkPos'];}else{this['chunk2']=this['chunk'],this['chunk2Pos']=this['chunkPos'];let _0x3236a0=this['input']['chunk'](this['pos']),_0x8f6514=this['pos']+_0x3236a0['length'];this['chunk']=_0x8f6514>this['range']['to']?_0x3236a0['slice'](0x0,this['range']['to']-this['pos']):_0x3236a0,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'](_0x167f23=0x1){for(this['chunkOff']+=_0x167f23;this['pos']+_0x167f23>=this['range']['to'];){if(this['rangeIndex']==this['ranges']['length']-0x1)return this['setDone']();_0x167f23-=this['range']['to']-this['pos'],this['range']=this['ranges'][++this['rangeIndex']],this['pos']=this['range']['from'];}return this['pos']+=_0x167f23,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'](_0x5be5d1,_0x306461){if(_0x306461?(this['token']=_0x306461,_0x306461['start']=_0x5be5d1,_0x306461['lookAhead']=_0x5be5d1+0x1,_0x306461['value']=_0x306461['extended']=-0x1):this['token']=nullToken,this['pos']!=_0x5be5d1){if(this['pos']=_0x5be5d1,_0x5be5d1==this['end'])return this['setDone'](),this;for(;_0x5be5d1<this['range']['from'];)this['range']=this['ranges'][--this['rangeIndex']];for(;_0x5be5d1>=this['range']['to'];)this['range']=this['ranges'][++this['rangeIndex']];_0x5be5d1>=this['chunkPos']&&_0x5be5d1<this['chunkPos']+this['chunk']['length']?this['chunkOff']=_0x5be5d1-this['chunkPos']:(this['chunk']='',this['chunkOff']=0x0),this['readNext']();}return this;}['read'](_0x196643,_0xfc4d1a){if(_0x196643>=this['chunkPos']&&_0xfc4d1a<=this['chunkPos']+this['chunk']['length'])return this['chunk']['slice'](_0x196643-this['chunkPos'],_0xfc4d1a-this['chunkPos']);if(_0x196643>=this['chunk2Pos']&&_0xfc4d1a<=this['chunk2Pos']+this['chunk2']['length'])return this['chunk2']['slice'](_0x196643-this['chunk2Pos'],_0xfc4d1a-this['chunk2Pos']);if(_0x196643>=this['range']['from']&&_0xfc4d1a<=this['range']['to'])return this['input']['read'](_0x196643,_0xfc4d1a);let _0x844fa6='';for(let _0x2dab9e of this['ranges']){if(_0x2dab9e['from']>=_0xfc4d1a)break;_0x2dab9e['to']>_0x196643&&(_0x844fa6+=this['input']['read'](Math['max'](_0x2dab9e['from'],_0x196643),Math['min'](_0x2dab9e['to'],_0xfc4d1a)));}return _0x844fa6;}}class TokenGroup{constructor(_0xa181cc,_0x2253bc){this['data']=_0xa181cc,this['id']=_0x2253bc;}['token'](_0x12377a,_0x1d9328){let {parser:_0x2fda16}=_0x1d9328['p'];readToken(this['data'],_0x12377a,_0x1d9328,this['id'],_0x2fda16['data'],_0x2fda16['tokenPrecTable']);}}TokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class LocalTokenGroup{constructor(_0x19e926,_0x2321da,_0xebcdd0){this['precTable']=_0x2321da,this['elseToken']=_0xebcdd0,this['data']='string'==typeof _0x19e926?decodeArray(_0x19e926):_0x19e926;}['token'](_0x45105e,_0x6831e6){let _0x5bd822=_0x45105e['pos'],_0x176048=0x0;for(;;){let _0x2abd36=_0x45105e['next']<0x0,_0x346c36=_0x45105e['resolveOffset'](0x1,0x1);if(readToken(this['data'],_0x45105e,_0x6831e6,0x0,this['data'],this['precTable']),_0x45105e['token']['value']>-0x1)break;if(null==this['elseToken'])return;if(_0x2abd36||_0x176048++,null==_0x346c36)break;_0x45105e['reset'](_0x346c36,_0x45105e['token']);}_0x176048&&(_0x45105e['reset'](_0x5bd822,_0x45105e['token']),_0x45105e['acceptToken'](this['elseToken'],_0x176048));}}LocalTokenGroup['prototype']['contextual']=TokenGroup['prototype']['fallback']=TokenGroup['prototype']['extend']=!0x1;class ExternalTokenizer{constructor(_0x1341a2,_0x23a49f={}){this['token']=_0x1341a2,this['contextual']=!!_0x23a49f['contextual'],this['fallback']=!!_0x23a49f['fallback'],this['extend']=!!_0x23a49f['extend'];}}function readToken(_0x3cabc8,_0x1658ab,_0x3560f4,_0x195c2a,_0x480496,_0x204edb){let _0x175aa0=0x0,_0x1559b1=0x1<<_0x195c2a,{dialect:_0x31b571}=_0x3560f4['p']['parser'];t:for(;0x0!=(_0x1559b1&_0x3cabc8[_0x175aa0]);){let _0x434757=_0x3cabc8[_0x175aa0+0x1];for(let _0x3d1c15=_0x175aa0+0x3;_0x3d1c15<_0x434757;_0x3d1c15+=0x2)if((_0x3cabc8[_0x3d1c15+0x1]&_0x1559b1)>0x0){let _0x30d436=_0x3cabc8[_0x3d1c15];if(_0x31b571['allows'](_0x30d436)&&(-0x1==_0x1658ab['token']['value']||_0x1658ab['token']['value']==_0x30d436||overrides(_0x30d436,_0x1658ab['token']['value'],_0x480496,_0x204edb))){_0x1658ab['acceptToken'](_0x30d436);break;}}let _0x206a1f=_0x1658ab['next'],_0x4019bb=0x0,_0x18aa07=_0x3cabc8[_0x175aa0+0x2];if(!(_0x1658ab['next']<0x0&&_0x18aa07>_0x4019bb&&0xffff==_0x3cabc8[_0x434757+0x3*_0x18aa07-0x3])){for(;_0x4019bb<_0x18aa07;){let _0x254022=_0x4019bb+_0x18aa07>>0x1,_0x365356=_0x434757+_0x254022+(_0x254022<<0x1),_0x523794=_0x3cabc8[_0x365356],_0x5a107c=_0x3cabc8[_0x365356+0x1]||0x10000;if(_0x206a1f<_0x523794)_0x18aa07=_0x254022;else{if(!(_0x206a1f>=_0x5a107c)){_0x175aa0=_0x3cabc8[_0x365356+0x2],_0x1658ab['advance']();continue t;}_0x4019bb=_0x254022+0x1;}}break;}_0x175aa0=_0x3cabc8[_0x434757+0x3*_0x18aa07-0x1];}}function findOffset(_0x13c7ec,_0x5e5da3,_0x5bf4a6){for(let _0x558b30,_0x3fc85c=_0x5e5da3;0xffff!=(_0x558b30=_0x13c7ec[_0x3fc85c]);_0x3fc85c++)if(_0x558b30==_0x5bf4a6)return _0x3fc85c-_0x5e5da3;return-0x1;}function overrides(_0x3b6a88,_0x1d2ff5,_0xf65485,_0x18ac2a){let _0x3e0e10=findOffset(_0xf65485,_0x18ac2a,_0x1d2ff5);return _0x3e0e10<0x0||findOffset(_0xf65485,_0x18ac2a,_0x3b6a88)<_0x3e0e10;}const verbose='undefined'!=typeof process&&process['env']&&/\bparse\b/['test'](process['env']['LOG']);let stackIDs=null;function cutAt(_0x3ab652,_0xec47a,_0x54727c){let _0x29c9ce=_0x3ab652['cursor'](IterMode['IncludeAnonymous']);for(_0x29c9ce['moveTo'](_0xec47a);;)if(!(_0x54727c<0x0?_0x29c9ce['childBefore'](_0xec47a):_0x29c9ce['childAfter'](_0xec47a)))for(;;){if((_0x54727c<0x0?_0x29c9ce['to']<_0xec47a:_0x29c9ce['from']>_0xec47a)&&!_0x29c9ce['type']['isError'])return _0x54727c<0x0?Math['max'](0x0,Math['min'](_0x29c9ce['to']-0x1,_0xec47a-0x19)):Math['min'](_0x3ab652['length'],Math['max'](_0x29c9ce['from']+0x1,_0xec47a+0x19));if(_0x54727c<0x0?_0x29c9ce['prevSibling']():_0x29c9ce['nextSibling']())break;if(!_0x29c9ce['parent']())return _0x54727c<0x0?0x0:_0x3ab652['length'];}}let FragmentCursor$1=class{constructor(_0x13ada6,_0x1a3d7d){this['fragments']=_0x13ada6,this['nodeSet']=_0x1a3d7d,this['i']=0x0,this['fragment']=null,this['safeFrom']=-0x1,this['safeTo']=-0x1,this['trees']=[],this['start']=[],this['index']=[],this['nextFragment']();}['nextFragment'](){let _0x26078e=this['fragment']=this['i']==this['fragments']['length']?null:this['fragments'][this['i']++];if(_0x26078e){for(this['safeFrom']=_0x26078e['openStart']?cutAt(_0x26078e['tree'],_0x26078e['from']+_0x26078e['offset'],0x1)-_0x26078e['offset']:_0x26078e['from'],this['safeTo']=_0x26078e['openEnd']?cutAt(_0x26078e['tree'],_0x26078e['to']+_0x26078e['offset'],-0x1)-_0x26078e['offset']:_0x26078e['to'];this['trees']['length'];)this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();this['trees']['push'](_0x26078e['tree']),this['start']['push'](-_0x26078e['offset']),this['index']['push'](0x0),this['nextStart']=this['safeFrom'];}else this['nextStart']=0x3b9aca00;}['nodeAt'](_0x222739){if(_0x222739<this['nextStart'])return null;for(;this['fragment']&&this['safeTo']<=_0x222739;)this['nextFragment']();if(!this['fragment'])return null;for(;;){let _0x2b91e2=this['trees']['length']-0x1;if(_0x2b91e2<0x0)return this['nextFragment'](),null;let _0x4d9aa8=this['trees'][_0x2b91e2],_0x4f261b=this['index'][_0x2b91e2];if(_0x4f261b==_0x4d9aa8['children']['length']){this['trees']['pop'](),this['start']['pop'](),this['index']['pop']();continue;}let _0x196e74=_0x4d9aa8['children'][_0x4f261b],_0x23b4ab=this['start'][_0x2b91e2]+_0x4d9aa8['positions'][_0x4f261b];if(_0x23b4ab>_0x222739)return this['nextStart']=_0x23b4ab,null;if(_0x196e74 instanceof Tree){if(_0x23b4ab==_0x222739){if(_0x23b4ab<this['safeFrom'])return null;let _0x563f39=_0x23b4ab+_0x196e74['length'];if(_0x563f39<=this['safeTo']){let _0x3359bf=_0x196e74['prop'](NodeProp['lookAhead']);if(!_0x3359bf||_0x563f39+_0x3359bf<this['fragment']['to'])return _0x196e74;}}this['index'][_0x2b91e2]++,_0x23b4ab+_0x196e74['length']>=Math['max'](this['safeFrom'],_0x222739)&&(this['trees']['push'](_0x196e74),this['start']['push'](_0x23b4ab),this['index']['push'](0x0));}else this['index'][_0x2b91e2]++,this['nextStart']=_0x23b4ab+_0x196e74['length'];}}};class TokenCache{constructor(_0x1834bf,_0x5383c8){this['stream']=_0x5383c8,this['tokens']=[],this['mainToken']=null,this['actions']=[],this['tokens']=_0x1834bf['tokenizers']['map'](_0x85ffbc=>new CachedToken());}['getActions'](_0x41fc46){let _0x4876e0=0x0,_0x1ef605=null,{parser:_0x2ce47c}=_0x41fc46['p'],{tokenizers:_0x4a10a7}=_0x2ce47c,_0x299db4=_0x2ce47c['stateSlot'](_0x41fc46['state'],0x3),_0x52b048=_0x41fc46['curContext']?_0x41fc46['curContext']['hash']:0x0,_0x4ffef3=0x0;for(let _0x256aa9=0x0;_0x256aa9<_0x4a10a7['length'];_0x256aa9++){if(!(0x1<<_0x256aa9&_0x299db4))continue;let _0x115b78=_0x4a10a7[_0x256aa9],_0x316ec1=this['tokens'][_0x256aa9];if((!_0x1ef605||_0x115b78['fallback'])&&((_0x115b78['contextual']||_0x316ec1['start']!=_0x41fc46['pos']||_0x316ec1['mask']!=_0x299db4||_0x316ec1['context']!=_0x52b048)&&(this['updateCachedToken'](_0x316ec1,_0x115b78,_0x41fc46),_0x316ec1['mask']=_0x299db4,_0x316ec1['context']=_0x52b048),_0x316ec1['lookAhead']>_0x316ec1['end']+0x19&&(_0x4ffef3=Math['max'](_0x316ec1['lookAhead'],_0x4ffef3)),0x0!=_0x316ec1['value'])){let _0x414ee1=_0x4876e0;if(_0x316ec1['extended']>-0x1&&(_0x4876e0=this['addActions'](_0x41fc46,_0x316ec1['extended'],_0x316ec1['end'],_0x4876e0)),_0x4876e0=this['addActions'](_0x41fc46,_0x316ec1['value'],_0x316ec1['end'],_0x4876e0),!_0x115b78['extend']&&(_0x1ef605=_0x316ec1,_0x4876e0>_0x414ee1))break;}}for(;this['actions']['length']>_0x4876e0;)this['actions']['pop']();return _0x4ffef3&&_0x41fc46['setLookAhead'](_0x4ffef3),_0x1ef605||_0x41fc46['pos']!=this['stream']['end']||(_0x1ef605=new CachedToken(),_0x1ef605['value']=_0x41fc46['p']['parser']['eofTerm'],_0x1ef605['start']=_0x1ef605['end']=_0x41fc46['pos'],_0x4876e0=this['addActions'](_0x41fc46,_0x1ef605['value'],_0x1ef605['end'],_0x4876e0)),this['mainToken']=_0x1ef605,this['actions'];}['getMainToken'](_0x2fa4b9){if(this['mainToken'])return this['mainToken'];let _0x507fc1=new CachedToken(),{pos:_0x3368b5,p:_0x4c53be}=_0x2fa4b9;return _0x507fc1['start']=_0x3368b5,_0x507fc1['end']=Math['min'](_0x3368b5+0x1,_0x4c53be['stream']['end']),_0x507fc1['value']=_0x3368b5==_0x4c53be['stream']['end']?_0x4c53be['parser']['eofTerm']:0x0,_0x507fc1;}['updateCachedToken'](_0x6f4689,_0x4a65e8,_0x987777){let _0x432a35=this['stream']['clipPos'](_0x987777['pos']);if(_0x4a65e8['token'](this['stream']['reset'](_0x432a35,_0x6f4689),_0x987777),_0x6f4689['value']>-0x1){let {parser:_0x14180a}=_0x987777['p'];for(let _0x4a4091=0x0;_0x4a4091<_0x14180a['specialized']['length'];_0x4a4091++)if(_0x14180a['specialized'][_0x4a4091]==_0x6f4689['value']){let _0x4f2716=_0x14180a['specializers'][_0x4a4091](this['stream']['read'](_0x6f4689['start'],_0x6f4689['end']),_0x987777);if(_0x4f2716>=0x0&&_0x987777['p']['parser']['dialect']['allows'](_0x4f2716>>0x1)){0x1&_0x4f2716?_0x6f4689['extended']=_0x4f2716>>0x1:_0x6f4689['value']=_0x4f2716>>0x1;break;}}}else _0x6f4689['value']=0x0,_0x6f4689['end']=this['stream']['clipPos'](_0x432a35+0x1);}['putAction'](_0x88ca59,_0x55bb59,_0x433d73,_0x4bc086){for(let _0x3b1406=0x0;_0x3b1406<_0x4bc086;_0x3b1406+=0x3)if(this['actions'][_0x3b1406]==_0x88ca59)return _0x4bc086;return this['actions'][_0x4bc086++]=_0x88ca59,this['actions'][_0x4bc086++]=_0x55bb59,this['actions'][_0x4bc086++]=_0x433d73,_0x4bc086;}['addActions'](_0x53081c,_0x42ad73,_0x463540,_0x1f31f4){let {state:_0x33fc57}=_0x53081c,{parser:_0x407aae}=_0x53081c['p'],{data:_0x548d39}=_0x407aae;for(let _0x1e39d3=0x0;_0x1e39d3<0x2;_0x1e39d3++)for(let _0x1b5eed=_0x407aae['stateSlot'](_0x33fc57,_0x1e39d3?0x2:0x1);;_0x1b5eed+=0x3){if(0xffff==_0x548d39[_0x1b5eed]){if(0x1!=_0x548d39[_0x1b5eed+0x1]){0x0==_0x1f31f4&&0x2==_0x548d39[_0x1b5eed+0x1]&&(_0x1f31f4=this['putAction'](pair(_0x548d39,_0x1b5eed+0x2),_0x42ad73,_0x463540,_0x1f31f4));break;}_0x1b5eed=pair(_0x548d39,_0x1b5eed+0x2);}_0x548d39[_0x1b5eed]==_0x42ad73&&(_0x1f31f4=this['putAction'](pair(_0x548d39,_0x1b5eed+0x1),_0x42ad73,_0x463540,_0x1f31f4));}return _0x1f31f4;}}class Parse{constructor(_0xccbb55,_0x4315db,_0x53fe17,_0xa53501){this['parser']=_0xccbb55,this['input']=_0x4315db,this['ranges']=_0xa53501,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 InputStream(_0x4315db,_0xa53501),this['tokens']=new TokenCache(_0xccbb55,this['stream']),this['topTerm']=_0xccbb55['top'][0x1];let {from:_0x2d4632}=_0xa53501[0x0];this['stacks']=[Stack['start'](this,_0xccbb55['top'][0x0],_0x2d4632)],this['fragments']=_0x53fe17['length']&&this['stream']['end']-_0x2d4632>0x4*_0xccbb55['bufferLength']?new FragmentCursor$1(_0x53fe17,_0xccbb55['nodeSet']):null;}get['parsedPos'](){return this['minStackPos'];}['advance'](){let _0xe5df4f,_0x39d09e,_0x320efb=this['stacks'],_0x39d873=this['minStackPos'],_0x35e64a=this['stacks']=[];if(this['bigReductionCount']>0x12c&&0x1==_0x320efb['length']){let [_0x44ba19]=_0x320efb;for(;_0x44ba19['forceReduce']()&&_0x44ba19['stack']['length']&&_0x44ba19['stack'][_0x44ba19['stack']['length']-0x2]>=this['lastBigReductionStart'];);this['bigReductionCount']=this['lastBigReductionSize']=0x0;}for(let _0x4ba1d0=0x0;_0x4ba1d0<_0x320efb['length'];_0x4ba1d0++){let _0x4d24ef=_0x320efb[_0x4ba1d0];for(;;){if(this['tokens']['mainToken']=null,_0x4d24ef['pos']>_0x39d873)_0x35e64a['push'](_0x4d24ef);else{if(this['advanceStack'](_0x4d24ef,_0x35e64a,_0x320efb))continue;{_0xe5df4f||(_0xe5df4f=[],_0x39d09e=[]),_0xe5df4f['push'](_0x4d24ef);let _0xf4ca22=this['tokens']['getMainToken'](_0x4d24ef);_0x39d09e['push'](_0xf4ca22['value'],_0xf4ca22['end']);}}break;}}if(!_0x35e64a['length']){let _0x459007=_0xe5df4f&&findFinished(_0xe5df4f);if(_0x459007)return verbose&&console['log']('Finish\x20with\x20'+this['stackID'](_0x459007)),this['stackToTree'](_0x459007);if(this['parser']['strict'])throw verbose&&_0xe5df4f&&console['log']('Stuck\x20with\x20token\x20'+(this['tokens']['mainToken']?this['parser']['getName'](this['tokens']['mainToken']['value']):'none')),new SyntaxError('No\x20parse\x20at\x20'+_0x39d873);this['recovering']||(this['recovering']=0x5);}if(this['recovering']&&_0xe5df4f){let _0x5f0e5a=null!=this['stoppedAt']&&_0xe5df4f[0x0]['pos']>this['stoppedAt']?_0xe5df4f[0x0]:this['runRecovery'](_0xe5df4f,_0x39d09e,_0x35e64a);if(_0x5f0e5a)return verbose&&console['log']('Force-finish\x20'+this['stackID'](_0x5f0e5a)),this['stackToTree'](_0x5f0e5a['forceAll']());}if(this['recovering']){let _0x27274e=0x1==this['recovering']?0x1:0x3*this['recovering'];if(_0x35e64a['length']>_0x27274e){for(_0x35e64a['sort']((_0x694864,_0x163084)=>_0x163084['score']-_0x694864['score']);_0x35e64a['length']>_0x27274e;)_0x35e64a['pop']();}_0x35e64a['some'](_0x2df8e0=>_0x2df8e0['reducePos']>_0x39d873)&&this['recovering']--;}else{if(_0x35e64a['length']>0x1){t:for(let _0xaaba1=0x0;_0xaaba1<_0x35e64a['length']-0x1;_0xaaba1++){let _0x3e2932=_0x35e64a[_0xaaba1];for(let _0x5b0aae=_0xaaba1+0x1;_0x5b0aae<_0x35e64a['length'];_0x5b0aae++){let _0x187d45=_0x35e64a[_0x5b0aae];if(_0x3e2932['sameState'](_0x187d45)||_0x3e2932['buffer']['length']>0x1f4&&_0x187d45['buffer']['length']>0x1f4){if(!((_0x3e2932['score']-_0x187d45['score']||_0x3e2932['buffer']['length']-_0x187d45['buffer']['length'])>0x0)){_0x35e64a['splice'](_0xaaba1--,0x1);continue t;}_0x35e64a['splice'](_0x5b0aae--,0x1);}}}_0x35e64a['length']>0xc&&_0x35e64a['splice'](0xc,_0x35e64a['length']-0xc);}}this['minStackPos']=_0x35e64a[0x0]['pos'];for(let _0x23ddf9=0x1;_0x23ddf9<_0x35e64a['length'];_0x23ddf9++)_0x35e64a[_0x23ddf9]['pos']<this['minStackPos']&&(this['minStackPos']=_0x35e64a[_0x23ddf9]['pos']);return null;}['stopAt'](_0x43e72e){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x43e72e)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x43e72e;}['advanceStack'](_0x5f5b37,_0x4391f7,_0x35f7dd){let _0x2d4cba=_0x5f5b37['pos'],{parser:_0x3cf031}=this,_0x45208b=verbose?this['stackID'](_0x5f5b37)+'\x20->\x20':'';if(null!=this['stoppedAt']&&_0x2d4cba>this['stoppedAt'])return _0x5f5b37['forceReduce']()?_0x5f5b37:null;if(this['fragments']){let _0x2d3f05=_0x5f5b37['curContext']&&_0x5f5b37['curContext']['tracker']['strict'],_0x593e31=_0x2d3f05?_0x5f5b37['curContext']['hash']:0x0;for(let _0x7e42ed=this['fragments']['nodeAt'](_0x2d4cba);_0x7e42ed;){let _0x426163=this['parser']['nodeSet']['types'][_0x7e42ed['type']['id']]==_0x7e42ed['type']?_0x3cf031['getGoto'](_0x5f5b37['state'],_0x7e42ed['type']['id']):-0x1;if(_0x426163>-0x1&&_0x7e42ed['length']&&(!_0x2d3f05||(_0x7e42ed['prop'](NodeProp['contextHash'])||0x0)==_0x593e31))return _0x5f5b37['useNode'](_0x7e42ed,_0x426163),verbose&&console['log'](_0x45208b+this['stackID'](_0x5f5b37)+('\x20(via\x20reuse\x20of\x20'+_0x3cf031['getName'](_0x7e42ed['type']['id'])+')')),!0x0;if(!(_0x7e42ed instanceof Tree)||0x0==_0x7e42ed['children']['length']||_0x7e42ed['positions'][0x0]>0x0)break;let _0x37e9b1=_0x7e42ed['children'][0x0];if(!(_0x37e9b1 instanceof Tree&&0x0==_0x7e42ed['positions'][0x0]))break;_0x7e42ed=_0x37e9b1;}}let _0x12edeb=_0x3cf031['stateSlot'](_0x5f5b37['state'],0x4);if(_0x12edeb>0x0)return _0x5f5b37['reduce'](_0x12edeb),verbose&&console['log'](_0x45208b+this['stackID'](_0x5f5b37)+('\x20(via\x20always-reduce\x20'+_0x3cf031['getName'](0xffff&_0x12edeb)+')')),!0x0;if(_0x5f5b37['stack']['length']>=0x20d0){for(;_0x5f5b37['stack']['length']>0x1770&&_0x5f5b37['forceReduce'](););}let _0xca11c4=this['tokens']['getActions'](_0x5f5b37);for(let _0x12f4e4=0x0;_0x12f4e4<_0xca11c4['length'];){let _0x2ee122=_0xca11c4[_0x12f4e4++],_0x22b01f=_0xca11c4[_0x12f4e4++],_0x564c51=_0xca11c4[_0x12f4e4++],_0x35d2f2=_0x12f4e4==_0xca11c4['length']||!_0x35f7dd,_0x11543f=_0x35d2f2?_0x5f5b37:_0x5f5b37['split'](),_0x478a6d=this['tokens']['mainToken'];if(_0x11543f['apply'](_0x2ee122,_0x22b01f,_0x478a6d?_0x478a6d['start']:_0x11543f['pos'],_0x564c51),verbose&&console['log'](_0x45208b+this['stackID'](_0x11543f)+('\x20(via\x20'+(0x10000&_0x2ee122?'reduce\x20of\x20'+_0x3cf031['getName'](0xffff&_0x2ee122):'shift')+'\x20for\x20'+_0x3cf031['getName'](_0x22b01f)+'\x20@\x20'+_0x2d4cba+(_0x11543f==_0x5f5b37?'':',\x20split')+')')),_0x35d2f2)return!0x0;_0x11543f['pos']>_0x2d4cba?_0x4391f7['push'](_0x11543f):_0x35f7dd['push'](_0x11543f);}return!0x1;}['advanceFully'](_0x5bc6a4,_0x4c1a85){let _0x5a54a3=_0x5bc6a4['pos'];for(;;){if(!this['advanceStack'](_0x5bc6a4,null,null))return!0x1;if(_0x5bc6a4['pos']>_0x5a54a3)return pushStackDedup(_0x5bc6a4,_0x4c1a85),!0x0;}}['runRecovery'](_0x1627eb,_0x50d675,_0xe5285d){let _0x55c546=null,_0x493f84=!0x1;for(let _0x8471a0=0x0;_0x8471a0<_0x1627eb['length'];_0x8471a0++){let _0x80e4a3=_0x1627eb[_0x8471a0],_0x146a9d=_0x50d675[_0x8471a0<<0x1],_0x11f30e=_0x50d675[0x1+(_0x8471a0<<0x1)],_0x30bac1=verbose?this['stackID'](_0x80e4a3)+'\x20->\x20':'';if(_0x80e4a3['deadEnd']){if(_0x493f84)continue;if(_0x493f84=!0x0,_0x80e4a3['restart'](),verbose&&console['log'](_0x30bac1+this['stackID'](_0x80e4a3)+'\x20(restarted)'),this['advanceFully'](_0x80e4a3,_0xe5285d))continue;}let _0x2231b0=_0x80e4a3['split'](),_0x2f96b3=_0x30bac1;for(let _0x102fce=0x0;_0x102fce<0xa&&_0x2231b0['forceReduce']();_0x102fce++){if(verbose&&console['log'](_0x2f96b3+this['stackID'](_0x2231b0)+'\x20(via\x20force-reduce)'),this['advanceFully'](_0x2231b0,_0xe5285d))break;verbose&&(_0x2f96b3=this['stackID'](_0x2231b0)+'\x20->\x20');}for(let _0x4e134a of _0x80e4a3['recoverByInsert'](_0x146a9d))verbose&&console['log'](_0x30bac1+this['stackID'](_0x4e134a)+'\x20(via\x20recover-insert)'),this['advanceFully'](_0x4e134a,_0xe5285d);this['stream']['end']>_0x80e4a3['pos']?(_0x11f30e==_0x80e4a3['pos']&&(_0x11f30e++,_0x146a9d=0x0),_0x80e4a3['recoverByDelete'](_0x146a9d,_0x11f30e),verbose&&console['log'](_0x30bac1+this['stackID'](_0x80e4a3)+('\x20(via\x20recover-delete\x20'+this['parser']['getName'](_0x146a9d)+')')),pushStackDedup(_0x80e4a3,_0xe5285d)):(!_0x55c546||_0x55c546['score']<_0x80e4a3['score'])&&(_0x55c546=_0x80e4a3);}return _0x55c546;}['stackToTree'](_0x34e9a2){return _0x34e9a2['close'](),Tree['build']({'buffer':StackBufferCursor['create'](_0x34e9a2),'nodeSet':this['parser']['nodeSet'],'topID':this['topTerm'],'maxBufferLength':this['parser']['bufferLength'],'reused':this['reused'],'start':this['ranges'][0x0]['from'],'length':_0x34e9a2['pos']-this['ranges'][0x0]['from'],'minRepeatType':this['parser']['minRepeatTerm']});}['stackID'](_0x4e24e5){let _0x33ec97=(stackIDs||(stackIDs=new WeakMap()))['get'](_0x4e24e5);return _0x33ec97||stackIDs['set'](_0x4e24e5,_0x33ec97=String['fromCodePoint'](this['nextStackID']++)),_0x33ec97+_0x4e24e5;}}function pushStackDedup(_0x4fc4c5,_0xd4530c){for(let _0x589f86=0x0;_0x589f86<_0xd4530c['length'];_0x589f86++){let _0x5b41b6=_0xd4530c[_0x589f86];if(_0x5b41b6['pos']==_0x4fc4c5['pos']&&_0x5b41b6['sameState'](_0x4fc4c5))return void(_0xd4530c[_0x589f86]['score']<_0x4fc4c5['score']&&(_0xd4530c[_0x589f86]=_0x4fc4c5));}_0xd4530c['push'](_0x4fc4c5);}class Dialect{constructor(_0x2af74b,_0x3c5653,_0x1e4e54){this['source']=_0x2af74b,this['flags']=_0x3c5653,this['disabled']=_0x1e4e54;}['allows'](_0x5b1a13){return!this['disabled']||0x0==this['disabled'][_0x5b1a13];}}const id=_0x240157=>_0x240157;class ContextTracker{constructor(_0x56a07f){this['start']=_0x56a07f['start'],this['shift']=_0x56a07f['shift']||id,this['reduce']=_0x56a07f['reduce']||id,this['reuse']=_0x56a07f['reuse']||id,this['hash']=_0x56a07f['hash']||(()=>0x0),this['strict']=!0x1!==_0x56a07f['strict'];}}class LRParser extends Parser{constructor(_0x57c83a){if(super(),this['wrappers']=[],0xe!=_0x57c83a['version'])throw new RangeError('Parser\x20version\x20('+_0x57c83a['version']+')\x20doesn\x27t\x20match\x20runtime\x20version\x20(14)');let _0xc9bcf5=_0x57c83a['nodeNames']['split']('\x20');this['minRepeatTerm']=_0xc9bcf5['length'];for(let _0x5d64c2=0x0;_0x5d64c2<_0x57c83a['repeatNodeCount'];_0x5d64c2++)_0xc9bcf5['push']('');let _0x4c01fb=Object['keys'](_0x57c83a['topRules'])['map'](_0x19e026=>_0x57c83a['topRules'][_0x19e026][0x1]),_0x1a037e=[];for(let _0x562a7a=0x0;_0x562a7a<_0xc9bcf5['length'];_0x562a7a++)_0x1a037e['push']([]);function _0x4762ba(_0x1c369a,_0x39b7cb,_0x20dc49){_0x1a037e[_0x1c369a]['push']([_0x39b7cb,_0x39b7cb['deserialize'](String(_0x20dc49))]);}if(_0x57c83a['nodeProps'])for(let _0x4ffd3a of _0x57c83a['nodeProps']){let _0x15158b=_0x4ffd3a[0x0];'string'==typeof _0x15158b&&(_0x15158b=NodeProp[_0x15158b]);for(let _0x5f3556=0x1;_0x5f3556<_0x4ffd3a['length'];){let _0x3ab74b=_0x4ffd3a[_0x5f3556++];if(_0x3ab74b>=0x0)_0x4762ba(_0x3ab74b,_0x15158b,_0x4ffd3a[_0x5f3556++]);else{let _0x446767=_0x4ffd3a[_0x5f3556+-_0x3ab74b];for(let _0x30c859=-_0x3ab74b;_0x30c859>0x0;_0x30c859--)_0x4762ba(_0x4ffd3a[_0x5f3556++],_0x15158b,_0x446767);_0x5f3556++;}}}this['nodeSet']=new NodeSet(_0xc9bcf5['map']((_0x5e609c,_0x45adca)=>NodeType['define']({'name':_0x45adca>=this['minRepeatTerm']?void 0x0:_0x5e609c,'id':_0x45adca,'props':_0x1a037e[_0x45adca],'top':_0x4c01fb['indexOf'](_0x45adca)>-0x1,'error':0x0==_0x45adca,'skipped':_0x57c83a['skippedNodes']&&_0x57c83a['skippedNodes']['indexOf'](_0x45adca)>-0x1}))),_0x57c83a['propSources']&&(this['nodeSet']=this['nodeSet']['extend'](..._0x57c83a['propSources'])),this['strict']=!0x1,this['bufferLength']=DefaultBufferLength;let _0x291006=decodeArray(_0x57c83a['tokenData']);this['context']=_0x57c83a['context'],this['specializerSpecs']=_0x57c83a['specialized']||[],this['specialized']=new Uint16Array(this['specializerSpecs']['length']);for(let _0x290b95=0x0;_0x290b95<this['specializerSpecs']['length'];_0x290b95++)this['specialized'][_0x290b95]=this['specializerSpecs'][_0x290b95]['term'];this['specializers']=this['specializerSpecs']['map'](getSpecializer),this['states']=decodeArray(_0x57c83a['states'],Uint32Array),this['data']=decodeArray(_0x57c83a['stateData']),this['goto']=decodeArray(_0x57c83a['goto']),this['maxTerm']=_0x57c83a['maxTerm'],this['tokenizers']=_0x57c83a['tokenizers']['map'](_0x471b22=>'number'==typeof _0x471b22?new TokenGroup(_0x291006,_0x471b22):_0x471b22),this['topRules']=_0x57c83a['topRules'],this['dialects']=_0x57c83a['dialects']||{},this['dynamicPrecedences']=_0x57c83a['dynamicPrecedences']||null,this['tokenPrecTable']=_0x57c83a['tokenPrec'],this['termNames']=_0x57c83a['termNames']||null,this['maxNode']=this['nodeSet']['types']['length']-0x1,this['dialect']=this['parseDialect'](),this['top']=this['topRules'][Object['keys'](this['topRules'])[0x0]];}['createParse'](_0x2b3b85,_0xde9bc9,_0xf0c146){let _0x4ae0b3=new Parse(this,_0x2b3b85,_0xde9bc9,_0xf0c146);for(let _0x1b4a88 of this['wrappers'])_0x4ae0b3=_0x1b4a88(_0x4ae0b3,_0x2b3b85,_0xde9bc9,_0xf0c146);return _0x4ae0b3;}['getGoto'](_0x324906,_0x517cf3,_0x519dde=!0x1){let _0x1d061d=this['goto'];if(_0x517cf3>=_0x1d061d[0x0])return-0x1;for(let _0x427f89=_0x1d061d[_0x517cf3+0x1];;){let _0x2e8655=_0x1d061d[_0x427f89++],_0x525b72=0x1&_0x2e8655,_0x3229db=_0x1d061d[_0x427f89++];if(_0x525b72&&_0x519dde)return _0x3229db;for(let _0x41ad37=_0x427f89+(_0x2e8655>>0x1);_0x427f89<_0x41ad37;_0x427f89++)if(_0x1d061d[_0x427f89]==_0x324906)return _0x3229db;if(_0x525b72)return-0x1;}}['hasAction'](_0x11a8c0,_0x244b8e){let _0x473227=this['data'];for(let _0x1a102d=0x0;_0x1a102d<0x2;_0x1a102d++)for(let _0x3bd027,_0x2644e2=this['stateSlot'](_0x11a8c0,_0x1a102d?0x2:0x1);;_0x2644e2+=0x3){if(0xffff==(_0x3bd027=_0x473227[_0x2644e2])){if(0x1!=_0x473227[_0x2644e2+0x1]){if(0x2==_0x473227[_0x2644e2+0x1])return pair(_0x473227,_0x2644e2+0x2);break;}_0x3bd027=_0x473227[_0x2644e2=pair(_0x473227,_0x2644e2+0x2)];}if(_0x3bd027==_0x244b8e||0x0==_0x3bd027)return pair(_0x473227,_0x2644e2+0x1);}return 0x0;}['stateSlot'](_0x2e968e,_0xf806e1){return this['states'][0x6*_0x2e968e+_0xf806e1];}['stateFlag'](_0x2df243,_0xbbf571){return(this['stateSlot'](_0x2df243,0x0)&_0xbbf571)>0x0;}['validAction'](_0xf84345,_0x293128){return!!this['allActions'](_0xf84345,_0x263b22=>_0x263b22==_0x293128||null);}['allActions'](_0x47e1dc,_0x3f8b7e){let _0x56dbc7=this['stateSlot'](_0x47e1dc,0x4),_0x106c40=_0x56dbc7?_0x3f8b7e(_0x56dbc7):void 0x0;for(let _0x20c90f=this['stateSlot'](_0x47e1dc,0x1);null==_0x106c40;_0x20c90f+=0x3){if(0xffff==this['data'][_0x20c90f]){if(0x1!=this['data'][_0x20c90f+0x1])break;_0x20c90f=pair(this['data'],_0x20c90f+0x2);}_0x106c40=_0x3f8b7e(pair(this['data'],_0x20c90f+0x1));}return _0x106c40;}['nextStates'](_0x510fdc){let _0x19ec58=[];for(let _0x3a3035=this['stateSlot'](_0x510fdc,0x1);;_0x3a3035+=0x3){if(0xffff==this['data'][_0x3a3035]){if(0x1!=this['data'][_0x3a3035+0x1])break;_0x3a3035=pair(this['data'],_0x3a3035+0x2);}if(!(0x1&this['data'][_0x3a3035+0x2])){let _0x58ce68=this['data'][_0x3a3035+0x1];_0x19ec58['some']((_0x15f9a1,_0x2af5b0)=>0x1&_0x2af5b0&&_0x15f9a1==_0x58ce68)||_0x19ec58['push'](this['data'][_0x3a3035],_0x58ce68);}}return _0x19ec58;}['configure'](_0x23c163){let _0x450bc9=Object['assign'](Object['create'](LRParser['prototype']),this);if(_0x23c163['props']&&(_0x450bc9['nodeSet']=this['nodeSet']['extend'](..._0x23c163['props'])),_0x23c163['top']){let _0x4df2b9=this['topRules'][_0x23c163['top']];if(!_0x4df2b9)throw new RangeError('Invalid\x20top\x20rule\x20name\x20'+_0x23c163['top']);_0x450bc9['top']=_0x4df2b9;}return _0x23c163['tokenizers']&&(_0x450bc9['tokenizers']=this['tokenizers']['map'](t=>{let _0x1d6021=_0x23c163['tokenizers']['find'](_0x5cd4b5=>_0x5cd4b5['from']==t);return _0x1d6021?_0x1d6021['to']:t;})),_0x23c163['specializers']&&(_0x450bc9['specializers']=this['specializers']['slice'](),_0x450bc9['specializerSpecs']=this['specializerSpecs']['map']((_0x1a2c6e,_0x4a01c0)=>{let _0x4ee91c=_0x23c163['specializers']['find'](_0x5611bf=>_0x5611bf['from']==_0x1a2c6e['external']);if(!_0x4ee91c)return _0x1a2c6e;let _0x1da49f=Object['assign'](Object['assign']({},_0x1a2c6e),{'external':_0x4ee91c['to']});return _0x450bc9['specializers'][_0x4a01c0]=getSpecializer(_0x1da49f),_0x1da49f;})),_0x23c163['contextTracker']&&(_0x450bc9['context']=_0x23c163['contextTracker']),_0x23c163['dialect']&&(_0x450bc9['dialect']=this['parseDialect'](_0x23c163['dialect'])),null!=_0x23c163['strict']&&(_0x450bc9['strict']=_0x23c163['strict']),_0x23c163['wrap']&&(_0x450bc9['wrappers']=_0x450bc9['wrappers']['concat'](_0x23c163['wrap'])),null!=_0x23c163['bufferLength']&&(_0x450bc9['bufferLength']=_0x23c163['bufferLength']),_0x450bc9;}['hasWrappers'](){return this['wrappers']['length']>0x0;}['getName'](_0x2467d){return this['termNames']?this['termNames'][_0x2467d]:String(_0x2467d<=this['maxNode']&&this['nodeSet']['types'][_0x2467d]['name']||_0x2467d);}get['eofTerm'](){return this['maxNode']+0x1;}get['topNode'](){return this['nodeSet']['types'][this['top'][0x1]];}['dynamicPrecedence'](_0x29e5da){let _0x8e4b08=this['dynamicPrecedences'];return null==_0x8e4b08?0x0:_0x8e4b08[_0x29e5da]||0x0;}['parseDialect'](_0x2178b7){let _0x3ba324=Object['keys'](this['dialects']),_0x423b56=_0x3ba324['map'](()=>!0x1);if(_0x2178b7)for(let _0x34e2b9 of _0x2178b7['split']('\x20')){let _0x53bd6d=_0x3ba324['indexOf'](_0x34e2b9);_0x53bd6d>=0x0&&(_0x423b56[_0x53bd6d]=!0x0);}let _0x5b492a=null;for(let _0x14b8e6=0x0;_0x14b8e6<_0x3ba324['length'];_0x14b8e6++)if(!_0x423b56[_0x14b8e6]){for(let _0x115b90,_0x3353bf=this['dialects'][_0x3ba324[_0x14b8e6]];0xffff!=(_0x115b90=this['data'][_0x3353bf++]);)(_0x5b492a||(_0x5b492a=new Uint8Array(this['maxTerm']+0x1)))[_0x115b90]=0x1;}return new Dialect(_0x2178b7,_0x423b56,_0x5b492a);}static['deserialize'](_0x17c2a5){return new LRParser(_0x17c2a5);}}function pair(_0x55c522,_0x4df78e){return _0x55c522[_0x4df78e]|_0x55c522[_0x4df78e+0x1]<<0x10;}function findFinished(_0x2d93a2){let _0x13b169=null;for(let _0x304139 of _0x2d93a2){let _0x3dcc9c=_0x304139['p']['stoppedAt'];(_0x304139['pos']==_0x304139['p']['stream']['end']||null!=_0x3dcc9c&&_0x304139['pos']>_0x3dcc9c)&&_0x304139['p']['parser']['stateFlag'](_0x304139['state'],0x2)&&(!_0x13b169||_0x13b169['score']<_0x304139['score'])&&(_0x13b169=_0x304139);}return _0x13b169;}function getSpecializer(_0x2645ef){if(_0x2645ef['external']){let _0x19f5cc=_0x2645ef['extend']?0x1:0x0;return(_0x522e66,_0x4a09a1)=>_0x2645ef['external'](_0x522e66,_0x4a09a1)<<0x1|_0x19f5cc;}return _0x2645ef['get'];}const scriptText=0x37,StartCloseScriptTag=0x1,styleText=0x38,StartCloseStyleTag=0x2,textareaText=0x39,StartCloseTextareaTag=0x3,EndTag=0x4,SelfClosingEndTag=0x5,StartTag=0x6,StartScriptTag=0x7,StartStyleTag=0x8,StartTextareaTag=0x9,StartSelfClosingTag=0xa,StartCloseTag=0xb,NoMatchStartCloseTag=0xc,MismatchedStartCloseTag=0xd,missingCloseTag=0x3a,IncompleteTag=0xe,IncompleteCloseTag=0xf,commentContent$1=0x3b,Element$2=0x15,TagName=0x17,Attribute=0x18,AttributeName=0x19,AttributeValue=0x1b,UnquotedAttributeValue=0x1c,ScriptText=0x1d,StyleText=0x20,TextareaText=0x23,OpenTag=0x25,CloseTag=0x26,Dialect_noMatch=0x0,Dialect_selfClosing=0x1,selfClosers$1={'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},implicitlyClosed={'dd':!0x0,'li':!0x0,'optgroup':!0x0,'option':!0x0,'p':!0x0,'rp':!0x0,'rt':!0x0,'tbody':!0x0,'td':!0x0,'tfoot':!0x0,'th':!0x0,'tr':!0x0},closeOnOpen={'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 nameChar(_0x2e103f){return 0x2d==_0x2e103f||0x2e==_0x2e103f||0x3a==_0x2e103f||_0x2e103f>=0x41&&_0x2e103f<=0x5a||0x5f==_0x2e103f||_0x2e103f>=0x61&&_0x2e103f<=0x7a||_0x2e103f>=0xa1;}let cachedName=null,cachedInput=null,cachedPos=0x0;function tagNameAfter(_0x382645,_0x4cc363){let _0x57d8c9=_0x382645['pos']+_0x4cc363;if(cachedPos==_0x57d8c9&&cachedInput==_0x382645)return cachedName;let _0x164646=_0x382645['peek'](_0x4cc363),_0x741491='';for(;nameChar(_0x164646);)_0x741491+=String['fromCharCode'](_0x164646),_0x164646=_0x382645['peek'](++_0x4cc363);return cachedInput=_0x382645,cachedPos=_0x57d8c9,cachedName=_0x741491?_0x741491['toLowerCase']():_0x164646==question$1||_0x164646==bang?void 0x0:null;}const lessThan=0x3c,greaterThan=0x3e,slash$1=0x2f,question$1=0x3f,bang=0x21,dash$1=0x2d;function ElementContext(_0x13dcb3,_0x5b09c7){this['name']=_0x13dcb3,this['parent']=_0x5b09c7;}const startTagTerms=[StartTag,StartSelfClosingTag,StartScriptTag,StartStyleTag,StartTextareaTag],elementContext=new ContextTracker({'start':null,'shift':(_0x41833b,_0x30b1db,_0x2e1525,_0x712a11)=>startTagTerms['indexOf'](_0x30b1db)>-0x1?new ElementContext(tagNameAfter(_0x712a11,0x1)||'',_0x41833b):_0x41833b,'reduce':(_0x2e4087,_0x416d16)=>_0x416d16==Element$2&&_0x2e4087?_0x2e4087['parent']:_0x2e4087,'reuse'(_0xbd7c12,_0xea59d7,_0x523161,_0x3eb3ff){let _0x481c86=_0xea59d7['type']['id'];return _0x481c86==StartTag||_0x481c86==OpenTag?new ElementContext(tagNameAfter(_0x3eb3ff,0x1)||'',_0xbd7c12):_0xbd7c12;},'strict':!0x1}),tagStart=new ExternalTokenizer((_0x5b9eed,_0x1099bb)=>{if(_0x5b9eed['next']!=lessThan)return void(_0x5b9eed['next']<0x0&&_0x1099bb['context']&&_0x5b9eed['acceptToken'](missingCloseTag));_0x5b9eed['advance']();let _0x239433=_0x5b9eed['next']==slash$1;_0x239433&&_0x5b9eed['advance']();let _0x2113b3=tagNameAfter(_0x5b9eed,0x0);if(void 0x0===_0x2113b3)return;if(!_0x2113b3)return _0x5b9eed['acceptToken'](_0x239433?IncompleteCloseTag:IncompleteTag);let _0x3a38fb=_0x1099bb['context']?_0x1099bb['context']['name']:null;if(_0x239433){if(_0x2113b3==_0x3a38fb)return _0x5b9eed['acceptToken'](StartCloseTag);if(_0x3a38fb&&implicitlyClosed[_0x3a38fb])return _0x5b9eed['acceptToken'](missingCloseTag,-0x2);if(_0x1099bb['dialectEnabled'](Dialect_noMatch))return _0x5b9eed['acceptToken'](NoMatchStartCloseTag);for(let _0x5977c0=_0x1099bb['context'];_0x5977c0;_0x5977c0=_0x5977c0['parent'])if(_0x5977c0['name']==_0x2113b3)return;_0x5b9eed['acceptToken'](MismatchedStartCloseTag);}else{if('script'==_0x2113b3)return _0x5b9eed['acceptToken'](StartScriptTag);if('style'==_0x2113b3)return _0x5b9eed['acceptToken'](StartStyleTag);if('textarea'==_0x2113b3)return _0x5b9eed['acceptToken'](StartTextareaTag);if(selfClosers$1['hasOwnProperty'](_0x2113b3))return _0x5b9eed['acceptToken'](StartSelfClosingTag);_0x3a38fb&&closeOnOpen[_0x3a38fb]&&closeOnOpen[_0x3a38fb][_0x2113b3]?_0x5b9eed['acceptToken'](missingCloseTag,-0x1):_0x5b9eed['acceptToken'](StartTag);}},{'contextual':!0x0}),commentContent=new ExternalTokenizer(_0x1b0316=>{for(let _0x3eb500=0x0,_0x76d11a=0x0;;_0x76d11a++){if(_0x1b0316['next']<0x0){_0x76d11a&&_0x1b0316['acceptToken'](commentContent$1);break;}if(_0x1b0316['next']==dash$1)_0x3eb500++;else{if(_0x1b0316['next']==greaterThan&&_0x3eb500>=0x2){_0x76d11a>=0x3&&_0x1b0316['acceptToken'](commentContent$1,-0x2);break;}_0x3eb500=0x0;}_0x1b0316['advance']();}});function inForeignElement(_0x3f3399){for(;_0x3f3399;_0x3f3399=_0x3f3399['parent'])if('svg'==_0x3f3399['name']||'math'==_0x3f3399['name'])return!0x0;return!0x1;}const endTag=new ExternalTokenizer((_0x2a78cf,_0x177fe4)=>{if(_0x2a78cf['next']==slash$1&&_0x2a78cf['peek'](0x1)==greaterThan){let _0x5e5c48=_0x177fe4['dialectEnabled'](Dialect_selfClosing)||inForeignElement(_0x177fe4['context']);_0x2a78cf['acceptToken'](_0x5e5c48?SelfClosingEndTag:EndTag,0x2);}else _0x2a78cf['next']==greaterThan&&_0x2a78cf['acceptToken'](EndTag,0x1);});function contentTokenizer(_0x33eb8a,_0x3367f9,_0x140356){let _0x3802c5=0x2+_0x33eb8a['length'];return new ExternalTokenizer(_0xef98f4=>{for(let _0x3e5a12=0x0,_0x4424b5=0x0,_0x1a8391=0x0;;_0x1a8391++){if(_0xef98f4['next']<0x0){_0x1a8391&&_0xef98f4['acceptToken'](_0x3367f9);break;}if(0x0==_0x3e5a12&&_0xef98f4['next']==lessThan||0x1==_0x3e5a12&&_0xef98f4['next']==slash$1||_0x3e5a12>=0x2&&_0x3e5a12<_0x3802c5&&_0xef98f4['next']==_0x33eb8a['charCodeAt'](_0x3e5a12-0x2))_0x3e5a12++,_0x4424b5++;else{if(_0x3e5a12==_0x3802c5&&_0xef98f4['next']==greaterThan){_0x1a8391>_0x4424b5?_0xef98f4['acceptToken'](_0x3367f9,-_0x4424b5):_0xef98f4['acceptToken'](_0x140356,-(_0x4424b5-0x2));break;}if((0xa==_0xef98f4['next']||0xd==_0xef98f4['next'])&&_0x1a8391){_0xef98f4['acceptToken'](_0x3367f9,0x1);break;}_0x3e5a12=_0x4424b5=0x0;}_0xef98f4['advance']();}});}const scriptTokens=contentTokenizer('script',scriptText,StartCloseScriptTag),styleTokens=contentTokenizer('style',styleText,StartCloseStyleTag),textareaTokens=contentTokenizer('textarea',textareaText,StartCloseTextareaTag),htmlHighlighting=styleTags({'Text\x20RawText\x20IncompleteTag\x20IncompleteCloseTag':tags$1['content'],'StartTag\x20StartCloseTag\x20SelfClosingEndTag\x20EndTag':tags$1['angleBracket'],'TagName':tags$1['tagName'],'MismatchedCloseTag/TagName':[tags$1['tagName'],tags$1['invalid']],'AttributeName':tags$1['attributeName'],'AttributeValue\x20UnquotedAttributeValue':tags$1['attributeValue'],'Is':tags$1['definitionOperator'],'EntityReference\x20CharacterReference':tags$1['character'],'Comment':tags$1['blockComment'],'ProcessingInst':tags$1['processingInstruction'],'DoctypeDecl':tags$1['documentMeta']}),parser$3=LRParser['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':elementContext,'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':[htmlHighlighting],'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':[scriptTokens,styleTokens,textareaTokens,endTag,tagStart,commentContent,0x0,0x1,0x2,0x3,0x4,0x5],'topRules':{'Document':[0x0,0x10]},'dialects':{'noMatch':0x0,'selfClosing':0x203},'tokenPrec':0x205});function getAttrs(_0x99c57f,_0x5d98ab){let _0x559560=Object['create'](null);for(let _0x2cbab3 of _0x99c57f['getChildren'](Attribute)){let _0x4aa690=_0x2cbab3['getChild'](AttributeName),_0xe8336=_0x2cbab3['getChild'](AttributeValue)||_0x2cbab3['getChild'](UnquotedAttributeValue);_0x4aa690&&(_0x559560[_0x5d98ab['read'](_0x4aa690['from'],_0x4aa690['to'])]=_0xe8336?_0xe8336['type']['id']==AttributeValue?_0x5d98ab['read'](_0xe8336['from']+0x1,_0xe8336['to']-0x1):_0x5d98ab['read'](_0xe8336['from'],_0xe8336['to']):'');}return _0x559560;}function findTagName(_0x1239da,_0x46d935){let _0x39a89b=_0x1239da['getChild'](TagName);return _0x39a89b?_0x46d935['read'](_0x39a89b['from'],_0x39a89b['to']):'\x20';}function maybeNest(_0x48d047,_0x5be9b2,_0x4b5be7){let _0x3d9909;for(let _0x2d2a77 of _0x4b5be7)if(!_0x2d2a77['attrs']||_0x2d2a77['attrs'](_0x3d9909||(_0x3d9909=getAttrs(_0x48d047['node']['parent']['firstChild'],_0x5be9b2))))return{'parser':_0x2d2a77['parser']};return null;}function configureNesting(_0x16bf7c=[],_0x5e1803=[]){let _0x3a7199=[],_0x1c59af=[],_0x36e03c=[],_0x49c468=[];for(let _0x1f14f4 of _0x16bf7c){('script'==_0x1f14f4['tag']?_0x3a7199:'style'==_0x1f14f4['tag']?_0x1c59af:'textarea'==_0x1f14f4['tag']?_0x36e03c:_0x49c468)['push'](_0x1f14f4);}let _0x31080e=_0x5e1803['length']?Object['create'](null):null;for(let _0x2cbf93 of _0x5e1803)(_0x31080e[_0x2cbf93['name']]||(_0x31080e[_0x2cbf93['name']]=[]))['push'](_0x2cbf93);return parseMixed((_0x2dba35,_0x5edee4)=>{let _0x4979c8=_0x2dba35['type']['id'];if(_0x4979c8==ScriptText)return maybeNest(_0x2dba35,_0x5edee4,_0x3a7199);if(_0x4979c8==StyleText)return maybeNest(_0x2dba35,_0x5edee4,_0x1c59af);if(_0x4979c8==TextareaText)return maybeNest(_0x2dba35,_0x5edee4,_0x36e03c);if(_0x4979c8==Element$2&&_0x49c468['length']){let _0x186a4e,_0x2957c7=_0x2dba35['node'],_0x1e05bc=_0x2957c7['firstChild'],_0xadc3b=_0x1e05bc&&findTagName(_0x1e05bc,_0x5edee4);if(_0xadc3b){for(let _0x5bce6f of _0x49c468)if(_0x5bce6f['tag']==_0xadc3b&&(!_0x5bce6f['attrs']||_0x5bce6f['attrs'](_0x186a4e||(_0x186a4e=getAttrs(_0x1e05bc,_0x5edee4))))){let _0x571e04=_0x2957c7['lastChild'],_0x4b7654=_0x571e04['type']['id']==CloseTag?_0x571e04['from']:_0x2957c7['to'];if(_0x4b7654>_0x1e05bc['to'])return{'parser':_0x5bce6f['parser'],'overlay':[{'from':_0x1e05bc['to'],'to':_0x4b7654}]};}}}if(_0x31080e&&_0x4979c8==Attribute){let _0x4121e4,_0xcff044=_0x2dba35['node'];if(_0x4121e4=_0xcff044['firstChild']){let _0x108c3c=_0x31080e[_0x5edee4['read'](_0x4121e4['from'],_0x4121e4['to'])];if(_0x108c3c)for(let _0x18da53 of _0x108c3c){if(_0x18da53['tagName']&&_0x18da53['tagName']!=findTagName(_0xcff044['parent'],_0x5edee4))continue;let _0x3c67b0=_0xcff044['lastChild'];if(_0x3c67b0['type']['id']==AttributeValue){let _0x124bdc=_0x3c67b0['from']+0x1,_0x39af55=_0x3c67b0['lastChild'],_0xcfef92=_0x3c67b0['to']-(_0x39af55&&_0x39af55['isError']?0x0:0x1);if(_0xcfef92>_0x124bdc)return{'parser':_0x18da53['parser'],'overlay':[{'from':_0x124bdc,'to':_0xcfef92}]};}else{if(_0x3c67b0['type']['id']==UnquotedAttributeValue)return{'parser':_0x18da53['parser'],'overlay':[{'from':_0x3c67b0['from'],'to':_0x3c67b0['to']}]};}}}}return null;});}const descendantOp=0x7a,Unit=0x1,identifier$2=0x7b,callee=0x7c,VariableName=0x2,queryIdentifier=0x7d,queryVariableName=0x3,QueryCallee=0x4,space$2=[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],colon=0x3a,parenL=0x28,underscore=0x5f,bracketL$1=0x5b,dash=0x2d,period=0x2e,hash=0x23,percent=0x25,ampersand=0x26,backslash=0x5c,newline$1=0xa,asterisk=0x2a;function isAlpha(_0x1afa61){return _0x1afa61>=0x41&&_0x1afa61<=0x5a||_0x1afa61>=0x61&&_0x1afa61<=0x7a||_0x1afa61>=0xa1;}function isDigit(_0xe0b23d){return _0xe0b23d>=0x30&&_0xe0b23d<=0x39;}function isHex(_0x5f4ec4){return isDigit(_0x5f4ec4)||_0x5f4ec4>=0x61&&_0x5f4ec4<=0x66||_0x5f4ec4>=0x41&&_0x5f4ec4<=0x46;}const identifierTokens=(_0x8f3e8a,_0x3a88f5,_0x2bea1d)=>(_0x35d646,_0x1211cc)=>{for(let _0x148320=!0x1,_0x37e9c6=0x0,_0x430fa8=0x0;;_0x430fa8++){let {next:_0x52b15d}=_0x35d646;if(isAlpha(_0x52b15d)||_0x52b15d==dash||_0x52b15d==underscore||_0x148320&&isDigit(_0x52b15d))!_0x148320&&(_0x52b15d!=dash||_0x430fa8>0x0)&&(_0x148320=!0x0),_0x37e9c6===_0x430fa8&&_0x52b15d==dash&&_0x37e9c6++,_0x35d646['advance']();else{if(_0x52b15d!=backslash||_0x35d646['peek'](0x1)==newline$1){_0x148320&&_0x35d646['acceptToken'](0x2==_0x37e9c6&&_0x1211cc['canShift'](VariableName)?_0x3a88f5:_0x52b15d==parenL?_0x2bea1d:_0x8f3e8a);break;}if(_0x35d646['advance'](),isHex(_0x35d646['next'])){do{_0x35d646['advance']();}while(isHex(_0x35d646['next']));0x20==_0x35d646['next']&&_0x35d646['advance']();}else _0x35d646['next']>-0x1&&_0x35d646['advance']();_0x148320=!0x0;}}},identifiers=new ExternalTokenizer(identifierTokens(identifier$2,VariableName,callee)),queryIdentifiers=new ExternalTokenizer(identifierTokens(queryIdentifier,queryVariableName,QueryCallee)),descendant=new ExternalTokenizer(_0x470b97=>{if(space$2['includes'](_0x470b97['peek'](-0x1))){let {next:_0x4a4156}=_0x470b97;(isAlpha(_0x4a4156)||_0x4a4156==underscore||_0x4a4156==hash||_0x4a4156==period||_0x4a4156==asterisk||_0x4a4156==bracketL$1||_0x4a4156==colon&&isAlpha(_0x470b97['peek'](0x1))||_0x4a4156==dash||_0x4a4156==ampersand)&&_0x470b97['acceptToken'](descendantOp);}}),unitToken=new ExternalTokenizer(_0x5445c5=>{if(!space$2['includes'](_0x5445c5['peek'](-0x1))){let {next:_0x5976d7}=_0x5445c5;if(_0x5976d7==percent&&(_0x5445c5['advance'](),_0x5445c5['acceptToken'](Unit)),isAlpha(_0x5976d7)){do{_0x5445c5['advance']();}while(isAlpha(_0x5445c5['next'])||isDigit(_0x5445c5['next']));_0x5445c5['acceptToken'](Unit);}}}),cssHighlighting=styleTags({'AtKeyword\x20import\x20charset\x20namespace\x20keyframes\x20media\x20supports':tags$1['definitionKeyword'],'from\x20to\x20selector':tags$1['keyword'],'NamespaceName':tags$1['namespace'],'KeyframeName':tags$1['labelName'],'KeyframeRangeName':tags$1['operatorKeyword'],'TagName':tags$1['tagName'],'ClassName':tags$1['className'],'PseudoClassName':tags$1['constant'](tags$1['className']),'IdName':tags$1['labelName'],'FeatureName\x20PropertyName':tags$1['propertyName'],'AttributeName':tags$1['attributeName'],'NumberLiteral':tags$1['number'],'KeywordQuery':tags$1['keyword'],'UnaryQueryOp':tags$1['operatorKeyword'],'CallTag\x20ValueName':tags$1['atom'],'VariableName':tags$1['variableName'],'Callee':tags$1['operatorKeyword'],'Unit':tags$1['unit'],'UniversalSelector\x20NestingSelector':tags$1['definitionOperator'],'MatchOp\x20CompareOp':tags$1['compareOperator'],'ChildOp\x20SiblingOp,\x20LogicOp':tags$1['logicOperator'],'BinOp':tags$1['arithmeticOperator'],'Important':tags$1['modifier'],'Comment':tags$1['blockComment'],'ColorLiteral':tags$1['color'],'ParenthesizedContent\x20StringLiteral':tags$1['string'],':':tags$1['punctuation'],'PseudoOp\x20#':tags$1['derefOperator'],';\x20,':tags$1['separator'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace']}),spec_callee={'__proto__':null,'lang':0x26,'nth-child':0x26,'nth-last-child':0x26,'nth-of-type':0x26,'nth-last-of-type':0x26,'dir':0x26,'host-context':0x26,'if':0x54,'url':0x7c,'url-prefix':0x7c,'domain':0x7c,'regexp':0x7c},spec_queryIdentifier={'__proto__':null,'or':0x62,'and':0x62,'not':0x6a,'only':0x6a,'layer':0xaa},spec_QueryCallee={'__proto__':null,'selector':0x70,'layer':0xa6},spec_AtKeyword={'__proto__':null,'@import':0xa2,'@media':0xae,'@charset':0xb2,'@namespace':0xb6,'@keyframes':0xbc,'@supports':0xc8,'@scope':0xcc},spec_identifier$1={'__proto__':null,'to':0xcf},parser$2=LRParser['deserialize']({'version':0xe,'states':'EbQYQdOOO#qQdOOP#xO`OOOOQP\x27#Cf\x27#CfOOQP\x27#Ce\x27#CeO#}QdO\x27#ChO$nQaO\x27#CcO$xQdO\x27#CkO%TQdO\x27#DpO%YQdO\x27#DrO%_QdO\x27#DuO%_QdO\x27#DxOOQP\x27#FV\x27#FVO&eQhO\x27#EhOOQS\x27#FU\x27#FUOOQS\x27#Ek\x27#EkQYQdOOO&lQdO\x27#EOO&PQhO\x27#EUO&lQdO\x27#EWO\x27aQdO\x27#EYO\x27lQdO\x27#E]O\x27tQhO\x27#EcO(VQdO\x27#EeO(bQaO\x27#CfO)VQ`O\x27#D{O)[Q`O\x27#F`O)gQdO\x27#F`QOQ`OOP)qO&jO\x27#CaPOOO)C@t)C@tOOQP\x27#Cj\x27#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO\x27#ErO*XQ`O,58}O*aQdO\x27#DzOOQS,58},58}OOQP\x27#Cn\x27#CnOOQO\x27#Dn\x27#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP\x27#Dq\x27#DqOOQP,5:[,5:[OOQO\x27#Ds\x27#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW\x27#DZ\x27#DZO,ZQhO\x27#DdO,xQhO\x27#FaO\x27tQhO\x27#DbO-WQ`O\x27#DhOOQW\x27#F[\x27#F[O-]Q`O,5;SO-eQ`O\x27#DeOOQS-E8i-E8iOOQ[\x27#Cs\x27#CsO-jQdO\x27#CtO.QQdO\x27#CzO.hQdO\x27#C}O/OQ!pO\x27#DPO1RQ!jO,5:jOOQO\x27#DU\x27#DUO*mQ`O\x27#DTO1cQ!nO\x27#FXO3`Q`O\x27#DVO3eQ`O\x27#DkOOQ[\x27#FX\x27#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS\x27#E[\x27#E[O3rQ`O,5:tO3wQdO,5:tOOQO\x27#E_\x27#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO\x27#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO\x27#EtO5TQ`O,5;zO5TQ`O,5;zPOOO\x27#Ej\x27#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO\x27#DoO7oQdO\x27#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO\x27#DZO8UQ!bO,59vO8^QhO,5:OOOQO\x27#F]\x27#F]O8XQ!bO,59zO\x27tQhO,59xO8fQhO\x27#EvO8sQ`O,5;{O9OQhO,59|O9uQhO\x27#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO\x27#FYOOQS\x27#FY\x27#FYOOQS\x27#Em\x27#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO\x27#EQOOQW\x27#EQ\x27#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO\x27tQhO\x27#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO\x27#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO\x27#F_O?ZQ`O,5:ZO?`Q!fO\x27#ElO@^QdO\x27#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO\x27#DZOAtQhO\x27#F^OBPQ`O\x27#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO\x27#DYOBmQ`O,59sO\x27tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO\x27#DPOOQO\x27#Eb\x27#EbOCYQ`O\x27#EaOOQO\x27#Ea\x27#EaOCeQ`O\x27#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO\x27#EsO&lQdO\x27#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO\x27#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO\x27#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO\x27#D]\x27#D]OFiQ!bO7+%QOFqQhO\x27#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO\x27#ES\x27#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO\x27#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO\x27#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O\x27#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+\x27OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a','stateData':'Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P\x27tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P\x27tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok\x27OO~Od\x27PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~','goto':'2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o\x27W%oP\x27t\x27w\x27}\x27}(^\x27}P\x27}P\x27}P\x27}\x27}P(m\x27}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x\x27QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l\x27QQ%u$sQ&d%qQ&l%zR\x27Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x\x27QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P','nodeNames':'⚠\x20Unit\x20VariableName\x20VariableName\x20QueryCallee\x20Comment\x20StyleSheet\x20RuleSet\x20UniversalSelector\x20TagSelector\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,\x20CallLiteral\x20CallTag\x20ParenthesizedContent\x20PseudoClassName\x20ArgList\x20IdSelector\x20IdName\x20AttributeSelector\x20AttributeName\x20MatchOp\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\x20AtRule\x20Styles','maxTerm':0x8f,'nodeProps':[['isolate',-0x2,0x5,0x24,''],['openedBy',0x14,'(',0x1c,'[',0x1f,'{'],['closedBy',0x15,')',0x1d,']',0x20,'}']],'propSources':[cssHighlighting],'skippedNodes':[0x0,0x5,0x6a],'repeatNodeCount':0xf,'tokenData':'JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;\x27S$q;\x27S;=`Iz<%lO$q`$tSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%VS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Q~\x27ah#s~!a`OX%QX^\x27Y^p%Qpq\x27Yqy%Qz#y%Q#y#z\x27Y#z$f%Q$f$g\x27Y$g#BY%Q#BY#BZ\x27Y#BZ$IS%Q$IS$I_\x27Y$I_$I|%Q$I|$JO\x27Y$JO$JT%Q$JT$JU\x27Y$JU$KV%Q$KV$KW\x27Y$KW&FU%Q&FU&FV\x27Y&FV;\x27S%Q;\x27S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;\x27S%Q;\x27S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;\x27S%Q;\x27S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;\x27S%Q;\x27S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;\x27S%Q;\x27S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;\x27S%Q;\x27S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;\x27S%Q;\x27S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;\x27S%Q;\x27S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;\x27S%Q;\x27S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;\x27S%Q;\x27S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c<%lO-u~.gOt~~.jRO;\x27S-u;\x27S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;\x27S-u;\x27S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;\x27S%Q;\x27S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;\x27S%Q;\x27S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;\x27S%Q;\x27S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;\x27S%Q;\x27S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;\x27S%Q;\x27S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;\x27S%Q;\x27S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qb7VSZQOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z<%lO7c~8RRO;\x27S7c;\x27S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;\x27S7c;\x27S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;\x27S%Q;\x27S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%Qj>yS!^YOy%Qz;\x27S%Q;\x27S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;\x27S%Q;\x27S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;\x27S%Q;\x27S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;\x27S%Q;\x27S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;\x27S%Q;\x27S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];\x27S%Q;\x27S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjCQSkYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;\x27S%Q;\x27S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QlDaS!TW!hSOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;\x27S%Q;\x27S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;\x27S%Q;\x27S;=`%c<%lO%QjHQSmYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QnHcSl^Oy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjHtSpYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QjIVSoYOy%Qz;\x27S%Q;\x27S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;\x27S%Q;\x27S;=`%c<%lO%Q`I}P;=`<%l$q','tokenizers':[descendant,unitToken,identifiers,queryIdentifiers,0x1,0x2,0x3,0x4,new LocalTokenGroup('m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~',0x1c,0x81)],'topRules':{'StyleSheet':[0x0,0x6],'Styles':[0x1,0x69]},'specialized':[{'term':0x7c,'get':_0x4459d8=>spec_callee[_0x4459d8]||-0x1},{'term':0x7d,'get':_0x3466b6=>spec_queryIdentifier[_0x3466b6]||-0x1},{'term':0x4,'get':_0x144f02=>spec_QueryCallee[_0x144f02]||-0x1},{'term':0x19,'get':_0x3143a7=>spec_AtKeyword[_0x3143a7]||-0x1},{'term':0x7b,'get':_0x2012d5=>spec_identifier$1[_0x2012d5]||-0x1}],'tokenPrec':0x7ab});let _properties=null;function properties(){if(!_properties&&'object'==typeof document&&document['body']){let {style:_0x46d641}=document['body'],_0xc4fb4e=[],_0x108eed=new Set();for(let _0x17c5fa in _0x46d641)'cssText'!=_0x17c5fa&&'cssFloat'!=_0x17c5fa&&'string'==typeof _0x46d641[_0x17c5fa]&&(/[A-Z]/['test'](_0x17c5fa)&&(_0x17c5fa=_0x17c5fa['replace'](/[A-Z]/g,_0x18214e=>'-'+_0x18214e['toLowerCase']())),_0x108eed['has'](_0x17c5fa)||(_0xc4fb4e['push'](_0x17c5fa),_0x108eed['add'](_0x17c5fa)));_properties=_0xc4fb4e['sort']()['map'](_0x11b52d=>({'type':'property','label':_0x11b52d,'apply':_0x11b52d+':\x20'}));}return _properties||[];}const pseudoClasses=['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'](_0x4473f3=>({'type':'class','label':_0x4473f3})),values=['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'](_0x2a7f8f=>({'type':'keyword','label':_0x2a7f8f}))['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'](_0xc528c5=>({'type':'constant','label':_0xc528c5}))),tags=['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'](_0x7a4bb3=>({'type':'type','label':_0x7a4bb3})),atRules=['@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'](_0x16147e=>({'type':'keyword','label':_0x16147e})),identifier$1=/^(\w[\w-]*|-\w[\w-]*|)$/,variable=/^-(-[\w-]*)?$/;function isVarArg(_0x403ca1,_0x542483){var _0x1b97d7;if(('('==_0x403ca1['name']||_0x403ca1['type']['isError'])&&(_0x403ca1=_0x403ca1['parent']||_0x403ca1),'ArgList'!=_0x403ca1['name'])return!0x1;let _0x181e73=null===(_0x1b97d7=_0x403ca1['parent'])||void 0x0===_0x1b97d7?void 0x0:_0x1b97d7['firstChild'];return'Callee'==(null==_0x181e73?void 0x0:_0x181e73['name'])&&'var'==_0x542483['sliceString'](_0x181e73['from'],_0x181e73['to']);}const VariablesByNode=new NodeWeakMap(),declSelector=['Declaration'];function astTop(_0x1b467a){for(let _0x1e585d=_0x1b467a;;){if(_0x1e585d['type']['isTop'])return _0x1e585d;if(!(_0x1e585d=_0x1e585d['parent']))return _0x1b467a;}}function variableNames(_0x3e7bd5,_0x4c18f9,_0x256cc3){if(_0x4c18f9['to']-_0x4c18f9['from']>0x1000){let _0x5cca8e=VariablesByNode['get'](_0x4c18f9);if(_0x5cca8e)return _0x5cca8e;let _0x13be03=[],_0x1a7ad3=new Set(),_0x25222f=_0x4c18f9['cursor'](IterMode['IncludeAnonymous']);if(_0x25222f['firstChild']())do{for(let _0x16f867 of variableNames(_0x3e7bd5,_0x25222f['node'],_0x256cc3))_0x1a7ad3['has'](_0x16f867['label'])||(_0x1a7ad3['add'](_0x16f867['label']),_0x13be03['push'](_0x16f867));}while(_0x25222f['nextSibling']());return VariablesByNode['set'](_0x4c18f9,_0x13be03),_0x13be03;}{let _0x3c40f7=[],_0x275e11=new Set();return _0x4c18f9['cursor']()['iterate'](_0x255042=>{var _0x372e19;if(_0x256cc3(_0x255042)&&_0x255042['matchContext'](declSelector)&&':'==(null===(_0x372e19=_0x255042['node']['nextSibling'])||void 0x0===_0x372e19?void 0x0:_0x372e19['name'])){let _0x2d222a=_0x3e7bd5['sliceString'](_0x255042['from'],_0x255042['to']);_0x275e11['has'](_0x2d222a)||(_0x275e11['add'](_0x2d222a),_0x3c40f7['push']({'label':_0x2d222a,'type':'variable'}));}}),_0x3c40f7;}}const defineCSSCompletionSource=_0x4730c8=>_0x1af068=>{let {state:_0x33be91,pos:_0x1f87ad}=_0x1af068,_0x333766=syntaxTree(_0x33be91)['resolveInner'](_0x1f87ad,-0x1),_0x6bc123=_0x333766['type']['isError']&&_0x333766['from']==_0x333766['to']-0x1&&'-'==_0x33be91['doc']['sliceString'](_0x333766['from'],_0x333766['to']);if('PropertyName'==_0x333766['name']||(_0x6bc123||'TagName'==_0x333766['name'])&&/^(Block|Styles)$/['test'](_0x333766['resolve'](_0x333766['to'])['name']))return{'from':_0x333766['from'],'options':properties(),'validFor':identifier$1};if('ValueName'==_0x333766['name'])return{'from':_0x333766['from'],'options':values,'validFor':identifier$1};if('PseudoClassName'==_0x333766['name'])return{'from':_0x333766['from'],'options':pseudoClasses,'validFor':identifier$1};if(_0x4730c8(_0x333766)||(_0x1af068['explicit']||_0x6bc123)&&isVarArg(_0x333766,_0x33be91['doc']))return{'from':_0x4730c8(_0x333766)||_0x6bc123?_0x333766['from']:_0x1f87ad,'options':variableNames(_0x33be91['doc'],astTop(_0x333766),_0x4730c8),'validFor':variable};if('TagName'==_0x333766['name']){for(let {parent:_0x121318}=_0x333766;_0x121318;_0x121318=_0x121318['parent'])if('Block'==_0x121318['name'])return{'from':_0x333766['from'],'options':properties(),'validFor':identifier$1};return{'from':_0x333766['from'],'options':tags,'validFor':identifier$1};}if('AtKeyword'==_0x333766['name'])return{'from':_0x333766['from'],'options':atRules,'validFor':identifier$1};if(!_0x1af068['explicit'])return null;let _0x27eb21=_0x333766['resolve'](_0x1f87ad),_0x8127c2=_0x27eb21['childBefore'](_0x1f87ad);return _0x8127c2&&':'==_0x8127c2['name']&&'PseudoClassSelector'==_0x27eb21['name']?{'from':_0x1f87ad,'options':pseudoClasses,'validFor':identifier$1}:_0x8127c2&&':'==_0x8127c2['name']&&'Declaration'==_0x27eb21['name']||'ArgList'==_0x27eb21['name']?{'from':_0x1f87ad,'options':values,'validFor':identifier$1}:'Block'==_0x27eb21['name']||'Styles'==_0x27eb21['name']?{'from':_0x1f87ad,'options':properties(),'validFor':identifier$1}:null;},cssCompletionSource=defineCSSCompletionSource(_0x1d081f=>'VariableName'==_0x1d081f['name']),cssLanguage=LRLanguage['define']({'name':'css','parser':parser$2['configure']({'props':[indentNodeProp['add']({'Declaration':continuedIndent()}),foldNodeProp['add']({'Block\x20KeyframeList':foldInside})]}),'languageData':{'commentTokens':{'block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*\}$/,'wordChars':'-'}});function css(){return new LanguageSupport(cssLanguage,cssLanguage['data']['of']({'autocomplete':cssCompletionSource}));}const noSemi=0x13c,noSemiType=0x13d,incdec=0x1,incdecPrefix=0x2,questionDot=0x3,JSXStartTag=0x4,insertSemi=0x13e,spaces=0x140,newline=0x141,LineComment=0x5,BlockComment=0x6,Dialect_jsx=0x0,space$1=[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],braceR=0x7d,semicolon=0x3b,slash=0x2f,star=0x2a,plus=0x2b,minus=0x2d,lt=0x3c,comma=0x2c,question=0x3f,dot=0x2e,bracketL=0x5b,trackNewline=new ContextTracker({'start':!0x1,'shift':(_0x3bc7ab,_0x4cbd8c)=>_0x4cbd8c==LineComment||_0x4cbd8c==BlockComment||_0x4cbd8c==spaces?_0x3bc7ab:_0x4cbd8c==newline,'strict':!0x1}),insertSemicolon=new ExternalTokenizer((_0x3f6e97,_0x261661)=>{let {next:_0x14aa34}=_0x3f6e97;(_0x14aa34==braceR||-0x1==_0x14aa34||_0x261661['context'])&&_0x3f6e97['acceptToken'](insertSemi);},{'contextual':!0x0,'fallback':!0x0}),noSemicolon=new ExternalTokenizer((_0x14b6c3,_0x2e1fec)=>{let _0x1d5982,{next:_0x5038e0}=_0x14b6c3;space$1['indexOf'](_0x5038e0)>-0x1||(_0x5038e0!=slash||(_0x1d5982=_0x14b6c3['peek'](0x1))!=slash&&_0x1d5982!=star)&&(_0x5038e0==braceR||_0x5038e0==semicolon||-0x1==_0x5038e0||_0x2e1fec['context']||_0x14b6c3['acceptToken'](noSemi));},{'contextual':!0x0}),noSemicolonType=new ExternalTokenizer((_0xe0349a,_0x2841fe)=>{_0xe0349a['next']!=bracketL||_0x2841fe['context']||_0xe0349a['acceptToken'](noSemiType);},{'contextual':!0x0}),operatorToken=new ExternalTokenizer((_0x4ffac1,_0x32e34d)=>{let {next:_0x30905a}=_0x4ffac1;if(_0x30905a==plus||_0x30905a==minus){if(_0x4ffac1['advance'](),_0x30905a==_0x4ffac1['next']){_0x4ffac1['advance']();let _0x433a00=!_0x32e34d['context']&&_0x32e34d['canShift'](incdec);_0x4ffac1['acceptToken'](_0x433a00?incdec:incdecPrefix);}}else _0x30905a==question&&_0x4ffac1['peek'](0x1)==dot&&(_0x4ffac1['advance'](),_0x4ffac1['advance'](),(_0x4ffac1['next']<0x30||_0x4ffac1['next']>0x39)&&_0x4ffac1['acceptToken'](questionDot));},{'contextual':!0x0});function identifierChar(_0x4e306d,_0xfeb5a9){return _0x4e306d>=0x41&&_0x4e306d<=0x5a||_0x4e306d>=0x61&&_0x4e306d<=0x7a||0x5f==_0x4e306d||_0x4e306d>=0xc0||!_0xfeb5a9&&_0x4e306d>=0x30&&_0x4e306d<=0x39;}const jsx=new ExternalTokenizer((_0x290c91,_0x39a5d3)=>{if(_0x290c91['next']!=lt||!_0x39a5d3['dialectEnabled'](Dialect_jsx))return;if(_0x290c91['advance'](),_0x290c91['next']==slash)return;let _0x41808a=0x0;for(;space$1['indexOf'](_0x290c91['next'])>-0x1;)_0x290c91['advance'](),_0x41808a++;if(identifierChar(_0x290c91['next'],!0x0)){for(_0x290c91['advance'](),_0x41808a++;identifierChar(_0x290c91['next'],!0x1);)_0x290c91['advance'](),_0x41808a++;for(;space$1['indexOf'](_0x290c91['next'])>-0x1;)_0x290c91['advance'](),_0x41808a++;if(_0x290c91['next']==comma)return;for(let _0x54223d=0x0;;_0x54223d++){if(0x7==_0x54223d){if(!identifierChar(_0x290c91['next'],!0x0))return;break;}if(_0x290c91['next']!='extends'['charCodeAt'](_0x54223d))break;_0x290c91['advance'](),_0x41808a++;}}_0x290c91['acceptToken'](JSXStartTag,-_0x41808a);}),jsHighlight=styleTags({'get\x20set\x20async\x20static':tags$1['modifier'],'for\x20while\x20do\x20if\x20else\x20switch\x20try\x20catch\x20finally\x20return\x20throw\x20break\x20continue\x20default\x20case\x20defer':tags$1['controlKeyword'],'in\x20of\x20await\x20yield\x20void\x20typeof\x20delete\x20instanceof\x20as\x20satisfies':tags$1['operatorKeyword'],'let\x20var\x20const\x20using\x20function\x20class\x20extends':tags$1['definitionKeyword'],'import\x20export\x20from':tags$1['moduleKeyword'],'with\x20debugger\x20new':tags$1['keyword'],'TemplateString':tags$1['special'](tags$1['string']),'super':tags$1['atom'],'BooleanLiteral':tags$1['bool'],'this':tags$1['self'],'null':tags$1['null'],'Star':tags$1['modifier'],'VariableName':tags$1['variableName'],'CallExpression/VariableName\x20TaggedTemplateExpression/VariableName':tags$1['function'](tags$1['variableName']),'VariableDefinition':tags$1['definition'](tags$1['variableName']),'Label':tags$1['labelName'],'PropertyName':tags$1['propertyName'],'PrivatePropertyName':tags$1['special'](tags$1['propertyName']),'CallExpression/MemberExpression/PropertyName':tags$1['function'](tags$1['propertyName']),'FunctionDeclaration/VariableDefinition':tags$1['function'](tags$1['definition'](tags$1['variableName'])),'ClassDeclaration/VariableDefinition':tags$1['definition'](tags$1['className']),'NewExpression/VariableName':tags$1['className'],'PropertyDefinition':tags$1['definition'](tags$1['propertyName']),'PrivatePropertyDefinition':tags$1['definition'](tags$1['special'](tags$1['propertyName'])),'UpdateOp':tags$1['updateOperator'],'LineComment\x20Hashbang':tags$1['lineComment'],'BlockComment':tags$1['blockComment'],'Number':tags$1['number'],'String':tags$1['string'],'Escape':tags$1['escape'],'ArithOp':tags$1['arithmeticOperator'],'LogicOp':tags$1['logicOperator'],'BitOp':tags$1['bitwiseOperator'],'CompareOp':tags$1['compareOperator'],'RegExp':tags$1['regexp'],'Equals':tags$1['definitionOperator'],'Arrow':tags$1['function'](tags$1['punctuation']),':\x20Spread':tags$1['punctuation'],'(\x20)':tags$1['paren'],'[\x20]':tags$1['squareBracket'],'{\x20}':tags$1['brace'],'InterpolationStart\x20InterpolationEnd':tags$1['special'](tags$1['brace']),'.':tags$1['derefOperator'],',\x20;':tags$1['separator'],'@':tags$1['meta'],'TypeName':tags$1['typeName'],'TypeDefinition':tags$1['definition'](tags$1['typeName']),'type\x20enum\x20interface\x20implements\x20namespace\x20module\x20declare':tags$1['definitionKeyword'],'abstract\x20global\x20Privacy\x20readonly\x20override':tags$1['modifier'],'is\x20keyof\x20unique\x20infer\x20asserts':tags$1['operatorKeyword'],'JSXAttributeValue':tags$1['attributeValue'],'JSXText':tags$1['content'],'JSXStartTag\x20JSXStartCloseTag\x20JSXSelfCloseEndTag\x20JSXEndTag':tags$1['angleBracket'],'JSXIdentifier\x20JSXNameSpacedName':tags$1['tagName'],'JSXAttribute/JSXIdentifier\x20JSXAttribute/JSXNameSpacedName':tags$1['attributeName'],'JSXBuiltin/JSXIdentifier':tags$1['standard'](tags$1['tagName'])}),spec_identifier={'__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},spec_word={'__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},spec_LessThan={'__proto__':null,'<':0xc1},parser$1=LRParser['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':trackNewline,'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':[jsHighlight],'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':[noSemicolon,noSemicolonType,operatorToken,jsx,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,insertSemicolon,new LocalTokenGroup('$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 LocalTokenGroup('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':_0x23c64c=>spec_identifier[_0x23c64c]||-0x1},{'term':0x157,'get':_0x26e4d3=>spec_word[_0x26e4d3]||-0x1},{'term':0x5f,'get':_0x1983ec=>spec_LessThan[_0x1983ec]||-0x1}],'tokenPrec':0x3b61}),snippets=[snippetCompletion('function\x20${name}(${params})\x20{\x0a\x09${}\x0a}',{'label':'function','detail':'definition','type':'keyword'}),snippetCompletion('for\x20(let\x20${index}\x20=\x200;\x20${index}\x20<\x20${bound};\x20${index}++)\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'loop','type':'keyword'}),snippetCompletion('for\x20(let\x20${name}\x20of\x20${collection})\x20{\x0a\x09${}\x0a}',{'label':'for','detail':'of\x20loop','type':'keyword'}),snippetCompletion('do\x20{\x0a\x09${}\x0a}\x20while\x20(${})',{'label':'do','detail':'loop','type':'keyword'}),snippetCompletion('while\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'while','detail':'loop','type':'keyword'}),snippetCompletion('try\x20{\x0a\x09${}\x0a}\x20catch\x20(${error})\x20{\x0a\x09${}\x0a}',{'label':'try','detail':'/\x20catch\x20block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'block','type':'keyword'}),snippetCompletion('if\x20(${})\x20{\x0a\x09${}\x0a}\x20else\x20{\x0a\x09${}\x0a}',{'label':'if','detail':'/\x20else\x20block','type':'keyword'}),snippetCompletion('class\x20${name}\x20{\x0a\x09constructor(${params})\x20{\x0a\x09\x09${}\x0a\x09}\x0a}',{'label':'class','detail':'definition','type':'keyword'}),snippetCompletion('import\x20{${names}}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'named','type':'keyword'}),snippetCompletion('import\x20${name}\x20from\x20\x22${module}\x22\x0a${}',{'label':'import','detail':'default','type':'keyword'})],typescriptSnippets=snippets['concat']([snippetCompletion('interface\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'interface','detail':'definition','type':'keyword'}),snippetCompletion('type\x20${name}\x20=\x20${type}',{'label':'type','detail':'definition','type':'keyword'}),snippetCompletion('enum\x20${name}\x20{\x0a\x09${}\x0a}',{'label':'enum','detail':'definition','type':'keyword'})]),cache=new NodeWeakMap(),ScopeNodes=new Set(['Script','Block','FunctionExpression','FunctionDeclaration','ArrowFunction','MethodDeclaration','ForStatement']);function defID(_0x5da8b5){return(_0x59393f,_0x5b1493)=>{let _0x5ddc17=_0x59393f['node']['getChild']('VariableDefinition');return _0x5ddc17&&_0x5b1493(_0x5ddc17,_0x5da8b5),!0x0;};}const functionContext=['FunctionDeclaration'],gatherCompletions={'FunctionDeclaration':defID('function'),'ClassDeclaration':defID('class'),'ClassExpression':()=>!0x0,'EnumDeclaration':defID('constant'),'TypeAliasDeclaration':defID('type'),'NamespaceDeclaration':defID('namespace'),'VariableDefinition'(_0x10b67a,_0x50a14c){_0x10b67a['matchContext'](functionContext)||_0x50a14c(_0x10b67a,'variable');},'TypeDefinition'(_0x4b38e1,_0x52658a){_0x52658a(_0x4b38e1,'type');},'__proto__':null};function getScope(_0x5ad35d,_0x576a38){let _0x19a510=cache['get'](_0x576a38);if(_0x19a510)return _0x19a510;let _0x4c87eb=[],_0x42422f=!0x0;function _0x4ef1fa(_0x324da9,_0x378eaa){let _0x4234c7=_0x5ad35d['sliceString'](_0x324da9['from'],_0x324da9['to']);_0x4c87eb['push']({'label':_0x4234c7,'type':_0x378eaa});}return _0x576a38['cursor'](IterMode['IncludeAnonymous'])['iterate'](_0x273c1d=>{if(_0x42422f)_0x42422f=!0x1;else{if(_0x273c1d['name']){let _0x2ee078=gatherCompletions[_0x273c1d['name']];if(_0x2ee078&&_0x2ee078(_0x273c1d,_0x4ef1fa)||ScopeNodes['has'](_0x273c1d['name']))return!0x1;}else{if(_0x273c1d['to']-_0x273c1d['from']>0x2000){for(let _0xd48cac of getScope(_0x5ad35d,_0x273c1d['node']))_0x4c87eb['push'](_0xd48cac);return!0x1;}}}}),cache['set'](_0x576a38,_0x4c87eb),_0x4c87eb;}const Identifier=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dontComplete=['TemplateString','String','RegExp','LineComment','BlockComment','VariableDefinition','TypeDefinition','Label','PropertyDefinition','PropertyName','PrivatePropertyDefinition','PrivatePropertyName','JSXText','JSXAttributeValue','JSXOpenTag','JSXCloseTag','JSXSelfClosingTag','.','?.'];function localCompletionSource(_0x201fdf){let _0x91a02e=syntaxTree(_0x201fdf['state'])['resolveInner'](_0x201fdf['pos'],-0x1);if(dontComplete['indexOf'](_0x91a02e['name'])>-0x1)return null;let _0x268211='VariableName'==_0x91a02e['name']||_0x91a02e['to']-_0x91a02e['from']<0x14&&Identifier['test'](_0x201fdf['state']['sliceDoc'](_0x91a02e['from'],_0x91a02e['to']));if(!_0x268211&&!_0x201fdf['explicit'])return null;let _0x3034a2=[];for(let _0x133a7c=_0x91a02e;_0x133a7c;_0x133a7c=_0x133a7c['parent'])ScopeNodes['has'](_0x133a7c['name'])&&(_0x3034a2=_0x3034a2['concat'](getScope(_0x201fdf['state']['doc'],_0x133a7c)));return{'options':_0x3034a2,'from':_0x268211?_0x91a02e['from']:_0x201fdf['pos'],'validFor':Identifier};}const javascriptLanguage=LRLanguage['define']({'name':'javascript','parser':parser$1['configure']({'props':[indentNodeProp['add']({'IfStatement':continuedIndent({'except':/^\s*({|else\b)/}),'TryStatement':continuedIndent({'except':/^\s*({|catch\b|finally\b)/}),'LabeledStatement':flatIndent,'SwitchBody':_0x247136=>{let _0x514063=_0x247136['textAfter'],_0x5994ee=/^\s*\}/['test'](_0x514063),_0x1519b8=/^\s*(case|default)\b/['test'](_0x514063);return _0x247136['baseIndent']+(_0x5994ee?0x0:_0x1519b8?0x1:0x2)*_0x247136['unit'];},'Block':delimitedIndent({'closing':'}'}),'ArrowFunction':_0x46da54=>_0x46da54['baseIndent']+_0x46da54['unit'],'TemplateString\x20BlockComment':()=>null,'Statement\x20Property':continuedIndent({'except':/^\s*{/}),'JSXElement'(_0x5c4235){let _0x3b3690=/^\s*<\//['test'](_0x5c4235['textAfter']);return _0x5c4235['lineIndent'](_0x5c4235['node']['from'])+(_0x3b3690?0x0:_0x5c4235['unit']);},'JSXEscape'(_0x55cd6a){let _0x347cf9=/\s*\}/['test'](_0x55cd6a['textAfter']);return _0x55cd6a['lineIndent'](_0x55cd6a['node']['from'])+(_0x347cf9?0x0:_0x55cd6a['unit']);},'JSXOpenTag\x20JSXSelfClosingTag':_0x372383=>_0x372383['column'](_0x372383['node']['from'])+_0x372383['unit']}),foldNodeProp['add']({'Block\x20ClassBody\x20SwitchBody\x20EnumBody\x20ObjectExpression\x20ArrayExpression\x20ObjectType':foldInside,'BlockComment':_0x21f514=>({'from':_0x21f514['from']+0x2,'to':_0x21f514['to']-0x2})})]}),'languageData':{'closeBrackets':{'brackets':['(','[','{','\x27','\x22','`']},'commentTokens':{'line':'//','block':{'open':'/*','close':'*/'}},'indentOnInput':/^\s*(?:case |default:|\{|\}|<\/)$/,'wordChars':'$'}}),jsxSublanguage={'test':_0x3e80cc=>/^JSX/['test'](_0x3e80cc['name']),'facet':defineLanguageFacet({'commentTokens':{'block':{'open':'{/*','close':'*/}'}}})},typescriptLanguage=javascriptLanguage['configure']({'dialect':'ts'},'typescript'),jsxLanguage=javascriptLanguage['configure']({'dialect':'jsx','props':[sublanguageProp['add'](_0x399413=>_0x399413['isTop']?[jsxSublanguage]:void 0x0)]}),tsxLanguage=javascriptLanguage['configure']({'dialect':'jsx\x20ts','props':[sublanguageProp['add'](_0x566905=>_0x566905['isTop']?[jsxSublanguage]:void 0x0)]},'typescript');let kwCompletion=_0x56f901=>({'label':_0x56f901,'type':'keyword'});const keywords='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'](kwCompletion),typescriptKeywords=keywords['concat'](['declare','implements','private','protected','public']['map'](kwCompletion));function javascript(_0x141ead={}){let _0x375aec=_0x141ead['jsx']?_0x141ead['typescript']?tsxLanguage:jsxLanguage:_0x141ead['typescript']?typescriptLanguage:javascriptLanguage,_0x2b85d4=_0x141ead['typescript']?typescriptSnippets['concat'](typescriptKeywords):snippets['concat'](keywords);return new LanguageSupport(_0x375aec,[javascriptLanguage['data']['of']({'autocomplete':ifNotIn(dontComplete,completeFromList(_0x2b85d4))}),javascriptLanguage['data']['of']({'autocomplete':localCompletionSource}),_0x141ead['jsx']?autoCloseTags$1:[]]);}function findOpenTag(_0x5f260d){for(;;){if('JSXOpenTag'==_0x5f260d['name']||'JSXSelfClosingTag'==_0x5f260d['name']||'JSXFragmentTag'==_0x5f260d['name'])return _0x5f260d;if('JSXEscape'==_0x5f260d['name']||!_0x5f260d['parent'])return null;_0x5f260d=_0x5f260d['parent'];}}function elementName$1(_0x30e742,_0x5d1ab5,_0x41484a=_0x30e742['length']){for(let _0x159615=null==_0x5d1ab5?void 0x0:_0x5d1ab5['firstChild'];_0x159615;_0x159615=_0x159615['nextSibling'])if('JSXIdentifier'==_0x159615['name']||'JSXBuiltin'==_0x159615['name']||'JSXNamespacedName'==_0x159615['name']||'JSXMemberExpression'==_0x159615['name'])return _0x30e742['sliceString'](_0x159615['from'],Math['min'](_0x159615['to'],_0x41484a));return'';}const android='object'==typeof navigator&&/Android\b/['test'](navigator['userAgent']),autoCloseTags$1=EditorView['inputHandler']['of']((_0x280ca2,_0x3054d3,_0x36bbe4,_0x12fc69,_0x4e0047)=>{if((android?_0x280ca2['composing']:_0x280ca2['compositionStarted'])||_0x280ca2['state']['readOnly']||_0x3054d3!=_0x36bbe4||'>'!=_0x12fc69&&'/'!=_0x12fc69||!javascriptLanguage['isActiveAt'](_0x280ca2['state'],_0x3054d3,-0x1))return!0x1;let _0x1f784b=_0x4e0047(),{state:_0xdcab2}=_0x1f784b,_0xea51a5=_0xdcab2['changeByRange'](_0x306083=>{var _0x39cdd2;let _0x12e312,{head:_0x33864b}=_0x306083,_0x4a40a9=syntaxTree(_0xdcab2)['resolveInner'](_0x33864b-0x1,-0x1);if('JSXStartTag'==_0x4a40a9['name']&&(_0x4a40a9=_0x4a40a9['parent']),_0xdcab2['doc']['sliceString'](_0x33864b-0x1,_0x33864b)!=_0x12fc69||'JSXAttributeValue'==_0x4a40a9['name']&&_0x4a40a9['to']>_0x33864b);else{if('>'==_0x12fc69&&'JSXFragmentTag'==_0x4a40a9['name'])return{'range':_0x306083,'changes':{'from':_0x33864b,'insert':'</>'}};if('/'==_0x12fc69&&'JSXStartCloseTag'==_0x4a40a9['name']){let _0x141a57=_0x4a40a9['parent'],_0x2c249f=_0x141a57['parent'];if(_0x2c249f&&_0x141a57['from']==_0x33864b-0x2&&((_0x12e312=elementName$1(_0xdcab2['doc'],_0x2c249f['firstChild'],_0x33864b))||'JSXFragmentTag'==(null===(_0x39cdd2=_0x2c249f['firstChild'])||void 0x0===_0x39cdd2?void 0x0:_0x39cdd2['name']))){let _0x36ec90=_0x12e312+'>';return{'range':EditorSelection['cursor'](_0x33864b+_0x36ec90['length'],-0x1),'changes':{'from':_0x33864b,'insert':_0x36ec90}};}}else{if('>'==_0x12fc69){let _0x1316e2=findOpenTag(_0x4a40a9);if(_0x1316e2&&'JSXOpenTag'==_0x1316e2['name']&&!/^\/?>|^<\//['test'](_0xdcab2['doc']['sliceString'](_0x33864b,_0x33864b+0x2))&&(_0x12e312=elementName$1(_0xdcab2['doc'],_0x1316e2,_0x33864b)))return{'range':_0x306083,'changes':{'from':_0x33864b,'insert':'</'+_0x12e312+'>'}};}}}return{'range':_0x306083};});return!_0xea51a5['changes']['empty']&&(_0x280ca2['dispatch']([_0x1f784b,_0xdcab2['update'](_0xea51a5,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);}),Targets=['_blank','_self','_top','_parent'],Charsets=['ascii','utf-8','utf-16','latin1','latin1'],Methods=['get','post','put','delete'],Encs=['application/x-www-form-urlencoded','multipart/form-data','text/plain'],Bool=['true','false'],S={},Tags={'a':{'attrs':{'href':null,'ping':null,'type':null,'media':null,'target':Targets,'hreflang':null}},'abbr':S,'address':S,'area':{'attrs':{'alt':null,'coords':null,'href':null,'target':null,'ping':null,'media':null,'hreflang':null,'type':null,'shape':['default','rect','circle','poly']}},'article':S,'aside':S,'audio':{'attrs':{'src':null,'mediagroup':null,'crossorigin':['anonymous','use-credentials'],'preload':['none','metadata','auto'],'autoplay':['autoplay'],'loop':['loop'],'controls':['controls']}},'b':S,'base':{'attrs':{'href':null,'target':Targets}},'bdi':S,'bdo':S,'blockquote':{'attrs':{'cite':null}},'body':S,'br':S,'button':{'attrs':{'form':null,'formaction':null,'name':null,'value':null,'autofocus':['autofocus'],'disabled':['autofocus'],'formenctype':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'type':['submit','reset','button']}},'canvas':{'attrs':{'width':null,'height':null}},'caption':S,'center':S,'cite':S,'code':S,'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':S,'del':{'attrs':{'cite':null,'datetime':null}},'details':{'attrs':{'open':['open']}},'dfn':S,'div':S,'dl':S,'dt':S,'em':S,'embed':{'attrs':{'src':null,'type':null,'width':null,'height':null}},'eventsource':{'attrs':{'src':null}},'fieldset':{'attrs':{'disabled':['disabled'],'form':null,'name':null}},'figcaption':S,'figure':S,'footer':S,'form':{'attrs':{'action':null,'name':null,'accept-charset':Charsets,'autocomplete':['on','off'],'enctype':Encs,'method':Methods,'novalidate':['novalidate'],'target':Targets}},'h1':S,'h2':S,'h3':S,'h4':S,'h5':S,'h6':S,'head':{'children':['title','base','link','style','meta','script','noscript','command']},'header':S,'hgroup':S,'hr':S,'html':{'attrs':{'manifest':null}},'i':S,'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':Encs,'formmethod':Methods,'formnovalidate':['novalidate'],'formtarget':Targets,'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':S,'keygen':{'attrs':{'challenge':null,'form':null,'name':null,'autofocus':['autofocus'],'disabled':['disabled'],'keytype':['RSA']}},'label':{'attrs':{'for':null,'form':null}},'legend':S,'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':S,'menu':{'attrs':{'label':null,'type':['list','context','toolbar']}},'meta':{'attrs':{'content':null,'charset':Charsets,'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':S,'noscript':S,'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':S,'param':{'attrs':{'name':null,'value':null}},'pre':S,'progress':{'attrs':{'value':null,'max':null}},'q':{'attrs':{'cite':null}},'rp':S,'rt':S,'ruby':S,'samp':S,'script':{'attrs':{'type':['text/javascript'],'src':null,'async':['async'],'defer':['defer'],'charset':Charsets}},'section':S,'select':{'attrs':{'form':null,'name':null,'size':null,'autofocus':['autofocus'],'disabled':['disabled'],'multiple':['multiple']}},'slot':{'attrs':{'name':null}},'small':S,'source':{'attrs':{'src':null,'type':null,'media':null}},'span':S,'strong':S,'style':{'attrs':{'type':['text/css'],'media':null,'scoped':null}},'sub':S,'summary':S,'sup':S,'table':S,'tbody':S,'td':{'attrs':{'colspan':null,'rowspan':null,'headers':null}},'template':S,'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':S,'th':{'attrs':{'colspan':null,'rowspan':null,'headers':null,'scope':['row','col','rowgroup','colgroup']}},'thead':S,'time':{'attrs':{'datetime':null}},'title':S,'tr':S,'track':{'attrs':{'src':null,'label':null,'default':null,'kind':['subtitles','captions','descriptions','chapters','metadata'],'srclang':null}},'ul':{'children':['li','script','template','ul','ol']},'var':S,'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':S},GlobalAttrs={'accesskey':null,'class':null,'contenteditable':Bool,'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':Bool,'autocorrect':Bool,'autocapitalize':Bool,'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':Bool,'aria-autocomplete':['inline','list','both','none'],'aria-busy':Bool,'aria-checked':['true','false','mixed','undefined'],'aria-controls':null,'aria-describedby':null,'aria-disabled':Bool,'aria-dropeffect':null,'aria-expanded':['true','false','undefined'],'aria-flowto':null,'aria-grabbed':['true','false','undefined'],'aria-haspopup':Bool,'aria-hidden':Bool,'aria-invalid':['true','false','grammar','spelling'],'aria-label':null,'aria-labelledby':null,'aria-level':null,'aria-live':['off','polite','assertive'],'aria-multiline':Bool,'aria-multiselectable':Bool,'aria-owns':null,'aria-posinset':null,'aria-pressed':['true','false','mixed','undefined'],'aria-readonly':Bool,'aria-relevant':null,'aria-required':Bool,'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},eventAttributes='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'](_0x52c497=>'on'+_0x52c497);for(let e of eventAttributes)GlobalAttrs[e]=null;class Schema{constructor(_0x134155,_0x35c073){this['tags']={...Tags,..._0x134155},this['globalAttrs']={...GlobalAttrs,..._0x35c073},this['allTags']=Object['keys'](this['tags']),this['globalAttrNames']=Object['keys'](this['globalAttrs']);}}function elementName(_0x424ce7,_0x3ab986,_0x5c89b8=_0x424ce7['length']){if(!_0x3ab986)return'';let _0x313411=_0x3ab986['firstChild'],_0x1b37ad=_0x313411&&_0x313411['getChild']('TagName');return _0x1b37ad?_0x424ce7['sliceString'](_0x1b37ad['from'],Math['min'](_0x1b37ad['to'],_0x5c89b8)):'';}function findParentElement(_0x428ff,_0x42b11a=!0x1){for(;_0x428ff;_0x428ff=_0x428ff['parent'])if('Element'==_0x428ff['name']){if(!_0x42b11a)return _0x428ff;_0x42b11a=!0x1;}return null;}function allowedChildren(_0x76ad35,_0x1feb58,_0x2ab1cf){let _0x57526b=_0x2ab1cf['tags'][elementName(_0x76ad35,findParentElement(_0x1feb58))];return(null==_0x57526b?void 0x0:_0x57526b['children'])||_0x2ab1cf['allTags'];}function openTags(_0x15f47e,_0x574217){let _0x4948dc=[];for(let _0x5c6a5c=findParentElement(_0x574217);_0x5c6a5c&&!_0x5c6a5c['type']['isTop'];_0x5c6a5c=findParentElement(_0x5c6a5c['parent'])){let _0x461e4e=elementName(_0x15f47e,_0x5c6a5c);if(_0x461e4e&&'CloseTag'==_0x5c6a5c['lastChild']['name'])break;_0x461e4e&&_0x4948dc['indexOf'](_0x461e4e)<0x0&&('EndTag'==_0x574217['name']||_0x574217['from']>=_0x5c6a5c['firstChild']['to'])&&_0x4948dc['push'](_0x461e4e);}return _0x4948dc;}Schema['default']=new Schema();const identifier=/^[:\-\.\w\u00b7-\uffff]*$/;function completeTag(_0x51ad26,_0x47312a,_0x3043b1,_0x139f06,_0x31fe68){let _0x51a611=/\s*>/['test'](_0x51ad26['sliceDoc'](_0x31fe68,_0x31fe68+0x5))?'':'>',_0x5ee759=findParentElement(_0x3043b1,'StartTag'==_0x3043b1['name']||'TagName'==_0x3043b1['name']);return{'from':_0x139f06,'to':_0x31fe68,'options':allowedChildren(_0x51ad26['doc'],_0x5ee759,_0x47312a)['map'](_0x28d6ff=>({'label':_0x28d6ff,'type':'type'}))['concat'](openTags(_0x51ad26['doc'],_0x3043b1)['map']((_0x12d554,_0x489bd9)=>({'label':'/'+_0x12d554,'apply':'/'+_0x12d554+_0x51a611,'type':'type','boost':0x63-_0x489bd9}))),'validFor':/^\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeCloseTag(_0x4d56f2,_0x269bc7,_0x2b22e2,_0x455f34){let _0x21e64f=/\s*>/['test'](_0x4d56f2['sliceDoc'](_0x455f34,_0x455f34+0x5))?'':'>';return{'from':_0x2b22e2,'to':_0x455f34,'options':openTags(_0x4d56f2['doc'],_0x269bc7)['map']((_0x1bcbaf,_0x32fd3c)=>({'label':_0x1bcbaf,'apply':_0x1bcbaf+_0x21e64f,'type':'type','boost':0x63-_0x32fd3c})),'validFor':identifier};}function completeStartTag(_0xc65ae,_0x37a2bd,_0x474e2d,_0x450bc1){let _0x113ac7=[],_0x10faa1=0x0;for(let _0x552191 of allowedChildren(_0xc65ae['doc'],_0x474e2d,_0x37a2bd))_0x113ac7['push']({'label':'<'+_0x552191,'type':'type'});for(let _0x44f307 of openTags(_0xc65ae['doc'],_0x474e2d))_0x113ac7['push']({'label':'</'+_0x44f307+'>','type':'type','boost':0x63-_0x10faa1++});return{'from':_0x450bc1,'to':_0x450bc1,'options':_0x113ac7,'validFor':/^<\/?[:\-\.\w\u00b7-\uffff]*$/};}function completeAttrName(_0x43bb8b,_0x154bc0,_0x2691c4,_0x29a45f,_0x452e6b){let _0x42f481=findParentElement(_0x2691c4),_0x1cda10=_0x42f481?_0x154bc0['tags'][elementName(_0x43bb8b['doc'],_0x42f481)]:null,_0x162f2f=_0x1cda10&&_0x1cda10['attrs']?Object['keys'](_0x1cda10['attrs']):[];return{'from':_0x29a45f,'to':_0x452e6b,'options':(_0x1cda10&&!0x1===_0x1cda10['globalAttrs']?_0x162f2f:_0x162f2f['length']?_0x162f2f['concat'](_0x154bc0['globalAttrNames']):_0x154bc0['globalAttrNames'])['map'](_0x39e245=>({'label':_0x39e245,'type':'property'})),'validFor':identifier};}function completeAttrValue(_0x11d7fe,_0x22a2c8,_0x208467,_0x173eac,_0x90c0b){var _0x3995b0;let _0x45d571,_0x56dc08=null===(_0x3995b0=_0x208467['parent'])||void 0x0===_0x3995b0?void 0x0:_0x3995b0['getChild']('AttributeName'),_0x42c192=[];if(_0x56dc08){let _0x9cd28c=_0x11d7fe['sliceDoc'](_0x56dc08['from'],_0x56dc08['to']),_0x509cf4=_0x22a2c8['globalAttrs'][_0x9cd28c];if(!_0x509cf4){let _0xc7f29c=findParentElement(_0x208467),_0x4de92a=_0xc7f29c?_0x22a2c8['tags'][elementName(_0x11d7fe['doc'],_0xc7f29c)]:null;_0x509cf4=(null==_0x4de92a?void 0x0:_0x4de92a['attrs'])&&_0x4de92a['attrs'][_0x9cd28c];}if(_0x509cf4){let _0x2725e6=_0x11d7fe['sliceDoc'](_0x173eac,_0x90c0b)['toLowerCase'](),_0x5a5c5c='\x22',_0x34b1f4='\x22';/^['"]/['test'](_0x2725e6)?(_0x45d571='\x22'==_0x2725e6[0x0]?/^[^"]*$/:/^[^']*$/,_0x5a5c5c='',_0x34b1f4=_0x11d7fe['sliceDoc'](_0x90c0b,_0x90c0b+0x1)==_0x2725e6[0x0]?'':_0x2725e6[0x0],_0x2725e6=_0x2725e6['slice'](0x1),_0x173eac++):_0x45d571=/^[^\s<>='"]*$/;for(let _0x175043 of _0x509cf4)_0x42c192['push']({'label':_0x175043,'apply':_0x5a5c5c+_0x175043+_0x34b1f4,'type':'constant'});}}return{'from':_0x173eac,'to':_0x90c0b,'options':_0x42c192,'validFor':_0x45d571};}function htmlCompletionFor(_0x184c0a,_0x316491){let {state:_0x35e1c6,pos:_0x750c9f}=_0x316491,_0x2b782d=syntaxTree(_0x35e1c6)['resolveInner'](_0x750c9f,-0x1),_0x207001=_0x2b782d['resolve'](_0x750c9f);for(let _0x5697a9,_0x5219ce=_0x750c9f;_0x207001==_0x2b782d&&(_0x5697a9=_0x2b782d['childBefore'](_0x5219ce));){let _0x20b0ef=_0x5697a9['lastChild'];if(!_0x20b0ef||!_0x20b0ef['type']['isError']||_0x20b0ef['from']<_0x20b0ef['to'])break;_0x207001=_0x2b782d=_0x5697a9,_0x5219ce=_0x20b0ef['from'];}return'TagName'==_0x2b782d['name']?_0x2b782d['parent']&&/CloseTag$/['test'](_0x2b782d['parent']['name'])?completeCloseTag(_0x35e1c6,_0x2b782d,_0x2b782d['from'],_0x750c9f):completeTag(_0x35e1c6,_0x184c0a,_0x2b782d,_0x2b782d['from'],_0x750c9f):'StartTag'==_0x2b782d['name']||'IncompleteTag'==_0x2b782d['name']?completeTag(_0x35e1c6,_0x184c0a,_0x2b782d,_0x750c9f,_0x750c9f):'StartCloseTag'==_0x2b782d['name']||'IncompleteCloseTag'==_0x2b782d['name']?completeCloseTag(_0x35e1c6,_0x2b782d,_0x750c9f,_0x750c9f):'OpenTag'==_0x2b782d['name']||'SelfClosingTag'==_0x2b782d['name']||'AttributeName'==_0x2b782d['name']?completeAttrName(_0x35e1c6,_0x184c0a,_0x2b782d,'AttributeName'==_0x2b782d['name']?_0x2b782d['from']:_0x750c9f,_0x750c9f):'Is'==_0x2b782d['name']||'AttributeValue'==_0x2b782d['name']||'UnquotedAttributeValue'==_0x2b782d['name']?completeAttrValue(_0x35e1c6,_0x184c0a,_0x2b782d,'Is'==_0x2b782d['name']?_0x750c9f:_0x2b782d['from'],_0x750c9f):!_0x316491['explicit']||'Element'!=_0x207001['name']&&'Text'!=_0x207001['name']&&'Document'!=_0x207001['name']?null:completeStartTag(_0x35e1c6,_0x184c0a,_0x2b782d,_0x750c9f);}function htmlCompletionSource(_0x40f8f6){return htmlCompletionFor(Schema['default'],_0x40f8f6);}function htmlCompletionSourceWith(_0x28d2e3){let {extraTags:_0x142ebb,extraGlobalAttributes:_0x11422d}=_0x28d2e3,_0x11f86a=_0x11422d||_0x142ebb?new Schema(_0x142ebb,_0x11422d):Schema['default'];return _0x526ce5=>htmlCompletionFor(_0x11f86a,_0x526ce5);}const jsonParser=javascriptLanguage['parser']['configure']({'top':'SingleExpression'}),defaultNesting=[{'tag':'script','attrs':_0x5d33d7=>'text/typescript'==_0x5d33d7['type']||'ts'==_0x5d33d7['lang'],'parser':typescriptLanguage['parser']},{'tag':'script','attrs':_0x499f2f=>'text/babel'==_0x499f2f['type']||'text/jsx'==_0x499f2f['type'],'parser':jsxLanguage['parser']},{'tag':'script','attrs':_0x42ab86=>'text/typescript-jsx'==_0x42ab86['type'],'parser':tsxLanguage['parser']},{'tag':'script','attrs':_0x33e949=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i['test'](_0x33e949['type']),'parser':jsonParser},{'tag':'script','attrs':_0x13425d=>!_0x13425d['type']||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i['test'](_0x13425d['type']),'parser':javascriptLanguage['parser']},{'tag':'style','attrs':_0x5f1112=>(!_0x5f1112['lang']||'css'==_0x5f1112['lang'])&&(!_0x5f1112['type']||/^(text\/)?(x-)?(stylesheet|css)$/i['test'](_0x5f1112['type'])),'parser':cssLanguage['parser']}],defaultAttrs=[{'name':'style','parser':cssLanguage['parser']['configure']({'top':'Styles'})}]['concat'](eventAttributes['map'](_0x5b6f01=>({'name':_0x5b6f01,'parser':javascriptLanguage['parser']}))),htmlPlain=LRLanguage['define']({'name':'html','parser':parser$3['configure']({'props':[indentNodeProp['add']({'Element'(_0x701bc){let _0x359c5b=/^(\s*)(<\/)?/['exec'](_0x701bc['textAfter']);return _0x701bc['node']['to']<=_0x701bc['pos']+_0x359c5b[0x0]['length']?_0x701bc['continue']():_0x701bc['lineIndent'](_0x701bc['node']['from'])+(_0x359c5b[0x2]?0x0:_0x701bc['unit']);},'OpenTag\x20CloseTag\x20SelfClosingTag':_0x471383=>_0x471383['column'](_0x471383['node']['from'])+_0x471383['unit'],'Document'(_0x433bff){if(_0x433bff['pos']+/\s*/['exec'](_0x433bff['textAfter'])[0x0]['length']<_0x433bff['node']['to'])return _0x433bff['continue']();let _0x1392c8,_0x4a4dc3=null;for(let _0x4ce86d=_0x433bff['node'];;){let _0x34f56b=_0x4ce86d['lastChild'];if(!_0x34f56b||'Element'!=_0x34f56b['name']||_0x34f56b['to']!=_0x4ce86d['to'])break;_0x4a4dc3=_0x4ce86d=_0x34f56b;}return _0x4a4dc3&&(!(_0x1392c8=_0x4a4dc3['lastChild'])||'CloseTag'!=_0x1392c8['name']&&'SelfClosingTag'!=_0x1392c8['name'])?_0x433bff['lineIndent'](_0x4a4dc3['from'])+_0x433bff['unit']:null;}}),foldNodeProp['add']({'Element'(_0x41cc69){let _0x412dcb=_0x41cc69['firstChild'],_0x3ea03c=_0x41cc69['lastChild'];return _0x412dcb&&'OpenTag'==_0x412dcb['name']?{'from':_0x412dcb['to'],'to':'CloseTag'==_0x3ea03c['name']?_0x3ea03c['from']:_0x41cc69['to']}:null;}}),bracketMatchingHandle['add']({'OpenTag\x20CloseTag':_0x5a9c75=>_0x5a9c75['getChild']('TagName')})]}),'languageData':{'commentTokens':{'block':{'open':'<!--','close':'-->'}},'indentOnInput':/^\s*<\/\w+\W$/,'wordChars':'-_'}}),htmlLanguage=htmlPlain['configure']({'wrap':configureNesting(defaultNesting,defaultAttrs)});function html(_0x5bd39f={}){let _0xea4081,_0x437904='';!0x1===_0x5bd39f['matchClosingTags']&&(_0x437904='noMatch'),!0x0===_0x5bd39f['selfClosingTags']&&(_0x437904=(_0x437904?_0x437904+'\x20':'')+'selfClosing'),(_0x5bd39f['nestedLanguages']&&_0x5bd39f['nestedLanguages']['length']||_0x5bd39f['nestedAttributes']&&_0x5bd39f['nestedAttributes']['length'])&&(_0xea4081=configureNesting((_0x5bd39f['nestedLanguages']||[])['concat'](defaultNesting),(_0x5bd39f['nestedAttributes']||[])['concat'](defaultAttrs)));let _0x744737=_0xea4081?htmlPlain['configure']({'wrap':_0xea4081,'dialect':_0x437904}):_0x437904?htmlLanguage['configure']({'dialect':_0x437904}):htmlLanguage;return new LanguageSupport(_0x744737,[htmlLanguage['data']['of']({'autocomplete':htmlCompletionSourceWith(_0x5bd39f)}),!0x1!==_0x5bd39f['autoCloseTags']?autoCloseTags:[],javascript()['support'],css()['support']]);}const selfClosers=new Set('area\x20base\x20br\x20col\x20command\x20embed\x20frame\x20hr\x20img\x20input\x20keygen\x20link\x20meta\x20param\x20source\x20track\x20wbr\x20menuitem'['split']('\x20')),autoCloseTags=EditorView['inputHandler']['of']((_0x140717,_0x410b78,_0x341427,_0x4b7494,_0x116c0f)=>{if(_0x140717['composing']||_0x140717['state']['readOnly']||_0x410b78!=_0x341427||'>'!=_0x4b7494&&'/'!=_0x4b7494||!htmlLanguage['isActiveAt'](_0x140717['state'],_0x410b78,-0x1))return!0x1;let _0xdba2ae=_0x116c0f(),{state:_0x7faf11}=_0xdba2ae,_0x36fe00=_0x7faf11['changeByRange'](_0x3d522b=>{var _0x561882,_0xe6989f,_0x1826e2;let _0x33940a,_0x1221e9=_0x7faf11['doc']['sliceString'](_0x3d522b['from']-0x1,_0x3d522b['to'])==_0x4b7494,{head:_0x13005f}=_0x3d522b,_0x4f8c02=syntaxTree(_0x7faf11)['resolveInner'](_0x13005f,-0x1);if(_0x1221e9&&'>'==_0x4b7494&&'EndTag'==_0x4f8c02['name']){let _0x15806d=_0x4f8c02['parent'];if('CloseTag'!=(null===(_0xe6989f=null===(_0x561882=_0x15806d['parent'])||void 0x0===_0x561882?void 0x0:_0x561882['lastChild'])||void 0x0===_0xe6989f?void 0x0:_0xe6989f['name'])&&(_0x33940a=elementName(_0x7faf11['doc'],_0x15806d['parent'],_0x13005f))&&!selfClosers['has'](_0x33940a))return{'range':_0x3d522b,'changes':{'from':_0x13005f,'to':_0x13005f+('>'===_0x7faf11['doc']['sliceString'](_0x13005f,_0x13005f+0x1)?0x1:0x0),'insert':'</'+_0x33940a+'>'}};}else{if(_0x1221e9&&'/'==_0x4b7494&&'IncompleteCloseTag'==_0x4f8c02['name']){let _0x4a5932=_0x4f8c02['parent'];if(_0x4f8c02['from']==_0x13005f-0x2&&'CloseTag'!=(null===(_0x1826e2=_0x4a5932['lastChild'])||void 0x0===_0x1826e2?void 0x0:_0x1826e2['name'])&&(_0x33940a=elementName(_0x7faf11['doc'],_0x4a5932,_0x13005f))&&!selfClosers['has'](_0x33940a)){let _0x2e1c47=_0x13005f+('>'===_0x7faf11['doc']['sliceString'](_0x13005f,_0x13005f+0x1)?0x1:0x0),_0x41edd1=_0x33940a+'>';return{'range':EditorSelection['cursor'](_0x13005f+_0x41edd1['length'],-0x1),'changes':{'from':_0x13005f,'to':_0x2e1c47,'insert':_0x41edd1}};}}}return{'range':_0x3d522b};});return!_0x36fe00['changes']['empty']&&(_0x140717['dispatch']([_0xdba2ae,_0x7faf11['update'](_0x36fe00,{'userEvent':'input.complete','scrollIntoView':!0x0})]),!0x0);});class CompositeBlock{static['create'](_0x41478b,_0x5d78e2,_0x2e4601,_0x2d5276,_0x24a408){return new CompositeBlock(_0x41478b,_0x5d78e2,_0x2e4601,_0x2d5276+(_0x2d5276<<0x8)+_0x41478b+(_0x5d78e2<<0x4)|0x0,_0x24a408,[],[]);}constructor(_0x177ddd,_0x1101bf,_0x243d2f,_0x139a7c,_0x3afbe7,_0x133a01,_0x174401){this['type']=_0x177ddd,this['value']=_0x1101bf,this['from']=_0x243d2f,this['hash']=_0x139a7c,this['end']=_0x3afbe7,this['children']=_0x133a01,this['positions']=_0x174401,this['hashProp']=[[NodeProp['contextHash'],_0x139a7c]];}['addChild'](_0x245deb,_0x54ff78){_0x245deb['prop'](NodeProp['contextHash'])!=this['hash']&&(_0x245deb=new Tree(_0x245deb['type'],_0x245deb['children'],_0x245deb['positions'],_0x245deb['length'],this['hashProp'])),this['children']['push'](_0x245deb),this['positions']['push'](_0x54ff78);}['toTree'](_0x1978cc,_0x1190bc=this['end']){let _0x26c16b=this['children']['length']-0x1;return _0x26c16b>=0x0&&(_0x1190bc=Math['max'](_0x1190bc,this['positions'][_0x26c16b]+this['children'][_0x26c16b]['length']+this['from'])),new Tree(_0x1978cc['types'][this['type']],this['children'],this['positions'],_0x1190bc-this['from'])['balance']({'makeTree':(_0x13eef4,_0x23f79d,_0x34e88d)=>new Tree(NodeType['none'],_0x13eef4,_0x23f79d,_0x34e88d,this['hashProp'])});}}var Type;!function(_0x4821db){_0x4821db[_0x4821db['Document']=0x1]='Document',_0x4821db[_0x4821db['CodeBlock']=0x2]='CodeBlock',_0x4821db[_0x4821db['FencedCode']=0x3]='FencedCode',_0x4821db[_0x4821db['Blockquote']=0x4]='Blockquote',_0x4821db[_0x4821db['HorizontalRule']=0x5]='HorizontalRule',_0x4821db[_0x4821db['BulletList']=0x6]='BulletList',_0x4821db[_0x4821db['OrderedList']=0x7]='OrderedList',_0x4821db[_0x4821db['ListItem']=0x8]='ListItem',_0x4821db[_0x4821db['ATXHeading1']=0x9]='ATXHeading1',_0x4821db[_0x4821db['ATXHeading2']=0xa]='ATXHeading2',_0x4821db[_0x4821db['ATXHeading3']=0xb]='ATXHeading3',_0x4821db[_0x4821db['ATXHeading4']=0xc]='ATXHeading4',_0x4821db[_0x4821db['ATXHeading5']=0xd]='ATXHeading5',_0x4821db[_0x4821db['ATXHeading6']=0xe]='ATXHeading6',_0x4821db[_0x4821db['SetextHeading1']=0xf]='SetextHeading1',_0x4821db[_0x4821db['SetextHeading2']=0x10]='SetextHeading2',_0x4821db[_0x4821db['HTMLBlock']=0x11]='HTMLBlock',_0x4821db[_0x4821db['LinkReference']=0x12]='LinkReference',_0x4821db[_0x4821db['Paragraph']=0x13]='Paragraph',_0x4821db[_0x4821db['CommentBlock']=0x14]='CommentBlock',_0x4821db[_0x4821db['ProcessingInstructionBlock']=0x15]='ProcessingInstructionBlock',_0x4821db[_0x4821db['Escape']=0x16]='Escape',_0x4821db[_0x4821db['Entity']=0x17]='Entity',_0x4821db[_0x4821db['HardBreak']=0x18]='HardBreak',_0x4821db[_0x4821db['Emphasis']=0x19]='Emphasis',_0x4821db[_0x4821db['StrongEmphasis']=0x1a]='StrongEmphasis',_0x4821db[_0x4821db['Link']=0x1b]='Link',_0x4821db[_0x4821db['Image']=0x1c]='Image',_0x4821db[_0x4821db['InlineCode']=0x1d]='InlineCode',_0x4821db[_0x4821db['HTMLTag']=0x1e]='HTMLTag',_0x4821db[_0x4821db['Comment']=0x1f]='Comment',_0x4821db[_0x4821db['ProcessingInstruction']=0x20]='ProcessingInstruction',_0x4821db[_0x4821db['Autolink']=0x21]='Autolink',_0x4821db[_0x4821db['HeaderMark']=0x22]='HeaderMark',_0x4821db[_0x4821db['QuoteMark']=0x23]='QuoteMark',_0x4821db[_0x4821db['ListMark']=0x24]='ListMark',_0x4821db[_0x4821db['LinkMark']=0x25]='LinkMark',_0x4821db[_0x4821db['EmphasisMark']=0x26]='EmphasisMark',_0x4821db[_0x4821db['CodeMark']=0x27]='CodeMark',_0x4821db[_0x4821db['CodeText']=0x28]='CodeText',_0x4821db[_0x4821db['CodeInfo']=0x29]='CodeInfo',_0x4821db[_0x4821db['LinkTitle']=0x2a]='LinkTitle',_0x4821db[_0x4821db['LinkLabel']=0x2b]='LinkLabel',_0x4821db[_0x4821db['URL']=0x2c]='URL';}(Type||(Type={}));class LeafBlock{constructor(_0xc92f91,_0x28c8ee){this['start']=_0xc92f91,this['content']=_0x28c8ee,this['marks']=[],this['parsers']=[];}}class Line{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 _0x1e012a=this['skipSpace'](this['basePos']);this['indent']=this['countIndent'](_0x1e012a,this['pos'],this['indent']),this['pos']=_0x1e012a,this['next']=_0x1e012a==this['text']['length']?-0x1:this['text']['charCodeAt'](_0x1e012a);}['skipSpace'](_0x5b7b69){return skipSpace(this['text'],_0x5b7b69);}['reset'](_0x17691b){for(this['text']=_0x17691b,this['baseIndent']=this['basePos']=this['pos']=this['indent']=0x0,this['forwardInner'](),this['depth']=0x1;this['markers']['length'];)this['markers']['pop']();}['moveBase'](_0x433e48){this['basePos']=_0x433e48,this['baseIndent']=this['countIndent'](_0x433e48,this['pos'],this['indent']);}['moveBaseColumn'](_0x4b70bd){this['baseIndent']=_0x4b70bd,this['basePos']=this['findColumn'](_0x4b70bd);}['addMarker'](_0x1136f1){this['markers']['push'](_0x1136f1);}['countIndent'](_0x38e81c,_0x10f721=0x0,_0x10f779=0x0){for(let _0x21f689=_0x10f721;_0x21f689<_0x38e81c;_0x21f689++)_0x10f779+=0x9==this['text']['charCodeAt'](_0x21f689)?0x4-_0x10f779%0x4:0x1;return _0x10f779;}['findColumn'](_0x3907f7){let _0x1562c2=0x0;for(let _0xcd3649=0x0;_0x1562c2<this['text']['length']&&_0xcd3649<_0x3907f7;_0x1562c2++)_0xcd3649+=0x9==this['text']['charCodeAt'](_0x1562c2)?0x4-_0xcd3649%0x4:0x1;return _0x1562c2;}['scrub'](){if(!this['baseIndent'])return this['text'];let _0x22bd05='';for(let _0x57fa2a=0x0;_0x57fa2a<this['basePos'];_0x57fa2a++)_0x22bd05+='\x20';return _0x22bd05+this['text']['slice'](this['basePos']);}}function skipForList(_0x1e4c79,_0x31614f,_0x32da20){if(_0x32da20['pos']==_0x32da20['text']['length']||_0x1e4c79!=_0x31614f['block']&&_0x32da20['indent']>=_0x31614f['stack'][_0x32da20['depth']+0x1]['value']+_0x32da20['baseIndent'])return!0x0;if(_0x32da20['indent']>=_0x32da20['baseIndent']+0x4)return!0x1;let _0x538c7e=(_0x1e4c79['type']==Type['OrderedList']?isOrderedList:isBulletList)(_0x32da20,_0x31614f,!0x1);return _0x538c7e>0x0&&(_0x1e4c79['type']!=Type['BulletList']||isHorizontalRule(_0x32da20,_0x31614f,!0x1)<0x0)&&_0x32da20['text']['charCodeAt'](_0x32da20['pos']+_0x538c7e-0x1)==_0x1e4c79['value'];}const DefaultSkipMarkup={[Type['Blockquote']]:(_0x53810c,_0x4ac2db,_0x5de494)=>0x3e==_0x5de494['next']&&(_0x5de494['markers']['push'](elt(Type['QuoteMark'],_0x4ac2db['lineStart']+_0x5de494['pos'],_0x4ac2db['lineStart']+_0x5de494['pos']+0x1)),_0x5de494['moveBase'](_0x5de494['pos']+(space(_0x5de494['text']['charCodeAt'](_0x5de494['pos']+0x1))?0x2:0x1)),_0x53810c['end']=_0x4ac2db['lineStart']+_0x5de494['text']['length'],!0x0),[Type['ListItem']]:(_0x2263ac,_0x3d7e1f,_0x563c2e)=>!(_0x563c2e['indent']<_0x563c2e['baseIndent']+_0x2263ac['value']&&_0x563c2e['next']>-0x1)&&(_0x563c2e['moveBaseColumn'](_0x563c2e['baseIndent']+_0x2263ac['value']),!0x0),[Type['OrderedList']]:skipForList,[Type['BulletList']]:skipForList,[Type['Document']]:()=>!0x0};function space(_0xc0ed28){return 0x20==_0xc0ed28||0x9==_0xc0ed28||0xa==_0xc0ed28||0xd==_0xc0ed28;}function skipSpace(_0x5d8e5c,_0x5ca6d4=0x0){for(;_0x5ca6d4<_0x5d8e5c['length']&&space(_0x5d8e5c['charCodeAt'](_0x5ca6d4));)_0x5ca6d4++;return _0x5ca6d4;}function skipSpaceBack(_0x42c2bd,_0x255caa,_0x117246){for(;_0x255caa>_0x117246&&space(_0x42c2bd['charCodeAt'](_0x255caa-0x1));)_0x255caa--;return _0x255caa;}function isFencedCode(_0x3a3432){if(0x60!=_0x3a3432['next']&&0x7e!=_0x3a3432['next'])return-0x1;let _0x86b103=_0x3a3432['pos']+0x1;for(;_0x86b103<_0x3a3432['text']['length']&&_0x3a3432['text']['charCodeAt'](_0x86b103)==_0x3a3432['next'];)_0x86b103++;if(_0x86b103<_0x3a3432['pos']+0x3)return-0x1;if(0x60==_0x3a3432['next']){for(let _0x4cfef3=_0x86b103;_0x4cfef3<_0x3a3432['text']['length'];_0x4cfef3++)if(0x60==_0x3a3432['text']['charCodeAt'](_0x4cfef3))return-0x1;}return _0x86b103;}function isBlockquote(_0x1f973d){return 0x3e!=_0x1f973d['next']?-0x1:0x20==_0x1f973d['text']['charCodeAt'](_0x1f973d['pos']+0x1)?0x2:0x1;}function isHorizontalRule(_0x19aebf,_0x34d566,_0x4b7fab){if(0x2a!=_0x19aebf['next']&&0x2d!=_0x19aebf['next']&&0x5f!=_0x19aebf['next'])return-0x1;let _0x29e3b8=0x1;for(let _0x512286=_0x19aebf['pos']+0x1;_0x512286<_0x19aebf['text']['length'];_0x512286++){let _0x593fa9=_0x19aebf['text']['charCodeAt'](_0x512286);if(_0x593fa9==_0x19aebf['next'])_0x29e3b8++;else{if(!space(_0x593fa9))return-0x1;}}return _0x4b7fab&&0x2d==_0x19aebf['next']&&isSetextUnderline(_0x19aebf)>-0x1&&_0x19aebf['depth']==_0x34d566['stack']['length']&&_0x34d566['parser']['leafBlockParsers']['indexOf'](DefaultLeafBlocks['SetextHeading'])>-0x1||_0x29e3b8<0x3?-0x1:0x1;}function inList(_0x35ae68,_0x16d9aa){for(let _0x64fba4=_0x35ae68['stack']['length']-0x1;_0x64fba4>=0x0;_0x64fba4--)if(_0x35ae68['stack'][_0x64fba4]['type']==_0x16d9aa)return!0x0;return!0x1;}function isBulletList(_0x499322,_0x47e3e4,_0x1a1aae){return 0x2d!=_0x499322['next']&&0x2b!=_0x499322['next']&&0x2a!=_0x499322['next']||_0x499322['pos']!=_0x499322['text']['length']-0x1&&!space(_0x499322['text']['charCodeAt'](_0x499322['pos']+0x1))||!(!_0x1a1aae||inList(_0x47e3e4,Type['BulletList'])||_0x499322['skipSpace'](_0x499322['pos']+0x2)<_0x499322['text']['length'])?-0x1:0x1;}function isOrderedList(_0x49686b,_0x460be9,_0x5f2d32){let _0x49783d=_0x49686b['pos'],_0x45681d=_0x49686b['next'];for(;_0x45681d>=0x30&&_0x45681d<=0x39;){if(_0x49783d++,_0x49783d==_0x49686b['text']['length'])return-0x1;_0x45681d=_0x49686b['text']['charCodeAt'](_0x49783d);}return _0x49783d==_0x49686b['pos']||_0x49783d>_0x49686b['pos']+0x9||0x2e!=_0x45681d&&0x29!=_0x45681d||_0x49783d<_0x49686b['text']['length']-0x1&&!space(_0x49686b['text']['charCodeAt'](_0x49783d+0x1))||_0x5f2d32&&!inList(_0x460be9,Type['OrderedList'])&&(_0x49686b['skipSpace'](_0x49783d+0x1)==_0x49686b['text']['length']||_0x49783d>_0x49686b['pos']+0x1||0x31!=_0x49686b['next'])?-0x1:_0x49783d+0x1-_0x49686b['pos'];}function isAtxHeading(_0x5447a1){if(0x23!=_0x5447a1['next'])return-0x1;let _0x39f842=_0x5447a1['pos']+0x1;for(;_0x39f842<_0x5447a1['text']['length']&&0x23==_0x5447a1['text']['charCodeAt'](_0x39f842);)_0x39f842++;if(_0x39f842<_0x5447a1['text']['length']&&0x20!=_0x5447a1['text']['charCodeAt'](_0x39f842))return-0x1;let _0x209949=_0x39f842-_0x5447a1['pos'];return _0x209949>0x6?-0x1:_0x209949;}function isSetextUnderline(_0x57f51a){if(0x2d!=_0x57f51a['next']&&0x3d!=_0x57f51a['next']||_0x57f51a['indent']>=_0x57f51a['baseIndent']+0x4)return-0x1;let _0x17d239=_0x57f51a['pos']+0x1;for(;_0x17d239<_0x57f51a['text']['length']&&_0x57f51a['text']['charCodeAt'](_0x17d239)==_0x57f51a['next'];)_0x17d239++;let _0x2733ee=_0x17d239;for(;_0x17d239<_0x57f51a['text']['length']&&space(_0x57f51a['text']['charCodeAt'](_0x17d239));)_0x17d239++;return _0x17d239==_0x57f51a['text']['length']?_0x2733ee:-0x1;}const EmptyLine=/^[ \t]*$/,CommentEnd=/-->/,ProcessingEnd=/\?>/,HTMLBlockStyle=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,CommentEnd],[/^\s*<\?/,ProcessingEnd],[/^\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,EmptyLine],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,EmptyLine]];function isHTMLBlock(_0x745f2e,_0x57de42,_0x28dc48){if(0x3c!=_0x745f2e['next'])return-0x1;let _0x59da94=_0x745f2e['text']['slice'](_0x745f2e['pos']);for(let _0x3366a5=0x0,_0x23abb2=HTMLBlockStyle['length']-(_0x28dc48?0x1:0x0);_0x3366a5<_0x23abb2;_0x3366a5++)if(HTMLBlockStyle[_0x3366a5][0x0]['test'](_0x59da94))return _0x3366a5;return-0x1;}function getListIndent(_0x190465,_0x5d5e3d){let _0x1f763e=_0x190465['countIndent'](_0x5d5e3d,_0x190465['pos'],_0x190465['indent']),_0x2970da=_0x190465['countIndent'](_0x190465['skipSpace'](_0x5d5e3d),_0x5d5e3d,_0x1f763e);return _0x2970da>=_0x1f763e+0x5?_0x1f763e+0x1:_0x2970da;}function addCodeText(_0x1582e4,_0x40fe19,_0x4101fe){let _0x219c08=_0x1582e4['length']-0x1;_0x219c08>=0x0&&_0x1582e4[_0x219c08]['to']==_0x40fe19&&_0x1582e4[_0x219c08]['type']==Type['CodeText']?_0x1582e4[_0x219c08]['to']=_0x4101fe:_0x1582e4['push'](elt(Type['CodeText'],_0x40fe19,_0x4101fe));}const DefaultBlockParsers={'LinkReference':void 0x0,'IndentedCode'(_0x401e16,_0x3df4da){let _0x28444d=_0x3df4da['baseIndent']+0x4;if(_0x3df4da['indent']<_0x28444d)return!0x1;let _0x552cd5=_0x3df4da['findColumn'](_0x28444d),_0x35cbef=_0x401e16['lineStart']+_0x552cd5,_0x1ca159=_0x401e16['lineStart']+_0x3df4da['text']['length'],_0x236028=[],_0x8c23fb=[];for(addCodeText(_0x236028,_0x35cbef,_0x1ca159);_0x401e16['nextLine']()&&_0x3df4da['depth']>=_0x401e16['stack']['length'];)if(_0x3df4da['pos']==_0x3df4da['text']['length']){addCodeText(_0x8c23fb,_0x401e16['lineStart']-0x1,_0x401e16['lineStart']);for(let _0x33ebc0 of _0x3df4da['markers'])_0x8c23fb['push'](_0x33ebc0);}else{if(_0x3df4da['indent']<_0x28444d)break;{if(_0x8c23fb['length']){for(let _0x4d5aae of _0x8c23fb)_0x4d5aae['type']==Type['CodeText']?addCodeText(_0x236028,_0x4d5aae['from'],_0x4d5aae['to']):_0x236028['push'](_0x4d5aae);_0x8c23fb=[];}addCodeText(_0x236028,_0x401e16['lineStart']-0x1,_0x401e16['lineStart']);for(let _0x5ab227 of _0x3df4da['markers'])_0x236028['push'](_0x5ab227);_0x1ca159=_0x401e16['lineStart']+_0x3df4da['text']['length'];let _0x560f96=_0x401e16['lineStart']+_0x3df4da['findColumn'](_0x3df4da['baseIndent']+0x4);_0x560f96<_0x1ca159&&addCodeText(_0x236028,_0x560f96,_0x1ca159);}}return _0x8c23fb['length']&&(_0x8c23fb=_0x8c23fb['filter'](_0x2ab79b=>_0x2ab79b['type']!=Type['CodeText']),_0x8c23fb['length']&&(_0x3df4da['markers']=_0x8c23fb['concat'](_0x3df4da['markers']))),_0x401e16['addNode'](_0x401e16['buffer']['writeElements'](_0x236028,-_0x35cbef)['finish'](Type['CodeBlock'],_0x1ca159-_0x35cbef),_0x35cbef),!0x0;},'FencedCode'(_0x3547bc,_0x5826a0){let _0x7e723c=isFencedCode(_0x5826a0);if(_0x7e723c<0x0)return!0x1;let _0x21497e=_0x3547bc['lineStart']+_0x5826a0['pos'],_0x2e035e=_0x5826a0['next'],_0x4c302a=_0x7e723c-_0x5826a0['pos'],_0x1abf50=_0x5826a0['skipSpace'](_0x7e723c),_0x2e989b=skipSpaceBack(_0x5826a0['text'],_0x5826a0['text']['length'],_0x1abf50),_0x4dd30b=[elt(Type['CodeMark'],_0x21497e,_0x21497e+_0x4c302a)];_0x1abf50<_0x2e989b&&_0x4dd30b['push'](elt(Type['CodeInfo'],_0x3547bc['lineStart']+_0x1abf50,_0x3547bc['lineStart']+_0x2e989b));for(let _0x1a87c0=!0x0;_0x3547bc['nextLine']()&&_0x5826a0['depth']>=_0x3547bc['stack']['length'];_0x1a87c0=!0x1){let _0x5f0168=_0x5826a0['pos'];if(_0x5826a0['indent']-_0x5826a0['baseIndent']<0x4){for(;_0x5f0168<_0x5826a0['text']['length']&&_0x5826a0['text']['charCodeAt'](_0x5f0168)==_0x2e035e;)_0x5f0168++;}if(_0x5f0168-_0x5826a0['pos']>=_0x4c302a&&_0x5826a0['skipSpace'](_0x5f0168)==_0x5826a0['text']['length']){for(let _0x66be1a of _0x5826a0['markers'])_0x4dd30b['push'](_0x66be1a);_0x4dd30b['push'](elt(Type['CodeMark'],_0x3547bc['lineStart']+_0x5826a0['pos'],_0x3547bc['lineStart']+_0x5f0168)),_0x3547bc['nextLine']();break;}{_0x1a87c0||addCodeText(_0x4dd30b,_0x3547bc['lineStart']-0x1,_0x3547bc['lineStart']);for(let _0x1cbc19 of _0x5826a0['markers'])_0x4dd30b['push'](_0x1cbc19);let _0x3b249f=_0x3547bc['lineStart']+_0x5826a0['basePos'],_0x3cd9f6=_0x3547bc['lineStart']+_0x5826a0['text']['length'];_0x3b249f<_0x3cd9f6&&addCodeText(_0x4dd30b,_0x3b249f,_0x3cd9f6);}}return _0x3547bc['addNode'](_0x3547bc['buffer']['writeElements'](_0x4dd30b,-_0x21497e)['finish'](Type['FencedCode'],_0x3547bc['prevLineEnd']()-_0x21497e),_0x21497e),!0x0;},'Blockquote'(_0x383fab,_0xb91593){let _0x87c736=isBlockquote(_0xb91593);return!(_0x87c736<0x0)&&(_0x383fab['startContext'](Type['Blockquote'],_0xb91593['pos']),_0x383fab['addNode'](Type['QuoteMark'],_0x383fab['lineStart']+_0xb91593['pos'],_0x383fab['lineStart']+_0xb91593['pos']+0x1),_0xb91593['moveBase'](_0xb91593['pos']+_0x87c736),null);},'HorizontalRule'(_0xca7f7b,_0x5318b1){if(isHorizontalRule(_0x5318b1,_0xca7f7b,!0x1)<0x0)return!0x1;let _0x43ff01=_0xca7f7b['lineStart']+_0x5318b1['pos'];return _0xca7f7b['nextLine'](),_0xca7f7b['addNode'](Type['HorizontalRule'],_0x43ff01),!0x0;},'BulletList'(_0x48903c,_0x38d5c3){let _0x5e0df6=isBulletList(_0x38d5c3,_0x48903c,!0x1);if(_0x5e0df6<0x0)return!0x1;_0x48903c['block']['type']!=Type['BulletList']&&_0x48903c['startContext'](Type['BulletList'],_0x38d5c3['basePos'],_0x38d5c3['next']);let _0x26533a=getListIndent(_0x38d5c3,_0x38d5c3['pos']+0x1);return _0x48903c['startContext'](Type['ListItem'],_0x38d5c3['basePos'],_0x26533a-_0x38d5c3['baseIndent']),_0x48903c['addNode'](Type['ListMark'],_0x48903c['lineStart']+_0x38d5c3['pos'],_0x48903c['lineStart']+_0x38d5c3['pos']+_0x5e0df6),_0x38d5c3['moveBaseColumn'](_0x26533a),null;},'OrderedList'(_0x28bb13,_0x5e3b4a){let _0x48aca8=isOrderedList(_0x5e3b4a,_0x28bb13,!0x1);if(_0x48aca8<0x0)return!0x1;_0x28bb13['block']['type']!=Type['OrderedList']&&_0x28bb13['startContext'](Type['OrderedList'],_0x5e3b4a['basePos'],_0x5e3b4a['text']['charCodeAt'](_0x5e3b4a['pos']+_0x48aca8-0x1));let _0x59d0c1=getListIndent(_0x5e3b4a,_0x5e3b4a['pos']+_0x48aca8);return _0x28bb13['startContext'](Type['ListItem'],_0x5e3b4a['basePos'],_0x59d0c1-_0x5e3b4a['baseIndent']),_0x28bb13['addNode'](Type['ListMark'],_0x28bb13['lineStart']+_0x5e3b4a['pos'],_0x28bb13['lineStart']+_0x5e3b4a['pos']+_0x48aca8),_0x5e3b4a['moveBaseColumn'](_0x59d0c1),null;},'ATXHeading'(_0x117420,_0x7fb490){let _0x564aaf=isAtxHeading(_0x7fb490);if(_0x564aaf<0x0)return!0x1;let _0x57edfa=_0x7fb490['pos'],_0x4e0a2f=_0x117420['lineStart']+_0x57edfa,_0xf721bd=skipSpaceBack(_0x7fb490['text'],_0x7fb490['text']['length'],_0x57edfa),_0xe30a72=_0xf721bd;for(;_0xe30a72>_0x57edfa&&_0x7fb490['text']['charCodeAt'](_0xe30a72-0x1)==_0x7fb490['next'];)_0xe30a72--;_0xe30a72!=_0xf721bd&&_0xe30a72!=_0x57edfa&&space(_0x7fb490['text']['charCodeAt'](_0xe30a72-0x1))||(_0xe30a72=_0x7fb490['text']['length']);let _0x1b5bec=_0x117420['buffer']['write'](Type['HeaderMark'],0x0,_0x564aaf)['writeElements'](_0x117420['parser']['parseInline'](_0x7fb490['text']['slice'](_0x57edfa+_0x564aaf+0x1,_0xe30a72),_0x4e0a2f+_0x564aaf+0x1),-_0x4e0a2f);_0xe30a72<_0x7fb490['text']['length']&&_0x1b5bec['write'](Type['HeaderMark'],_0xe30a72-_0x57edfa,_0xf721bd-_0x57edfa);let _0x2e9ae3=_0x1b5bec['finish'](Type['ATXHeading1']-0x1+_0x564aaf,_0x7fb490['text']['length']-_0x57edfa);return _0x117420['nextLine'](),_0x117420['addNode'](_0x2e9ae3,_0x4e0a2f),!0x0;},'HTMLBlock'(_0x211b63,_0x45074d){let _0x5147c1=isHTMLBlock(_0x45074d,_0x211b63,!0x1);if(_0x5147c1<0x0)return!0x1;let _0x4a39e4=_0x211b63['lineStart']+_0x45074d['pos'],_0x31c11d=HTMLBlockStyle[_0x5147c1][0x1],_0x5b185b=[],_0x35f03d=_0x31c11d!=EmptyLine;for(;!_0x31c11d['test'](_0x45074d['text'])&&_0x211b63['nextLine']();){if(_0x45074d['depth']<_0x211b63['stack']['length']){_0x35f03d=!0x1;break;}for(let _0x245187 of _0x45074d['markers'])_0x5b185b['push'](_0x245187);}_0x35f03d&&_0x211b63['nextLine']();let _0x480ef0=_0x31c11d==CommentEnd?Type['CommentBlock']:_0x31c11d==ProcessingEnd?Type['ProcessingInstructionBlock']:Type['HTMLBlock'],_0x10efef=_0x211b63['prevLineEnd']();return _0x211b63['addNode'](_0x211b63['buffer']['writeElements'](_0x5b185b,-_0x4a39e4)['finish'](_0x480ef0,_0x10efef-_0x4a39e4),_0x4a39e4),!0x0;},'SetextHeading':void 0x0};class LinkReferenceParser{constructor(_0x2821bb){this['stage']=0x0,this['elts']=[],this['pos']=0x0,this['start']=_0x2821bb['start'],this['advance'](_0x2821bb['content']);}['nextLine'](_0x48e93e,_0x499501,_0xb0b474){if(-0x1==this['stage'])return!0x1;let _0x2ca26d=_0xb0b474['content']+'\x0a'+_0x499501['scrub'](),_0x1b5059=this['advance'](_0x2ca26d);return _0x1b5059>-0x1&&_0x1b5059<_0x2ca26d['length']&&this['complete'](_0x48e93e,_0xb0b474,_0x1b5059);}['finish'](_0x2180e0,_0x4826b0){return(0x2==this['stage']||0x3==this['stage'])&&skipSpace(_0x4826b0['content'],this['pos'])==_0x4826b0['content']['length']&&this['complete'](_0x2180e0,_0x4826b0,_0x4826b0['content']['length']);}['complete'](_0x5f2091,_0x5e8e9f,_0xbe2602){return _0x5f2091['addLeafElement'](_0x5e8e9f,elt(Type['LinkReference'],this['start'],this['start']+_0xbe2602,this['elts'])),!0x0;}['nextStage'](_0x52af4e){return _0x52af4e?(this['pos']=_0x52af4e['to']-this['start'],this['elts']['push'](_0x52af4e),this['stage']++,!0x0):(!0x1===_0x52af4e&&(this['stage']=-0x1),!0x1);}['advance'](_0x607018){for(;;){if(-0x1==this['stage'])return-0x1;if(0x0==this['stage']){if(!this['nextStage'](parseLinkLabel(_0x607018,this['pos'],this['start'],!0x0)))return-0x1;if(0x3a!=_0x607018['charCodeAt'](this['pos']))return this['stage']=-0x1;this['elts']['push'](elt(Type['LinkMark'],this['pos']+this['start'],this['pos']+this['start']+0x1)),this['pos']++;}else{if(0x1!=this['stage']){if(0x2==this['stage']){let _0x48fd9c=skipSpace(_0x607018,this['pos']),_0x4868a2=0x0;if(_0x48fd9c>this['pos']){let _0xec4ec9=parseLinkTitle(_0x607018,_0x48fd9c,this['start']);if(_0xec4ec9){let _0x515f87=lineEnd(_0x607018,_0xec4ec9['to']-this['start']);_0x515f87>0x0&&(this['nextStage'](_0xec4ec9),_0x4868a2=_0x515f87);}}return _0x4868a2||(_0x4868a2=lineEnd(_0x607018,this['pos'])),_0x4868a2>0x0&&_0x4868a2<_0x607018['length']?_0x4868a2:-0x1;}return lineEnd(_0x607018,this['pos']);}if(!this['nextStage'](parseURL(_0x607018,skipSpace(_0x607018,this['pos']),this['start'])))return-0x1;}}}}function lineEnd(_0x3ff788,_0xcb46b1){for(;_0xcb46b1<_0x3ff788['length'];_0xcb46b1++){let _0x349d96=_0x3ff788['charCodeAt'](_0xcb46b1);if(0xa==_0x349d96)break;if(!space(_0x349d96))return-0x1;}return _0xcb46b1;}class SetextHeadingParser{['nextLine'](_0x3195fe,_0x4a0ec9,_0x475b86){let _0x11c799=_0x4a0ec9['depth']<_0x3195fe['stack']['length']?-0x1:isSetextUnderline(_0x4a0ec9),_0x272dba=_0x4a0ec9['next'];if(_0x11c799<0x0)return!0x1;let _0x52f002=elt(Type['HeaderMark'],_0x3195fe['lineStart']+_0x4a0ec9['pos'],_0x3195fe['lineStart']+_0x11c799);return _0x3195fe['nextLine'](),_0x3195fe['addLeafElement'](_0x475b86,elt(0x3d==_0x272dba?Type['SetextHeading1']:Type['SetextHeading2'],_0x475b86['start'],_0x3195fe['prevLineEnd'](),[..._0x3195fe['parser']['parseInline'](_0x475b86['content'],_0x475b86['start']),_0x52f002])),!0x0;}['finish'](){return!0x1;}}const DefaultLeafBlocks={'LinkReference':(_0xf52a4,_0x2f054f)=>0x5b==_0x2f054f['content']['charCodeAt'](0x0)?new LinkReferenceParser(_0x2f054f):null,'SetextHeading':()=>new SetextHeadingParser()},DefaultEndLeaf=[(_0x48bb90,_0x4759e8)=>isAtxHeading(_0x4759e8)>=0x0,(_0x5dfabf,_0x5e42cb)=>isFencedCode(_0x5e42cb)>=0x0,(_0x41da67,_0x15321c)=>isBlockquote(_0x15321c)>=0x0,(_0x3f1ec6,_0x5e8f9d)=>isBulletList(_0x5e8f9d,_0x3f1ec6,!0x0)>=0x0,(_0x5c4fd9,_0x3d7b6f)=>isOrderedList(_0x3d7b6f,_0x5c4fd9,!0x0)>=0x0,(_0x3d09f6,_0x250c93)=>isHorizontalRule(_0x250c93,_0x3d09f6,!0x0)>=0x0,(_0x1e7989,_0x5ea96d)=>isHTMLBlock(_0x5ea96d,_0x1e7989,!0x0)>=0x0],scanLineResult={'text':'','end':0x0};class BlockContext{constructor(_0x54f126,_0x312378,_0x18d15a,_0x3664c5){this['parser']=_0x54f126,this['input']=_0x312378,this['ranges']=_0x3664c5,this['line']=new Line(),this['atEnd']=!0x1,this['reusePlaceholders']=new Map(),this['stoppedAt']=null,this['rangeI']=0x0,this['to']=_0x3664c5[_0x3664c5['length']-0x1]['to'],this['lineStart']=this['absoluteLineStart']=this['absoluteLineEnd']=_0x3664c5[0x0]['from'],this['block']=CompositeBlock['create'](Type['Document'],0x0,this['lineStart'],0x0,0x0),this['stack']=[this['block']],this['fragments']=_0x18d15a['length']?new FragmentCursor(_0x18d15a,_0x312378):null,this['readLine']();}get['parsedPos'](){return this['absoluteLineStart'];}['advance'](){if(null!=this['stoppedAt']&&this['absoluteLineStart']>this['stoppedAt'])return this['finish']();let {line:_0x42c798}=this;for(;;){for(let _0x543582=0x0;;){let _0x27414c=_0x42c798['depth']<this['stack']['length']?this['stack'][this['stack']['length']-0x1]:null;for(;_0x543582<_0x42c798['markers']['length']&&(!_0x27414c||_0x42c798['markers'][_0x543582]['from']<_0x27414c['end']);){let _0x1c1fc9=_0x42c798['markers'][_0x543582++];this['addNode'](_0x1c1fc9['type'],_0x1c1fc9['from'],_0x1c1fc9['to']);}if(!_0x27414c)break;this['finishContext']();}if(_0x42c798['pos']<_0x42c798['text']['length'])break;if(!this['nextLine']())return this['finish']();}if(this['fragments']&&this['reuseFragment'](_0x42c798['basePos']))return null;t:for(;;){for(let _0x53c827 of this['parser']['blockParsers'])if(_0x53c827){let _0x1a678a=_0x53c827(this,_0x42c798);if(0x0!=_0x1a678a){if(0x1==_0x1a678a)return null;_0x42c798['forward']();continue t;}}break;}let _0x5667c3=new LeafBlock(this['lineStart']+_0x42c798['pos'],_0x42c798['text']['slice'](_0x42c798['pos']));for(let _0x3c3e1e of this['parser']['leafBlockParsers'])if(_0x3c3e1e){let _0x5ce028=_0x3c3e1e(this,_0x5667c3);_0x5ce028&&_0x5667c3['parsers']['push'](_0x5ce028);}t:for(;this['nextLine']()&&_0x42c798['pos']!=_0x42c798['text']['length'];){if(_0x42c798['indent']<_0x42c798['baseIndent']+0x4){for(let _0x4b4ca6 of this['parser']['endLeafBlock'])if(_0x4b4ca6(this,_0x42c798,_0x5667c3))break t;}for(let _0x267000 of _0x5667c3['parsers'])if(_0x267000['nextLine'](this,_0x42c798,_0x5667c3))return null;_0x5667c3['content']+='\x0a'+_0x42c798['scrub']();for(let _0x2040b7 of _0x42c798['markers'])_0x5667c3['marks']['push'](_0x2040b7);}return this['finishLeaf'](_0x5667c3),null;}['stopAt'](_0x12ff54){if(null!=this['stoppedAt']&&this['stoppedAt']<_0x12ff54)throw new RangeError('Can\x27t\x20move\x20stoppedAt\x20forward');this['stoppedAt']=_0x12ff54;}['reuseFragment'](_0x13c481){if(!this['fragments']['moveTo'](this['absoluteLineStart']+_0x13c481,this['absoluteLineStart'])||!this['fragments']['matches'](this['block']['hash']))return!0x1;let _0x396ebe=this['fragments']['takeNodes'](this);return!!_0x396ebe&&(this['absoluteLineStart']+=_0x396ebe,this['lineStart']=toRelative(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'](_0x308b38=this['depth']-0x1){return this['parser']['nodeSet']['types'][this['stack'][_0x308b38]['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'](_0x314046){let _0x4f3a37=scanLineResult;if(_0x4f3a37['end']=_0x314046,_0x314046>=this['to'])_0x4f3a37['text']='';else{if(_0x4f3a37['text']=this['lineChunkAt'](_0x314046),_0x4f3a37['end']+=_0x4f3a37['text']['length'],this['ranges']['length']>0x1){let _0x12a11e=this['absoluteLineStart'],_0x4ae7f7=this['rangeI'];for(;this['ranges'][_0x4ae7f7]['to']<_0x4f3a37['end'];){_0x4ae7f7++;let _0x37dd26=this['ranges'][_0x4ae7f7]['from'],_0x34d70e=this['lineChunkAt'](_0x37dd26);_0x4f3a37['end']=_0x37dd26+_0x34d70e['length'],_0x4f3a37['text']=_0x4f3a37['text']['slice'](0x0,this['ranges'][_0x4ae7f7-0x1]['to']-_0x12a11e)+_0x34d70e,_0x12a11e=_0x4f3a37['end']-_0x4f3a37['text']['length'];}}}return _0x4f3a37;}['readLine'](){let {line:_0x54ef67}=this,{text:_0x31bfd2,end:_0x57c69c}=this['scanLine'](this['absoluteLineStart']);for(this['absoluteLineEnd']=_0x57c69c,_0x54ef67['reset'](_0x31bfd2);_0x54ef67['depth']<this['stack']['length'];_0x54ef67['depth']++){let _0xfb127d=this['stack'][_0x54ef67['depth']],_0x212cef=this['parser']['skipContextMarkup'][_0xfb127d['type']];if(!_0x212cef)throw new Error('Unhandled\x20block\x20context\x20'+Type[_0xfb127d['type']]);let _0x2c4f2b=this['line']['markers']['length'];if(!_0x212cef(_0xfb127d,this,_0x54ef67)){this['line']['markers']['length']>_0x2c4f2b&&(_0xfb127d['end']=this['line']['markers'][this['line']['markers']['length']-0x1]['to']);break;}_0x54ef67['forward']();}}['lineChunkAt'](_0x2b6179){let _0x1b2415,_0x4b13ab=this['input']['chunk'](_0x2b6179);if(this['input']['lineChunks'])_0x1b2415='\x0a'==_0x4b13ab?'':_0x4b13ab;else{let _0x27b654=_0x4b13ab['indexOf']('\x0a');_0x1b2415=_0x27b654<0x0?_0x4b13ab:_0x4b13ab['slice'](0x0,_0x27b654);}return _0x2b6179+_0x1b2415['length']>this['to']?_0x1b2415['slice'](0x0,this['to']-_0x2b6179):_0x1b2415;}['prevLineEnd'](){return this['atEnd']?this['lineStart']:this['lineStart']-0x1;}['startContext'](_0x460162,_0x29af68,_0x27949e=0x0){this['block']=CompositeBlock['create'](_0x460162,_0x27949e,this['lineStart']+_0x29af68,this['block']['hash'],this['lineStart']+this['line']['text']['length']),this['stack']['push'](this['block']);}['startComposite'](_0x2a4782,_0x32263d,_0x429a45=0x0){this['startContext'](this['parser']['getNodeType'](_0x2a4782),_0x32263d,_0x429a45);}['addNode'](_0x54ec4a,_0xc290dd,_0x392e88){'number'==typeof _0x54ec4a&&(_0x54ec4a=new Tree(this['parser']['nodeSet']['types'][_0x54ec4a],none,none,(null!=_0x392e88?_0x392e88:this['prevLineEnd']())-_0xc290dd)),this['block']['addChild'](_0x54ec4a,_0xc290dd-this['block']['from']);}['addElement'](_0x1aed27){this['block']['addChild'](_0x1aed27['toTree'](this['parser']['nodeSet']),_0x1aed27['from']-this['block']['from']);}['addLeafElement'](_0x3ef9e2,_0x1a4d48){this['addNode'](this['buffer']['writeElements'](injectMarks(_0x1a4d48['children'],_0x3ef9e2['marks']),-_0x1a4d48['from'])['finish'](_0x1a4d48['type'],_0x1a4d48['to']-_0x1a4d48['from']),_0x1a4d48['from']);}['finishContext'](){let _0x96eb35=this['stack']['pop'](),_0x12c0b3=this['stack'][this['stack']['length']-0x1];_0x12c0b3['addChild'](_0x96eb35['toTree'](this['parser']['nodeSet']),_0x96eb35['from']-_0x12c0b3['from']),this['block']=_0x12c0b3;}['finish'](){for(;this['stack']['length']>0x1;)this['finishContext']();return this['addGaps'](this['block']['toTree'](this['parser']['nodeSet'],this['lineStart']));}['addGaps'](_0x5808e8){return this['ranges']['length']>0x1?injectGaps(this['ranges'],0x0,_0x5808e8['topNode'],this['ranges'][0x0]['from'],this['reusePlaceholders']):_0x5808e8;}['finishLeaf'](_0x30452e){for(let _0x59109a of _0x30452e['parsers'])if(_0x59109a['finish'](this,_0x30452e))return;let _0x4b6e0a=injectMarks(this['parser']['parseInline'](_0x30452e['content'],_0x30452e['start']),_0x30452e['marks']);this['addNode'](this['buffer']['writeElements'](_0x4b6e0a,-_0x30452e['start'])['finish'](Type['Paragraph'],_0x30452e['content']['length']),_0x30452e['start']);}['elt'](_0x16b7c7,_0x3bb64c,_0x596012,_0x25d05b){return'string'==typeof _0x16b7c7?elt(this['parser']['getNodeType'](_0x16b7c7),_0x3bb64c,_0x596012,_0x25d05b):new TreeElement(_0x16b7c7,_0x3bb64c);}get['buffer'](){return new Buffer$1(this['parser']['nodeSet']);}}function injectGaps(_0x4fcbdd,_0x42e351,_0x14ff4c,_0x17e4ec,_0x20d9bc){let _0x3854c6=_0x4fcbdd[_0x42e351]['to'],_0x62afe3=[],_0x2ca11c=[],_0x23cf51=_0x14ff4c['from']+_0x17e4ec;function _0x20d694(_0x5a235f,_0x506921){for(;_0x506921?_0x5a235f>=_0x3854c6:_0x5a235f>_0x3854c6;){let _0x5b1161=_0x4fcbdd[_0x42e351+0x1]['from']-_0x3854c6;_0x17e4ec+=_0x5b1161,_0x5a235f+=_0x5b1161,_0x42e351++,_0x3854c6=_0x4fcbdd[_0x42e351]['to'];}}for(let _0x27aa64=_0x14ff4c['firstChild'];_0x27aa64;_0x27aa64=_0x27aa64['nextSibling']){_0x20d694(_0x27aa64['from']+_0x17e4ec,!0x0);let _0xd3c169,_0xfd53fa=_0x27aa64['from']+_0x17e4ec,_0x2f407e=_0x20d9bc['get'](_0x27aa64['tree']);_0x2f407e?_0xd3c169=_0x2f407e:_0x27aa64['to']+_0x17e4ec>_0x3854c6?(_0xd3c169=injectGaps(_0x4fcbdd,_0x42e351,_0x27aa64,_0x17e4ec,_0x20d9bc),_0x20d694(_0x27aa64['to']+_0x17e4ec,!0x1)):_0xd3c169=_0x27aa64['toTree'](),_0x62afe3['push'](_0xd3c169),_0x2ca11c['push'](_0xfd53fa-_0x23cf51);}return _0x20d694(_0x14ff4c['to']+_0x17e4ec,!0x1),new Tree(_0x14ff4c['type'],_0x62afe3,_0x2ca11c,_0x14ff4c['to']+_0x17e4ec-_0x23cf51,_0x14ff4c['tree']?_0x14ff4c['tree']['propValues']:void 0x0);}class MarkdownParser extends Parser{constructor(_0x526431,_0x2aa46c,_0x42ec7d,_0x4c92ea,_0x261b1f,_0x43ad54,_0x2980b8,_0x59423e,_0x4a58ed){super(),this['nodeSet']=_0x526431,this['blockParsers']=_0x2aa46c,this['leafBlockParsers']=_0x42ec7d,this['blockNames']=_0x4c92ea,this['endLeafBlock']=_0x261b1f,this['skipContextMarkup']=_0x43ad54,this['inlineParsers']=_0x2980b8,this['inlineNames']=_0x59423e,this['wrappers']=_0x4a58ed,this['nodeTypes']=Object['create'](null);for(let t of _0x526431['types'])this['nodeTypes'][t['name']]=t['id'];}['createParse'](_0x59964f,_0x113362,_0x5376af){let _0x1e5eda=new BlockContext(this,_0x59964f,_0x113362,_0x5376af);for(let _0x72d63f of this['wrappers'])_0x1e5eda=_0x72d63f(_0x1e5eda,_0x59964f,_0x113362,_0x5376af);return _0x1e5eda;}['configure'](_0x2a74d4){let _0xf4088b=resolveConfig(_0x2a74d4);if(!_0xf4088b)return this;let {nodeSet:_0x1c4463,skipContextMarkup:_0x150ea2}=this,_0xb65434=this['blockParsers']['slice'](),_0x145582=this['leafBlockParsers']['slice'](),_0x3ee16b=this['blockNames']['slice'](),_0x18e553=this['inlineParsers']['slice'](),_0x5cc83a=this['inlineNames']['slice'](),_0x3a67eb=this['endLeafBlock']['slice'](),_0x22a4cc=this['wrappers'];if(nonEmpty(_0xf4088b['defineNodes'])){_0x150ea2=Object['assign']({},_0x150ea2);let _0x4fca56,_0x1f2294=_0x1c4463['types']['slice']();for(let _0x13ae77 of _0xf4088b['defineNodes']){let {name:_0x527990,block:_0x55df42,composite:_0x32d836,style:_0x2d728b}='string'==typeof _0x13ae77?{'name':_0x13ae77}:_0x13ae77;if(_0x1f2294['some'](t=>t['name']==_0x527990))continue;_0x32d836&&(_0x150ea2[_0x1f2294['length']]=(_0x55d2b5,_0xe971a2,_0x17be55)=>_0x32d836(_0xe971a2,_0x17be55,_0x55d2b5['value']));let _0x5a9350=_0x1f2294['length'],_0x3d134f=_0x32d836?['Block','BlockContext']:_0x55df42?_0x5a9350>=Type['ATXHeading1']&&_0x5a9350<=Type['SetextHeading2']?['Block','LeafBlock','Heading']:['Block','LeafBlock']:void 0x0;_0x1f2294['push'](NodeType['define']({'id':_0x5a9350,'name':_0x527990,'props':_0x3d134f&&[[NodeProp['group'],_0x3d134f]]})),_0x2d728b&&(_0x4fca56||(_0x4fca56={}),Array['isArray'](_0x2d728b)||_0x2d728b instanceof Tag?_0x4fca56[_0x527990]=_0x2d728b:Object['assign'](_0x4fca56,_0x2d728b));}_0x1c4463=new NodeSet(_0x1f2294),_0x4fca56&&(_0x1c4463=_0x1c4463['extend'](styleTags(_0x4fca56)));}if(nonEmpty(_0xf4088b['props'])&&(_0x1c4463=_0x1c4463['extend'](..._0xf4088b['props'])),nonEmpty(_0xf4088b['remove']))for(let _0x27f54a of _0xf4088b['remove']){let _0x41518e=this['blockNames']['indexOf'](_0x27f54a),_0x14b550=this['inlineNames']['indexOf'](_0x27f54a);_0x41518e>-0x1&&(_0xb65434[_0x41518e]=_0x145582[_0x41518e]=void 0x0),_0x14b550>-0x1&&(_0x18e553[_0x14b550]=void 0x0);}if(nonEmpty(_0xf4088b['parseBlock']))for(let _0x4eaed9 of _0xf4088b['parseBlock']){let _0x1553e8=_0x3ee16b['indexOf'](_0x4eaed9['name']);if(_0x1553e8>-0x1)_0xb65434[_0x1553e8]=_0x4eaed9['parse'],_0x145582[_0x1553e8]=_0x4eaed9['leaf'];else{let _0x179040=_0x4eaed9['before']?findName(_0x3ee16b,_0x4eaed9['before']):_0x4eaed9['after']?findName(_0x3ee16b,_0x4eaed9['after'])+0x1:_0x3ee16b['length']-0x1;_0xb65434['splice'](_0x179040,0x0,_0x4eaed9['parse']),_0x145582['splice'](_0x179040,0x0,_0x4eaed9['leaf']),_0x3ee16b['splice'](_0x179040,0x0,_0x4eaed9['name']);}_0x4eaed9['endLeaf']&&_0x3a67eb['push'](_0x4eaed9['endLeaf']);}if(nonEmpty(_0xf4088b['parseInline']))for(let _0xc77d16 of _0xf4088b['parseInline']){let _0x1093ff=_0x5cc83a['indexOf'](_0xc77d16['name']);if(_0x1093ff>-0x1)_0x18e553[_0x1093ff]=_0xc77d16['parse'];else{let _0x21d23d=_0xc77d16['before']?findName(_0x5cc83a,_0xc77d16['before']):_0xc77d16['after']?findName(_0x5cc83a,_0xc77d16['after'])+0x1:_0x5cc83a['length']-0x1;_0x18e553['splice'](_0x21d23d,0x0,_0xc77d16['parse']),_0x5cc83a['splice'](_0x21d23d,0x0,_0xc77d16['name']);}}return _0xf4088b['wrap']&&(_0x22a4cc=_0x22a4cc['concat'](_0xf4088b['wrap'])),new MarkdownParser(_0x1c4463,_0xb65434,_0x145582,_0x3ee16b,_0x3a67eb,_0x150ea2,_0x18e553,_0x5cc83a,_0x22a4cc);}['getNodeType'](_0x2391ae){let _0x215e08=this['nodeTypes'][_0x2391ae];if(null==_0x215e08)throw new RangeError('Unknown\x20node\x20type\x20\x27'+_0x2391ae+'\x27');return _0x215e08;}['parseInline'](_0x26b0d1,_0x194445){let _0x1e53a2=new InlineContext(this,_0x26b0d1,_0x194445);t:for(let _0x433d84=_0x194445;_0x433d84<_0x1e53a2['end'];){let _0x269992=_0x1e53a2['char'](_0x433d84);for(let _0x2224c0 of this['inlineParsers'])if(_0x2224c0){let _0x2bc031=_0x2224c0(_0x1e53a2,_0x269992,_0x433d84);if(_0x2bc031>=0x0){_0x433d84=_0x2bc031;continue t;}}_0x433d84++;}return _0x1e53a2['resolveMarkers'](0x0);}}function nonEmpty(_0x4ff30e){return null!=_0x4ff30e&&_0x4ff30e['length']>0x0;}function resolveConfig(_0x1f6a0e){if(!Array['isArray'](_0x1f6a0e))return _0x1f6a0e;if(0x0==_0x1f6a0e['length'])return null;let _0x17c169=resolveConfig(_0x1f6a0e[0x0]);if(0x1==_0x1f6a0e['length'])return _0x17c169;let _0x4a3615=resolveConfig(_0x1f6a0e['slice'](0x1));if(!_0x4a3615||!_0x17c169)return _0x17c169||_0x4a3615;let _0x4bfbae=(_0x503925,_0x5269b4)=>(_0x503925||none)['concat'](_0x5269b4||none),_0xd9c9b=_0x17c169['wrap'],_0x4a7260=_0x4a3615['wrap'];return{'props':_0x4bfbae(_0x17c169['props'],_0x4a3615['props']),'defineNodes':_0x4bfbae(_0x17c169['defineNodes'],_0x4a3615['defineNodes']),'parseBlock':_0x4bfbae(_0x17c169['parseBlock'],_0x4a3615['parseBlock']),'parseInline':_0x4bfbae(_0x17c169['parseInline'],_0x4a3615['parseInline']),'remove':_0x4bfbae(_0x17c169['remove'],_0x4a3615['remove']),'wrap':_0xd9c9b?_0x4a7260?(_0x585873,_0x4b72c4,_0x18ed25,_0x11e180)=>_0xd9c9b(_0x4a7260(_0x585873,_0x4b72c4,_0x18ed25,_0x11e180),_0x4b72c4,_0x18ed25,_0x11e180):_0xd9c9b:_0x4a7260};}function findName(_0x407db9,_0xe6eb5d){let _0x287ee0=_0x407db9['indexOf'](_0xe6eb5d);if(_0x287ee0<0x0)throw new RangeError('Position\x20specified\x20relative\x20to\x20unknown\x20parser\x20'+_0xe6eb5d);return _0x287ee0;}let nodeTypes=[NodeType['none']];for(let e=0x1,i;i=Type[e];e++)nodeTypes[e]=NodeType['define']({'id':e,'name':i,'props':e>=Type['Escape']?[]:[[NodeProp['group'],e in DefaultSkipMarkup?['Block','BlockContext']:['Block','LeafBlock']]],'top':'Document'==i});const none=[];let Buffer$1=class{constructor(_0xb4ea23){this['nodeSet']=_0xb4ea23,this['content']=[],this['nodes']=[];}['write'](_0x1fa923,_0x321ff1,_0x2f5f46,_0x5475e3=0x0){return this['content']['push'](_0x1fa923,_0x321ff1,_0x2f5f46,0x4+0x4*_0x5475e3),this;}['writeElements'](_0x3819aa,_0x39ceb5=0x0){for(let _0x23bfaf of _0x3819aa)_0x23bfaf['writeTo'](this,_0x39ceb5);return this;}['finish'](_0x304d61,_0x206185){return Tree['build']({'buffer':this['content'],'nodeSet':this['nodeSet'],'reused':this['nodes'],'topID':_0x304d61,'length':_0x206185});}},Element$1=class{constructor(_0x2852da,_0x22413b,_0x4ced44,_0xe79084=none){this['type']=_0x2852da,this['from']=_0x22413b,this['to']=_0x4ced44,this['children']=_0xe79084;}['writeTo'](_0x518f72,_0x4e5529){let _0x4f75de=_0x518f72['content']['length'];_0x518f72['writeElements'](this['children'],_0x4e5529),_0x518f72['content']['push'](this['type'],this['from']+_0x4e5529,this['to']+_0x4e5529,_0x518f72['content']['length']+0x4-_0x4f75de);}['toTree'](_0x1a3553){return new Buffer$1(_0x1a3553)['writeElements'](this['children'],-this['from'])['finish'](this['type'],this['to']-this['from']);}};class TreeElement{constructor(_0x2bd107,_0x3fb961){this['tree']=_0x2bd107,this['from']=_0x3fb961;}get['to'](){return this['from']+this['tree']['length'];}get['type'](){return this['tree']['type']['id'];}get['children'](){return none;}['writeTo'](_0x540f09,_0x2fc191){_0x540f09['nodes']['push'](this['tree']),_0x540f09['content']['push'](_0x540f09['nodes']['length']-0x1,this['from']+_0x2fc191,this['to']+_0x2fc191,-0x1);}['toTree'](){return this['tree'];}}function elt(_0x3be035,_0x60527,_0xb22a85,_0x12ac8a){return new Element$1(_0x3be035,_0x60527,_0xb22a85,_0x12ac8a);}const EmphasisUnderscore={'resolve':'Emphasis','mark':'EmphasisMark'},EmphasisAsterisk={'resolve':'Emphasis','mark':'EmphasisMark'},LinkStart={},ImageStart={};class InlineDelimiter{constructor(_0x5f34fa,_0x22e3a3,_0xccd8f8,_0x441152){this['type']=_0x5f34fa,this['from']=_0x22e3a3,this['to']=_0xccd8f8,this['side']=_0x441152;}}const Escapable='!\x22#$%&\x27()*+,-./:;<=>?@[\x5c]^_`{|}~';let Punctuation=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Punctuation=new RegExp('[\x5cp{S}|\x5cp{P}]','u');}catch(_0x5d8967){}const DefaultInline={'Escape'(_0x36e770,_0x45d0f5,_0x56ef88){if(0x5c!=_0x45d0f5||_0x56ef88==_0x36e770['end']-0x1)return-0x1;let _0x18b5ca=_0x36e770['char'](_0x56ef88+0x1);for(let _0x130aa9=0x0;_0x130aa9<Escapable['length'];_0x130aa9++)if(Escapable['charCodeAt'](_0x130aa9)==_0x18b5ca)return _0x36e770['append'](elt(Type['Escape'],_0x56ef88,_0x56ef88+0x2));return-0x1;},'Entity'(_0x2d2edf,_0x5a82a2,_0x48beca){if(0x26!=_0x5a82a2)return-0x1;let _0x32f354=/^(?:#\d+|#x[a-f\d]+|\w+);/i['exec'](_0x2d2edf['slice'](_0x48beca+0x1,_0x48beca+0x1f));return _0x32f354?_0x2d2edf['append'](elt(Type['Entity'],_0x48beca,_0x48beca+0x1+_0x32f354[0x0]['length'])):-0x1;},'InlineCode'(_0x104879,_0x4d7c7d,_0x344640){if(0x60!=_0x4d7c7d||_0x344640&&0x60==_0x104879['char'](_0x344640-0x1))return-0x1;let _0x5ae384=_0x344640+0x1;for(;_0x5ae384<_0x104879['end']&&0x60==_0x104879['char'](_0x5ae384);)_0x5ae384++;let _0x5b0db2=_0x5ae384-_0x344640,_0x5c47f8=0x0;for(;_0x5ae384<_0x104879['end'];_0x5ae384++)if(0x60==_0x104879['char'](_0x5ae384)){if(_0x5c47f8++,_0x5c47f8==_0x5b0db2&&0x60!=_0x104879['char'](_0x5ae384+0x1))return _0x104879['append'](elt(Type['InlineCode'],_0x344640,_0x5ae384+0x1,[elt(Type['CodeMark'],_0x344640,_0x344640+_0x5b0db2),elt(Type['CodeMark'],_0x5ae384+0x1-_0x5b0db2,_0x5ae384+0x1)]));}else _0x5c47f8=0x0;return-0x1;},'HTMLTag'(_0xdb2151,_0x24484a,_0x5a5a49){if(0x3c!=_0x24484a||_0x5a5a49==_0xdb2151['end']-0x1)return-0x1;let _0x51c6cc=_0xdb2151['slice'](_0x5a5a49+0x1,_0xdb2151['end']),_0x3a3f26=/^(?:[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'](_0x51c6cc);if(_0x3a3f26)return _0xdb2151['append'](elt(Type['Autolink'],_0x5a5a49,_0x5a5a49+0x1+_0x3a3f26[0x0]['length'],[elt(Type['LinkMark'],_0x5a5a49,_0x5a5a49+0x1),elt(Type['URL'],_0x5a5a49+0x1,_0x5a5a49+_0x3a3f26[0x0]['length']),elt(Type['LinkMark'],_0x5a5a49+_0x3a3f26[0x0]['length'],_0x5a5a49+0x1+_0x3a3f26[0x0]['length'])]));let _0x10a5bd=/^!--[^>](?:-[^-]|[^-])*?-->/i['exec'](_0x51c6cc);if(_0x10a5bd)return _0xdb2151['append'](elt(Type['Comment'],_0x5a5a49,_0x5a5a49+0x1+_0x10a5bd[0x0]['length']));let _0x3a581b=/^\?[^]*?\?>/['exec'](_0x51c6cc);if(_0x3a581b)return _0xdb2151['append'](elt(Type['ProcessingInstruction'],_0x5a5a49,_0x5a5a49+0x1+_0x3a581b[0x0]['length']));let _0x4eaff3=/^(?:![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'](_0x51c6cc);return _0x4eaff3?_0xdb2151['append'](elt(Type['HTMLTag'],_0x5a5a49,_0x5a5a49+0x1+_0x4eaff3[0x0]['length'])):-0x1;},'Emphasis'(_0x4b2475,_0x4ff22a,_0x4cbbf6){if(0x5f!=_0x4ff22a&&0x2a!=_0x4ff22a)return-0x1;let _0x1a26af=_0x4cbbf6+0x1;for(;_0x4b2475['char'](_0x1a26af)==_0x4ff22a;)_0x1a26af++;let _0x22f894=_0x4b2475['slice'](_0x4cbbf6-0x1,_0x4cbbf6),_0x1a8c03=_0x4b2475['slice'](_0x1a26af,_0x1a26af+0x1),_0x2d27e1=Punctuation['test'](_0x22f894),_0x2dc32d=Punctuation['test'](_0x1a8c03),_0x3fc38c=/\s|^$/['test'](_0x22f894),_0x47fe14=/\s|^$/['test'](_0x1a8c03),_0x35c49f=!_0x47fe14&&(!_0x2dc32d||_0x3fc38c||_0x2d27e1),_0x101b35=!_0x3fc38c&&(!_0x2d27e1||_0x47fe14||_0x2dc32d),_0x3c8315=_0x35c49f&&(0x2a==_0x4ff22a||!_0x101b35||_0x2d27e1),_0x57cb02=_0x101b35&&(0x2a==_0x4ff22a||!_0x35c49f||_0x2dc32d);return _0x4b2475['append'](new InlineDelimiter(0x5f==_0x4ff22a?EmphasisUnderscore:EmphasisAsterisk,_0x4cbbf6,_0x1a26af,(_0x3c8315?0x1:0x0)|(_0x57cb02?0x2:0x0)));},'HardBreak'(_0x2c9376,_0x4445cf,_0xd648a1){if(0x5c==_0x4445cf&&0xa==_0x2c9376['char'](_0xd648a1+0x1))return _0x2c9376['append'](elt(Type['HardBreak'],_0xd648a1,_0xd648a1+0x2));if(0x20==_0x4445cf){let _0x355578=_0xd648a1+0x1;for(;0x20==_0x2c9376['char'](_0x355578);)_0x355578++;if(0xa==_0x2c9376['char'](_0x355578)&&_0x355578>=_0xd648a1+0x2)return _0x2c9376['append'](elt(Type['HardBreak'],_0xd648a1,_0x355578+0x1));}return-0x1;},'Link':(_0x52fbfb,_0xf2bc3f,_0x5d5d90)=>0x5b==_0xf2bc3f?_0x52fbfb['append'](new InlineDelimiter(LinkStart,_0x5d5d90,_0x5d5d90+0x1,0x1)):-0x1,'Image':(_0xafea52,_0x7b1c0,_0x36bdf7)=>0x21==_0x7b1c0&&0x5b==_0xafea52['char'](_0x36bdf7+0x1)?_0xafea52['append'](new InlineDelimiter(ImageStart,_0x36bdf7,_0x36bdf7+0x2,0x1)):-0x1,'LinkEnd'(_0x31e13c,_0x321b1c,_0x4d560c){if(0x5d!=_0x321b1c)return-0x1;for(let _0x273c8b=_0x31e13c['parts']['length']-0x1;_0x273c8b>=0x0;_0x273c8b--){let _0xd5e243=_0x31e13c['parts'][_0x273c8b];if(_0xd5e243 instanceof InlineDelimiter&&(_0xd5e243['type']==LinkStart||_0xd5e243['type']==ImageStart)){if(!_0xd5e243['side']||_0x31e13c['skipSpace'](_0xd5e243['to'])==_0x4d560c&&!/[(\[]/['test'](_0x31e13c['slice'](_0x4d560c+0x1,_0x4d560c+0x2)))return _0x31e13c['parts'][_0x273c8b]=null,-0x1;let _0x531a77=_0x31e13c['takeContent'](_0x273c8b),_0x2b51e6=_0x31e13c['parts'][_0x273c8b]=finishLink(_0x31e13c,_0x531a77,_0xd5e243['type']==LinkStart?Type['Link']:Type['Image'],_0xd5e243['from'],_0x4d560c+0x1);if(_0xd5e243['type']==LinkStart)for(let _0x2817df=0x0;_0x2817df<_0x273c8b;_0x2817df++){let _0x149b24=_0x31e13c['parts'][_0x2817df];_0x149b24 instanceof InlineDelimiter&&_0x149b24['type']==LinkStart&&(_0x149b24['side']=0x0);}return _0x2b51e6['to'];}}return-0x1;}};function finishLink(_0x2700e0,_0x52aa6f,_0x91c8b4,_0x19b146,_0x311e88){let {text:_0x5cebc3}=_0x2700e0,_0x517adc=_0x2700e0['char'](_0x311e88),_0x3ca3b2=_0x311e88;if(_0x52aa6f['unshift'](elt(Type['LinkMark'],_0x19b146,_0x19b146+(_0x91c8b4==Type['Image']?0x2:0x1))),_0x52aa6f['push'](elt(Type['LinkMark'],_0x311e88-0x1,_0x311e88)),0x28==_0x517adc){let _0x3bd94c,_0x20613f=_0x2700e0['skipSpace'](_0x311e88+0x1),_0x12feb2=parseURL(_0x5cebc3,_0x20613f-_0x2700e0['offset'],_0x2700e0['offset']);_0x12feb2&&(_0x20613f=_0x2700e0['skipSpace'](_0x12feb2['to']),_0x20613f!=_0x12feb2['to']&&(_0x3bd94c=parseLinkTitle(_0x5cebc3,_0x20613f-_0x2700e0['offset'],_0x2700e0['offset']),_0x3bd94c&&(_0x20613f=_0x2700e0['skipSpace'](_0x3bd94c['to'])))),0x29==_0x2700e0['char'](_0x20613f)&&(_0x52aa6f['push'](elt(Type['LinkMark'],_0x311e88,_0x311e88+0x1)),_0x3ca3b2=_0x20613f+0x1,_0x12feb2&&_0x52aa6f['push'](_0x12feb2),_0x3bd94c&&_0x52aa6f['push'](_0x3bd94c),_0x52aa6f['push'](elt(Type['LinkMark'],_0x20613f,_0x3ca3b2)));}else{if(0x5b==_0x517adc){let _0x39a59c=parseLinkLabel(_0x5cebc3,_0x311e88-_0x2700e0['offset'],_0x2700e0['offset'],!0x1);_0x39a59c&&(_0x52aa6f['push'](_0x39a59c),_0x3ca3b2=_0x39a59c['to']);}}return elt(_0x91c8b4,_0x19b146,_0x3ca3b2,_0x52aa6f);}function parseURL(_0x3a62b8,_0x233327,_0x4a9487){if(0x3c==_0x3a62b8['charCodeAt'](_0x233327)){for(let _0x3a4bd3=_0x233327+0x1;_0x3a4bd3<_0x3a62b8['length'];_0x3a4bd3++){let _0x11194f=_0x3a62b8['charCodeAt'](_0x3a4bd3);if(0x3e==_0x11194f)return elt(Type['URL'],_0x233327+_0x4a9487,_0x3a4bd3+0x1+_0x4a9487);if(0x3c==_0x11194f||0xa==_0x11194f)return!0x1;}return null;}{let _0x3c9d13=0x0,_0x42ced2=_0x233327;for(let _0xaff553=!0x1;_0x42ced2<_0x3a62b8['length'];_0x42ced2++){let _0xe6da0d=_0x3a62b8['charCodeAt'](_0x42ced2);if(space(_0xe6da0d))break;if(_0xaff553)_0xaff553=!0x1;else{if(0x28==_0xe6da0d)_0x3c9d13++;else{if(0x29==_0xe6da0d){if(!_0x3c9d13)break;_0x3c9d13--;}else 0x5c==_0xe6da0d&&(_0xaff553=!0x0);}}}return _0x42ced2>_0x233327?elt(Type['URL'],_0x233327+_0x4a9487,_0x42ced2+_0x4a9487):_0x42ced2==_0x3a62b8['length']&&null;}}function parseLinkTitle(_0x4755ac,_0xa479c4,_0x44e7bb){let _0x438bad=_0x4755ac['charCodeAt'](_0xa479c4);if(0x27!=_0x438bad&&0x22!=_0x438bad&&0x28!=_0x438bad)return!0x1;let _0x4b99d2=0x28==_0x438bad?0x29:_0x438bad;for(let _0x38321a=_0xa479c4+0x1,_0x59b8d7=!0x1;_0x38321a<_0x4755ac['length'];_0x38321a++){let _0x25e9ae=_0x4755ac['charCodeAt'](_0x38321a);if(_0x59b8d7)_0x59b8d7=!0x1;else{if(_0x25e9ae==_0x4b99d2)return elt(Type['LinkTitle'],_0xa479c4+_0x44e7bb,_0x38321a+0x1+_0x44e7bb);0x5c==_0x25e9ae&&(_0x59b8d7=!0x0);}}return null;}function parseLinkLabel(_0x1577fb,_0x5a4cff,_0x4d9924,_0x37aea1){for(let _0x285429=!0x1,_0x1d5546=_0x5a4cff+0x1,_0x38ee51=Math['min'](_0x1577fb['length'],_0x1d5546+0x3e7);_0x1d5546<_0x38ee51;_0x1d5546++){let _0x33742b=_0x1577fb['charCodeAt'](_0x1d5546);if(_0x285429)_0x285429=!0x1;else{if(0x5d==_0x33742b)return!_0x37aea1&&elt(Type['LinkLabel'],_0x5a4cff+_0x4d9924,_0x1d5546+0x1+_0x4d9924);if(_0x37aea1&&!space(_0x33742b)&&(_0x37aea1=!0x1),0x5b==_0x33742b)return!0x1;0x5c==_0x33742b&&(_0x285429=!0x0);}}return null;}class InlineContext{constructor(_0x2027f3,_0x20b564,_0x27279b){this['parser']=_0x2027f3,this['text']=_0x20b564,this['offset']=_0x27279b,this['parts']=[];}['char'](_0x4dd80a){return _0x4dd80a>=this['end']?-0x1:this['text']['charCodeAt'](_0x4dd80a-this['offset']);}get['end'](){return this['offset']+this['text']['length'];}['slice'](_0x36ddbe,_0x57ff6e){return this['text']['slice'](_0x36ddbe-this['offset'],_0x57ff6e-this['offset']);}['append'](_0x503d01){return this['parts']['push'](_0x503d01),_0x503d01['to'];}['addDelimiter'](_0x467eda,_0x3438d7,_0x56fd66,_0x1222a4,_0x3c75e4){return this['append'](new InlineDelimiter(_0x467eda,_0x3438d7,_0x56fd66,(_0x1222a4?0x1:0x0)|(_0x3c75e4?0x2:0x0)));}get['hasOpenLink'](){for(let _0x5b5d89=this['parts']['length']-0x1;_0x5b5d89>=0x0;_0x5b5d89--){let _0x2d4ef4=this['parts'][_0x5b5d89];if(_0x2d4ef4 instanceof InlineDelimiter&&(_0x2d4ef4['type']==LinkStart||_0x2d4ef4['type']==ImageStart))return!0x0;}return!0x1;}['addElement'](_0x3b10b5){return this['append'](_0x3b10b5);}['resolveMarkers'](_0x12c621){for(let _0x2ac106=_0x12c621;_0x2ac106<this['parts']['length'];_0x2ac106++){let _0xfb3bd3=this['parts'][_0x2ac106];if(!(_0xfb3bd3 instanceof InlineDelimiter&&_0xfb3bd3['type']['resolve']&&0x2&_0xfb3bd3['side']))continue;let _0x2a6e37,_0x477b42=_0xfb3bd3['type']==EmphasisUnderscore||_0xfb3bd3['type']==EmphasisAsterisk,_0x255fb9=_0xfb3bd3['to']-_0xfb3bd3['from'],_0x391d27=_0x2ac106-0x1;for(;_0x391d27>=_0x12c621;_0x391d27--){let _0x330cd0=this['parts'][_0x391d27];if(_0x330cd0 instanceof InlineDelimiter&&0x1&_0x330cd0['side']&&_0x330cd0['type']==_0xfb3bd3['type']&&!(_0x477b42&&(0x1&_0xfb3bd3['side']||0x2&_0x330cd0['side'])&&(_0x330cd0['to']-_0x330cd0['from']+_0x255fb9)%0x3==0x0&&((_0x330cd0['to']-_0x330cd0['from'])%0x3||_0x255fb9%0x3))){_0x2a6e37=_0x330cd0;break;}}if(!_0x2a6e37)continue;let _0x25759b=_0xfb3bd3['type']['resolve'],_0x23fd66=[],_0x5f5340=_0x2a6e37['from'],_0xbf7940=_0xfb3bd3['to'];if(_0x477b42){let _0x1bce24=Math['min'](0x2,_0x2a6e37['to']-_0x2a6e37['from'],_0x255fb9);_0x5f5340=_0x2a6e37['to']-_0x1bce24,_0xbf7940=_0xfb3bd3['from']+_0x1bce24,_0x25759b=0x1==_0x1bce24?'Emphasis':'StrongEmphasis';}_0x2a6e37['type']['mark']&&_0x23fd66['push'](this['elt'](_0x2a6e37['type']['mark'],_0x5f5340,_0x2a6e37['to']));for(let _0x570b9a=_0x391d27+0x1;_0x570b9a<_0x2ac106;_0x570b9a++)this['parts'][_0x570b9a]instanceof Element$1&&_0x23fd66['push'](this['parts'][_0x570b9a]),this['parts'][_0x570b9a]=null;_0xfb3bd3['type']['mark']&&_0x23fd66['push'](this['elt'](_0xfb3bd3['type']['mark'],_0xfb3bd3['from'],_0xbf7940));let _0x276d9b=this['elt'](_0x25759b,_0x5f5340,_0xbf7940,_0x23fd66);this['parts'][_0x391d27]=_0x477b42&&_0x2a6e37['from']!=_0x5f5340?new InlineDelimiter(_0x2a6e37['type'],_0x2a6e37['from'],_0x5f5340,_0x2a6e37['side']):null,(this['parts'][_0x2ac106]=_0x477b42&&_0xfb3bd3['to']!=_0xbf7940?new InlineDelimiter(_0xfb3bd3['type'],_0xbf7940,_0xfb3bd3['to'],_0xfb3bd3['side']):null)?this['parts']['splice'](_0x2ac106,0x0,_0x276d9b):this['parts'][_0x2ac106]=_0x276d9b;}let _0x1df61a=[];for(let _0x4f96c0=_0x12c621;_0x4f96c0<this['parts']['length'];_0x4f96c0++){let _0xcaf8ee=this['parts'][_0x4f96c0];_0xcaf8ee instanceof Element$1&&_0x1df61a['push'](_0xcaf8ee);}return _0x1df61a;}['findOpeningDelimiter'](_0x390dc0){for(let _0x48d447=this['parts']['length']-0x1;_0x48d447>=0x0;_0x48d447--){let _0x3112a9=this['parts'][_0x48d447];if(_0x3112a9 instanceof InlineDelimiter&&_0x3112a9['type']==_0x390dc0&&0x1&_0x3112a9['side'])return _0x48d447;}return null;}['takeContent'](_0x36736b){let _0x170dfb=this['resolveMarkers'](_0x36736b);return this['parts']['length']=_0x36736b,_0x170dfb;}['getDelimiterAt'](_0x3eabc4){let _0x50f02d=this['parts'][_0x3eabc4];return _0x50f02d instanceof InlineDelimiter?_0x50f02d:null;}['skipSpace'](_0x79b0c4){return skipSpace(this['text'],_0x79b0c4-this['offset'])+this['offset'];}['elt'](_0x23cb0c,_0x51f4ec,_0x488738,_0x4ed9e0){return'string'==typeof _0x23cb0c?elt(this['parser']['getNodeType'](_0x23cb0c),_0x51f4ec,_0x488738,_0x4ed9e0):new TreeElement(_0x23cb0c,_0x51f4ec);}}function injectMarks(_0x466b0a,_0x407860){if(!_0x407860['length'])return _0x466b0a;if(!_0x466b0a['length'])return _0x407860;let _0x4d936c=_0x466b0a['slice'](),_0x2e5d53=0x0;for(let _0x303ce6 of _0x407860){for(;_0x2e5d53<_0x4d936c['length']&&_0x4d936c[_0x2e5d53]['to']<_0x303ce6['to'];)_0x2e5d53++;if(_0x2e5d53<_0x4d936c['length']&&_0x4d936c[_0x2e5d53]['from']<_0x303ce6['from']){let _0x11af9d=_0x4d936c[_0x2e5d53];_0x11af9d instanceof Element$1&&(_0x4d936c[_0x2e5d53]=new Element$1(_0x11af9d['type'],_0x11af9d['from'],_0x11af9d['to'],injectMarks(_0x11af9d['children'],[_0x303ce6])));}else _0x4d936c['splice'](_0x2e5d53++,0x0,_0x303ce6);}return _0x4d936c;}InlineContext['linkStart']=LinkStart,InlineContext['imageStart']=ImageStart;const NotLast=[Type['CodeBlock'],Type['ListItem'],Type['OrderedList'],Type['BulletList']];class FragmentCursor{constructor(_0x3be203,_0x1bc2f2){this['fragments']=_0x3be203,this['input']=_0x1bc2f2,this['i']=0x0,this['fragment']=null,this['fragmentEnd']=-0x1,this['cursor']=null,_0x3be203['length']&&(this['fragment']=_0x3be203[this['i']++]);}['nextFragment'](){this['fragment']=this['i']<this['fragments']['length']?this['fragments'][this['i']++]:null,this['cursor']=null,this['fragmentEnd']=-0x1;}['moveTo'](_0x380ed1,_0x3dfb15){for(;this['fragment']&&this['fragment']['to']<=_0x380ed1;)this['nextFragment']();if(!this['fragment']||this['fragment']['from']>(_0x380ed1?_0x380ed1-0x1:0x0))return!0x1;if(this['fragmentEnd']<0x0){let _0x5d52d4=this['fragment']['to'];for(;_0x5d52d4>0x0&&'\x0a'!=this['input']['read'](_0x5d52d4-0x1,_0x5d52d4);)_0x5d52d4--;this['fragmentEnd']=_0x5d52d4?_0x5d52d4-0x1:0x0;}let _0x1e6dd=this['cursor'];_0x1e6dd||(_0x1e6dd=this['cursor']=this['fragment']['tree']['cursor'](),_0x1e6dd['firstChild']());let _0x153cbd=_0x380ed1+this['fragment']['offset'];for(;_0x1e6dd['to']<=_0x153cbd;)if(!_0x1e6dd['parent']())return!0x1;for(;;){if(_0x1e6dd['from']>=_0x153cbd)return this['fragment']['from']<=_0x3dfb15;if(!_0x1e6dd['childAfter'](_0x153cbd))return!0x1;}}['matches'](_0x19b87a){let _0x371004=this['cursor']['tree'];return _0x371004&&_0x371004['prop'](NodeProp['contextHash'])==_0x19b87a;}['takeNodes'](_0x274ca4){let _0x39126f=this['cursor'],_0x33195d=this['fragment']['offset'],_0x3ef564=this['fragmentEnd']-(this['fragment']['openEnd']?0x1:0x0),_0x316874=_0x274ca4['absoluteLineStart'],_0x2fa88a=_0x316874,_0x3b7589=_0x274ca4['block']['children']['length'],_0x5588d8=_0x2fa88a,_0x82c92=_0x3b7589;for(;;){if(_0x39126f['to']-_0x33195d>_0x3ef564){if(_0x39126f['type']['isAnonymous']&&_0x39126f['firstChild']())continue;break;}let _0x3fb8b9=toRelative(_0x39126f['from']-_0x33195d,_0x274ca4['ranges']);if(_0x39126f['to']-_0x33195d<=_0x274ca4['ranges'][_0x274ca4['rangeI']]['to'])_0x274ca4['addNode'](_0x39126f['tree'],_0x3fb8b9);else{let _0x5c2daf=new Tree(_0x274ca4['parser']['nodeSet']['types'][Type['Paragraph']],[],[],0x0,_0x274ca4['block']['hashProp']);_0x274ca4['reusePlaceholders']['set'](_0x5c2daf,_0x39126f['tree']),_0x274ca4['addNode'](_0x5c2daf,_0x3fb8b9);}if(_0x39126f['type']['is']('Block')&&(NotLast['indexOf'](_0x39126f['type']['id'])<0x0?(_0x2fa88a=_0x39126f['to']-_0x33195d,_0x3b7589=_0x274ca4['block']['children']['length']):(_0x2fa88a=_0x5588d8,_0x3b7589=_0x82c92,_0x5588d8=_0x39126f['to']-_0x33195d,_0x82c92=_0x274ca4['block']['children']['length'])),!_0x39126f['nextSibling']())break;}for(;_0x274ca4['block']['children']['length']>_0x3b7589;)_0x274ca4['block']['children']['pop'](),_0x274ca4['block']['positions']['pop']();return _0x2fa88a-_0x316874;}}function toRelative(_0xf18028,_0x1a525c){let _0xda3a17=_0xf18028;for(let _0x1f8d37=0x1;_0x1f8d37<_0x1a525c['length'];_0x1f8d37++){let _0x1d45d9=_0x1a525c[_0x1f8d37-0x1]['to'],_0x416cd2=_0x1a525c[_0x1f8d37]['from'];_0x1d45d9<_0xf18028&&(_0xda3a17-=_0x416cd2-_0x1d45d9);}return _0xda3a17;}const markdownHighlighting=styleTags({'Blockquote/...':tags$1['quote'],'HorizontalRule':tags$1['contentSeparator'],'ATXHeading1/...\x20SetextHeading1/...':tags$1['heading1'],'ATXHeading2/...\x20SetextHeading2/...':tags$1['heading2'],'ATXHeading3/...':tags$1['heading3'],'ATXHeading4/...':tags$1['heading4'],'ATXHeading5/...':tags$1['heading5'],'ATXHeading6/...':tags$1['heading6'],'Comment\x20CommentBlock':tags$1['comment'],'Escape':tags$1['escape'],'Entity':tags$1['character'],'Emphasis/...':tags$1['emphasis'],'StrongEmphasis/...':tags$1['strong'],'Link/...\x20Image/...':tags$1['link'],'OrderedList/...\x20BulletList/...':tags$1['list'],'BlockQuote/...':tags$1['quote'],'InlineCode\x20CodeText':tags$1['monospace'],'URL\x20Autolink':tags$1['url'],'HeaderMark\x20HardBreak\x20QuoteMark\x20ListMark\x20LinkMark\x20EmphasisMark\x20CodeMark':tags$1['processingInstruction'],'CodeInfo\x20LinkLabel':tags$1['labelName'],'LinkTitle':tags$1['string'],'Paragraph':tags$1['content']}),parser=new MarkdownParser(new NodeSet(nodeTypes)['extend'](markdownHighlighting),Object['keys'](DefaultBlockParsers)['map'](_0x56f9cc=>DefaultBlockParsers[_0x56f9cc]),Object['keys'](DefaultBlockParsers)['map'](_0x574575=>DefaultLeafBlocks[_0x574575]),Object['keys'](DefaultBlockParsers),DefaultEndLeaf,DefaultSkipMarkup,Object['keys'](DefaultInline)['map'](_0x50c7f8=>DefaultInline[_0x50c7f8]),Object['keys'](DefaultInline),[]);function leftOverSpace(_0x36fb6d,_0x1a3e4b,_0x2aba97){let _0x2ce7f4=[];for(let _0x3c5072=_0x36fb6d['firstChild'],_0x37a467=_0x1a3e4b;;_0x3c5072=_0x3c5072['nextSibling']){let _0x4e02ba=_0x3c5072?_0x3c5072['from']:_0x2aba97;if(_0x4e02ba>_0x37a467&&_0x2ce7f4['push']({'from':_0x37a467,'to':_0x4e02ba}),!_0x3c5072)break;_0x37a467=_0x3c5072['to'];}return _0x2ce7f4;}function parseCode(_0x19486e){let {codeParser:_0x4eebd7,htmlParser:_0x351b5b}=_0x19486e,_0x432a22=parseMixed((_0xa66b1a,_0x470994)=>{let _0x103251=_0xa66b1a['type']['id'];if(!_0x4eebd7||_0x103251!=Type['CodeBlock']&&_0x103251!=Type['FencedCode']){if(_0x351b5b&&(_0x103251==Type['HTMLBlock']||_0x103251==Type['HTMLTag']||_0x103251==Type['CommentBlock']))return{'parser':_0x351b5b,'overlay':leftOverSpace(_0xa66b1a['node'],_0xa66b1a['from'],_0xa66b1a['to'])};}else{let _0x4127a3='';if(_0x103251==Type['FencedCode']){let _0x286776=_0xa66b1a['node']['getChild'](Type['CodeInfo']);_0x286776&&(_0x4127a3=_0x470994['read'](_0x286776['from'],_0x286776['to']));}let _0x46b4dd=_0x4eebd7(_0x4127a3);if(_0x46b4dd)return{'parser':_0x46b4dd,'overlay':_0x50e303=>_0x50e303['type']['id']==Type['CodeText']};}return null;});return{'wrap':_0x432a22};}const StrikethroughDelim={'resolve':'Strikethrough','mark':'StrikethroughMark'},Strikethrough={'defineNodes':[{'name':'Strikethrough','style':{'Strikethrough/...':tags$1['strikethrough']}},{'name':'StrikethroughMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Strikethrough','parse'(_0x8530d5,_0x200040,_0x301405){if(0x7e!=_0x200040||0x7e!=_0x8530d5['char'](_0x301405+0x1)||0x7e==_0x8530d5['char'](_0x301405+0x2))return-0x1;let _0x36e6e3=_0x8530d5['slice'](_0x301405-0x1,_0x301405),_0x22bd27=_0x8530d5['slice'](_0x301405+0x2,_0x301405+0x3),_0x1a9105=/\s|^$/['test'](_0x36e6e3),_0x491579=/\s|^$/['test'](_0x22bd27),_0x22d83f=Punctuation['test'](_0x36e6e3),_0xf5ab28=Punctuation['test'](_0x22bd27);return _0x8530d5['addDelimiter'](StrikethroughDelim,_0x301405,_0x301405+0x2,!_0x491579&&(!_0xf5ab28||_0x1a9105||_0x22d83f),!_0x1a9105&&(!_0x22d83f||_0x491579||_0xf5ab28));},'after':'Emphasis'}]};function parseRow(_0x1b4265,_0x597325,_0x4ac907=0x0,_0x1241a7,_0x5cc488=0x0){let _0xad975c=0x0,_0x2db755=!0x0,_0xa65e3c=-0x1,_0x5b7a00=-0x1,_0x3bfe07=!0x1,_0x5a2dbe=()=>{_0x1241a7['push'](_0x1b4265['elt']('TableCell',_0x5cc488+_0xa65e3c,_0x5cc488+_0x5b7a00,_0x1b4265['parser']['parseInline'](_0x597325['slice'](_0xa65e3c,_0x5b7a00),_0x5cc488+_0xa65e3c)));};for(let _0x2eca88=_0x4ac907;_0x2eca88<_0x597325['length'];_0x2eca88++){let _0x32e425=_0x597325['charCodeAt'](_0x2eca88);0x7c!=_0x32e425||_0x3bfe07?(_0x3bfe07||0x20!=_0x32e425&&0x9!=_0x32e425)&&(_0xa65e3c<0x0&&(_0xa65e3c=_0x2eca88),_0x5b7a00=_0x2eca88+0x1):((!_0x2db755||_0xa65e3c>-0x1)&&_0xad975c++,_0x2db755=!0x1,_0x1241a7&&(_0xa65e3c>-0x1&&_0x5a2dbe(),_0x1241a7['push'](_0x1b4265['elt']('TableDelimiter',_0x2eca88+_0x5cc488,_0x2eca88+_0x5cc488+0x1))),_0xa65e3c=_0x5b7a00=-0x1),_0x3bfe07=!_0x3bfe07&&0x5c==_0x32e425;}return _0xa65e3c>-0x1&&(_0xad975c++,_0x1241a7&&_0x5a2dbe()),_0xad975c;}function hasPipe(_0x15acc3,_0x31deaf){for(let _0x289c07=_0x31deaf;_0x289c07<_0x15acc3['length'];_0x289c07++){let _0x58f25a=_0x15acc3['charCodeAt'](_0x289c07);if(0x7c==_0x58f25a)return!0x0;0x5c==_0x58f25a&&_0x289c07++;}return!0x1;}const delimiterLine=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class TableParser{constructor(){this['rows']=null;}['nextLine'](_0x22d1ca,_0x399693,_0x2991e9){if(null==this['rows']){let _0x42e628;if(this['rows']=!0x1,(0x2d==_0x399693['next']||0x3a==_0x399693['next']||0x7c==_0x399693['next'])&&delimiterLine['test'](_0x42e628=_0x399693['text']['slice'](_0x399693['pos']))){let _0x2193e0=[];parseRow(_0x22d1ca,_0x2991e9['content'],0x0,_0x2193e0,_0x2991e9['start'])==parseRow(_0x22d1ca,_0x42e628,_0x399693['pos'])&&(this['rows']=[_0x22d1ca['elt']('TableHeader',_0x2991e9['start'],_0x2991e9['start']+_0x2991e9['content']['length'],_0x2193e0),_0x22d1ca['elt']('TableDelimiter',_0x22d1ca['lineStart']+_0x399693['pos'],_0x22d1ca['lineStart']+_0x399693['text']['length'])]);}}else{if(this['rows']){let _0x53576c=[];parseRow(_0x22d1ca,_0x399693['text'],_0x399693['pos'],_0x53576c,_0x22d1ca['lineStart']),this['rows']['push'](_0x22d1ca['elt']('TableRow',_0x22d1ca['lineStart']+_0x399693['pos'],_0x22d1ca['lineStart']+_0x399693['text']['length'],_0x53576c));}}return!0x1;}['finish'](_0x526584,_0x205d30){return!!this['rows']&&(_0x526584['addLeafElement'](_0x205d30,_0x526584['elt']('Table',_0x205d30['start'],_0x205d30['start']+_0x205d30['content']['length'],this['rows'])),!0x0);}}const Table={'defineNodes':[{'name':'Table','block':!0x0},{'name':'TableHeader','style':{'TableHeader/...':tags$1['heading']}},'TableRow',{'name':'TableCell','style':tags$1['content']},{'name':'TableDelimiter','style':tags$1['processingInstruction']}],'parseBlock':[{'name':'Table','leaf':(_0x317c71,_0x15e573)=>hasPipe(_0x15e573['content'],0x0)?new TableParser():null,'endLeaf'(_0x356afc,_0x4b27df,_0x2a6ad0){if(_0x2a6ad0['parsers']['some'](_0x14fd09=>_0x14fd09 instanceof TableParser)||!hasPipe(_0x4b27df['text'],_0x4b27df['basePos']))return!0x1;let _0x529623=_0x356afc['peekLine']();return delimiterLine['test'](_0x529623)&&parseRow(_0x356afc,_0x4b27df['text'],_0x4b27df['basePos'])==parseRow(_0x356afc,_0x529623,_0x4b27df['basePos']);},'before':'SetextHeading'}]};class TaskParser{['nextLine'](){return!0x1;}['finish'](_0x45e1e2,_0x34cbfc){return _0x45e1e2['addLeafElement'](_0x34cbfc,_0x45e1e2['elt']('Task',_0x34cbfc['start'],_0x34cbfc['start']+_0x34cbfc['content']['length'],[_0x45e1e2['elt']('TaskMarker',_0x34cbfc['start'],_0x34cbfc['start']+0x3),..._0x45e1e2['parser']['parseInline'](_0x34cbfc['content']['slice'](0x3),_0x34cbfc['start']+0x3)])),!0x0;}}const TaskList={'defineNodes':[{'name':'Task','block':!0x0,'style':tags$1['list']},{'name':'TaskMarker','style':tags$1['atom']}],'parseBlock':[{'name':'TaskList','leaf':(_0x58058d,_0x5c8aef)=>/^\[[ xX]\][ \t]/['test'](_0x5c8aef['content'])&&'ListItem'==_0x58058d['parentType']()['name']?new TaskParser():null,'after':'SetextHeading'}]},autolinkRE=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,urlRE=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,lastTwoDomainWords=/[\w-]+\.[\w-]+($|\/)/,emailRE=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,xmppResourceRE=/\/[a-zA-Z\d@.]+/gy;function count(_0x3e4c7d,_0xdb7051,_0x2e586e,_0x18fd46){let _0x3fb1ea=0x0;for(let _0x497abd=_0xdb7051;_0x497abd<_0x2e586e;_0x497abd++)_0x3e4c7d[_0x497abd]==_0x18fd46&&_0x3fb1ea++;return _0x3fb1ea;}function autolinkURLEnd(_0x221e8a,_0xec165d){urlRE['lastIndex']=_0xec165d;let _0x381f29=urlRE['exec'](_0x221e8a);if(!_0x381f29||lastTwoDomainWords['exec'](_0x381f29[0x0])[0x0]['indexOf']('_')>-0x1)return-0x1;let _0x20fde8=_0xec165d+_0x381f29[0x0]['length'];for(;;){let _0x54f24f,_0x2c1089=_0x221e8a[_0x20fde8-0x1];if(/[?!.,:*_~]/['test'](_0x2c1089)||')'==_0x2c1089&&count(_0x221e8a,_0xec165d,_0x20fde8,')')>count(_0x221e8a,_0xec165d,_0x20fde8,'('))_0x20fde8--;else{if(';'!=_0x2c1089||!(_0x54f24f=/&(?:#\d+|#x[a-f\d]+|\w+);$/['exec'](_0x221e8a['slice'](_0xec165d,_0x20fde8))))break;_0x20fde8=_0xec165d+_0x54f24f['index'];}}return _0x20fde8;}function autolinkEmailEnd(_0x1ced93,_0x13c364){emailRE['lastIndex']=_0x13c364;let _0x1486dd=emailRE['exec'](_0x1ced93);if(!_0x1486dd)return-0x1;let _0x51145d=_0x1486dd[0x0][_0x1486dd[0x0]['length']-0x1];return'_'==_0x51145d||'-'==_0x51145d?-0x1:_0x13c364+_0x1486dd[0x0]['length']-('.'==_0x51145d?0x1:0x0);}const Autolink={'parseInline':[{'name':'Autolink','parse'(_0x599386,_0x227e79,_0x510440){let _0x154894=_0x510440-_0x599386['offset'];if(_0x154894&&/\w/['test'](_0x599386['text'][_0x154894-0x1]))return-0x1;autolinkRE['lastIndex']=_0x154894;let _0x2ab7e7=autolinkRE['exec'](_0x599386['text']),_0x4c2dab=-0x1;if(!_0x2ab7e7)return-0x1;if(_0x2ab7e7[0x1]||_0x2ab7e7[0x2])(_0x4c2dab=autolinkURLEnd(_0x599386['text'],_0x154894+_0x2ab7e7[0x0]['length']),_0x4c2dab>-0x1&&_0x599386['hasOpenLink'])&&(_0x4c2dab=_0x154894+/([^\[\]]|\[[^\]]*\])*/['exec'](_0x599386['text']['slice'](_0x154894,_0x4c2dab))[0x0]['length']);else _0x2ab7e7[0x3]?_0x4c2dab=autolinkEmailEnd(_0x599386['text'],_0x154894):(_0x4c2dab=autolinkEmailEnd(_0x599386['text'],_0x154894+_0x2ab7e7[0x0]['length']),_0x4c2dab>-0x1&&'xmpp:'==_0x2ab7e7[0x0]&&(xmppResourceRE['lastIndex']=_0x4c2dab,_0x2ab7e7=xmppResourceRE['exec'](_0x599386['text']),_0x2ab7e7&&(_0x4c2dab=_0x2ab7e7['index']+_0x2ab7e7[0x0]['length'])));return _0x4c2dab<0x0?-0x1:(_0x599386['addElement'](_0x599386['elt']('URL',_0x510440,_0x4c2dab+_0x599386['offset'])),_0x4c2dab+_0x599386['offset']);}}]},GFM=[Table,TaskList,Strikethrough,Autolink];function parseSubSuper(_0x1ef752,_0x509f20,_0x597440){return(_0x3fa520,_0x2aa931,_0x17a708)=>{if(_0x2aa931!=_0x1ef752||_0x3fa520['char'](_0x17a708+0x1)==_0x1ef752)return-0x1;let _0x27f8b=[_0x3fa520['elt'](_0x597440,_0x17a708,_0x17a708+0x1)];for(let _0x55897d=_0x17a708+0x1;_0x55897d<_0x3fa520['end'];_0x55897d++){let _0x4be2a3=_0x3fa520['char'](_0x55897d);if(_0x4be2a3==_0x1ef752)return _0x3fa520['addElement'](_0x3fa520['elt'](_0x509f20,_0x17a708,_0x55897d+0x1,_0x27f8b['concat'](_0x3fa520['elt'](_0x597440,_0x55897d,_0x55897d+0x1))));if(0x5c==_0x4be2a3&&_0x27f8b['push'](_0x3fa520['elt']('Escape',_0x55897d,0x2+_0x55897d++)),space(_0x4be2a3))break;}return-0x1;};}const Superscript={'defineNodes':[{'name':'Superscript','style':tags$1['special'](tags$1['content'])},{'name':'SuperscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Superscript','parse':parseSubSuper(0x5e,'Superscript','SuperscriptMark')}]},Subscript={'defineNodes':[{'name':'Subscript','style':tags$1['special'](tags$1['content'])},{'name':'SubscriptMark','style':tags$1['processingInstruction']}],'parseInline':[{'name':'Subscript','parse':parseSubSuper(0x7e,'Subscript','SubscriptMark')}]},Emoji={'defineNodes':[{'name':'Emoji','style':tags$1['character']}],'parseInline':[{'name':'Emoji','parse'(_0x4da5e2,_0x107981,_0x22b70c){let _0x4af23a;return 0x3a==_0x107981&&(_0x4af23a=/^[a-zA-Z_0-9]+:/['exec'](_0x4da5e2['slice'](_0x22b70c+0x1,_0x4da5e2['end'])))?_0x4da5e2['addElement'](_0x4da5e2['elt']('Emoji',_0x22b70c,_0x22b70c+0x1+_0x4af23a[0x0]['length'])):-0x1;}}]},data=defineLanguageFacet({'commentTokens':{'block':{'open':'<!--','close':'-->'}}}),headingProp=new NodeProp(),commonmark=parser['configure']({'props':[foldNodeProp['add'](_0x343e63=>!_0x343e63['is']('Block')||_0x343e63['is']('Document')||null!=isHeading(_0x343e63)||isList(_0x343e63)?void 0x0:(_0x16c167,_0x427bbc)=>({'from':_0x427bbc['doc']['lineAt'](_0x16c167['from'])['to'],'to':_0x16c167['to']})),headingProp['add'](isHeading),indentNodeProp['add']({'Document':()=>null}),languageDataProp['add']({'Document':data})]});function isHeading(_0x4bbff1){let _0x119ab0=/^(?:ATX|Setext)Heading(\d)$/['exec'](_0x4bbff1['name']);return _0x119ab0?+_0x119ab0[0x1]:void 0x0;}function isList(_0x25204c){return'OrderedList'==_0x25204c['name']||'BulletList'==_0x25204c['name'];}function findSectionEnd(_0x4c1b68,_0x29064f){let _0x3c81d0=_0x4c1b68;for(;;){let _0x3b6ca0,_0x4be250=_0x3c81d0['nextSibling'];if(!_0x4be250||null!=(_0x3b6ca0=isHeading(_0x4be250['type']))&&_0x3b6ca0<=_0x29064f)break;_0x3c81d0=_0x4be250;}return _0x3c81d0['to'];}const headerIndent=foldService['of']((_0x50a93d,_0x489ffe,_0x2d4a76)=>{for(let _0x387988=syntaxTree(_0x50a93d)['resolveInner'](_0x2d4a76,-0x1);_0x387988&&!(_0x387988['from']<_0x489ffe);_0x387988=_0x387988['parent']){let _0xea5ff6=_0x387988['type']['prop'](headingProp);if(null==_0xea5ff6)continue;let _0xd683f7=findSectionEnd(_0x387988,_0xea5ff6);if(_0xd683f7>_0x2d4a76)return{'from':_0x2d4a76,'to':_0xd683f7};}return null;});function mkLang(_0x2c2a5f){return new Language(data,_0x2c2a5f,[headerIndent],'markdown');}const commonmarkLanguage=mkLang(commonmark),extended=commonmark['configure']([GFM,Subscript,Superscript,Emoji,{'props':[foldNodeProp['add']({'Table':(_0x5bc1e8,_0x53b5c4)=>({'from':_0x53b5c4['doc']['lineAt'](_0x5bc1e8['from'])['to'],'to':_0x5bc1e8['to']})})]}]),markdownLanguage=mkLang(extended);function getCodeParser(_0x1eef14,_0x2c481f){return _0x25dbaa=>{if(_0x25dbaa&&_0x1eef14){let _0x1dd759=null;if(_0x25dbaa=/\S*/['exec'](_0x25dbaa)[0x0],_0x1dd759='function'==typeof _0x1eef14?_0x1eef14(_0x25dbaa):LanguageDescription['matchLanguageName'](_0x1eef14,_0x25dbaa,!0x0),_0x1dd759 instanceof LanguageDescription)return _0x1dd759['support']?_0x1dd759['support']['language']['parser']:ParseContext['getSkippingParser'](_0x1dd759['load']());if(_0x1dd759)return _0x1dd759['parser'];}return _0x2c481f?_0x2c481f['parser']:null;};}class Context{constructor(_0x1c2425,_0x45a775,_0x18be17,_0x172e4e,_0x213d3b,_0x153cf9,_0x572fde){this['node']=_0x1c2425,this['from']=_0x45a775,this['to']=_0x18be17,this['spaceBefore']=_0x172e4e,this['spaceAfter']=_0x213d3b,this['type']=_0x153cf9,this['item']=_0x572fde;}['blank'](_0x2c53a6,_0xf846e8=!0x0){let _0x3399dd=this['spaceBefore']+('Blockquote'==this['node']['name']?'>':'');if(null!=_0x2c53a6){for(;_0x3399dd['length']<_0x2c53a6;)_0x3399dd+='\x20';return _0x3399dd;}for(let _0x2b69fe=this['to']-this['from']-_0x3399dd['length']-this['spaceAfter']['length'];_0x2b69fe>0x0;_0x2b69fe--)_0x3399dd+='\x20';return _0x3399dd+(_0xf846e8?this['spaceAfter']:'');}['marker'](_0x3b68bf,_0x24b627){let _0x35211f='OrderedList'==this['node']['name']?String(+itemNumber(this['item'],_0x3b68bf)[0x2]+_0x24b627):'';return this['spaceBefore']+_0x35211f+this['type']+this['spaceAfter'];}}function getContext(_0x173638,_0x54061f){let _0x5d9c0f=[],_0x12c42e=[];for(let _0x19658e=_0x173638;_0x19658e;_0x19658e=_0x19658e['parent']){if('FencedCode'==_0x19658e['name'])return _0x12c42e;'ListItem'!=_0x19658e['name']&&'Blockquote'!=_0x19658e['name']||_0x5d9c0f['push'](_0x19658e);}for(let _0x1e69c8=_0x5d9c0f['length']-0x1;_0x1e69c8>=0x0;_0x1e69c8--){let _0x580769,_0x2cd3b8=_0x5d9c0f[_0x1e69c8],_0x254161=_0x54061f['lineAt'](_0x2cd3b8['from']),_0x11d1e6=_0x2cd3b8['from']-_0x254161['from'];if('Blockquote'==_0x2cd3b8['name']&&(_0x580769=/^ *>( ?)/['exec'](_0x254161['text']['slice'](_0x11d1e6))))_0x12c42e['push'](new Context(_0x2cd3b8,_0x11d1e6,_0x11d1e6+_0x580769[0x0]['length'],'',_0x580769[0x1],'>',null));else{if('ListItem'==_0x2cd3b8['name']&&'OrderedList'==_0x2cd3b8['parent']['name']&&(_0x580769=/^( *)\d+([.)])( *)/['exec'](_0x254161['text']['slice'](_0x11d1e6)))){let _0x80e5a1=_0x580769[0x3],_0x199e34=_0x580769[0x0]['length'];_0x80e5a1['length']>=0x4&&(_0x80e5a1=_0x80e5a1['slice'](0x0,_0x80e5a1['length']-0x4),_0x199e34-=0x4),_0x12c42e['push'](new Context(_0x2cd3b8['parent'],_0x11d1e6,_0x11d1e6+_0x199e34,_0x580769[0x1],_0x80e5a1,_0x580769[0x2],_0x2cd3b8));}else{if('ListItem'==_0x2cd3b8['name']&&'BulletList'==_0x2cd3b8['parent']['name']&&(_0x580769=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/['exec'](_0x254161['text']['slice'](_0x11d1e6)))){let _0x3bf1c7=_0x580769[0x4],_0x106883=_0x580769[0x0]['length'];_0x3bf1c7['length']>0x4&&(_0x3bf1c7=_0x3bf1c7['slice'](0x0,_0x3bf1c7['length']-0x4),_0x106883-=0x4);let _0x2a4c5d=_0x580769[0x2];_0x580769[0x3]&&(_0x2a4c5d+=_0x580769[0x3]['replace'](/[xX]/,'\x20')),_0x12c42e['push'](new Context(_0x2cd3b8['parent'],_0x11d1e6,_0x11d1e6+_0x106883,_0x580769[0x1],_0x3bf1c7,_0x2a4c5d,_0x2cd3b8));}}}}return _0x12c42e;}function itemNumber(_0x104052,_0x197554){return/^(\s*)(\d+)(?=[.)])/['exec'](_0x197554['sliceString'](_0x104052['from'],_0x104052['from']+0xa));}function renumberList(_0x353d06,_0xaa9a25,_0x11022d,_0x3a6ede=0x0){for(let _0x454ed6=-0x1,_0x31a5eb=_0x353d06;;){if('ListItem'==_0x31a5eb['name']){let _0x1c1501=itemNumber(_0x31a5eb,_0xaa9a25),_0x37904a=+_0x1c1501[0x2];if(_0x454ed6>=0x0){if(_0x37904a!=_0x454ed6+0x1)return;_0x11022d['push']({'from':_0x31a5eb['from']+_0x1c1501[0x1]['length'],'to':_0x31a5eb['from']+_0x1c1501[0x0]['length'],'insert':String(_0x454ed6+0x2+_0x3a6ede)});}_0x454ed6=_0x37904a;}let _0x584967=_0x31a5eb['nextSibling'];if(!_0x584967)break;_0x31a5eb=_0x584967;}}function normalizeIndent(_0x4f88d9,_0x10c43b){let _0xe18de7=/^[ \t]*/['exec'](_0x4f88d9)[0x0]['length'];if(!_0xe18de7||'\x09'!=_0x10c43b['facet'](indentUnit))return _0x4f88d9;let _0x35c5c3='';for(let _0x508713=countColumn(_0x4f88d9,0x4,_0xe18de7);_0x508713>0x0;)_0x508713>=0x4?(_0x35c5c3+='\x09',_0x508713-=0x4):(_0x35c5c3+='\x20',_0x508713--);return _0x35c5c3+_0x4f88d9['slice'](_0xe18de7);}const insertNewlineContinueMarkup=({state:_0x3adfb8,dispatch:_0x8ce3af})=>{let _0x565b98=syntaxTree(_0x3adfb8),{doc:_0x50d634}=_0x3adfb8,_0x49cdb8=null,_0x57e830=_0x3adfb8['changeByRange'](_0x33e72d=>{if(!_0x33e72d['empty']||!markdownLanguage['isActiveAt'](_0x3adfb8,_0x33e72d['from'],0x0))return _0x49cdb8={'range':_0x33e72d};let _0x561409=_0x33e72d['from'],_0x5ecd71=_0x50d634['lineAt'](_0x561409),_0x3c8345=getContext(_0x565b98['resolveInner'](_0x561409,-0x1),_0x50d634);for(;_0x3c8345['length']&&_0x3c8345[_0x3c8345['length']-0x1]['from']>_0x561409-_0x5ecd71['from'];)_0x3c8345['pop']();if(!_0x3c8345['length'])return _0x49cdb8={'range':_0x33e72d};let _0x4c392c=_0x3c8345[_0x3c8345['length']-0x1];if(_0x4c392c['to']-_0x4c392c['spaceAfter']['length']>_0x561409-_0x5ecd71['from'])return _0x49cdb8={'range':_0x33e72d};let _0x26a3d7=_0x561409>=_0x4c392c['to']-_0x4c392c['spaceAfter']['length']&&!/\S/['test'](_0x5ecd71['text']['slice'](_0x4c392c['to']));if(_0x4c392c['item']&&_0x26a3d7){let _0x353bff=_0x4c392c['node']['firstChild'],_0x1d05f7=_0x4c392c['node']['getChild']('ListItem','ListItem');if(_0x353bff['to']>=_0x561409||_0x1d05f7&&_0x1d05f7['to']<_0x561409||_0x5ecd71['from']>0x0&&!/[^\s>]/['test'](_0x50d634['lineAt'](_0x5ecd71['from']-0x1)['text'])){let _0x4f4b78,_0x272289=_0x3c8345['length']>0x1?_0x3c8345[_0x3c8345['length']-0x2]:null,_0x5b9d5c='';_0x272289&&_0x272289['item']?(_0x4f4b78=_0x5ecd71['from']+_0x272289['from'],_0x5b9d5c=_0x272289['marker'](_0x50d634,0x1)):_0x4f4b78=_0x5ecd71['from']+(_0x272289?_0x272289['to']:0x0);let _0x77ba46=[{'from':_0x4f4b78,'to':_0x561409,'insert':_0x5b9d5c}];return'OrderedList'==_0x4c392c['node']['name']&&renumberList(_0x4c392c['item'],_0x50d634,_0x77ba46,-0x2),_0x272289&&'OrderedList'==_0x272289['node']['name']&&renumberList(_0x272289['item'],_0x50d634,_0x77ba46),{'range':EditorSelection['cursor'](_0x4f4b78+_0x5b9d5c['length']),'changes':_0x77ba46};}{let _0x43d098=blankLine(_0x3c8345,_0x3adfb8,_0x5ecd71);return{'range':EditorSelection['cursor'](_0x561409+_0x43d098['length']+0x1),'changes':{'from':_0x5ecd71['from'],'insert':_0x43d098+_0x3adfb8['lineBreak']}};}}if('Blockquote'==_0x4c392c['node']['name']&&_0x26a3d7&&_0x5ecd71['from']){let _0x3a8261=_0x50d634['lineAt'](_0x5ecd71['from']-0x1),_0x26ebc3=/>\s*$/['exec'](_0x3a8261['text']);if(_0x26ebc3&&_0x26ebc3['index']==_0x4c392c['from']){let _0x36764a=_0x3adfb8['changes']([{'from':_0x3a8261['from']+_0x26ebc3['index'],'to':_0x3a8261['to']},{'from':_0x5ecd71['from']+_0x4c392c['from'],'to':_0x5ecd71['to']}]);return{'range':_0x33e72d['map'](_0x36764a),'changes':_0x36764a};}}let _0x512b8a=[];'OrderedList'==_0x4c392c['node']['name']&&renumberList(_0x4c392c['item'],_0x50d634,_0x512b8a);let _0x203806=_0x4c392c['item']&&_0x4c392c['item']['from']<_0x5ecd71['from'],_0x2c3235='';if(!_0x203806||/^[\s\d.)\-+*>]*/['exec'](_0x5ecd71['text'])[0x0]['length']>=_0x4c392c['to']){for(let _0x209b29=0x0,_0xeae865=_0x3c8345['length']-0x1;_0x209b29<=_0xeae865;_0x209b29++)_0x2c3235+=_0x209b29!=_0xeae865||_0x203806?_0x3c8345[_0x209b29]['blank'](_0x209b29<_0xeae865?countColumn(_0x5ecd71['text'],0x4,_0x3c8345[_0x209b29+0x1]['from'])-_0x2c3235['length']:null):_0x3c8345[_0x209b29]['marker'](_0x50d634,0x1);}let _0x406266=_0x561409;for(;_0x406266>_0x5ecd71['from']&&/\s/['test'](_0x5ecd71['text']['charAt'](_0x406266-_0x5ecd71['from']-0x1));)_0x406266--;return _0x2c3235=normalizeIndent(_0x2c3235,_0x3adfb8),nonTightList(_0x4c392c['node'],_0x3adfb8['doc'])&&(_0x2c3235=blankLine(_0x3c8345,_0x3adfb8,_0x5ecd71)+_0x3adfb8['lineBreak']+_0x2c3235),_0x512b8a['push']({'from':_0x406266,'to':_0x561409,'insert':_0x3adfb8['lineBreak']+_0x2c3235}),{'range':EditorSelection['cursor'](_0x406266+_0x2c3235['length']+0x1),'changes':_0x512b8a};});return!_0x49cdb8&&(_0x8ce3af(_0x3adfb8['update'](_0x57e830,{'scrollIntoView':!0x0,'userEvent':'input'})),!0x0);};function isMark(_0x5aa754){return'QuoteMark'==_0x5aa754['name']||'ListMark'==_0x5aa754['name'];}function nonTightList(_0x4918e7,_0x365601){if('OrderedList'!=_0x4918e7['name']&&'BulletList'!=_0x4918e7['name'])return!0x1;let _0x4d0e36=_0x4918e7['firstChild'],_0x3b53a4=_0x4918e7['getChild']('ListItem','ListItem');if(!_0x3b53a4)return!0x1;let _0x5dfef5=_0x365601['lineAt'](_0x4d0e36['to']),_0x3af2a6=_0x365601['lineAt'](_0x3b53a4['from']),_0x970f3d=/^[\s>]*$/['test'](_0x5dfef5['text']);return _0x5dfef5['number']+(_0x970f3d?0x0:0x1)<_0x3af2a6['number'];}function blankLine(_0x45a18b,_0x866e01,_0x2061c6){let _0x572948='';for(let _0x2be28d=0x0,_0x1a648e=_0x45a18b['length']-0x2;_0x2be28d<=_0x1a648e;_0x2be28d++)_0x572948+=_0x45a18b[_0x2be28d]['blank'](_0x2be28d<_0x1a648e?countColumn(_0x2061c6['text'],0x4,Math['min'](_0x2061c6['text']['length'],_0x45a18b[_0x2be28d+0x1]['from']))-_0x572948['length']:null,_0x2be28d<_0x1a648e);return normalizeIndent(_0x572948,_0x866e01);}function contextNodeForDelete(_0x4f89be,_0xecb610){let _0x2e031f=_0x4f89be['resolveInner'](_0xecb610,-0x1),_0x4006a2=_0xecb610;isMark(_0x2e031f)&&(_0x4006a2=_0x2e031f['from'],_0x2e031f=_0x2e031f['parent']);for(let _0x18d93b;_0x18d93b=_0x2e031f['childBefore'](_0x4006a2);)if(isMark(_0x18d93b))_0x4006a2=_0x18d93b['from'];else{if('OrderedList'!=_0x18d93b['name']&&'BulletList'!=_0x18d93b['name'])break;_0x2e031f=_0x18d93b['lastChild'],_0x4006a2=_0x2e031f['to'];}return _0x2e031f;}const deleteMarkupBackward=({state:_0xef66c7,dispatch:_0x34f1b0})=>{let _0x4ffdde=syntaxTree(_0xef66c7),_0x1f6b68=null,_0x1871ae=_0xef66c7['changeByRange'](_0x33cf86=>{let _0x3e8918=_0x33cf86['from'],{doc:_0x3c4321}=_0xef66c7;if(_0x33cf86['empty']&&markdownLanguage['isActiveAt'](_0xef66c7,_0x33cf86['from'])){let _0x29ce08=_0x3c4321['lineAt'](_0x3e8918),_0x1a477a=getContext(contextNodeForDelete(_0x4ffdde,_0x3e8918),_0x3c4321);if(_0x1a477a['length']){let _0x203f0f=_0x1a477a[_0x1a477a['length']-0x1],_0xb0205d=_0x203f0f['to']-_0x203f0f['spaceAfter']['length']+(_0x203f0f['spaceAfter']?0x1:0x0);if(_0x3e8918-_0x29ce08['from']>_0xb0205d&&!/\S/['test'](_0x29ce08['text']['slice'](_0xb0205d,_0x3e8918-_0x29ce08['from'])))return{'range':EditorSelection['cursor'](_0x29ce08['from']+_0xb0205d),'changes':{'from':_0x29ce08['from']+_0xb0205d,'to':_0x3e8918}};if(_0x3e8918-_0x29ce08['from']==_0xb0205d&&(!_0x203f0f['item']||_0x29ce08['from']<=_0x203f0f['item']['from']||!/\S/['test'](_0x29ce08['text']['slice'](0x0,_0x203f0f['to'])))){let _0x3fce9a=_0x29ce08['from']+_0x203f0f['from'];if(_0x203f0f['item']&&_0x203f0f['node']['from']<_0x203f0f['item']['from']&&/\S/['test'](_0x29ce08['text']['slice'](_0x203f0f['from'],_0x203f0f['to']))){let _0x281ac7=_0x203f0f['blank'](countColumn(_0x29ce08['text'],0x4,_0x203f0f['to'])-countColumn(_0x29ce08['text'],0x4,_0x203f0f['from']));return _0x3fce9a==_0x29ce08['from']&&(_0x281ac7=normalizeIndent(_0x281ac7,_0xef66c7)),{'range':EditorSelection['cursor'](_0x3fce9a+_0x281ac7['length']),'changes':{'from':_0x3fce9a,'to':_0x29ce08['from']+_0x203f0f['to'],'insert':_0x281ac7}};}if(_0x3fce9a<_0x3e8918)return{'range':EditorSelection['cursor'](_0x3fce9a),'changes':{'from':_0x3fce9a,'to':_0x3e8918}};}}}return _0x1f6b68={'range':_0x33cf86};});return!_0x1f6b68&&(_0x34f1b0(_0xef66c7['update'](_0x1871ae,{'scrollIntoView':!0x0,'userEvent':'delete'})),!0x0);},markdownKeymap=[{'key':'Enter','run':insertNewlineContinueMarkup},{'key':'Backspace','run':deleteMarkupBackward}],htmlNoMatch=html({'matchClosingTags':!0x1});function markdown(_0x3836a0={}){let {codeLanguages:_0x256ff2,defaultCodeLanguage:_0x127087,addKeymap:_0x2c8359=!0x0,base:{parser:_0x4cfdd1}=commonmarkLanguage,completeHTMLTags:_0x30953f=!0x0,htmlTagLanguage:_0x5ecd0f=htmlNoMatch}=_0x3836a0;if(!(_0x4cfdd1 instanceof MarkdownParser))throw new RangeError('Base\x20parser\x20provided\x20to\x20`markdown`\x20should\x20be\x20a\x20Markdown\x20parser');let _0x1a5ccf,_0x4a319b=_0x3836a0['extensions']?[_0x3836a0['extensions']]:[],_0x501a17=[_0x5ecd0f['support']];_0x127087 instanceof LanguageSupport?(_0x501a17['push'](_0x127087['support']),_0x1a5ccf=_0x127087['language']):_0x127087&&(_0x1a5ccf=_0x127087);let _0x136aae=_0x256ff2||_0x1a5ccf?getCodeParser(_0x256ff2,_0x1a5ccf):void 0x0;_0x4a319b['push'](parseCode({'codeParser':_0x136aae,'htmlParser':_0x5ecd0f['language']['parser']})),_0x2c8359&&_0x501a17['push'](Prec['high'](keymap['of'](markdownKeymap)));let _0x352141=mkLang(_0x4cfdd1['configure'](_0x4a319b));return _0x30953f&&_0x501a17['push'](_0x352141['data']['of']({'autocomplete':htmlTagCompletion})),new LanguageSupport(_0x352141,_0x501a17);}function htmlTagCompletion(_0x4c0105){let {state:_0x304468,pos:_0x1a4e85}=_0x4c0105,_0x46114a=/<[:\-\.\w\u00b7-\uffff]*$/['exec'](_0x304468['sliceDoc'](_0x1a4e85-0x19,_0x1a4e85));if(!_0x46114a)return null;let _0x1884b3=syntaxTree(_0x304468)['resolveInner'](_0x1a4e85,-0x1);for(;_0x1884b3&&!_0x1884b3['type']['isTop'];){if('CodeBlock'==_0x1884b3['name']||'FencedCode'==_0x1884b3['name']||'ProcessingInstructionBlock'==_0x1884b3['name']||'CommentBlock'==_0x1884b3['name']||'Link'==_0x1884b3['name']||'Image'==_0x1884b3['name'])return null;_0x1884b3=_0x1884b3['parent'];}return{'from':_0x1a4e85-_0x46114a[0x0]['length'],'to':_0x1a4e85,'options':htmlTagCompletions(),'validFor':/^<[:\-\.\w\u00b7-\uffff]*$/};}let _tagCompletions=null;function htmlTagCompletions(){if(_tagCompletions)return _tagCompletions;let _0x48c4b2=htmlCompletionSource(new CompletionContext(EditorState['create']({'extensions':htmlNoMatch}),0x0,!0x0));return _tagCompletions=_0x48c4b2?_0x48c4b2['options']:[];}const chalky='#e5c07b',coral='#e06c75',cyan='#56b6c2',invalid='#ffffff',ivory='#abb2bf',stone='#7d8799',malibu='#61afef',sage='#98c379',whiskey='#d19a66',violet='#c678dd',darkBackground='#21252b',highlightBackground='#2c313a',background='#282c34',tooltipBackground='#353a42',selection='#3E4451',cursor='#528bff',oneDarkTheme=EditorView['theme']({'&':{'color':ivory,'backgroundColor':background},'.cm-content':{'caretColor':cursor},'.cm-cursor,\x20.cm-dropCursor':{'borderLeftColor':cursor},'&.cm-focused\x20>\x20.cm-scroller\x20>\x20.cm-selectionLayer\x20.cm-selectionBackground,\x20.cm-selectionBackground,\x20.cm-content\x20::selection':{'backgroundColor':selection},'.cm-panels':{'backgroundColor':darkBackground,'color':ivory},'.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':background,'color':stone,'border':'none'},'.cm-activeLineGutter':{'backgroundColor':highlightBackground},'.cm-foldPlaceholder':{'backgroundColor':'transparent','border':'none','color':'#ddd'},'.cm-tooltip':{'border':'none','backgroundColor':tooltipBackground},'.cm-tooltip\x20.cm-tooltip-arrow:before':{'borderTopColor':'transparent','borderBottomColor':'transparent'},'.cm-tooltip\x20.cm-tooltip-arrow:after':{'borderTopColor':tooltipBackground,'borderBottomColor':tooltipBackground},'.cm-tooltip-autocomplete':{'&\x20>\x20ul\x20>\x20li[aria-selected]':{'backgroundColor':highlightBackground,'color':ivory}}},{'dark':!0x0}),oneDarkHighlightStyle=HighlightStyle['define']([{'tag':tags$1['keyword'],'color':violet},{'tag':[tags$1['name'],tags$1['deleted'],tags$1['character'],tags$1['propertyName'],tags$1['macroName']],'color':coral},{'tag':[tags$1['function'](tags$1['variableName']),tags$1['labelName']],'color':malibu},{'tag':[tags$1['color'],tags$1['constant'](tags$1['name']),tags$1['standard'](tags$1['name'])],'color':whiskey},{'tag':[tags$1['definition'](tags$1['name']),tags$1['separator']],'color':ivory},{'tag':[tags$1['typeName'],tags$1['className'],tags$1['number'],tags$1['changed'],tags$1['annotation'],tags$1['modifier'],tags$1['self'],tags$1['namespace']],'color':chalky},{'tag':[tags$1['operator'],tags$1['operatorKeyword'],tags$1['url'],tags$1['escape'],tags$1['regexp'],tags$1['link'],tags$1['special'](tags$1['string'])],'color':cyan},{'tag':[tags$1['meta'],tags$1['comment']],'color':stone},{'tag':tags$1['strong'],'fontWeight':'bold'},{'tag':tags$1['emphasis'],'fontStyle':'italic'},{'tag':tags$1['strikethrough'],'textDecoration':'line-through'},{'tag':tags$1['link'],'color':stone,'textDecoration':'underline'},{'tag':tags$1['heading'],'fontWeight':'bold','color':coral},{'tag':[tags$1['atom'],tags$1['bool'],tags$1['special'](tags$1['variableName'])],'color':whiskey},{'tag':[tags$1['processingInstruction'],tags$1['string'],tags$1['inserted']],'color':sage},{'tag':tags$1['invalid'],'color':invalid}]),oneDark=[oneDarkTheme,syntaxHighlighting(oneDarkHighlightStyle)];function createCodeMirrorEditor(_0x32a723){const _0x161ad8=getDefaultExtensions(),_0x2d8631=new Compartment();_0x161ad8['push'](_0x2d8631['of'](EditorView['editable']['of'](!0x0))),'html'===_0x32a723['syntaxLanguage']?_0x161ad8['push'](html()):_0x161ad8['push'](markdown());const _0x41d5dd=normalizeTheme(_0x32a723['theme']);_0x41d5dd&&_0x161ad8['push'](_0x41d5dd),_0x161ad8['push'](...getKeybindings());const _0x713b89=new EditorView({'extensions':_0x161ad8,'parent':_0x32a723['parent']});return toggleTabFocusMode(_0x713b89),{'focus':()=>{_0x713b89['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x713b89['focus']();},'getData':()=>_0x713b89['state']['doc']['toString'](),'setData':_0x5a78b4=>{_0x713b89['dispatch']({'changes':{'from':0x0,'to':_0x713b89['state']['doc']['length'],'insert':_0x5a78b4},'annotations':Transaction['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4bbba2=>{_0x713b89['dispatch']({'effects':[_0x2d8631['reconfigure'](EditorView['editable']['of'](!_0x4bbba2))]});},'destroy':()=>{_0x713b89['destroy']();},'instance':_0x713b89};}function normalizeTheme(_0x30a71a){return _0x30a71a&&'default'!==_0x30a71a?'dark'===_0x30a71a?oneDark:_0x30a71a:null;}function getKeybindings(){return[keymap['of']([...closeBracketsKeymap,...defaultKeymap,...historyKeymap,...foldKeymap,...completionKeymap,{'key':'Tab','run':indentMore,'shift':indentLess,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':redo,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':undo,'preventDefault':!0x0,'stopPropagation':!0x0}])];}function getDefaultExtensions(){return[EditorView['lineWrapping'],autocompletion(),bracketMatching(),closeBrackets(),crosshairCursor(),drawSelection(),dropCursor(),lineNumbers(),foldGutter(),highlightActiveLine(),highlightActiveLineGutter(),highlightSpecialChars(),history(),indentOnInput(),rectangularSelection(),syntaxHighlighting(defaultHighlightStyle,{'fallback':!0x0})];}class CodeEditorView extends View{['_codeEditorApi']=null;['_options'];constructor(_0x241447,_0x56203c){super(_0x241447),this['_options']=_0x56203c,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']=createCodeMirrorEditor({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x5dd69c,_0x160a8a,_0x95a523)=>{this['setReadOnly'](_0x95a523);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0xf5cb3){this['_codeEditorApi']['setData'](_0xf5cb3);}['setReadOnly'](_0x4e5b2f){this['_codeEditorApi']['setReadOnly'](_0x4e5b2f);}}const COMMAND_FORCE_DISABLE_ID='SourceEditingEnhancedMode';class EditSourceCommand extends Command{constructor(_0x5e4db7){super(_0x5e4db7),this['affectsData']=!0x1,this['editor']['plugins']['get'](PendingActions)['on']('change:hasAny',(_0x55904c,_0x4b1429,_0x601d21)=>{_0x601d21?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x22e383=this['editor'];for(const _0x10c099 of _0x22e383['commands']['names']())['replaceSource','editSource']['includes'](_0x10c099)||_0x22e383['commands']['get'](_0x10c099)['forceDisabled'](COMMAND_FORCE_DISABLE_ID);}['_enableCommands'](){const _0x528fbe=this['editor'];for(const _0x17ac0c of _0x528fbe['commands']['commands']())_0x17ac0c['clearForceDisabled'](COMMAND_FORCE_DISABLE_ID);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x30e988=this['editor'],_0x5bd863=_0x30e988['locale'],_0x1d64dc=_0x30e988['plugins']['get']('Dialog'),_0x5e7d96=getActiveRootName(_0x30e988),_0x158c88=formatSource(_0x30e988['data']['get']({'rootName':_0x5e7d96})),_0x41479c=new CodeEditorView(_0x5bd863,{'syntaxLanguage':_0x30e988['plugins']['has']('Markdown')?'markdown':'html','theme':_0x30e988['config']['get']('sourceEditingEnhanced.theme')});let _0x18c6d1=!0x0;const _0x132227=_0x1ed1c6=>{if(!_0x18c6d1)return;return unformatSource(_0x41479c['getData']())!==unformatSource(_0x158c88)?window['confirm'](getTranslation$3(_0x5bd863,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1ed1c6['stop']():void 0x0;};_0x1d64dc['show']({'id':'sourceEditingEnhanced','title':getTranslation$3(_0x5bd863,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x41479c,'actionButtons':[{'label':getTranslation$3(_0x5bd863,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x1d64dc['hide']();}},{'label':getTranslation$3(_0x5bd863,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x414862=unformatSource(_0x41479c['getData']())!==unformatSource(_0x158c88);(_0x414862&&_0x30e988['execute']('replaceSource',_0x41479c['getData']()),_0x18c6d1=!0x1,_0x1d64dc['hide'](),_0x414862&&'editables'in _0x30e988['ui']['view'])&&_0x30e988['ui']['view']['editables'][_0x5e7d96]['element']['focus']();},'onCreate':_0x234ff4=>{_0x234ff4['set']('isEnabled',!_0x30e988['isReadOnly']),_0x234ff4['bind']('isEnabled')['to'](_0x30e988,'isReadOnly',this,'isEnabled',(_0x1b6337,_0x544b7a)=>!_0x1b6337&&_0x544b7a);}}],'onHide':()=>{this['_enableCommands'](),_0x1d64dc['off']('hide',_0x132227),_0x41479c['destroy']();},'onShow':()=>{_0x41479c['bind']('isReadOnly')['to'](_0x30e988,'isReadOnly',this,'isEnabled',(_0x2748e5,_0x316624)=>_0x2748e5||!_0x316624),_0x41479c['setData'](_0x158c88),_0x41479c['focus'](),_0x1d64dc['on']('hide',_0x132227,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends Plugin{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[PendingActions];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b10d7=this['editor'],_0x41ef04=_0x1b10d7['locale'],_0x51b7c2=new EditSourceCommand(_0x1b10d7);_0x1b10d7['commands']['add']('editSource',_0x51b7c2),_0x1b10d7['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x3ad07c=this['_createButton'](ButtonView,_0x51b7c2);return _0x3ad07c['set']({'label':getTranslation$3(_0x41ef04,'Source'),'icon':IconSource,'tooltip':getTranslation$3(_0x41ef04,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x3ad07c;}),_0x1b10d7['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2721cb=this['_createButton'](MenuBarMenuListItemButtonView,_0x51b7c2,!0x0);return _0x2721cb['set']({'label':getTranslation$3(_0x41ef04,'Edit\x20source\x20modal\x20label'),'icon':IconSource,'role':'menuitemcheckbox'}),_0x2721cb;}),this['_registerKeybindings']();}['afterInit'](){checkLicense$3(this);}['_createButton'](_0x178a86,_0x2e293b,_0x3a28fc=!0x1){const _0x1f8423=new _0x178a86(this['editor']['locale']);return _0x1f8423['set']({'withText':_0x3a28fc,'isToggleable':!0x1}),_0x1f8423['bind']('isEnabled')['to'](_0x2e293b,'isEnabled'),this['listenTo'](_0x1f8423,'execute',()=>_0x2e293b['execute']()),_0x1f8423;}['_registerKeybindings'](){const _0x53f388=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':getTranslation$3(_0x53f388,'Source\x20Editing\x20Enhanced')});const _0x285f97=env['isMac']||env['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':getTranslation$3(_0x53f388,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':getTranslation$3(_0x53f388,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':getTranslation$3(_0x53f388,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':getTranslation$3(_0x53f388,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':getTranslation$3(_0x53f388,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':getTranslation$3(_0x53f388,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':getTranslation$3(_0x53f388,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x285f97?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':getTranslation$3(_0x53f388,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':getTranslation$3(_0x53f388,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':getTranslation$3(_0x53f388,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':getTranslation$3(_0x53f388,'Select\x20line'),'keystroke':_0x285f97?'Ctrl!+L':'Alt+L'},{'label':getTranslation$3(_0x53f388,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x285f97?'Alt+Shift+M':'Ctrl+M'},{'label':getTranslation$3(_0x53f388,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':getTranslation$3(_0x53f388,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':getTranslation$3(_0x53f388,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':getTranslation$3(_0x53f388,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':getTranslation$3(_0x53f388,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x285f97?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}async function checkLicense$3(_0x20de61){const _0x56905b=_0x2aac64([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x58e0c8=window[_0x2aac64([0x44,0x61,0x74,0x65])][_0x2aac64([0x6e,0x6f,0x77])](),_0x502d00=_0x20de61[_0x2aac64([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45d74a=new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a93fc=>{_0x502d00[_0x2aac64([0x6f,0x6e,0x63,0x65])](_0x2aac64([0x72,0x65,0x61,0x64,0x79]),_0x3a93fc);}),_0x10b4c3={[_0x2aac64([0x6b,0x74,0x79])]:_0x2aac64([0x45,0x43]),[_0x2aac64([0x75,0x73,0x65])]:_0x2aac64([0x73,0x69,0x67]),[_0x2aac64([0x63,0x72,0x76])]:_0x2aac64([0x50,0x2d,0x32,0x35,0x36]),[_0x2aac64([0x78])]:_0x2aac64([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x2aac64([0x79])]:_0x2aac64([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x2aac64([0x61,0x6c,0x67])]:_0x2aac64([0x45,0x53,0x32,0x35,0x36])},_0x24f683=_0x502d00[_0x2aac64([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2aac64([0x67,0x65,0x74])](_0x2aac64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x5e8f8d=await(async function(){let _0x5ca217,_0x5b9086=null,_0x255843=null;try{if(_0x24f683==_0x2aac64([0x47,0x50,0x4c]))return _0x2aac64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ca217=(function(){const _0x194d22=_0x24f683[_0x2aac64([0x73,0x70,0x6c,0x69,0x74])](_0x2aac64([0x2e]));if(0x3!=_0x194d22[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x15ea4a=_0x194d22[0x1];return _0x5826be(_0x15ea4a);function _0x5826be(_0x1d4357){const _0x92327c=_0x2fd417(_0x1d4357);return _0x92327c&&_0x1462f0()?_0x92327c:null;function _0x1462f0(){const _0x214bb3=_0x92327c[_0x2aac64([0x6a,0x74,0x69])],_0x526c50=window[_0x2aac64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x214bb3[_0x2aac64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x214bb3[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x517891={..._0x92327c,[_0x2aac64([0x6a,0x74,0x69])]:_0x214bb3[_0x2aac64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x214bb3[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x517891[_0x2aac64([0x76,0x63])],_0x304c3e(_0x517891)==_0x526c50;}}}()),!_0x5ca217)return _0x2aac64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x5ca217[_0x2aac64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x255843=function(_0xb1f637,_0x50b1a){return new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ac90=>{if(_0x40e131())return _0x25ac90(_0x2aac64([0x56,0x61,0x6c,0x69,0x64]));_0x7d066b(),_0x502d00[_0x2aac64([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2aac64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5026bc=!0x1;const _0x48991e=uid();function _0x4cdf39(_0x148c87){return!!_0x148c87&&(typeof _0x148c87===_0x2aac64([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x148c87===_0x2aac64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x148c87[_0x2aac64([0x74,0x68,0x65,0x6e])]===_0x2aac64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x148c87[_0x2aac64([0x63,0x61,0x74,0x63,0x68])]===_0x2aac64([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d1f07(_0x591241){_0x1d154a(_0x591241)[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x461091=>{if(!_0x461091||_0x461091[_0x2aac64([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2aac64([0x6f,0x6b]))return _0x2aac64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2dace3(_0x304c3e(_0x48991e+_0x50b1a))!=_0x461091[_0x2aac64([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2aac64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2aac64([0x56,0x61,0x6c,0x69,0x64]);})[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x41ac34=>(_0x20085d(),_0x41ac34),()=>{const _0x21c200=_0x1eebad();return null==_0x21c200?(_0x20085d(),_0x2aac64([0x56,0x61,0x6c,0x69,0x64])):_0x2aac64(_0x58e0c8-_0x21c200>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x25ac90)[_0x2aac64([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25ac90(_0x2aac64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b3237=0x36ee80;function _0x20085d(){const _0x4287de=_0x2aac64([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dace3(_0x304c3e(_0xb1f637)),_0x532be6=_0x5811cf(_0x2dace3(window[_0x2aac64([0x4d,0x61,0x74,0x68])][_0x2aac64([0x63,0x65,0x69,0x6c])](_0x58e0c8/_0x3b3237)));window[_0x2aac64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aac64([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4287de,_0x532be6);}function _0x1eebad(){const _0x1a1411=_0x2aac64([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dace3(_0x304c3e(_0xb1f637)),_0x3e9181=window[_0x2aac64([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2aac64([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a1411);return _0x3e9181?window[_0x2aac64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5811cf(_0x3e9181),0x10)*_0x3b3237:null;}function _0x1d154a(_0x49f9fc){return new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b22c5,_0x3a993d)=>{_0x49f9fc[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x1b22c5,_0x3a993d),window[_0x2aac64([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a993d,0x1d4c0);});}}_0x502d00[_0x2aac64([0x6f,0x6e])](_0x2aac64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f498d,_0x79142c)=>{if(_0x79142c[0x0]!=_0xb1f637)return _0x25ac90(_0x2aac64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x79142c[0x1]={..._0x79142c[0x1],[_0x2aac64([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x48991e};},{[_0x2aac64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aac64([0x68,0x69,0x67,0x68])}),_0x502d00[_0x2aac64([0x6f,0x6e])](_0x2aac64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xacd453=>{_0x4cdf39(_0xacd453[_0x2aac64([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5026bc=!0x0,_0x1d1f07(_0xacd453[_0x2aac64([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2aac64([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2aac64([0x6c,0x6f,0x77])}),_0x45d74a[_0x2aac64([0x74,0x68,0x65,0x6e])](()=>{_0x5026bc||_0x25ac90(_0x2aac64([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40e131(){return _0x502d00[_0x2aac64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aac64([0x76,0x69,0x65,0x77])][_0x2aac64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2aac64([0x61,0x75,0x74,0x6f]);}function _0x7d066b(){_0x502d00[_0x2aac64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2aac64([0x76,0x69,0x65,0x77])][_0x2aac64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2aac64([0x61,0x75,0x74,0x6f]);}}(_0x5ca217[_0x2aac64([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ca217[_0x2aac64([0x6a,0x74,0x69])]));const _0x402338=await(async function(){let _0x1d8017=!0x0;try{const _0x569794=_0x24f683[_0x2aac64([0x73,0x70,0x6c,0x69,0x74])](_0x2aac64([0x2e])),[_0x262f75,_0x241c54,_0x2347df]=_0x569794;return _0x14f5f0(_0x262f75),await _0x3dc4b8(_0x262f75,_0x241c54,_0x2347df),_0x1d8017;}catch{return!0x1;}function _0x14f5f0(_0x5932c0){const _0x256ba5=_0x2fd417(_0x5932c0);_0x256ba5&&_0x256ba5[_0x2aac64([0x61,0x6c,0x67])]==_0x2aac64([0x45,0x53,0x32,0x35,0x36])||(_0x1d8017=!0x1);}async function _0x3dc4b8(_0x2c6dad,_0x11d62c,_0x88916){const _0x2a73a6=window[_0x2aac64([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2aac64([0x66,0x72,0x6f,0x6d])](_0xf0b3d6(_0x88916),_0x1cd460=>_0x1cd460[_0x2aac64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x40c0a4=new window[(_0x2aac64([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2aac64([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c6dad+_0x2aac64([0x2e])+_0x11d62c),_0x5d7870=window[_0x2aac64([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2aac64([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d7870)return;const _0x412fa5=await _0x5d7870[_0x2aac64([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2aac64([0x6a,0x77,0x6b]),_0x10b4c3,{[_0x2aac64([0x6e,0x61,0x6d,0x65])]:_0x2aac64([0x45,0x43,0x44,0x53,0x41]),[_0x2aac64([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2aac64([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2aac64([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d7870[_0x2aac64([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2aac64([0x6e,0x61,0x6d,0x65])]:_0x2aac64([0x45,0x43,0x44,0x53,0x41]),[_0x2aac64([0x68,0x61,0x73,0x68])]:{[_0x2aac64([0x6e,0x61,0x6d,0x65])]:_0x2aac64([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x412fa5,_0x2a73a6,_0x40c0a4)||(_0x1d8017=!0x1);}}());return _0x402338?(function(){const _0x1224f0=_0x5ca217[_0x2aac64([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1224f0)return!0x1;if(_0x1224f0[_0x2aac64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aac64([0x2a])))return!0x0;if(_0x1224f0[_0x2aac64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aac64([0x53,0x45,0x45])))return!0x0;return!0x1;}())?(function(){const _0x43f46a=[_0x2aac64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2aac64([0x74,0x72,0x69,0x61,0x6c])][_0x2aac64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ca217[_0x2aac64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58e0c8/0x3e8:0x69e02680;return _0x5ca217[_0x2aac64([0x65,0x78,0x70])]<_0x43f46a;}())?_0x2aac64([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x590404=_0x5ca217[_0x2aac64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x590404||0x0==_0x590404[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x222587}=new URL(window[_0x2aac64([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x590404[_0x2aac64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x222587))return!0x0;const _0x1a1177=_0x222587[_0x2aac64([0x73,0x70,0x6c,0x69,0x74])](_0x2aac64([0x2e]));return _0x590404[_0x2aac64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ed20e=>_0x2ed20e[_0x2aac64([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aac64([0x2a])))[_0x2aac64([0x6d,0x61,0x70])](_0x1a97bf=>_0x1a97bf[_0x2aac64([0x73,0x70,0x6c,0x69,0x74])](_0x2aac64([0x2e])))[_0x2aac64([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a62a9=>_0x3a62a9[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1177[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aac64([0x6d,0x61,0x70])](_0x49b53a=>Array(_0x1a1177[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x49b53a[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2aac64([0x66,0x69,0x6c,0x6c])](_0x49b53a[0x0]===_0x2aac64([0x2a])?_0x2aac64([0x2a]):'')[_0x2aac64([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x49b53a))[_0x2aac64([0x73,0x6f,0x6d,0x65])](_0x25bf4f=>_0x1a1177[_0x2aac64([0x65,0x76,0x65,0x72,0x79])]((_0x32dc48,_0x4fcd84)=>_0x25bf4f[_0x4fcd84]===_0x32dc48||_0x25bf4f[_0x4fcd84]===_0x2aac64([0x2a])));}())?(_0x5ca217[_0x2aac64([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2aac64([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b9086=function(_0x44085a){const _0x5293e1=new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x313d55=>setTimeout(_0x313d55,0x93ecc)),_0x5acde9=_0x45d74a[_0x2aac64([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x176663=>{let _0x20bea7=0x0;_0x502d00[_0x2aac64([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aac64([0x6f,0x6e])](_0x2aac64([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c168c,_0x3024db)=>{_0x3024db[0x0][_0x2aac64([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20bea7++,0x5e8==_0x20bea7&&(_0x176663(),_0x1c168c[_0x2aac64([0x6f,0x66,0x66])]());});})),_0x4168ef=[_0x5293e1,_0x5acde9];return window[_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2aac64([0x72,0x61,0x63,0x65])](_0x4168ef)[_0x2aac64([0x74,0x68,0x65,0x6e])](()=>_0x44085a);}(_0x2aac64([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x5b9086&&_0x255843)return new window[(_0x2aac64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a79d6,_0x349410)=>{_0x5b9086[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x3a79d6,_0x349410),_0x255843[_0x2aac64([0x74,0x68,0x65,0x6e])](_0x87bc97=>{_0x87bc97!=_0x2aac64([0x56,0x61,0x6c,0x69,0x64])&&_0x3a79d6(_0x87bc97);},_0x349410);});return _0x5b9086||_0x255843||_0x2aac64([0x56,0x61,0x6c,0x69,0x64]);}())):_0x2aac64([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2aac64([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2aac64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2aac64([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x2fd417(_0x57d03a){return _0x57d03a[_0x2aac64([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2aac64([0x65,0x79]))?JSON[_0x2aac64([0x70,0x61,0x72,0x73,0x65])](_0xf0b3d6(_0x57d03a)):null;}function _0xf0b3d6(_0x148663){return window[_0x2aac64([0x61,0x74,0x6f,0x62])](_0x148663[_0x2aac64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2aac64([0x2b]))[_0x2aac64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2aac64([0x2f])));}function _0x304c3e(_0x26df5d){let _0x402ca3=0x1505;function _0x13fa96(_0x525194){for(let _0x542317=0x0;_0x542317<_0x525194[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x542317++){const _0x3f0933=_0x525194[_0x2aac64([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x542317);_0x402ca3=(_0x402ca3<<0x5)+_0x402ca3+_0x3f0933,_0x402ca3&=_0x402ca3;}}return function _0x3caf10(_0x55a0e8){Array[_0x2aac64([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55a0e8)?_0x55a0e8[_0x2aac64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3caf10):_0x55a0e8&&typeof _0x55a0e8==_0x2aac64([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2aac64([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55a0e8)[_0x2aac64([0x73,0x6f,0x72,0x74])]()[_0x2aac64([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x524a35,_0x39e960])=>{_0x13fa96(_0x524a35),_0x3caf10(_0x39e960);}):_0x13fa96(window[_0x2aac64([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55a0e8));}(_0x26df5d),_0x402ca3>>>0x0;}function _0x2dace3(_0x4ccd34){return _0x4ccd34[_0x2aac64([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2aac64([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2aac64([0x30]));}function _0x5811cf(_0x349a0d){return _0x349a0d[_0x2aac64([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2aac64([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2aac64([0x6a,0x6f,0x69,0x6e])]('');}function _0x13ec92(){}function _0x2aac64(_0x7b15b7){return _0x7b15b7['map'](_0x2ac3f0=>String['fromCharCode'](_0x2ac3f0))['join']('');}!function(_0x5dfa70){const _0x24b9d5=(function(){const _0x31268a=window[_0x2aac64([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2aac64([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2aac64([0x6e,0x6f,0x77])]())[_0x2aac64([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2aac64([0x2e]),'');let _0x4072a2=_0x2aac64([0x4e]);for(let _0x33a68f=0x0;_0x33a68f<_0x31268a[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33a68f+=0x2){let _0xdb3af3=window[_0x2aac64([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31268a[_0x2aac64([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33a68f,_0x33a68f+0x2));_0xdb3af3>=_0x56905b[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdb3af3-=_0x56905b[_0x2aac64([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4072a2+=_0x56905b[_0xdb3af3];}return _0x4072a2;}());_0x502d00[_0x24b9d5]=_0x2aac64([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5dfa70,_0x5dfa70!=_0x2aac64([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x45d74a,_0x502d00[_0x2aac64([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aac64([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13ec92,_0x502d00[_0x2aac64([0x6d,0x6f,0x64,0x65,0x6c])][_0x2aac64([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13ec92,_0x502d00[_0x2aac64([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2aac64([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x5e8f8d);}class ReplaceSourceCommand extends Command{constructor(_0x96b0fc){super(_0x96b0fc),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x22886f,_0x204b08){const _0x4f533a=this['editor'],_0x5ae88e=_0x204b08?.['rootName']??getActiveRootName(_0x4f533a);_0x4f533a['data']['set']({[_0x5ae88e]:_0x22886f},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x42c4ff){super(_0x42c4ff),_0x42c4ff['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39cf26=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x560975;for(const _0x2b8b70 in _0x39cf26){const _0x11c8b2=_0x2b8b70,_0x4d21e2=_0x39cf26[_0x11c8b2];if('sourceEditingEnhancedLicenseKeyValid'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyInvalid'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyExpired'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4d21e2||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4d21e2){delete _0x39cf26[_0x11c8b2],_0x560975=_0x4d21e2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x560975&&_0x39cf26['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x560975&&_0x39cf26['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x560975&&_0x39cf26['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x560975&&_0x39cf26['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x560975&&_0x39cf26['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x560975&&_0x39cf26['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x318ccd=this['editor'],_0x3bf517=_0x318ccd['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x3bf517&&_0x318ccd['plugins']['has']('RealTimeCollaborativeEditing'))throw new CKEditorError('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x3bf517&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x50e9ab=>_0x318ccd['plugins']['has'](_0x50e9ab))&&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.'),_0x318ccd['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.');}}class TemplateCommand extends Command{['execute'](_0x1085b5){const {model:_0x357680}=this['editor'];let _0x3c8f41;switch(typeof _0x1085b5){case'string':_0x3c8f41=_0x1085b5;break;case'function':_0x3c8f41=_0x1085b5();}'string'==typeof _0x3c8f41&&_0x357680['change'](()=>{const _0x5790e4=this['editor']['data']['htmlProcessor']['toView'](_0x3c8f41),_0x53504a=this['editor']['data']['toModel'](_0x5790e4);_0x357680['insertContent'](_0x53504a);});}}class TemplateEditing extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'TemplateEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11e9cc}=this;_0x11e9cc['commands']['add']('insertTemplate',new TemplateCommand(_0x11e9cc)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4de378=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3546ce;for(const _0x1375c7 in _0x4de378){const _0x4313fe=_0x1375c7,_0x3089be=_0x4de378[_0x4313fe];if('templateLicenseKeyValid'==_0x3089be||'templateLicenseKeyInvalid'==_0x3089be||'templateLicenseKeyExpired'==_0x3089be||'templateLicenseKeyDomainLimit'==_0x3089be||'templateLicenseKeyNotAllowed'==_0x3089be||'templateLicenseKeyEvaluationLimit'==_0x3089be||'templateLicenseKeyUsageLimit'==_0x3089be){delete _0x4de378[_0x4313fe],_0x3546ce=_0x3089be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'templateLicenseKeyInvalid'==_0x3546ce&&_0x4de378['_showLicenseError']('invalid'),'templateLicenseKeyExpired'==_0x3546ce&&_0x4de378['_showLicenseError']('expired'),'templateLicenseKeyDomainLimit'==_0x3546ce&&_0x4de378['_showLicenseError']('domainLimit'),'templateLicenseKeyNotAllowed'==_0x3546ce&&_0x4de378['_showLicenseError']('featureNotAllowed','Template'),'templateLicenseKeyEvaluationLimit'==_0x3546ce&&_0x4de378['_showLicenseError']('evaluationLimit'),'templateLicenseKeyUsageLimit'==_0x3546ce&&_0x4de378['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class TemplateListView extends ListView{['filter'](_0x38b345){if(!_0x38b345)return this['_resetFiltering']();const _0x4f8f6a=new Map(),_0x52645c=this['items']['map'](_0x44bd75=>{const _0x371b1d=_0x44bd75['buttonView']['isMatching'](_0x38b345);return _0x44bd75['isVisible']=!!_0x371b1d,_0x44bd75['buttonView']['highlightText'](_0x371b1d?_0x38b345:null),_0x371b1d&&_0x4f8f6a['set'](_0x44bd75,_0x371b1d),_0x44bd75;})['sort'](unsortListItemsCallback)['sort'](getSortListItemsCallback(_0x4f8f6a));return this['items']['clear'](),this['items']['addMany'](_0x52645c),{'resultsCount':_0x4f8f6a['size'],'totalItemsCount':this['items']['length']};}['_resetFiltering'](){const _0x49ab9=this['items']['map'](_0x557286=>_0x557286)['sort'](unsortListItemsCallback);return _0x49ab9['forEach'](_0xd5a949=>{_0xd5a949['isVisible']=!0x0,_0xd5a949['buttonView']['highlightText'](null);}),this['items']['clear'](),this['items']['addMany'](_0x49ab9),{'resultsCount':_0x49ab9['length'],'totalItemsCount':_0x49ab9['length']};}}function getSortListItemsCallback(_0x1104ba){return function(_0x5e193e,_0x536ea0){const _0x54af2d=_0x1104ba['get'](_0x5e193e),_0x51fe86=_0x1104ba['get'](_0x536ea0);return _0x54af2d&&!_0x51fe86?-0x1:_0x51fe86&&!_0x54af2d?0x1:_0x54af2d||_0x51fe86?_0x54af2d['title']&&!_0x51fe86['title']?-0x1:!_0x54af2d['title']&&_0x51fe86['title']?0x1:0x0:0x0;};}function unsortListItemsCallback(_0x20b67e,_0x310109){return _0x20b67e['originalIndex']-_0x310109['originalIndex'];}class TemplateListItemView extends ListItemView{['originalIndex'];['buttonView'];constructor(_0xd4c646,_0x45f9bb){super(_0xd4c646),this['originalIndex']=_0x45f9bb,this['buttonView']=null;}}class TemplateListButtonView extends ButtonView{['templateDefinition'];['textPartView'];constructor(_0x180669,_0x125ef5){super(_0x180669),this['templateDefinition']=_0x125ef5,this['textPartView']=null;const {icon:_0x2aeaab=IconTemplateGeneric}=_0x125ef5;this['set']({'withText':!0x0,'class':'ck-template-button','role':'option','icon':_0x2aeaab}),this['iconView']['isColorInherited']=!0x1;}['render'](){super['render'](),this['textPartView']=new TextPartView(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'](_0x44ad7e){const {title:_0x4dce85,description:_0x5a6fe3}=this['templateDefinition'],_0x19650c=!!_0x4dce85['match'](_0x44ad7e),_0x2d9a03=!(!_0x5a6fe3||!_0x5a6fe3['match'](_0x44ad7e));return _0x19650c||_0x2d9a03?{'title':_0x19650c,'description':_0x2d9a03}:null;}['highlightText'](_0x1502e2){this['textPartView']['highlightText'](_0x1502e2);}}class TextPartView extends View{constructor(_0x111f6b,_0x23707c,_0x39310e){super(_0x111f6b),this['title']=_0x23707c['title'],this['description']=_0x23707c['description'],this['titleView']=new HighlightedTextView(),this['titleView']['text']=this['title'],this['titleView']['extendTemplate']({'tag':'span','attributes':{'class':['ck-button__label'],'id':_0x39310e}});const _0x2c5bc6=[this['titleView']];this['description']&&(this['descriptionView']=new HighlightedTextView(),this['descriptionView']['text']=this['description'],this['descriptionView']['extendTemplate']({'tag':'p','attributes':{'class':['ck-template-form__description']}}),_0x2c5bc6['push'](this['descriptionView'])),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-template-form__text-part']},'children':_0x2c5bc6});}['highlightText'](_0x68b701){this['titleView']['highlightText'](_0x68b701),this['description']&&this['descriptionView']['highlightText'](_0x68b701);}}function getTranslation$2(_0xda49b5,_0x1f3b04,..._0x527e50){const t=_0xda49b5['t'];switch(_0x1f3b04){case'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.':return t('No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',..._0x527e50);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',..._0x527e50);case'Search\x20template':return t('Search\x20template');case'Template':return t('Template');case'Insert\x20template':return t('Insert\x20template');default:return _0x1f3b04;}}class TemplateUI extends Plugin{static get['pluginName'](){return'TemplateUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2c2d3d}=this,_0x563083=_0x2c2d3d['config']['get']('template.definitions')||[];_0x2c2d3d['ui']['componentFactory']['add']('insertTemplate',_0x1ea04a=>{const _0x2c52c9=createDropdown(_0x1ea04a),_0x5c99dc=this['_createTemplateListView'](_0x1ea04a,_0x563083),_0x55dc3a=new SearchTextView(_0x1ea04a,{'filteredView':_0x5c99dc,'queryView':{'label':getTranslation$2(_0x1ea04a,'Search\x20template')},'class':'ck-template-form','infoView':{'text':{'notFound':{'primary':_0x3680c3=>getTranslation$2(_0x1ea04a,'No\x20templates\x20were\x20found\x20matching\x20\x22%0\x22.',_0x3680c3),'secondary':getTranslation$2(_0x1ea04a,'Please\x20try\x20a\x20different\x20phrase\x20or\x20check\x20the\x20spelling.')},'noSearchableItems':{'primary':getTranslation$2(_0x1ea04a,'No\x20templates\x20available.')}}}}),_0x2a1288=_0x2c2d3d['commands']['get']('insertTemplate');return _0x55dc3a['on']('search',(_0x43d52a,_0x497296)=>{_0x497296['query']&&_0x497296['query']['length']&&_0x2c2d3d['ui']['ariaLiveAnnouncer']['announce'](getTranslation$2(_0x1ea04a,'%0\x20templates\x20found',_0x497296['resultsCount']));}),_0x2c52c9['bind']('isEnabled')['to'](_0x2a1288),_0x2c52c9['panelView']['children']['add'](_0x55dc3a),_0x2c52c9['buttonView']['set']({'label':getTranslation$2(_0x1ea04a,'Insert\x20template'),'icon':IconTemplate,'tooltip':!0x0}),_0x2c52c9['on']('change:isOpen',(_0x3a8c6e,_0x436076,_0x18df6c)=>{_0x18df6c||_0x55dc3a['reset']();}),_0x2c52c9;}),_0x2c2d3d['ui']['componentFactory']['add']('menuBar:insertTemplate',_0x5ce65e=>{const _0x1e0b81=_0x2c2d3d['commands']['get']('insertTemplate'),_0x3d7119=new MenuBarMenuView(_0x5ce65e);_0x3d7119['buttonView']['set']({'label':getTranslation$2(_0x5ce65e,'Template'),'icon':IconTemplate});const _0x5f4b08=new MenuBarMenuListView(_0x5ce65e);if(!_0x563083||!_0x563083['length']){const _0x1c2985=new MenuBarMenuListItemView(_0x5ce65e,_0x3d7119),_0x298167=new MenuBarMenuListItemButtonView(_0x5ce65e);_0x298167['set']({'label':getTranslation$2(_0x5ce65e,'No\x20templates\x20available.')}),_0x298167['delegate']('execute')['to'](_0x3d7119),_0x298167['on']('execute',()=>{_0x2c2d3d['editing']['view']['focus']();}),_0x1c2985['children']['add'](_0x298167),_0x5f4b08['items']['add'](_0x1c2985);}for(const _0x30cfe1 of _0x563083){const _0x527d47=new MenuBarMenuListItemView(_0x5ce65e,_0x3d7119),_0x3001f4=new MenuBarMenuListItemButtonView(_0x5ce65e);_0x3001f4['set']({'class':'ck-template-button','label':_0x30cfe1['title'],'icon':_0x30cfe1['icon']||IconTemplateGeneric}),_0x3001f4['delegate']('execute')['to'](_0x3d7119),_0x3001f4['on']('execute',()=>{_0x2c2d3d['execute']('insertTemplate',_0x30cfe1['data']),_0x2c2d3d['editing']['view']['focus']();}),_0x527d47['children']['add'](_0x3001f4),_0x5f4b08['items']['add'](_0x527d47);}return _0x3d7119['panelView']['children']['add'](_0x5f4b08),_0x3d7119['bind']('isEnabled')['to'](_0x1e0b81,'isEnabled'),_0x3d7119;});}['afterInit'](){checkLicense$2(this);}['_createTemplateListView'](_0x6fbb98,_0x1513e9){const {editor:_0x44037d}=this,_0x34f28a=new TemplateListView(_0x6fbb98);return _0x34f28a['extendTemplate']({'attributes':{'role':'listbox','class':['ck-template-list']}}),_0x34f28a['items']['addMany'](_0x1513e9['map']((_0x42457c,_0x981f5c)=>{const _0x341a81=new TemplateListItemView(_0x6fbb98,_0x981f5c),_0x3bfbdf=new TemplateListButtonView(_0x6fbb98,_0x42457c);return _0x341a81['buttonView']=_0x3bfbdf,_0x341a81['children']['add'](_0x3bfbdf),_0x341a81['buttonView']['on']('execute',_0x25b16f=>{_0x44037d['execute']('insertTemplate',_0x25b16f['source']['templateDefinition']['data']),_0x44037d['editing']['view']['focus']();}),_0x341a81;})),_0x34f28a;}}async function checkLicense$2(_0x3ae5c4){const _0x2c2cce=_0x45c167([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x3adaa7=window[_0x45c167([0x44,0x61,0x74,0x65])][_0x45c167([0x6e,0x6f,0x77])](),_0x36474f=_0x3ae5c4[_0x45c167([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5072f6=new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xeccacb=>{_0x36474f[_0x45c167([0x6f,0x6e,0x63,0x65])](_0x45c167([0x72,0x65,0x61,0x64,0x79]),_0xeccacb);}),_0x51f060={[_0x45c167([0x6b,0x74,0x79])]:_0x45c167([0x45,0x43]),[_0x45c167([0x75,0x73,0x65])]:_0x45c167([0x73,0x69,0x67]),[_0x45c167([0x63,0x72,0x76])]:_0x45c167([0x50,0x2d,0x32,0x35,0x36]),[_0x45c167([0x78])]:_0x45c167([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x45c167([0x79])]:_0x45c167([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x45c167([0x61,0x6c,0x67])]:_0x45c167([0x45,0x53,0x32,0x35,0x36])},_0x2e8a38=_0x36474f[_0x45c167([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45c167([0x67,0x65,0x74])](_0x45c167([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3132a3=await(async function(){let _0x4f82ba,_0x373060=null,_0x2a7e86=null;try{if(_0x2e8a38==_0x45c167([0x47,0x50,0x4c]))return _0x45c167([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f82ba=(function(){const _0x129b7a=_0x2e8a38[_0x45c167([0x73,0x70,0x6c,0x69,0x74])](_0x45c167([0x2e]));if(0x3!=_0x129b7a[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x1ce6c8=_0x129b7a[0x1];return _0x2dcdc6(_0x1ce6c8);function _0x2dcdc6(_0x406cf2){const _0x37fe24=_0x386c53(_0x406cf2);return _0x37fe24&&_0x3532e3()?_0x37fe24:null;function _0x3532e3(){const _0x152390=_0x37fe24[_0x45c167([0x6a,0x74,0x69])],_0x5089c7=window[_0x45c167([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152390[_0x45c167([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x152390[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1a5e20={..._0x37fe24,[_0x45c167([0x6a,0x74,0x69])]:_0x152390[_0x45c167([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x152390[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1a5e20[_0x45c167([0x76,0x63])],_0x77bef0(_0x1a5e20)==_0x5089c7;}}}()),!_0x4f82ba)return _0x45c167([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4f82ba[_0x45c167([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a7e86=function(_0x1c8f82,_0x5326c1){return new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31f81e=>{if(_0x57a37f())return _0x31f81e(_0x45c167([0x56,0x61,0x6c,0x69,0x64]));_0x5a3d3f(),_0x36474f[_0x45c167([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45c167([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36abde=!0x1;const _0x5463c7=uid();function _0x349339(_0x614094){return!!_0x614094&&(typeof _0x614094===_0x45c167([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x614094===_0x45c167([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x614094[_0x45c167([0x74,0x68,0x65,0x6e])]===_0x45c167([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x614094[_0x45c167([0x63,0x61,0x74,0x63,0x68])]===_0x45c167([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d27f3(_0x24ee97){_0x1c800e(_0x24ee97)[_0x45c167([0x74,0x68,0x65,0x6e])](_0x115711=>{if(!_0x115711||_0x115711[_0x45c167([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45c167([0x6f,0x6b]))return _0x45c167([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5edb2f(_0x77bef0(_0x5463c7+_0x5326c1))!=_0x115711[_0x45c167([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45c167([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45c167([0x56,0x61,0x6c,0x69,0x64]);})[_0x45c167([0x74,0x68,0x65,0x6e])](_0x7081f0=>(_0x16dc06(),_0x7081f0),()=>{const _0x278744=_0x47ee12();return null==_0x278744?(_0x16dc06(),_0x45c167([0x56,0x61,0x6c,0x69,0x64])):_0x45c167(_0x3adaa7-_0x278744>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45c167([0x74,0x68,0x65,0x6e])](_0x31f81e)[_0x45c167([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31f81e(_0x45c167([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc68b29=0x36ee80;function _0x16dc06(){const _0x432e6b=_0x45c167([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edb2f(_0x77bef0(_0x1c8f82)),_0xb187a=_0x5a1893(_0x5edb2f(window[_0x45c167([0x4d,0x61,0x74,0x68])][_0x45c167([0x63,0x65,0x69,0x6c])](_0x3adaa7/_0xc68b29)));window[_0x45c167([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c167([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x432e6b,_0xb187a);}function _0x47ee12(){const _0x40e232=_0x45c167([0x6c,0x6c,0x63,0x74,0x2d])+_0x5edb2f(_0x77bef0(_0x1c8f82)),_0x45d05e=window[_0x45c167([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c167([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40e232);return _0x45d05e?window[_0x45c167([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1893(_0x45d05e),0x10)*_0xc68b29:null;}function _0x1c800e(_0x3ff387){return new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f5709,_0x5f2712)=>{_0x3ff387[_0x45c167([0x74,0x68,0x65,0x6e])](_0x3f5709,_0x5f2712),window[_0x45c167([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f2712,0x1d4c0);});}}_0x36474f[_0x45c167([0x6f,0x6e])](_0x45c167([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x442aa3,_0x3f1ffb)=>{if(_0x3f1ffb[0x0]!=_0x1c8f82)return _0x31f81e(_0x45c167([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f1ffb[0x1]={..._0x3f1ffb[0x1],[_0x45c167([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5463c7};},{[_0x45c167([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c167([0x68,0x69,0x67,0x68])}),_0x36474f[_0x45c167([0x6f,0x6e])](_0x45c167([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3df394=>{_0x349339(_0x3df394[_0x45c167([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36abde=!0x0,_0x5d27f3(_0x3df394[_0x45c167([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45c167([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c167([0x6c,0x6f,0x77])}),_0x5072f6[_0x45c167([0x74,0x68,0x65,0x6e])](()=>{_0x36abde||_0x31f81e(_0x45c167([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57a37f(){return _0x36474f[_0x45c167([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c167([0x76,0x69,0x65,0x77])][_0x45c167([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45c167([0x61,0x75,0x74,0x6f]);}function _0x5a3d3f(){_0x36474f[_0x45c167([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c167([0x76,0x69,0x65,0x77])][_0x45c167([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45c167([0x61,0x75,0x74,0x6f]);}}(_0x4f82ba[_0x45c167([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f82ba[_0x45c167([0x6a,0x74,0x69])]));const _0x3e9a04=await(async function(){let _0x3287f2=!0x0;try{const _0x4f5403=_0x2e8a38[_0x45c167([0x73,0x70,0x6c,0x69,0x74])](_0x45c167([0x2e])),[_0x5a6c2b,_0x225506,_0xd1f752]=_0x4f5403;return _0xa275f(_0x5a6c2b),await _0x1d1797(_0x5a6c2b,_0x225506,_0xd1f752),_0x3287f2;}catch{return!0x1;}function _0xa275f(_0x30074e){const _0x58f70b=_0x386c53(_0x30074e);_0x58f70b&&_0x58f70b[_0x45c167([0x61,0x6c,0x67])]==_0x45c167([0x45,0x53,0x32,0x35,0x36])||(_0x3287f2=!0x1);}async function _0x1d1797(_0x26743d,_0x35b446,_0x8a888b){const _0x43ce1e=window[_0x45c167([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45c167([0x66,0x72,0x6f,0x6d])](_0x189a42(_0x8a888b),_0x2f2780=>_0x2f2780[_0x45c167([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bdb8d=new window[(_0x45c167([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45c167([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26743d+_0x45c167([0x2e])+_0x35b446),_0x356270=window[_0x45c167([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45c167([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x356270)return;const _0x434ec5=await _0x356270[_0x45c167([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45c167([0x6a,0x77,0x6b]),_0x51f060,{[_0x45c167([0x6e,0x61,0x6d,0x65])]:_0x45c167([0x45,0x43,0x44,0x53,0x41]),[_0x45c167([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45c167([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45c167([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x356270[_0x45c167([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45c167([0x6e,0x61,0x6d,0x65])]:_0x45c167([0x45,0x43,0x44,0x53,0x41]),[_0x45c167([0x68,0x61,0x73,0x68])]:{[_0x45c167([0x6e,0x61,0x6d,0x65])]:_0x45c167([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x434ec5,_0x43ce1e,_0x3bdb8d)||(_0x3287f2=!0x1);}}());return _0x3e9a04?(function(){const _0x491ff1=_0x4f82ba[_0x45c167([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x491ff1)return!0x1;if(_0x491ff1[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x2a])))return!0x0;if(_0x491ff1[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x54,0x50,0x4c])))return!0x0;if(_0x491ff1[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x50,0x50])))return!0x0;if(_0x491ff1[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x44,0x52,0x55,0x50]))&&window[_0x45c167([0x44,0x72,0x75,0x70,0x61,0x6c])])return!0x0;if(_0x491ff1[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))&&window[_0x45c167([0x67,0x6c,0x6f,0x62])]&&window[_0x45c167([0x67,0x6c,0x6f,0x62])][_0x45c167([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])])return!0x0;return!0x1;}())?(function(){const _0x3f106c=[_0x45c167([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45c167([0x74,0x72,0x69,0x61,0x6c])][_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f82ba[_0x45c167([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3adaa7/0x3e8:0x69e02680;return _0x4f82ba[_0x45c167([0x65,0x78,0x70])]<_0x3f106c;}())?_0x45c167([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0xbcfb4=_0x4f82ba[_0x45c167([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xbcfb4||0x0==_0xbcfb4[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53185e}=new URL(window[_0x45c167([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xbcfb4[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53185e))return!0x0;const _0xae595c=_0x53185e[_0x45c167([0x73,0x70,0x6c,0x69,0x74])](_0x45c167([0x2e]));return _0xbcfb4[_0x45c167([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d0cd9=>_0x3d0cd9[_0x45c167([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c167([0x2a])))[_0x45c167([0x6d,0x61,0x70])](_0x1af98c=>_0x1af98c[_0x45c167([0x73,0x70,0x6c,0x69,0x74])](_0x45c167([0x2e])))[_0x45c167([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc864c0=>_0xc864c0[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xae595c[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c167([0x6d,0x61,0x70])](_0x3e5777=>Array(_0xae595c[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3e5777[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c167([0x66,0x69,0x6c,0x6c])](_0x3e5777[0x0]===_0x45c167([0x2a])?_0x45c167([0x2a]):'')[_0x45c167([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3e5777))[_0x45c167([0x73,0x6f,0x6d,0x65])](_0xdca774=>_0xae595c[_0x45c167([0x65,0x76,0x65,0x72,0x79])]((_0x425a0a,_0x131d2f)=>_0xdca774[_0x131d2f]===_0x425a0a||_0xdca774[_0x131d2f]===_0x45c167([0x2a])));}())?(_0x4f82ba[_0x45c167([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45c167([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x373060=function(_0x136a44){const _0x46ceee=new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15a69f=>setTimeout(_0x15a69f,0x93ecc)),_0x133159=_0x5072f6[_0x45c167([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12cbe3=>{let _0x61f150=0x0;_0x36474f[_0x45c167([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c167([0x6f,0x6e])](_0x45c167([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa44d68,_0x404ec2)=>{_0x404ec2[0x0][_0x45c167([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x61f150++,0x5e8==_0x61f150&&(_0x12cbe3(),_0xa44d68[_0x45c167([0x6f,0x66,0x66])]());});})),_0x5c7e00=[_0x46ceee,_0x133159];return window[_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45c167([0x72,0x61,0x63,0x65])](_0x5c7e00)[_0x45c167([0x74,0x68,0x65,0x6e])](()=>_0x136a44);}(_0x45c167([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x373060&&_0x2a7e86)return new window[(_0x45c167([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b1685,_0x353c7e)=>{_0x373060[_0x45c167([0x74,0x68,0x65,0x6e])](_0x2b1685,_0x353c7e),_0x2a7e86[_0x45c167([0x74,0x68,0x65,0x6e])](_0x3ef2d0=>{_0x3ef2d0!=_0x45c167([0x56,0x61,0x6c,0x69,0x64])&&_0x2b1685(_0x3ef2d0);},_0x353c7e);});return _0x373060||_0x2a7e86||_0x45c167([0x56,0x61,0x6c,0x69,0x64]);}())):_0x45c167([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45c167([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45c167([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45c167([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x386c53(_0x136939){return _0x136939[_0x45c167([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45c167([0x65,0x79]))?JSON[_0x45c167([0x70,0x61,0x72,0x73,0x65])](_0x189a42(_0x136939)):null;}function _0x189a42(_0xbe0774){return window[_0x45c167([0x61,0x74,0x6f,0x62])](_0xbe0774[_0x45c167([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45c167([0x2b]))[_0x45c167([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45c167([0x2f])));}function _0x77bef0(_0x51183f){let _0x442263=0x1505;function _0x4a206a(_0x25e785){for(let _0x2ad316=0x0;_0x2ad316<_0x25e785[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ad316++){const _0x4bf5c1=_0x25e785[_0x45c167([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ad316);_0x442263=(_0x442263<<0x5)+_0x442263+_0x4bf5c1,_0x442263&=_0x442263;}}return function _0xc5d6c6(_0x4d1fae){Array[_0x45c167([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1fae)?_0x4d1fae[_0x45c167([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc5d6c6):_0x4d1fae&&typeof _0x4d1fae==_0x45c167([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45c167([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1fae)[_0x45c167([0x73,0x6f,0x72,0x74])]()[_0x45c167([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e5c2f,_0x54107c])=>{_0x4a206a(_0x3e5c2f),_0xc5d6c6(_0x54107c);}):_0x4a206a(window[_0x45c167([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1fae));}(_0x51183f),_0x442263>>>0x0;}function _0x5edb2f(_0x5853b6){return _0x5853b6[_0x45c167([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45c167([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45c167([0x30]));}function _0x5a1893(_0xb6f29e){return _0xb6f29e[_0x45c167([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45c167([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45c167([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a7659(){}function _0x45c167(_0x318388){return _0x318388['map'](_0x2eac22=>String['fromCharCode'](_0x2eac22))['join']('');}!function(_0x43c5cd){const _0x54d47a=(function(){const _0x4b862f=window[_0x45c167([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45c167([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45c167([0x6e,0x6f,0x77])]())[_0x45c167([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45c167([0x2e]),'');let _0x3ee89c=_0x45c167([0x67]);for(let _0x249b88=0x0;_0x249b88<_0x4b862f[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x249b88+=0x2){let _0x40b2fa=window[_0x45c167([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b862f[_0x45c167([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x249b88,_0x249b88+0x2));_0x40b2fa>=_0x2c2cce[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40b2fa-=_0x2c2cce[_0x45c167([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ee89c+=_0x2c2cce[_0x40b2fa];}return _0x3ee89c;}());_0x36474f[_0x54d47a]=_0x45c167([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43c5cd,_0x43c5cd!=_0x45c167([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x5072f6,_0x36474f[_0x45c167([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c167([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a7659,_0x36474f[_0x45c167([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c167([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a7659,_0x36474f[_0x45c167([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45c167([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3132a3);}class Template extends Plugin{static get['requires'](){return[TemplateEditing,TemplateUI];}static get['pluginName'](){return'Template';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}class TrackChangesCommand extends Command{['_enabledCommands'];constructor(_0x3e1f29,_0x322a2c){super(_0x3e1f29),this['_enabledCommands']=_0x322a2c,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 _0x2d829b of this['editor']['commands']['commands']())_0x2d829b['affectsData']&&!this['_enabledCommands']['has'](_0x2d829b)&&_0x2d829b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x598329 of this['editor']['commands']['commands']())_0x598329['affectsData']&&!this['_enabledCommands']['has'](_0x598329)&&_0x598329['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends Command{['_suggestions'];constructor(_0x4db856,_0x5f3d8c){super(_0x4db856),this['_suggestions']=_0x5f3d8c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34a0f1){const _0x1e0a8d=this['_suggestions']['get'](_0x34a0f1);if(!_0x1e0a8d)throw new CKEditorError('track-changes-accept-suggestion-not-found',this);const _0x570299=_0x1e0a8d['getRanges']();this['editor']['model']['canEditAt'](_0x570299)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1e0a8d);}}class DiscardSuggestionCommand extends Command{['_suggestions'];constructor(_0x5b65e7,_0xb7a06c){super(_0x5b65e7),this['_suggestions']=_0xb7a06c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa018c4){const _0x587e6a=this['_suggestions']['get'](_0xa018c4);if(!_0x587e6a)throw new CKEditorError('track-changes-discard-suggestion-not-found',this);const _0xdb1fe3=_0x587e6a['getRanges']();this['editor']['model']['canEditAt'](_0xdb1fe3)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x587e6a);}}function renderDescription(_0x43d6bd,_0x22769f){let _0x1306b9='';return _0x1306b9+=_0x43d6bd['split']('*')['map']((_0x36d2a1,_0x19560a)=>_0x19560a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+sanitize(_0x36d2a1)+'</span>':sanitize(_0x36d2a1))['join'](''),_0x22769f&&(_0x1306b9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x22769f['value']+'\x22\x20title=\x22'+_0x22769f['title']+'\x22></span>'),_0x1306b9;}function sanitize(_0x11d4f2){const _0x34ab66=document['createElement']('span');return _0x34ab66['innerText']=_0x11d4f2,_0x34ab66['innerHTML'];}function sortSuggestions(_0xf7416c){return _0xf7416c['sort']((_0x50fe86,_0x1ac15c)=>'attribute'===_0x50fe86['type']&&'attribute'!==_0x1ac15c['type']?-0x1:'attribute'!==_0x50fe86['type']&&'attribute'===_0x1ac15c['type']?0x1:'deletion'==_0x50fe86['type']&&'deletion'!=_0x1ac15c['type']?-0x1:'deletion'!=_0x50fe86['type']&&'deletion'==_0x1ac15c['type']?0x1:0x0);}function getSelectedSuggestions(_0x1675b7,_0x1054e1){const _0x500698=Array['from'](_0x1675b7['getRanges']()),_0x3c0f5d=new Set();for(const _0x3798b8 of _0x1054e1)if(_0x3798b8['isInContent']){for(const _0xbe2315 of _0x500698)for(const _0x46eced of _0x3798b8['getRanges']())(_0xbe2315['isIntersecting'](_0x46eced)||_0x1675b7['isCollapsed']&&!_0x3798b8['isMultiRange']&&_0x3798b8['next']&&_0x46eced['end']['isTouching'](_0xbe2315['start']))&&_0x3c0f5d['add'](_0x3798b8);}return _0x3c0f5d;}function getRangesOfBlockGroups(_0x5932e6,_0xc901c3){let _0xfe86b4,_0x2c4dea=0x0;const _0x38f768=[],_0x2e3d5b=_0xc901c3['schema'];for(;_0x2c4dea<_0x5932e6['length'];){const _0x3c7e39=_0x5932e6[_0x2c4dea],_0x51740d=_0x5932e6[_0x2c4dea+0x1];_0xfe86b4||(_0xfe86b4=_0xc901c3['createPositionBefore'](_0x3c7e39)),areNeighbourBlocks(_0xc901c3,_0x3c7e39,_0x51740d)||(_0x38f768['push'](_0xc901c3['createRange'](_0xfe86b4,_0x2e3d5b['isObject'](_0x3c7e39)?_0xc901c3['createPositionAfter'](_0x3c7e39):_0xc901c3['createPositionAt'](_0x3c7e39,'end'))),_0xfe86b4=null),_0x2c4dea++;}return _0x38f768;}function areNeighbourBlocks(_0x460d57,_0x375eda,_0x419b39){if(!_0x419b39)return!0x1;const _0x58a77e=_0x460d57['createPositionAfter'](_0x375eda),_0x49da45=_0x460d57['createPositionBefore'](_0x419b39);return _0x58a77e['isTouching'](_0x49da45);}const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;function executeCommandForSuggestions(_0x5b48e1,_0xd773c5,_0x5c00f3){for(;_0x5c00f3['length'];){const _0x154183=_0x5c00f3['splice'](0x0,MAX_SUGGESTION_ACTIONS_IN_BATCH);_0x5b48e1['change'](()=>{for(const _0x53aa7e of _0x154183)_0x53aa7e['isInContent']&&_0xd773c5['execute'](_0x53aa7e['id']);});}}class ExecuteOnAllSuggestionsCommand extends Command{['_command'];['_suggestions'];constructor(_0x41ef1b,_0x379a51,_0x467e77){super(_0x41ef1b),this['_command']=_0x379a51,this['_suggestions']=_0x467e77,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33a0cf=Array['from'](this['_suggestions']['values']())['some'](_0x2d3dda=>_0x2d3dda['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x33a0cf;}['execute'](){const _0xe49499=sortSuggestions(Array['from'](this['_suggestions']['values']()));for(const _0xc824c2 of _0xe49499){const _0x56b087=_0xc824c2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56b087))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0xe49499);}}class ExecuteOnSelectedSuggestionsCommand extends Command{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x75a8e6,_0x3d81db,_0x816deb){super(_0x75a8e6),this['_command']=_0x3d81db,this['_suggestions']=_0x816deb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3da731=this['editor']['model']['document']['selection'],_0x10b17d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=getSelectedSuggestions(_0x3da731,_0x10b17d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x18cf09=sortSuggestions(Array['from'](this['_selectedSuggestions']));for(const _0x12f8fe of _0x18cf09){const _0xc85881=_0x12f8fe['getRanges']();if(!this['editor']['model']['canEditAt'](_0xc85881))return;}executeCommandForSuggestions(this['editor']['model'],this['_command'],_0x18cf09);}}class Suggestion extends/* #__PURE__ -- @preserve */
ObservableMixin(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x238c1c,_0x12d479){super(),this['id']=_0x12d479['id'],this['type']=_0x12d479['type'],this['subType']=_0x12d479['subType']||null,this['author']=_0x12d479['author'],this['creator']=_0x12d479['creator']||_0x12d479['author'],this['isExternal']=Boolean(_0x12d479['attributes']&&_0x12d479['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x12d479['originalSuggestionId']||null,this['_model']=_0x238c1c,this['_onAccept']=_0x12d479['onAccept'],this['_onDiscard']=_0x12d479['onDiscard'],this['_onAttributesChange']=_0x12d479['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x12d479['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4e4281=this;for(;_0x4e4281['previous'];)_0x4e4281=_0x4e4281['previous'];return _0x4e4281;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x26fdfa){this['_markerNames']['add'](_0x26fdfa);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xed0d79=>this['_model']['markers']['get'](_0xed0d79))['filter'](_0xe97006=>_0xe97006);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x171c82=>{for(const _0x331ef8 of this['getMarkers']())_0x171c82['removeMarker'](_0x331ef8);}),this['_markerNames']['clear']();}['removeMarker'](_0x17e705){this['_model']['change'](_0x3af3bd=>{_0x3af3bd['removeMarker'](_0x17e705);}),this['_markerNames']['delete'](_0x17e705);}['addRange'](_0x471aff){const _0x25666c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x25666c),this['_model']['change'](_0x2d2aef=>{_0x2d2aef['addMarker'](_0x25666c,{'range':_0x471aff,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3bb515){for(const _0x538456 of this['getRanges']())if(_0x538456['isIntersecting'](_0x3bb515))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x182601=>_0x182601['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5ee58b,_0x3ced0c)=>[..._0x5ee58b,..._0x3ced0c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x17b726=this['getRanges']();if(0x1!=_0x17b726['length'])return null;const _0x256f16=_0x17b726[0x0],_0x1b65b7=_0x256f16['start']['nodeAfter'],_0xbe45e1=_0x256f16['end']['nodeBefore'];return _0x1b65b7 instanceof ModelElement?_0x1b65b7!=_0xbe45e1?null:_0x1b65b7: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 _0x33548d=[];let _0x3bef6f=this['head'];for(;_0x3bef6f;)_0x33548d['push'](_0x3bef6f),_0x3bef6f=_0x3bef6f['next'];return _0x33548d;}['setAttribute'](_0x32728a,_0x2cd206){const _0x517e2a=cloneDeep(this['attributes']);set(_0x517e2a,_0x32728a,_0x2cd206),isEqual(_0x517e2a,this['attributes'])||(this['attributes']=_0x517e2a,this['_onAttributesChange'](_0x517e2a));}['removeAttribute'](_0x28eea9){const _0x3592f4=cloneDeep(this['attributes']);unset(_0x3592f4,_0x28eea9),isEqual(_0x3592f4,this['attributes'])||(this['attributes']=_0x3592f4,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 uid()['substr'](0x1,0x5);}}function getTranslation$1(_0x5426b9,_0x6b4b6c,_0x8daf18){const _0x453ae8=_0x5426b9['t'],t=_0x5426b9['t'];switch(_0x6b4b6c){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',_0x8daf18);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x8daf18);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x8daf18);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x8daf18);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x8daf18);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',_0x8daf18);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x8daf18);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',_0x8daf18);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x8daf18);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x8daf18);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x8daf18);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x8daf18);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x8daf18);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x8daf18);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x8daf18);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x8daf18);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x8daf18);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x8daf18);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x8daf18);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x8daf18);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x8daf18);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x8daf18);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x8daf18);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x8daf18);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x8daf18);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'},_0x8daf18);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x8daf18);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x8daf18);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x8daf18);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x8daf18);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x8daf18);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x8daf18);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x8daf18);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});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'},_0x8daf18);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x8daf18);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x8daf18);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x8daf18);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x8daf18);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'},_0x8daf18);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x8daf18);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'},_0x8daf18);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_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_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'},_0x8daf18);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x8daf18);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'},_0x8daf18);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x8daf18);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'},_0x8daf18);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x8daf18);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x8daf18);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x8daf18);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x8daf18);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x8daf18);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'},_0x8daf18);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x8daf18);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'EXTERNAL_AVATAR':return _0x453ae8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x8daf18);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x453ae8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x8daf18);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x8daf18);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'},_0x8daf18);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'},_0x8daf18);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'},_0x8daf18);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x6b4b6c;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2c0d81,_0x1059aa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c0d81,this['_locale']=_0x1059aa;}['getDescriptions'](_0x1c260d){const _0x4920c1=[],_0x15ef9d=new Set(),_0x55fa91=new Set();for(let _0x52472b=0x0;_0x52472b<_0x1c260d['length'];_0x52472b++){const _0x556d18=_0x1c260d[_0x52472b];if(!_0x556d18['isInContent'])continue;const _0x2c6f2c=this['_handleCustomCallbackDescription'](_0x556d18);if(_0x2c6f2c){if(null!=_0x556d18['subType']){if(_0x15ef9d['has'](_0x556d18['subType']))continue;_0x15ef9d['add'](_0x556d18['subType']);}_0x4920c1['push'](_0x2c6f2c);}else{if('attribute'==_0x556d18['type']){const _0x4719db=_0x556d18['data']['key'];if(_0x55fa91['has'](_0x4719db))continue;_0x55fa91['add'](_0x556d18['data']['key']),_0x4719db==renameAttributeKey?this['_handleRenameSuggestionDescription'](_0x4920c1,_0x556d18):this['_handleAttributeSuggestionDescription'](_0x4920c1,_0x556d18);continue;}'insertion'!=_0x556d18['type']&&'deletion'!=_0x556d18['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4920c1,_0x556d18,_0x1c260d[_0x52472b+0x1]);}}return this['_resolveDescriptionItems'](_0x4920c1);}['registerDescriptionCallback'](_0x59ccd2){this['_customCallbacks']['push'](_0x59ccd2);}['registerElementLabel'](_0x2a9852,_0x53fd0e,_0x140ea6=priorities['normal']){'function'==typeof _0x2a9852?insertToPriorityArray(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a9852,'label':_0x53fd0e,'priority':_0x140ea6}):this['_itemLabels']['set'](_0x2a9852,_0x53fd0e);}['registerAttributeLabel'](_0x412f77,_0x205899){this['_attributeLabels']['set'](_0x412f77,_0x205899);}['getItemLabel'](_0x416023,_0x49ec9b=0x1){let _0x2a8b44;for(const _0x2a3f21 of this['_itemLabelsCallbacks'])if(_0x2a3f21['matchingCallback'](_0x416023)){_0x2a8b44=_0x2a3f21['label'];break;}return _0x2a8b44||(_0x2a8b44=this['_itemLabels']['get'](_0x416023['name'])),_0x2a8b44?_0x2a8b44(_0x49ec9b):0x1!==_0x49ec9b?_0x49ec9b+'\x20'+_0x416023['name']+'s':''+_0x416023['name'];}['_addDescriptionItems'](_0x49f4ec,_0x178e9b){const _0x11d875=_0x178e9b['getFirstRange']()['getWalker'](),_0x45b37e='insertion'==_0x178e9b['type']?'add':'remove';for(const _0x62c588 of _0x11d875){const _0x5e160d=_0x62c588['item'],_0x2ddec6=_0x49f4ec[_0x49f4ec['length']-0x1];if(_0x5e160d['is']('$textProxy'))_0x2ddec6&&_0x2ddec6['type']['indexOf']('Container')>-0x1&&_0x49f4ec['pop'](),_0x2ddec6&&'text'==_0x2ddec6['type']?_0x2ddec6[_0x45b37e]+=_0x5e160d['data']:_0x49f4ec['push']({'type':'text','add':'add'==_0x45b37e?_0x5e160d['data']:'','remove':'remove'==_0x45b37e?_0x5e160d['data']:''});else{if(this['_schema']['isObject'](_0x5e160d)){const _0x1356b1=_0x5e160d;if(_0x2ddec6&&_0x2ddec6['type']['indexOf']('Container')>-0x1&&_0x49f4ec['pop'](),'elementEnd'==_0x62c588['type'])continue;_0x2ddec6&&_0x2ddec6['type']==_0x45b37e+'Object'&&_0x2ddec6['element']['name']==_0x1356b1['name']?_0x2ddec6['quantity']++:_0x49f4ec['push']({'type':_0x45b37e+'Object','element':_0x1356b1,'quantity':0x1}),_0x11d875['skip'](_0x947638=>!('elementEnd'==_0x947638['type']&&_0x947638['item']==_0x5e160d));}else{if(this['_schema']['checkChild'](_0x5e160d,'$text')||_0x5e160d['is']('element','softBreak')){const _0x4e1caa=_0x5e160d;if('add'==_0x45b37e&&'elementStart'==_0x62c588['type']||'remove'==_0x45b37e&&'elementEnd'==_0x62c588['type'])continue;if(_0x2ddec6&&-0x1==_0x2ddec6['type']['indexOf']('Container')){'text'==_0x2ddec6['type']&&(_0x2ddec6[_0x45b37e]+='\x0a');continue;}let _0x587fbe;if(_0x587fbe='add'==_0x45b37e?_0x4e1caa['nextSibling']&&!this['_schema']['isObject'](_0x4e1caa['nextSibling'])?_0x4e1caa['nextSibling']:null:_0x4e1caa['previousSibling']&&!this['_schema']['isObject'](_0x4e1caa['previousSibling'])?_0x4e1caa['previousSibling']:null,_0x4e1caa['isEmpty']||_0x587fbe&&_0x587fbe['isEmpty']){const _0x316a15=_0x587fbe&&_0x587fbe['isEmpty']?_0x587fbe:_0x4e1caa;_0x2ddec6&&_0x2ddec6['type']==_0x45b37e+'EmptyContainer'&&_0x2ddec6['element']['name']==_0x316a15['name']?_0x2ddec6['quantity']++:_0x49f4ec['push']({'type':_0x45b37e+'EmptyContainer','element':_0x316a15,'quantity':0x1});}else _0x49f4ec['push']({'type':_0x45b37e+'Container','element':_0x4e1caa});}}}}}['_resolveDescriptionItems'](_0x24528e){const _0x19b9e8=this['_locale'],_0x5c6c89=[],_0x2f0d1c=[],_0x4a48dd=[];for(const _0x58f7b8 of _0x24528e)switch(_0x58f7b8['type']){case'text':if(_0x58f7b8['add']=_0x58f7b8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58f7b8['remove']=_0x58f7b8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58f7b8['add']&&''!=_0x58f7b8['remove']){_0x5c6c89['push']({'type':'replace','content':getTranslation$1(_0x19b9e8,'REPLACE_TEXT',['\x22'+_0x58f7b8['remove']+'\x22','\x22'+_0x58f7b8['add']+'\x22'])});continue;}if(null!=_0x58f7b8['add']['match'](/^ +$/)){_0x5c6c89['push']({'type':'insertion','content':getTranslation$1(_0x19b9e8,'*Insert:*\x20%0',getTranslation$1(_0x19b9e8,'ELEMENT_SPACE',_0x58f7b8['add']['length']))});continue;}if(null!=_0x58f7b8['remove']['match'](/^ +$/)){_0x5c6c89['push']({'type':'deletion','content':getTranslation$1(_0x19b9e8,'*Remove:*\x20%0',getTranslation$1(_0x19b9e8,'ELEMENT_SPACE',_0x58f7b8['remove']['length']))});continue;}if(''!=_0x58f7b8['add']){_0x5c6c89['push']({'type':'insertion','content':getTranslation$1(_0x19b9e8,'*Insert:*\x20%0','\x22'+_0x58f7b8['add']+'\x22')});continue;}_0x5c6c89['push']({'type':'deletion','content':getTranslation$1(_0x19b9e8,'*Remove:*\x20%0','\x22'+_0x58f7b8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5c6c89['push']({'type':'insertion','content':getTranslation$1(_0x19b9e8,'*Insert:*\x20%0',this['getItemLabel'](_0x58f7b8['element'],_0x58f7b8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5c6c89['push']({'type':'deletion','content':getTranslation$1(_0x19b9e8,'*Remove:*\x20%0',this['getItemLabel'](_0x58f7b8['element'],_0x58f7b8['quantity']))});continue;case'addContainer':_0x5c6c89['push']({'type':'insertion','content':getTranslation$1(_0x19b9e8,'*Split:*\x20%0',this['getItemLabel'](_0x58f7b8['element'],_0x58f7b8['quantity']))});continue;case'removeContainer':_0x5c6c89['push']({'type':'deletion','content':getTranslation$1(_0x19b9e8,'*Merge:*\x20%0',this['getItemLabel'](_0x58f7b8['element'],_0x58f7b8['quantity']))});continue;case'addFormat':_0x2f0d1c['push'](_0x58f7b8['key']);continue;case'removeFormat':_0x4a48dd['push'](_0x58f7b8['key']);continue;default:_0x5c6c89['push'](_0x58f7b8);}if(_0x2f0d1c['length']){const _0x588a35=_0x2f0d1c['map'](_0x1d3eb9=>this['_attributeLabels']['has'](_0x1d3eb9)?this['_attributeLabels']['get'](_0x1d3eb9):_0x1d3eb9)['join'](',\x20');_0x5c6c89['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Set\x20format:*\x20%0',_0x588a35)});}if(_0x4a48dd['length']){const _0x486c1f=_0x4a48dd['map'](_0x187a60=>this['_attributeLabels']['has'](_0x187a60)?this['_attributeLabels']['get'](_0x187a60):_0x187a60)['join'](',\x20');_0x5c6c89['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Remove\x20format:*\x20%0',_0x486c1f)});}return _0x5c6c89;}['_handleCustomCallbackDescription'](_0x508377){for(const _0x260f72 of this['_customCallbacks']){const _0x43c2b2=_0x260f72(_0x508377);if(_0x43c2b2&&'type'in _0x43c2b2)return _0x43c2b2;}}['_handleAttributeSuggestionDescription'](_0x2998a3,_0x129e7f){const _0x3f155e=_0x129e7f['data'],_0x3b1dd5=void 0x0===_0x3f155e['newValue']?'removeFormat':'addFormat';_0x2998a3['push']({'type':_0x3b1dd5,'key':_0x3f155e['key']});}['_handleRenameSuggestionDescription'](_0xef57aa,_0x2402a4){_0xef57aa['push']({'type':'format','content':getTranslation$1(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2402a4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5a8a37,_0xcab0ba,_0x22677b){if(this['_addDescriptionItems'](_0x5a8a37,_0xcab0ba),_0x22677b&&_0x22677b['getFirstRange']()&&!_0xcab0ba['getFirstRange']()['end']['isEqual'](_0x22677b['getFirstRange']()['start'])){const _0x5ceb46=_0x5a8a37[_0x5a8a37['length']-0x1],_0x5a46ea='insertion'==_0xcab0ba['type']?'add':'remove';_0x5ceb46&&'text'==_0x5ceb46['type']&&(_0x5ceb46[_0x5a46ea]+='\x0a');}}}class TrackChangesAIAssistant extends Plugin{['afterInit'](){const _0x15f2ba=this['editor'],_0x4f8d65=_0x15f2ba['plugins']['get']('TrackChangesEditing');_0x15f2ba['commands']['get']('showAIAssistant')&&_0x4f8d65['enableCommand']('showAIAssistant');}}class TrackChangesAI extends Plugin{['afterInit'](){const _0x258fb8=this['editor'],_0x15080f=_0x258fb8['plugins']['get']('TrackChangesEditing');_0x258fb8['commands']['get']('toggleAi')&&_0x15080f['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends Plugin{['afterInit'](){const _0x271de8=this['editor'],_0x3939c3=_0x271de8['plugins']['get']('TrackChangesEditing');_0x271de8['commands']['get']('aiQuickAction')&&_0x3939c3['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends Plugin{['afterInit'](){const _0x295641=this['editor'],_0x5d7138=_0x295641['locale'];if(!_0x295641['plugins']['has']('AlignmentEditing'))return;const _0x63aca0=_0x295641['plugins']['get']('TrackChangesEditing');_0x63aca0['enableDefaultAttributesIntegration']('alignment'),_0x63aca0['descriptionFactory']['registerAttributeLabel']('alignment',getTranslation$1(_0x5d7138,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76acf2=this['editor'],_0x472e47=_0x76acf2['locale'];_0x76acf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1871c1=>{if('formatBlock'!=_0x1871c1['type'])return;const {data:_0x328b85}=_0x1871c1;if(_0x328b85&&'alignment'==_0x328b85['commandName']){const _0x4cc584=_0x328b85['commandParams'][0x0]['value'];return{'type':'format','content':getTranslation$1(_0x472e47,'*Format:*\x20%0',function(_0x309161){switch(_0x309161){case'left':return getTranslation$1(_0x472e47,'FORMAT_ALIGN_TO_LEFT');case'right':return getTranslation$1(_0x472e47,'FORMAT_ALIGN_TO_RIGHT');case'center':return getTranslation$1(_0x472e47,'FORMAT_ALIGN_TO_CENTER');case'justify':return getTranslation$1(_0x472e47,'FORMAT_JUSTIFY_TEXT');}}(_0x4cc584))};}});}}const basicStylesPlugins=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends Plugin{['afterInit'](){const _0x457f63=this['editor'],_0x4cc3a5=_0x457f63['plugins']['get']('TrackChangesEditing'),_0x9d61d=_0x457f63['locale'];for(const _0x5d3989 of basicStylesPlugins){if(!_0x457f63['plugins']['has'](_0x5d3989))continue;const _0xa9d0e9=_0x5d3989['slice'](0x0,-0x7)['toLowerCase'](),_0x37a885='FORMAT_'+_0xa9d0e9['toUpperCase']();_0x4cc3a5['enableDefaultAttributesIntegration'](_0xa9d0e9),_0x4cc3a5['descriptionFactory']['registerAttributeLabel'](_0xa9d0e9,getTranslation$1(_0x9d61d,_0x37a885));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e747c=this['editor'],_0x315eb5=_0x2e747c['locale'],_0xb4184=_0x2e747c['plugins']['get']('TrackChangesEditing');function _0x5bdcb7(_0x5bcd30,_0x42c4a7){_0xb4184['descriptionFactory']['registerDescriptionCallback'](_0x158d63=>{if('formatInline'!=_0x158d63['type'])return;const {data:_0x1533ae}=_0x158d63;return _0x1533ae&&_0x1533ae['commandName']===_0x5bcd30?_0x1533ae['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x315eb5,'*Format:*\x20%0',_0x42c4a7)}:{'type':'format','content':getTranslation$1(_0x315eb5,'*Remove\x20format:*\x20%0',_0x42c4a7)}:void 0x0;});}_0x5bdcb7('bold',getTranslation$1(_0x315eb5,'FORMAT_BOLD')),_0x5bdcb7('italic',getTranslation$1(_0x315eb5,'FORMAT_ITALIC')),_0x5bdcb7('underline',getTranslation$1(_0x315eb5,'FORMAT_UNDERLINE')),_0x5bdcb7('code',getTranslation$1(_0x315eb5,'FORMAT_CODE')),_0x5bdcb7('strikethrough',getTranslation$1(_0x315eb5,'FORMAT_STRIKETHROUGH')),_0x5bdcb7('subscript',getTranslation$1(_0x315eb5,'FORMAT_SUBSCRIPT')),_0x5bdcb7('superscript',getTranslation$1(_0x315eb5,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends Plugin{['afterInit'](){const _0xbb287d=this['editor'],_0x60851a=_0xbb287d['locale'];if(!_0xbb287d['plugins']['has']('BlockQuoteEditing'))return;const _0x343c0b=_0xbb287d['plugins']['get']('TrackChangesEditing'),_0x6e1f15=this['editor']['commands']['get']('blockQuote');_0x343c0b['enableCommand']('blockQuote',(_0x507b18,_0x48a608={})=>{const _0x40f6b9=this['editor']['model']['document']['selection'],_0x40d3e5=_0x48a608&&void 0x0!==_0x48a608['forceValue']?_0x48a608['forceValue']:!_0x6e1f15['value'];let _0x42da66=[];if(_0x40d3e5){const _0x9256d0=Array['from'](_0x40f6b9['getSelectedBlocks']())['filter'](_0x5155c3=>isInQuote(_0x5155c3)||checkCanBeQuoted(_0x5155c3,this['editor']['model']['schema']));_0x42da66=getRangesOfBlockGroups(_0x9256d0,_0xbb287d['model']);}else{const _0x33acfd=Array['from'](_0x40f6b9['getSelectedBlocks']())['filter'](_0x1b9df9=>isInQuote(_0x1b9df9));_0x42da66=getRangesOfBlockGroups(_0x33acfd,_0xbb287d['model']);}_0xbb287d['model']['change'](()=>{for(const _0x109b34 of _0x42da66)_0x343c0b['markBlockFormat'](_0x109b34,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40d3e5}]});});}),_0x343c0b['descriptionFactory']['registerDescriptionCallback'](_0x12bde7=>{const {data:_0x5d84f1}=_0x12bde7;if(_0x5d84f1&&'blockQuote'==_0x5d84f1['commandName']){const _0x331583=getTranslation$1(_0x60851a,'ELEMENT_BLOCK_QUOTE');return _0x5d84f1['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x60851a,'*Set\x20format:*\x20%0',_0x331583)}:{'type':'format','content':getTranslation$1(_0x60851a,'*Remove\x20format:*\x20%0',_0x331583)};}});}}function checkCanBeQuoted(_0x13f4bf,_0x10dcce){const _0x6eed73=_0x10dcce['checkChild'](_0x13f4bf['parent'],'blockQuote'),_0x176567=_0x10dcce['checkChild'](['$root','blockQuote'],_0x13f4bf);return _0x6eed73&&_0x176567;}function isInQuote(_0x2bffd4){return'blockQuote'==_0x2bffd4['parent']['name'];}class TrackChangesBookmark extends Plugin{['afterInit'](){const _0x49285b=this['editor'],_0x3dee71=_0x49285b['locale'],_0x2b51cb=_0x49285b['plugins']['get']('TrackChangesEditing');_0x49285b['plugins']['has']('BookmarkEditing')&&(_0x2b51cb['enableCommand']('insertBookmark'),_0x2b51cb['enableDefaultAttributesIntegration']('updateBookmark'),_0x2b51cb['descriptionFactory']['registerDescriptionCallback'](_0x5062ba=>{if('insertion'!=_0x5062ba['type']&&'deletion'!=_0x5062ba['type']&&'attribute'!=_0x5062ba['type'])return;const _0x211462=_0x5062ba['getContainedElement']();if(null==_0x211462)return;if(!_0x211462['is']('element','bookmark'))return;const _0x20c471=_0x211462['getAttribute']('bookmarkId');if('insertion'==_0x5062ba['type'])return{'type':'insertion','content':getTranslation$1(_0x3dee71,'*Insert:*\x20%0','\x22'+_0x20c471+'\x22\x20'+getTranslation$1(_0x3dee71,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5062ba['type'])return{'type':'deletion','content':getTranslation$1(_0x3dee71,'*Remove:*\x20%0','\x22'+_0x20c471+'\x22\x20'+getTranslation$1(_0x3dee71,'ELEMENT_BOOKMARK'))};const {data:_0x52c1d2}=_0x5062ba;if(!_0x52c1d2||'bookmarkId'!=_0x52c1d2['key'])return;return{'type':'format','content':getTranslation$1(_0x3dee71,'*Set\x20bookmark:*\x20%0','\x22'+_0x52c1d2['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends Plugin{['afterInit'](){const _0x3664dc=this['editor'];_0x3664dc['plugins']['has']('CaseChange')&&(_0x3664dc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3664dc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3664dc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends Plugin{['afterInit'](){const _0x305264=this['editor'];_0x305264['commands']['get']('ckbox')&&_0x305264['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends Plugin{['afterInit'](){const _0x4be995=this['editor'];if(!_0x4be995['plugins']['has']('CodeBlock'))return;const _0xf36e0=_0x4be995['plugins']['get']('TrackChangesEditing'),_0x17bd1d=_0x4be995['locale'],_0x21676a=_0x4be995['config']['get']('codeBlock')['languages'],_0x540968=_0x4be995['commands']['get']('codeBlock');_0xf36e0['enableCommand']('indentCodeBlock'),_0xf36e0['enableCommand']('outdentCodeBlock'),_0xf36e0['enableCommand']('codeBlock',(_0x3b1a74,_0x4d12a3={})=>{const _0x1745e6=_0x4be995['model'],_0x44b88d=_0x4be995['model']['document']['selection'],_0x1274ea=_0x4d12a3&&void 0x0!==_0x4d12a3['forceValue']?_0x4d12a3['forceValue']:!_0x540968['value'];let _0x1315b7;_0x4d12a3['language']||(_0x4d12a3['language']=_0x21676a[0x0]['language']),_0x1315b7=_0x1274ea?Array['from'](_0x44b88d['getSelectedBlocks']())['filter'](_0x2d7f2f=>isCodeBlock(_0x2d7f2f)||canBeCodeBlock(_0x2d7f2f,_0x1745e6['schema'])):Array['from'](_0x44b88d['getSelectedBlocks']())['filter'](_0x20dcea=>isCodeBlock(_0x20dcea));const _0x28cf99=getRangesOfBlockGroups(_0x1315b7,_0x1745e6);_0x1745e6['change'](()=>{for(const _0x47c64c of _0x28cf99)_0xf36e0['markBlockFormat'](_0x47c64c,{'commandName':'codeBlock','commandParams':[{..._0x4d12a3,'forceValue':_0x1274ea}],'formatGroupId':'blockName'});});}),(_0xf36e0['descriptionFactory']['registerElementLabel']('codeBlock',_0x5033c7=>getTranslation$1(_0x17bd1d,'ELEMENT_CODE_BLOCK',_0x5033c7)),_0xf36e0['descriptionFactory']['registerDescriptionCallback'](_0xeb232e=>{if('formatBlock'!=_0xeb232e['type'])return;const _0x462340=_0x17bd1d['t'],{data:_0x567b61}=_0xeb232e;if(!_0x567b61||'codeBlock'!=_0x567b61['commandName'])return;const _0x4bf60e=_0x567b61['commandParams'][0x0]['language'],_0x6c3ae8=_0x21676a['find'](_0x4f00af=>_0x4f00af['language']===_0x4bf60e)['label'],_0x3ea5d7=_0x462340(_0x6c3ae8)['toLowerCase']();return _0x567b61['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x17bd1d,'*Set\x20format:*\x20%0',getTranslation$1(_0x17bd1d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3ea5d7+')')}:{'type':'format','content':getTranslation$1(_0x17bd1d,'*Remove\x20format:*\x20%0',getTranslation$1(_0x17bd1d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function canBeCodeBlock(_0x52adf4,_0x3dcf1a){return!_0x52adf4['is']('rootElement')&&!_0x3dcf1a['isLimit'](_0x52adf4)&&_0x3dcf1a['checkChild'](_0x52adf4['parent'],'codeBlock');}function isCodeBlock(_0x12a0dd){return'codeBlock'==_0x12a0dd['name'];}class TrackChangesComments extends Plugin{['afterInit'](){const _0x41434b=this['editor'];if(!_0x41434b['plugins']['has']('CommentsEditing'))return;_0x41434b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends Plugin{static get['requires'](){return[Delete];}['init'](){const _0x2796c0=this['editor'],_0x4f99d4=_0x2796c0['plugins']['get']('TrackChangesEditing');_0x4f99d4['enableCommand']('delete');const _0x4471b5=_0x2796c0['commands']['get']('deleteForward');_0x4f99d4['enableCommand']('deleteForward',(_0x5ace2b,_0xdff5c9={})=>{const _0x1d2a97=_0x2796c0['model']['createSelection'](_0x2796c0['model']['document']['selection']);_0x1d2a97['isCollapsed']&&_0x2796c0['model']['modifySelection'](_0x1d2a97,{'direction':'forward','unit':_0xdff5c9['unit']});const _0x5d580c=_0x1d2a97['getFirstRange'](),_0x4b64fc=ModelLiveRange['fromRange'](_0x5d580c);let _0x388015;_0x5ace2b(_0xdff5c9),_0x388015='$graveyard'==_0x4b64fc['root']['rootName']?_0x2796c0['model']['createRange'](_0x5d580c['start']):_0x2796c0['model']['createRange'](_0x4b64fc['start'],_0x4b64fc['end']),_0x4b64fc['detach'](),_0x2796c0['model']['enqueueChange'](_0x4471b5['buffer']['batch'],_0x11f5ee=>{_0x4471b5['buffer']['lock'](),_0x11f5ee['setSelection'](_0x11f5ee['createRange'](_0x388015['end'])),_0x4471b5['buffer']['unlock']();});});}}class TrackChangesList extends Plugin{['afterInit'](){const _0x441073=this['editor'];if(!_0x441073['plugins']['has']('ListEditing'))return;const _0x5f5ceb=_0x441073['locale'],_0x166038=_0x441073['plugins']['get']('TrackChangesEditing'),_0x12b67c=_0x441073['plugins']['has']('TodoListEditing'),_0x188f5a=!!_0x441073['config']['get']('list.multiBlock');function _0x56ee6a(_0x19073c){return{'type':'format','content':''+getTranslation$1(_0x5f5ceb,'*Set\x20format:*\x20%0',_0x19073c)};}function _0x19a8ea(_0x470c13){return{'type':'format','content':''+getTranslation$1(_0x5f5ceb,'*Remove\x20format:*\x20%0',_0x470c13)};}_0x166038['enableDefaultAttributesIntegration']('numberedList'),_0x166038['enableDefaultAttributesIntegration']('bulletedList'),_0x166038['enableDefaultAttributesIntegration']('customNumberedList'),_0x166038['enableDefaultAttributesIntegration']('customBulletedList'),_0x166038['enableDefaultAttributesIntegration']('indentList'),_0x166038['enableDefaultAttributesIntegration']('outdentList'),_0x166038['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x166038['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x188f5a&&(_0x166038['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x166038['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x12b67c&&(_0x166038['enableDefaultAttributesIntegration']('todoList'),_0x166038['enableDefaultAttributesIntegration']('checkTodoList'),_0x166038['descriptionFactory']['registerDescriptionCallback'](_0x4a6aba=>{const {data:_0x9e0653}=_0x4a6aba;if(_0x9e0653&&'todoListChecked'==_0x9e0653['key'])return{'type':'format','content':_0x9e0653['newValue']?getTranslation$1(_0x5f5ceb,'*Check\x20item*'):getTranslation$1(_0x5f5ceb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x484326=>{if(_0x484326['batch']['isUndo'])return!0x1;let _0x9fe12f=!0x1;const _0x578d6a=_0x166038['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbef576=>'todoListChecked'===_0x166038['_getAttributeKey'](_0xbef576));for(const _0x3a9b3a of _0x578d6a){'todo'!=_0x3a9b3a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x166038['_findSuggestions'](_0x3a9b3a['getFirstRange'](),'attribute')['find'](_0x447350=>'listType'===_0x166038['_getAttributeKey'](_0x447350['suggestion']))||(_0x484326['removeMarker'](_0x3a9b3a['getFirstMarker']()),_0x9fe12f=!0x0));}return _0x9fe12f;})),_0x166038['descriptionFactory']['registerAttributeLabel']('listIndent',getTranslation$1(_0x5f5ceb,'FORMAT_INDENT'));const _0x1eb4a5={'type':'format','content':''};_0x166038['descriptionFactory']['registerDescriptionCallback'](_0x53958d=>{const {data:_0x12e6f6}=_0x53958d;if(!_0x12e6f6||'listType'!=_0x12e6f6['key'])return;let _0x2b993c=_0x53958d['head'];for(;_0x2b993c;){if(_0x2b993c['data']&&(('listStyle'==_0x2b993c['data']['key']||'listMarkerStyle'==_0x2b993c['data']['key'])&&(_0x2b993c['data']['newValue']&&'default'!=_0x2b993c['data']['newValue']||'default'!=_0x2b993c['data']['oldValue']&&!_0x12e6f6['newValue'])||!_0x188f5a&&_0x2b993c['data']['key']==renameAttributeKey))return _0x1eb4a5;_0x2b993c=_0x2b993c['next'];}if(null==_0x12e6f6['newValue'])switch(_0x12e6f6['oldValue']){case'bulleted':return _0x19a8ea(getTranslation$1(_0x5f5ceb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19a8ea(getTranslation$1(_0x5f5ceb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19a8ea(getTranslation$1(_0x5f5ceb,'ELEMENT_TODO_LIST'));}switch(_0x12e6f6['newValue']){case'bulleted':return _0x56ee6a(getTranslation$1(_0x5f5ceb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56ee6a(getTranslation$1(_0x5f5ceb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56ee6a(getTranslation$1(_0x5f5ceb,'ELEMENT_TODO_LIST'));}}),_0x166038['descriptionFactory']['registerDescriptionCallback'](_0x1f0807=>{const {data:_0x16f9ca}=_0x1f0807;if(_0x16f9ca&&'listIndent'==_0x16f9ca['key'])return null==_0x16f9ca['newValue']||null==_0x16f9ca['oldValue']&&0x0==_0x16f9ca['newValue']?_0x1eb4a5:void 0x0;}),_0x166038['descriptionFactory']['registerDescriptionCallback'](_0x25f7b5=>{if('attribute'!=_0x25f7b5['type'])return;const {data:_0x4ec414}=_0x25f7b5;if(!_0x4ec414||'listItemId'!=_0x4ec414['key'])return;const _0x262403=checkSiblingsListItemId(_0x25f7b5);return'newValue'==_0x262403?{'type':'format','content':getTranslation$1(_0x5f5ceb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x262403?{'type':'format','content':getTranslation$1(_0x5f5ceb,'*Split:*\x20list\x20item')}:_0x1eb4a5;}),_0x441073['model']['document']['registerPostFixer'](_0x3350b5=>this['listItemIdFixer'](_0x3350b5)),_0x441073['model']['document']['registerPostFixer'](_0x8fb3ee=>this['noTrackChangesFixer'](_0x8fb3ee)),_0x441073['model']['document']['on']('change:data',(_0x44b34c,_0x25eb21)=>{if(_0x25eb21['isUndo']||!_0x25eb21['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b58eb){if(_0x1b58eb['batch']['isUndo']||!_0x1b58eb['batch']['isLocal'])return!0x1;let _0x4b89b8=!0x1;const _0x42941d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd87718=>_0xd87718['data']&&'listItemId'==_0xd87718['data']['key'])['filter'](_0x258453=>_0x258453['data']['newValue']&&_0x258453['data']['oldValue']);for(const _0xd046ba of _0x42941d)checkSiblingsListItemId(_0xd046ba)||(_0x1b58eb['removeMarker'](_0xd046ba['getFirstMarker']()),_0x4b89b8=!0x0);return _0x4b89b8;}['noTrackChangesFixer'](_0x161d35){if(_0x161d35['batch']['isUndo']||!_0x161d35['batch']['isLocal'])return!0x1;const _0x5cfdf7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5cfdf7['trackChangesCommand']['value'])return!0x1;let _0x19ead6=!0x1;const _0x150762=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x313b7a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5524ba=>'attribute'==_0x5524ba['type'])['filter'](_0x3dc341=>_0x150762['includes'](_0x3dc341['attributeKey']));if(0x0==_0x313b7a['length'])return _0x19ead6;for(const _0x2a2178 of _0x313b7a){const _0x2e9553=_0x5cfdf7['_findSuggestions'](_0x2a2178['range'],'attribute')['filter'](_0x27af30=>!_0x27af30['meta']['isNextTo'])['map'](_0x3f0200=>_0x3f0200['suggestion'])['filter'](_0x472039=>{const _0x1c39ec=_0x5cfdf7['_getAttributeKey'](_0x472039);return _0x150762['includes'](_0x1c39ec);});if(_0x2e9553['length']){for(const _0x561546 of _0x2e9553)_0x161d35['removeMarker'](_0x561546['getFirstMarker']());_0x19ead6=!0x0;}}return _0x19ead6;}['assureChains'](){const _0x762cb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6a33=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c42ae;const _0x3572b7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x472d63=>{if(_0x472d63['data']['oldRange']||!_0x472d63['data']['newRange'])return null;if(!_0x472d63['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x560112}=_0x762cb5['_splitMarkerName'](_0x472d63['name']);if(!_0x762cb5['hasSuggestion'](_0x560112))return null;const _0x3bebbd=_0x762cb5['getSuggestion'](_0x560112);return _0x1f6a33['includes'](_0x3bebbd['data']['key']);})['map'](_0x1ba5f4=>{const {id:_0x5ea568}=_0x762cb5['_splitMarkerName'](_0x1ba5f4['name']),_0x3f04e7=_0x762cb5['getSuggestion'](_0x5ea568);return _0x5c42ae=_0x3f04e7['attributes']['groupId'],_0x3f04e7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3572b7['size'])return;const _0x5a7f1b=_0x762cb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ffff7=>'attribute'==_0x3ffff7['type']&&_0x3ffff7['data']&&_0x1f6a33['includes'](_0x3ffff7['data']['key'])&&_0x3ffff7['attributes']['groupId']!=_0x5c42ae)['map'](_0x1b188e=>({'listItem':_0x1b188e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1b188e['attributes']['groupId']})),_0x31d9ab=new Set();for(const {groupId:_0x9b3150,listItem:_0x90a494}of _0x5a7f1b)_0x3572b7['has'](_0x90a494)&&_0x31d9ab['add'](_0x9b3150);for(const _0x5e8249 of _0x762cb5['getSuggestions']())_0x31d9ab['has'](_0x5e8249['attributes']['groupId'])&&_0x5e8249['setAttribute']('groupId',_0x5c42ae);}['_supportLegacySuggestions'](){const _0x329997=this['editor'],_0x219dde=_0x329997['locale'],_0x191706=_0x329997['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x191706['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xb76cf7,_0x5d4d1d){const _0x4b8c2c=[];for(let _0x3aee44 of _0xb76cf7)_0x3aee44['start']['nodeAfter']===_0x3aee44['end']['parent']&&(_0x3aee44=_0x329997['model']['createRange'](_0x329997['model']['createPositionAt'](_0x3aee44['start']['nodeAfter'],0x0))),_0x4b8c2c['push'](_0x3aee44);_0x329997['model']['change'](_0x5cf0bc=>{const _0x30bbed=_0x329997['model']['document']['selection'],_0x3c83d9=Array['from'](_0x30bbed['getRanges']())['map'](_0x15e8f3=>ModelLiveRange['fromRange'](_0x15e8f3));_0x5cf0bc['setSelection'](_0x4b8c2c),_0x329997['commands']['get'](_0x5d4d1d['commandName'])['refresh'](),_0x5d4d1d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x329997['execute'](_0x5d4d1d['commandName'],..._0x5d4d1d['commandParams']),_0x5cf0bc['setSelection'](_0x3c83d9);for(const _0x184690 of _0x3c83d9)_0x184690['detach']();});}),_0x191706['descriptionFactory']['registerElementLabel'](function(_0x408b38){const _0x24760c=!_0x329997['model']['schema']['isObject'](_0x408b38),_0xb136bb=_0x408b38['previousSibling'],_0x7d95e8=_0x408b38['nextSibling'],_0x1c7cce=_0x408b38['getAttribute']('listItemId'),_0x31d971=!_0xb136bb||_0xb136bb['getAttribute']('listItemId')!==_0x1c7cce,_0x2690a8=!_0x7d95e8||_0x7d95e8['getAttribute']('listItemId')!==_0x1c7cce;return _0x24760c&&Boolean(_0x1c7cce)&&_0x31d971&&_0x2690a8;},_0x1ebd58=>getTranslation$1(_0x219dde,'ELEMENT_LIST_ITEM',_0x1ebd58));}['_registerLegacyDescription'](){const _0x22b18e=this['editor'],_0x142c8f=_0x22b18e['locale'];function _0x189bb2(_0x556e01){const _0x2e5d6f=_0x22b18e['commands']['get']('bulletedList')['value'],_0x23824b=_0x22b18e['commands']['get']('numberedList')['value'];return'numberedList'===_0x556e01?_0x2e5d6f:_0x23824b;}_0x22b18e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13da40){if('formatBlock'!=_0x13da40['type'])return;const {data:_0x47c8c7}=_0x13da40;if(!_0x47c8c7)return;let _0xfa3922,_0x43cc0f,_0x54db02,_0x5f3d1a;switch(_0x47c8c7['commandName']){case'bulletedList':_0x54db02=_0x47c8c7['commandParams'][0x0]['forceValue'],_0x5f3d1a=_0x189bb2(_0x47c8c7['commandName']),_0xfa3922=_0x54db02?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f3d1a&&_0x22b18e['config']['get']('list.multiBlock')||(_0xfa3922='*Change\x20to:*\x20%0'),_0x43cc0f={'type':'format','content':getTranslation$1(_0x142c8f,_0xfa3922,getTranslation$1(_0x142c8f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54db02=_0x47c8c7['commandParams'][0x0]['forceValue'],_0x5f3d1a=_0x189bb2(_0x47c8c7['commandName']),_0xfa3922=_0x54db02?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f3d1a&&_0x22b18e['config']['get']('list.multiBlock')||(_0xfa3922='*Change\x20to:*\x20%0'),_0x43cc0f={'type':'format','content':getTranslation$1(_0x142c8f,_0xfa3922,getTranslation$1(_0x142c8f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xfa3922='*Indent:*\x20%0',_0x43cc0f={'type':'format','content':getTranslation$1(_0x142c8f,_0xfa3922,getTranslation$1(_0x142c8f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xfa3922=function(_0x52018e){const _0x2f38e2=_0x52018e['getFirstRange']();let _0x18b2d8=_0x2f38e2['start']['nodeAfter'];for(;_0x18b2d8&&_0x2f38e2['containsItem'](_0x18b2d8);){if(_0x18b2d8['getAttribute']('listIndent')>0x0)return!0x1;_0x18b2d8=_0x18b2d8['nextSibling'];}return!0x0;}(_0x13da40)?getTranslation$1(_0x142c8f,'*Format:*\x20remove\x20from\x20%0',getTranslation$1(_0x142c8f,function(_0x53104a){return'ELEMENT_'+_0x53104a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13da40))):getTranslation$1(_0x142c8f,'*Outdent:*\x20%0',getTranslation$1(_0x142c8f,'ELEMENT_LIST_ITEM')),_0x43cc0f={'type':'format','content':_0xfa3922};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x47c8c7['multipleBlocks']&&(_0xfa3922='*Merge:*\x20%0',_0x43cc0f={'type':'deletion','content':getTranslation$1(_0x142c8f,_0xfa3922,getTranslation$1(_0x142c8f,'ELEMENT_LIST_ITEM'))});}return _0x43cc0f;});}}function checkSiblingsListItemId(_0x38c142){let _0x2a85ed=_0x38c142['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2a85ed;){const _0x441752=_0x2a85ed['getAttribute']('listItemId');if(!_0x441752)return!0x1;if(_0x441752==_0x38c142['data']['newValue'])return'newValue';if(_0x441752==_0x38c142['data']['oldValue'])return'oldValue';_0x2a85ed=_0x2a85ed['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ed754=this['editor']['config']['get']('list.properties'),_0x696427=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ed754['styles']&&_0x696427['enableDefaultAttributesIntegration']('listStyle'),_0x4ed754['reversed']&&_0x696427['enableDefaultAttributesIntegration']('listReversed'),_0x4ed754['startIndex']&&_0x696427['enableDefaultAttributesIntegration']('listStart');const _0x4912bd={'type':'format','content':''};_0x696427['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x263082=this['editor']['locale'];_0x696427['descriptionFactory']['registerAttributeLabel']('listReversed',getTranslation$1(_0x263082,'FORMAT_LIST_REVERSED')),_0x696427['descriptionFactory']['registerDescriptionCallback'](_0x254f2c=>{const {data:_0x28430f}=_0x254f2c;if(_0x28430f&&'listReversed'==_0x28430f['key'])return null==_0x28430f['newValue']||0x0==_0x28430f['newValue']&&null==_0x28430f['oldValue']?_0x4912bd:void 0x0;}),_0x696427['descriptionFactory']['registerAttributeLabel']('listStart',getTranslation$1(_0x263082,'FORMAT_LIST_START')),_0x696427['descriptionFactory']['registerDescriptionCallback'](_0x57d91e=>{const {data:_0x4d6938}=_0x57d91e;if(_0x4d6938&&'listStart'==_0x4d6938['key'])return null==_0x4d6938['newValue']||0x1==_0x4d6938['newValue']&&null==_0x4d6938['oldValue']?_0x4912bd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3bae00=>{if(_0x3bae00['batch']['isUndo'])return!0x1;let _0x4ec69f=!0x1;const _0x44022c=_0x696427['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26f216=>{const _0x3aeac0=_0x696427['_getAttributeKey'](_0x26f216);return'listStart'==_0x3aeac0||'listReversed'==_0x3aeac0;});for(const _0x20ec36 of _0x44022c){const _0x5d8d98=_0x20ec36['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5d8d98||'customNumbered'==_0x5d8d98)continue;_0x696427['_findSuggestions'](_0x20ec36['getFirstRange'](),'attribute')['find'](_0x1e4d44=>'listType'==_0x696427['_getAttributeKey'](_0x1e4d44['suggestion']))||(_0x3bae00['removeMarker'](_0x20ec36['getFirstMarker']()),_0x4ec69f=!0x0);}return _0x4ec69f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1c317e){const _0x4ea18d=this['editor']['locale'],{data:_0x45f8d6}=_0x1c317e,_0x561956={'type':'format','content':''};if(!_0x45f8d6||'listStyle'!=_0x45f8d6['key'])return;if(!_0x45f8d6['oldValue'])return'default'==_0x45f8d6['newValue']?_0x561956:{'type':'format','content':''+getTranslation$1(_0x4ea18d,'*Set\x20format:*\x20%0',getTranslation$1(_0x4ea18d,this['_getTranslationKeyForListStyle'](_0x45f8d6['newValue'])))};if(!_0x45f8d6['newValue']){if('default'==_0x45f8d6['oldValue'])return _0x561956;let _0x4c04d4=_0x1c317e['head'];for(;_0x4c04d4;){if(_0x4c04d4['data']&&'listType'==_0x4c04d4['data']['key']&&_0x4c04d4['data']['newValue'])return _0x561956;_0x4c04d4=_0x4c04d4['next'];}return{'type':'format','content':''+getTranslation$1(_0x4ea18d,'*Remove\x20format:*\x20%0',getTranslation$1(_0x4ea18d,this['_getTranslationKeyForListStyle'](_0x45f8d6['oldValue'])))};}if('default'!=_0x45f8d6['newValue'])return{'type':'format','content':''+getTranslation$1(_0x4ea18d,'*Set\x20format:*\x20%0',getTranslation$1(_0x4ea18d,this['_getTranslationKeyForListStyle'](_0x45f8d6['newValue'])))};let _0x2dab0a=_0x1c317e['head'];for(;_0x2dab0a;){if(_0x2dab0a['data']&&'listType'==_0x2dab0a['data']['key']&&_0x2dab0a['data']['newValue']&&_0x2dab0a['data']['oldValue'])return _0x561956;_0x2dab0a=_0x2dab0a['next'];}return{'type':'format','content':getTranslation$1(_0x4ea18d,'*Set\x20format:*\x20%0',getTranslation$1(_0x4ea18d,'ELEMENT_'+_0x1c317e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xee8e50=this['editor'],_0x2d4397=_0xee8e50['locale'];_0xee8e50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17be9e=>{if('formatBlock'!=_0x17be9e['type'])return;const {data:_0x1cfa85}=_0x17be9e;if(!_0x1cfa85)return;let _0x4a36bf,_0x457013;switch(_0x1cfa85['commandName']){case'listStyle':_0x4a36bf='*Change\x20to:*\x20%0',_0x457013={'type':'format','content':getTranslation$1(_0x2d4397,_0x4a36bf,getTranslation$1(_0x2d4397,this['_getTranslationKeyForListStyle'](_0x1cfa85['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4a36bf=_0x1cfa85['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x457013={'type':'format','content':getTranslation$1(_0x2d4397,_0x4a36bf)};break;case'listStart':_0x4a36bf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x457013={'type':'format','content':getTranslation$1(_0x2d4397,_0x4a36bf,_0x1cfa85['commandParams'][0x0]['startIndex'])};}return _0x457013;});}['_getTranslationKeyForListStyle'](_0x5d22bb){return'ELEMENT_'+getListTypeFromListStyleType(_0x5d22bb)['toUpperCase']()+'_LIST_'+_0x5d22bb['toUpperCase']()['replace'](/-/g,'_');}}const BULLETED_LIST_STYLE_TYPES=['disc','circle','square'],NUMBERED_LIST_STYLE_TYPES=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];function getListTypeFromListStyleType(_0x575152){return BULLETED_LIST_STYLE_TYPES['includes'](_0x575152)?'bulleted':NUMBERED_LIST_STYLE_TYPES['includes'](_0x575152)?'numbered':null;}class TrackChangesEmoji extends Plugin{['afterInit'](){const _0x5872ba=this['editor'];_0x5872ba['commands']['get']('emoji')&&_0x5872ba['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends Plugin{static get['requires'](){return[Enter];}['init'](){const _0xba5c15=this['editor'],_0x453a39=_0xba5c15['plugins']['get']('TrackChangesEditing'),_0xce2e84=_0xba5c15['commands']['get']('enter');_0x453a39['enableCommand']('enter',()=>{_0xba5c15['model']['change'](_0x46ec74=>{const _0x2b64fe=_0xba5c15['model']['document']['selection'],_0x380af7=_0x2b64fe['getFirstPosition'](),_0x4c61f0=ModelLiveRange['fromRange'](_0x2b64fe['getFirstRange']());if(_0xce2e84['enterBlock'](_0x46ec74)){const _0x328236=_0xba5c15['model']['createPositionAt'](_0x380af7['parent']['nextSibling'],0x0),_0x2a073c=_0x46ec74['createRange'](_0x380af7,_0x328236);_0x453a39['markInsertion'](_0x2a073c);}else _0x46ec74['setSelection'](_0x46ec74['createRange'](_0x4c61f0['end']));_0x4c61f0['detach'](),_0xce2e84['fire']('afterExecute',{'writer':_0x46ec74});});});}}class TrackChangesFindAndReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14dda4=this['editor']['plugins']['get']('TrackChangesEditing');_0x14dda4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14dda4['enableCommand']('findNext'),_0x14dda4['enableCommand']('findPrevious'),_0x14dda4['enableCommand']('replace'),_0x14dda4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2380f7,_0x5ad22d,_0x44d80f={}){const _0x4145f0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2380f7(_0xb71e8d=>{let _0x1d465f=('string'==typeof _0x5ad22d?_0x4145f0['findByTextCallback'](_0x5ad22d,_0x44d80f):_0x5ad22d)(_0xb71e8d);Array['isArray'](_0x1d465f)&&(_0x1d465f={'results':_0x1d465f,'searchText':'string'==typeof _0x5ad22d?_0x5ad22d:''});const _0x28e16f=_0x1d465f['results']['filter'](_0x23d23c=>!0x1===this['_isInDeletionRange'](_0x23d23c,_0xb71e8d['item']));return{..._0x1d465f,'results':_0x28e16f};},_0x44d80f);}['_isInDeletionRange'](_0x150aad,_0x29be53){const _0x531028=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29be53,_0x150aad['start']),this['editor']['model']['createPositionAt'](_0x29be53,_0x150aad['end']));for(const _0x3cfac7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x531028['getIntersection'](_0x3cfac7['getRange']()))return!0x0;return!0x1;}}const fontPlugins=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends Plugin{['afterInit'](){const _0x4c2eb6=this['editor']['locale'],_0x3197ce=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2e96a8,commandName:_0x3f0a1c}of fontPlugins)this['editor']['plugins']['has'](_0x2e96a8)&&_0x3197ce['enableDefaultAttributesIntegration'](_0x3f0a1c);_0x3197ce['descriptionFactory']['registerAttributeLabel']('fontSize',getTranslation$1(_0x4c2eb6,'FORMAT_FONT_SIZE')),_0x3197ce['descriptionFactory']['registerAttributeLabel']('fontFamily',getTranslation$1(_0x4c2eb6,'FORMAT_FONT_FAMILY')),_0x3197ce['descriptionFactory']['registerAttributeLabel']('fontColor',getTranslation$1(_0x4c2eb6,'FORMAT_FONT_COLOR')),_0x3197ce['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',getTranslation$1(_0x4c2eb6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x195761=this['editor'],_0x4236ee=_0x195761['locale'];_0x195761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ef98=>{const _0x3e44f3=_0x4236ee['t'];if('formatInline'!=_0x30ef98['type'])return;const {data:_0x10515a}=_0x30ef98;if(null!=_0x10515a){if('fontSize'==_0x10515a['commandName']){const _0x148f92=_0x10515a['commandParams'][0x0]['value'];if(_0x148f92){const _0x304a5c=_0x3e44f3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1afde5=>_0x1afde5['model']==_0x148f92)['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x4236ee,'*Set\x20font\x20size:*\x20%0',_0x304a5c)};}return{'type':'format','content':getTranslation$1(_0x4236ee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x10515a['commandName']){const _0x36d201=_0x10515a['commandParams'][0x0]['value'];return _0x36d201?{'type':'format','content':getTranslation$1(_0x4236ee,'*Set\x20font\x20family:*\x20%0',_0x36d201)}:{'type':'format','content':getTranslation$1(_0x4236ee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x10515a['commandName']){const _0xc1d699=_0x10515a['commandParams'][0x0]['value'];if(_0xc1d699){const _0x201c13=normalizeColorOptions(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a021c=>_0x4a021c['model']==_0xc1d699);let _0x49d575=_0xc1d699,_0x123ce1='';return _0x201c13&&(_0x49d575=_0x201c13['label'],_0x123ce1=_0x3e44f3(_0x49d575)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x4236ee,'*Set\x20font\x20color:*\x20%0',_0x123ce1)['trim'](),'color':{'value':_0xc1d699,'title':_0x123ce1||_0x49d575}};}return{'type':'format','content':getTranslation$1(_0x4236ee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x10515a['commandName']){const _0x3fb024=_0x10515a['commandParams'][0x0]['value'];if(_0x3fb024){const _0x2045f1=normalizeColorOptions(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x175413=>_0x175413['model']==_0x3fb024);let _0x59e15c=_0x3fb024,_0x3f9bcb='';return _0x2045f1&&(_0x59e15c=_0x2045f1['label'],_0x3f9bcb=_0x3e44f3(_0x59e15c)['toLowerCase']()),{'type':'format','content':getTranslation$1(_0x4236ee,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f9bcb)['trim'](),'color':{'value':_0x3fb024,'title':_0x3f9bcb||_0x59e15c}};}return{'type':'format','content':getTranslation$1(_0x4236ee,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends Plugin{['afterInit'](){const {plugins:_0x240da8}=this['editor'];_0x240da8['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x240da8['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xe7c01e,plugins:_0x5ae762,commands:_0x236dad}=this['editor'],_0x798c81=_0x5ae762['get']('TrackChangesEditing');_0x236dad['get']('footnotesStyle')&&_0x798c81['enableDefaultAttributesIntegration']('footnotesStyle'),_0x236dad['get']('footnotesStart')&&_0x798c81['enableDefaultAttributesIntegration']('footnotesStart'),_0x798c81['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',getTranslation$1(_0xe7c01e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x798c81['descriptionFactory']['registerAttributeLabel']('footnotesListStart',getTranslation$1(_0xe7c01e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x47b5ae=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3b2a3b,commands:_0x4bb150}=this['editor'];_0x4bb150['get']('insertFootnote')&&_0x47b5ae['enableCommand']('insertFootnote'),_0x47b5ae['descriptionFactory']['registerElementLabel']('footnoteRef',_0x37b5c4=>getTranslation$1(_0x3b2a3b,'ELEMENT_FOOTNOTE_REF',_0x37b5c4)),_0x47b5ae['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x267f57=>getTranslation$1(_0x3b2a3b,'ELEMENT_FOOTNOTE_DEFINITION',_0x267f57)),_0x47b5ae['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5c0992=>getTranslation$1(_0x3b2a3b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5c0992));}}class TrackChangesFormatPainter extends Plugin{['afterInit'](){const _0x246fd9=this['editor'],_0x1829ef=_0x246fd9['plugins']['get']('TrackChangesEditing'),_0x4b02bc=_0x246fd9['commands']['get']('copyFormat'),_0x398838=_0x246fd9['commands']['get']('pasteFormat');_0x4b02bc&&_0x398838&&(_0x1829ef['enableDefaultAttributesIntegration']('pasteFormat'),_0x1829ef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x35a9dd=this['editor'],_0x2c8ac4=_0x35a9dd['locale'];_0x35a9dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d02b=>{if('formatBlock'!=_0x34d02b['type']&&'formatInline'!=_0x34d02b['type'])return;const {data:_0x47b54f}=_0x34d02b;if(_0x47b54f&&'pasteFormat'===_0x47b54f['commandName']){const _0x23467b=[],_0x40e2b7=_0x47b54f['commandParams'][0x0];for(const [_0x17f4e2,_0x16a744]of Object['entries'](_0x40e2b7))_0x23467b['push'](translateFormatting(_0x35a9dd,_0x17f4e2,_0x16a744));return _0x23467b['length']?{'type':'format','content':getTranslation$1(_0x2c8ac4,'*Set\x20format\x20to:*\x20%0',_0x23467b['join'](',\x20'))}:{'type':'format','content':getTranslation$1(_0x2c8ac4,'*Remove\x20all\x20formatting*')};}});}}function translateFormatting(_0x228079,_0x90cb04,_0x1f4cd4){const _0x4d3ac5=_0x228079['locale']['t'],_0x13d13f=_0x90cb04['split'](/(?=[A-Z])/)['join']('\x20'),_0x2f43cf=_0x4d3ac5(_0x13d13f['charAt'](0x0)['toUpperCase']()+_0x13d13f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f4cd4)return _0x2f43cf;if('fontColor'===_0x90cb04||'fontBackgroundColor'===_0x90cb04){const _0x5aee9e=normalizeColorOptions(_0x228079['config']['get']('fontColor.colors'))['find'](_0x50a69e=>_0x50a69e['model']==_0x1f4cd4);return _0x2f43cf+'\x20('+(_0x5aee9e?_0x4d3ac5(_0x5aee9e['label'])['toLowerCase']():_0x1f4cd4)+')';}if('fontSize'===_0x90cb04&&isNaN(parseFloat(_0x1f4cd4))){const _0x17d060=_0x228079['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x228079['config']['get']('fontSize.options'))['find'](_0x582a45=>_0x582a45['model']==_0x1f4cd4);return _0x2f43cf+'\x20('+(_0x17d060?_0x4d3ac5(_0x17d060['title'])['toLowerCase']():_0x1f4cd4)+')';}return _0x2f43cf+'\x20('+_0x1f4cd4+')';}class TrackChangesHeading extends Plugin{['_headingOptions'];['afterInit'](){const _0x272eec=this['editor'];if(!_0x272eec['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x272eec['config']['get']('heading.options');const _0x4e02f2=_0x272eec['locale'],_0x2a2865=_0x272eec['plugins']['get']('TrackChangesEditing');_0x2a2865['enableDefaultAttributesIntegration']('heading');for(const _0x45c56e of this['_headingOptions'])'paragraph'!=_0x45c56e['model']&&_0x2a2865['descriptionFactory']['registerElementLabel'](_0x45c56e['model'],_0x5752be=>{const _0x5b696c=this['_getHeadingLevel'](_0x45c56e['model']);return null!==_0x5b696c?_0x4d55d6(_0x5752be,_0x5b696c):_0xe7f2d6(_0x5752be,_0x45c56e['title']);});function _0x4d55d6(_0x832280,_0x33569e){return getTranslation$1(_0x4e02f2,'ELEMENT_HEADING',[_0x832280,_0x33569e]);}function _0xe7f2d6(_0x4e872f,_0x39b651){return getTranslation$1(_0x4e02f2,'ELEMENT_HEADING_CUSTOM',[_0x4e872f,_0x39b651]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30157c=this['editor'],_0x27ac10=_0x30157c['locale'];function _0x526746(_0x412a75,_0xaf6706){return getTranslation$1(_0x27ac10,'ELEMENT_HEADING_CUSTOM',[_0x412a75,_0xaf6706]);}_0x30157c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a361=>{if('formatBlock'!=_0x26a361['type'])return;const {data:_0x294f1f}=_0x26a361;if(_0x294f1f&&'heading'==_0x294f1f['commandName']){const _0x24a252=_0x294f1f['commandParams'][0x0]['value'],_0x12e2e1=this['_getHeadingLevel'](_0x24a252);if(null!==_0x12e2e1)return{'type':'format','content':getTranslation$1(_0x27ac10,'*Change\x20to:*\x20%0',(_0x36f001=0x1,_0x568c16=_0x12e2e1,getTranslation$1(_0x27ac10,'ELEMENT_HEADING',[_0x36f001,_0x568c16])))};const _0x4d8d93=this['_headingOptions']['find'](_0x496ca9=>_0x496ca9['model']===_0x24a252)['title'];return{'type':'format','content':getTranslation$1(_0x27ac10,'*Change\x20to:*\x20%0',_0x526746(0x1,_0x4d8d93))};}var _0x36f001,_0x568c16;});}['_getHeadingLevel'](_0x1a54f4){const _0xf5202e=_0x1a54f4['match'](/^heading(\d+)/);if(_0xf5202e)return _0xf5202e[0x1];const _0x40a3b4=this['_headingOptions']?.['find'](_0x303a97=>_0x303a97['model']==_0x1a54f4);if(_0x40a3b4&&_0x40a3b4['view']){const _0x5844d8=_0x40a3b4['view'],_0x1f0395=(_0x5844d8['name']??_0x5844d8)['match'](/^h(\d+)/);if(_0x1f0395)return _0x1f0395[0x1];}return null;}}class TrackChangesHighlight extends Plugin{['afterInit'](){const _0x5e90ac=this['editor'];if(!_0x5e90ac['plugins']['has']('HighlightEditing'))return;const _0x39c2de=_0x5e90ac['plugins']['get']('TrackChangesEditing'),_0x22f829=_0x5e90ac['locale'];_0x39c2de['enableDefaultAttributesIntegration']('highlight'),_0x39c2de['descriptionFactory']['registerAttributeLabel']('highlight',getTranslation$1(_0x22f829,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a404=this['editor'],_0x52dadf=_0x27a404['locale'];_0x27a404['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37cdd5=>{if('formatInline'!=_0x37cdd5['type'])return;const {data:_0x4acfb1}=_0x37cdd5;if(_0x4acfb1&&'highlight'==_0x4acfb1['commandName']){const _0x52b913=_0x52dadf['t'],_0x5280f1=_0x4acfb1['commandParams'][0x0]['value'];if(_0x5280f1){const _0x24dd37=_0x27a404['config']['get']('highlight.options')['find'](_0x36ba76=>_0x36ba76['model']==_0x5280f1),_0x390f74=_0x52b913(_0x24dd37['title'])['toLowerCase']();return{'type':'format','content':getTranslation$1(_0x52dadf,'*Set\x20highlight:*\x20%0',_0x390f74),'color':{'value':_0x24dd37['color'],'title':_0x24dd37['title']}};}return{'type':'format','content':getTranslation$1(_0x52dadf,'*Remove\x20highlight*',getTranslation$1(_0x52dadf,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends Plugin{['afterInit'](){const _0x16796f=this['editor'];if(!_0x16796f['plugins']['has']('HorizontalLineEditing'))return;_0x16796f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3b2675=_0x16796f['plugins']['get']('TrackChangesEditing'),_0x1f9db5=_0x16796f['locale'];_0x3b2675['descriptionFactory']['registerElementLabel']('horizontalLine',_0xa1e9a8=>getTranslation$1(_0x1f9db5,'ELEMENT_HORIZONTAL_LINE',_0xa1e9a8));}}class TrackChangesHtmlEmbed extends Plugin{['afterInit'](){const _0x43d044=this['editor'];if(!_0x43d044['plugins']['has']('HtmlEmbed'))return;const _0x5ecd04=_0x43d044['plugins']['get']('TrackChangesEditing'),_0x1dfe14=_0x43d044['locale'];_0x5ecd04['descriptionFactory']['registerElementLabel']('rawHtml',_0x43bfcf=>getTranslation$1(_0x1dfe14,'ELEMENT_HTML_EMBED',_0x43bfcf)),_0x5ecd04['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ecd04['descriptionFactory']['registerDescriptionCallback'](_0x160ea0=>{if('attribute'!=_0x160ea0['type'])return;const {data:_0x1b5b8b}=_0x160ea0;if(_0x1b5b8b&&'value'==_0x1b5b8b['key']&&_0x160ea0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26cdb8=getTranslation$1(_0x1dfe14,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x1dfe14,'*Change\x20%0\x20content*',_0x26cdb8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182d15=this['editor'],_0x458cfd=_0x182d15['locale'];_0x182d15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eda61=>{if('formatBlock'!=_0x4eda61['type'])return;const {data:_0xd21796}=_0x4eda61;if(_0xd21796&&'htmlEmbed'==_0xd21796['commandName']){const _0x35d209=getTranslation$1(_0x458cfd,'ELEMENT_HTML_EMBED');return{'type':'format','content':getTranslation$1(_0x458cfd,'*Change\x20%0\x20content*',_0x35d209)};}});}}class TrackChangesImage extends Plugin{['afterInit'](){const _0x559698=this['editor'];if(!_0x559698['plugins']['has']('ImageEditing'))return;const _0x2d46bf=_0x559698['plugins']['get']('TrackChangesEditing'),_0x1279fc=_0x559698['plugins']['get']('ImageUtils'),_0x27c530=_0x559698['locale'];_0x2d46bf['enableCommand']('insertImage'),_0x2d46bf['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ab739=>getTranslation$1(_0x27c530,'ELEMENT_IMAGE',_0x5ab739)),_0x2d46bf['descriptionFactory']['registerElementLabel']('imageInline',_0x5c9798=>getTranslation$1(_0x27c530,'ELEMENT_INLINE_IMAGE',_0x5c9798)),_0x2d46bf['descriptionFactory']['registerElementLabel']('caption',()=>getTranslation$1(_0x27c530,'ELEMENT_CAPTION')),_0x559698['plugins']['has']('ImageUploadEditing')&&_0x2d46bf['enableCommand']('uploadImage'),_0x559698['plugins']['has']('ImageBlockEditing')&&_0x559698['plugins']['has']('ImageInlineEditing')&&(_0x2d46bf['enableCommand']('imageTypeInline',(_0x1880d3,_0xbc2266)=>{const _0x4751e9=_0x1279fc['getClosestSelectedImageElement'](_0x559698['model']['document']['selection']);_0x559698['model']['change'](()=>{_0x2d46bf['markBlockFormat'](_0x4751e9,{'commandName':'imageTypeInline','commandParams':[_0xbc2266]},[],'convertBlockImageToInline');});}),_0x2d46bf['enableCommand']('imageTypeBlock',(_0xeecfa4,_0x389412)=>{_0x559698['model']['change'](_0x166d2a=>{let _0x35a3f1=_0x1279fc['getClosestSelectedImageElement'](_0x559698['model']['document']['selection']),_0x6eeeab=_0x166d2a['createRangeOn'](_0x35a3f1);const _0x22d78f=ModelLivePosition['fromPosition'](_0x6eeeab['start'],'toPrevious'),_0x9111ca=ModelLivePosition['fromPosition'](_0x6eeeab['end'],'toNext');_0x2d46bf['forceDefaultExecution'](()=>_0xeecfa4(_0x389412)),_0x35a3f1=_0x1279fc['getClosestSelectedImageElement'](_0x559698['model']['document']['selection']),_0x6eeeab=_0x166d2a['createRangeOn'](_0x35a3f1);const _0x1234a0=_0x166d2a['createRange'](_0x22d78f,_0x9111ca);_0x22d78f['detach'](),_0x9111ca['detach'](),_0x2d46bf['markBlockFormat'](_0x35a3f1,{'commandName':'imageTypeInline','commandParams':[_0x389412]},[],'convertInlineImageToBlock'),_0x1234a0['start']['isBefore'](_0x6eeeab['start'])&&_0x2d46bf['markInsertion'](_0x166d2a['createRange'](_0x1234a0['start'],_0x6eeeab['start']),'convertInlineImageToBlock'),_0x6eeeab['end']['isBefore'](_0x1234a0['end'])&&_0x2d46bf['markInsertion'](_0x166d2a['createRange'](_0x6eeeab['end'],_0x1234a0['end']),'convertInlineImageToBlock');});}),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2d46bf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x57da72])=>{const _0x2d0dee=_0x2d46bf['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5795d0=_0x57da72['start'],_0x4c79eb=_0x57da72['end'];const _0x5716e2=_0x559698['model']['schema']['getNearestSelectionRange'](_0x5795d0,'backward'),_0x3e1e00=_0x559698['model']['schema']['getNearestSelectionRange'](_0x4c79eb,'forward');_0x5716e2['isCollapsed']&&(_0x5795d0=_0x5716e2['start']),_0x3e1e00['isCollapsed']&&(_0x4c79eb=_0x3e1e00['end']),_0x2d0dee([_0x559698['model']['createRange'](_0x5795d0,_0x4c79eb)]);}),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d57ac),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d57ac)),_0x559698['plugins']['has']('ImageCaptionEditing')&&(_0x2d46bf['enableCommand']('toggleImageCaption',(_0x212790,_0x2a3b92)=>{const _0x55c264=_0x559698['plugins']['get']('ImageCaptionUtils');let _0x1dab7e=_0x1279fc['getClosestSelectedImageElement'](_0x559698['model']['document']['selection']),_0x1b3ad8=_0x55c264['getCaptionFromImageModelElement'](_0x1dab7e);_0x559698['model']['change'](()=>{if(_0x1b3ad8)return void _0x2d46bf['markDeletion'](_0x559698['model']['createRangeOn'](_0x1b3ad8));const _0x1b1ef9=_0x1279fc['isBlockImage'](_0x1dab7e);_0x212790(_0x2a3b92),_0x1dab7e=_0x1279fc['getClosestSelectedImageElement'](_0x559698['model']['document']['selection']),_0x1b3ad8=_0x55c264['getCaptionFromImageModelElement'](_0x1dab7e),_0x2d46bf['markInsertion'](_0x559698['model']['createRangeOn'](_0x1b3ad8),_0x1b1ef9?null:'imageCaption');});}),_0x2d46bf['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d57ac));const _0x4bbeec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31ebaf(_0x46610f,_0x59c3c0){const _0x130910=_0x4bbeec['findIndex'](({type:_0x21d4af,subType:_0x4d6ee1})=>_0x46610f['type']==_0x21d4af&&_0x46610f['subType']==_0x4d6ee1),_0x240eae=_0x4bbeec['findIndex'](({type:_0x3d5f65,subType:_0x22c97d})=>_0x59c3c0['type']==_0x3d5f65&&_0x59c3c0['subType']==_0x22c97d);if(_0x130910<0x0||_0x240eae<0x0)return!0x1;const _0x1226ca=_0x46610f['getFirstRange'](),_0x305d77=_0x59c3c0['getFirstRange']();if((0x0==_0x130910||0x1==_0x130910)&&0x2==_0x240eae&&_0x1226ca['isIntersecting'](_0x305d77))return!0x0;if(0x2==_0x130910&&0x3==_0x240eae){const _0xe3507=_0x2d46bf['_findSuggestions'](_0x1226ca,'insertion')['filter'](({suggestion:_0x34cc93,meta:_0xdb2ffb})=>_0xdb2ffb['isOwn']&&'convertInlineImageToBlock'==_0x34cc93['subType']);if(_0xe3507['length']>0x1&&_0x305d77['end']['isEqual'](_0x1226ca['start']))return!0x0;if(0x1==_0xe3507['length']&&(_0x1226ca['start']['isEqual'](_0x305d77['end'])||_0x1226ca['end']['isEqual'](_0x305d77['start'])))return!0x0;}if(0x3==_0x130910&&0x3==_0x240eae&&_0x1226ca['start']['isBefore'](_0x305d77['start'])){const _0xf7161a=_0x1226ca['end']['nodeAfter'],_0x314148=_0x305d77['start']['nodeBefore'];return _0x1279fc['isBlockImage'](_0xf7161a)&&_0xf7161a===_0x314148;}return!0x1;}function _0x2d57ac(_0x26c90b,_0x26ca86){return _0x31ebaf(_0x26c90b,_0x26ca86)?[_0x26c90b,_0x26ca86]:_0x31ebaf(_0x26ca86,_0x26c90b)?[_0x26ca86,_0x26c90b]:null;}_0x559698['plugins']['has']('ImageResize')&&(_0x2d46bf['enableDefaultAttributesIntegration']('resizeImage'),_0x2d46bf['descriptionFactory']['registerAttributeLabel']('resizedWidth',getTranslation$1(_0x27c530,'FORMAT_IMAGE_SIZE'))),_0x559698['plugins']['has']('ImageTextAlternativeEditing')&&_0x2d46bf['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x559698['plugins']['has']('PictureEditing')&&_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x5bd9e2=>{if('attribute'!=_0x5bd9e2['type'])return;const {data:_0xcba539}=_0x5bd9e2;return _0xcba539&&'sources'==_0xcba539['key']?{'type':'format','content':''}:void 0x0;}),_0x559698['plugins']['has']('ImageSizeAttributes')&&_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x5e6f35=>{if('attribute'!=_0x5e6f35['type'])return;const {data:_0x35d1d8}=_0x5e6f35;return!_0x35d1d8||'width'!=_0x35d1d8['key']&&'height'!=_0x35d1d8['key']?void 0x0:{'type':'format','content':''};}),_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x21affa=>{if(!!_0x4bbeec['find'](({type:_0x401b5d,subType:_0x1dce3a})=>_0x21affa['type']==_0x401b5d&&_0x21affa['subType']==_0x1dce3a))return _0x21affa['previous']?{}:void 0x0;}),_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x2e8276=>{if('insertion'==_0x2e8276['type']||'deletion'==_0x2e8276['type']){const _0x4d3413=_0x2e8276['getContainedElement']();if(_0x4d3413&&_0x4d3413['is']('element','caption'))return{'type':'insertion'==_0x2e8276['type']?'addObject':'removeObject','element':_0x4d3413,'quantity':0x1};}}),_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x23d03d=>'formatBlock'==_0x23d03d['type']&&'convertInlineImageToBlock'==_0x23d03d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23d03d['type']&&'convertBlockImageToInline'==_0x23d03d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2d46bf['descriptionFactory']['registerDescriptionCallback'](_0x8446ac=>{if('attribute'!=_0x8446ac['type'])return;const {data:_0x431efc}=_0x8446ac;if(!_0x431efc||'alt'!=_0x431efc['key'])return;const _0x3cc722=_0x431efc['newValue'];return _0x3cc722?{'type':'format','content':getTranslation$1(_0x27c530,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3cc722+'\x22')}:{'type':'format','content':getTranslation$1(_0x27c530,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550b70=this['editor'],_0x359537=_0x550b70['locale'];_0x550b70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x878dca=>{if('formatBlock'!=_0x878dca['type']&&'formatInline'!=_0x878dca['type'])return;const {data:_0x730390}=_0x878dca;if(_0x730390){if('imageTextAlternative'==_0x730390['commandName']){const _0x2d35ec=_0x730390['commandParams'][0x0]['newValue'];return _0x2d35ec?{'type':'format','content':getTranslation$1(_0x359537,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d35ec+'\x22')}:{'type':'format','content':getTranslation$1(_0x359537,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x730390['commandName']){const _0x2fbf7e=_0x730390['commandParams'][0x0]['width'];return _0x2fbf7e?{'type':'format','content':getTranslation$1(_0x359537,'*Set\x20image\x20width:*\x20%0',_0x2fbf7e)}:{'type':'format','content':getTranslation$1(_0x359537,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2e3d8c=this['editor']['locale'],_0x46b442=this['editor']['plugins']['get']('TrackChangesEditing');_0x46b442['enableDefaultAttributesIntegration']('replaceImageSource'),_0x46b442['descriptionFactory']['registerDescriptionCallback'](_0x51bef9=>{if('attribute'!=_0x51bef9['type'])return;const {data:_0x37b1ba}=_0x51bef9;return _0x37b1ba&&'src'==_0x37b1ba['key']?_0x37b1ba['newValue']&&_0x37b1ba['oldValue']?{'type':'format','content':getTranslation$1(_0x2e3d8c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x429311=this['editor']['plugins']['get']('TrackChangesEditing');_0x429311['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x429311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x429311['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x429311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2d9d=this['editor'],_0x5de07c=_0x2b2d9d['locale'];_0x2b2d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42071a=>{if('formatBlock'!=_0x42071a['type']&&'formatInline'!=_0x42071a['type'])return;const {data:_0xdbe58d}=_0x42071a;if(!_0xdbe58d||'replaceImageSource'!=_0xdbe58d['commandName'])return;return{'type':'format','content':getTranslation$1(_0x5de07c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends Plugin{['afterInit'](){const _0x199be6=this['editor'];if(!_0x199be6['plugins']['has']('ImageStyleEditing'))return;const _0x139352=_0x199be6['plugins']['get']('TrackChangesEditing'),_0xf5bce7=_0x199be6['plugins']['get']('ImageUtils'),_0x2f5697={};_0x139352['enableCommand']('imageStyle',(_0x1c7a07,_0xa962f5)=>{const _0x1bb21f=_0x199be6['plugins']['get']('Users')['me'],_0x533030=_0x199be6['commands']['get']('imageStyle');let _0x59e472=_0xf5bce7['getClosestSelectedImageElement'](_0x199be6['model']['document']['selection']),_0x828322=_0x199be6['model']['createRangeOn'](_0x59e472),_0x32d7ba=_0x533030['value'];if(_0x32d7ba==_0xa962f5['value'])return;const _0x1fcb2b={'commandName':'imageStyle','commandParams':[_0xa962f5],'formatGroupId':uid()};_0x199be6['model']['change'](()=>{if(_0x139352['getSuggestions']()['filter'](_0x3f8d9f=>_0x3f8d9f['isInContent']&&_0x1bb21f==_0x3f8d9f['author']&&('formatBlock'==_0x3f8d9f['type']||'formatInline'==_0x3f8d9f['type'])&&('imageStylePreApply'==_0x3f8d9f['subType']||'imageStylePostApply'==_0x3f8d9f['subType'])&&_0x3f8d9f['getFirstRange']()['isEqual'](_0x828322))['forEach'](_0x4e8cf2=>_0x139352['discardSuggestion'](_0x4e8cf2['head'])),_0x59e472=_0xf5bce7['getClosestSelectedImageElement'](_0x199be6['model']['document']['selection']),_0x828322=_0x199be6['model']['createRangeOn'](_0x59e472),_0x533030['refresh'](),_0x199be6['commands']['get']('imageTypeInline')['refresh'](),_0x199be6['commands']['get']('imageTypeBlock')['refresh'](),_0x32d7ba=_0x533030['value'],_0x32d7ba!=_0xa962f5['value'])return _0xf5bce7['isInlineImage'](_0x59e472)&&_0x533030['shouldConvertImageType'](_0xa962f5['value'],_0x59e472)?(_0x1c7a07({..._0xa962f5,'setImageSizes':!0x1}),_0x59e472=_0xf5bce7['getClosestSelectedImageElement'](_0x199be6['model']['document']['selection']),void _0x139352['markBlockFormat'](_0x59e472,{..._0x1fcb2b,'commandReversedParams':[{'value':_0x32d7ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xf5bce7['isBlockImage'](_0x59e472)?_0x139352['markBlockFormat'](_0x59e472,_0x1fcb2b,[],'imageStylePostApply'):_0x139352['markInlineFormat'](_0x828322,_0x1fcb2b,'imageStylePostApply'));});});for(const _0x21054c of _0x199be6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f5697[_0x21054c['name']]=_0x21054c['title']['toLowerCase']();_0x139352['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x139352['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x139352['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x139352['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4acee6])=>{_0xf5bce7['setImageNaturalSizeAttributes'](_0x4acee6['getContainedElement']());}),_0x139352['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x321755,_0xfd817a)=>{_0x139352['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x321755,{'commandName':_0xfd817a['commandName'],'commandParams':_0xfd817a['commandReversedParams']});}),_0x139352['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2de070,_0x4daa07){if(_0x49c115(_0x2de070,_0x4daa07))return[_0x2de070,_0x4daa07];if(_0x49c115(_0x4daa07,_0x2de070))return[_0x4daa07,_0x2de070];return null;});const _0x4a222d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49c115(_0x5ddf37,_0x22fff5){const _0x5eaf7c=_0x4a222d['findIndex'](({type:_0x58c9fe,subType:_0x410fde})=>_0x5ddf37['type']==_0x58c9fe&&_0x5ddf37['subType']==_0x410fde),_0x1536b0=_0x4a222d['findIndex'](({type:_0x31eccc,subType:_0x102c05})=>_0x22fff5['type']==_0x31eccc&&_0x22fff5['subType']==_0x102c05);if(_0x5eaf7c<0x0||_0x1536b0<0x0)return!0x1;const _0x1f9636=_0x5ddf37['getFirstRange'](),_0x1adc1f=_0x22fff5['getFirstRange']();if((0x0==_0x5eaf7c||0x1==_0x5eaf7c)&&0x2==_0x1536b0&&_0x1f9636['isIntersecting'](_0x1adc1f))return!0x0;if(0x2==_0x5eaf7c&&0x3==_0x1536b0){const _0x3d5022=_0x139352['_findSuggestions'](_0x1f9636,'insertion')['filter'](({suggestion:_0x5c1ca8,meta:_0x5002db})=>_0x5002db['isOwn']&&'convertInlineImageToBlock'==_0x5c1ca8['subType']);if(_0x3d5022['length']>0x1&&_0x1adc1f['end']['isEqual'](_0x1f9636['start']))return!0x0;if(0x1==_0x3d5022['length']&&(_0x1f9636['start']['isEqual'](_0x1adc1f['end'])||_0x1f9636['end']['isEqual'](_0x1adc1f['start'])))return!0x0;}if(0x3==_0x5eaf7c&&0x3==_0x1536b0&&_0x1f9636['start']['isBefore'](_0x1adc1f['start'])){const _0x50fec6=_0x1f9636['end']['nodeAfter'],_0x5cdd19=_0x1adc1f['start']['nodeBefore'];return _0xf5bce7['isBlockImage'](_0x50fec6)&&_0x50fec6===_0x5cdd19;}return!0x1;}_0x199be6['model']['document']['registerPostFixer'](()=>{let _0x10a2b2=!0x1;const _0x1ef806=Array['from'](_0x199be6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x417b0b,data:_0x4f4c30}of _0x1ef806){const {group:_0x1cb977,type:_0x274960,subType:_0x3dec10,id:_0x84cd0}=_0x139352['_splitMarkerName'](_0x417b0b);if('suggestion'==_0x1cb977&&_0x139352['hasSuggestion'](_0x84cd0)){if('formatBlock'==_0x274960&&('imageStylePreApply'==_0x3dec10||'imageStylePostApply'==_0x3dec10)){const _0x4043ce=_0x139352['getSuggestion'](_0x84cd0);if(_0x4f4c30['newRange']){const _0x30c8ef=_0x4043ce['getFirstRange']()['getContainedElement']();if(_0xf5bce7['isBlockImage'](_0x30c8ef))continue;_0x139352['discardSuggestion'](_0x4043ce),_0x10a2b2=!0x0;}}if('insertion'==_0x274960&&'imageCaption'==_0x3dec10&&!_0x4f4c30['newRange']){const _0x2cd349=_0x139352['getSuggestion'](_0x84cd0);_0x2cd349['next']&&_0x2cd349['next']['isInContent']&&(_0x139352['discardSuggestion'](_0x2cd349['next']),_0x10a2b2=!0x0);}}}return _0x10a2b2;}),this['_registerLegacyDescription'](_0x2f5697);}['_registerLegacyDescription'](_0x28c1a9){const _0x43827f=this['editor'],_0x3d9e4e=_0x43827f['locale'];_0x43827f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fdf9=>{if('formatBlock'!=_0x11fdf9['type']&&'formatInline'!=_0x11fdf9['type'])return;const {data:_0x3738da}=_0x11fdf9;if(!_0x3738da||'imageStyle'!=_0x3738da['commandName'])return;const _0x53bbee=_0x3738da['commandParams'][0x0]['value'];return _0xd960b7('side'===_0x53bbee?getTranslation$1(_0x3d9e4e,'FORMAT_SIDE_IMAGE'):_0x28c1a9[_0x53bbee]||_0x53bbee);function _0xd960b7(_0x538a5c){return{'type':'format','content':getTranslation$1(_0x3d9e4e,'*Format:*\x20%0',_0x538a5c)};}});}}class TrackChangesImportWord extends Plugin{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x23e97d){super(_0x23e97d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54a522=this['editor'],_0x9957e4=_0x54a522['commands']['get']('importWord'),_0x30cbcd=_0x54a522['commands']['get']('trackChanges');_0x9957e4&&(_0x9957e4['on']('execute',(_0x59326a,[,_0x5db6f0])=>{this['_trackChangesValueDuringImport']=_0x30cbcd['value'],_0x5db6f0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9957e4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9957e4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x30cbcd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54a522['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x305d2f,_0x3d7838){const {suggestions:_0x451bfb}=_0x3d7838,_0xa002a7=this['editor']['commands']['get']('trackChanges'),_0x3e5079=_0xa002a7['value'];this['_trackChangesValueDuringImport']!==_0x3e5079&&(_0xa002a7['execute'](),this['_trackChangesExecuted']=!0x0),_0x451bfb&&_0x451bfb['forEach'](({id:_0x421c1c,type:_0x415931,author:_0x2dce22,created_at:_0x4618d7})=>{const _0x22754a={'id':_0x421c1c,'type':_0x415931,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2dce22,'createdAt':_0x4618d7?new Date(_0x4618d7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x22754a);});}}class TrackChangesIndent extends Plugin{['afterInit'](){const _0x42ad2e=this['editor'],_0x4644ce=_0x42ad2e['plugins']['get']('TrackChangesEditing');if(_0x42ad2e['plugins']['has']('IndentEditing')&&(_0x4644ce['enableCommand']('indent'),_0x4644ce['enableCommand']('outdent')),_0x42ad2e['plugins']['has']('IndentBlock')){for(const _0x48c32b of['indentBlock','outdentBlock'])_0x4644ce['enableDefaultAttributesIntegration'](_0x48c32b);if(_0x42ad2e['plugins']['has']('ListEditing')){for(const _0x378cfb of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4644ce['enableDefaultAttributesIntegration'](_0x378cfb);}}const _0x3db9c0=_0x42ad2e['locale'];_0x4644ce['descriptionFactory']['registerAttributeLabel']('blockIndent',getTranslation$1(_0x3db9c0,'FORMAT_INDENT')),_0x4644ce['descriptionFactory']['registerAttributeLabel']('blockIndentList',getTranslation$1(_0x3db9c0,'FORMAT_INDENT')),_0x4644ce['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',getTranslation$1(_0x3db9c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13b751=this['editor'],_0x474ab0=_0x13b751['locale'],_0x45fa09=_0x13b751['plugins']['get']('TrackChangesEditing');_0x45fa09['descriptionFactory']['registerDescriptionCallback'](_0x323349=>{if('formatBlock'!=_0x323349['type'])return;const {data:_0x3454b7}=_0x323349;if(!_0x3454b7)return;if('indentBlock'!=_0x3454b7['commandName']&&'outdentBlock'!=_0x3454b7['commandName'])return;const _0x1dfac3=_0x323349['getItems']()[0x0],_0x461d35=_0x45fa09['descriptionFactory']['getItemLabel'](_0x1dfac3);return'indentBlock'==_0x3454b7['commandName']?{'type':'format','content':getTranslation$1(_0x474ab0,'*Indent:*\x20%0',_0x461d35)}:'outdentBlock'==_0x3454b7['commandName']?{'type':'format','content':getTranslation$1(_0x474ab0,'*Outdent:*\x20%0',_0x461d35)}:void 0x0;});}}class TrackChangesInputCommand extends Plugin{static get['requires'](){return[Input];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends Plugin{['afterInit'](){const _0x55f725=this['editor'];if(!_0x55f725['plugins']['has']('LinkEditing'))return;const _0x3244b7=_0x55f725['plugins']['get']('TrackChangesEditing'),_0xb64ecf=_0x55f725['commands']['get']('link');_0x3244b7['enableDefaultAttributesIntegration']('link'),_0x3244b7['enableDefaultAttributesIntegration']('unlink');for(const _0x257895 of _0xb64ecf['manualDecorators'])_0x3244b7['descriptionFactory']['registerAttributeLabel'](_0x257895['id'],'link\x20('+_0x257895['label']['toLowerCase']()+')');_0x3244b7['descriptionFactory']['registerDescriptionCallback'](_0x259619=>{if('attribute'!=_0x259619['type'])return;const {data:_0x298189}=_0x259619;if(!_0x298189||'linkHref'!=_0x298189['key'])return;const _0xa7061d=_0x298189['newValue'],_0x4bf2e9=_0x55f725['locale'];return{'type':'format','content':null==_0xa7061d?getTranslation$1(_0x4bf2e9,'*Remove\x20link*'):getTranslation$1(_0x4bf2e9,'*Set\x20link:*\x20%0','\x22'+_0xa7061d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2aed9e=this['editor'],_0x4ebdb1=_0x2aed9e['locale'];_0x2aed9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dbbc5=>{if('formatInline'!=_0x1dbbc5['type'])return;const {data:_0x51527f}=_0x1dbbc5;if(_0x51527f){if('link'==_0x51527f['commandName']){const _0x318ff0=_0x51527f['commandParams'][0x0];return{'type':'format','content':getTranslation$1(_0x4ebdb1,'*Set\x20link:*\x20%0','\x22'+_0x318ff0+'\x22')};}return'unlink'==_0x51527f['commandName']?{'type':'format','content':getTranslation$1(_0x4ebdb1,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends Plugin{['afterInit'](){const _0x2ac7c9=this['editor'],_0x23f8de=_0x2ac7c9['locale'];if(!_0x2ac7c9['plugins']['has']('LegacyListEditing'))return;const _0x57b534=_0x2ac7c9['plugins']['get']('TrackChangesEditing'),_0xfe2fe6=_0x2ac7c9['plugins']['has']('LegacyTodoListEditing');function _0x43631a(_0x55bf43){return()=>{const _0x2d56df=_0x2ac7c9['model']['document']['selection'],_0x5279b1=_0x2ac7c9['commands']['get'](_0x55bf43);if(_0x5279b1['value'])return void _0x2ac7c9['execute']('paragraph',{});const _0x487516=_0x55bf43['slice'](0x0,-0x4),_0x27ae4a=getBlocksToMarkForListTypeChange(_0x2d56df['getSelectedBlocks'](),_0x487516,_0x2ac7c9['model']['schema']);_0x2ac7c9['model']['change'](()=>{for(const _0x54d21e of _0x27ae4a)_0x57b534['markBlockFormat'](_0x54d21e,{'commandName':_0x55bf43,'commandParams':[{'forceValue':!_0x5279b1['value']}],'formatGroupId':'blockName'},getBlocksAffectedByListTypeChange(_0x54d21e));});};}function _0x26c6b6(_0x248f71){return()=>{const _0x4b98d8=getBlocksToMarkForIndentChange(_0x2ac7c9['model']['document']['selection']['getSelectedBlocks']()),_0x2f477e=_0x2ac7c9['model']['createRange'](_0x2ac7c9['model']['createPositionAt'](_0x4b98d8[0x0],'before'),_0x2ac7c9['model']['createPositionAt'](_0x4b98d8[_0x4b98d8['length']-0x1],'end'));_0x2ac7c9['model']['change'](()=>{_0x57b534['markBlockFormat'](_0x2f477e,{'commandName':_0x248f71,'commandParams':[],'formatGroupId':'listIndent'},getBlocksAffectedByIndent(_0x4b98d8));});};}_0x57b534['enableCommand']('numberedList',_0x43631a('numberedList')),_0x57b534['enableCommand']('bulletedList',_0x43631a('bulletedList')),_0xfe2fe6&&_0x57b534['enableCommand']('todoList',_0x43631a('todoList')),_0x57b534['enableCommand']('indentList',_0x26c6b6('indentList')),_0x57b534['enableCommand']('outdentList',_0x26c6b6('outdentList')),_0xfe2fe6&&_0x57b534['enableCommand']('checkTodoList',()=>{const _0x14bdcf=_0x2ac7c9['commands']['get']('checkTodoList'),_0x29a01d=Array['from'](_0x14bdcf['_selectedElements']);_0x29a01d['filter'](_0x4d9df8=>_0x4d9df8['getAttribute']('todoListChecked')!=_0x14bdcf['value']),_0x2ac7c9['model']['change'](()=>{for(const _0x6d111 of _0x29a01d)_0x57b534['markBlockFormat'](_0x6d111,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x14bdcf['value']}]});});}),_0x57b534['descriptionFactory']['registerElementLabel']('listItem',_0x8426b=>getTranslation$1(_0x23f8de,'ELEMENT_LIST_ITEM',_0x8426b)),_0x57b534['descriptionFactory']['registerDescriptionCallback'](_0x28cbec=>{if('formatBlock'!=_0x28cbec['type']&&'formatInline'!=_0x28cbec['type'])return;const {data:_0x429720}=_0x28cbec;if(_0x429720){if('numberedList'==_0x429720['commandName']||'bulletedList'==_0x429720['commandName']||'todoList'==_0x429720['commandName'])switch(_0x429720['commandName']['replace']('List','')){case'bulleted':return _0x2ea9f5(getTranslation$1(_0x23f8de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ea9f5(getTranslation$1(_0x23f8de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ea9f5(getTranslation$1(_0x23f8de,'ELEMENT_TODO_LIST'));}if('indentList'==_0x429720['commandName'])return{'type':'format','content':getTranslation$1(_0x23f8de,'*Indent:*\x20%0',getTranslation$1(_0x23f8de,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x429720['commandName'])return{'type':'format','content':getTranslation$1(_0x23f8de,'*Outdent:*\x20%0',getTranslation$1(_0x23f8de,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x429720['commandName'])return _0x429720['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x23f8de,'*Check\x20item*')}:{'type':'format','content':getTranslation$1(_0x23f8de,'*Uncheck\x20item*')};}function _0x2ea9f5(_0x282d49){return{'type':'format','content':getTranslation$1(_0x23f8de,'*Change\x20to:*\x20%0',_0x282d49)};}});}}function getBlocksToMarkForListTypeChange(_0x5145d4,_0xad2a8b,_0x39c105){let _0x4bc3fc=Array['from'](_0x5145d4)['filter'](_0x2de383=>checkCanBecomeListItem(_0x2de383,_0x39c105));_0x4bc3fc=_0x4bc3fc['filter'](_0x50b76a=>!_0x50b76a['is']('element','listItem')||_0x50b76a['getAttribute']('listType')!=_0xad2a8b);const _0xe23a53=new Set();for(const _0x4b88e1 of _0x4bc3fc)_0x4b88e1['is']('element','listItem')?_0xe23a53['add'](getListHead(_0x4b88e1)):_0xe23a53['add'](_0x4b88e1);return Array['from'](_0xe23a53);}function checkCanBecomeListItem(_0x40a86f,_0x26dcfd){return _0x26dcfd['checkChild'](_0x40a86f['parent'],'listItem')&&!_0x26dcfd['isObject'](_0x40a86f);}function getBlocksToMarkForIndentChange(_0x1b1e26){let _0xd755ed=Array['from'](_0x1b1e26);const _0x3d8327=_0xd755ed['findIndex'](_0x2d8f11=>'listItem'!=_0x2d8f11['name']);return _0x3d8327>-0x1&&(_0xd755ed=_0xd755ed['slice'](0x0,_0x3d8327)),_0xd755ed;}function getListHead(_0x21118d){const _0x5bfd95=_0x21118d['getAttribute']('listIndent');if(0x0==_0x5bfd95)return _0x21118d;let _0x2caf79=_0x21118d;for(;_0x21118d['previousSibling']&&_0x21118d['previousSibling']['is']('element','listItem');){const _0x4d50b8=_0x21118d['previousSibling']['getAttribute']('listIndent');if(_0x4d50b8==_0x5bfd95)_0x2caf79=_0x21118d['previousSibling'];else{if(_0x4d50b8<_0x5bfd95)break;}_0x21118d=_0x21118d['previousSibling'];}return _0x2caf79;}function getBlocksAffectedByListTypeChange(_0x465c0c){const _0x177c28=[];if(_0x465c0c['is']('element','listItem')&&_0x465c0c['getAttribute']('listIndent')>0x0){let _0x4cd36b=_0x465c0c['nextSibling'];for(;_0x4cd36b&&'listItem'==_0x4cd36b['name']&&_0x4cd36b['getAttribute']('listIndent')==_0x465c0c['getAttribute']('listIndent');)_0x177c28['push'](_0x4cd36b),_0x4cd36b=_0x4cd36b['nextSibling'];}return _0x177c28;}function getBlocksAffectedByIndent(_0x5ce068){const _0x2e0683=new Set();for(const _0x25a860 of _0x5ce068){let _0x194a67=_0x25a860['nextSibling'];for(;_0x194a67&&_0x194a67['getAttribute']('listIndent')>_0x25a860['getAttribute']('listIndent');)_0x2e0683['add'](_0x194a67),_0x194a67=_0x194a67['nextSibling'];}return Array['from'](_0x2e0683);}class TrackChangesLegacyListProperties extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x248740=this['editor']['config']['get']('list.properties'),_0x3536c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x248740['styles']&&_0x3536c4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x248740['reversed']&&_0x3536c4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x248740['startIndex']&&_0x3536c4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3536c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x388d83,_0x461507={}){const _0x203b52=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe37b69=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x203b52['markMultiRangeBlockFormat'](_0xe37b69,{'commandName':'listStyle','commandParams':[{'type':_0x461507['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4d7616,_0x2fecf1={}){const _0x5555da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41bd8c=this['_getSuggestionBlocks'](_0x49f25a=>_0x49f25a['is']('element','listItem')&&'numbered'===_0x49f25a['getAttribute']('listType'));if(_0x41bd8c['length']<0x1)return;const _0x1f22db=_0x41bd8c['map'](_0x4fc58b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fc58b,'before'),this['editor']['model']['createPositionAt'](_0x4fc58b,0x0)));this['editor']['model']['change'](()=>{_0x5555da['markMultiRangeBlockFormat'](_0x1f22db,{'commandName':'listReversed','commandParams':[{'reversed':_0x2fecf1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xac53c1,_0x3e99a2={}){const _0x5a867e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cf88f=this['_getSuggestionBlocks'](_0x5450b1=>_0x5450b1['is']('element','listItem')&&'numbered'===_0x5450b1['getAttribute']('listType'));if(_0x1cf88f['length']<0x1)return;const _0x4a4881=_0x1cf88f['map'](_0x48db39=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48db39,'before'),this['editor']['model']['createPositionAt'](_0x48db39,0x0)));this['editor']['model']['change'](()=>{_0x5a867e['markMultiRangeBlockFormat'](_0x4a4881,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e99a2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x44a35e){if('formatBlock'!=_0x44a35e['type']&&'formatInline'!=_0x44a35e['type'])return;const _0x2ed559=this['editor']['locale'],{data:_0x4a3e34}=_0x44a35e;if(!_0x4a3e34)return;let _0x41c401,_0x295e27;switch(_0x4a3e34['commandName']){case'listStyle':_0x41c401='*Change\x20to:*\x20%0',_0x295e27={'type':'format','content':getTranslation$1(_0x2ed559,_0x41c401,getTranslation$1(_0x2ed559,this['_getTranslationKeyForListStyle'](_0x4a3e34['commandParams'][0x0]['type'])))};break;case'listReversed':_0x41c401=_0x4a3e34['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x295e27={'type':'format','content':getTranslation$1(_0x2ed559,_0x41c401)};break;case'listStart':_0x41c401='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x295e27={'type':'format','content':getTranslation$1(_0x2ed559,_0x41c401,_0x4a3e34['commandParams'][0x0]['startIndex'])};}return _0x295e27;}['_getSuggestionBlocksForListStyle'](){const _0x503d52=this['editor']['plugins']['get']('LegacyListUtils');let _0x45b71b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45b71b[0x0]?.['is']('element','listItem')&&_0x45b71b['unshift'](..._0x503d52['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45b71b[_0x45b71b['length']-0x1]?.['is']('element','listItem')&&_0x45b71b['push'](..._0x503d52['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45b71b=[...new Set(_0x45b71b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45b71b=_0x45b71b['filter'](_0x47d1cd=>_0x47d1cd['is']('element','listItem'))),_0x45b71b;}['_getSuggestionBlocks'](_0x824a4e){const _0x304d4d=this['editor']['plugins']['get']('LegacyListUtils');let _0x23e182=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x824a4e)['map'](_0x499877=>{const _0x3d0dc7=this['editor']['model']['createPositionAt'](_0x499877,0x0);return[..._0x304d4d['getSiblingNodes'](_0x3d0dc7,'backward'),..._0x304d4d['getSiblingNodes'](_0x3d0dc7,'forward')];})['flat']();return _0x23e182=[...new Set(_0x23e182)],_0x23e182;}['_getTranslationKeyForListStyle'](_0x2610a8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2610a8)||'default')['toUpperCase']()+'_LIST_'+_0x2610a8['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends Plugin{['afterInit'](){const _0x4a7446=this['editor'];if(!_0x4a7446['plugins']['has']('MediaEmbedEditing'))return;const _0x319227=_0x4a7446['plugins']['get']('TrackChangesEditing'),_0x408e02=_0x4a7446['locale'];_0x319227['enableCommand']('mediaEmbed'),_0x319227['descriptionFactory']['registerElementLabel']('media',_0x16a35f=>getTranslation$1(_0x408e02,'ELEMENT_MEDIA',_0x16a35f));}}class TrackChangesMention extends Plugin{['afterInit'](){const _0x394f47=this['editor'];_0x394f47['plugins']['has']('MentionEditing')&&_0x394f47['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends Plugin{['afterInit'](){const _0x2b66d8=this['editor'];if(!_0x2b66d8['plugins']['has']('MergeFieldsEditing'))return;const _0x1c1e2a=_0x2b66d8['plugins']['get']('TrackChangesEditing'),_0x269c3b=_0x2b66d8['locale'];_0x1c1e2a['enableCommand']('insertMergeField'),_0x1c1e2a['enableCommand']('insertMergeFieldBlock'),_0x1c1e2a['enableCommand']('insertMergeFieldImage'),_0x1c1e2a['descriptionFactory']['registerElementLabel']('mergeField',_0x497589=>getTranslation$1(_0x269c3b,'ELEMENT_MERGE_FIELD',_0x497589)),_0x1c1e2a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2c1a2e=>getTranslation$1(_0x269c3b,'ELEMENT_MERGE_FIELD',_0x2c1a2e)),_0x1c1e2a['descriptionFactory']['registerDescriptionCallback'](_0x571510=>{if('insertion'!=_0x571510['type']&&'deletion'!=_0x571510['type'])return;const _0x1f82e9=_0x571510['getContainedElement']();if(null==_0x1f82e9)return;const _0x580a23=_0x2b66d8['plugins']['get']('MergeFieldsEditing');let _0x1b03cc;switch(_0x580a23['getMergeFieldType'](_0x1f82e9)){case null:return;case'image':{const _0x1961ad=_0x580a23['unwrapAffixes'](_0x1f82e9['getAttribute']('src'));_0x1b03cc=_0x580a23['getLabel'](_0x1961ad)||_0x1961ad;break;}default:{const _0x950fce=_0x1f82e9['getAttribute']('id');_0x1b03cc=_0x580a23['getLabel'](_0x950fce)||_0x950fce;break;}}return'insertion'==_0x571510['type']?{'type':'insertion','content':getTranslation$1(_0x269c3b,'*Insert:*\x20%0','\x22'+_0x1b03cc+'\x22\x20'+getTranslation$1(_0x269c3b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':getTranslation$1(_0x269c3b,'*Remove:*\x20%0','\x22'+_0x1b03cc+'\x22\x20'+getTranslation$1(_0x269c3b,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends Plugin{['afterInit'](){const _0x5f114a=this['editor'],_0x1d72ea=_0x5f114a['plugins']['get']('TrackChangesEditing');_0x5f114a['plugins']['has']('MultiLevelList')&&(_0x1d72ea['enableDefaultAttributesIntegration']('multiLevelList'),_0x1d72ea['descriptionFactory']['registerDescriptionCallback'](_0xd426d6=>this['handleDescriptions'](_0xd426d6)));}['handleDescriptions'](_0x14780e){const _0x51bfa8=this['editor']['locale'],{data:_0x3b5769}=_0x14780e,_0x1deae0={'type':'format','content':''};if(_0x3b5769&&'listMarkerStyle'==_0x3b5769['key']){if(!_0x3b5769['oldValue'])return{'type':'format','content':getTranslation$1(_0x51bfa8,'*Set\x20format:*\x20%0',getTranslation$1(_0x51bfa8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3b5769['newValue']+')'};if(!_0x3b5769['newValue']){let _0x199704=_0x14780e['head'];for(;_0x199704;){if(_0x199704['data']&&'listType'==_0x199704['data']['key']&&_0x199704['data']['newValue'])return _0x1deae0;_0x199704=_0x199704['next'];}return{'type':'format','content':getTranslation$1(_0x51bfa8,'*Remove\x20format:*\x20%0',getTranslation$1(_0x51bfa8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3b5769['oldValue']+')'};}}}}class TrackChangesPageBreak extends Plugin{['afterInit'](){const _0x4f48c3=this['editor'];if(!_0x4f48c3['plugins']['has']('PageBreakEditing'))return;_0x4f48c3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x8e3512=_0x4f48c3['plugins']['get']('TrackChangesEditing'),_0x10f2d9=_0x4f48c3['locale'];_0x8e3512['descriptionFactory']['registerElementLabel']('pageBreak',_0x37ca1f=>getTranslation$1(_0x10f2d9,'ELEMENT_PAGE_BREAK',_0x37ca1f));}}class TrackChangesParagraph extends Plugin{['afterInit'](){const _0x57b76d=this['editor'];if(!_0x57b76d['plugins']['has']('Paragraph'))return;const _0x19ef2c=_0x57b76d['locale'],_0xa76090=_0x57b76d['plugins']['get']('TrackChangesEditing');_0xa76090['descriptionFactory']['registerElementLabel']('paragraph',_0x12ecc4=>getTranslation$1(_0x19ef2c,'ELEMENT_PARAGRAPH',_0x12ecc4)),_0xa76090['enableDefaultAttributesIntegration']('paragraph'),_0xa76090['enableCommand']('insertParagraph');const _0x1e3f4c=_0xa76090['descriptionFactory'];_0x1e3f4c['registerDescriptionCallback'](_0x171303=>{if('insertion'!==_0x171303['type'])return;const {start:_0x3e286c,end:_0x3ec8a8}=_0x171303['getFirstRange']();if(!_0x3e286c['isTouching'](_0x3ec8a8)||!_0x3e286c['nodeAfter'])return;const _0x46b3c9=_0x57b76d['model']['schema'],_0x37b0a1=_0x3e286c['nodeAfter'];return _0x46b3c9['isBlock'](_0x37b0a1)&&!_0x46b3c9['isLimit'](_0x37b0a1)&&_0x46b3c9['checkChild'](_0x37b0a1,'$text')?{'type':'insertion','content':getTranslation$1(_0x19ef2c,'*Insert:*\x20%0',_0x1e3f4c['getItemLabel'](_0x37b0a1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21eea1=this['editor'],_0x20b275=_0x21eea1['locale'];_0x21eea1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf7b668=>{if('formatBlock'!=_0xf7b668['type'])return;const {data:_0x3d86f1}=_0xf7b668;return _0x3d86f1&&'paragraph'==_0x3d86f1['commandName']?{'type':'format','content':getTranslation$1(_0x20b275,'*Change\x20to:*\x20%0',getTranslation$1(_0x20b275,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends Plugin{['afterInit'](){const _0x48d0d3=this['editor'];_0x48d0d3['commands']['get']('replaceSource')&&_0x48d0d3['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends Plugin{['afterInit'](){const _0x4fad06=this['editor'];if(!_0x4fad06['plugins']['has']('RemoveFormatEditing'))return;_0x4fad06['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283fb1=this['editor'];_0x283fb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4469a1=>{if('formatBlock'!=_0x4469a1['type']&&'formatInline'!=_0x4469a1['type'])return;const {data:_0x3b72b5}=_0x4469a1;return _0x3b72b5&&'removeFormat'==_0x3b72b5['commandName']?{'type':'format','content':getTranslation$1(_0x283fb1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends Plugin{['afterInit'](){const _0x43f813=this['editor'];if(!_0x43f813['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5592c8=_0x43f813['plugins']['get']('TrackChangesEditing');_0x5592c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5592c8['enableCommand']('goToNextRestrictedEditingException');const _0x2f5552=_0x43f813['plugins']['get']('RestrictedEditingModeEditing');_0x2f5552['enableCommand']('trackChanges'),_0x2f5552['enableCommand']('acceptSuggestion'),_0x2f5552['enableCommand']('discardSuggestion'),_0x2f5552['enableCommand']('acceptAllSuggestions'),_0x2f5552['enableCommand']('discardAllSuggestions'),_0x2f5552['enableCommand']('acceptSelectedSuggestions'),_0x2f5552['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends Plugin{['afterInit'](){const _0x3aa2d9=this['editor'];if(!_0x3aa2d9['plugins']['has']('ShiftEnter'))return;const _0x3f5ee7=_0x3aa2d9['plugins']['get']('TrackChangesEditing');_0x3f5ee7['enableCommand']('shiftEnter'),_0x3f5ee7['descriptionFactory']['registerElementLabel']('softBreak',_0x1507ab=>getTranslation$1(_0x3aa2d9['locale'],'ELEMENT_LINE_BREAK',_0x1507ab));}}function getRangesWithAttribute(_0x388608,_0x47c211,_0x3ee46b){const _0x24acec=[];for(const _0x3915ca of _0x47c211['getItems']())_0x3915ca['hasAttribute'](_0x388608)&&_0x24acec['push'](_0x3ee46b['createRangeOn'](_0x3915ca));return _0x24acec;}class TrackChangesStandardEditingMode extends Plugin{['afterInit'](){const _0x17180f=this['editor'],_0x354130=_0x17180f['plugins']['get']('TrackChangesEditing');_0x17180f['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x354130['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x554696=this['editor'],_0xb6ac8c=_0x554696['model'],_0x549f37=_0x554696['locale'],_0x8a647a=_0x554696['plugins']['get']('TrackChangesEditing'),_0x47d7e='restrictedEditingException',_0x4cf96e=_0x554696['commands']['get'](_0x47d7e);_0x8a647a['enableCommand'](_0x47d7e,(_0x36e200,_0x42b036={})=>{const _0x2e3c02=_0xb6ac8c['document']['selection'];if(_0x2e3c02['isCollapsed'])return void _0x36e200(_0x42b036);const _0x18df06=void 0x0!==_0x42b036['forceValue']?_0x42b036['forceValue']:!_0x4cf96e['value'];_0xb6ac8c['change'](()=>{const _0x33e0ec=Array['from'](_0x2e3c02['getRanges']());for(const _0x4f1274 of _0x33e0ec){const _0x1f72cf=_0x18df06?[_0x4f1274]:getRangesWithAttribute(_0x47d7e,_0x4f1274,_0xb6ac8c);for(const _0x11b22f of _0x1f72cf)_0x8a647a['markInlineFormat'](_0x11b22f,{'commandName':_0x47d7e,'commandParams':[{'forceValue':_0x18df06}]});}});}),_0x8a647a['descriptionFactory']['registerDescriptionCallback'](_0x2ae65d=>{if('formatBlock'!=_0x2ae65d['type']&&'formatInline'!=_0x2ae65d['type'])return;const {data:_0x323095}=_0x2ae65d;return _0x323095&&_0x323095['commandName']==_0x47d7e?_0x323095['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x549f37,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x549f37,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4be06=this['editor'],_0x47385c=_0x4be06['locale'],_0x5ca557=_0x4be06['plugins']['get']('TrackChangesEditing'),_0x3e7f2a='restrictedEditingExceptionBlock',_0x23781c=this['editor']['commands']['get'](_0x3e7f2a);_0x5ca557['enableCommand'](_0x3e7f2a,(_0x453e31,_0x236ce2={})=>{const _0x17be98=this['editor']['model']['document']['selection'],_0x2bafd0=_0x236ce2&&void 0x0!==_0x236ce2['forceValue']?_0x236ce2['forceValue']:!_0x23781c['value'];let _0x5ed1e5=[];if(_0x2bafd0){const _0x47c758=Array['from'](_0x17be98['getSelectedBlocks']())['filter'](_0x6a082e=>isInBlockException(_0x6a082e)||checkCanBeWrapped(_0x6a082e,this['editor']['model']['schema']));_0x5ed1e5=getRangesOfBlockGroups(_0x47c758,_0x4be06['model']);}else{const _0x552ff7=Array['from'](_0x17be98['getSelectedBlocks']())['map'](_0xa44f9a=>findExceptionContentBlock(_0xa44f9a))['filter'](_0x2f78be=>!!_0x2f78be);_0x5ed1e5=getRangesOfBlockGroups(_0x552ff7,_0x4be06['model']);}_0x4be06['model']['change'](()=>{for(const _0x25823e of _0x5ed1e5)_0x5ca557['markBlockFormat'](_0x25823e,{'commandName':_0x3e7f2a,'commandParams':[{'forceValue':_0x2bafd0}]});});}),_0x5ca557['descriptionFactory']['registerDescriptionCallback'](_0x22bb7e=>{const {data:_0x1d1fb0}=_0x22bb7e;if(_0x1d1fb0&&_0x1d1fb0['commandName']==_0x3e7f2a)return _0x1d1fb0['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x47385c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':getTranslation$1(_0x47385c,'FORMAT_RESTRICTED_DISABLED')};});}}function checkCanBeWrapped(_0x2157c2,_0x1b12e3){const _0x158c53=_0x1b12e3['createContext'](_0x2157c2['parent']);return!!_0x1b12e3['checkChild'](_0x158c53,'restrictedEditingException')&&!!_0x1b12e3['checkChild'](_0x158c53['push']('restrictedEditingException'),_0x2157c2);}function isInBlockException(_0x18452c){return!!_0x18452c['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}function findExceptionContentBlock(_0x547af4){let _0x55c11b=_0x547af4;for(;_0x55c11b['parent'];){if('restrictedEditingException'==_0x55c11b['parent']['name'])return _0x55c11b;_0x55c11b=_0x55c11b['parent'];}return null;}class TrackChangesStylesDropdown extends Plugin{['afterInit'](){const _0x113c04=this['editor'];if(!_0x113c04['plugins']['has']('Style')||!_0x113c04['plugins']['has']('DataSchema'))return;const _0x4a41a4=_0x113c04['plugins']['get']('TrackChangesEditing'),_0x45f0d1=_0x113c04['locale'],_0x558683=_0x113c04['config']['get']('style')||{},_0xc7d746=_0x113c04['plugins']['get']('GeneralHtmlSupport'),_0x34fc81=_0x113c04['plugins']['get']('StyleUtils')['normalizeConfig'](_0x113c04['plugins']['get']('DataSchema'),_0x558683['definitions']);_0x4a41a4['enableDefaultAttributesIntegration']('style');const _0x4cbfa7=new Set();for(const _0x3963e7 of _0x34fc81['block']){const _0x420aaf=_0xc7d746['getGhsAttributeNameForElement'](_0x3963e7['element']);_0x4cbfa7['add'](_0x420aaf);}const _0x1ddc07=new Set();for(const _0x1c74f4 of _0x34fc81['inline']){const _0x3ebfbc=_0xc7d746['getGhsAttributeNameForElement'](_0x1c74f4['element']);_0x1ddc07['add'](_0x3ebfbc);for(const _0x3de9b5 of _0x1c74f4['ghsAttributes'])_0x1ddc07['add'](_0x3de9b5);}for(const _0x58fb51 of _0x4cbfa7)_0x4a41a4['descriptionFactory']['registerAttributeLabel'](_0x58fb51,getTranslation$1(_0x45f0d1,'FORMAT_STYLE'));for(const _0x2ae434 of _0x1ddc07)_0x4a41a4['descriptionFactory']['registerAttributeLabel'](_0x2ae434,getTranslation$1(_0x45f0d1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15ac93=this['editor'],_0x283ab1=_0x15ac93['locale'];_0x15ac93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf634=>{if('formatBlock'!=_0x4bf634['type']&&'formatInline'!=_0x4bf634['type'])return;const {data:_0x2b8bd4}=_0x4bf634;return _0x2b8bd4&&'style'===_0x2b8bd4['commandName']?_0x2b8bd4['commandParams'][0x0]['forceValue']?{'type':'format','content':getTranslation$1(_0x283ab1,'*Set\x20format:*\x20%0',_0x2b8bd4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':getTranslation$1(_0x283ab1,'*Remove\x20format:*\x20%0',_0x2b8bd4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends Plugin{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1be61c){super(_0x1be61c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2646d2=this['editor'],_0x14ace1=_0x2646d2['model']['document']['selection'];if(!_0x2646d2['plugins']['has']('TableEditing'))return;const _0x488e1=_0x2646d2['locale'],_0x44fe7d=_0x2646d2['plugins']['get']('TrackChangesEditing'),_0x65fd3=_0x2646d2['plugins']['get']('TableUtils');_0x44fe7d['descriptionFactory']['registerElementLabel']('table',_0x417bb4=>getTranslation$1(_0x488e1,'ELEMENT_TABLE',_0x417bb4)),this['_setupColumnsRowsFixing'](),_0x44fe7d['enableCommand']('insertTable'),_0x44fe7d['enableCommand']('selectTableRow'),_0x44fe7d['enableCommand']('selectTableColumn');for(const _0x2b76d9 of['insertTableRowAbove','insertTableRowBelow']){const _0x35f6f8=_0x2646d2['commands']['get'](_0x2b76d9);_0x44fe7d['enableCommand'](_0x2b76d9,_0x14edb6=>{_0x2646d2['model']['change'](_0x1df501=>{_0x14edb6();const _0x495fbf='above'===_0x35f6f8['order'],_0x8330cf=_0x65fd3['getSelectionAffectedTableCells'](_0x14ace1),_0xe3c8db=_0x65fd3['getRowIndexes'](_0x8330cf),_0x5695cc=_0x495fbf?_0xe3c8db['first']-0x1:_0xe3c8db['last']+0x1,_0x5e34ff=_0x8330cf[0x0]['findAncestor']('table'),_0x5dc8dd=_0x65fd3['createTableWalker'](_0x5e34ff,{'startRow':_0x5695cc,'endRow':_0x5695cc}),_0x5ebffc=Array['from'](_0x5dc8dd)['map'](_0x9a79b0=>_0x1df501['createRangeOn'](_0x9a79b0['cell']));_0x44fe7d['markMultiRangeInsertion'](_0x5ebffc,'tableRow');});});}for(const _0x2987f5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5383db=_0x2646d2['commands']['get'](_0x2987f5);_0x44fe7d['enableCommand'](_0x2987f5,_0x158ef5=>{_0x2646d2['model']['change'](_0x305b6c=>{_0x158ef5();const _0x26e69b='left'===_0x5383db['order'],_0x501b17=_0x65fd3['getSelectionAffectedTableCells'](_0x14ace1),_0x3f52c9=_0x65fd3['getColumnIndexes'](_0x501b17),_0x39bc11=_0x26e69b?_0x3f52c9['first']-0x1:_0x3f52c9['last']+0x1,_0x217d8e=_0x501b17[0x0]['findAncestor']('table'),_0x3493d3=_0x65fd3['createTableWalker'](_0x217d8e,{'startRow':0x0,'column':_0x39bc11,'includeAllSlots':!0x1}),_0x3a6c3d=Array['from'](_0x3493d3)['map'](_0x171e65=>_0x305b6c['createRangeOn'](_0x171e65['cell']));_0x44fe7d['markMultiRangeInsertion'](_0x3a6c3d,'tableColumn');});});}for(const _0x432862 of['removeTableRow','removeTableColumn']){const _0x171324=_0x432862['substr'](0xb),_0x4b7ce8=_0x171324['toLowerCase'](),_0xd1b0f5=_0x4b7ce8['substr'](0x0,0x3)+'span',_0x23ee55='table'+_0x171324,_0x35ca52='min'+_0x171324,_0x21d9dc='max'+_0x171324;_0x44fe7d['enableCommand'](_0x432862,()=>{_0x2646d2['model']['change'](_0x3eef05=>{const _0x4ef5ed=_0x65fd3['getSelectionAffectedTableCells'](_0x14ace1),_0x44125=_0x4ef5ed[0x0]['findAncestor']('table');let _0x431a43;if('removeTableRow'==_0x432862){const _0x3d6684=_0x65fd3['getRowIndexes'](_0x4ef5ed);_0x431a43={'startRow':_0x3d6684['first'],'endRow':_0x3d6684['last'],'includeAllSlots':!0x0};}else{const _0x3bce2e=_0x65fd3['getColumnIndexes'](_0x4ef5ed);_0x431a43={'startColumn':_0x3bce2e['first'],'endColumn':_0x3bce2e['last'],'includeAllSlots':!0x0};}const _0x25bebf=_0x65fd3['createTableWalker'](_0x44125,_0x431a43),_0x57491f=Array['from'](_0x25bebf)['map'](({cell:_0xf76c61})=>_0xf76c61),_0x309c5d=uniqueValues(_0x57491f['filter'](_0x57e49b=>_0x57e49b['hasAttribute'](_0xd1b0f5))),_0x1a0404=uniqueValues(_0x57491f['filter'](_0x56a65a=>!_0x56a65a['hasAttribute'](_0xd1b0f5)))['map'](_0x59433f=>_0x3eef05['createRangeOn'](_0x59433f)),_0x202e3f=_0x44fe7d['markMultiRangeDeletion'](_0x1a0404,_0x23ee55);if(_0x202e3f&&('tableRow'==_0x202e3f['subType']||'tableColumn'==_0x202e3f['subType'])){const _0x5e9552=this['_getSuggestionCoords'](_0x202e3f);for(const _0x3e130b of _0x309c5d){const _0x5739ad=_0x3eef05['createRangeOn'](_0x3e130b),_0x57c018=_0x65fd3['getCellLocation'](_0x3e130b),_0x26887b=_0x3e130b['getAttribute'](_0xd1b0f5)-0x1,_0x1a0f2f=_0x5e9552[_0x35ca52],_0xf8b781=_0x5e9552[_0x21d9dc];_0x1a0f2f<=_0x57c018[_0x4b7ce8]&&_0x57c018[_0x4b7ce8]+_0x26887b<=_0xf8b781&&_0x202e3f['addRange'](_0x5739ad);}}});});}function _0x2794ef(_0x1ff943){const _0x2e11fd=Array['from'](_0x14ace1['getRanges']())['map'](_0x2e75f4=>ModelLiveRange['fromRange'](_0x2e75f4));_0x2646d2['model']['change'](_0x3aaad8=>{const _0x59a575=_0x3aaad8['batch'];_0x1ff943=_0x1ff943['filter'](_0x1528e7=>'$graveyard'!=_0x1528e7['root']['rootName']),_0x3aaad8['setSelection'](_0x1ff943),_0x2646d2['commands']['get']('removeTableRow')['refresh'](),_0x2646d2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2646d2['model']['enqueueChange'](()=>{_0x2646d2['model']['enqueueChange'](_0x59a575,_0x1e014e=>{const _0x28bdf3=_0x2e11fd['filter'](_0x3ef465=>'$graveyard'!=_0x3ef465['root']['rootName']);_0x28bdf3['length']>0x0&&_0x1e014e['setSelection'](_0x28bdf3);for(const _0x203a7a of _0x2e11fd)_0x203a7a['detach']();});});});}function _0x41635e(_0x30e01b){_0x2646d2['model']['change'](_0x4bc887=>{const _0x303003=Array['from'](_0x14ace1['getRanges']())['map'](_0x234352=>ModelLiveRange['fromRange'](_0x234352)),_0x2ba0e2=[];for(const _0x309173 of _0x30e01b)for(const _0x1358d3 of _0x309173['getItems']({'shallow':!0x0}))_0x2ba0e2['push'](_0x1358d3);for(const _0x7e43dd of _0x2ba0e2)'$graveyard'!=_0x7e43dd['root']['rootName']&&(_0x4bc887['setSelection'](_0x4bc887['createPositionAt'](_0x7e43dd,0x0)),_0x2646d2['commands']['get']('removeTableColumn')['refresh'](),_0x2646d2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3dc7bd=_0x303003['filter'](_0x194c76=>'$graveyard'!=_0x194c76['root']['rootName']);_0x3dc7bd['length']>0x0&&_0x4bc887['setSelection'](_0x3dc7bd);for(const _0x54a876 of _0x303003)_0x54a876['detach']();});}function _0xeee4d9(_0x449d88,_0x55c17d){return _0x55c17d['every'](_0x992f35=>_0x449d88['some'](_0x1594f3=>_0x1594f3['end']['isEqual'](_0x992f35['start'])||_0x992f35['end']['isEqual'](_0x1594f3['start'])));}function _0x3f62c3(_0x406b0d,_0x3c11e0){return!_0x406b0d['some'](_0x40afa4=>_0x3c11e0['some'](_0x2aa95b=>_0x40afa4['isIntersecting'](_0x2aa95b)))&&_0x406b0d['some'](_0x350150=>_0x3c11e0['some'](_0x5e26e1=>_0x350150['end']['isTouching'](_0x5e26e1['start'])));}_0x44fe7d['descriptionFactory']['registerDescriptionCallback'](_0x283c7e=>{if('insertion'!=_0x283c7e['type']&&'deletion'!=_0x283c7e['type'])return;const _0xe871a7=_0x283c7e['getContainedElement']();if(null!=_0xe871a7&&_0xe871a7['is']('element','table')){if('insertion'==_0x283c7e['type']){const _0x1cc8f6=_0x283c7e['getItems']()['filter'](_0x324910=>_0x324910['is']('$textProxy'))['map'](_0x2aaf91=>_0x2aaf91['data']);if(_0x1cc8f6['length'])return{'type':'insertion','content':getTranslation$1(_0x488e1,'*Insert:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cc8f6['join']('\x20')+'\x22'))};}if('deletion'==_0x283c7e['type']){const _0x4aac28=_0x283c7e['getItems']()['filter'](_0x206a66=>_0x206a66['is']('$textProxy'))['map'](_0x23dc98=>_0x23dc98['data']);if(_0x4aac28['length'])return{'type':'deletion','content':getTranslation$1(_0x488e1,'*Remove:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4aac28['join']('\x20')+'\x22'))};}}}),_0x44fe7d['descriptionFactory']['registerDescriptionCallback'](_0x178f7a=>{if('tableRow'==_0x178f7a['subType']){const _0x2500dd=_0x178f7a['getItems']()['filter'](_0x7b3a64=>_0x7b3a64['is']('$textProxy'))['map'](_0x3e6164=>_0x3e6164['data']),_0x3fbd1d=this['_getSuggestionCoords'](_0x178f7a),_0xac0bf5=_0x3fbd1d['maxRow']-_0x3fbd1d['minRow']+0x1;if('insertion'==_0x178f7a['type'])return _0x2500dd['length']?{'type':'insertion','content':getTranslation$1(_0x488e1,'*Insert:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xac0bf5,'\x22'+_0x2500dd['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x488e1,'*Insert:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_ROW',_0xac0bf5))};if('deletion'==_0x178f7a['type'])return _0x2500dd['length']?{'type':'deletion','content':getTranslation$1(_0x488e1,'*Remove:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xac0bf5,'\x22'+_0x2500dd['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x488e1,'*Remove:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_ROW',_0xac0bf5))};}if('tableColumn'==_0x178f7a['subType']){const _0x4bbb81=_0x178f7a['getItems']()['filter'](_0x133691=>_0x133691['is']('$textProxy'))['map'](_0x35a0fc=>_0x35a0fc['data']),_0x109c18=this['_getSuggestionCoords'](_0x178f7a),_0x2c4d6f=_0x109c18['maxColumn']-_0x109c18['minColumn']+0x1;if('insertion'==_0x178f7a['type'])return _0x4bbb81['length']?{'type':'insertion','content':getTranslation$1(_0x488e1,'*Insert:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c4d6f,'\x22'+_0x4bbb81['join']('\x20')+'\x22']))}:{'type':'insertion','content':getTranslation$1(_0x488e1,'*Insert:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_COLUMN',_0x2c4d6f))};if('deletion'==_0x178f7a['type'])return _0x4bbb81['length']?{'type':'deletion','content':getTranslation$1(_0x488e1,'*Remove:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c4d6f,'\x22'+_0x4bbb81['join']('\x20')+'\x22']))}:{'type':'deletion','content':getTranslation$1(_0x488e1,'*Remove:*\x20%0',getTranslation$1(_0x488e1,'ELEMENT_TABLE_COLUMN',_0x2c4d6f))};}}),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2794ef),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2794ef),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41635e),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41635e),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xeee4d9),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xeee4d9),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f62c3),_0x44fe7d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f62c3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55cf3a=this['editor'],_0x2a9ef6=_0x55cf3a['model']['document']['selection'];return(_0x30b37e,_0x1f655b)=>{_0x55cf3a['model']['change'](_0xf3ed54=>{const {commandName:_0x2a5730,commandParams:_0x20ea2d}=_0x1f655b;let _0x12b8e0=_0x30b37e[0x0]['end']['nodeBefore'];_0x20ea2d&&_0x20ea2d[0x0]&&!0x1===_0x20ea2d[0x0]['forceValue']&&(_0x12b8e0=_0x30b37e[0x0]['start']['nodeAfter']);const _0x123c4f=_0xf3ed54['createRangeIn'](_0x12b8e0);if('$graveyard'==_0x123c4f['root']['rootName'])return;const _0x91c75c=Array['from'](_0x2a9ef6['getRanges']())['map'](_0x1840b3=>ModelLiveRange['fromRange'](_0x1840b3));_0xf3ed54['setSelection'](_0x123c4f),_0x55cf3a['commands']['get'](_0x2a5730)['refresh'](),_0x20ea2d['push']({'forceDefaultExecution':!0x0}),_0x55cf3a['execute'](_0x2a5730,..._0x20ea2d);const _0x334530=_0x91c75c['filter'](_0x34a16d=>'$graveyard'!=_0x34a16d['root']['rootName']);_0x334530['length']>0x0&&_0xf3ed54['setSelection'](_0x334530);for(const _0x21afd7 of _0x91c75c)_0x21afd7['detach']();});};}['_getCoordsForCells'](_0x224382){const _0x25c51c=this['editor']['plugins']['get']('TableUtils');let _0x18c776=Number['MAX_SAFE_INTEGER'],_0x33a921=Number['MIN_SAFE_INTEGER'],_0x1a2c53=Number['MAX_SAFE_INTEGER'],_0x2b7edb=Number['MIN_SAFE_INTEGER'];for(const _0x397c08 of _0x224382){if('$graveyard'==_0x397c08['root']['rootName'])continue;const {row:_0x16d5c3,column:_0x31339b}=_0x25c51c['getCellLocation'](_0x397c08),_0x500430=_0x397c08['hasAttribute']('rowspan')?_0x397c08['getAttribute']('rowspan')-0x1:0x0,_0x46d97d=_0x397c08['hasAttribute']('colspan')?_0x397c08['getAttribute']('colspan')-0x1:0x0;_0x18c776=_0x16d5c3<_0x18c776?_0x16d5c3:_0x18c776,_0x33a921=_0x16d5c3+_0x500430>_0x33a921?_0x16d5c3+_0x500430:_0x33a921,_0x1a2c53=_0x31339b<_0x1a2c53?_0x31339b:_0x1a2c53,_0x2b7edb=_0x31339b+_0x46d97d>_0x2b7edb?_0x31339b+_0x46d97d:_0x2b7edb;}return{'minRow':_0x18c776,'maxRow':_0x33a921,'minColumn':_0x1a2c53,'maxColumn':_0x2b7edb};}['_setupColumnsRowsFixing'](){const _0x5459f9=this['editor'],_0x31aada=_0x5459f9['plugins']['get']('TrackChangesEditing'),_0x14ca42=_0x5459f9['plugins']['get']('TableUtils');_0x5459f9['model']['document']['on']('change:data',()=>{const _0x3dfba5=Array['from'](_0x5459f9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48b0b7,data:_0x1c393e}of _0x3dfba5){const {group:_0x33cb6c,id:_0x192bd0,subType:_0x425bac}=_0x31aada['_splitMarkerName'](_0x48b0b7);if('suggestion'!=_0x33cb6c)continue;if(null!=_0x1c393e['oldRange'])continue;const _0x3eae3d=_0x31aada['getSuggestion'](_0x192bd0);this['_tablePostFixingSubtypes']['includes'](_0x425bac)&&this['_tableSuggestions']['add'](_0x3eae3d);}},{'priority':'low'});const _0x573825=(_0x2ec343,_0x2b675f)=>{let _0x5eb3f6=!0x1;const _0x4a26d6=_0x2b675f['createRangeOn'](_0x2ec343),_0x427e4d=_0x2ec343['findAncestor']('table'),_0x48e7d9=_0x14ca42['getCellLocation'](_0x2ec343);for(const _0x48a027 of this['_tableSuggestions']){const _0x3b1382=_0x48a027['subType'],_0xdff872=_0x3b1382['startsWith']('tablePaste'),_0x6dde3=_0x3b1382['substr'](_0xdff872?0xa:0x5),_0x145484=_0x6dde3['toLowerCase'](),_0x4ae76c=_0x145484['substr'](0x0,0x3)+'span',_0x353692='min'+_0x6dde3,_0x118ada='max'+_0x6dde3;if(!_0x48a027['isInContent'])continue;if(_0x427e4d!=_0x48a027['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x48a027['isIntersectingWithRange'](_0x4a26d6))continue;const _0xf91bac=_0x2ec343['hasAttribute'](_0x4ae76c)?_0x2ec343['getAttribute'](_0x4ae76c)-0x1:0x0,_0x338a69=this['_getSuggestionCoords'](_0x48a027),_0x2f93bc=_0x338a69[_0x353692],_0x3bb388=_0x338a69[_0x118ada];_0x2f93bc<=_0x48e7d9[_0x145484]&&_0x48e7d9[_0x145484]+_0xf91bac<=_0x3bb388&&(_0x48a027['addRange'](_0x4a26d6),_0x5eb3f6=!0x0);}return _0x5eb3f6;};_0x5459f9['model']['document']['registerPostFixer'](_0x2b89c5=>{let _0x4580ae=!0x1;for(const _0x203d61 of _0x5459f9['model']['document']['differ']['getChanges']())if('insert'==_0x203d61['type']){if('tableRow'==_0x203d61['name']){for(const _0x482e49 of _0x203d61['position']['nodeAfter']['getChildren']())_0x4580ae=_0x4580ae||_0x573825(_0x482e49,_0x2b89c5);}else'tableCell'==_0x203d61['name']&&(_0x4580ae=_0x4580ae||_0x573825(_0x203d61['position']['nodeAfter'],_0x2b89c5));}return _0x4580ae;});}['_getSuggestionCoords'](_0x4db603){return this['_getCoordsForCells'](_0x4db603['getRanges']()['map'](_0x3f946f=>_0x3f946f['start']['nodeAfter']));}}function uniqueValues(_0x43509a){return Array['from'](new Set(_0x43509a)['values']());}class TrackChangesTableMergeSplit extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x437ec4=this['editor'],_0x267bd9=_0x437ec4['model']['document']['selection'],_0x224d4b=_0x437ec4['locale'];if(!_0x437ec4['plugins']['has']('TableEditing'))return;const _0x31c633=_0x437ec4['plugins']['get']('TrackChangesEditing'),_0x2a7031=_0x437ec4['plugins']['get']('TableUtils'),_0x50d759=_0x437ec4['plugins']['get'](TrackChangesTable);_0x50d759['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x31c633['enableCommand']('mergeTableCells',()=>{const _0x11c1f2=_0x2a7031['getSelectionAffectedTableCells'](_0x437ec4['model']['document']['selection']);_0x437ec4['model']['change'](()=>{_0x31c633['markMultiRangeBlockFormat'](_0x11c1f2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x437ec4['commands']['get']('mergeTableCells')['on']('execute',(_0x1f67f8,_0x306440)=>{_0x437ec4['commands']['get']('trackChanges')['value']&&(_0x306440['length']>0x0&&_0x306440[_0x306440['length']-0x1]&&_0x306440[_0x306440['length']-0x1]['forceDefaultExecution']||_0x31c633['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f67f8['stop']());},{'priority':'highest'});for(const _0x1e9d8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x526024=_0x437ec4['commands']['get'](_0x1e9d8f);_0x31c633['enableCommand'](_0x1e9d8f,()=>{const _0x1c4fc0=_0x437ec4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19f2a1=>_0x19f2a1['is']('element','tableCell')),_0x4669cc=_0x526024['value'];_0x437ec4['model']['change'](()=>{_0x31c633['markMultiRangeBlockFormat']([_0x1c4fc0,_0x4669cc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x363c7d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2fbf58=_0x437ec4['commands']['get'](_0x363c7d);_0x31c633['enableCommand'](_0x363c7d,()=>{const _0x647a22=_0x2a7031['getSelectionAffectedTableCells'](_0x437ec4['model']['document']['selection'])[0x0],_0x3c48c2=_0x647a22['findAncestor']('table'),{column:_0x30e867,row:_0x12cf00}=_0x2a7031['getCellLocation'](_0x647a22);let _0x305f97=[];if('horizontally'==_0x2fbf58['direction']){const _0x5275fa=_0x2a7031['createTableWalker'](_0x3c48c2,{'startRow':_0x12cf00,'endRow':_0x12cf00,'includeAllSlots':!0x0});_0x305f97=Array['from'](_0x5275fa)['map'](_0x59416a=>_0x59416a['cell']);}else{const _0x2b8f16=_0x2a7031['createTableWalker'](_0x3c48c2,{'column':_0x30e867,'includeAllSlots':!0x0});_0x305f97=Array['from'](_0x2b8f16)['map'](_0x4b12b1=>_0x4b12b1['cell']);}_0x437ec4['model']['change'](_0x290876=>{_0x31c633['markBlockFormat'](_0x290876['createRangeOn'](_0x647a22),{'commandName':_0x363c7d,'commandParams':[]},_0x305f97,_0x363c7d);});});}_0x31c633['descriptionFactory']['registerDescriptionCallback'](_0xe67f56=>{if('formatBlock'!=_0xe67f56['type']&&'formatInline'!=_0xe67f56['type'])return;const {data:_0x1d6438}=_0xe67f56;return _0x1d6438&&'mergeTableCells'==_0x1d6438['commandName']?{'type':'format','content':getTranslation$1(_0x224d4b,'*Merge\x20cells*')}:void 0x0;}),_0x31c633['descriptionFactory']['registerDescriptionCallback'](_0x74a292=>{if('formatBlock'!=_0x74a292['type']&&'formatInline'!=_0x74a292['type'])return;const {data:_0x29c4d9}=_0x74a292;return _0x29c4d9?'splitTableCellVertically'==_0x29c4d9['commandName']?{'type':'format','content':getTranslation$1(_0x224d4b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x29c4d9['commandName']?{'type':'format','content':getTranslation$1(_0x224d4b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5af152=_0x50d759['_acceptFormatSuggestionCallbackFactory']();for(const _0x12c5d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x31c633['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12c5d5,'accept',_0x5af152);for(const _0x8a1bb7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x31c633['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8a1bb7,'accept',_0x5af152);_0x31c633['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c03dd=>{_0x437ec4['model']['change'](_0x2a1baa=>{const _0xd93400=Array['from'](_0x267bd9['getRanges']())['map'](_0x2c537a=>ModelLiveRange['fromRange'](_0x2c537a));_0x2a1baa['setSelection'](_0x4c03dd),_0x437ec4['commands']['get']('mergeTableCells')['refresh'](),_0x437ec4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c3ba7=_0xd93400['filter'](_0x39033f=>'$graveyard'!=_0x39033f['root']['rootName']);_0x5c3ba7['length']>0x0&&_0x2a1baa['setSelection'](_0x5c3ba7);for(const _0xdbba7a of _0xd93400)_0xdbba7a['detach']();});});for(const _0x4c8230 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4feee2=_0x437ec4['commands']['get'](_0x4c8230);_0x4feee2['on']('set:isEnabled',(_0x4f9f97,_0x140b86,_0x1eabe8)=>{if(_0x1eabe8){const _0x1e3f71=_0x437ec4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59d315=>_0x59d315['is']('element','tableCell'));this['_areMergableCells'](_0x4feee2['value'],_0x1e3f71)||(_0x4f9f97['return']=!0x1,_0x4f9f97['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x54e5b2=this['editor']['commands']['get']('mergeTableCells'),_0x56df22=this['editor']['plugins']['get']('TableUtils');if(!_0x54e5b2['isEnabled'])return!0x1;const _0x3cc855=_0x56df22['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4d54fb of _0x3cc855)for(const _0x5cf2a7 of _0x3cc855)if(_0x4d54fb!=_0x5cf2a7&&!this['_areMergableCells'](_0x4d54fb,_0x5cf2a7))return!0x1;return!0x0;}['_areMergableCells'](_0x20a110,_0x93492b){const _0x59e8a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x228086=this['editor']['model']['createRangeOn'](_0x20a110),_0x2db565=this['editor']['model']['createRangeOn'](_0x93492b),_0x4a44fb=new Set(),_0x74f13f=new Set();for(const _0x4a3e0 of _0x59e8a8['getSuggestions']())if(('insertion'==_0x4a3e0['type']||'deletion'==_0x4a3e0['type']||'mergeTableCells'==_0x4a3e0['subType'])&&_0x4a3e0['isInContent']){for(const _0x42a177 of _0x4a3e0['getRanges']())_0x42a177['containsRange'](_0x228086,!0x0)&&_0x4a44fb['add'](_0x4a3e0['type']+':'+_0x4a3e0['author']['id']),_0x42a177['containsRange'](_0x2db565,!0x0)&&_0x74f13f['add'](_0x4a3e0['type']+':'+_0x4a3e0['author']['id']);}if(_0x4a44fb['size']!=_0x74f13f['size'])return!0x1;for(const _0x29c592 of _0x4a44fb)if(!_0x74f13f['has'](_0x29c592))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x38f6bc=this['editor'];if(!_0x38f6bc['plugins']['has']('TableEditing'))return;const _0x4a5b33=_0x38f6bc['locale'],_0xa759ba=_0x38f6bc['plugins']['get']('TrackChangesEditing');_0xa759ba['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa759ba['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa759ba['descriptionFactory']['registerAttributeLabel']('headingRows',getTranslation$1(_0x4a5b33,'FORMAT_HEADER_ROW')),_0xa759ba['descriptionFactory']['registerAttributeLabel']('headingColumns',getTranslation$1(_0x4a5b33,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44f5a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe9df2=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x44f5a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xfe9df2),_0x44f5a6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xfe9df2),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x577122=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2e4e=this['editor']['plugins']['get']('TableUtils');function _0x24f262({showActiveMarker:_0x4a5e2b=!0x0,setDataAttribute:_0x400822=!0x0}={}){return(_0x26f9d5,_0x3343a6,_0x4fa976)=>{const {type:_0x2e482e,id:_0x2740ab}=_0x577122['_splitMarkerName'](_0x3343a6['markerName']);if(!_0x577122['hasSuggestion'](_0x2740ab))return;const _0x485e3f=_0x577122['getSuggestion'](_0x2740ab),_0x4b7504=_0x485e3f['data'];if('formatBlock'!=_0x485e3f['type']||!_0x4b7504||'setTableColumnHeader'!=_0x4b7504['commandName'])return;if(_0x3343a6['item'])return void _0x26f9d5['stop']();if(!_0x4fa976['consumable']['consume'](_0x3343a6['markerRange'],_0x26f9d5['name']))return;const _0x4881c4=_0x3343a6['markerRange']['start']['nodeAfter'],_0x167a6f=_0x3343a6['markerRange']['end']['nodeBefore'],_0x1f1b0f=_0x4881c4['parent']['parent'],{column:_0x407061}=_0x5f2e4e['getCellLocation'](_0x4881c4),{column:_0x479475}=_0x5f2e4e['getCellLocation'](_0x167a6f);for(let _0x43c0ed=_0x407061;_0x43c0ed<=_0x479475;_0x43c0ed++){const _0x31fc1f=_0x5f2e4e['createTableWalker'](_0x1f1b0f,{'column':_0x43c0ed,'includeAllSlots':!0x1});for(const _0x3cc267 of _0x31fc1f){const _0x45c0a2=_0x3cc267['cell'],_0x20f918=_0x4fa976['mapper']['toViewElement'](_0x45c0a2);_0x4fa976['writer']['addClass']('ck-suggestion-marker-'+_0x2e482e,_0x20f918),_0x400822&&_0x4fa976['writer']['setAttribute']('data-suggestion',_0x2740ab,_0x20f918),_0x4fa976['mapper']['bindElementToMarker'](_0x20f918,_0x3343a6['markerName']),_0x4a5e2b&&(_0x577122['activeMarkers']['includes'](_0x3343a6['markerName'])?_0x4fa976['writer']['addClass']('ck-suggestion-marker--active',_0x20f918):_0x4fa976['writer']['removeClass']('ck-suggestion-marker--active',_0x20f918));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x24f262(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59e941,_0x1879ce,_0x5dfdfe)=>{_0x5dfdfe['options']['showSuggestionHighlights']&&_0x24f262({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59e941,_0x1879ce,_0x5dfdfe);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3889d0,_0x51d0ff,_0x32e3e1)=>{const {type:_0x489fc7,id:_0x33b777}=_0x577122['_splitMarkerName'](_0x51d0ff['markerName']);if(!_0x577122['hasSuggestion'](_0x33b777))return;const _0x55b8a0=_0x577122['getSuggestion'](_0x33b777),_0x29349f=_0x55b8a0['data'];if('formatBlock'!=_0x55b8a0['type']||!_0x29349f||'setTableColumnHeader'!=_0x29349f['commandName'])return;const _0x41dcb9=_0x32e3e1['mapper']['markerNameToElements'](_0x51d0ff['markerName']);if(_0x41dcb9){for(const _0x502f80 of _0x41dcb9)_0x32e3e1['writer']['removeClass']('ck-suggestion-marker-'+_0x489fc7,_0x502f80),_0x32e3e1['writer']['removeClass']('ck-suggestion-marker--active',_0x502f80),_0x32e3e1['writer']['removeAttribute']('data-suggestion',_0x502f80),_0x32e3e1['mapper']['unbindElementFromMarkerName'](_0x502f80,_0x51d0ff['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x540896=this['editor'],_0x2c42b0=_0x540896['locale'];function _0x39ab2d(_0x4c4e5a){return{'type':'format','content':getTranslation$1(_0x2c42b0,'*Format:*\x20%0',_0x4c4e5a)};}_0x540896['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2cc3=>{if('formatBlock'!=_0x1b2cc3['type'])return;const {data:_0x3cbe97}=_0x1b2cc3;if(_0x3cbe97){if('setTableRowHeader'==_0x3cbe97['commandName']){const _0x113cd8=_0x3cbe97['commandParams'][0x0]['forceValue'];return _0x39ab2d(getTranslation$1(_0x2c42b0,_0x113cd8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3cbe97['commandName']){const _0x42cc62=_0x3cbe97['commandParams'][0x0]['forceValue'];return _0x39ab2d(getTranslation$1(_0x2c42b0,_0x42cc62?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableLayout extends Plugin{['afterInit'](){const _0x2046da=this['editor'],_0x34b163=_0x2046da['locale'],_0x2a3cc2=_0x2046da['plugins']['get']('TrackChangesEditing');function _0x3d27eb(_0x256398){return{'type':'format','content':''+getTranslation$1(_0x34b163,'*Set\x20table\x20type:*\x20%0',_0x256398)};}_0x2046da['plugins']['has']('TableLayout')&&(_0x2a3cc2['enableCommand']('insertTableLayout'),_0x2a3cc2['enableDefaultAttributesIntegration']('tableType'),_0x2a3cc2['descriptionFactory']['registerElementLabel'](_0x74d95f=>_0x74d95f['is']('element','table')&&'layout'===_0x74d95f['getAttribute']('tableType'),_0xd3f6d8=>getTranslation$1(_0x34b163,'ELEMENT_LAYOUT_TABLE',_0xd3f6d8)),_0x2a3cc2['descriptionFactory']['registerDescriptionCallback'](_0x3f4095=>{const {data:_0x2b13aa}=_0x3f4095;if(_0x2b13aa&&'tableType'==_0x2b13aa['key'])switch(_0x2b13aa['newValue']){case'layout':return _0x3d27eb(getTranslation$1(_0x34b163,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3d27eb(getTranslation$1(_0x34b163,'ELEMENT_CONTENT_TABLE'));}}));}}const tableCellStyleAttributeNames=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],tableCellStyleAttributesObject=/* #__PURE__ -- @preserve */
Object['fromEntries'](tableCellStyleAttributeNames['map'](_0x4be033=>[_0x4be033,null]));class TrackChangesTableClipboard extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x497655=this['editor'];if(!_0x497655['plugins']['has']('TableClipboard'))return;const _0x1737ca=_0x497655['plugins']['get']('TrackChangesEditing'),_0x5c9501=_0x497655['plugins']['get']('TableUtils'),_0x5025e3=_0x497655['plugins']['get'](TrackChangesTable),_0xde38e6=_0x497655['plugins']['get']('TableClipboard'),_0xa16289=_0x497655['plugins']['get']('TableSelection'),_0x418f6a=_0x497655['plugins']['get'](ClipboardPipeline);_0x5025e3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x497655['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x497655['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5591fc=null,_0x5aee83=!0x1;_0x418f6a['on']('contentInsertion',(_0x3cbd8b,_0x3d6f74)=>{_0x5aee83='paste'===_0x3d6f74['method'];}),_0x497655['model']['on']('insertContent',(_0x3175e6,_0x10a5ab)=>{if(!_0x5aee83&&null===_0xa16289['getSelectedTableCells']())return;const [_0x5dac1e,_0x2be185]=_0x10a5ab,_0x1ce493=_0x10a5ab[_0x10a5ab['length']-0x1];_0x1ce493&&_0x1ce493['forceDefaultExecution']||_0x1737ca['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&isPasteTableIntoTable(_0x5dac1e,_0x2be185,_0x497655['model'],_0x5c9501,_0xde38e6)&&(_0x3175e6['stop'](),_0x5591fc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x497655['model']['change'](()=>{_0x497655['model']['insertContent'](_0x10a5ab[0x0],_0x10a5ab[0x1],_0x10a5ab[0x2],{'forceDefaultExecution':!0x0});const _0xc10911=uid(),{rowInsertionRanges:_0x2fb2b3,columnInsertionRanges:_0x545c05,insertionRanges:_0x5a4450,deletionRanges:_0x18dafc,cells:_0x583b34}=_0x5591fc;_0x2fb2b3['length']&&_0x1737ca['markMultiRangeInsertion'](_0x2fb2b3,'tablePasteRow',{'tablePasteChainId':_0xc10911}),_0x545c05['length']&&_0x1737ca['markMultiRangeInsertion'](_0x545c05,'tablePasteColumn',{'tablePasteChainId':_0xc10911}),_0x5a4450['length']&&(_0x1737ca['markMultiRangeInsertion'](_0x5a4450,'tablePaste',{'tablePasteChainId':_0xc10911,'skipNestingCheck':!0x0}),_0x5a4450['forEach'](_0x4c6666=>_0x4c6666['detach']?.())),_0x18dafc['length']&&(_0x1737ca['markMultiRangeDeletion'](_0x18dafc,'tablePaste',{'tablePasteChainId':_0xc10911,'skipNestingCheck':!0x0}),_0x18dafc['forEach'](_0x1ed992=>_0x1ed992['detach']?.()));const _0x13447b=_0x1737ca['markMultiRangeBlockFormat'](_0x583b34['map'](({element:_0x367278})=>_0x367278),{'formatGroupId':uid()},[],'tablePasteCell',{'tablePasteChainId':_0xc10911});if(_0x13447b){const _0x19f31d=_0x13447b['getMarkers'](),_0x519086=[];for(const {element:_0x47715d,attributes:_0x4f7071}of _0x583b34){if(!_0x4f7071)continue;const _0x4056ad=_0x497655['model']['createRangeOn'](_0x47715d),_0x228191=_0x19f31d['find'](_0x384a33=>_0x384a33['getRange']()['isEqual'](_0x4056ad));_0x228191&&_0x519086['push']([_0x228191['name'],_0x4f7071]);}_0x519086['length']&&_0x13447b['setAttribute']('markerAttributes',Object['fromEntries'](_0x519086));}_0x5591fc=null;}));},{'priority':priorities['high']+0xa}),_0x418f6a['on']('contentInsertion',()=>{_0x5aee83=!0x1;},{'priority':'lowest'}),_0x497655['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x482ffd,_0x115112)=>{const [_0x4b2a3e,_0x759adc,,_0x3eb2c4]=_0x115112;if(!_0x5591fc)return;_0x482ffd['stop']();const _0x58fbb7=_0x4b2a3e['cell'],_0x42f28a=_0x759adc,_0x46cf65=isEmpty(_0x58fbb7),_0x46e275=isEmpty(_0x42f28a);_0x482ffd['return']=_0x58fbb7;let _0x2f4276=null,_0x301998=null;if(_0x46e275||_0x46cf65){if(_0x46cf65&&!_0x46e275){_0x3eb2c4['remove'](_0x58fbb7['getChild'](0x0));for(const _0x483364 of Array['from'](_0x42f28a['getChildren']()))_0x3eb2c4['insert'](_0x483364,_0x58fbb7,'end');const _0x588f33=_0x5591fc['rowInsertionIndexes']['includes'](_0x4b2a3e['row']),_0x44f482=_0x5591fc['columnInsertionIndexes']['includes'](_0x4b2a3e['column']);_0x588f33||_0x44f482||(_0x2f4276=ModelLiveRange['fromRange'](_0x3eb2c4['createRangeIn'](_0x58fbb7)));}else _0x46e275&&!_0x46cf65&&(_0x301998=_0x3eb2c4['createRangeIn'](_0x58fbb7));}else{const _0x51727d=_0x3eb2c4['createElement']('tableCellSuggestion'),_0x568fbf=_0x3eb2c4['createElement']('tableCellSuggestion');_0x3eb2c4['wrap'](_0x3eb2c4['createRangeIn'](_0x58fbb7),_0x568fbf),_0x3eb2c4['insert'](_0x51727d,_0x58fbb7,0x0);for(const _0x19f94d of Array['from'](_0x42f28a['getChildren']()))_0x3eb2c4['insert'](_0x19f94d,_0x51727d,'end');_0x2f4276=ModelLiveRange['fromRange'](_0x3eb2c4['createRangeOn'](_0x51727d)),_0x301998=ModelLiveRange['fromRange'](_0x3eb2c4['createRangeOn'](_0x568fbf));}const _0x3d9fcb=Array['from'](_0x42f28a['getAttributes']())['filter'](([_0x4f0795])=>tableCellStyleAttributeNames['includes'](_0x4f0795));_0x5591fc['cells']['push']({'element':_0x58fbb7,'attributes':_0x3d9fcb['length']?Object['fromEntries'](_0x3d9fcb):null}),_0x2f4276&&_0x5591fc['insertionRanges']['push'](_0x2f4276),_0x301998&&_0x5591fc['deletionRanges']['push'](_0x301998);},{'priority':'high'}),_0x5c9501['on']('insertColumns',(_0x5476fe,_0x5836ed)=>{const [_0x46516b,_0x42f656={}]=_0x5836ed;if(!_0x5591fc)return;const _0x273d47=_0x42f656['at']||0x0,_0x326dab=_0x42f656['columns']||0x1;_0x5591fc['columnInsertionIndexes']=new Array(_0x326dab)['fill'](_0x273d47)['map']((_0x841b52,_0x2010d4)=>_0x841b52+_0x2010d4);for(const {cell:_0x594803}of _0x5c9501['createTableWalker'](_0x46516b,{'startColumn':_0x273d47,'endColumn':_0x273d47+_0x326dab-0x1}))_0x5591fc['columnInsertionRanges']['push'](_0x497655['model']['createRangeOn'](_0x594803));},{'priority':'low'}),_0x5c9501['on']('insertRows',(_0xeca551,_0x3ecb5b)=>{const [_0x525e38,_0x53feb5={}]=_0x3ecb5b;if(!_0x5591fc)return;const _0x18246d=_0x53feb5['at']||0x0,_0x2dd759=_0x53feb5['rows']||0x1;_0x5591fc['rowInsertionIndexes']=new Array(_0x2dd759)['fill'](_0x18246d)['map']((_0x33e35b,_0x38ea82)=>_0x33e35b+_0x38ea82);for(const {cell:_0x372596}of _0x5c9501['createTableWalker'](_0x525e38,{'startRow':_0x18246d,'endRow':_0x18246d+_0x2dd759-0x1}))_0x5591fc['rowInsertionRanges']['push'](_0x497655['model']['createRangeOn'](_0x372596));},{'priority':'low'}),_0x1737ca['descriptionFactory']['registerDescriptionCallback'](_0x501aca=>{if(_0x501aca['subType']&&_0x501aca['subType']['startsWith']('tablePaste'))return _0x501aca['previous']?{}:{'type':'insertion','content':getTranslation$1(_0x497655['locale'],'*Replace\x20table\x20cells*')};});const _0x8aa6bd=()=>!0x1;for(const _0x5f14dd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1737ca['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f14dd,'join',_0x8aa6bd),_0x1737ca['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f14dd,'join',_0x8aa6bd),_0x1737ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f14dd,'join',_0x8aa6bd);_0x1737ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8aa6bd),_0x1737ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb006f9,_0x24f263,_0x35c58e)=>{const _0x5ed14d=_0xb006f9['map'](_0x16f0e1=>_0x16f0e1['getContainedElement']())['filter'](_0x1acd86=>_0x1acd86),_0x3c221b=new Map(_0x5ed14d['map'](_0x4de032=>[_0x4de032,null]));if(_0x5591fc){for(const {element:_0xfa13da,attributes:_0x2a95d1}of _0x5591fc['cells'])_0x2a95d1&&_0x3c221b['set'](_0xfa13da,_0x2a95d1);}else{if(_0x35c58e&&_0x35c58e['markerAttributes'])for(const [_0x233979,_0x3a9092]of Object['entries'](_0x35c58e['markerAttributes'])){const _0x395d14=_0x497655['model']['markers']['get'](_0x233979),_0x563d58=_0x395d14?_0x395d14['getRange']()['getContainedElement']():null;_0x563d58&&_0x3c221b['set'](_0x563d58,_0x3a9092);}}_0x497655['model']['change'](_0x2dd9ad=>{for(const [_0x49003d,_0x3595b5]of _0x3c221b)_0x2dd9ad['setAttributes']({...tableCellStyleAttributesObject,..._0x3595b5},_0x49003d);});});const _0x213b30=(_0x5a3492,_0x585adb)=>{_0x1737ca['_suggestionFactory']['registerCustomCallback'](_0x5a3492,'tablePaste',_0x585adb,(_0x52a682,_0x14bf86,_0x243661)=>{_0x497655['model']['change'](_0x562eed=>{const _0x223a2e=[];for(const _0x564d8d of _0x52a682){const _0x3f31b7=_0x564d8d['start']['nodeAfter'];_0x3f31b7['is']('element','tableCellSuggestion')&&_0x223a2e['push'](_0x3f31b7);}_0x1737ca['_suggestionFactory']['getSuggestionCallback'](_0x5a3492,null,_0x585adb)(_0x52a682,_0x14bf86,_0x243661);for(const _0x527b1f of _0x223a2e)'$graveyard'!=_0x527b1f['root']['rootName']&&_0x562eed['unwrap'](_0x527b1f);});});};_0x213b30('insertion','accept'),_0x213b30('insertion','discard'),_0x213b30('deletion','accept'),_0x213b30('deletion','discard'),_0x1737ca['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x202c6e=>{const _0x4a0492=_0x202c6e['map'](_0x4e849f=>_0x4e849f['getContainedElement']()),_0x21b731=_0x4a0492[0x0]['findAncestor']('table'),{minRow:_0x364a9e,maxRow:_0x1283d4}=_0x5025e3['_getCoordsForCells'](_0x4a0492);_0x5c9501['removeRows'](_0x21b731,{'at':_0x364a9e,'rows':_0x1283d4-_0x364a9e+0x1});}),_0x1737ca['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26a408=>{const _0x31f930=_0x26a408['map'](_0x167f4b=>_0x167f4b['getContainedElement']()),_0x1c3196=_0x31f930[0x0]['findAncestor']('table'),{minColumn:_0xd734a7,maxColumn:_0x5722b0}=_0x5025e3['_getCoordsForCells'](_0x31f930);_0x5c9501['removeColumns'](_0x1c3196,{'at':_0xd734a7,'columns':_0x5722b0-_0xd734a7+0x1});});const _0x557600=(_0x3c450c,_0x47456c)=>{if(!_0x47456c['subType']||!_0x47456c['subType']['startsWith']('tablePaste'))return;const _0x192845=_0x47456c['attributes']['tablePasteChainId'],_0x36e319=_0x1737ca['getSuggestions']()['filter'](_0x29c195=>_0x29c195['isInContent']&&_0x29c195['attributes']&&_0x29c195['attributes']['tablePasteChainId']==_0x192845);_0x36e319['length']&&_0x47456c['getAllAdjacentSuggestions']()['length']!=_0x36e319['length']&&_0x36e319['reduce']((_0x229c69,_0x66a9b5)=>(_0x229c69['next']=_0x66a9b5,_0x66a9b5['previous']=_0x229c69,_0x66a9b5));};function _0x17bf20(_0x2bceba,_0xb39839=!0x0){const {id:_0x20afd1,authorId:_0x5ea519}=_0x1737ca['_splitMarkerName'](_0x2bceba['markerName']),_0x35dd22=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x238c3f=_0x1737ca['activeMarkers']['includes'](_0x2bceba['markerName']);return _0x238c3f&&_0x35dd22['push']('ck-suggestion-marker--active'),{'classes':_0x35dd22,'attributes':{'data-suggestion':_0x20afd1,'data-author-id':_0x5ea519},'priority':_0x238c3f&&_0xb39839?0xbc2:0xbb8};}_0x1737ca['on']('suggestionLoaded',_0x557600,{'priority':'high'}),_0x1737ca['on']('suggestionUnloaded',_0x557600,{'priority':'high'}),_0x497655['model']['document']['registerPostFixer'](()=>{let _0x3f6493=!0x1;const _0x295ead=Array['from'](_0x497655['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fbc85,data:_0x4a44c2}of _0x295ead){const {group:_0x2b344d,type:_0x3e2612,id:_0x298f74}=_0x1737ca['_splitMarkerName'](_0x2fbc85);if('suggestion'!=_0x2b344d||'deletion'!=_0x3e2612||_0x4a44c2['oldRange'])continue;if(!_0x1737ca['hasSuggestion'](_0x298f74))continue;const _0x415d46=_0x1737ca['getSuggestion'](_0x298f74)['getRanges'](),_0x18b0c1=_0x497655['plugins']['get']('Users')['me'];for(const _0x30cf9d of _0x1737ca['getSuggestions']()){if(!_0x30cf9d['isInContent']||_0x30cf9d['author']!=_0x18b0c1)continue;if('formatBlock'!=_0x30cf9d['type']||'tablePasteCell'!=_0x30cf9d['subType'])continue;if(_0x30cf9d['getRanges']()['every'](_0x1ba37a=>_0x415d46['some'](_0x48e4ff=>_0x48e4ff['containsRange'](_0x1ba37a,!0x0)))){for(const _0x4cffd8 of _0x30cf9d['getAllAdjacentSuggestions']())_0x4cffd8['isInContent']&&(_0x4cffd8['discard'](),_0x3f6493=!0x0);}}}return _0x3f6493;}),_0x497655['model']['document']['registerPostFixer'](_0x5d53cf=>{const _0x185dd0=_0x497655['commands']['get']('redo');if(!_0x185dd0||!_0x185dd0['_createdBatches']['has'](_0x5d53cf['batch']))return!0x1;let _0x1feaec=!0x1;const _0x5026b8=_0x497655['plugins']['get']('Users')['me'],_0x491cb2=_0x497655['model']['document']['differ']['getChanges'](),_0x1ff6be=Array['from'](_0x497655['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47d666,data:_0x103b5e})=>{const {group:_0x1579a3,subType:_0x199272,authorId:_0x2548ea}=_0x1737ca['_splitMarkerName'](_0x47d666);return'suggestion'==_0x1579a3&&'tablePaste'==_0x199272&&_0x2548ea==_0x5026b8['id']&&!_0x103b5e['oldRange'];});for(const _0x5c9f5f of _0x491cb2){if('insert'!=_0x5c9f5f['type']||'tableCellSuggestion'!=_0x5c9f5f['name']||0x1!=_0x5c9f5f['length'])continue;const _0x1a1831=_0x5d53cf['createRange'](_0x5c9f5f['position'],_0x5c9f5f['position']['getShiftedBy'](0x1)),_0x3e2059=_0x1ff6be['find'](({data:_0x15f433})=>_0x15f433['newRange']['isEqual'](_0x1a1831));if(!_0x3e2059){for(const {name:_0x138c26,data:_0x3ec656}of _0x1ff6be)if(_0x1a1831['containsRange'](_0x3ec656['newRange'])){_0x5d53cf['updateMarker'](_0x138c26,{'range':_0x1a1831}),_0x1feaec=!0x0;break;}}}return _0x1feaec;}),_0x497655['model']['document']['registerPostFixer'](_0x15cbcd=>{let _0x4ab04b=!0x1;const _0x6ef1be=_0x497655['plugins']['get']('Users')['me'],_0x568718=_0x1737ca['getSuggestions']()['filter'](_0x4976c9=>_0x4976c9['isInContent']&&_0x4976c9['author']==_0x6ef1be),_0x65782d=new Set(),_0x32e760=new Set();for(const _0x6b070f of _0x568718)if('tablePaste'==_0x6b070f['subType'])for(const _0x170dce of _0x6b070f['getMarkers']()){const _0x1dc2d1=_0x170dce['getRange']()['getContainedElement']();if(_0x1dc2d1){if(_0x1dc2d1['is']('element','tableCellSuggestion')&&isEmpty(_0x1dc2d1)){_0x6b070f['removeMarker'](_0x170dce['name']),_0x65782d['add'](_0x1dc2d1),_0x4ab04b=!0x0;const _0x59bc65=_0x1dc2d1['nextSibling'],_0x6aa7e6=_0x1dc2d1['previousSibling'],_0x4448bf=_0x59bc65&&_0x59bc65['is']('element','tableCellSuggestion'),_0x564287=_0x6aa7e6&&_0x6aa7e6['is']('element','tableCellSuggestion');_0x4448bf&&!_0x65782d['has'](_0x59bc65)&&_0x32e760['add'](_0x59bc65),_0x564287&&!_0x65782d['has'](_0x6aa7e6)&&_0x32e760['add'](_0x6aa7e6);}else _0x1dc2d1['is']('element','paragraph')&&_0x1dc2d1['isEmpty']&&(_0x6b070f['removeMarker'](_0x170dce['name']),_0x4ab04b=!0x0);}}else{if('tablePasteCell'==_0x6b070f['subType']){if(!_0x6b070f['attributes']||!_0x6b070f['attributes']['tablePasteChainId'])continue;const _0x51b5e3=_0x6b070f['attributes']['markerAttributes'];if(_0x51b5e3&&Object['keys'](_0x51b5e3)['length'])continue;const _0x135f62=_0x6b070f['attributes']['tablePasteChainId'];let _0x47f333=!0x0,_0xe5587=!0x0;for(const _0x7dc7b0 of _0x568718)if(_0x7dc7b0['subType']&&_0x7dc7b0['subType']['startsWith']('tablePaste')){if(!_0x7dc7b0['attributes']['tablePasteChainId']){_0xe5587=!0x1;break;}if(_0x7dc7b0['id']!=_0x6b070f['id']&&_0x7dc7b0['attributes']['tablePasteChainId']==_0x135f62){_0x47f333=!0x1;break;}}_0xe5587&&_0x47f333&&(_0x6b070f['removeMarkers'](),_0x4ab04b=!0x0);}}for(const _0x453210 of _0x65782d)_0x15cbcd['remove'](_0x453210);for(const _0x1195a9 of _0x32e760)_0x15cbcd['unwrap'](_0x1195a9);return _0x4ab04b;}),_0x497655['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x185775=>_0x17bf20(_0x185775),'converterPriority':'high'}),_0x497655['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d10ba,_0x46d0dd)=>_0x46d0dd['options']['showSuggestionHighlights']?_0x17bf20(_0x3d10ba,!0x1):null,'converterPriority':'high'});const _0x497c62=_0x497655['editing']['view'];this['listenTo'](_0x497c62['document'],'clipboardOutput',(_0x4d2439,_0x5e1e27)=>{const _0x8d1eeb=[];for(const _0x2cf31d of _0x497c62['createRangeIn'](_0x5e1e27['content'])['getItems']())_0x2cf31d['is']('element','suggestion-td')&&_0x8d1eeb['push'](_0x2cf31d);_0x497c62['change'](_0x54a65a=>{for(const _0x2ba2d0 of _0x8d1eeb)_0x54a65a['move'](_0x54a65a['createRangeIn'](_0x2ba2d0),_0x54a65a['createPositionBefore'](_0x2ba2d0)),_0x54a65a['remove'](_0x2ba2d0);});});}}function isEmpty(_0x336d7b){if(_0x336d7b['isEmpty'])return!0x0;const _0x7490ec=_0x336d7b['getChild'](0x0);return _0x7490ec['is']('element','paragraph')&&_0x7490ec['isEmpty'];}function isPasteTableIntoTable(_0x4b8d66,_0x40da12,_0x23bd01,_0x383dc9,_0x2157d4){if(_0x40da12&&!_0x40da12['is']('documentSelection'))return!0x1;const _0x280296=_0x2157d4['getTableIfOnlyTableInContent'](_0x4b8d66,_0x23bd01);if(!_0x280296||!isPlainTable(_0x280296,void 0x0,_0x383dc9))return!0x1;const _0x597d22=_0x383dc9['getSelectionAffectedTableCells'](_0x23bd01['document']['selection']);if(!_0x597d22['length'])return!0x1;const _0x419f2a=_0x597d22[0x0]['findAncestor']('table'),_0x16b023=_0x383dc9['getRowIndexes'](_0x597d22),_0x59bd91=_0x383dc9['getColumnIndexes'](_0x597d22),_0x3bc798={'startRow':_0x16b023['first'],'endRow':_0x16b023['last'],'startColumn':_0x59bd91['first'],'endColumn':_0x59bd91['last']};return 0x1==_0x597d22['length']&&(_0x3bc798['endRow']+=_0x383dc9['getRows'](_0x280296)-0x1,_0x3bc798['endColumn']+=_0x383dc9['getColumns'](_0x280296)-0x1),isPlainTable(_0x419f2a,_0x3bc798,_0x383dc9);}function isPlainTable(_0x37e8e4,_0x428722={},_0x419d48){for(const {isAnchor:_0x4ab5d0,cellHeight:_0x2893cf,cellWidth:_0x128bd6}of _0x419d48['createTableWalker'](_0x37e8e4,{'includeAllSlots':!0x0,..._0x428722}))if(!_0x4ab5d0||0x1!=_0x2893cf||0x1!=_0x128bd6)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends Plugin{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x309599=this['editor']['plugins']['get']('TrackChangesEditing');_0x309599['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x309599['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x309599['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x309599['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x309599['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x309599['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xc53879,_0x391218){const _0x56ef4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c22da=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x548db0=_0x391218['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1803e1=_0x5c22da['getColumnGroupElement'](_0x548db0);let _0x41e211=_0x1803e1?_0x5c22da['getTableColumnsWidths'](_0x1803e1):null,_0x442540=_0x548db0['getAttribute']('tableWidth')||null;const _0x95ee3d=_0x391218['tableWidth']||_0x442540,_0x474994=_0x391218['columnWidths']||_0x41e211,_0x238bf7=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a59d of _0x56ef4f['getSuggestions']()){const _0x38af69=_0x2a59d['getContainedElement']();if('resizeTable'===_0x2a59d['subType']&&_0x38af69===_0x548db0){_0x2a59d['author']!==_0x238bf7&&_0x2a59d['discard']();const _0x2c9bb5=_0x2a59d['data']['commandParams'];_0x442540=_0x2c9bb5[0x0]['tableWidth'],_0x41e211=_0x2c9bb5[0x0]['columnWidths'];break;}}_0xc53879({'table':_0x548db0,'tableWidth':_0x95ee3d,'columnWidths':_0x474994}),_0x56ef4f['markBlockFormat'](_0x548db0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x442540,'columnWidths':_0x41e211}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2d69a9){if('formatBlock'!=_0x2d69a9['type']&&'formatInline'!=_0x2d69a9['type'])return;const {data:_0x139fdd}=_0x2d69a9;if(_0x139fdd&&'resizeTable'===_0x139fdd['formatGroupId']){const _0x794256='*Format:*\x20resize\x20table';return{'type':'format','content':getTranslation$1(this['editor']['locale'],_0x794256)};}}}class TrackChangesTemplate extends Plugin{['afterInit'](){const _0x54c3d4=this['editor'];_0x54c3d4['plugins']['has']('Template')&&_0x54c3d4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends Plugin{['afterInit'](){const _0x2a639b=this['editor'];if(!_0x2a639b['commands']['get']('insertTableOfContents'))return;_0x2a639b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4f63cb=_0x2a639b['plugins']['get']('TrackChangesEditing'),_0x4448e2=_0x2a639b['locale'];_0x4f63cb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x19f546=>getTranslation$1(_0x4448e2,'ELEMENT_TABLE_OF_CONTENTS',_0x19f546));}}class TrackChangesTitle extends Plugin{['afterInit'](){const _0x55efa0=this['editor'];if(!_0x55efa0['plugins']['has']('Title'))return;const _0x1bca4e=_0x55efa0['plugins']['get']('TrackChangesEditing');_0x1bca4e['descriptionFactory']['registerElementLabel']('title-content',()=>getTranslation$1(_0x55efa0['locale'],'ELEMENT_TITLE')),_0x55efa0['model']['document']['registerPostFixer'](_0x383ffa=>{let _0x3330df=!0x1;const _0x2ef30d=Array['from'](_0x55efa0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x405fa1,data:_0x4dda14}of _0x2ef30d){const {group:_0x109744}=_0x1bca4e['_splitMarkerName'](_0x405fa1);if('suggestion'!==_0x109744||!_0x4dda14['newRange'])continue;const _0x981a6e=_0x4dda14['newRange'],_0x217438=_0x981a6e['end']['nodeBefore'];if(!_0x217438||!_0x217438['is']('element','title-content'))continue;if(!_0x981a6e['start']['isTouching'](_0x981a6e['end']))continue;const _0x5b606e=_0x55efa0['model']['schema']['getNearestSelectionRange'](_0x981a6e['end'],'forward');if(_0x5b606e&&_0x5b606e['isCollapsed']){const _0x1832e8=_0x383ffa['createRange'](_0x981a6e['start'],_0x5b606e['start']);_0x1832e8['isEqual'](_0x981a6e)||(_0x383ffa['updateMarker'](_0x405fa1,{'range':_0x1832e8}),_0x3330df=!0x0);}_0x3330df||(_0x383ffa['removeMarker'](_0x405fa1),_0x3330df=!0x0);}return _0x3330df;});}}class TrackChangesUploadcare extends Plugin{['afterInit'](){const _0x150069=this['editor'],_0x16ab52=_0x150069['plugins']['get']('TrackChangesEditing');_0x150069['plugins']['has']('Uploadcare')&&(_0x16ab52['enableCommand']('uploadcare'),_0x150069['plugins']['has']('UploadcareImageEdit')&&(_0x16ab52['enableCommand']('uploadcareImageEdit'),_0x16ab52['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x16ab52['descriptionFactory']['registerDescriptionCallback'](_0x5719cb=>{if('attribute'!=_0x5719cb['type'])return;const {data:_0x1516a1}=_0x5719cb;return _0x1516a1&&'uploadcareImageId'==_0x1516a1['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends Plugin{['afterInit'](){const _0xaee69e=this['editor'],_0x450538=_0xaee69e['plugins']['get']('TrackChangesEditing');_0xaee69e['plugins']['has']('UndoEditing')&&(_0x450538['enableCommand']('undo'),_0x450538['enableCommand']('redo'));}}class TrackChangesTableCaption extends Plugin{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x504db1=this['editor'];if(!_0x504db1['plugins']['has']('TableCaptionEditing'))return;_0x504db1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends Plugin{['tableProperties'];['tableCellProperties'];constructor(_0x71b3cc){super(_0x71b3cc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x71b3cc['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x59f042=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2da71b of this['tableProperties'])_0x59f042['enableCommand'](_0x2da71b,(_0x35b5ef,_0x5c2b26)=>{const _0x1c4b3c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2da71b,[_0x1c4b3c],this['tableProperties'],'tableProperties',_0x35b5ef,_0x5c2b26);});_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59f042['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x32d027,_0x2798b7)=>this['handleDiscardAction'](this['tableProperties'],_0x32d027,_0x2798b7)),_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14cf5f of this['tableCellProperties'])this['editor']['commands']['get'](_0x14cf5f)&&_0x59f042['enableCommand'](_0x14cf5f,(_0x200837,_0x10308a)=>{const _0x2a2972=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14cf5f,_0x2a2972,this['tableCellProperties'],'tableCellProperties',_0x200837,_0x10308a);});_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59f042['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb13dd1,_0x36010f)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb13dd1,_0x36010f)),_0x59f042['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x59f042['descriptionFactory']['registerAttributeLabel']('tableCellType',getTranslation$1(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x59f042['descriptionFactory']['registerDescriptionCallback'](_0x5e755c=>this['handleSuggestionDescription'](_0x5e755c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x587ecc,_0x29b09a,_0x4532d3,_0x4c5a78,_0x36334f,_0xa0284b){const _0x461437=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xa0284b['batch'],()=>{for(const _0x453ab4 of _0x29b09a){if(this['_getSuggestion'](_0x453ab4,_0x4c5a78))_0x36334f(_0xa0284b);else{const _0x27d8e0={};for(const _0x3ca0f2 of _0x4532d3){const _0x30586a=_0x453ab4['getAttribute'](_0x3ca0f2);void 0x0!==_0x30586a&&(_0x27d8e0[_0x3ca0f2]=_0x30586a);}_0x36334f(_0xa0284b),_0x461437['markBlockFormat'](_0x453ab4,{'commandParams':[_0x27d8e0]},[],_0x4c5a78);}}});}['handleDiscardAction'](_0xca2c63,_0x55b584,_0x4dff9e){const _0x1f60a1=_0x55b584[0x0]['start']['nodeAfter'],_0xe0d45b=_0x4dff9e['commandParams'][0x0];this['editor']['model']['change'](_0x4d3ab5=>{for(const _0x1d6b23 of _0xca2c63)void 0x0!==_0xe0d45b[_0x1d6b23]?_0x4d3ab5['setAttribute'](_0x1d6b23,_0xe0d45b[_0x1d6b23],_0x1f60a1):_0x4d3ab5['removeAttribute'](_0x1d6b23,_0x1f60a1);});}['handleSuggestionDescription'](_0x262e96){if(_0x262e96['data'])switch(_0x262e96['subType']){case'tableProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':getTranslation$1(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x458faf,_0x3bd5bf){const _0x1035c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xb1c785 of _0x1035c7['getSuggestions']({'skipNotAttached':!0x0})){const _0x40cbe4=_0xb1c785['getContainedElement']();if(_0xb1c785['subType']===_0x3bd5bf&&_0x40cbe4===_0x458faf)return _0xb1c785;}return null;}['_registerTablePropertiesAttributes'](){const _0x5c6507=this['editor']['plugins']['get']('TrackChangesEditing'),_0x206ace=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1bad26 of _0x206ace){const _0x4e7272=_0x1bad26['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5c6507['descriptionFactory']['registerAttributeLabel'](_0x1bad26,getTranslation$1(this['editor']['locale'],'FORMAT_'+_0x4e7272));}}}class TrackChangesLineHeight extends Plugin{['afterInit'](){const _0x127cf2=this['editor'];if(!_0x127cf2['plugins']['has']('LineHeight'))return;const _0x21b2da=_0x127cf2['plugins']['get']('TrackChangesEditing'),_0xc19746=_0x127cf2['locale'];_0x21b2da['enableDefaultAttributesIntegration']('lineHeight'),_0x21b2da['descriptionFactory']['registerAttributeLabel']('lineHeight',getTranslation$1(_0xc19746,'FORMAT_LINE_HEIGHT'));}}const renameAttributeKey='$elementName';class TrackChangesEditing extends Plugin{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',SuggestionsConversion,Users,PendingActions,DocumentCompare,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7e6de4){super(_0x7e6de4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3cc5ae,_0xe63976,_0x5db249,_0x280e07)=>{this['_model']['change'](()=>{for(const _0x1db7fa of[..._0x280e07,..._0x5db249])this['_model']['markers']['has'](_0x1db7fa)&&_0x7e6de4['editing']['reconvertMarker'](_0x1db7fa);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x7e6de4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7e6de4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7e6de4['config']['get']('trackChanges.trackFormatChanges'),_0x7e6de4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7e6de4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x7e6de4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4eabf1=this['editor'];_0x4eabf1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa3bb8d,{writer:_0x6da115})=>{let _0x38d928='suggestion:'+_0xa3bb8d['getAttribute']('suggestion-type')+':'+_0xa3bb8d['getAttribute']('id');return _0xa3bb8d['getAttribute']('marker-count')&&(_0x38d928+=':'+_0xa3bb8d['getAttribute']('marker-count')),_0x6da115['createElement']('$marker',{'data-name':_0x38d928});}}),_0x4eabf1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4eabf1['model']['document']['registerPostFixer'](_0x50aac2=>{let _0x491231=!0x1;const _0xd9479f=Array['from'](_0x4eabf1['model']['document']['differ']['getChangedMarkers']()),_0x4ad64d=new Set();for(const {name:_0x205ab6,data:_0x1c9fa2}of _0xd9479f){const {group:_0x200ad,type:_0x4df581,subType:_0x54d433,id:_0x3531b4}=this['_splitMarkerName'](_0x205ab6);if('suggestion'!==_0x200ad)continue;const _0x553996=_0x54d433?'suggestion:'+_0x4df581+':'+_0x54d433+':'+_0x3531b4:'suggestion:'+_0x4df581+':'+_0x3531b4,_0x4267b0=_0x4eabf1['model']['markers']['getMarkersGroup'](_0x553996),_0x2f637b=_0x4eabf1['model']['markers']['get'](_0x205ab6),_0x43e989=this['_suggestions']['get'](_0x3531b4);if(null!=_0x1c9fa2['newRange']){'formatInline'==_0x4df581&&(_0x491231=_0x491231||trimFormatInlineSuggestionRange(_0x1c9fa2['newRange'],_0x205ab6,_0x50aac2,_0x4eabf1['model']['schema']));const _0x13b49e='attribute'==_0x4df581&&this['_isBlockAttribute'](_0x54d433['split']('|')[0x0]),_0x328f40='attribute'==_0x4df581&&this['_isInlineAttribute'](_0x54d433['split']('|')[0x0]);if(_0x1c9fa2['newRange']['isCollapsed']||'$graveyard'==_0x1c9fa2['newRange']['root']['rootName']||'formatBlock'==_0x4df581&&!isCorrectFormatBlockSuggestionRange(_0x1c9fa2['newRange'])||_0x13b49e&&!isCorrectFormatBlockSuggestionRange(_0x1c9fa2['newRange'])||_0x328f40&&isEmptyRange(_0x1c9fa2['newRange'])||'deletion'==_0x4df581&&isEmptyRange(_0x1c9fa2['newRange'])||_0x2f637b&&isIntersectingWithOtherMarkers(_0x2f637b,_0x4267b0))_0x50aac2['removeMarker'](_0x205ab6),_0x491231=!0x0;else{if(!_0x43e989||!_0x43e989['isInContent'])continue;if(_0x1c9fa2['newRange']&&_0x1c9fa2['oldRange']&&_0x1c9fa2['newRange']['isEqual'](_0x1c9fa2['oldRange']))continue;_0x4ad64d['add'](_0x43e989);}}}return _0x4ad64d['size']>0x0&&(_0x491231=!!this['_joinWithAdjacentSuggestions'](_0x4ad64d)||_0x491231),_0x491231;}),_0x4eabf1['model']['document']['registerPostFixer'](_0x59d5cc=>{let _0xc83525=!0x1;for(const _0x666cbc of _0x4eabf1['model']['document']['differ']['getChanges']())if('insert'==_0x666cbc['type'])for(const _0x4db38e of this['_suggestions']['values']()){if(_0x4db38e['isMultiRange']||!_0x4db38e['isInContent'])continue;const _0x11b99c='formatBlock'==_0x4db38e['type'],_0x24ca31=this['_getAttributeKey'](_0x4db38e),_0x564e32=_0x24ca31&&this['_isBlockAttribute'](_0x24ca31);if(!_0x11b99c&&!_0x564e32)continue;const _0x4f2bc7=_0x4db38e['getFirstRange']();if(_0x4f2bc7['start']['parent']!=_0x4f2bc7['end']['parent']&&!_0x4f2bc7['end']['isAtEnd']){const _0x15f490=_0x4eabf1['model']['createPositionAt'](_0x4f2bc7['start']['nodeAfter'],'end'),_0x1dfdca=_0x4eabf1['model']['createRange'](_0x4f2bc7['start'],_0x15f490);_0x59d5cc['updateMarker'](_0x4db38e['getFirstMarker'](),{'range':_0x1dfdca}),_0xc83525=!0x0;}}return _0xc83525;}),_0x4eabf1['model']['document']['registerPostFixer'](_0x599094=>this['_processAttributeChanges'](_0x599094)),_0x4eabf1['model']['document']['registerPostFixer'](_0x2ed88b=>!_0x2ed88b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2ed88b)),_0x4eabf1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4eabf1['model']['document']['on']('change:data',(_0x56ed5b,_0x585a4c)=>{if(!_0x585a4c['isLocal']||_0x585a4c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x149b5e=_0x4eabf1['model']['document']['differ']['getChanges']();if(0x0==_0x149b5e['length'])return;const _0x27aa92=[],_0x3dc476=_0x149b5e['filter'](_0x2971ff=>'attribute'==_0x2971ff['type']),_0x55b93f=_0x149b5e['filter'](_0x2ece01=>'insert'==_0x2ece01['type']&&'$text'!=_0x2ece01['name']);for(const _0x15235c of _0x3dc476)this['_isRegisteredAttribute'](_0x15235c['attributeKey'])&&_0x27aa92['push']({'key':_0x15235c['attributeKey'],'newValue':_0x15235c['attributeNewValue'],'oldValue':_0x15235c['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x15235c['range'],_0x4eabf1['model'])});for(const _0x47a104 of _0x55b93f){if('rename'!=_0x47a104['action']&&'refresh'!=_0x47a104['action'])continue;const _0x2b1607=createBlockFormatRangeForElement(_0x47a104['position']['nodeAfter'],_0x4eabf1['model']),_0x3e9569=_0x47a104['before'];'rename'==_0x47a104['action']&&_0x27aa92['push']({'key':renameAttributeKey,'newValue':_0x47a104['name'],'oldValue':_0x3e9569['name'],'range':_0x2b1607});for(const [_0x4a0b54,_0x5d6477]of _0x3e9569['attributes']){if(!this['_isRegisteredAttribute'](_0x4a0b54))continue;const _0xdb3b9b=_0x47a104['attributes']['get'](_0x4a0b54);_0x5d6477!==_0xdb3b9b&&_0x27aa92['push']({'key':_0x4a0b54,'newValue':_0xdb3b9b,'oldValue':_0x5d6477,'range':_0x2b1607});}for(const [_0x38c2eb,_0x71cb3a]of _0x47a104['attributes'])this['_isRegisteredAttribute'](_0x38c2eb)&&(_0x3e9569['attributes']['has'](_0x38c2eb)||_0x27aa92['push']({'key':_0x38c2eb,'newValue':_0x71cb3a,'oldValue':null,'range':_0x2b1607}));}0x0!=_0x27aa92['length']&&_0x4eabf1['model']['enqueueChange'](_0x585a4c,_0x1d652a=>{const _0x573813=uid();for(const {range:_0x50efe4,key:_0x3aeecd,oldValue:_0x51e6c3,newValue:_0x295d78}of _0x27aa92)this['markAttributeChange'](_0x50efe4,_0x3aeecd,_0x51e6c3,_0x295d78,{'groupId':_0x573813});this['_reduceExistingSuggestions'](_0x1d652a,_0x27aa92);});},{'priority':'lowest'}),_0x4eabf1['model']['markers']['on']('update:suggestion',(_0x260cdb,_0x5f188e,_0x5625d3)=>{if(null==_0x5625d3){const {id:_0x829293}=this['_splitMarkerName'](_0x5f188e['name']),_0x339ee2=this['_suggestions']['get'](_0x829293);_0x339ee2&&_0x339ee2['addMarkerName'](_0x5f188e['name']);}}),_0x4eabf1['model']['document']['on']('change:data',()=>{const _0x1dad91=Array['from'](_0x4eabf1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c89fb=>'suggestion'===this['_splitMarkerName'](_0x1c89fb['name'])['group']);if(0x0===_0x1dad91['length'])return;_0x1dad91['sort']((_0x23a2bd,_0x174f16)=>{const _0x1bd9ab=_0x23a2bd['data']['oldRange'],_0x392592=_0x174f16['data']['oldRange'];return null===_0x1bd9ab&&null===_0x392592?0x0:null===_0x1bd9ab&&null!==_0x392592?-0x1:null!==_0x1bd9ab&&null===_0x392592?0x1:_0x1bd9ab['start']['isBefore'](_0x392592['start'])?-0x1:0x1;});const _0x1def51=new Set(),_0x3be9e2=new Set();for(const {name:_0x47a9d4,data:_0x27ed4c}of _0x1dad91){const {id:_0x41d830}=this['_splitMarkerName'](_0x47a9d4);if(null===_0x27ed4c['oldRange']){const _0xcab0ea=this['_handleNewSuggestionMarker'](_0x47a9d4);_0x3be9e2['add'](_0xcab0ea);}else{const _0x3514b3=this['_suggestions']['get'](_0x41d830);null!==_0x27ed4c['newRange']||_0x3514b3['isInContent']?(_0x1def51['add'](_0x3514b3['head']),_0x3be9e2['add'](_0x3514b3)):this['_removeSuggestion'](_0x3514b3);}}_0x3be9e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x3be9e2);for(const _0x135d39 of _0x1def51)this['fire']('suggestionChanged',_0x135d39);}),_0x4eabf1['model']['on']('applyOperation',(_0x584911,_0x44f4c0)=>{const _0x3d9293=_0x44f4c0[0x0];if(!this['_suggestions']['size'])return;if(!_0x3d9293['isDocumentOperation'])return;if(_0x3d9293['batch']['isUndo']||!_0x3d9293['batch']['isLocal'])return;let _0x13cca1,_0x25f8ce;switch(_0x3d9293['type']){case'insert':_0x13cca1=_0x4eabf1['model']['createPositionAt'](_0x3d9293['position']),_0x25f8ce=_0x13cca1['getShiftedBy'](_0x3d9293['howMany']);break;case'split':_0x13cca1=_0x4eabf1['model']['createPositionAt'](_0x3d9293['splitPosition']),_0x25f8ce=_0x4eabf1['model']['createPositionAt'](_0x3d9293['moveTargetPosition']);break;case'move':_0x13cca1=_0x4eabf1['model']['createPositionAt'](_0x3d9293['targetPosition']),_0x25f8ce=_0x13cca1['getShiftedBy'](_0x3d9293['howMany']);break;default:return;}const _0x4b24ab=_0x4eabf1['model']['createRange'](_0x13cca1,_0x25f8ce);_0x4eabf1['model']['change'](()=>{for(const {suggestion:_0x1db5ad,meta:_0x1962fd}of this['_findSuggestions'](_0x4b24ab)){if(_0x1db5ad['isMultiRange'])continue;if('formatInline'==_0x1db5ad['type'])continue;const _0xd68fd4=this['_getAttributeKey'](_0x1db5ad);if(_0xd68fd4&&this['_isBlockAttribute'](_0xd68fd4)&&'split'!=_0x3d9293['type'])continue;const _0x2b6f0b=_0x1db5ad['data']&&_0x1db5ad['data']['multipleBlocks'];('formatBlock'!=_0x1db5ad['type']||'split'==_0x3d9293['type']&&!_0x2b6f0b)&&(_0x1962fd['containsRangeInObject']||'insertion'==_0x1db5ad['type']&&_0x1962fd['isOwn']||_0x1db5ad['getFirstRange']()['containsRange'](_0x4b24ab)&&this['_breakSuggestionMarker'](_0x1db5ad,_0x13cca1,_0x25f8ce));}});},{'priority':'lowest'}),_0x4eabf1['model']['on']('deleteContent',(_0xa1a81e,_0x3c3072)=>{const _0x2e6160=_0x3c3072[0x0],_0x2ea361=_0x3c3072[0x1];if(_0x2ea361&&_0x2ea361['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2e6160['isCollapsed'])return;const _0x39cec5=_0x4eabf1['model']['schema'],{start:_0x1d20d5,end:_0x3273dc}=_0x2e6160['getFirstRange'](),_0x3110e1=_0x1d20d5['nodeAfter']&&_0x39cec5['isLimit'](_0x1d20d5['nodeAfter'])?null:_0x39cec5['getNearestSelectionRange'](_0x1d20d5,'forward'),_0x544f28=_0x3273dc['nodeBefore']&&_0x39cec5['isLimit'](_0x3273dc['nodeBefore'])?null:_0x39cec5['getNearestSelectionRange'](_0x3273dc,'backward'),_0x56abf4=_0x4eabf1['model']['createRange'](_0x3110e1?_0x3110e1['start']:_0x1d20d5,_0x544f28?_0x544f28['end']:_0x3273dc);_0x4eabf1['model']['change'](_0x2fa9cd=>{this['markDeletion'](_0x56abf4);const _0x5a3299=_0x4eabf1['model']['schema']['getNearestSelectionRange'](_0x56abf4['start']);_0x2e6160['is']('documentSelection')?_0x2fa9cd['setSelection'](_0x5a3299):_0x2e6160['setTo'](_0x5a3299);}),_0xa1a81e['stop']();},{'priority':priorities['normal']+0xa}),_0x4eabf1['model']['on']('insertContent',(_0x3a4ae1,_0x24da5f)=>{const _0x3ef570=_0x24da5f[_0x24da5f['length']-0x1];_0x3ef570&&_0x3ef570['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4eabf1['model']['change'](()=>{let _0x2aa5c7=_0x4eabf1['model']['insertContent'](_0x24da5f[0x0],_0x24da5f[0x1],_0x24da5f[0x2],{'forceDefaultExecution':!0x0});if(!_0x2aa5c7)return;_0x3a4ae1['return']=_0x2aa5c7['clone']();const _0x54e5a7=_0x2aa5c7['end']['nodeBefore'],_0x47f1bc=_0x4eabf1['model']['schema'];_0x54e5a7&&_0x47f1bc['isBlock'](_0x54e5a7)&&!_0x47f1bc['isObject'](_0x54e5a7)&&(_0x2aa5c7=_0x4eabf1['model']['createRange'](_0x2aa5c7['start'],_0x4eabf1['model']['createPositionAt'](_0x54e5a7,'end'))),this['markInsertion'](_0x2aa5c7);}),_0x3a4ae1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4d6796=new AcceptSuggestionCommand(_0x4eabf1,this['_suggestions']);_0x4eabf1['commands']['add']('acceptSuggestion',_0x4d6796),this['enableCommand']('acceptSuggestion');const _0x44a9ac=new DiscardSuggestionCommand(_0x4eabf1,this['_suggestions']);_0x4eabf1['commands']['add']('discardSuggestion',_0x44a9ac),this['enableCommand']('discardSuggestion'),_0x4eabf1['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x4eabf1,_0x4d6796,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4eabf1['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x4eabf1,_0x44a9ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4eabf1['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x4eabf1,_0x4d6796,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4eabf1['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x4eabf1,_0x44a9ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5cc5de=_0x4eabf1['plugins']['get']('CommentsRepository');this['listenTo'](_0x5cc5de,'addComment',(_0xaf1522,{threadId:_0x321672})=>{const _0xfcbe30=this['_suggestions']['get'](_0x321672);_0xfcbe30&&_0xfcbe30['commentThread']&&0x1===_0xfcbe30['commentThread']['length']&&this['_updateSuggestionData'](_0x321672,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5cc5de,'removeComment',(_0xb4da82,{threadId:_0x5139c9})=>{const _0x139c9c=this['_suggestions']['get'](_0x5139c9);_0x139c9c&&_0x139c9c['commentThread']&&!_0x139c9c['commentThread']['length']&&this['_updateSuggestionData'](_0x5139c9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){checkLicense$1(this);}set['adapter'](_0x5af788){if(this['_adapter'])throw new CKEditorError('track-changes-adapter-already-set',this);this['_adapter']=_0x5af788;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x59639f=!0x1,toJSON:_0x5efa64=!0x1}={}){const _0x4b2350=[];for(const _0xaa77e8 of this['_suggestions']['values']())_0x59639f&&!_0xaa77e8['isInContent']||_0x4b2350['push'](_0xaa77e8);return _0x5efa64?_0x4b2350['map'](_0x2ad637=>_0x2ad637['toJSON']()):_0x4b2350;}['getSuggestion'](_0x2d403e){const _0x3d5a93=this['_suggestions']['get'](_0x2d403e);if(!_0x3d5a93)throw new CKEditorError('track-changes-suggestion-not-found',this);return _0x3d5a93;}['hasSuggestion'](_0x9eebed){return this['_suggestions']['has'](_0x9eebed);}['addSuggestionData'](_0x3c627f){const {authorId:_0x471beb,id:_0x378c3c,originalSuggestionId:_0x3db930,attributes:_0x20acea}=_0x3c627f,[_0x332ab6,_0x5bc18f]=_0x3c627f['type']['split'](':'),_0x26eebb=this['_suggestions']['get'](_0x378c3c)||this['_createSuggestion'](_0x332ab6,_0x5bc18f,_0x378c3c,_0x471beb,_0x20acea,_0x3db930);if(this['_addThreadToSuggestion'](_0x26eebb),this['_checkSuggestionCorrectness'](_0x26eebb,_0x332ab6,_0x5bc18f||null,_0x471beb),_0x26eebb['createdAt']=_0x3c627f['createdAt'],_0x26eebb['_isDataLoaded']=!0x0,_0x20acea&&_0x20acea['@external']){const _0x22775e=_0x20acea['@external'],_0x10486d=this['_getExternalAuthor'](_0x22775e['authorName']);_0x26eebb['authoredAt']=_0x22775e['createdAt'],_0x26eebb['author']=_0x10486d,_0x26eebb['isExternal']=!0x0;}else _0x26eebb['authoredAt']=_0x3c627f['createdAt'];switch(_0x3c627f['data']&&(_0x26eebb['data']=_0x3c627f['data']),_0x3c627f['attributes']&&(_0x26eebb['attributes']=_0x3c627f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x26eebb['_saved']=!0x0),this['_suggestionState']['get'](_0x26eebb)){case'notReady':this['_suggestionState']['set'](_0x26eebb,'dataReady');break;case'markerReady':_0x26eebb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x26eebb])),this['_refreshSuggestionsChain'](new Set([_0x26eebb])),this['_suggestionState']['set'](_0x26eebb,'ready'),this['fire']('suggestionLoaded',_0x26eebb)):this['_suggestionState']['set'](_0x26eebb,'removed');}return _0x26eebb;}['acceptSuggestion'](_0x5ec690){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x424776 of _0x5ec690['getAllAdjacentSuggestions']())_0x424776['accept']();});});}['discardSuggestion'](_0x28f1b9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d4b6f of _0x28f1b9['getAllAdjacentSuggestions']())_0x4d4b6f['discard']();});});}['enableCommand'](_0x436150,_0x17784c){const _0x130ea4=this['editor']['commands']['get'](_0x436150);if(!_0x130ea4)throw new CKEditorError('track-changes-command-not-found',this,{'commandName':_0x436150});if(this['_enabledCommands']['has'](_0x130ea4))throw new CKEditorError('track-changes-enable-command-twice',this,{'commandName':_0x436150});this['_enabledCommands']['add'](_0x130ea4),_0x17784c&&_0x130ea4['on']('execute',(_0x5f24cb,_0x50eebc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x50eebc['length']>0x0&&_0x50eebc[_0x50eebc['length']-0x1]&&_0x50eebc[_0x50eebc['length']-0x1]['forceDefaultExecution']?_0x50eebc['pop']():(_0x5f24cb['return']=_0x17784c((..._0x241996)=>_0x130ea4['execute'](..._0x241996,{'forceDefaultExecution':!0x0}),..._0x50eebc),_0x5f24cb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x39f339){let _0x30367c,_0x2eb3c6;const _0x1e0f20=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30367c=_0x39f339();}catch(_0x5278a5){_0x2eb3c6=_0x5278a5;}return _0x1e0f20||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2eb3c6&&CKEditorError['rethrowUnexpectedError'](_0x2eb3c6,this),_0x30367c;}['markInsertion'](_0x11025f,_0x5a8338=null,_0x1f923f={}){if(_0x11025f['isCollapsed'])return null;const _0x3681a1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1f923f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a22ab,meta:_0xe9aff8}of this['_findSuggestions'](_0x11025f,'insertion'))if(_0xe9aff8['isOwn']){if(!_0xe9aff8['isNextTo']){if(_0xe9aff8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!_areSimilarAttributes(_0x5a22ab,_0x1f923f))continue;return _0x5a22ab;}if(_areSimilarAttributes(_0x5a22ab,_0x1f923f))return _0x5a22ab;this['_breakSuggestionMarker'](_0x5a22ab,_0x11025f['start'],_0x11025f['end']);break;}if(_0x5a8338==_0x5a22ab['subType']&&_areSimilarAttributes(_0x5a22ab,_0x1f923f)){const _0x114de1=_0x5a22ab['getFirstRange']();return _0x114de1['start']['isEqual'](_0x11025f['end'])?this['_setSuggestionRange'](_0x5a22ab,this['_model']['createRange'](_0x11025f['start'],_0x114de1['end'])):this['_setSuggestionRange'](_0x5a22ab,this['_model']['createRange'](_0x114de1['start'],_0x11025f['end'])),_0x5a22ab;}}const _0x2f1eb1=uid(),_0x1ba8af=_0x3681a1['id'],_0x463bcd=_0x5a8338?'insertion:'+_0x5a8338:'insertion',_0x2d89eb=this['_setSuggestionData']({'id':_0x2f1eb1,'type':_0x463bcd,'createdAt':new Date(),'authorId':_0x1ba8af,'attributes':_0x1f923f});return this['_addSuggestionMarker'](_0x463bcd,_0x2f1eb1,_0x1ba8af,_0x11025f),_0x2d89eb;}['markMultiRangeInsertion'](_0x3fd4a1,_0x4ca31c='multi',_0x308707={}){const _0x209498=this['editor']['plugins']['get']('Users')['me'],_0x4a5ef2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4ca31c,'join');this['_trackingSessionId']&&(_0x308707['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dfd1d of this['getSuggestions']())if(_0x3dfd1d['author']['id']==_0x209498['id']&&'insertion'==_0x3dfd1d['type']&&_0x3dfd1d['subType']==_0x4ca31c&&_areSimilarAttributes(_0x3dfd1d,_0x308707)&&(_0x4a5ef2(_0x3dfd1d['getRanges'](),_0x3fd4a1)||_0x4a5ef2(_0x3fd4a1,_0x3dfd1d['getRanges']()))){for(const _0x58dcaf of _0x3fd4a1)_0x3dfd1d['addRange'](_0x58dcaf);return _0x3dfd1d;}for(const {suggestion:_0x519cb9,meta:_0x354951}of this['_findSuggestions'](_0x3fd4a1,'insertion')){if(!_0x354951['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x354951['containsRangeInObject'])continue;if(!_areSimilarAttributes(_0x519cb9,_0x308707))continue;let _0x2306c7=!0x0;for(const _0x4d852d of _0x519cb9['getRanges']())for(const _0x4efb3c of _0x3fd4a1)if(!_0x4d852d['containsRange'](_0x4efb3c)){_0x2306c7=!0x1;break;}if(_0x2306c7)return _0x519cb9;}const _0x30b139=uid(),_0x4d5be4=_0x209498['id'],_0x260eb8='insertion:'+_0x4ca31c,_0x14679b=this['_setSuggestionData']({'id':_0x30b139,'type':_0x260eb8,'createdAt':new Date(),'authorId':_0x4d5be4,'attributes':_0x308707});for(const _0x1292f2 of _0x3fd4a1)this['_addSuggestionMarker'](_0x260eb8,_0x30b139,_0x4d5be4,_0x1292f2,Suggestion['getMultiRangeId']());return _0x14679b;}['markInlineFormat'](_0x3805af,_0xe8eb14,_0x4d0109=null,_0x1b7ac1={}){if(_0x4d0109=_0x4d0109||createFormatSubType(_0xe8eb14),_0x3805af['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1b7ac1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x498a73=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d0109,'accept');return this['forceDefaultExecution'](()=>_0x498a73([_0x3805af],_0xe8eb14,_0x1b7ac1)),null;}const _0x3e4b5c=this['editor']['plugins']['get']('Users')['me'],_0x2c951d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5aafdb,meta:_0x392ec3}of this['_findSuggestions'](_0x3805af,'insertion'))_0x392ec3['isOwn']&&!_0x392ec3['isInsideObject']&&_0x2c951d['push'](..._0x5aafdb['getRanges']());}const _0x1f8197=getIntersectionsWithMultipleRanges(_0x3805af,_0x2c951d),_0x68cb06=getDifferencesWithMultipleRanges(_0x3805af,_0x2c951d);_0x1f8197['length']&&this['_model']['change'](()=>{for(const _0x17d17f of _0x1f8197){const _0x123c90=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d0109,'accept');this['forceDefaultExecution'](()=>_0x123c90([_0x17d17f],_0xe8eb14,_0x1b7ac1));}});for(const _0xa5bf66 of _0x68cb06){let _0x39efd2=null,_0x411f5a=_0xa5bf66['start'],_0x3d0116=_0xa5bf66['end'];for(const {suggestion:_0x45f1fd,meta:_0x1aa4c6}of this['_findSuggestions'](_0xa5bf66,'formatInline')){if(!_0x1aa4c6['isOwn'])continue;if(_0x45f1fd['subType']!=_0x4d0109)continue;if(!_areSimilarAttributes(_0x45f1fd,_0x1b7ac1))continue;const _0x9fa068=_0x45f1fd['getFirstRange']();if(_0x9fa068['containsRange'](_0xa5bf66,!0x0))return null;_0x411f5a=_0x411f5a['isBefore'](_0x9fa068['start'])?_0x411f5a:_0x9fa068['start'],_0x3d0116=_0x3d0116['isAfter'](_0x9fa068['end'])?_0x3d0116:_0x9fa068['end'],_0x39efd2?_0x9fa068['start']['isBefore'](_0x39efd2['getFirstRange']()['start'])?(_0x39efd2['removeMarkers'](),_0x39efd2=_0x45f1fd):_0x45f1fd['removeMarkers']():_0x39efd2=_0x45f1fd;}const _0x116d9d=this['_model']['createRange'](_0x411f5a,_0x3d0116);if(_0x39efd2)this['_setSuggestionRange'](_0x39efd2,_0x116d9d);else{const _0x44afaf=uid(),_0x11d19b=_0x3e4b5c['id'];this['_setSuggestionData']({'id':_0x44afaf,'type':'formatInline:'+_0x4d0109,'data':_0xe8eb14,'createdAt':new Date(),'authorId':_0x11d19b,'attributes':_0x1b7ac1}),this['_addSuggestionMarker']('formatInline:'+_0x4d0109,_0x44afaf,_0x11d19b,_0x116d9d);}}return null;}['markBlockFormat'](_0x11b463,_0xe35380,_0x2345e4=[],_0x34c841=null,_0x250856={}){_0xe35380['formatGroupId']||(_0xe35380['formatGroupId']=_0xe35380['commandName']),_0xe35380['multipleBlocks']=_0x11b463['is']('range'),_0x34c841=_0x34c841||createFormatSubType(_0xe35380);const _0x635bc0=_0x2345e4['map'](_0x223d06=>createBlockFormatRangeForElement(_0x223d06,this['_model'])),_0x314b46=_0x11b463['is']('range')?_0x11b463:createBlockFormatRangeForElement(_0x11b463,this['_model']);if(this['_trackingSessionId']&&(_0x250856['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x511c65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34c841,'accept');return this['forceDefaultExecution'](()=>_0x511c65([_0x314b46],_0xe35380,_0x250856)),null;}_0x635bc0['push'](_0x314b46);let _0x1a6fbb=!0x0;for(const _0x3ab827 of _0x635bc0)if(!this['_rangeIsInLocalUserInsertion'](_0x3ab827)){_0x1a6fbb=!0x1;break;}if(_0x1a6fbb&&'always'!==this['_trackFormatChanges']){const _0x5a4e3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x34c841,'accept');return this['forceDefaultExecution'](()=>_0x5a4e3b([_0x314b46],_0xe35380,_0x250856)),null;}let _0x566594=null,_0x3b850a=_0x314b46['start'],_0x1a3384=_0x314b46['end'];for(const {suggestion:_0x551dba,meta:_0x3eb021}of this['_findSuggestions'](_0x314b46,'formatBlock')){if(!_0x3eb021['isOwn'])continue;if(_0x3eb021['isNextTo']||_0x3eb021['containsRangeInObject']||_0x3eb021['isInsideObject'])continue;if(_0x551dba['data']['formatGroupId']!=_0xe35380['formatGroupId'])continue;if(!_areSimilarAttributes(_0x551dba,_0x250856))continue;const _0x13db12=_0x551dba['getFirstRange']();if(_0x551dba['subType']==_0x34c841){if(_0x13db12['containsRange'](_0x314b46,!0x0))return null;_0x3b850a=_0x3b850a['isBefore'](_0x13db12['start'])?_0x3b850a:_0x13db12['start'],_0x1a3384=_0x1a3384['isAfter'](_0x13db12['end'])?_0x1a3384:_0x13db12['end'],_0x566594?_0x13db12['start']['isBefore'](_0x566594['getFirstRange']()['start'])?(_0x566594['removeMarkers'](),_0x566594=_0x551dba):_0x551dba['removeMarkers']():_0x566594=_0x551dba;}else{const _0x5c44be=_0x314b46['getIntersection'](_0x13db12);this['_cutOutSuggestionMarker'](_0x551dba,_0x5c44be);}}const _0xba02af=this['editor']['plugins']['get']('Users')['me'],_0x3c5b7d=uid(),_0x1c9616=_0xba02af['id'];if(_0x566594)return this['_setSuggestionRange'](_0x566594,this['_model']['createRange'](_0x3b850a,_0x1a3384)),_0x566594;{const _0x1a0898=this['_setSuggestionData']({'id':_0x3c5b7d,'type':'formatBlock:'+_0x34c841,'data':_0xe35380,'createdAt':new Date(),'authorId':_0x1c9616,'attributes':_0x250856});return this['_addSuggestionMarker']('formatBlock:'+_0x34c841,_0x3c5b7d,_0x1c9616,this['_model']['createRange'](_0x3b850a,_0x1a3384)),_0x1a0898;}}['markMultiRangeBlockFormat'](_0x46ad6c,_0x5199d1,_0x4fc576=[],_0x503a9f=null,_0x2a2ce0={}){_0x5199d1['formatGroupId']||(_0x5199d1['formatGroupId']=_0x5199d1['commandName']);const _0x5d15b6=_0x46ad6c[0x0];_0x5199d1['multipleBlocks']=_0x5d15b6['is']('range'),_0x503a9f=_0x503a9f||createFormatSubType(_0x5199d1);const _0x4b6000=_0x4fc576['map'](_0x1a99d4=>createBlockFormatRangeForElement(_0x1a99d4,this['_model'])),_0x245c43=_0x5d15b6['is']('range')?_0x46ad6c:_0x46ad6c['map'](_0xce349e=>createBlockFormatRangeForElement(_0xce349e,this['_model']));if(this['_trackingSessionId']&&(_0x2a2ce0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x543ed9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x503a9f,'accept');return this['forceDefaultExecution'](()=>_0x543ed9(_0x245c43,_0x5199d1,_0x2a2ce0)),null;}_0x4b6000['push'](..._0x245c43);let _0x45a3fb=!0x0;for(const _0x2a2849 of _0x4b6000)if(!this['_rangeIsInLocalUserInsertion'](_0x2a2849)){_0x45a3fb=!0x1;break;}if(_0x45a3fb&&'always'!==this['_trackFormatChanges']){const _0x1aa709=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x503a9f,'accept');return this['forceDefaultExecution'](()=>_0x1aa709(_0x245c43,_0x5199d1,_0x2a2ce0)),null;}const _0x13bb3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x337046 of this['getSuggestions']()){const _0x2d8d92=_0x337046['data'];if(_0x337046['author']['id']!=_0x13bb3a['id'])continue;if('formatBlock'!=_0x337046['type']||_0x2d8d92['formatGroupId']!=_0x5199d1['formatGroupId'])continue;if(!_areSimilarAttributes(_0x337046,_0x2a2ce0))continue;const _0x1f0c00=_0x337046['subType']==_0x503a9f;for(let _0x591c4f=0x0;_0x591c4f<_0x245c43['length'];_0x591c4f++){const _0xfe9d3e=_0x245c43[_0x591c4f];for(const _0x2e0a42 of _0x337046['getMarkers']()){const _0x1332b1=_0x2e0a42['getRange']();if(_0xfe9d3e['isEqual'](_0x1332b1)){_0x1f0c00?(_0x245c43['splice'](_0x591c4f,0x1),_0x591c4f--):_0x337046['removeMarker'](_0x2e0a42['name']);break;}}}}if(0x0==_0x245c43['length'])return null;const _0x2eea53=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x503a9f,'join');for(const _0x2ab0d9 of this['getSuggestions']()){const _0x95aad9=_0x2ab0d9['data'];if(_0x2ab0d9['author']['id']==_0x13bb3a['id']&&('formatBlock'==_0x2ab0d9['type']&&_0x95aad9['formatGroupId']==_0x5199d1['formatGroupId']&&_0x2ab0d9['subType']==_0x503a9f&&_areSimilarAttributes(_0x2ab0d9,_0x2a2ce0)&&(_0x2eea53(_0x2ab0d9['getRanges'](),_0x245c43)||_0x2eea53(_0x245c43,_0x2ab0d9['getRanges']())))){for(const _0x48b1fe of _0x245c43)_0x2ab0d9['addRange'](_0x48b1fe);return _0x2ab0d9;}}const _0x1bf222=uid(),_0x10a1ae=_0x13bb3a['id'],_0x102a43='formatBlock:'+_0x503a9f,_0x11fb54=this['_setSuggestionData']({'id':_0x1bf222,'type':_0x102a43,'data':_0x5199d1,'createdAt':new Date(),'authorId':_0x10a1ae,'attributes':_0x2a2ce0});for(const _0x4b24fb of _0x245c43)this['_addSuggestionMarker'](_0x102a43,_0x1bf222,_0x10a1ae,_0x4b24fb,Suggestion['getMultiRangeId']());return _0x11fb54;}['markDeletion'](_0x1076b6,_0x3c5d15=null,_0x1ea1ce={}){if(_0x1076b6['isCollapsed'])return null;const _0x303838=this['editor']['plugins']['get']('Users')['me'],_0x399179=new ModelLiveRange(_0x1076b6['start'],_0x1076b6['end']);this['_trackingSessionId']&&(_0x1ea1ce['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x334a0b,meta:_0xd6999e}of this['_findSuggestions'](_0x399179,'insertion'))if(_0xd6999e['isOwn']&&!_0xd6999e['isNextTo']){if(_0x334a0b['isMultiRange']){const _0x4559e8=_0x334a0b['getRanges']()['filter'](_0x142ae2=>'$graveyard'!=_0x142ae2['root']['rootName']);_0x4559e8['every'](_0x2694ca=>_0x399179['containsRange'](_0x2694ca,!0x0))&&_0x334a0b['discard']();if(_0x4559e8['some'](_0xab9c68=>_0xab9c68['containsRange'](_0x399179,!0x0))){const _0x55d496=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c5d15,'accept');return this['forceDefaultExecution'](()=>_0x55d496([_0x399179],null,_0x1ea1ce)),null;}}else{const _0x123067=_0x399179['getIntersection'](_0x334a0b['getFirstRange']());null!==_0x123067&&_0x334a0b['_onDiscard']([_0x123067],null,_0x1ea1ce);}}if(_0x399179['detach'](),_0x399179['isCollapsed']||'$graveyard'==_0x399179['root']['rootName'])return null;let _0x430c9a=null,_0x10ec08=_0x399179['start'],_0x494872=_0x399179['end'];const _0x2fd0e8=this['_findSuggestions'](_0x399179,'deletion');for(const {suggestion:_0x3df7b3,meta:_0x40f346}of _0x2fd0e8){const _0x1e9934=this['_model']['createRange'](_0x10ec08,_0x494872);if(_0x40f346['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40f346['containsRangeInObject']&&!_0x40f346['isInsideObject'])){if(_0x3df7b3['isMultiRange']){if(!_areSimilarAttributes(_0x3df7b3,_0x1ea1ce))continue;let _0x5c1b24=!0x0;for(const _0x24954b of _0x3df7b3['getRanges']()){if(_0x24954b['containsRange'](_0x1e9934,!0x0))return _0x3df7b3;_0x1e9934['containsRange'](_0x24954b)||(_0x5c1b24=!0x1);}_0x5c1b24&&_0x3df7b3['discard']();}else{const _0x11cf77=_0x3df7b3['getFirstRange']();if(_0x11cf77['containsRange'](_0x1e9934,!0x0))return _0x3df7b3;if(!_areSimilarAttributes(_0x3df7b3,_0x1ea1ce)){_0x1e9934['containsRange'](_0x11cf77)?_0x3df7b3['removeMarkers']():_0x11cf77['containsPosition'](_0x10ec08)?_0x10ec08=_0x11cf77['end']:_0x11cf77['containsPosition'](_0x494872)&&(_0x494872=_0x11cf77['start']);continue;}_0x10ec08=_0x10ec08['isBefore'](_0x11cf77['start'])?_0x10ec08:_0x11cf77['start'],_0x494872=_0x494872['isAfter'](_0x11cf77['end'])?_0x494872:_0x11cf77['end'],_0x1ea1ce=Object['assign']({},_0x3df7b3['attributes']),_0x430c9a?_0x11cf77['start']['isBefore'](_0x430c9a['getFirstRange']()['start'])?(_0x430c9a['removeMarkers'](),_0x430c9a=_0x3df7b3):_0x3df7b3['removeMarkers']():_0x430c9a=_0x3df7b3;}}}if(_0x430c9a)return this['_setSuggestionRange'](_0x430c9a,this['_model']['createRange'](_0x10ec08,_0x494872)),_0x430c9a;{const _0x2baf8f=uid(),_0x40200a=this['_model']['createRange'](_0x10ec08,_0x494872),_0x117a4d=_0x303838['id'],_0x2bd6e8=_0x3c5d15?'deletion:'+_0x3c5d15:'deletion',_0x146d07=this['_setSuggestionData']({'id':_0x2baf8f,'type':_0x2bd6e8,'createdAt':new Date(),'authorId':_0x117a4d,'attributes':_0x1ea1ce});return this['_addSuggestionMarker'](_0x2bd6e8,_0x2baf8f,_0x117a4d,_0x40200a),_0x146d07;}}['markMultiRangeDeletion'](_0x2a4698,_0x654c29='multi',_0x519686={}){const _0x6901d0=this['editor']['plugins']['get']('Users')['me'],_0x52cf59=_0x2a4698['map'](_0x9f7df1=>new ModelLiveRange(_0x9f7df1['start'],_0x9f7df1['end'])),_0x43847f=new Set();this['_trackingSessionId']&&(_0x519686['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4ac9d1,meta:_0x2d1d6d}of this['_findSuggestions'](_0x52cf59,'insertion'))_0x2d1d6d['isOwn']&&!_0x2d1d6d['isNextTo']&&_0x43847f['add'](_0x4ac9d1);for(const _0xe63e40 of _0x43847f)if(_0xe63e40['isMultiRange']){const _0x1e74d0=_0xe63e40['getRanges']();(!_0xe63e40['attributes']||!_0xe63e40['attributes']['skipNestingCheck'])&&(_0x1e74d0['every'](_0x44ed71=>_0x52cf59['some'](_0x36e5c4=>_0x36e5c4['containsRange'](_0x44ed71,!0x0)))&&_0xe63e40['discard']());if(_0x52cf59['every'](_0x2c521d=>_0x1e74d0['some'](_0x3db6e3=>_0x3db6e3['containsRange'](_0x2c521d,!0x0)))){const _0x444b53=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x654c29,'accept');return this['forceDefaultExecution'](()=>_0x444b53(_0x2a4698,null,_0x519686)),null;}}else{const _0x403437=_0xe63e40['getFirstRange']();_0x52cf59['some'](_0x212e97=>_0x212e97['containsRange'](_0x403437,!0x0))&&_0xe63e40['discard']();if(_0x52cf59['every'](_0x4ed0d5=>_0x403437['containsRange'](_0x4ed0d5,!0x0))){const _0x52f716=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x654c29,'accept');return this['forceDefaultExecution'](()=>_0x52f716(_0x52cf59,null,_0x519686)),null;}}const _0x1c1097=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x654c29,'join');let _0x32e821=null;for(const _0x2bac96 of this['getSuggestions']())if(_0x2bac96['author']['id']==_0x6901d0['id']&&_0x2bac96['isInContent']&&'deletion'==_0x2bac96['type']&&_0x2bac96['subType']==_0x654c29&&_areSimilarAttributes(_0x2bac96,_0x519686)&&(_0x1c1097(_0x2bac96['getRanges'](),_0x52cf59)||_0x1c1097(_0x52cf59,_0x2bac96['getRanges']()))){if(_0x32e821){if(_0x2bac96['commentThread']&&_0x2bac96['commentThread']['length'])continue;for(const _0x4d9326 of _0x2bac96['getRanges']())_0x32e821['isIntersectingWithRange'](_0x4d9326)||_0x32e821['addRange'](_0x4d9326);_0x2bac96['removeMarkers']();}else{_0x32e821=_0x2bac96;for(const _0x39ba5c of _0x52cf59)_0x2bac96['isIntersectingWithRange'](_0x39ba5c)||_0x2bac96['addRange'](_0x39ba5c);}}if(_0x32e821)return _0x32e821;_0x43847f['clear']();for(const {suggestion:_0x3073d1,meta:_0x7e16c7}of this['_findSuggestions'](_0x52cf59,'deletion'))_0x7e16c7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x7e16c7['containsRangeInObject']&&!_0x7e16c7['isInsideObject'])&&_areSimilarAttributes(_0x3073d1,_0x519686)&&_0x43847f['add'](_0x3073d1);for(const _0x4145d9 of _0x43847f){const _0x4eda8f=_0x4145d9['getRanges']();if(!_0x519686||!_0x519686['skipNestingCheck']){if(_0x52cf59['every'](_0x4b1890=>_0x4eda8f['some'](_0x2e9419=>_0x2e9419['containsRange'](_0x4b1890,!0x0))))return _0x4145d9;}(!_0x4145d9['attributes']||!_0x4145d9['attributes']['skipNestingCheck'])&&(_0x4eda8f['every'](_0x1ec96f=>_0x52cf59['some'](_0x267a56=>_0x267a56['containsRange'](_0x1ec96f,!0x0)))&&_0x4145d9['discard']());}const _0x8302ce=uid(),_0x4c8a5f=_0x6901d0['id'],_0x408886='deletion:'+_0x654c29,_0x4d4e68=this['_setSuggestionData']({'id':_0x8302ce,'type':_0x408886,'createdAt':new Date(),'authorId':_0x4c8a5f,'attributes':_0x519686});for(const _0x4e165c of _0x52cf59)_0x4e165c['detach'](),_0x4e165c['isCollapsed']||'$graveyard'==_0x4e165c['root']['rootName']||this['_addSuggestionMarker'](_0x408886,_0x8302ce,_0x4c8a5f,_0x4e165c,Suggestion['getMultiRangeId']());return _0x4d4e68;}['markAttributeChange'](_0x215184,_0x3c0f60,_0x4a978f,_0xc901f2,_0xfcfafb){if(_0x215184['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45be99=this['editor']['plugins']['get']('Users')['me']['id'],_0x132353=Array['from'](this['_suggestions']['values']())['filter'](_0x3d87e4=>'attribute'==_0x3d87e4['type']&&_0x3d87e4['data']['key']==_0x3c0f60&&_0x3d87e4['isIntersectingWithRange'](_0x215184));if(this['_trackingSessionId']&&(_0xfcfafb['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b20e1=this['_findSuggestions'](_0x215184,'insertion')['filter'](({meta:_0x59192a})=>_0x59192a['isOwn']&&!_0x59192a['isInsideObject']&&!_0x59192a['isNextTo'])['map'](({suggestion:_0x253b46})=>_0x253b46);_0x132353['unshift'](..._0x5b20e1);}const _0x5d32fe=new Map([[_0x215184,_0x4a978f]]);for(const _0x17a226 of _0x132353){const _0x33a1df='attribute'==_0x17a226['type']?_0x17a226['data']['oldValue']:void 0x0,_0x431b24=_0x17a226['getFirstRange'](),_0x5ab07a=Array['from'](_0x5d32fe['keys']())['find'](_0x43f14a=>_0x43f14a['isIntersecting'](_0x431b24));if(!_0x5ab07a)continue;const _0x48d493=_0x5ab07a['getDifference'](_0x431b24);this['_isBlockAttribute'](_0x3c0f60)&&'insertion'==_0x17a226['type']&&0x0!=_0x48d493['length']||(_0x5d32fe['delete'](_0x5ab07a),_0x48d493['forEach'](_0x297086=>{_0x5d32fe['set'](_0x297086,_0x4a978f);}),'insertion'!=_0x17a226['type']&&_0x33a1df!=_0xc901f2&&_0x5d32fe['set'](_0x5ab07a['getIntersection'](_0x431b24),_0x33a1df));}const _0x327752=[];for(const [_0x9ab0b4,_0xb5f07b]of _0x5d32fe){const _0x519c97=uid(),_0x2a8bc5={'key':_0x3c0f60,'oldValue':_0xb5f07b,'newValue':_0xc901f2};_0x3c0f60['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':_0x3c0f60});const _0x416a96=('attribute:'+(_0x3c0f60+'|'+createFormatSubType({'newValue':_0xc901f2})))['substring'](0x0,0x3c),_0x47080d=this['_setSuggestionData']({'id':_0x519c97,'type':_0x416a96,'data':_0x2a8bc5,'createdAt':new Date(),'authorId':_0x45be99,'attributes':_0xfcfafb});_0x327752['push'](_0x47080d),this['_addSuggestionMarker'](_0x416a96,_0x519c97,_0x45be99,_0x9ab0b4);}return _0x327752;}['enableDefaultAttributesIntegration'](_0x43937d){this['enableCommand'](_0x43937d,(_0x2cdbc8,..._0x74ec96)=>{this['recordAttributeChanges'](()=>{_0x2cdbc8(..._0x74ec96);});});}['registerBlockAttribute'](_0x2d1bef){this['editor']['plugins']['get'](SuggestionsConversion)['registerBlockAttribute'](_0x2d1bef);}['registerInlineAttribute'](_0x912033){this['editor']['plugins']['get'](SuggestionsConversion)['registerInlineAttribute'](_0x912033);}['startTrackingSession'](_0x2ea975){return this['_trackingSessionId']=void 0x0!==_0x2ea975?_0x2ea975:uid(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1179c4){return'attribute'==_0x1179c4['type']?_getAttributeKeyFromSubType(_0x1179c4['subType']):null;}['_applyOperationsAsSuggestions'](_0x4d1cf8){if(0x0==_0x4d1cf8['length'])return;const _0x4129bb=this['editor'],_0x46fb5c=_0x4129bb['plugins']['get'](DocumentCompare),_0x111c2b=[];_0x4129bb['model']['change'](_0xc2b280=>{for(let _0x33da26=0x0;_0x33da26<_0x4d1cf8['length'];_0x33da26++){const _0x23424e=_0x4d1cf8[_0x33da26];if(_0x23424e['baseVersion']=_0x4129bb['model']['document']['version'],_0x23424e['isDocumentOperation']=!0x0,_0x46fb5c['isMarkedRemoveOperation'](_0x23424e)){const _0x294be8=fixElementSuggestionRange(_0x23424e['newRange'],_0x4129bb['model']);_0x111c2b['unshift'](ModelLiveRange['fromRange'](_0x294be8));}else switch(_0x23424e['type']){case'rename':{const _0x54d48c=_0x23424e['oldName'],_0x48baba=_0x23424e['newName'];if(_0x54d48c==_0x48baba)break;_0xc2b280['batch']['addOperation'](_0x23424e),_0x4129bb['model']['applyOperation'](_0x23424e);const _0x5a633a='$elementName',_0x356758=_0x23424e['position'],_0x196900=_0x4129bb['model']['createRange'](_0x356758,_0x4129bb['model']['createPositionAt'](_0x356758['nodeAfter'],'end'));this['markAttributeChange'](_0x196900,_0x5a633a,_0x54d48c,_0x48baba,{'groupId':uid()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xa1a519=_0x23424e['oldValue'],_0x45c7c8=_0x23424e['newValue'];if(_0xa1a519==_0x45c7c8)break;_0xc2b280['batch']['addOperation'](_0x23424e),_0x4129bb['model']['applyOperation'](_0x23424e);const _0x18b942=_0x23424e['key'];if(!this['_isRegisteredAttribute'](_0x18b942))break;const _0x25ec5f=fixElementSuggestionRange(_0x23424e['range'],_0x4129bb['model']);this['markAttributeChange'](_0x25ec5f,_0x18b942,_0xa1a519,_0x45c7c8,{'groupId':uid()});break;}case'insert':{_0xc2b280['batch']['addOperation'](_0x23424e),_0x4129bb['model']['applyOperation'](_0x23424e);if(_0x4d1cf8[_0x33da26+0x1]&&'move'==_0x4d1cf8[_0x33da26+0x1]['type'])break;const _0x2aa52a=_0x23424e['position'],_0x3f04fd=_0x23424e['howMany'],_0x258fb2=fixElementSuggestionRange(_0x4129bb['model']['createRange'](_0x2aa52a,_0x2aa52a['getShiftedBy'](_0x3f04fd)),_0x4129bb['model']);this['markInsertion'](_0x258fb2);break;}case'split':{_0xc2b280['batch']['addOperation'](_0x23424e),_0x4129bb['model']['applyOperation'](_0x23424e);const _0x200146=_0x23424e['splitPosition'],_0x10d1e3=_0x23424e['moveTargetPosition'];this['markInsertion'](_0x4129bb['model']['createRange'](_0x200146,_0x10d1e3));break;}case'move':case'remove':_0xc2b280['batch']['addOperation'](_0x23424e),_0x4129bb['model']['applyOperation'](_0x23424e);}}for(const _0x3997ee of _0x111c2b)_0x3997ee['detach'](),this['markDeletion'](_0x3997ee);});}['_setSuggestionRange'](_0x4aae16,_0x58b411){const _0x24584d=_0x4aae16['getFirstMarker']();this['_model']['change'](_0x5ebcf5=>{_0x5ebcf5['updateMarker'](_0x24584d,{'range':_0x58b411});});}['_addThreadToSuggestion'](_0x496b05){const _0x400a5e=_0x496b05['id'],_0x958680=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x400a5e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x958680,'threadId':_0x400a5e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x338df0=this['_commentsRepository']['getCommentThread'](_0x400a5e);_0x338df0['unbind']('isRemovable'),_0x338df0['isRemovable']=!0x1,_0x496b05['commentThread']=_0x338df0;}['_checkSuggestionCorrectness'](_0x43d484,_0x3d34a6,_0x386cab,_0x5863de){if(_0x43d484['type']!=_0x3d34a6||_0x43d484['subType']!=_0x386cab||_0x43d484['creator']['id']!=_0x5863de)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new CKEditorError('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x21b114,_0x4e7477){const _0x8648da=_0x21b114['getFirstRange']();if(_0x4e7477['isEqual'](_0x8648da))_0x21b114['removeMarkers']();else{if(_0x8648da['containsRange'](_0x4e7477)){const _0x15675c=this['_model']['createPositionAt'](_0x4e7477['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x21b114,this['_model']['createRange'](_0x8648da['start'],_0x15675c));const _0x19518b=uid(),_0x518cca=_0x21b114['creator']['id'],_0x145df1=_0x21b114['type']+':'+_0x21b114['subType'];this['_setSuggestionData']({'id':_0x19518b,'type':_0x145df1,'createdAt':new Date(),'authorId':_0x518cca,'data':_0x21b114['data'],'attributes':_0x21b114['attributes']});const _0x36665e=this['_model']['createPositionAt'](_0x4e7477['end']['parent'],'after'),_0x376aec=this['_model']['createRange'](_0x36665e,_0x8648da['end']);this['_addSuggestionMarker'](_0x145df1,_0x19518b,_0x518cca,_0x376aec);}else{if(_0x8648da['containsPosition'](_0x4e7477['start'])){const _0x5d1bee=this['_model']['createPositionAt'](_0x4e7477['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x21b114,this['_model']['createRange'](_0x8648da['start'],_0x5d1bee));}else{const _0x152c46=this['_model']['createPositionAt'](_0x4e7477['end']['parent'],'after');this['_setSuggestionRange'](_0x21b114,this['_model']['createRange'](_0x152c46,_0x8648da['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x170e31){for(const {suggestion:_0x24ecad,meta:_0x4101f4}of this['_findSuggestions'](_0x170e31,'insertion')){if(!_0x4101f4['isOwn'])continue;const _0x3ab0bb=_0x24ecad['getRanges']();for(const _0x10d5d0 of _0x3ab0bb)if(!_0x170e31['getDifference'](_0x10d5d0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b93a6){return this['editor']['plugins']['get']('Users')['getUser'](_0x1b93a6);}['_getExternalAuthor'](_0x2ec339){const _0x5c4496=this['editor']['plugins']['get']('Users'),_0x14720b=hashObject('external:'+_0x2ec339),_0x5d74c2=_0x5c4496['getUser'](_0x14720b);return _0x5d74c2||_0x5c4496['addUser']({'id':_0x14720b,'name':_0x2ec339});}['_createSuggestion'](_0x53a954,_0x31316d,_0x4290f4,_0x44bc25,_0x2cb221,_0xa42c44){const _0x5ec481=this['_getAuthorFromId'](_0x44bc25);if(!_0x5ec481)throw new CKEditorError('track-changes-user-not-found',this,{'authorId':_0x44bc25,'suggestionId':_0x4290f4});const _0x2e5f5a=this['_suggestionFactory']['buildSuggestion'](_0x53a954,_0x31316d,_0x4290f4,_0x5ec481,_0x2cb221,_0x4337a4=>{this['_updateSuggestionData'](_0x4290f4,{'attributes':_0x4337a4});const _0x4fabea=this['getSuggestion'](_0x4290f4);this['_joinWithAdjacentSuggestions'](new Set([_0x4fabea])),this['_refreshSuggestionsChain'](new Set([_0x4fabea]));},_0xa42c44);return this['listenTo'](_0x2e5f5a,'accept',()=>{this['_updateSuggestionData'](_0x4290f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2e5f5a,'discard',()=>{this['_updateSuggestionData'](_0x4290f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4290f4,_0x2e5f5a),this['_suggestionState']['set'](_0x2e5f5a,'notReady'),_0x2e5f5a;}['_splitMarkerName'](_0x1e60f6){return splitSuggestionMarkerName(_0x1e60f6);}['_breakSuggestionMarker'](_0x1e4fdf,_0x16a6c6,_0x5b6430){const _0x31d579=_0x1e4fdf['getFirstRange'](),_0x4f8ee6=_0x31d579['start'],_0x286239=_0x31d579['end'];this['_setSuggestionRange'](_0x1e4fdf,this['_model']['createRange'](_0x4f8ee6,_0x16a6c6));const _0x502a87=uid(),_0x3c59e1=_0x1e4fdf['creator']['id'],_0x5df7ac=_0x1e4fdf['type']+(_0x1e4fdf['subType']?':'+_0x1e4fdf['subType']:'');this['_setSuggestionData']({'id':_0x502a87,'type':_0x5df7ac,'createdAt':new Date(),'authorId':_0x3c59e1,'originalSuggestionId':_0x1e4fdf['_originalSuggestionId']||_0x1e4fdf['id'],'attributes':_0x1e4fdf['attributes'],'data':_0x1e4fdf['data']});const _0x40cf69=this['_getAttributeKey'](_0x1e4fdf);('formatBlock'==_0x1e4fdf['type']||_0x40cf69&&this['_isBlockAttribute'](_0x40cf69))&&(_0x5b6430=this['_model']['createPositionBefore'](_0x5b6430['parent'])),this['_addSuggestionMarker'](_0x5df7ac,_0x502a87,_0x3c59e1,this['_model']['createRange'](_0x5b6430,_0x286239));}['_findSuggestions'](_0x37485a,_0x35cad5=null){const _0x15081e=[],_0x39ff0d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37485a)||(_0x37485a=[_0x37485a]);for(const _0x39398b of this['getSuggestions']()){if(!_0x39398b['isInContent'])continue;if(_0x35cad5&&_0x39398b['type']!=_0x35cad5)continue;let _0x2bd10a=!0x1;for(const _0x4e0444 of _0x39398b['getRanges']()){for(const _0x428371 of _0x37485a){const _0x2d0aed=_0x428371['start']['isEqual'](_0x4e0444['end'])||_0x428371['end']['isEqual'](_0x4e0444['start']);if(_0x2d0aed||_0x428371['getIntersection'](_0x4e0444)){const _0x1eaf13=_0x428371['containsRange'](_0x4e0444)&&_isInObject(this['_model']['schema'],_0x4e0444['start'],_0x428371),_0x4167af=_0x4e0444['containsRange'](_0x428371)&&_isInObject(this['_model']['schema'],_0x428371['start'],_0x4e0444);_0x15081e['push']({'suggestion':_0x39398b,'meta':{'isOwn':_0x39ff0d==_0x39398b['author'],'isNextTo':_0x2d0aed,'isInsideObject':_0x1eaf13,'containsRangeInObject':_0x4167af}}),_0x2bd10a=!0x0;break;}}if(_0x2bd10a)break;}}return _0x15081e;}['_addSuggestionMarker'](_0x451c26,_0x30c9ea,_0xb8f128,_0x1030e5,_0x1c154a){this['_model']['change'](_0x19987f=>{let _0x1942c1='suggestion:'+_0x451c26+':'+_0x30c9ea+':'+_0xb8f128;_0x1c154a&&(_0x1942c1=_0x1942c1+':'+_0x1c154a),_0x19987f['addMarker'](_0x1942c1,{'range':_0x1030e5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x17754d){const _0xde575=_0x17754d['previous'],_0x4ca8b4=_0x17754d['next'];_0x17754d['previous']=null,_0x17754d['next']=null,null!=_0xde575&&_0xde575['next']==_0x17754d&&(_0xde575['next']=_0x4ca8b4),null!=_0x4ca8b4&&_0x4ca8b4['previous']==_0x17754d&&(_0x4ca8b4['previous']=_0xde575),'ready'==this['_suggestionState']['get'](_0x17754d)&&(this['_suggestionState']['set'](_0x17754d,'removed'),this['fire']('suggestionUnloaded',_0x17754d,_0xde575,_0x4ca8b4));}['_setSuggestionData'](_0x729d73){const _0x4fc09f=_0x729d73['id'],_0x59ebeb=this['addSuggestionData'](_0x729d73);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2796ca=this['editor']['plugins']['get']('PendingActions'),_0x4f7dce=_0x59ebeb['hasComments'],_0x14aa40=_0x59ebeb['subType']?_0x59ebeb['type']+':'+_0x59ebeb['subType']:_0x59ebeb['type'],_0x314931=this['editor']['locale'],_0x5cd1a9=_0x2796ca['add'](getTranslation$1(_0x314931,'PENDING_ACTION_SUGGESTION')),_0x323719={'id':_0x4fc09f,'type':_0x14aa40,'hasComments':_0x4f7dce,'data':_0x729d73['data']||null,'originalSuggestionId':_0x729d73['originalSuggestionId']||null,'attributes':_0x59ebeb['attributes']};this['_adapter']['addSuggestion'](_0x323719)['then'](_0x201c71=>{_0x59ebeb['_saved']=!0x0,_0x2796ca['remove'](_0x5cd1a9),_0x201c71&&_0x201c71['createdAt']&&(this['_suggestions']['get'](_0x4fc09f)['createdAt']=_0x201c71['createdAt']);})['catch'](_0xaffb0c=>{throw logWarning('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59ebeb['discard']();}),_0x59ebeb['stopListening'](),this['_suggestions']['delete'](_0x59ebeb['id']),this['_suggestionState']['delete'](_0x59ebeb),_0xaffb0c;});}return _0x59ebeb;}['_isBlockAttribute'](_0x9677f0){return this['editor']['plugins']['get'](SuggestionsConversion)['isBlockAttribute'](_0x9677f0);}['_isInlineAttribute'](_0x2607fc){return this['editor']['plugins']['get'](SuggestionsConversion)['isInlineAttribute'](_0x2607fc);}['_updateSuggestionData'](_0x3a4c5a,_0x15690d){const _0x288f45=this['editor']['plugins']['get']('PendingActions'),_0x4dd02e=this['getSuggestion'](_0x3a4c5a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dd02e['_saved']){const _0xac2f41=_0x288f45['add'](getTranslation$1(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a4c5a,_0x15690d)['then'](()=>{_0x288f45['remove'](_0xac2f41);});}else _0x4dd02e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a4c5a,_0x15690d);});}}['_getSuggestionData'](_0x4471fe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new CKEditorError('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4471fe);}['_handleNewSuggestionMarker'](_0x353088){const {id:_0x64254f,type:_0xe3a4c0,subType:_0x414fa2,authorId:_0x54a079}=this['_splitMarkerName'](_0x353088),_0x1f37b4=this['_suggestions']['get'](_0x64254f)||this['_createSuggestion'](_0xe3a4c0,_0x414fa2,_0x64254f,_0x54a079,{});switch(this['_checkSuggestionCorrectness'](_0x1f37b4,_0xe3a4c0,_0x414fa2,_0x54a079),this['_suggestionState']['get'](_0x1f37b4)){case'notReady':this['_getSuggestionData'](_0x64254f)['then'](_0x2b212c=>{let _0x133d25=Promise['resolve']();_0x2b212c['hasComments']&&(_0x133d25=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x64254f})),_0x133d25['then'](()=>{this['addSuggestionData'](_0x2b212c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1f37b4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x64254f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1f37b4,'ready'),this['fire']('suggestionLoaded',_0x1f37b4);break;case'ready':this['fire']('suggestionChanged',_0x1f37b4);}return _0x1f37b4['addMarkerName'](_0x353088),_0x1f37b4;}['_refreshSuggestionsChain'](_0x1d21fa){const _0x37b950=Array['from'](_0x1d21fa),_0x4007f8=_0x37b950['filter'](_0x3a44cd=>'attribute'==_0x3a44cd['type']);this['_refreshAttributeSuggestionsChain'](_0x4007f8);const _0x42fa7d=_0x37b950['filter'](_0x294c16=>!_0x294c16['isMultiRange']&&'attribute'!=_0x294c16['type']),_0x5908fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ae3fb=>!_0x5ae3fb['isMultiRange']&&'attribute'!=_0x5ae3fb['type']),_0x1211f7=_0x5908fc['filter'](_0x5edf2f=>!_0x1d21fa['has'](_0x5edf2f)),_0x68701f=new Map(_0x5908fc['map'](_0x33e946=>[_0x33e946,this['_suggestionFactory']['getSuggestionCallback'](_0x33e946['type'],_0x33e946['subType'],'chain')])),_0x2e1d13=new Map(_0x5908fc['map'](_0x40f499=>[_0x40f499,_0x40f499['getFirstRange']()])),_0x1e2593=new Set(),_0x159fd6=new Set();for(let _0x2ea6a6=0x0;_0x2ea6a6<_0x42fa7d['length'];_0x2ea6a6++)_0x549184(_0x42fa7d[_0x2ea6a6],_0x42fa7d,_0x2ea6a6+0x1);for(let _0x31c7d1=0x0;_0x31c7d1<_0x42fa7d['length'];_0x31c7d1++)_0x549184(_0x42fa7d[_0x31c7d1],_0x1211f7,0x0);const _0x22a565=new Set();for(let _0x8371d3=0x0;_0x8371d3<_0x42fa7d['length'];_0x8371d3++){const _0x3faecb=_0x42fa7d[_0x8371d3];!_0x159fd6['has'](_0x3faecb)&&_0x3faecb['previous']&&(_0x22a565['add'](_0x3faecb['previous']),_0x3faecb['previous']['next']===_0x3faecb&&(_0x3faecb['previous']['next']=null),_0x3faecb['previous']=null),!_0x1e2593['has'](_0x3faecb)&&_0x3faecb['next']&&(_0x22a565['add'](_0x3faecb['next']),_0x3faecb['next']['previous']===_0x3faecb&&(_0x3faecb['next']['previous']=null),_0x3faecb['next']=null);}function _0x549184(_0x37161a,_0x1db29d,_0x4fa558){for(let _0x490924=_0x4fa558;_0x490924<_0x1db29d['length'];_0x490924++){const _0x4a3686=_0xf5ba75(_0x37161a,_0x1db29d[_0x490924]);_0x4a3686&&(_0x4a3686[0x0]['next']=_0x4a3686[0x1],_0x4a3686[0x1]['previous']=_0x4a3686[0x0],_0x1e2593['add'](_0x4a3686[0x0]),_0x159fd6['add'](_0x4a3686[0x1]));}}function _0xf5ba75(_0x3cccad,_0x3fab4b){if(_0x3cccad['author']['id']!==_0x3fab4b['author']['id'])return null;const _0x1f430e=_0x68701f['get'](_0x3cccad)(_0x3cccad,_0x3fab4b,_0x2e1d13['get'](_0x3cccad),_0x2e1d13['get'](_0x3fab4b));if(!_0x1f430e)return null;return _0x68701f['get'](_0x3fab4b)(_0x3cccad,_0x3fab4b,_0x2e1d13['get'](_0x3cccad),_0x2e1d13['get'](_0x3fab4b))?_0x1f430e[0x1]['commentThread']&&_0x1f430e[0x1]['commentThread']['length']?null:_0x1f430e:null;}_0x22a565['size']&&this['_refreshSuggestionsChain'](_0x22a565);}['_refreshAttributeSuggestionsChain'](_0x3ba282){if(0x0==_0x3ba282['length'])return;const _0x315715=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x170b1e=>'attribute'==_0x170b1e['type']&&_0x170b1e['_isDataLoaded']),_0x3aa981=[],_0x441218=new Map();for(const _0x30b7b7 of _0x315715){const _0x15d819=hashObject(_0x30b7b7['attributes']);_0x441218['has'](_0x15d819)||(_0x441218['set'](_0x15d819,_0x3aa981['length']),_0x3aa981['push']([]));const _0x267bb4=_0x441218['get'](_0x15d819);_0x3aa981[_0x267bb4]['push'](_0x30b7b7);}!(function(){_0x3aa981['sort']((_0x415866,_0xaa8d81)=>{const _0xa5416d=_0x415866[0x0]['createdAt'],_0x228f23=_0xaa8d81[0x0]['createdAt'];return _0xa5416d==_0x228f23?_0x415866[0x0]['attributes']['groupId']<_0xaa8d81[0x0]['attributes']['groupId']?-0x1:0x1:_0xa5416d<_0x228f23?-0x1:0x1;});for(const _0x4df403 of _0x3aa981)_0x4df403['sort']((_0x39e725,_0x826c3a)=>_0x39e725['id']<_0x826c3a['id']?-0x1:0x1);}());for(let _0x56dd1e=0x0;_0x56dd1e<_0x3aa981['length'];_0x56dd1e++){if(0x0==_0x3aa981[_0x56dd1e]['length'])continue;const _0x253b2e=[];for(let _0x1babb2=_0x56dd1e+0x1;_0x1babb2<_0x3aa981['length'];_0x1babb2++)0x0!=_0x3aa981[_0x1babb2]['length']&&_0xf1f36e(_0x3aa981[_0x56dd1e],_0x3aa981[_0x1babb2])&&_0x253b2e['push'](_0x1babb2);for(const _0x46ef76 of _0x253b2e)_0x3aa981[_0x56dd1e]=_0x3aa981[_0x56dd1e]['concat'](_0x3aa981[_0x46ef76]),_0x3aa981[_0x46ef76]=[];}for(const _0x114cbe of _0x3aa981)for(let _0x4e5fb7=0x0;_0x4e5fb7<_0x114cbe['length'];_0x4e5fb7++){const _0x3d7064=_0x114cbe[_0x4e5fb7+0x1]||null;_0x114cbe[_0x4e5fb7]['next']!==_0x3d7064&&(_0x114cbe[_0x4e5fb7]['next']=_0x3d7064);}for(const _0x5612d4 of _0x3aa981)for(let _0x479325=0x0;_0x479325<_0x5612d4['length'];_0x479325++){const _0xe6f301=_0x5612d4[_0x479325-0x1]||null;_0x5612d4[_0x479325]['previous']!==_0xe6f301&&(_0x5612d4[_0x479325]['previous']=_0xe6f301);}function _0xf1f36e(_0x100efc,_0x321644){if(_0x100efc[0x0]['attributes']['groupId']!==_0x321644[0x0]['attributes']['groupId']&&_0x100efc[0x0]['author']!==_0x321644[0x0]['author'])return!0x1;if(!function(_0x586609,_0x24c20a){if(!_0x586609['hasComments']&&!_0x24c20a['hasComments'])return!0x0;if(_0x586609['hasComments']&&_0x24c20a['hasComments'])return!0x1;if(_0x586609['hasComments']&&_0x24c20a['createdAt']<_0x586609['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x24c20a['hasComments']&&_0x586609['createdAt']<_0x24c20a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x100efc[0x0],_0x321644[0x0]))return!0x1;if(!isEqual(omit(_0x100efc[0x0]['attributes'],['groupId','trackingSessionId']),omit(_0x321644[0x0]['attributes'],['groupId','trackingSessionId'])))return!0x1;if(_0x100efc[0x0]['attributes']['groupId']==_0x321644[0x0]['attributes']['groupId'])return!0x0;if(_0x100efc[0x0]['attributes']['trackingSessionId']!==_0x321644[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x100efc['every'](_0x3cc75c=>_0x321644['some'](_0x33dc1c=>_0x3cc75c['getFirstRange']()['isEqual'](_0x33dc1c['getFirstRange']())))&&_0x321644['every'](_0x237c0b=>_0x100efc['some'](_0x3806c4=>_0x237c0b['getFirstRange']()['isEqual'](_0x3806c4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f88c8){const _0x3035a8=Array['from'](_0x4f88c8),_0x1af3d7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x579f4f=_0x1af3d7['filter'](_0x2234f8=>!_0x4f88c8['has'](_0x2234f8)),_0x2206d8=new Map(_0x3035a8['map'](_0x342d19=>[_0x342d19,this['_suggestionFactory']['getSuggestionCallback'](_0x342d19['type'],_0x342d19['subType'],'join')])),_0x491999=new Map(_0x1af3d7['map'](_0x3d8f73=>[_0x3d8f73,_0x3d8f73['getRanges']()]));for(let _0x3d8f91=0x0;_0x3d8f91<_0x3035a8['length'];_0x3d8f91++){if(_0x39cd50(this,_0x3035a8[_0x3d8f91],_0x3035a8,_0x3d8f91+0x1))return!0x0;}for(let _0xc416f1=0x0;_0xc416f1<_0x3035a8['length'];_0xc416f1++){if(_0x39cd50(this,_0x3035a8[_0xc416f1],_0x579f4f,0x0))return!0x0;}return!0x1;function _0x39cd50(_0x351b6c,_0x4a331c,_0x160714,_0x27eb39){for(let _0x2f9bc8=_0x27eb39;_0x2f9bc8<_0x160714['length'];_0x2f9bc8++){const _0x357837=_0x160714[_0x2f9bc8];if(_0x357837['type']!==_0x4a331c['type']||_0x357837['author']['id']!==_0x4a331c['author']['id']||_0x357837['subType']!==_0x4a331c['subType'])continue;if(!_haveSameAttributes(_0x4a331c,_0x357837))continue;if('attribute'==_0x4a331c['type']&&_0x4a331c['data']['oldValue']!=_0x357837['data']['oldValue'])continue;if('attribute'==_0x4a331c['type']&&_0x351b6c['_isBlockAttribute'](_0x4a331c['data']['key']))continue;if('formatBlock'==_0x4a331c['type']){const _0x2d1f1c=_0x351b6c['editor']['model'],_0x200c64=_0x4a331c['getContainedElement']();if(_0x200c64&&(_0x2d1f1c['schema']['isObject'](_0x200c64)||_0x2d1f1c['schema']['isLimit'](_0x200c64)))continue;}const _0x583b60=_0x2206d8['get'](_0x4a331c),_0x34bb2=_0x491999['get'](_0x4a331c),_0x921b58=_0x491999['get'](_0x357837),_0x39a18b=_0x4a331c['commentThread']&&_0x4a331c['commentThread']['length'],_0x37cbd4=_0x357837['commentThread']&&_0x357837['commentThread']['length'];if(!_0x39a18b&&_0x583b60(_0x921b58,_0x34bb2))return _0x351b6c['_joinSuggestions'](_0x357837,_0x4a331c),_0x491999['delete'](_0x4a331c),!0x0;if(!_0x37cbd4&&_0x583b60(_0x34bb2,_0x921b58))return _0x351b6c['_joinSuggestions'](_0x4a331c,_0x357837),_0x491999['delete'](_0x357837),!0x0;}return!0x1;}}['_joinSuggestions'](_0x57bef1,_0xd36f15){if(_0x57bef1['isMultiRange']){for(const _0x4f3cf5 of _0xd36f15['getRanges']())_0x57bef1['addRange'](_0x4f3cf5);}else{const _0x146eff=_0xd36f15['getFirstRange']()['end'];this['_setSuggestionRange'](_0x57bef1,this['_model']['createRange'](_0x57bef1['getFirstRange']()['start'],_0x146eff));}_0xd36f15['removeMarkers']();}['_getMarkerAnnouncementText'](_0x18f6d5,_0x231168,_0x302274){const _0x3c5ea7=_0x18f6d5['startsWith']('format')||_0x18f6d5['startsWith']('attribute')?'FORMATTING':_0x18f6d5['toUpperCase']();return getTranslation$1(this['editor']['locale'],_0x231168+'_'+_0x3c5ea7+'_SUGGESTION_ANNOUNCEMENT',_0x302274);}['_initAriaMarkerChangeAnnouncements'](){const _0xfe1d44=this['editor'];if(!_0xfe1d44['ui'])return;const {ariaLiveAnnouncer:_0x5827ee}=_0xfe1d44['ui'];surroundingMarkersDetector(this['_model'],({left:_0x23a473,entered:_0x244776})=>{for(const _0x4b36dc of _0x23a473){const {group:_0x176189,type:_0x50e61b}=this['_splitMarkerName'](_0x4b36dc['name']);if('suggestion'===_0x176189){_0x5827ee['announce'](this['_getMarkerAnnouncementText'](_0x50e61b,'LEAVE'));break;}}for(const _0x17b77b of _0x244776){const {group:_0x19f368,type:_0x402672}=this['_splitMarkerName'](_0x17b77b['name']);if('suggestion'===_0x19f368){_0x5827ee['announce'](this['_getMarkerAnnouncementText'](_0x402672,'ENTER',getEnvKeystrokeText(FOCUS_ANNOTATION_KEYSTROKE)));break;}}});}['_processAttributeChanges'](_0x5c0337){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4a6c71=this['editor'],_0x91d2f2=_0x4a6c71['model']['document']['differ']['getChanges']();if(0x0==_0x91d2f2['length'])return!0x1;const _0x15c576=[],_0x12aa31=_0x91d2f2['filter'](_0x573ce0=>'attribute'==_0x573ce0['type']),_0x383dd1=_0x91d2f2['filter'](_0x496d24=>'insert'==_0x496d24['type']&&'$text'!=_0x496d24['name']),_0x47620f=_0x91d2f2['filter'](_0x5bffe5=>'remove'==_0x5bffe5['type']&&'$text'!=_0x5bffe5['name']);for(const _0x4839d5 of _0x12aa31)_0x15c576['push']({'key':_0x4839d5['attributeKey'],'newValue':_0x4839d5['attributeNewValue'],'oldValue':_0x4839d5['attributeOldValue'],'range':fixAttributeSuggestionRange(_0x4839d5['range'],_0x4a6c71['model'])});for(const _0x4d8bf7 of _0x383dd1){const _0x483658=_0x47620f['find'](_0xda1085=>_0xda1085['position']['isEqual'](_0x4d8bf7['position']));_0x483658&&_0x15c576['push']({'key':renameAttributeKey,'newValue':_0x4d8bf7['name'],'oldValue':_0x483658['name'],'range':_0x4a6c71['model']['createRangeOn'](_0x4d8bf7['position']['nodeAfter'])});}return 0x0!=_0x15c576['length']&&this['_reduceExistingSuggestions'](_0x5c0337,_0x15c576);}['_processAttributeSuggestions'](_0x4b420f){let _0x5a036b=!0x1;const _0x2e4115=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f85d1=>_0x1f85d1['data']['newRange']&&_0x1f85d1['name']['startsWith']('suggestion:attribute:'));for(const _0xafbaa1 of _0x2e4115){const {subType:_0x2d0af8,id:_0x1c2ecc}=this['_splitMarkerName'](_0xafbaa1['name']),_0x31d68a=_0x2d0af8['split']('|')[0x0];for(const _0x43be83 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x43be83['id']!=_0x1c2ecc&&'attribute'==_0x43be83['type']&&_0x43be83['data']&&_0x43be83['data']['key']==_0x31d68a&&_0x43be83['getFirstRange']()['isIntersecting'](_0xafbaa1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x43be83,_0xafbaa1['data']['newRange'],_0x4b420f),_0x5a036b=!0x0);}return _0x5a036b;}['recordAttributeChanges'](_0x508450){this['_recordAttributeSuggestions']=!0x0,_0x508450();}['_isRegisteredAttribute'](_0x510007){return this['editor']['plugins']['get'](SuggestionsConversion)['isRegisteredAttribute'](_0x510007);}['_reduceExistingSuggestions'](_0x4ce074,_0x191900){if(0x0==_0x191900['length'])return!0x1;let _0x469aed=!0x1;for(const _0x579075 of _0x191900){const _0x498fe5=this['_findSuggestions'](_0x579075['range'],'attribute')['filter'](_0x4f1b57=>!_0x4f1b57['meta']['isNextTo'])['map'](_0xb4df02=>_0xb4df02['suggestion']),_0x15340e=hashObject({'newValue':_0x579075['newValue']});_0x498fe5['filter'](_0x2b1f95=>{const [_0x1da740,_0x22d26d]=_0x2b1f95['subType']['split']('|');return _0x1da740==_0x579075['key']&&_0x22d26d!=_0x15340e;})['forEach'](_0x2e3351=>{this['_reduceSuggestionAttributeRange'](_0x2e3351,_0x579075['range'],_0x4ce074),_0x469aed=!0x0;});}return _0x469aed;}['_reduceSuggestionAttributeRange'](_0x520e2c,_0x2449a8,_0x252556){const _0x78cf6c=_0x520e2c['getFirstRange']()['getDifference'](_0x2449a8);0x0!==_0x78cf6c['length']?0x1!==_0x78cf6c['length']?this['_breakSuggestionMarker'](_0x520e2c,_0x2449a8['start'],_0x2449a8['end']):this['_setSuggestionRange'](_0x520e2c,_0x78cf6c[0x0]):_0x252556['removeMarker'](_0x520e2c['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5dd11b){this['_editor']=_0x5dd11b,this['_model']=_0x5dd11b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x104626,_0x55b7ea,_0x2d3ea7,_0x230371,_0x537b7b,_0x1c4871,_0x279294){return new Suggestion(this['_model'],{'type':_0x104626,'subType':_0x55b7ea,'id':_0x2d3ea7,'originalSuggestionId':_0x279294,'author':_0x230371,'creator':_0x230371,'attributes':_0x537b7b,'onAttributesChange':_0x1c4871,'onAccept':(..._0x56b156)=>this['getSuggestionCallback'](_0x104626,_0x55b7ea,'accept')(..._0x56b156),'onDiscard':(..._0x1a2f9c)=>this['getSuggestionCallback'](_0x104626,_0x55b7ea,'discard')(..._0x1a2f9c)});}['registerCustomCallback'](_0x6979ca,_0x5dff0a,_0x29eeda,_0x319548){const _0x2366c5=_0x6979ca+':'+_0x5dff0a+':'+_0x29eeda;this['_customCallbacks']['set'](_0x2366c5,_0x319548);}['getSuggestionCallback'](_0x328964,_0x31376d,_0x884b3e){const _0x57def8=_0x328964+':'+_0x31376d+':'+_0x884b3e;return this['_customCallbacks']['get'](_0x57def8)||this['_defaultCallbacks']['get'](_0x328964+':'+_0x884b3e);}['_registerDefaultCallbacks'](){const _0xab649c=()=>!0x1,_0x1ec2e7=_0x15a8b0=>{_0x15a8b0['sort']((_0x313122,_0x35f7dc)=>_0x313122['start']['isBefore'](_0x35f7dc['start'])?0x1:-0x1),this['_model']['change'](_0x1a29ca=>{for(const _0x30218a of _0x15a8b0){let _0x102f7c;_0x102f7c=_0x30218a['end']['isAtEnd']&&_0x30218a['end']['parent']==_0x30218a['start']['nodeAfter']?_0x1a29ca['createSelection'](_0x30218a['start']['nodeAfter'],'on'):_0x1a29ca['createSelection'](_0x30218a),this['_model']['deleteContent'](_0x102f7c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4a4068=(_0x2a88ee,_0x4eebc2)=>{_0x4eebc2&&this['_model']['change'](_0x239016=>{const {commandName:_0x3471ae,commandParams:_0x18a67b=[]}=_0x4eebc2,_0x1056ac=_0x2a88ee['map'](_0x406a78=>(rangeOnOpeningTag(_0x406a78)&&(_0x406a78=this['_model']['createRange'](_0x406a78['end'])),_0x406a78))['filter'](_0x2dbcf9=>'$graveyard'!==_0x2dbcf9['root']['rootName']);if(_0x1056ac['length']<0x1)return;const _0x133eba=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x83f213=>ModelLiveRange['fromRange'](_0x83f213));_0x239016['setSelection'](_0x1056ac);for(const _0x17526a of this['_editor']['commands']['commands']())_0x17526a['refresh']();_0x18a67b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3471ae,..._0x18a67b);const _0x330d27=_0x133eba['filter'](_0xfaf91=>'$graveyard'!=_0xfaf91['root']['rootName']);_0x330d27['length']>0x0&&_0x239016['setSelection'](_0x330d27);for(const _0x21db06 of _0x133eba)_0x21db06['detach']();});},_0x12ca0b=(_0x96211d,_0x305f44)=>0x1==_0x96211d['length']&&0x1==_0x305f44['length']&&_0x96211d[0x0]['end']['isEqual'](_0x305f44[0x0]['start']),_0x5b9901=(_0x2ede3b,_0x48dae4,_0x35906c,_0x25a8ab)=>canChainSuggestions(_0x2ede3b,_0x48dae4,_0x35906c,_0x25a8ab)?[_0x2ede3b,_0x48dae4]:canChainSuggestions(_0x48dae4,_0x2ede3b,_0x25a8ab,_0x35906c)?[_0x48dae4,_0x2ede3b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xab649c),this['_defaultCallbacks']['set']('insertion:discard',_0x1ec2e7),this['_defaultCallbacks']['set']('insertion:join',_0x12ca0b),this['_defaultCallbacks']['set']('insertion:chain',_0x5b9901),this['_defaultCallbacks']['set']('deletion:accept',_0x1ec2e7),this['_defaultCallbacks']['set']('deletion:discard',_0xab649c),this['_defaultCallbacks']['set']('deletion:join',_0x12ca0b),this['_defaultCallbacks']['set']('deletion:chain',_0x5b9901),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a4068),this['_defaultCallbacks']['set']('formatInline:discard',_0xab649c),this['_defaultCallbacks']['set']('formatInline:join',_0x12ca0b),this['_defaultCallbacks']['set']('formatInline:chain',_0xab649c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a4068),this['_defaultCallbacks']['set']('formatBlock:discard',_0xab649c),this['_defaultCallbacks']['set']('formatBlock:join',_0x12ca0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0xab649c),this['_defaultCallbacks']['set']('attribute:accept',_0xab649c),this['_defaultCallbacks']['set']('attribute:discard',(_0x57467a,_0xf5bb35)=>{if(!_0xf5bb35)return;const _0x37e705=this['_editor']['plugins']['get'](TrackChangesEditing);this['_model']['change'](_0x403d67=>{if(_0xf5bb35['key']==renameAttributeKey)for(const _0x19b413 of _0x57467a){const _0x17613f=_0x19b413['start']['nodeAfter'],_0x42d842=_0xf5bb35['oldValue'];_0x403d67['rename'](_0x17613f,_0x42d842);}else{if(_0x37e705['_isBlockAttribute'](_0xf5bb35['key'])){for(const _0x597d09 of _0x57467a)void 0x0!==_0xf5bb35['oldValue']?_0x403d67['setAttribute'](_0xf5bb35['key'],_0xf5bb35['oldValue'],_0x597d09['start']['nodeAfter']):_0x403d67['removeAttribute'](_0xf5bb35['key'],_0x597d09['start']['nodeAfter']);}else{for(const _0x386920 of _0x57467a)_0xf5bb35['oldValue']?_0x403d67['setAttribute'](_0xf5bb35['key'],_0xf5bb35['oldValue'],_0x386920):_0x403d67['removeAttribute'](_0xf5bb35['key'],_0x386920);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x12ca0b);}}function getIntersectionsWithMultipleRanges(_0x2ef5b2,_0x56c889){const _0x2d5b97=[];for(const _0x4b1fc3 of _0x56c889){const _0x427b73=_0x2ef5b2['getIntersection'](_0x4b1fc3);_0x427b73&&_0x2d5b97['push'](_0x427b73);}return _0x2d5b97;}function getDifferencesWithMultipleRanges(_0x4b785f,_0x25f751){const _0x273d6=[_0x4b785f];for(const _0x6dc112 of _0x25f751){let _0x5c1236=0x0;for(;_0x5c1236<_0x273d6['length'];){const _0x1a1663=_0x273d6[_0x5c1236]['getDifference'](_0x6dc112);_0x273d6['splice'](_0x5c1236,0x1,..._0x1a1663),_0x5c1236+=_0x1a1663['length'];}}return _0x273d6;}function _isInObject(_0x14b119,_0x125485,_0x488304){for(const _0x2eb07e of _0x125485['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2eb07e['root']==_0x2eb07e)return!0x1;if(!_0x488304['containsItem'](_0x2eb07e))return!0x1;if(_0x14b119['isObject'](_0x2eb07e)||_0x14b119['isLimit'](_0x2eb07e))return!0x0;}return!0x1;}function rangeOnOpeningTag(_0x26601c){return _0x26601c['end']['parent']==_0x26601c['start']['nodeAfter']&&_0x26601c['end']['isAtStart'];}function rangeOnClosingTag(_0x5e0c08){return _0x5e0c08['start']['parent']==_0x5e0c08['end']['nodeBefore']&&_0x5e0c08['start']['isAtEnd'];}function trimFormatInlineSuggestionRange(_0x50aaf5,_0x563494,_0x20c714,_0xb1fe6e){const _0xf31f9b=_0x1ea60e=>!_0x1ea60e['item']['is']('$textProxy')&&!_0xb1fe6e['isObject'](_0x1ea60e['item']),_0x1ee405=_0x50aaf5['start']['getLastMatchingPosition'](_0xf31f9b),_0x3d1d6c=_0x50aaf5['end']['getLastMatchingPosition'](_0xf31f9b,{'direction':'backward'});return(!_0x50aaf5['start']['isEqual'](_0x1ee405)||!_0x50aaf5['end']['isEqual'](_0x3d1d6c))&&(_0x1ee405['isBefore'](_0x3d1d6c)?_0x20c714['updateMarker'](_0x563494,{'range':_0x20c714['createRange'](_0x1ee405,_0x3d1d6c)}):_0x20c714['removeMarker'](_0x563494),!0x0);}function createFormatSubType(_0x3dbe99){return hashObject(_0x3dbe99);}function isCorrectFormatBlockSuggestionRange(_0x1c092a){const _0x4badf9=_0x1c092a['start']['nodeAfter'];return _0x4badf9&&_0x4badf9['is']('element');}function isEmptyRange(_0x518724){return rangeOnOpeningTag(_0x518724)||rangeOnClosingTag(_0x518724);}function isIntersectingWithOtherMarkers(_0x1b0e51,_0x4ebae2){try{const _0x2f1c01=_0x1b0e51['getRange']();for(const _0x549e1b of _0x4ebae2)if(_0x1b0e51!==_0x549e1b&&_0x2f1c01&&_0x2f1c01['isIntersecting'](_0x549e1b['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function fixAttributeSuggestionRange(_0x4cf3ef,_0x54c6c0){return null==_0x4cf3ef['end']['nodeBefore']&&_0x4cf3ef['end']['parent']==_0x4cf3ef['start']['nodeAfter']?createBlockFormatRangeForElement(_0x4cf3ef['start']['nodeAfter'],_0x54c6c0):_0x4cf3ef;}function createBlockFormatRangeForElement(_0x3dc399,_0xb4664){const _0x270da5=_0xb4664['schema']['isObject'](_0x3dc399)||_0xb4664['schema']['isSelectable'](_0x3dc399);return _0xb4664['createRange'](_0xb4664['createPositionAt'](_0x3dc399,'before'),_0x270da5?_0xb4664['createPositionAfter'](_0x3dc399):_0xb4664['createPositionAt'](_0x3dc399,'end'));}function canChainSuggestions(_0x274a3f,_0x5fc5d8,_0x2655e1,_0x5b9ba4){return!!_haveSameAttributes(_0x274a3f,_0x5fc5d8)&&_0x2655e1['end']['isEqual'](_0x5b9ba4['start']);}function _haveSameAttributes(_0x3528cb,_0x2768a8){if(!_0x3528cb['_isDataLoaded']||!_0x2768a8['_isDataLoaded'])return!0x1;const _0x523f0e=new Set(Object['keys'](_0x3528cb['attributes'])),_0x3c30fa=new Set(Object['keys'](_0x2768a8['attributes']));if(_0x523f0e['delete']('groupId'),_0x3c30fa['delete']('groupId'),0x0==_0x523f0e['size']&&0x0==_0x3c30fa['size'])return!0x0;if(_0x523f0e['size']!=_0x3c30fa['size'])return!0x1;const _0x182c72={..._0x3528cb['attributes']},_0x468229={..._0x2768a8['attributes']};return delete _0x182c72['groupId'],delete _0x468229['groupId'],JSON['stringify'](_0x182c72)==JSON['stringify'](_0x468229);}function _areSimilarAttributes(_0x23f47c,_0x358528){const _0x3f7679=_cleanUpAttributes(_0x23f47c['attributes']),_0x1f39ed=_cleanUpAttributes(_0x358528);if(!_0x23f47c['_isDataLoaded'])return!0x1;for(const _0x2e390f of Object['keys'](_0x1f39ed))if(!isEqual(_0x3f7679[_0x2e390f],_0x1f39ed[_0x2e390f]))return!0x1;return!0x0;}function _cleanUpAttributes(_0x355cbf){const _0x5092e5=Object['assign']({},_0x355cbf);return delete _0x5092e5['skipNestingCheck'],delete _0x5092e5['tablePasteChainId'],_0x5092e5;}function _getAttributeKeyFromSubType(_0x34433d){return _0x34433d['split']('|')[0x0];}async function checkLicense$1(_0x42e4c2){const _0x470958=_0xd70bda([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x345d28=window[_0xd70bda([0x44,0x61,0x74,0x65])][_0xd70bda([0x6e,0x6f,0x77])](),_0x486e16=_0x42e4c2[_0xd70bda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd78e88=new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6480=>{_0x486e16[_0xd70bda([0x6f,0x6e,0x63,0x65])](_0xd70bda([0x72,0x65,0x61,0x64,0x79]),_0x2f6480);}),_0x26491d={[_0xd70bda([0x6b,0x74,0x79])]:_0xd70bda([0x45,0x43]),[_0xd70bda([0x75,0x73,0x65])]:_0xd70bda([0x73,0x69,0x67]),[_0xd70bda([0x63,0x72,0x76])]:_0xd70bda([0x50,0x2d,0x32,0x35,0x36]),[_0xd70bda([0x78])]:_0xd70bda([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xd70bda([0x79])]:_0xd70bda([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xd70bda([0x61,0x6c,0x67])]:_0xd70bda([0x45,0x53,0x32,0x35,0x36])},_0x2a638d=_0x486e16[_0xd70bda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd70bda([0x67,0x65,0x74])](_0xd70bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x3047fb=await(async function(){let _0x4b09b8,_0x15be4e=null,_0x3f3e49=null;try{if(_0x2a638d==_0xd70bda([0x47,0x50,0x4c]))return _0xd70bda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b09b8=(function(){const _0x1b9848=_0x2a638d[_0xd70bda([0x73,0x70,0x6c,0x69,0x74])](_0xd70bda([0x2e]));if(0x3!=_0x1b9848[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x26d6ad=_0x1b9848[0x1];return _0x61d0cf(_0x26d6ad);function _0x61d0cf(_0x275d19){const _0xd6aec4=_0x3a6efd(_0x275d19);return _0xd6aec4&&_0x532f91()?_0xd6aec4:null;function _0x532f91(){const _0x41f928=_0xd6aec4[_0xd70bda([0x6a,0x74,0x69])],_0x3ac89d=window[_0xd70bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41f928[_0xd70bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41f928[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x712c9e={..._0xd6aec4,[_0xd70bda([0x6a,0x74,0x69])]:_0x41f928[_0xd70bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41f928[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x712c9e[_0xd70bda([0x76,0x63])],_0x98b93b(_0x712c9e)==_0x3ac89d;}}}()),!_0x4b09b8)return _0xd70bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x4b09b8[_0xd70bda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f3e49=function(_0x4a9128,_0x22ab6d){return new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc877bf=>{if(_0x3b088e())return _0xc877bf(_0xd70bda([0x56,0x61,0x6c,0x69,0x64]));_0x27f9ae(),_0x486e16[_0xd70bda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd70bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56ca5e=!0x1;const _0x5078bc=uid();function _0x683836(_0x117d2e){return!!_0x117d2e&&(typeof _0x117d2e===_0xd70bda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x117d2e===_0xd70bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x117d2e[_0xd70bda([0x74,0x68,0x65,0x6e])]===_0xd70bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x117d2e[_0xd70bda([0x63,0x61,0x74,0x63,0x68])]===_0xd70bda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x529405(_0x232c7a){_0x3d3542(_0x232c7a)[_0xd70bda([0x74,0x68,0x65,0x6e])](_0x4dd01d=>{if(!_0x4dd01d||_0x4dd01d[_0xd70bda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd70bda([0x6f,0x6b]))return _0xd70bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4853cf(_0x98b93b(_0x5078bc+_0x22ab6d))!=_0x4dd01d[_0xd70bda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd70bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd70bda([0x56,0x61,0x6c,0x69,0x64]);})[_0xd70bda([0x74,0x68,0x65,0x6e])](_0x244618=>(_0x3374d2(),_0x244618),()=>{const _0x43ae90=_0x3f861a();return null==_0x43ae90?(_0x3374d2(),_0xd70bda([0x56,0x61,0x6c,0x69,0x64])):_0xd70bda(_0x345d28-_0x43ae90>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd70bda([0x74,0x68,0x65,0x6e])](_0xc877bf)[_0xd70bda([0x63,0x61,0x74,0x63,0x68])](()=>{_0xc877bf(_0xd70bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xacb174=0x36ee80;function _0x3374d2(){const _0x2c7038=_0xd70bda([0x6c,0x6c,0x63,0x74,0x2d])+_0x4853cf(_0x98b93b(_0x4a9128)),_0xb01f00=_0x52ec5f(_0x4853cf(window[_0xd70bda([0x4d,0x61,0x74,0x68])][_0xd70bda([0x63,0x65,0x69,0x6c])](_0x345d28/_0xacb174)));window[_0xd70bda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd70bda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c7038,_0xb01f00);}function _0x3f861a(){const _0x46470b=_0xd70bda([0x6c,0x6c,0x63,0x74,0x2d])+_0x4853cf(_0x98b93b(_0x4a9128)),_0x344f47=window[_0xd70bda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd70bda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46470b);return _0x344f47?window[_0xd70bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52ec5f(_0x344f47),0x10)*_0xacb174:null;}function _0x3d3542(_0x791b12){return new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x540858,_0x2073f0)=>{_0x791b12[_0xd70bda([0x74,0x68,0x65,0x6e])](_0x540858,_0x2073f0),window[_0xd70bda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2073f0,0x1d4c0);});}}_0x486e16[_0xd70bda([0x6f,0x6e])](_0xd70bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5de83c,_0x1508b8)=>{if(_0x1508b8[0x0]!=_0x4a9128)return _0xc877bf(_0xd70bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1508b8[0x1]={..._0x1508b8[0x1],[_0xd70bda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5078bc};},{[_0xd70bda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd70bda([0x68,0x69,0x67,0x68])}),_0x486e16[_0xd70bda([0x6f,0x6e])](_0xd70bda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25f65c=>{_0x683836(_0x25f65c[_0xd70bda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56ca5e=!0x0,_0x529405(_0x25f65c[_0xd70bda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd70bda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd70bda([0x6c,0x6f,0x77])}),_0xd78e88[_0xd70bda([0x74,0x68,0x65,0x6e])](()=>{_0x56ca5e||_0xc877bf(_0xd70bda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b088e(){return _0x486e16[_0xd70bda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd70bda([0x76,0x69,0x65,0x77])][_0xd70bda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd70bda([0x61,0x75,0x74,0x6f]);}function _0x27f9ae(){_0x486e16[_0xd70bda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd70bda([0x76,0x69,0x65,0x77])][_0xd70bda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd70bda([0x61,0x75,0x74,0x6f]);}}(_0x4b09b8[_0xd70bda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b09b8[_0xd70bda([0x6a,0x74,0x69])]));const _0x2b59b7=await(async function(){let _0x4b9fdd=!0x0;try{const _0x383979=_0x2a638d[_0xd70bda([0x73,0x70,0x6c,0x69,0x74])](_0xd70bda([0x2e])),[_0x4707a0,_0x52adf3,_0x595b11]=_0x383979;return _0x606853(_0x4707a0),await _0x4cec39(_0x4707a0,_0x52adf3,_0x595b11),_0x4b9fdd;}catch{return!0x1;}function _0x606853(_0x18123e){const _0x245872=_0x3a6efd(_0x18123e);_0x245872&&_0x245872[_0xd70bda([0x61,0x6c,0x67])]==_0xd70bda([0x45,0x53,0x32,0x35,0x36])||(_0x4b9fdd=!0x1);}async function _0x4cec39(_0x5493ae,_0x47e36c,_0x409f77){const _0x5ec3f6=window[_0xd70bda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd70bda([0x66,0x72,0x6f,0x6d])](_0x21cd20(_0x409f77),_0x2415d9=>_0x2415d9[_0xd70bda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bbd08=new window[(_0xd70bda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd70bda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5493ae+_0xd70bda([0x2e])+_0x47e36c),_0x96a0fa=window[_0xd70bda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd70bda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x96a0fa)return;const _0x20cf59=await _0x96a0fa[_0xd70bda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd70bda([0x6a,0x77,0x6b]),_0x26491d,{[_0xd70bda([0x6e,0x61,0x6d,0x65])]:_0xd70bda([0x45,0x43,0x44,0x53,0x41]),[_0xd70bda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd70bda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd70bda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x96a0fa[_0xd70bda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd70bda([0x6e,0x61,0x6d,0x65])]:_0xd70bda([0x45,0x43,0x44,0x53,0x41]),[_0xd70bda([0x68,0x61,0x73,0x68])]:{[_0xd70bda([0x6e,0x61,0x6d,0x65])]:_0xd70bda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20cf59,_0x5ec3f6,_0x3bbd08)||(_0x4b9fdd=!0x1);}}());return _0x2b59b7?(function(){const _0x274bc7=_0x4b09b8[_0xd70bda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x274bc7)return!0x1;if(_0x274bc7[_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd70bda([0x2a])))return!0x0;if(_0x274bc7[_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd70bda([0x54,0x43])))return!0x0;if(_0x274bc7[_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd70bda([0x52,0x54,0x43]))){if(_0x4eed45(_0xd70bda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&(_0x5ad28d=_0xd70bda([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]),_0x486e16[_0xd70bda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd70bda([0x67,0x65,0x74])](_0x5ad28d))[_0xd70bda([0x73,0x74,0x61,0x74,0x65])]==_0xd70bda([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]))return!0x0;if(_0x4eed45(_0xd70bda([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]))||_0x4eed45(_0xd70bda([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72])))return!0x0;}var _0x5ad28d;return!0x1;}())?(function(){const _0x587f4b=[_0xd70bda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd70bda([0x74,0x72,0x69,0x61,0x6c])][_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b09b8[_0xd70bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x345d28/0x3e8:0x69e02680;return _0x4b09b8[_0xd70bda([0x65,0x78,0x70])]<_0x587f4b;}())?_0xd70bda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x221d08=_0x4b09b8[_0xd70bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x221d08||0x0==_0x221d08[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12b689}=new URL(window[_0xd70bda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x221d08[_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12b689))return!0x0;const _0x3d5952=_0x12b689[_0xd70bda([0x73,0x70,0x6c,0x69,0x74])](_0xd70bda([0x2e]));return _0x221d08[_0xd70bda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b5dd3=>_0x3b5dd3[_0xd70bda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd70bda([0x2a])))[_0xd70bda([0x6d,0x61,0x70])](_0x2007ff=>_0x2007ff[_0xd70bda([0x73,0x70,0x6c,0x69,0x74])](_0xd70bda([0x2e])))[_0xd70bda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c8146=>_0x3c8146[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d5952[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd70bda([0x6d,0x61,0x70])](_0x4d9c07=>Array(_0x3d5952[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d9c07[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd70bda([0x66,0x69,0x6c,0x6c])](_0x4d9c07[0x0]===_0xd70bda([0x2a])?_0xd70bda([0x2a]):'')[_0xd70bda([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d9c07))[_0xd70bda([0x73,0x6f,0x6d,0x65])](_0x546aa9=>_0x3d5952[_0xd70bda([0x65,0x76,0x65,0x72,0x79])]((_0x49f4a4,_0x3047fc)=>_0x546aa9[_0x3047fc]===_0x49f4a4||_0x546aa9[_0x3047fc]===_0xd70bda([0x2a])));}())?(_0x4b09b8[_0xd70bda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd70bda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15be4e=function(_0x2dbdae){const _0x4e61a4=new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54da43=>setTimeout(_0x54da43,0x93ecc)),_0x3437f9=_0xd78e88[_0xd70bda([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567c60=>{let _0xcd42e3=0x0;_0x486e16[_0xd70bda([0x6d,0x6f,0x64,0x65,0x6c])][_0xd70bda([0x6f,0x6e])](_0xd70bda([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1995b7,_0x1a1006)=>{_0x1a1006[0x0][_0xd70bda([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xcd42e3++,0x5e8==_0xcd42e3&&(_0x567c60(),_0x1995b7[_0xd70bda([0x6f,0x66,0x66])]());});})),_0x2451e8=[_0x4e61a4,_0x3437f9];return window[_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd70bda([0x72,0x61,0x63,0x65])](_0x2451e8)[_0xd70bda([0x74,0x68,0x65,0x6e])](()=>_0x2dbdae);}(_0xd70bda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x15be4e&&_0x3f3e49)return new window[(_0xd70bda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ceea5,_0x142741)=>{_0x15be4e[_0xd70bda([0x74,0x68,0x65,0x6e])](_0x1ceea5,_0x142741),_0x3f3e49[_0xd70bda([0x74,0x68,0x65,0x6e])](_0x49b156=>{_0x49b156!=_0xd70bda([0x56,0x61,0x6c,0x69,0x64])&&_0x1ceea5(_0x49b156);},_0x142741);});return _0x15be4e||_0x3f3e49||_0xd70bda([0x56,0x61,0x6c,0x69,0x64]);}())):_0xd70bda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd70bda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd70bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd70bda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x3a6efd(_0x106307){return _0x106307[_0xd70bda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd70bda([0x65,0x79]))?JSON[_0xd70bda([0x70,0x61,0x72,0x73,0x65])](_0x21cd20(_0x106307)):null;}function _0x21cd20(_0x3d7b28){return window[_0xd70bda([0x61,0x74,0x6f,0x62])](_0x3d7b28[_0xd70bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd70bda([0x2b]))[_0xd70bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd70bda([0x2f])));}function _0x98b93b(_0x544893){let _0x195661=0x1505;function _0x4c18f0(_0x12ad94){for(let _0x4683af=0x0;_0x4683af<_0x12ad94[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4683af++){const _0x56860d=_0x12ad94[_0xd70bda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4683af);_0x195661=(_0x195661<<0x5)+_0x195661+_0x56860d,_0x195661&=_0x195661;}}return function _0x501193(_0x2371f7){Array[_0xd70bda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2371f7)?_0x2371f7[_0xd70bda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x501193):_0x2371f7&&typeof _0x2371f7==_0xd70bda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd70bda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2371f7)[_0xd70bda([0x73,0x6f,0x72,0x74])]()[_0xd70bda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23089f,_0x10b963])=>{_0x4c18f0(_0x23089f),_0x501193(_0x10b963);}):_0x4c18f0(window[_0xd70bda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2371f7));}(_0x544893),_0x195661>>>0x0;}function _0x4853cf(_0x1afcaa){return _0x1afcaa[_0xd70bda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd70bda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd70bda([0x30]));}function _0x52ec5f(_0xa89d68){return _0xa89d68[_0xd70bda([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd70bda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd70bda([0x6a,0x6f,0x69,0x6e])]('');}function _0x4eed45(_0x1de8fe){return _0x486e16[_0xd70bda([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd70bda([0x68,0x61,0x73])](_0x1de8fe);}function _0x521a38(){}function _0xd70bda(_0x43a679){return _0x43a679['map'](_0x3b1325=>String['fromCharCode'](_0x3b1325))['join']('');}!function(_0x23133e){const _0x565bd3=(function(){const _0x468fe1=window[_0xd70bda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd70bda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd70bda([0x6e,0x6f,0x77])]())[_0xd70bda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd70bda([0x2e]),'');let _0x4d7dd0=_0xd70bda([0x52]);for(let _0x5e125c=0x0;_0x5e125c<_0x468fe1[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e125c+=0x2){let _0x398422=window[_0xd70bda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468fe1[_0xd70bda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e125c,_0x5e125c+0x2));_0x398422>=_0x470958[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x398422-=_0x470958[_0xd70bda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d7dd0+=_0x470958[_0x398422];}return _0x4d7dd0;}());_0x486e16[_0x565bd3]=_0xd70bda([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23133e,_0x23133e!=_0xd70bda([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0xd78e88,_0x486e16[_0xd70bda([0x6d,0x6f,0x64,0x65,0x6c])][_0xd70bda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x521a38,_0x486e16[_0xd70bda([0x6d,0x6f,0x64,0x65,0x6c])][_0xd70bda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x521a38,_0x486e16[_0xd70bda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd70bda([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x3047fb);}class SuggestionController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x33b7c8,_0x1706bc,_0xf2ce8f,_0x32d3bb){super(),this['model']=_0x1706bc,this['view']=_0xf2ce8f,this['commentThreadController']=_0x32d3bb,this['_editor']=_0x33b7c8,this['_acceptCommand']=_0x33b7c8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x33b7c8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x22e946,_0x57190a)=>_0x22e946||_0x57190a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5d1f5b=>_0x5d1f5b&&this['_editor']['model']['canEditAt'](_0x1706bc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x7ae69b=>_0x7ae69b&&this['_editor']['model']['canEditAt'](_0x1706bc['getRanges']())),this['_pendingAction']=null,_0xf2ce8f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf2ce8f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf2ce8f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf2ce8f,'change:isDirty',()=>{_0xf2ce8f['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 _0x551618=getTranslation$1(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x551618);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends View{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xde0be,_0x3184c1,_0x944975,_0x320b09){super(_0xde0be),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new AriaDescriptionView(_0xde0be,getTranslation$1(_0xde0be,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3184c1['authoredAt']),this['bind']('authoredAt')['to'](_0x3184c1),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',_0x3184c1,'authoredAt',this,'descriptionParts',(_0x44a03c,_0x2f7e4a,_0x2311c6)=>{const _0x3e8df3=_0x2311c6['map'](_0x537e6c=>renderDescription(_0x537e6c['content']))['join']('.\x20')+'.';return getTranslation$1(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44a03c-0x1,_0x3184c1['author']['name'],_0x2f7e4a?_0x320b09['formatDateTime'](_0x2f7e4a):'',new DOMParser()['parseFromString'](_0x3e8df3,'text/html')['body']['textContent']]);}),this['focusables']=new ViewCollection(),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x392b12=>_0x392b12['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3184c1,this['_localUser']=_0x944975,this['_config']=_0x320b09,_0x320b09['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),setupThreadKeyboardNavigation(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xf195ad}=this['_config'];this['commentsListView']=new _0xf195ad(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',_0x3cc86f=>_0x3cc86f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x26c1f1,_0x3628ab)=>_0x26c1f1||!!_0x3628ab);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4038d9}=this['_config'],_0xe8b9dc=new _0x4038d9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x302d12=_0xe8b9dc['commentInputView'];return _0xe8b9dc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x302d12,'value',(_0x8984db,_0x62de0a,_0x52cb9b)=>!!_0x52cb9b||_0x8984db&&!_0x62de0a),_0x302d12['on']('submit',(_0x3ede96,_0x2743df)=>{this['fire']('addComment',_0x2743df),_0x302d12['editor']['setData']('');}),_0x302d12['on']('cancel',()=>this['focus']()),_0x302d12['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xe8b9dc;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1002a2,_0x443420,_0x4177c0,_0x575a22){super(_0x1002a2,_0x443420,_0x4177c0,_0x575a22),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a872b=>_0x3a872b&&_0x3a872b[0x0]?_0x3a872b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3afba9,_0xc08dc3)=>{let _0x5594d7='';for(const _0xb43aa8 of _0x3afba9)_0x5594d7+='<p>'+renderDescription(_0xb43aa8['content'],_0xb43aa8['color'])+'</p>';return _0xc08dc3?_0x5594d7:trimHtml(_0x5594d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x575a22['SuggestionView'](_0x1002a2,_0x443420,{'formatDateTime':_0x575a22['formatDateTime']}),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 _0x30fe10=this['bindTemplate'],_0x1869cb=[this['suggestionView']];this['commentsListView']&&_0x1869cb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1869cb['push'](this['commentThreadInputView']),_0x1869cb['push'](this['ariaDescriptionView']);const _0x289b80={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x30fe10['if']('isActive','ck-suggestion-wrapper--active'),_0x30fe10['to']('type',_0x46df40=>'ck-suggestion-'+_0x46df40),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':_0x30fe10['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1869cb};return _0x289b80;}['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));}}class SuggestionView extends View{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x33ef72,_0x3c9217,_0x328d6d){super(_0x33ef72),this['_model']=_0x3c9217,this['_config']=_0x328d6d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3c9217),this['acceptButton']=this['_createButton'](getTranslation$1(_0x33ef72,'Accept\x20suggestion'),IconCheck,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](getTranslation$1(_0x33ef72,'Discard\x20suggestion'),IconCancel,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new UserView(_0x33ef72,_0x3c9217['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new ViewCollection([this['acceptButton'],this['discardButton']]),this['focusTracker']=new FocusTracker(),this['keystrokes']=new KeystrokeHandler(),this['focusCycler']=new FocusCycler({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c766f=>_0x3c766f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1e3117=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1e3117['innerHTML']=this['description'],this['on']('change:description',(_0x2fe1e8,_0x1a6331,_0x1559d5)=>{_0x1e3117['innerHTML']=_0x1559d5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x109258=this['bindTemplate'],_0x12cbb6=[{'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':_0x109258['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x109258['to']('authoredAt',_0x2483b0=>this['_config']['formatDateTime'](_0x2483b0))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x12cbb6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'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':_0x12cbb6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):getTranslation$1(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?getTranslation$1(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):getTranslation$1(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3bb030,_0x399900,_0x5f1907,_0x389468,_0x3a76bd){const _0x418798=new LateFocusButtonView(this['locale']);return _0x418798['set']({'label':_0x3bb030,'icon':_0x399900,'tooltip':!0x0,'tooltipPosition':_0x3a76bd}),_0x418798['extendTemplate']({'attributes':{'class':_0x5f1907}}),_0x418798['on']('execute',()=>{this['fire'](_0x389468,this['_model']['id']);}),_0x418798;}['_setupKeyboardNavigation'](){const _0x9c5ea4=this['element'];this['keystrokes']['listenTo'](_0x9c5ea4);for(const _0x5b2f98 of this['focusables'])this['focusTracker']['add'](_0x5b2f98['element']),this['keystrokes']['listenTo'](_0x5b2f98['element']);this['keystrokes']['set']('enter',(_0x500bc1,_0x489c32)=>{_0x9c5ea4===_0x500bc1['target']&&(this['focusCycler']['focusFirst'](),_0x489c32());}),this['keystrokes']['set']('esc',(_0x7a67ba,_0xd145dc)=>{_0x9c5ea4!==_0x7a67ba['target']&&(this['focus'](),_0xd145dc());});}}class TrackChangesUI extends Plugin{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,Users,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x507041){super(_0x507041),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531753=this['editor']['config'];_0x531753['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x531753['define']('trackChanges.SuggestionView',SuggestionView),_0x531753['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531753['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x85d9c6,_0x5a9767){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5db355,_0x269165]of this['_handleControllerBuffer']){const _0x8cc9b=this['_suggestionToController']['has'](_0x5db355);_0x8cc9b||_0x269165?_0x8cc9b&&_0x269165&&this['_destroyController'](_0x5db355):this['_initializeController'](_0x5db355);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x85d9c6,_0x5a9767);}['init'](){const _0x5d40a9=this['editor'],_0x5efea4=_0x5d40a9['plugins']['get']('TrackChangesEditing'),_0x47f3e8=_0x5d40a9['plugins']['get']('Annotations'),_0x28d514=_0x5d40a9['plugins']['get']('EditorAnnotations'),_0x1b8007=_0x5d40a9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x28d514['addSourceCollector'](()=>{const _0x4e7a4d=[];for(const [_0x1f5391,_0x51c83e]of Array['from'](this['_suggestionToController'])){const _0x56c105=_0x1f5391['getAllAdjacentSuggestions'](),_0x20994d=[];for(const _0x2da43c of _0x56c105){if(!_0x2da43c['isInContent'])continue;if(_0x2da43c['isMultiRange']){_0x20994d['push'](..._0x2da43c['getRanges']());continue;}const _0x349e84=_0x2da43c['getFirstRange']();if(_0x20994d['length']>0x0){const _0x40bebf=_0x20994d[0x0]['getJoined'](_0x349e84);if(_0x40bebf){_0x20994d[0x0]=_0x40bebf;continue;}}_0x20994d['push'](_0x349e84);}_0x4e7a4d['push']([_0x51c83e['view'],_0x20994d]);}return _0x4e7a4d;}),this['listenTo'](_0x5efea4,'suggestionLoaded',(_0xe0c0e9,_0x17a750)=>{this['listenTo'](_0x17a750,'change:previous',(_0x93dc15,_0x34dde2,_0x454414,_0x192c0d)=>{_0x17a750['isInContent']&&(null==_0x454414?(this['_updateController'](_0x192c0d['head']),this['_handleSuggestionControllerDelayed'](_0x17a750,!0x1)):(this['_updateController'](_0x454414['head']),null==_0x192c0d&&this['_handleSuggestionControllerDelayed'](_0x17a750,!0x0)));}),null!==_0x17a750['previous']?this['_updateController'](_0x17a750['head']):this['_handleSuggestionControllerDelayed'](_0x17a750,!0x1);}),this['listenTo'](_0x5efea4,'suggestionUnloaded',(_0x5e5782,_0xac139,_0x2a7629)=>{this['stopListening'](_0xac139,'change:previous'),this['_handleControllerBuffer']['delete'](_0xac139),this['_suggestionToController']['has'](_0xac139)&&this['_destroyController'](_0xac139),_0x2a7629&&this['_updateController'](_0x2a7629['head']);}),this['listenTo'](_0x5efea4,'suggestionChanged',(_0x360c7c,_0x2ee590)=>{this['_updateController'](_0x2ee590);}),this['listenTo'](_0x47f3e8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b8007,'addComment',(_0x2fc079,{threadId:_0x5e1f5d,isFromAdapter:_0x5ac76b})=>{if(_0x5ac76b||!_0x5efea4['hasSuggestion'](_0x5e1f5d))return;const _0x8847fc=_0x5efea4['getSuggestion'](_0x5e1f5d);this['_suggestionToController']['get'](_0x8847fc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5974cd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2d981d;for(const _0x1bbe28 in _0x5974cd){const _0x350079=_0x1bbe28,_0x43280a=_0x5974cd[_0x350079];if('trackChangesLicenseKeyValid'==_0x43280a||'trackChangesLicenseKeyInvalid'==_0x43280a||'trackChangesLicenseKeyExpired'==_0x43280a||'trackChangesLicenseKeyDomainLimit'==_0x43280a||'trackChangesLicenseKeyNotAllowed'==_0x43280a||'trackChangesLicenseKeyEvaluationLimit'==_0x43280a||'trackChangesLicenseKeyUsageLimit'==_0x43280a){delete _0x5974cd[_0x350079],_0x2d981d=_0x43280a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2d981d&&_0x5974cd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2d981d&&_0x5974cd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2d981d&&_0x5974cd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2d981d&&_0x5974cd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2d981d&&_0x5974cd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2d981d&&_0x5974cd['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3c67db){const _0x4c2925=this['_suggestionToController']['get'](_0x3c67db);if(!_0x4c2925)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4c2925['view'])||null;}['getSuggestionForAnnotation'](_0x48e0ed){const _0x4b4df7=this['_viewToController']['get'](_0x48e0ed['innerView']);return _0x4b4df7?_0x4b4df7['model']:null;}['_refreshActiveMarkers'](){const _0x2361d3=this['editor']['plugins']['get']('Annotations'),_0x1699f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ba8d5=Array['from'](_0x2361d3['activeAnnotations'],_0x13127f=>_0x13127f['innerView'])['filter'](_0x31b7f0=>this['_viewToController']['has'](_0x31b7f0)),_0x3b2629=[];for(const _0x9890f3 of _0x2ba8d5){const _0x386f17=this['_viewToController']['get'](_0x9890f3)['model']['getAllAdjacentSuggestions']();_0x3b2629['push'](..._0x386f17['reduce']((_0x5b75dd,_0x208dc7)=>[..._0x5b75dd,..._0x208dc7['getMarkerNames']()],[]));}_0x1699f1['activeMarkers']=_0x3b2629;}['_addUIComponentsToFactory'](){const _0x436646=this['editor'],_0x2dfd00=_0x436646['locale'],_0x416da0=getTranslation$1(_0x2dfd00,'Track\x20changes'),_0x53b5be=new Collection([{'type':'switchbutton','model':new UIModel({'withText':!0x0,'isToggleable':!0x0,'label':_0x416da0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2dfd00,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2dfd00,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2dfd00,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2dfd00,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x436646['plugins']['has']('TrackChangesPreview')&&_0x53b5be['addMany']([{'type':'separator'},{'type':'button','model':new UIModel({'withText':!0x0,'label':getTranslation$1(_0x2dfd00,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3faa7d of _0x53b5be)if(isListDropdownButtonDefinition(_0x3faa7d)){const _0x364b6c=_0x436646['commands']['get'](_0x3faa7d['model']['commandName']);_0x3faa7d['model']['bind']('isOn','isEnabled')['to'](_0x364b6c,'value','isEnabled');}_0x436646['ui']['componentFactory']['add']('trackChanges',_0x4e4e66=>this['_createToolbarButton'](_0x4e4e66,_0x53b5be,_0x416da0)),_0x436646['ui']['componentFactory']['add']('menuBar:trackChanges',_0x164bc2=>this['_createMenuBarMenu'](_0x164bc2,_0x53b5be,_0x416da0));}['_createToolbarButton'](_0x125fd0,_0x282ca1,_0x374a3b){const _0x57f38b=createDropdown(_0x125fd0,SplitButtonView),_0x85e190=this['editor']['commands']['get']('trackChanges');_0x57f38b['buttonView']['set']({'tooltip':_0x374a3b,'label':_0x374a3b,'icon':IconTrackChanges}),_0x57f38b['buttonView']['bind']('isOn')['to'](_0x85e190,'value'),_0x57f38b['buttonView']['on']('execute',()=>{_0x85e190['execute'](),this['editor']['editing']['view']['focus']();}),addListToDropdown(_0x57f38b,_0x282ca1,{'role':'menu'});const _0x3c5244=[];for(const _0x5d44fd of _0x282ca1)isListDropdownButtonDefinition(_0x5d44fd)&&_0x3c5244['push'](this['editor']['commands']['get'](_0x5d44fd['model']['commandName']));const _0x16d296=_0x57f38b['buttonView'];return _0x16d296['actionView']['unbind']('isEnabled'),_0x16d296['arrowView']['unbind']('isEnabled'),_0x16d296['actionView']['bind']('isEnabled')['to'](_0x85e190,'isEnabled'),_0x16d296['arrowView']['bind']('isEnabled')['toMany'](_0x3c5244,'isEnabled',(..._0x3b0a26)=>_0x3b0a26['some'](_0xc6cbf2=>_0xc6cbf2)),_0x57f38b['on']('execute',_0x765f45=>{this['editor']['execute'](_0x765f45['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x57f38b;}['_createMenuBarMenu'](_0x5aee32,_0x24d6e1,_0x1c44ac){const _0x37df55=new MenuBarMenuView(_0x5aee32),_0x4439da=this['editor']['commands']['get']('trackChanges');_0x37df55['buttonView']['set']({'label':_0x1c44ac,'icon':IconTrackChanges});const _0x2eb302=new MenuBarMenuListView(_0x5aee32);for(const _0x40204e of _0x24d6e1){if('separator'==_0x40204e['type']){_0x2eb302['items']['add'](new ListSeparatorView(_0x5aee32));continue;}const _0x2e3959=new MenuBarMenuListItemView(_0x5aee32,_0x37df55),_0x1bb200=new MenuBarMenuListItemButtonView(_0x5aee32),_0xb1d5ca=_0x40204e['model'];_0x1bb200['bind'](...Object['keys'](_0xb1d5ca))['to'](_0xb1d5ca),_0x1bb200['delegate']('execute')['to'](_0x37df55),_0x1bb200['on']('execute',()=>{this['editor']['execute'](_0xb1d5ca['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e3959['children']['add'](_0x1bb200),_0x2eb302['items']['add'](_0x2e3959);}return _0x37df55['bind']('isEnabled')['to'](_0x4439da,'isEnabled'),_0x37df55['panelView']['children']['add'](_0x2eb302),_0x37df55;}['_initializeController'](_0x1e287){const _0x2d6388=this['editor'],_0x5b295b=_0x2d6388['config'],_0x134993=_0x2d6388['plugins']['get']('Annotations'),_0x147be4=_0x2d6388['plugins']['get']('CommentsRepository'),_0x3ae05d=_0x2d6388['plugins']['get']('EditorAnnotations'),_0x57659c=_0x2d6388['plugins']['get'](Users)['me'],_0x4ec03c=_0x5b295b['get']('trackChanges')['SuggestionThreadView'],_0x5f0073=_0x5b295b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4171e0,CommentThreadInputView:_0xda7b6c}=_0x2d6388['plugins']['get']('CommentsUI');let _0x3c4ee8,_0x15ac36,_0x58e36e;this['_annotationViews']['has'](_0x1e287['id'])?(_0x15ac36=this['_annotationViews']['get'](_0x1e287['id']),_0x3c4ee8=_0x15ac36['mainView']):(_0x3c4ee8=new _0x4ec03c(_0x2d6388['locale'],_0x1e287,_0x57659c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5b295b['get']('comments.editorConfig'),'licenseKey':_0x5b295b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5b295b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5b295b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5b295b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':getDateTimeFormatter(_0x5b295b['get']('locale'),_0x2d6388['locale']),'CommentView':_0x5b295b['get']('comments')['CommentView'],'CommentsListView':_0x4171e0,'CommentThreadInputView':_0xda7b6c,'SuggestionView':_0x5f0073}),_0x3c4ee8['suggestionView']['acceptButton']['on']('execute',()=>{_0x2d6388['editing']['view']['focus']();}),_0x3c4ee8['suggestionView']['discardButton']['on']('execute',()=>{_0x2d6388['editing']['view']['focus']();}),_0x15ac36=_0x134993['createAnnotationView'](this['editor']['locale'],_0x3c4ee8),_0x15ac36['bind']('isDirty')['to'](_0x3c4ee8,'isDirty'),_0x15ac36['bind']('length')['to'](_0x3c4ee8),_0x15ac36['bind']('type')['to'](_0x3c4ee8,'type',_0xa8765b=>'suggestion-'+_0xa8765b),_0x3c4ee8['on']('escape',()=>{_0x58e36e['fire']('escape');}),this['_annotationViews']['set'](_0x1e287['id'],_0x15ac36));const _0x3a2347=_0x147be4['createCommentThreadController'](_0x1e287['commentThread'],_0x3c4ee8),_0x19034e=new SuggestionController(_0x2d6388,_0x1e287,_0x3c4ee8,_0x3a2347),_0x28a6f6=_0x1e287['getAllAdjacentSuggestions']()['filter'](_0x328343=>_0x328343['isInContent']);_0x3c4ee8['descriptionParts']=_0x2d6388['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x28a6f6),this['_suggestionToController']['set'](_0x1e287,_0x19034e),this['_viewToController']['set'](_0x3c4ee8,_0x19034e);const _0x2dde9d=()=>{const _0x21dbaf=[],_0x5420e9=_0x1e287['getAllAdjacentSuggestions']()['filter'](_0x547a15=>_0x547a15['isInContent']);for(const _0x33a3a1 of _0x5420e9)_0x21dbaf['push'](..._0x33a3a1['getMarkers']());return getAllMarkersDomElementsSorted(_0x2d6388['editing'],_0x21dbaf);};_0x58e36e=_0x134993['createAnnotation']({'view':_0x15ac36,'target':_0x2dde9d,'type':()=>'suggestion-'+_0x19034e['view']['type'],'isVisible':!!_0x2dde9d()}),_0x147be4['_bindAnnotationToEditors'](_0x3c4ee8,_0x58e36e),_0x134993['add'](_0x58e36e),_0x3ae05d['registerAnnotation'](_0x58e36e);}['_destroyController'](_0x33b3a8){const _0x4272b6=this['editor']['plugins']['get']('CommentsRepository'),_0x1e189a=this['editor']['plugins']['get']('Annotations'),_0x43866d=this['_suggestionToController']['get'](_0x33b3a8),_0x1b94c0=_0x43866d['view'],_0x1049b0=_0x1e189a['getByInnerView'](_0x1b94c0);_0x4272b6['_unbindEditors'](_0x1b94c0),_0x1049b0&&_0x1e189a['remove'](_0x1049b0),this['_suggestionToController']['delete'](_0x33b3a8),this['_viewToController']['delete'](_0x1b94c0),_0x43866d['destroy']();}['_updateController'](_0x246460){if(!_0x246460['isInContent']||!this['_suggestionToController']['has'](_0x246460))return;const _0x13eae4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbf8e8=this['_suggestionToController']['get'](_0x246460),_0xb47786=_0x246460['getAllAdjacentSuggestions']();_0xbf8e8['view']['descriptionParts']=_0x13eae4['descriptionFactory']['getDescriptions'](_0xb47786);}['destroy'](){for(const _0x3928f4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3928f4);for(const _0x2cfe19 of this['_annotationViews']['values']())_0x2cfe19['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function isListDropdownButtonDefinition(_0x21588a){return'model'in _0x21588a;}class TrackChanges extends Plugin{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1df1ab){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x1df1ab;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x2d5016){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x2d5016);}['getSuggestions']({skipNotAttached:_0x38f279=!0x1,toJSON:_0x54d017=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x38f279,'toJSON':_0x54d017});}['getSuggestion'](_0x9c4f4){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x9c4f4);}}const blackListedPlugins=['Pagination'];class TrackChangesData extends Plugin{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f4347=this['editor'];if(_0x5f4347['config']['define']('trackChangesData.editorCreator',_0x15213a=>{const _0x8b7fa2=_0x5f4347['model']['document']['getRootNames']()['reduce']((_0x19021b,_0x5e3032)=>(_0x19021b[_0x5e3032]='',_0x19021b),{});return _0x5f4347['constructor']['create'](_0x8b7fa2,_0x15213a);}),'function'!=typeof _0x5f4347['config']['get']('trackChangesData')['editorCreator'])throw new CKEditorError('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6781ae){return getTrackChangesData(this['editor'],!0x0,_0x6781ae);}['getDataWithDiscardedSuggestions'](_0x668734){return getTrackChangesData(this['editor'],!0x1,_0x668734);}}class TrackChangesDataGetter extends Plugin{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9ea5e){function _0x3ef583(_0x477e25){return _0x477e25['map'](_0x337215=>String['fromCharCode'](_0x337215))['join']('');}super(_0x9ea5e),this['result']='end',_0x9ea5e[_0x3ef583([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ef583([0x76,0x69,0x65,0x77])][_0x3ef583([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ef583([0x61,0x75,0x74,0x6f]),_0x9ea5e[_0x3ef583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ef583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ef583([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ef583([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ef583([0x6f,0x6b])});}['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 isMultiRootEditor$1(_0xc11765){return void 0x0!==_0xc11765['getRootsAttributes'];}async function getTrackChangesData(_0xfb324,_0x40e251,_0x9d4c2d){const _0x542a59=sanitizeEditorConfig(_0xfb324,blackListedPlugins);_0x542a59['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),_0x542a59['rootsAttributes']=isMultiRootEditor$1(_0xfb324)?_0xfb324['getRootsAttributes']():void 0x0;const _0x265876=document['createDocumentFragment'](),_0x47ea6c=_0xfb324['config']['get']('trackChangesData')['editorCreator'],_0x24b6c4=await _0x47ea6c(_0x542a59,()=>createAttachedElement(_0x265876));copyEditorData(_0xfb324,_0x24b6c4),_0x24b6c4['execute'](_0x40e251?'acceptAllSuggestions':'discardAllSuggestions');const _0x204a57=isMultiRootEditor$1(_0x24b6c4)?_0x24b6c4['getFullData'](_0x9d4c2d):_0x24b6c4['data']['get'](_0x9d4c2d);return await _0x24b6c4['destroy'](),_0x204a57;}function copyEditorData(_0x5e790d,_0x325416){const _0x5c335f=_0x5e790d['model']['document']['getRootNames']()['reduce']((_0x5b3f00,_0xa3f6d7)=>(_0x5b3f00[_0xa3f6d7]=_0x5e790d['data']['get']({'rootName':_0xa3f6d7}),_0x5b3f00),{}),_0x469bf5=_0x5e790d['plugins']['get']('Users')['users']['map'](_0x1df4c4=>({'id':_0x1df4c4['id'],'name':_0x1df4c4['name']})),_0x37622b=_0x5e790d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x27444e=_0x5e790d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43bd0f=_0x325416['plugins']['get']('Users'),_0x24220f=_0x325416['plugins']['get']('TrackChangesEditing'),_0x5e6a44=_0x325416['plugins']['get']('CommentsRepository');for(const _0x3cf427 of _0x5e6a44['getCommentThreads']())_0x3cf427['remove']();for(const _0x3c4b02 of _0x469bf5)_0x43bd0f['getUser'](_0x3c4b02['id'])||_0x43bd0f['addUser'](_0x3c4b02);_0x43bd0f['me']||_0x43bd0f['useAnonymousUser']();for(const _0x25e44b of _0x27444e)_0x5e6a44['addCommentThread'](_0x25e44b);for(const _0x3f7c28 of _0x37622b)_0x24220f['addSuggestionData'](_0x3f7c28);_0x325416['data']['set'](_0x5c335f);}function createAttachedElement(_0x59ff55){const _0x1461e8=document['createElement']('div');return _0x59ff55['appendChild'](_0x1461e8),_0x1461e8;}class TrackChangesPreviewView extends View{['options'];constructor(_0x2e01ea,_0x13d258){super(_0x2e01ea),this['options']=_0x13d258,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'](_0x565e29,_0x40d626){if(!this['element'])return;const _0xdaf5b=[];for(const [_0x5af4be,_0x56ba77]of _0x565e29){const _0x4d5eba=document['createElement']('div');_0x4d5eba['setAttribute']('data-ck-root-name',_0x5af4be),_0x4d5eba['className']=_0x56ba77['classes']+'\x20ck-track-changes-preview__root-container',_0x4d5eba['innerHTML']=_0x56ba77['content'],_0xdaf5b['push'](_0x4d5eba);}_0x40d626(this['element'],_0xdaf5b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends Command{constructor(_0x2d389e){super(_0x2d389e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xc7bd4f=this['editor'],_0xff1551=_0xc7bd4f['locale'],_0x1540fb=_0xc7bd4f['plugins']['get']('Dialog');let _0x1e5b2c;const _0x2adfa1=getEditables(_0xc7bd4f),_0x360194=calculateDialogRects(_0x2adfa1);_0x1540fb['show']({'id':'finalContentPreview','title':getTranslation$1(_0xff1551,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0xff1551,{'dialogRects':_0x360194}),'onHide':()=>{_0x1e5b2c['detachFromDom']();},'onShow':()=>{_0xc7bd4f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7f5600=>{const _0x2cdc49=this['_standarizeRootsData'](_0x7f5600,_0xc7bd4f,_0x2adfa1);_0x1540fb['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2cdc49,_0xc7bd4f['config']['get']('trackChanges.preview.renderFunction'));}),_0x1e5b2c=new BodyCollection(_0xff1551,[_0x1540fb['view']]),_0x1e5b2c['attachToDom'](),_0x1e5b2c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xc7bd4f['once']('destroy',()=>{_0x1e5b2c['detachFromDom']();});const _0x750ed0=_0x1540fb['view']['headerView']['class'];_0x1540fb['view']['headerView']['class']=_0x750ed0?_0x750ed0+'\x20ck-reset_all':'ck-reset_all',_0x1540fb['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1540fb['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x38f2f5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4b9ba9=_0x38f2f5['previewMode'],_0x34a48d={};if('$labels'===_0x4b9ba9){for(const _0x37f8f7 of _0x38f2f5['getMergeFieldsIds']())_0x34a48d[_0x37f8f7]=_0x38f2f5['getLabel'](_0x37f8f7)||_0x37f8f7;}else{const _0x6fca91='$defaultValues'===_0x4b9ba9?_0x38f2f5['getDefaultValues']():_0x38f2f5['getDataSetValues'](_0x4b9ba9,!0x0);for(const _0x20a34e of Object['entries'](_0x6fca91)){const [_0x474b8d,_0x367d5e]=_0x20a34e;_0x34a48d[_0x474b8d]=null!==_0x367d5e?_0x367d5e:_0x38f2f5['getLabel'](_0x474b8d)||_0x474b8d;}}return{'mergeFieldsData':_0x34a48d};}['_standarizeRootsData'](_0x583daa,_0x2569eb,_0x28dbde){let _0x449304;if('string'==typeof _0x583daa){const _0x828720=_0x2569eb['model']['document']['getRootNames']()[0x0];_0x449304={[_0x828720]:_0x583daa};}else _0x449304=_0x583daa;const _0x1bc372=this['_fixMediaEmbeds'](_0x449304,_0x2569eb);return addEditableClasses(this['_sortRoots'](_0x2569eb)['reduce']((_0x180dbb,_0x507617)=>(_0x180dbb['push']([_0x507617,{'content':_0x1bc372[_0x507617],'classes':''}]),_0x180dbb),[]),_0x28dbde);}['_fixMediaEmbeds'](_0x9f50d1,_0x28da52){if(!_0x28da52['plugins']['has']('MediaEmbedEditing'))return _0x9f50d1;const _0x54606f=_0x28da52['plugins']['get']('MediaEmbedEditing');for(const [_0x529dc5,_0x398bac]of Object['entries'](_0x9f50d1)){const _0x481dad=document['createElement']('div');_0x481dad['innerHTML']=_0x398bac,(_0x481dad['querySelectorAll']('figure.media')['forEach'](_0x18a88a=>{const _0x5b485f=_0x18a88a['querySelector']('oembed');if(_0x5b485f){const _0x4bc7f9=_0x5b485f['getAttribute']('url');if(_0x4bc7f9){const _0x30e1c5=_0x54606f['registry']['getMediaViewElement'](new ViewDowncastWriter(_0x28da52['editing']['view']['document']),_0x4bc7f9,{'elementName':'','renderForEditingView':!0x0}),_0x2ea870=document['createElement']('div');_0x2ea870['classList']['add']('ck-media__wrapper'),_0x30e1c5['render'](_0x2ea870,_0x28da52['editing']['view']['domConverter']),_0x5b485f['replaceWith'](_0x2ea870);}}}),_0x9f50d1[_0x529dc5]=_0x481dad['innerHTML']);}return _0x9f50d1;}['_sortRoots'](_0x3305dd){if(!isMultiRootEditor(_0x3305dd))return _0x3305dd['model']['document']['getRootNames']();const _0x454f12=[],_0xa48989=new Map();for(const _0x51d22e of _0x3305dd['model']['document']['getRootNames']()){const _0x484f66=_0x3305dd['editing']['view']['getDomRoot'](_0x51d22e)['getClientRects']()['item'](0x0);_0x454f12['push'](_0x51d22e),_0xa48989['set'](_0x51d22e,_0x484f66);}return _0x454f12['sort']((_0x3ce11d,_0x34e073)=>{const _0x4d1567=_0xa48989['get'](_0x3ce11d),_0xf2c998=_0xa48989['get'](_0x34e073);return _0x4d1567['y']-_0xf2c998['y']||_0x4d1567['x']-_0xf2c998['x'];}),_0x454f12;}}function getEditables(_0x54e2f1){const _0x422cc3={};if('editables'in _0x54e2f1['ui']['view']){for(const [_0xbc6848,_0x439e60]of Object['entries'](_0x54e2f1['ui']['view']['editables']))_0x422cc3[_0xbc6848]=_0x439e60['element'];}else _0x422cc3[_0x54e2f1['model']['document']['getRootNames']()[0x0]]=_0x54e2f1['ui']['view']['editable']['element'];return _0x422cc3;}function calculateDialogRects(_0x46dff0){let _0x54a95b=0x0;for(const _0x466915 of Object['values'](_0x46dff0))_0x54a95b=Math['max'](_0x54a95b,_0x466915['getBoundingClientRect']()['width']);let _0x8fe084=0x0;for(const _0x5c899e of Object['values'](_0x46dff0))_0x8fe084+=_0x5c899e['getBoundingClientRect']()['height'];const _0xd5fccd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x54a95b,'height':Math['min'](_0x8fe084,_0xd5fccd)};}function addEditableClasses(_0x277954,_0x3067d0){for(const [_0x1d64c4,_0x5eeca7]of _0x277954)_0x5eeca7['classes']=_0x3067d0[_0x1d64c4]['classList']['value']['replace']('ck-focused','');return _0x277954;}function isMultiRootEditor(_0x42ee21){return void 0x0!==_0x42ee21['getRootsAttributes'];}class TrackChangesPreview extends Plugin{static get['requires'](){return[TrackChangesData,Dialog];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b6592){super(_0x4b6592),_0x4b6592['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x4b6592['config']['define']('trackChanges.preview.renderFunction',(_0x1f8924,_0x5158e2)=>{for(const _0x4e2b40 of _0x5158e2)_0x1f8924['appendChild'](_0x4e2b40);});}}var UploadcareSource=function(_0x2b0f18){return _0x2b0f18['Local']='local',_0x2b0f18['URL']='url',_0x2b0f18['Dropbox']='dropbox',_0x2b0f18['GDrive']='gdrive',_0x2b0f18['Facebook']='facebook',_0x2b0f18['GPhotos']='gphotos',_0x2b0f18['OneDrive']='onedrive',_0x2b0f18;}({});function getTranslation(_0x245549,_0x33b77c,_0x942c54){const t=_0x245549['t'],_0x586980=_0x245549['t'];switch(_0x33b77c){case UploadcareSource['Local']:return{'text':_0x586980('Insert'===_0x942c54?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x586980('From\x20computer')};case UploadcareSource['URL']:return{'text':'Insert'===_0x942c54?_0x586980('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x586980('Via\x20URL')};case UploadcareSource['Dropbox']:return{'text':t('Insert'===_0x942c54?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case UploadcareSource['Facebook']:return{'text':t('Insert'===_0x942c54?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case UploadcareSource['GDrive']:return{'text':t('Insert'===_0x942c54?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case UploadcareSource['GPhotos']:return{'text':t('Insert'===_0x942c54?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case UploadcareSource['OneDrive']:return{'text':t('Insert'===_0x942c54?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x33b77c;}}class UploadcareUI extends Plugin{['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 _0x46ee61=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44626e;for(const _0x3f7e09 in _0x46ee61){const _0x42fd59=_0x3f7e09,_0x5b80f7=_0x46ee61[_0x42fd59];if('uploadcareLicenseKeyValid'==_0x5b80f7||'uploadcareLicenseKeyInvalid'==_0x5b80f7||'uploadcareLicenseKeyExpired'==_0x5b80f7||'uploadcareLicenseKeyDomainLimit'==_0x5b80f7||'uploadcareLicenseKeyNotAllowed'==_0x5b80f7||'uploadcareLicenseKeyEvaluationLimit'==_0x5b80f7||'uploadcareLicenseKeyUsageLimit'==_0x5b80f7){delete _0x46ee61[_0x42fd59],_0x44626e=_0x5b80f7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x44626e&&_0x46ee61['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x44626e&&_0x46ee61['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x44626e&&_0x46ee61['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x44626e&&_0x46ee61['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x44626e&&_0x46ee61['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x44626e&&_0x46ee61['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3bf8ce}=this,_0x505c47=_0x3bf8ce['commands']['get']('uploadcare');if(!_0x505c47)return;const _0x4e7f52=this['_normalizeConfigSourceList'](_0x3bf8ce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4c8428,_0x2b0faa)=>{const _0x40e48a=this['_getIntegrationKey'](_0x2b0faa['type']);return _0x4c8428[_0x40e48a]||(_0x4c8428[_0x40e48a]=[]),_0x4c8428[_0x40e48a]['push'](_0x2b0faa),_0x4c8428;},{});_0x3bf8ce['plugins']['has']('ImageInsertUI')&&_0x3bf8ce['commands']['get']('uploadcare')&&Object['entries'](_0x4e7f52)['forEach'](([_0x42ecff,_0x576cd9])=>{_0x3bf8ce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x42ecff,'observable':()=>_0x505c47,'buttonViewCreator':()=>this['_createToolbarButton'](_0x576cd9),'formViewCreator':()=>this['_createDropdownButtons'](_0x576cd9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x576cd9),'override':'assetManager'!==_0x42ecff});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3fd6a4){const {locale:_0x1c4faa}=this['editor'];return _0x3fd6a4['map'](_0x295be9=>{const _0x4219b7=getTranslation(_0x1c4faa,_0x295be9,'Insert');switch(_0x295be9){case UploadcareSource['Local']:return{'icon':IconUploadcareImageUpload,'type':UploadcareSource['Local'],..._0x4219b7};case UploadcareSource['URL']:return{'icon':IconUploadcareLink,'type':UploadcareSource['URL'],..._0x4219b7};case UploadcareSource['Dropbox']:return{'icon':IconDropbox,'type':UploadcareSource['Dropbox'],..._0x4219b7};case UploadcareSource['Facebook']:return{'icon':IconFacebook,'type':UploadcareSource['Facebook'],..._0x4219b7};case UploadcareSource['GDrive']:return{'icon':IconGoogleDrive,'type':UploadcareSource['GDrive'],..._0x4219b7};case UploadcareSource['GPhotos']:return{'icon':IconGooglePhotos,'type':UploadcareSource['GPhotos'],..._0x4219b7};case UploadcareSource['OneDrive']:return{'icon':IconOneDrive,'type':UploadcareSource['OneDrive'],..._0x4219b7};}});}['_getIntegrationKey'](_0x497171){switch(_0x497171){case UploadcareSource['Local']:return'upload';case UploadcareSource['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x30fe09,_0x20768c){const _0x193f05=this['editor'],_0x182d05=new _0x30fe09(_0x193f05['locale']),_0x2edde2=_0x193f05['commands']['get']('uploadcare');return _0x182d05['bind']('isEnabled')['to'](_0x2edde2),_0x182d05['on']('execute',()=>{_0x2edde2['execute'](_0x20768c);}),_0x182d05;}['_createToolbarButton'](_0x4f7890){const {locale:_0x582911}=this['editor'],_0x4d5ecf=this['editor']['plugins']['get']('ImageInsertUI'),_0x59fa17=_0x4f7890[0x0],_0x483d8a=this['_createButton'](ButtonView,_0x59fa17['type']);return _0x483d8a['icon']=_0x59fa17['icon'],_0x483d8a['bind']('label')['to'](_0x4d5ecf,'isImageSelected',_0x4a35aa=>getTranslation(_0x582911,_0x59fa17['type'],_0x4a35aa?'Replace':'Insert')['text']),_0x483d8a['tooltip']=!0x0,_0x483d8a;}['_createDropdownButtons'](_0x36c960){const {locale:_0x4694f5}=this['editor'],_0xa973de=this['editor']['plugins']['get']('ImageInsertUI');return _0x36c960['map'](_0x5233c5=>{const _0x3d4cc8=this['_createButton'](ButtonView,_0x5233c5['type']);return _0x3d4cc8['withText']=!0x0,_0x3d4cc8['icon']=_0x5233c5['icon'],_0x3d4cc8['bind']('label')['to'](_0xa973de,'isImageSelected',_0x304cd9=>getTranslation(_0x4694f5,_0x5233c5['type'],_0x304cd9?'Replace':'Insert')['text']),_0x3d4cc8;});}['_createMenuBarButtons'](_0x475414){return _0x475414['map'](_0x569c59=>{const _0x33e634=this['_createButton'](MenuBarMenuListItemButtonView,_0x569c59['type']);return _0x33e634['icon']=_0x569c59['icon'],_0x33e634['label']=_0x569c59['shortText'],_0x33e634;});}}class DialogFocusManagerView extends View{['focusTracker'];['focusCycler'];constructor(_0x52f298){super(_0x52f298),this['focusTracker']=new FocusTracker(),this['focusCycler']=new FocusCycler({'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');})}};}}class UploadcareFormView extends DialogFocusManagerView{constructor(_0x186e0f,_0x2ef88e){super(_0x186e0f),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-'+_0x2ef88e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function createEditabilityChecker(_0x211c27){const _0x598499=createUrlChecker(_0x211c27);return _0x336a20=>!(!_0x336a20||!_0x336a20['is']('element','imageBlock')&&!_0x336a20['is']('element','imageInline'))&&(!!_0x336a20['hasAttribute']('uploadcareImageId')||!!_0x336a20['hasAttribute']('src')&&_0x598499(_0x336a20['getAttribute']('src')));}function getImageUrls(_0x38ffaf,_0xc78201){const _0x4d9ab8=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x354dfc=>_0x354dfc<=_0xc78201)['map'](_0x4506fc=>_0x38ffaf['replace'](/\/$/,'')+'/-/resize/'+_0x4506fc+'x/\x20'+_0x4506fc+'w');return{'imageFallbackUrl':_0x38ffaf,'imageSources':[{'srcset':_0x4d9ab8['join'](',\x20'),'sizes':'(max-width:\x20'+_0xc78201+'px)\x20100vw,\x20'+_0xc78201+'px','type':'image/webp'}]};}function getImageDimension(_0x60ecd8,_0xae355e,_0x3c6839){const _0xffeb4c=_0x60ecd8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xffeb4c?parseInt(_0xffeb4c[0x1],0xa):_0xae355e,'height':_0xffeb4c?parseInt(_0xffeb4c[0x2],0xa):_0x3c6839};}function showImageProcessingIndicator(_0x39bace,_0x231795){const _0x493102=new(DomEmitterMixin())(),_0x40c645=_0x39bace['plugins']['get']('ImageUtils'),_0x771966=_0x39bace['editing']['mapper']['toViewElement'](_0x231795),_0x96c34b=_0x40c645['findViewImgElement'](_0x771966),_0x1cd79b=_0x39bace['editing']['view']['domConverter']['viewToDom'](_0x96c34b),_0xc95c41=_0x231795['getAttribute']('width'),_0x1847eb=_0x231795['getAttribute']('height'),_0x184ee3='image-processing';_0x39bace['editing']['view']['change'](_0x396f54=>{_0x396f54['addClass'](_0x184ee3,_0x771966),_0x396f54['setStyle']('aspect-ratio',_0xc95c41+'/'+_0x1847eb,_0x96c34b);}),_0x493102['listenTo'](_0x1cd79b,'load',()=>{_0x493102['stopListening'](_0x1cd79b,'load'),_0x39bace['editing']['view']['change'](_0x102cf0=>{_0x102cf0['removeClass'](_0x184ee3,_0x771966),_0x102cf0['removeStyle']('aspect-ratio',_0x96c34b);});});}function createUrlChecker(_0x102741){if(Array['isArray'](_0x102741)){const _0x5f1dd4=_0x102741['map'](createUrlChecker);return _0x37bb9b=>_0x5f1dd4['some'](_0x335092=>_0x335092(_0x37bb9b));}if('origin'==_0x102741){const _0xee3418=_0x59f9c1['window']['location']['origin'];return _0x4c77d9=>new URL(_0x4c77d9,_0x59f9c1['document']['baseURI'])['origin']==_0xee3418;}return'function'==typeof _0x102741?_0x102741:_0x102741 instanceof RegExp?_0x16b977=>!(!_0x16b977['match'](_0x102741)&&!_0x16b977['replace'](/^https?:\/\//,'')['match'](_0x102741)):()=>!0x1;}function isAncestor(_0x1d4205,_0x3a9733){return getAncestors(_0x1d4205['target'])['includes'](_0x3a9733);}class UploadcareController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x14eb9c,_0xff9d18,_0x340450){super(),this['_editor']=_0x14eb9c,this['_editing']=_0xff9d18,this['_dialog']=_0x14eb9c['plugins']['get'](Dialog),this['_api']=_0xff9d18['ctxElement']['getAPI'](),this['_type']=_0x340450,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:_0x13584,model:_0x295183}=this['_editor'],_0x1d3369=_0x295183['document']['selection']['getSelectedElement'](),_0x3a987f=_0x1d3369&&(_0x1d3369['is']('element','imageBlock')||_0x1d3369['is']('element','imageInline'));this['_formView']=new UploadcareFormView(_0x13584,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':IconUploadcareImageUpload,'title':getTranslation(_0x13584,this['_type'],_0x3a987f?'Replace':'Insert')['text'],'content':this['_formView'],'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x41aac1=>!isAncestor(_0x41aac1,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2b42db}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x11d4c2=>{const _0x424ae5=_0x2b42db['length'];for(const _0x273c58 of _0x2b42db){const _0x12fca2=_0x273c58===_0x2b42db[_0x424ae5-0x1],{cdnUrl:_0x2d025d,fileInfo:_0xb99089}=_0x273c58;if(!_0x2d025d||!_0xb99089)continue;const {width:_0x4c3cc7,height:_0x1a7652}=_0xb99089['imageInfo'],_0x13140a=getImageDimension(_0x2d025d,_0x4c3cc7,_0x1a7652),_0x557ea0=getImageUrls(_0x2d025d,_0x13140a['width']),_0x5666a8={'id':_0xb99089['uuid'],'type':'image','attributes':{'imageDimension':_0x13140a,..._0x557ea0}};this['_insertAsset'](_0x5666a8,_0x12fca2,_0x11d4c2);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x249a62=>{'idle'===_0x249a62['detail']['status']&&!_0x249a62['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===UploadcareSource['Local']?this['_api']['setCurrentActivity'](UploadcareSource['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1746b6,_0x29e70c,_0x189a07){const _0xdfd5a5=this['_editor']['model']['document']['selection'],_0x3e28eb=_0xdfd5a5['getSelectedElement'](),_0x54bce8=!(!_0x3e28eb||!_0x3e28eb['is']('element','imageInline'));_0x189a07['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1746b6,_0x54bce8),_0x29e70c||_0x189a07['setSelection'](_0xdfd5a5['getLastPosition']());}['_insertImage'](_0x3944e3,_0xfa3053){const _0x522754=this['_editor'],{imageDimension:_0x2a4112,imageFallbackUrl:_0x974343,imageSources:_0x3319c0}=_0x3944e3['attributes'];_0x522754['execute']('insertImage',{'imageType':_0xfa3053?'imageInline':null,'source':{'uploadcareImageId':_0x3944e3['id'],'src':_0x974343,'sources':_0x3319c0,..._0x2a4112}});}}class UploadcareCommand extends Command{['_editing'];['_controller']=null;static get['requires'](){return[Dialog,UploadcareEditing];}constructor(_0x485aa1){super(_0x485aa1),this['_editing']=_0x485aa1['plugins']['get'](UploadcareEditing);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x430312){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new UploadcareController(this['editor'],this['_editing'],_0x430312);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}function isObject$1(_0x5796d1){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x5796d1);}const SEPARATOR$1=/\W|_/g;function camelizeString$1(_0xa8f822){return _0xa8f822['split'](SEPARATOR$1)['map']((_0x3afba5,_0x1925d5)=>_0x3afba5['charAt'](0x0)[_0x1925d5>0x0?'toUpperCase':'toLowerCase']()+_0x3afba5['slice'](0x1))['join']('');}function camelizeArrayItems$1(_0xf63f30,{ignoreKeys:_0x4dcdcb}={'ignoreKeys':[]}){return Array['isArray'](_0xf63f30)?_0xf63f30['map'](_0x25c97b=>camelizeKeys$1(_0x25c97b,{'ignoreKeys':_0x4dcdcb})):_0xf63f30;}function camelizeKeys$1(_0x53f22d,{ignoreKeys:_0x348f0e}={'ignoreKeys':[]}){if(Array['isArray'](_0x53f22d))return camelizeArrayItems$1(_0x53f22d,{'ignoreKeys':_0x348f0e});if(!isObject$1(_0x53f22d))return _0x53f22d;const _0x52deea={};for(const _0x4478ee of Object['keys'](_0x53f22d)){let _0x3e69f6=_0x53f22d[_0x4478ee];_0x348f0e['includes'](_0x4478ee)?_0x52deea[_0x4478ee]=_0x3e69f6:(isObject$1(_0x3e69f6)?_0x3e69f6=camelizeKeys$1(_0x3e69f6,{'ignoreKeys':_0x348f0e}):Array['isArray'](_0x3e69f6)&&(_0x3e69f6=camelizeArrayItems$1(_0x3e69f6,{'ignoreKeys':_0x348f0e})),_0x52deea[camelizeString$1(_0x4478ee)]=_0x3e69f6);}return _0x52deea;}const delay$1=_0xed12d2=>new Promise(_0x31c007=>setTimeout(_0x31c007,_0xed12d2));function getUserAgent$1$1({libraryName:_0x54d381,libraryVersion:_0x1c9c21,userAgent:_0x5708ee,publicKey:_0x3b2e75='',integration:_0x47b302=''}){const _0x2048de='JavaScript';if('string'==typeof _0x5708ee)return _0x5708ee;if('function'==typeof _0x5708ee)return _0x5708ee({'publicKey':_0x3b2e75,'libraryName':_0x54d381,'libraryVersion':_0x1c9c21,'languageName':_0x2048de,'integration':_0x47b302});return[_0x54d381,_0x1c9c21,_0x3b2e75]['filter'](Boolean)['join']('/')+'\x20('+[_0x2048de,_0x47b302]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions$1={'factor':0x2,'time':0x64};function retrier$1(_0x39fb03,_0x2b37cd=defaultOptions$1){let _0x130a4b=0x0;return function _0x45d944(_0x3cb658){const _0xede77b=Math['round'](_0x2b37cd['time']*_0x2b37cd['factor']**_0x130a4b);return _0x3cb658({'attempt':_0x130a4b,'retry':_0x23182e=>delay$1(_0x23182e??_0xede77b)['then'](()=>(_0x130a4b+=0x1,_0x45d944(_0x3cb658)))});}(_0x39fb03);}let UploadcareError$1=class extends Error{},NetworkError$1=class e extends UploadcareError$1{['originalProgressEvent'];constructor(_0x30efa5){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,e['prototype']),this['originalProgressEvent']=_0x30efa5;}};const onCancel$1=(_0x556627,_0x5cc2db)=>{_0x556627&&(_0x556627['aborted']?Promise['resolve']()['then'](_0x5cc2db):_0x556627['addEventListener']('abort',()=>_0x5cc2db(),{'once':!0x0}));};let CancelError$1=class e extends UploadcareError$1{['isCancel']=!0x0;constructor(_0x14ec2f='Request\x20canceled'){super(_0x14ec2f),this['name']='CancelError',Object['setPrototypeOf'](this,e['prototype']);}};const DEFAULT_INTERVAL$1=0x1f4,poll$1=({check:_0x22fd5e,interval:_0x2372e2=DEFAULT_INTERVAL$1,timeout:_0x28ca37,signal:_0x28a51a})=>new Promise((_0x494fcd,_0xfd6da6)=>{let _0x408340,_0x2598f9;onCancel$1(_0x28a51a,()=>{_0x408340&&clearTimeout(_0x408340),_0xfd6da6(new CancelError$1('Poll\x20cancelled'));}),_0x28ca37&&(_0x2598f9=setTimeout(()=>{_0x408340&&clearTimeout(_0x408340),_0xfd6da6(new CancelError$1('Timed\x20out'));},_0x28ca37));const _0x1d1f3c=()=>{try{Promise['resolve'](_0x22fd5e(_0x28a51a))['then'](_0x16b569=>{_0x16b569?(_0x2598f9&&clearTimeout(_0x2598f9),_0x494fcd(_0x16b569)):_0x408340=setTimeout(_0x1d1f3c,_0x2372e2);})['catch'](_0x4a383d=>{_0x2598f9&&clearTimeout(_0x2598f9),_0xfd6da6(_0x4a383d);});}catch(_0x4a2e07){_0x2598f9&&clearTimeout(_0x2598f9),_0xfd6da6(_0x4a2e07);}};_0x408340=setTimeout(_0x1d1f3c,0x0);}),defaultSettings$1={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType$1='application/octet-stream',defaultFilename$1='original',request$1=({method:_0x1cbbe0,url:_0x21c329,data:_0x3ed68b,headers:_0x171580={},signal:_0x1233bb,onProgress:_0xc85ef3})=>new Promise((_0x14e47d,_0x2c92f1)=>{const _0xd54ecd=new XMLHttpRequest(),_0x5b2cf6=_0x1cbbe0?.['toUpperCase']()||'GET';let _0x59bf02=!0x1;_0xd54ecd['open'](_0x5b2cf6,_0x21c329,!0x0),_0x171580&&Object['entries'](_0x171580)['forEach'](_0x22d065=>{const [_0x36e2fb,_0x139588]=_0x22d065;void 0x0!==_0x139588&&!Array['isArray'](_0x139588)&&_0xd54ecd['setRequestHeader'](_0x36e2fb,_0x139588);}),_0xd54ecd['responseType']='text',onCancel$1(_0x1233bb,()=>{_0x59bf02=!0x0,_0xd54ecd['abort'](),_0x2c92f1(new CancelError$1());}),_0xd54ecd['onload']=()=>{if(0xc8!=_0xd54ecd['status'])_0x2c92f1(new Error('Error\x20'+_0xd54ecd['status']+':\x20'+_0xd54ecd['statusText']));else{const _0x5c5a0d={'method':_0x5b2cf6,'url':_0x21c329,'data':_0x3ed68b,'headers':_0x171580||void 0x0,'signal':_0x1233bb,'onProgress':_0xc85ef3},_0x542713=_0xd54ecd['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x46ad0c={};_0x542713['forEach'](function(_0x14883d){const _0x111b3f=_0x14883d['split'](':\x20'),_0x1bd386=_0x111b3f['shift'](),_0x50869a=_0x111b3f['join'](':\x20');_0x1bd386&&void 0x0!==_0x1bd386&&(_0x46ad0c[_0x1bd386]=_0x50869a);});const _0x5e404b=_0xd54ecd['response'],_0x27b3c4=_0xd54ecd['status'];_0x14e47d({'request':_0x5c5a0d,'data':_0x5e404b,'headers':_0x46ad0c,'status':_0x27b3c4});}},_0xd54ecd['onerror']=_0x4f1f15=>{_0x59bf02||_0x2c92f1(new NetworkError$1(_0x4f1f15));},_0xc85ef3&&'function'==typeof _0xc85ef3&&(_0xd54ecd['upload']['onprogress']=_0x7a9214=>{_0x7a9214['lengthComputable']?_0xc85ef3({'isComputable':!0x0,'value':_0x7a9214['loaded']/_0x7a9214['total']}):_0xc85ef3({'isComputable':!0x1});}),_0x3ed68b?_0xd54ecd['send'](_0x3ed68b):_0xd54ecd['send']();});function identity$1(_0x3c5f5a,..._0x508bc2){return _0x3c5f5a;}const getFileOptions$1=({name:_0x5e0756})=>_0x5e0756?[_0x5e0756]:[],transformFile$1=identity$1;var getFormData$1=()=>new FormData();const isBuffer$1=_0x1932da=>!0x1,isBlob$1=_0x313542=>'undefined'!=typeof Blob&&_0x313542 instanceof Blob,isFile$1=_0x4d6cac=>'undefined'!=typeof File&&_0x4d6cac instanceof File,isReactNativeAsset$1=_0x4a7625=>!!_0x4a7625&&'object'==typeof _0x4a7625&&!Array['isArray'](_0x4a7625)&&'uri'in _0x4a7625&&'string'==typeof _0x4a7625['uri'],isFileData$1=_0x32076a=>isBlob$1(_0x32076a)||isFile$1(_0x32076a)||isBuffer$1()||isReactNativeAsset$1(_0x32076a),isSimpleValue$1=_0x18978f=>'string'==typeof _0x18978f||'number'==typeof _0x18978f||void 0x0===_0x18978f,isObjectValue$1=_0x15f594=>!!_0x15f594&&'object'==typeof _0x15f594&&!Array['isArray'](_0x15f594),isFileValue$1=_0x59ff6b=>!!_0x59ff6b&&'object'==typeof _0x59ff6b&&'data'in _0x59ff6b&&isFileData$1(_0x59ff6b['data']);function collectParams$1(_0xd9a23b,_0x11effd,_0x161d62){if(Array['isArray'](_0x161d62)){for(const _0x44aca8 of _0x161d62)collectParams$1(_0xd9a23b,_0x11effd+'[]',_0x44aca8);}else{if(isFileValue$1(_0x161d62)){const {name:_0x927dd7,contentType:_0x32c296}=_0x161d62,_0x2954a2=transformFile$1(_0x161d62['data'],_0x927dd7,_0x32c296??defaultContentType$1),_0x71fc05=getFileOptions$1({'name':_0x927dd7});_0xd9a23b['push']([_0x11effd,_0x2954a2,..._0x71fc05]);}else{if(isObjectValue$1(_0x161d62)){for(const [_0x42b9cf,_0x2ea74d]of Object['entries'](_0x161d62))void 0x0!==_0x2ea74d&&_0xd9a23b['push']([_0x11effd+'['+_0x42b9cf+']',String(_0x2ea74d)]);}else isSimpleValue$1(_0x161d62)&&_0x161d62&&_0xd9a23b['push']([_0x11effd,_0x161d62['toString']()]);}}}function getFormDataParams$1(_0x43912f){const _0x42b56d=[];for(const [_0x1a2a57,_0x45d581]of Object['entries'](_0x43912f))collectParams$1(_0x42b56d,_0x1a2a57,_0x45d581);return _0x42b56d;}function buildFormData$1(_0x15d96d){const _0x3c66bc=getFormData$1(),_0x5d9188=getFormDataParams$1(_0x15d96d);for(const _0x4837b4 of _0x5d9188){const [_0x52c46e,_0x341383,..._0x18fdeb]=_0x4837b4;_0x3c66bc['append'](_0x52c46e,_0x341383,..._0x18fdeb);}return _0x3c66bc;}let UploadError$1=class e extends UploadcareError$1{['code'];['request'];['response'];['headers'];constructor(_0x3fd2f1,_0x195108,_0x8a1062,_0x40c0a9,_0x3c9afc){super(),this['name']='UploadError',this['message']=_0x3fd2f1,this['code']=_0x195108,this['request']=_0x8a1062,this['response']=_0x40c0a9,this['headers']=_0x3c9afc,Object['setPrototypeOf'](this,e['prototype']);}};const buildSearchParams$1=_0x3801d7=>{const _0x1522b1=new URLSearchParams();for(const [_0x45218b,_0x2f5566]of Object['entries'](_0x3801d7))_0x2f5566&&'object'==typeof _0x2f5566&&!Array['isArray'](_0x2f5566)?Object['entries'](_0x2f5566)['filter'](_0x1deeca=>_0x1deeca[0x1]??!0x1)['forEach'](_0x2f07f5=>_0x1522b1['set'](_0x45218b+'['+_0x2f07f5[0x0]+']',String(_0x2f07f5[0x1]))):Array['isArray'](_0x2f5566)?_0x2f5566['forEach'](_0x4d5772=>{_0x1522b1['append'](_0x45218b+'[]',_0x4d5772);}):'string'==typeof _0x2f5566&&_0x2f5566?_0x1522b1['set'](_0x45218b,_0x2f5566):'number'==typeof _0x2f5566&&_0x1522b1['set'](_0x45218b,_0x2f5566['toString']());return _0x1522b1['toString']();},getUrl$1=(_0x51b0da,_0x21e6d7,_0x3523e1)=>{const _0x3c49f3=new URL(_0x51b0da);return _0x3c49f3['pathname']=(_0x3c49f3['pathname']+_0x21e6d7)['replace']('//','/'),_0x3523e1&&(_0x3c49f3['search']=buildSearchParams$1(_0x3523e1)),_0x3c49f3['toString']();};var version$2='6.14.3';const LIBRARY_NAME$1='UploadcareUploadClient',LIBRARY_VERSION$1=version$2;function getUserAgent$2(_0x348f0b){return getUserAgent$1$1({'libraryName':LIBRARY_NAME$1,'libraryVersion':LIBRARY_VERSION$1,..._0x348f0b});}const REQUEST_WAS_THROTTLED_CODE$1='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT$1=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT$1=0x3e8;function getTimeoutFromThrottledRequest$1(_0xc4ca6f){const {headers:_0x19a45d}=_0xc4ca6f||{};if(!_0x19a45d||'string'!=typeof _0x19a45d['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT$1;const _0x479bb2=parseInt(_0x19a45d['retry-after'],0xa);return Number['isFinite'](_0x479bb2)?0x3e8*_0x479bb2:DEFAULT_RETRY_AFTER_TIMEOUT$1;}function retryIfFailed$1(_0xaddbbf,_0xfc98b2){const {retryThrottledRequestMaxTimes:_0x5240e1,retryNetworkErrorMaxTimes:_0x4cbef2}=_0xfc98b2;return retrier$1(({attempt:_0x25ff2e,retry:_0x5ee5be})=>_0xaddbbf()['catch'](_0x1cad53=>{if('response'in _0x1cad53&&_0x1cad53?.['code']===REQUEST_WAS_THROTTLED_CODE$1&&_0x25ff2e<_0x5240e1)return _0x5ee5be(getTimeoutFromThrottledRequest$1(_0x1cad53));if(_0x1cad53 instanceof NetworkError$1&&_0x25ff2e<_0x4cbef2)return _0x5ee5be((_0x25ff2e+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT$1);throw _0x1cad53;}));}const getContentType$1=_0x2e2996=>{let _0x588103='';return(isBlob$1(_0x2e2996)||isFile$1(_0x2e2996)||isReactNativeAsset$1(_0x2e2996))&&(_0x588103=_0x2e2996['type']),_0x588103||defaultContentType$1;},getFileName$1=_0x20deac=>{let _0x27c103='';return isFile$1(_0x20deac)&&_0x20deac['name']?_0x27c103=_0x20deac['name']:isBlob$1(_0x20deac)||isBuffer$1()?_0x27c103='':isReactNativeAsset$1(_0x20deac)&&_0x20deac['name']&&(_0x27c103=_0x20deac['name']),_0x27c103||defaultFilename$1;};function getStoreValue$1(_0x36e3d8){return void 0x0===_0x36e3d8||'auto'===_0x36e3d8?'auto':_0x36e3d8?'1':'0';}function base$1(_0x423ad3,{publicKey:_0x277a69,fileName:_0x50364e,contentType:_0x1a9f76,baseURL:_0x266fc0=defaultSettings$1['baseURL'],secureSignature:_0x27d9c6,secureExpire:_0xaf093a,store:_0x59f9a4,signal:_0x397ac1,onProgress:_0x17d6a1,source:_0x45f4e0='local',integration:_0x5b2a45,userAgent:_0x5623c5,retryThrottledRequestMaxTimes:_0x38b860=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x32f25b=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x3f0293}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x266fc0,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x277a69,'integration':_0x5b2a45,'userAgent':_0x5623c5})},'data':buildFormData$1({'file':{'data':_0x423ad3,'name':_0x50364e||getFileName$1(_0x423ad3),'contentType':_0x1a9f76||getContentType$1(_0x423ad3)},'UPLOADCARE_PUB_KEY':_0x277a69,'UPLOADCARE_STORE':getStoreValue$1(_0x59f9a4),'signature':_0x27d9c6,'expire':_0xaf093a,'source':_0x45f4e0,'metadata':_0x3f0293}),'signal':_0x397ac1,'onProgress':_0x17d6a1})['then'](({data:_0x4ec6bd,headers:_0x26a6b1,request:_0x227e6e})=>{const _0x41e5ac=camelizeKeys$1(JSON['parse'](_0x4ec6bd));if('error'in _0x41e5ac)throw new UploadError$1(_0x41e5ac['error']['content'],_0x41e5ac['error']['errorCode'],_0x227e6e,_0x41e5ac,_0x26a6b1);return _0x41e5ac;}),{'retryNetworkErrorMaxTimes':_0x32f25b,'retryThrottledRequestMaxTimes':_0x38b860});}var TypeEnum$1,Status$1;function fromUrl$1(_0xe12f17,{publicKey:_0x1c6afb,baseURL:_0xd1f218=defaultSettings$1['baseURL'],store:_0x4d8e74,fileName:_0x2f8ccb,checkForUrlDuplicates:_0x4bee17,saveUrlForRecurrentUploads:_0x225ec1,secureSignature:_0x53d726,secureExpire:_0x1093ef,source:_0x384bfb='url',signal:_0x2b87af,integration:_0x19a080,userAgent:_0x437459,retryThrottledRequestMaxTimes:_0x432964=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x1c7543=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x4bced1}){return retryIfFailed$1(()=>request$1({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x1c6afb,'integration':_0x19a080,'userAgent':_0x437459})},'url':getUrl$1(_0xd1f218,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x1c6afb,'source_url':_0xe12f17,'store':getStoreValue$1(_0x4d8e74),'filename':_0x2f8ccb,'check_URL_duplicates':_0x4bee17?0x1:void 0x0,'save_URL_duplicates':_0x225ec1?0x1:void 0x0,'signature':_0x53d726,'expire':_0x1093ef,'source':_0x384bfb,'metadata':_0x4bced1}),'signal':_0x2b87af})['then'](({data:_0x459952,headers:_0x3cf7aa,request:_0x4cd2d0})=>{const _0x522087=camelizeKeys$1(JSON['parse'](_0x459952));if('error'in _0x522087)throw new UploadError$1(_0x522087['error']['content'],_0x522087['error']['errorCode'],_0x4cd2d0,_0x522087,_0x3cf7aa);return _0x522087;}),{'retryNetworkErrorMaxTimes':_0x1c7543,'retryThrottledRequestMaxTimes':_0x432964});}!function(_0x5179b0){_0x5179b0['Token']='token',_0x5179b0['FileInfo']='file_info';}(TypeEnum$1||(TypeEnum$1={})),function(_0x14f256){_0x14f256['Unknown']='unknown',_0x14f256['Waiting']='waiting',_0x14f256['Progress']='progress',_0x14f256['Error']='error',_0x14f256['Success']='success';}(Status$1||(Status$1={}));const isErrorResponse$1=_0xb392c0=>'status'in _0xb392c0&&_0xb392c0['status']===Status$1['Error'];function fromUrlStatus$1(_0x481b6e,{publicKey:_0x4bcc16,baseURL:_0x3180db=defaultSettings$1['baseURL'],signal:_0x2cf583,integration:_0xf0d498,userAgent:_0x31fabc,retryThrottledRequestMaxTimes:_0xcfd1fb=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xe200e1=defaultSettings$1['retryNetworkErrorMaxTimes']}={}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':_0x4bcc16?{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x4bcc16,'integration':_0xf0d498,'userAgent':_0x31fabc})}:void 0x0,'url':getUrl$1(_0x3180db,'/from_url/status/',{'jsonerrors':0x1,'token':_0x481b6e}),'signal':_0x2cf583})['then'](({data:_0x4407f7,headers:_0x4126a1,request:_0x78215f})=>{const _0x537c0b=camelizeKeys$1(JSON['parse'](_0x4407f7));if('error'in _0x537c0b&&!isErrorResponse$1(_0x537c0b))throw new UploadError$1(_0x537c0b['error']['content'],_0x537c0b['error']['errorCode'],_0x78215f,_0x537c0b,_0x4126a1);return _0x537c0b;}),{'retryNetworkErrorMaxTimes':_0xe200e1,'retryThrottledRequestMaxTimes':_0xcfd1fb});}function info$1(_0x149b0e,{publicKey:_0x581f8c,baseURL:_0x2979c4=defaultSettings$1['baseURL'],signal:_0x524c21,source:_0x553424,integration:_0x34b9c0,userAgent:_0x4969d6,retryThrottledRequestMaxTimes:_0x2afb64=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x129268=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x581f8c,'integration':_0x34b9c0,'userAgent':_0x4969d6})},'url':getUrl$1(_0x2979c4,'/info/',{'jsonerrors':0x1,'pub_key':_0x581f8c,'file_id':_0x149b0e,'source':_0x553424}),'signal':_0x524c21})['then'](({data:_0x48f721,headers:_0x2fd7ee,request:_0x6f5cad})=>{const _0x4d5c5e=camelizeKeys$1(JSON['parse'](_0x48f721));if('error'in _0x4d5c5e)throw new UploadError$1(_0x4d5c5e['error']['content'],_0x4d5c5e['error']['errorCode'],_0x6f5cad,_0x4d5c5e,_0x2fd7ee);return _0x4d5c5e;}),{'retryThrottledRequestMaxTimes':_0x2afb64,'retryNetworkErrorMaxTimes':_0x129268});}function multipartStart$1(_0x2b3bab,{publicKey:_0x27acf7,contentType:_0x179639,fileName:_0x22e657,multipartChunkSize:_0x27c280=defaultSettings$1['multipartChunkSize'],baseURL:_0xd2d4a6='',secureSignature:_0x59ca2d,secureExpire:_0x5b97d2,store:_0x4a30c5,signal:_0x27a5c5,source:_0x70d716='local',integration:_0x4b07c8,userAgent:_0x28b075,retryThrottledRequestMaxTimes:_0x87a7c2=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x15fba2=defaultSettings$1['retryNetworkErrorMaxTimes'],metadata:_0x40be09}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0xd2d4a6,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x27acf7,'integration':_0x4b07c8,'userAgent':_0x28b075})},'data':buildFormData$1({'filename':_0x22e657||defaultFilename$1,'size':_0x2b3bab,'content_type':_0x179639||defaultContentType$1,'part_size':_0x27c280,'UPLOADCARE_STORE':getStoreValue$1(_0x4a30c5),'UPLOADCARE_PUB_KEY':_0x27acf7,'signature':_0x59ca2d,'expire':_0x5b97d2,'source':_0x70d716,'metadata':_0x40be09}),'signal':_0x27a5c5})['then'](({data:_0x24da30,headers:_0x561d4b,request:_0x5be789})=>{const _0xb308dd=camelizeKeys$1(JSON['parse'](_0x24da30));if('error'in _0xb308dd)throw new UploadError$1(_0xb308dd['error']['content'],_0xb308dd['error']['errorCode'],_0x5be789,_0xb308dd,_0x561d4b);return _0xb308dd['parts']=Object['keys'](_0xb308dd['parts'])['map'](_0x44b095=>_0xb308dd['parts'][Number(_0x44b095)]),_0xb308dd;}),{'retryThrottledRequestMaxTimes':_0x87a7c2,'retryNetworkErrorMaxTimes':_0x15fba2});}function multipartUpload$1(_0x298264,_0x4d8a9e,{contentType:_0x4a2c76,signal:_0x5ef2e9,onProgress:_0x28f9ab,retryThrottledRequestMaxTimes:_0x372ac7=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x5ec832=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'PUT','url':_0x4d8a9e,'data':_0x298264,'onProgress':_0x28f9ab,'signal':_0x5ef2e9,'headers':{'Content-Type':_0x4a2c76||defaultContentType$1}})['then'](_0x25b81c=>(_0x28f9ab&&_0x28f9ab({'isComputable':!0x0,'value':0x1}),_0x25b81c))['then'](({status:_0x1f33a4})=>({'code':_0x1f33a4})),{'retryThrottledRequestMaxTimes':_0x372ac7,'retryNetworkErrorMaxTimes':_0x5ec832});}function multipartComplete$1(_0x5331d6,{publicKey:_0x34c822,baseURL:_0x706a1d=defaultSettings$1['baseURL'],source:_0x28c187='local',signal:_0x5896ea,integration:_0x242d8d,userAgent:_0x121f5c,retryThrottledRequestMaxTimes:_0x1c9eab=defaultSettings$1['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x40b620=defaultSettings$1['retryNetworkErrorMaxTimes']}){return retryIfFailed$1(()=>request$1({'method':'POST','url':getUrl$1(_0x706a1d,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent$2({'publicKey':_0x34c822,'integration':_0x242d8d,'userAgent':_0x121f5c})},'data':buildFormData$1({'uuid':_0x5331d6,'UPLOADCARE_PUB_KEY':_0x34c822,'source':_0x28c187}),'signal':_0x5896ea})['then'](({data:_0x57079c,headers:_0x12e9db,request:_0x3aece1})=>{const _0x49b14a=camelizeKeys$1(JSON['parse'](_0x57079c));if('error'in _0x49b14a)throw new UploadError$1(_0x49b14a['error']['content'],_0x49b14a['error']['errorCode'],_0x3aece1,_0x49b14a,_0x12e9db);return _0x49b14a;}),{'retryThrottledRequestMaxTimes':_0x1c9eab,'retryNetworkErrorMaxTimes':_0x40b620});}function isReadyPoll$1(_0x5d657e,{publicKey:_0x2a3394,baseURL:_0x1be51d,source:_0x3979f9,integration:_0x586b21,userAgent:_0x27aaec,retryThrottledRequestMaxTimes:_0x4ad6d5,retryNetworkErrorMaxTimes:_0x1751b6,signal:_0x4201a3,onProgress:_0x35c558}){return poll$1({'check':_0x5691a5=>info$1(_0x5d657e,{'publicKey':_0x2a3394,'baseURL':_0x1be51d,'signal':_0x5691a5,'source':_0x3979f9,'integration':_0x586b21,'userAgent':_0x27aaec,'retryThrottledRequestMaxTimes':_0x4ad6d5,'retryNetworkErrorMaxTimes':_0x1751b6})['then'](_0x85991b=>_0x85991b['isReady']?_0x85991b:(_0x35c558&&_0x35c558({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x4201a3});}function isGroupFileInfo$1(_0x392418){return'defaultEffects'in _0x392418;}let UploadcareFile$1=class{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x47161a,{baseCDN:_0xe18cc1=defaultSettings$1['baseCDN'],fileName:_0x4decfa}={}){const {uuid:_0x32ef2f,s3Bucket:_0x10238d}=_0x47161a,_0x3e98ec=getUrl$1(_0xe18cc1,_0x32ef2f+'/'),_0x1b7772=_0x10238d?getUrl$1('https://'+_0x10238d+'.s3.amazonaws.com/',_0x32ef2f+'/'+_0x47161a['filename']):null;this['uuid']=_0x32ef2f,this['name']=_0x4decfa||_0x47161a['filename'],this['size']=_0x47161a['size'],this['isStored']=_0x47161a['isStored'],this['isImage']=_0x47161a['isImage'],this['mimeType']=_0x47161a['mimeType'],this['cdnUrl']=_0x3e98ec,this['originalFilename']=_0x47161a['originalFilename'],this['imageInfo']=_0x47161a['imageInfo'],this['videoInfo']=_0x47161a['videoInfo'],this['contentInfo']=_0x47161a['contentInfo'],this['metadata']=_0x47161a['metadata']||null,this['s3Bucket']=_0x10238d||null,this['s3Url']=_0x1b7772,isGroupFileInfo$1(_0x47161a)&&(this['defaultEffects']=_0x47161a['defaultEffects']);}};const uploadDirect$1=(_0x5ec793,{publicKey:_0x1e999b,fileName:_0x481789,baseURL:_0x373327,secureSignature:_0x3ebba5,secureExpire:_0x52ccab,store:_0x46bb48,contentType:_0x508e5d,signal:_0x1477a0,onProgress:_0x242cd4,source:_0x53a9d1,integration:_0xefc0d8,userAgent:_0x3b23f7,retryThrottledRequestMaxTimes:_0x2b8b35,retryNetworkErrorMaxTimes:_0x44035f,baseCDN:_0x35ec25,metadata:_0x1e6d27})=>base$1(_0x5ec793,{'publicKey':_0x1e999b,'fileName':_0x481789,'contentType':_0x508e5d,'baseURL':_0x373327,'secureSignature':_0x3ebba5,'secureExpire':_0x52ccab,'store':_0x46bb48,'signal':_0x1477a0,'onProgress':_0x242cd4,'source':_0x53a9d1,'integration':_0xefc0d8,'userAgent':_0x3b23f7,'retryThrottledRequestMaxTimes':_0x2b8b35,'retryNetworkErrorMaxTimes':_0x44035f,'metadata':_0x1e6d27})['then'](({file:_0x1e4112})=>isReadyPoll$1(_0x1e4112,{'publicKey':_0x1e999b,'baseURL':_0x373327,'source':_0x53a9d1,'integration':_0xefc0d8,'userAgent':_0x3b23f7,'retryThrottledRequestMaxTimes':_0x2b8b35,'retryNetworkErrorMaxTimes':_0x44035f,'onProgress':_0x242cd4,'signal':_0x1477a0}))['then'](_0x1054f1=>new UploadcareFile$1(_0x1054f1,{'baseCDN':_0x35ec25})),uploadFromUploaded$1=(_0x157745,{publicKey:_0x2cc7cf,fileName:_0x2cb3cf,baseURL:_0x1edcf7,signal:_0xc773ce,onProgress:_0x83863a,source:_0x177724,integration:_0x1b9ac4,userAgent:_0x482adc,retryThrottledRequestMaxTimes:_0x2f758b,retryNetworkErrorMaxTimes:_0x42caf7,baseCDN:_0x52b652})=>info$1(_0x157745,{'publicKey':_0x2cc7cf,'baseURL':_0x1edcf7,'signal':_0xc773ce,'source':_0x177724,'integration':_0x1b9ac4,'userAgent':_0x482adc,'retryThrottledRequestMaxTimes':_0x2f758b,'retryNetworkErrorMaxTimes':_0x42caf7})['then'](_0x46b858=>new UploadcareFile$1(_0x46b858,{'baseCDN':_0x52b652,'fileName':_0x2cb3cf}))['then'](_0x1c88d6=>(_0x83863a&&_0x83863a({'isComputable':!0x0,'value':0x1}),_0x1c88d6)),race$1=(_0x367265,{signal:_0x53b66f}={})=>{let _0x166756=null,_0x5b449b=null;const _0x595565=_0x367265['map'](()=>new AbortController());return onCancel$1(_0x53b66f,()=>{_0x595565['forEach'](_0x4df94f=>_0x4df94f['abort']());}),Promise['all'](_0x367265['map']((_0x254890,_0x378438)=>{const _0x4f34c0=(_0x59425d=>()=>{_0x5b449b=_0x59425d,_0x595565['forEach']((_0x4f8270,_0x48d13c)=>_0x48d13c!==_0x59425d&&_0x4f8270['abort']());})(_0x378438);return Promise['resolve']()['then'](()=>_0x254890({'stopRace':_0x4f34c0,'signal':_0x595565[_0x378438]['signal']}))['then'](_0x598712=>(_0x4f34c0(),_0x598712))['catch'](_0x50baae=>(_0x166756=_0x50baae,null));}))['then'](_0x13af42=>{if(null===_0x5b449b)throw _0x166756;return _0x13af42[_0x5b449b];});};var WebSocket$1=window['WebSocket'];let Events$1=class{['events']=Object['create']({});['emit'](_0x2e5ec2,_0xa6c5af){this['events'][_0x2e5ec2]?.['forEach'](_0x21c517=>_0x21c517(_0xa6c5af));}['on'](_0x2dc35f,_0x574e16){this['events'][_0x2dc35f]=this['events'][_0x2dc35f]||[],this['events'][_0x2dc35f]['push'](_0x574e16);}['off'](_0x21ca39,_0x2fb686){this['events'][_0x21ca39]=_0x2fb686?this['events'][_0x21ca39]['filter'](_0x1fd0ef=>_0x1fd0ef!==_0x2fb686):[];}};const response$1=(_0x14079e,_0x1f6ecf)=>'success'===_0x14079e?{'status':Status$1['Success'],..._0x1f6ecf}:'progress'===_0x14079e?{'status':Status$1['Progress'],..._0x1f6ecf}:{'status':Status$1['Error'],..._0x1f6ecf};let Pusher$1=class{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events$1();['disconnectTimeoutId']=null;constructor(_0x204ff2,_0x1a0a4a=0x7530){this['key']=_0x204ff2,this['disconnectTime']=_0x1a0a4a;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x935887='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket$1(_0x935887),this['ws']['addEventListener']('error',_0x2a41f7=>{this['emmitter']['emit']('error',new Error(_0x2a41f7['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x10dd9e=>this['send'](_0x10dd9e['event'],_0x10dd9e['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x412285=>{const _0x5f0213=JSON['parse'](_0x412285['data']['toString']());switch(_0x5f0213['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'](_0x5f0213['channel'],response$1(_0x5f0213['event'],JSON['parse'](_0x5f0213['data'])));}});}}['disconnect'](){const _0x3c461b=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x3c461b();},this['disconnectTime']):_0x3c461b();}['send'](_0x4fdde7,_0x11ad76){const _0x342fe7=JSON['stringify']({'event':_0x4fdde7,'data':_0x11ad76});this['ws']?.['send'](_0x342fe7);}['subscribe'](_0x1627f4,_0x7dde31){this['subscribers']+=0x1,this['connect']();const _0x450ec0='task-status-'+_0x1627f4,_0x1e0b55={'event':'pusher:subscribe','data':{'channel':_0x450ec0}};this['emmitter']['on'](_0x450ec0,_0x7dde31),this['isConnected']?this['send'](_0x1e0b55['event'],_0x1e0b55['data']):this['queue']['push'](_0x1e0b55);}['unsubscribe'](_0x57a8fc){this['subscribers']-=0x1;const _0x42dc77='task-status-'+_0x57a8fc,_0x31361f={'event':'pusher:unsubscribe','data':{'channel':_0x42dc77}};this['emmitter']['off'](_0x42dc77),this['isConnected']?this['send'](_0x31361f['event'],_0x31361f['data']):this['queue']=this['queue']['filter'](_0x5be39d=>_0x5be39d['data']['channel']!==_0x42dc77),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x38b2c1){return this['emmitter']['on']('error',_0x38b2c1),()=>this['emmitter']['off']('error',_0x38b2c1);}},pusher$1=null;const getPusher$1=_0x4461d8=>{if(!pusher$1){const _0x3f88eb='undefined'==typeof window?0x0:0x7530;pusher$1=new Pusher$1(_0x4461d8,_0x3f88eb);}return pusher$1;},preconnect$1=_0xba8ff8=>{getPusher$1(_0xba8ff8)['connect']();};function pollStrategy$1({token:_0x26c58c,publicKey:_0x6f20ea,baseURL:_0x5ed281,integration:_0x449c50,userAgent:_0x76232e,retryThrottledRequestMaxTimes:_0x28d412,retryNetworkErrorMaxTimes:_0x34a090,onProgress:_0x5d9b62,signal:_0x16a357}){return poll$1({'check':_0xc01ac0=>fromUrlStatus$1(_0x26c58c,{'publicKey':_0x6f20ea,'baseURL':_0x5ed281,'integration':_0x449c50,'userAgent':_0x76232e,'retryThrottledRequestMaxTimes':_0x28d412,'retryNetworkErrorMaxTimes':_0x34a090,'signal':_0xc01ac0})['then'](_0x531d84=>{switch(_0x531d84['status']){case Status$1['Error']:return new UploadError$1(_0x531d84['error'],_0x531d84['errorCode']);case Status$1['Waiting']:return!0x1;case Status$1['Unknown']:return new UploadError$1('Token\x20\x22'+_0x26c58c+'\x22\x20was\x20not\x20found.');case Status$1['Progress']:return _0x5d9b62&&('unknown'===_0x531d84['total']?_0x5d9b62({'isComputable':!0x1}):_0x5d9b62({'isComputable':!0x0,'value':_0x531d84['done']/_0x531d84['total']})),!0x1;case Status$1['Success']:return _0x5d9b62&&_0x5d9b62({'isComputable':!0x0,'value':_0x531d84['done']/_0x531d84['total']}),_0x531d84;default:throw new Error('Unknown\x20status');}}),'signal':_0x16a357});}const pushStrategy$1=({token:_0x4c3e66,pusherKey:_0x45262e,signal:_0x5a00f5,onProgress:_0x5166e9})=>new Promise((_0x43c419,_0x2597d9)=>{const _0x14ce88=getPusher$1(_0x45262e),_0x2ada69=_0x14ce88['onError'](_0x2597d9),_0x53df0b=()=>{_0x2ada69(),_0x14ce88['unsubscribe'](_0x4c3e66);};onCancel$1(_0x5a00f5,()=>{_0x53df0b(),_0x2597d9(new CancelError$1('pusher\x20cancelled'));}),_0x14ce88['subscribe'](_0x4c3e66,_0x16615c=>{switch(_0x16615c['status']){case Status$1['Progress']:_0x5166e9&&('unknown'===_0x16615c['total']?_0x5166e9({'isComputable':!0x1}):_0x5166e9({'isComputable':!0x0,'value':_0x16615c['done']/_0x16615c['total']}));break;case Status$1['Success']:_0x53df0b(),_0x5166e9&&_0x5166e9({'isComputable':!0x0,'value':_0x16615c['done']/_0x16615c['total']}),_0x43c419(_0x16615c);break;case Status$1['Error']:_0x53df0b(),_0x2597d9(new UploadError$1(_0x16615c['msg'],_0x16615c['error_code']));}});}),uploadFromUrl$1=(_0x176739,{publicKey:_0x403f97,fileName:_0x2dae49,baseURL:_0x118506,baseCDN:_0x16c2eb,checkForUrlDuplicates:_0xdf94b6,saveUrlForRecurrentUploads:_0x45083a,secureSignature:_0x1fb702,secureExpire:_0x25111b,store:_0xc9f22a,signal:_0x1ef2d9,onProgress:_0x575e5f,source:_0x585399,integration:_0x3699df,userAgent:_0x3f28f6,retryThrottledRequestMaxTimes:_0x1f47d6,pusherKey:_0x56099c=defaultSettings$1['pusherKey'],metadata:_0x4a3ed8})=>Promise['resolve'](preconnect$1(_0x56099c))['then'](()=>fromUrl$1(_0x176739,{'publicKey':_0x403f97,'fileName':_0x2dae49,'baseURL':_0x118506,'checkForUrlDuplicates':_0xdf94b6,'saveUrlForRecurrentUploads':_0x45083a,'secureSignature':_0x1fb702,'secureExpire':_0x25111b,'store':_0xc9f22a,'signal':_0x1ef2d9,'source':_0x585399,'integration':_0x3699df,'userAgent':_0x3f28f6,'retryThrottledRequestMaxTimes':_0x1f47d6,'metadata':_0x4a3ed8}))['catch'](_0x4cbfb8=>{const _0x4628d6=getPusher$1(_0x56099c);return _0x4628d6?.['disconnect'](),Promise['reject'](_0x4cbfb8);})['then'](_0x3af5c0=>_0x3af5c0['type']===TypeEnum$1['FileInfo']?_0x3af5c0:race$1([({signal:_0x585a02})=>pollStrategy$1({'token':_0x3af5c0['token'],'publicKey':_0x403f97,'baseURL':_0x118506,'integration':_0x3699df,'userAgent':_0x3f28f6,'retryThrottledRequestMaxTimes':_0x1f47d6,'onProgress':_0x575e5f,'signal':_0x585a02}),({signal:_0x3be476})=>pushStrategy$1({'token':_0x3af5c0['token'],'pusherKey':_0x56099c,'signal':_0x3be476,'onProgress':_0x575e5f})],{'signal':_0x1ef2d9}))['then'](_0x27d90e=>{if(_0x27d90e instanceof UploadError$1)throw _0x27d90e;return _0x27d90e;})['then'](_0x323aeb=>isReadyPoll$1(_0x323aeb['uuid'],{'publicKey':_0x403f97,'baseURL':_0x118506,'integration':_0x3699df,'userAgent':_0x3f28f6,'retryThrottledRequestMaxTimes':_0x1f47d6,'onProgress':_0x575e5f,'signal':_0x1ef2d9}))['then'](_0x107a6f=>new UploadcareFile$1(_0x107a6f,{'baseCDN':_0x16c2eb})),memo$1=new WeakMap(),getBlobFromReactNativeAsset$1=async _0x1cdaf8=>{if(memo$1['has'](_0x1cdaf8))return memo$1['get'](_0x1cdaf8);const _0x587ad9=await fetch(_0x1cdaf8['uri'])['then'](_0x1e5f7e=>_0x1e5f7e['blob']());return memo$1['set'](_0x1cdaf8,_0x587ad9),_0x587ad9;},getFileSize$1=async _0x32fe4d=>{if(isFile$1(_0x32fe4d)||isBlob$1(_0x32fe4d))return _0x32fe4d['size'];if(isReactNativeAsset$1(_0x32fe4d))return(await getBlobFromReactNativeAsset$1(_0x32fe4d))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart$1=(_0xe90982,_0x286af1=defaultSettings$1['multipartMinFileSize'])=>_0xe90982>=_0x286af1,isUuid$1=_0x2c88e2=>{const _0x24b77e=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData$1(_0x2c88e2)&&_0x24b77e['test'](_0x2c88e2);},isUrl$1=_0x1a90b0=>{const _0x5e1c14=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData$1(_0x1a90b0)&&_0x5e1c14['test'](_0x1a90b0);},runWithConcurrency$1=(_0x39464f,_0x1d5196)=>new Promise((_0x527320,_0x3b52c3)=>{const _0xe7d7e3=[];let _0x3510a9=!0x1,_0x4fec7a=_0x1d5196['length'];const _0xddd102=[..._0x1d5196],_0x3cdf4a=()=>{const _0x45c786=_0x1d5196['length']-_0xddd102['length'],_0x1b927d=_0xddd102['shift']();_0x1b927d&&_0x1b927d()['then'](_0x3c2f95=>{_0x3510a9||(_0xe7d7e3[_0x45c786]=_0x3c2f95,_0x4fec7a-=0x1,_0x4fec7a?_0x3cdf4a():_0x527320(_0xe7d7e3));})['catch'](_0x3f959d=>{_0x3510a9=!0x0,_0x3b52c3(_0x3f959d);});};for(let _0x5826dc=0x0;_0x5826dc<_0x39464f;_0x5826dc++)_0x3cdf4a();}),sliceChunk$1=(_0x39e41b,_0x2133e5,_0x26f31a,_0x3ad511)=>{const _0x5aafe0=_0x3ad511*_0x2133e5,_0x354d61=Math['min'](_0x5aafe0+_0x3ad511,_0x26f31a);return _0x39e41b['slice'](_0x5aafe0,_0x354d61);},prepareChunks$1=async(_0x4cb410,_0x52ef66,_0x104bee)=>_0x466cf2=>sliceChunk$1(_0x4cb410,_0x466cf2,_0x52ef66,_0x104bee),uploadPart$1=(_0x218c74,_0x4c3587,{publicKey:_0x5f2cf7,contentType:_0x359106,onProgress:_0x43326f,signal:_0x3bf4b7,integration:_0xece776,retryThrottledRequestMaxTimes:_0x15ca46,retryNetworkErrorMaxTimes:_0x22d631})=>multipartUpload$1(_0x218c74,_0x4c3587,{'contentType':_0x359106,'onProgress':_0x43326f,'signal':_0x3bf4b7,'retryThrottledRequestMaxTimes':_0x15ca46,'retryNetworkErrorMaxTimes':_0x22d631}),uploadMultipart$1=async(_0x59be4f,{publicKey:_0x59644d,fileName:_0x37b288,fileSize:_0x4eb0ad,baseURL:_0x55cd38,secureSignature:_0x4b1db,secureExpire:_0x34f773,store:_0x5a6e59,signal:_0x5dbfa9,onProgress:_0x108648,source:_0x2d63a7,integration:_0x389da2,userAgent:_0x10e194,retryThrottledRequestMaxTimes:_0x1ad8ba,retryNetworkErrorMaxTimes:_0x295521,contentType:_0x485c43,multipartChunkSize:_0x57098f=defaultSettings$1['multipartChunkSize'],maxConcurrentRequests:_0x4bb053=defaultSettings$1['maxConcurrentRequests'],baseCDN:_0x4c3121,metadata:_0x4f4ed9})=>{const _0x49102f=_0x4eb0ad??await getFileSize$1(_0x59be4f);let _0x2357b6;const _0x23b2a5=(_0x2407be,_0x5686fa)=>{if(!_0x108648)return;_0x2357b6||(_0x2357b6=Array(_0x2407be)['fill'](0x0));const _0x174dc5=_0x43f201=>_0x43f201['reduce']((_0x109b87,_0x3f0c07)=>_0x109b87+_0x3f0c07,0x0);return _0x210140=>{_0x210140['isComputable']&&(_0x2357b6[_0x5686fa]=_0x210140['value'],_0x108648({'isComputable':!0x0,'value':_0x174dc5(_0x2357b6)/_0x2407be}));};};return _0x485c43||=getContentType$1(_0x59be4f),multipartStart$1(_0x49102f,{'publicKey':_0x59644d,'contentType':_0x485c43,'fileName':_0x37b288||getFileName$1(_0x59be4f),'baseURL':_0x55cd38,'secureSignature':_0x4b1db,'secureExpire':_0x34f773,'store':_0x5a6e59,'signal':_0x5dbfa9,'source':_0x2d63a7,'integration':_0x389da2,'userAgent':_0x10e194,'retryThrottledRequestMaxTimes':_0x1ad8ba,'retryNetworkErrorMaxTimes':_0x295521,'metadata':_0x4f4ed9,'multipartChunkSize':_0x57098f})['then'](async({uuid:_0x5f16cc,parts:_0x15333a})=>{const _0x1bde9f=await prepareChunks$1(_0x59be4f,_0x49102f,_0x57098f);return Promise['all']([_0x5f16cc,runWithConcurrency$1(_0x4bb053,_0x15333a['map']((_0x14f64e,_0x3711aa)=>()=>uploadPart$1(_0x1bde9f(_0x3711aa),_0x14f64e,{'publicKey':_0x59644d,'contentType':_0x485c43,'onProgress':_0x23b2a5(_0x15333a['length'],_0x3711aa),'signal':_0x5dbfa9,'integration':_0x389da2,'retryThrottledRequestMaxTimes':_0x1ad8ba,'retryNetworkErrorMaxTimes':_0x295521})))]);})['then'](([_0x34f022])=>multipartComplete$1(_0x34f022,{'publicKey':_0x59644d,'baseURL':_0x55cd38,'source':_0x2d63a7,'integration':_0x389da2,'userAgent':_0x10e194,'retryThrottledRequestMaxTimes':_0x1ad8ba,'retryNetworkErrorMaxTimes':_0x295521}))['then'](_0x3d1b90=>_0x3d1b90['isReady']?_0x3d1b90:isReadyPoll$1(_0x3d1b90['uuid'],{'publicKey':_0x59644d,'baseURL':_0x55cd38,'source':_0x2d63a7,'integration':_0x389da2,'userAgent':_0x10e194,'retryThrottledRequestMaxTimes':_0x1ad8ba,'retryNetworkErrorMaxTimes':_0x295521,'onProgress':_0x108648,'signal':_0x5dbfa9}))['then'](_0x2e8734=>new UploadcareFile$1(_0x2e8734,{'baseCDN':_0x4c3121}));};async function uploadFile$1(_0x2881b2,{publicKey:_0x4d4497,fileName:_0x4ca159,baseURL:_0x130c74=defaultSettings$1['baseURL'],secureSignature:_0x365ed1,secureExpire:_0x2b5dd5,store:_0x38381a,signal:_0xb32f68,onProgress:_0xc6d7f1,source:_0x2d095d,integration:_0x5c3bb8,userAgent:_0x518889,retryThrottledRequestMaxTimes:_0x3845db,retryNetworkErrorMaxTimes:_0x4b48aa,contentType:_0x57f9c7,multipartMinFileSize:_0x46ef7e,multipartChunkSize:_0x2b492f,maxConcurrentRequests:_0x53d9,baseCDN:_0x1b30fd=defaultSettings$1['baseCDN'],checkForUrlDuplicates:_0x1e7f80,saveUrlForRecurrentUploads:_0x342c03,pusherKey:_0x58ed2d,metadata:_0x2bcd31}){if(isFileData$1(_0x2881b2)){const _0x4a05f1=await getFileSize$1(_0x2881b2);return isMultipart$1(_0x4a05f1,_0x46ef7e)?uploadMultipart$1(_0x2881b2,{'publicKey':_0x4d4497,'contentType':_0x57f9c7,'multipartChunkSize':_0x2b492f,'fileSize':_0x4a05f1,'fileName':_0x4ca159,'baseURL':_0x130c74,'secureSignature':_0x365ed1,'secureExpire':_0x2b5dd5,'store':_0x38381a,'signal':_0xb32f68,'onProgress':_0xc6d7f1,'source':_0x2d095d,'integration':_0x5c3bb8,'userAgent':_0x518889,'maxConcurrentRequests':_0x53d9,'retryThrottledRequestMaxTimes':_0x3845db,'retryNetworkErrorMaxTimes':_0x4b48aa,'baseCDN':_0x1b30fd,'metadata':_0x2bcd31}):uploadDirect$1(_0x2881b2,{'publicKey':_0x4d4497,'fileName':_0x4ca159,'contentType':_0x57f9c7,'baseURL':_0x130c74,'secureSignature':_0x365ed1,'secureExpire':_0x2b5dd5,'store':_0x38381a,'signal':_0xb32f68,'onProgress':_0xc6d7f1,'source':_0x2d095d,'integration':_0x5c3bb8,'userAgent':_0x518889,'retryThrottledRequestMaxTimes':_0x3845db,'retryNetworkErrorMaxTimes':_0x4b48aa,'baseCDN':_0x1b30fd,'metadata':_0x2bcd31});}if(isUrl$1(_0x2881b2))return uploadFromUrl$1(_0x2881b2,{'publicKey':_0x4d4497,'fileName':_0x4ca159,'baseURL':_0x130c74,'baseCDN':_0x1b30fd,'checkForUrlDuplicates':_0x1e7f80,'saveUrlForRecurrentUploads':_0x342c03,'secureSignature':_0x365ed1,'secureExpire':_0x2b5dd5,'store':_0x38381a,'signal':_0xb32f68,'onProgress':_0xc6d7f1,'source':_0x2d095d,'integration':_0x5c3bb8,'userAgent':_0x518889,'retryThrottledRequestMaxTimes':_0x3845db,'pusherKey':_0x58ed2d,'metadata':_0x2bcd31});if(isUuid$1(_0x2881b2))return uploadFromUploaded$1(_0x2881b2,{'publicKey':_0x4d4497,'fileName':_0x4ca159,'baseURL':_0x130c74,'signal':_0xb32f68,'onProgress':_0xc6d7f1,'source':_0x2d095d,'integration':_0x5c3bb8,'userAgent':_0x518889,'retryThrottledRequestMaxTimes':_0x3845db,'retryNetworkErrorMaxTimes':_0x4b48aa,'baseCDN':_0x1b30fd});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x2881b2+'\x22\x20is\x20not\x20supported');}class UploadUtils{static['upload']({file:_0x976304,..._0x57a30f}){return uploadFile$1(_0x976304,_0x57a30f);}static['getInfo'](_0x399647,_0x54511f){return info$1(_0x399647,_0x54511f);}}class UploadcareUploadAdapter extends Plugin{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',FileRepository,UploadcareEditing];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x331901=this['editor'];if(!!!_0x331901['config']['get']('uploadcare'))return;_0x331901['plugins']['get'](FileRepository)['createUploadAdapter']=_0x23ff7f=>new Adapter(_0x23ff7f,_0x331901),_0x331901['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x56b483,{imageElement:_0x3e819e,data:_0x26610f})=>{_0x331901['model']['change'](_0x4cbb9c=>{_0x4cbb9c['setAttribute']('uploadcareImageId',_0x26610f['uploadcareImageId'],_0x3e819e);});});}}class Adapter{['loader'];['editor'];['controller'];constructor(_0x360047,_0x229f80){this['loader']=_0x360047,this['editor']=_0x229f80,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x22c85f=await this['loader']['file'];return UploadUtils['upload']({'file':_0x22c85f,'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':_0x185eb4=>{_0x185eb4&&_0x185eb4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x185eb4['value']);}})['then'](async _0x4017aa=>{const {imageFallbackUrl:_0x4fc2ef,imageSources:_0x4336d3}=getImageUrls(_0x4017aa['cdnUrl'],_0x4017aa['imageInfo']['width']);return{'uploadcareImageId':_0x4017aa['uuid'],'default':_0x4fc2ef,'sources':_0x4336d3};})['catch'](()=>{const _0x4cf05a=t('Cannot\x20upload\x20file:')+('\x20'+_0x22c85f['name']+'.');return Promise['reject'](_0x4cf05a);});}['abort'](){this['controller']['abort']();}}class UploadcareEditing extends Plugin{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',UploadcareUploadAdapter,Dialog];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x21b0a7){super(_0x21b0a7),this['ucContextId']=uid();}['init'](){const _0x39365e=this['editor'];_0x39365e['commands']['add']('uploadcare',new UploadcareCommand(_0x39365e));}['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 _0x5dfed5=_0x59f9c1['document']['querySelector']('input[uploadcare-file-input]');_0x5dfed5&&_0x5dfed5['remove']();}),checkLicense(this);}['_initSchema'](){const _0x131cb5=this['editor']['model']['schema'];_0x131cb5['isRegistered']('imageBlock')&&_0x131cb5['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x131cb5['isRegistered']('imageInline')&&_0x131cb5['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a7398=this['editor'];_0x5a7398['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a7398['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x369961=>_0x369961['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x179547=_0x5a7398['commands']['get']('replaceImageSource');_0x179547&&this['listenTo'](_0x179547,'cleanupImage',(_0x3f5e5f,[_0x20204c,_0x5bd288])=>{_0x20204c['removeAttribute']('uploadcareImageId',_0x5bd288);});}['_initConfig'](){const _0x3336f3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x26a83b=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=createElement(_0x59f9c1['document'],'uc-config',{..._0x3336f3,'pubkey':_0x26a83b,'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']=_0x5a44f5=>{if('closeMax'==_0x5a44f5)return'#uc-icon-arrow-down';},_0x59f9c1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=createElement(_0x59f9c1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x59f9c1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x24f6c3=this['editor']['commands']['get']('insertImage');_0x24f6c3&&this['listenTo'](_0x24f6c3,'execute',()=>{const _0x2de3f4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2de3f4&&_0x2de3f4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x2de3f4);});});const _0xeccc8e=this['editor']['commands']['get']('uploadcareImageReplace');_0xeccc8e&&this['listenTo'](_0xeccc8e,'execute',()=>{const _0x4f9d8f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4f9d8f&&_0x4f9d8f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{showImageProcessingIndicator(this['editor'],_0x4f9d8f);});});}}async function checkLicense(_0x35dddd){const _0x2cd733=_0x4a2969([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1f1987=window[_0x4a2969([0x44,0x61,0x74,0x65])][_0x4a2969([0x6e,0x6f,0x77])](),_0xb19783=_0x35dddd[_0x4a2969([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a0264=new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x658816=>{_0xb19783[_0x4a2969([0x6f,0x6e,0x63,0x65])](_0x4a2969([0x72,0x65,0x61,0x64,0x79]),_0x658816);}),_0xc0aed5={[_0x4a2969([0x6b,0x74,0x79])]:_0x4a2969([0x45,0x43]),[_0x4a2969([0x75,0x73,0x65])]:_0x4a2969([0x73,0x69,0x67]),[_0x4a2969([0x63,0x72,0x76])]:_0x4a2969([0x50,0x2d,0x32,0x35,0x36]),[_0x4a2969([0x78])]:_0x4a2969([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4a2969([0x79])]:_0x4a2969([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4a2969([0x61,0x6c,0x67])]:_0x4a2969([0x45,0x53,0x32,0x35,0x36])},_0x42e38d=_0xb19783[_0x4a2969([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a2969([0x67,0x65,0x74])](_0x4a2969([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x4ae273=await(async function(){let _0x298541,_0x1ecafd=null,_0x30f126=null;try{if(_0x42e38d==_0x4a2969([0x47,0x50,0x4c]))return _0x4a2969([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x298541=(function(){const _0x129da5=_0x42e38d[_0x4a2969([0x73,0x70,0x6c,0x69,0x74])](_0x4a2969([0x2e]));if(0x3!=_0x129da5[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;const _0x4b6dfa=_0x129da5[0x1];return _0x259b76(_0x4b6dfa);function _0x259b76(_0xa19f2d){const _0x4741a8=_0x14007d(_0xa19f2d);return _0x4741a8&&_0x24787d()?_0x4741a8:null;function _0x24787d(){const _0x5743be=_0x4741a8[_0x4a2969([0x6a,0x74,0x69])],_0x22f91a=window[_0x4a2969([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5743be[_0x4a2969([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5743be[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x102d4c={..._0x4741a8,[_0x4a2969([0x6a,0x74,0x69])]:_0x5743be[_0x4a2969([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5743be[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x102d4c[_0x4a2969([0x76,0x63])],_0x1c646e(_0x102d4c)==_0x22f91a;}}}()),!_0x298541)return _0x4a2969([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);_0x298541[_0x4a2969([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30f126=function(_0xec5f2f,_0x5c635a){return new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e19c=>{if(_0x205458())return _0x27e19c(_0x4a2969([0x56,0x61,0x6c,0x69,0x64]));_0x2e89e3(),_0xb19783[_0x4a2969([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a2969([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7174ba=!0x1;const _0x7c980a=uid();function _0x4a6804(_0x5bb7fa){return!!_0x5bb7fa&&(typeof _0x5bb7fa===_0x4a2969([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bb7fa===_0x4a2969([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bb7fa[_0x4a2969([0x74,0x68,0x65,0x6e])]===_0x4a2969([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bb7fa[_0x4a2969([0x63,0x61,0x74,0x63,0x68])]===_0x4a2969([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf0065d(_0x212c92){_0x54430e(_0x212c92)[_0x4a2969([0x74,0x68,0x65,0x6e])](_0xc3c68e=>{if(!_0xc3c68e||_0xc3c68e[_0x4a2969([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a2969([0x6f,0x6b]))return _0x4a2969([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26deae(_0x1c646e(_0x7c980a+_0x5c635a))!=_0xc3c68e[_0x4a2969([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a2969([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2969([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2969([0x74,0x68,0x65,0x6e])](_0x3c40a4=>(_0x2dc4f9(),_0x3c40a4),()=>{const _0x5a7a21=_0x5b8600();return null==_0x5a7a21?(_0x2dc4f9(),_0x4a2969([0x56,0x61,0x6c,0x69,0x64])):_0x4a2969(_0x1f1987-_0x5a7a21>0x240c8400?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2969([0x74,0x68,0x65,0x6e])](_0x27e19c)[_0x4a2969([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27e19c(_0x4a2969([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fdc5f=0x36ee80;function _0x2dc4f9(){const _0x506ae3=_0x4a2969([0x6c,0x6c,0x63,0x74,0x2d])+_0x26deae(_0x1c646e(_0xec5f2f)),_0x1a290=_0x599875(_0x26deae(window[_0x4a2969([0x4d,0x61,0x74,0x68])][_0x4a2969([0x63,0x65,0x69,0x6c])](_0x1f1987/_0x4fdc5f)));window[_0x4a2969([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2969([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x506ae3,_0x1a290);}function _0x5b8600(){const _0x25fc6c=_0x4a2969([0x6c,0x6c,0x63,0x74,0x2d])+_0x26deae(_0x1c646e(_0xec5f2f)),_0x78330c=window[_0x4a2969([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2969([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25fc6c);return _0x78330c?window[_0x4a2969([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x599875(_0x78330c),0x10)*_0x4fdc5f:null;}function _0x54430e(_0x8e04dc){return new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38127c,_0xff99f6)=>{_0x8e04dc[_0x4a2969([0x74,0x68,0x65,0x6e])](_0x38127c,_0xff99f6),window[_0x4a2969([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xff99f6,0x1d4c0);});}}_0xb19783[_0x4a2969([0x6f,0x6e])](_0x4a2969([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34e964,_0x5b9f82)=>{if(_0x5b9f82[0x0]!=_0xec5f2f)return _0x27e19c(_0x4a2969([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b9f82[0x1]={..._0x5b9f82[0x1],[_0x4a2969([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7c980a};},{[_0x4a2969([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2969([0x68,0x69,0x67,0x68])}),_0xb19783[_0x4a2969([0x6f,0x6e])](_0x4a2969([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1607c6=>{_0x4a6804(_0x1607c6[_0x4a2969([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7174ba=!0x0,_0xf0065d(_0x1607c6[_0x4a2969([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a2969([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2969([0x6c,0x6f,0x77])}),_0x1a0264[_0x4a2969([0x74,0x68,0x65,0x6e])](()=>{_0x7174ba||_0x27e19c(_0x4a2969([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x205458(){return _0xb19783[_0x4a2969([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2969([0x76,0x69,0x65,0x77])][_0x4a2969([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a2969([0x61,0x75,0x74,0x6f]);}function _0x2e89e3(){_0xb19783[_0x4a2969([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2969([0x76,0x69,0x65,0x77])][_0x4a2969([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a2969([0x61,0x75,0x74,0x6f]);}}(_0x298541[_0x4a2969([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x298541[_0x4a2969([0x6a,0x74,0x69])]));const _0x1071d3=await(async function(){let _0x49b18=!0x0;try{const _0x448198=_0x42e38d[_0x4a2969([0x73,0x70,0x6c,0x69,0x74])](_0x4a2969([0x2e])),[_0xcb26f8,_0x3df651,_0x234e09]=_0x448198;return _0x5c1e94(_0xcb26f8),await _0xda200d(_0xcb26f8,_0x3df651,_0x234e09),_0x49b18;}catch{return!0x1;}function _0x5c1e94(_0x2d8cbb){const _0x13ff59=_0x14007d(_0x2d8cbb);_0x13ff59&&_0x13ff59[_0x4a2969([0x61,0x6c,0x67])]==_0x4a2969([0x45,0x53,0x32,0x35,0x36])||(_0x49b18=!0x1);}async function _0xda200d(_0x194565,_0x4e700f,_0x178973){const _0x4c7c70=window[_0x4a2969([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a2969([0x66,0x72,0x6f,0x6d])](_0x2426a9(_0x178973),_0x1b833c=>_0x1b833c[_0x4a2969([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a79f5=new window[(_0x4a2969([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a2969([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x194565+_0x4a2969([0x2e])+_0x4e700f),_0x1b6e95=window[_0x4a2969([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a2969([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b6e95)return;const _0x5cb974=await _0x1b6e95[_0x4a2969([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a2969([0x6a,0x77,0x6b]),_0xc0aed5,{[_0x4a2969([0x6e,0x61,0x6d,0x65])]:_0x4a2969([0x45,0x43,0x44,0x53,0x41]),[_0x4a2969([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a2969([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a2969([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b6e95[_0x4a2969([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a2969([0x6e,0x61,0x6d,0x65])]:_0x4a2969([0x45,0x43,0x44,0x53,0x41]),[_0x4a2969([0x68,0x61,0x73,0x68])]:{[_0x4a2969([0x6e,0x61,0x6d,0x65])]:_0x4a2969([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cb974,_0x4c7c70,_0x5a79f5)||(_0x49b18=!0x1);}}());return _0x1071d3?(function(){const _0x2b058a=_0x298541[_0x4a2969([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b058a)return!0x1;if(_0x2b058a[_0x4a2969([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2969([0x2a])))return!0x0;if(_0x2b058a[_0x4a2969([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2969([0x55,0x50,0x4c,0x43])))return!0x0;return!0x1;}())?(function(){const _0x57fb75=[_0x4a2969([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a2969([0x74,0x72,0x69,0x61,0x6c])][_0x4a2969([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x298541[_0x4a2969([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f1987/0x3e8:0x69e02680;return _0x298541[_0x4a2969([0x65,0x78,0x70])]<_0x57fb75;}())?_0x4a2969([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):(function(){const _0x53bcdd=_0x298541[_0x4a2969([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53bcdd||0x0==_0x53bcdd[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x217909}=new URL(window[_0x4a2969([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53bcdd[_0x4a2969([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x217909))return!0x0;const _0x32d5e6=_0x217909[_0x4a2969([0x73,0x70,0x6c,0x69,0x74])](_0x4a2969([0x2e]));return _0x53bcdd[_0x4a2969([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd9d154=>_0xd9d154[_0x4a2969([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2969([0x2a])))[_0x4a2969([0x6d,0x61,0x70])](_0x1b3fb1=>_0x1b3fb1[_0x4a2969([0x73,0x70,0x6c,0x69,0x74])](_0x4a2969([0x2e])))[_0x4a2969([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31fbb9=>_0x31fbb9[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x32d5e6[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2969([0x6d,0x61,0x70])](_0x40fc3c=>Array(_0x32d5e6[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x40fc3c[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2969([0x66,0x69,0x6c,0x6c])](_0x40fc3c[0x0]===_0x4a2969([0x2a])?_0x4a2969([0x2a]):'')[_0x4a2969([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x40fc3c))[_0x4a2969([0x73,0x6f,0x6d,0x65])](_0x52236c=>_0x32d5e6[_0x4a2969([0x65,0x76,0x65,0x72,0x79])]((_0x31b773,_0x10d3c3)=>_0x52236c[_0x10d3c3]===_0x31b773||_0x52236c[_0x10d3c3]===_0x4a2969([0x2a])));}())?(_0x298541[_0x4a2969([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a2969([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ecafd=function(_0x1d5eb3){const _0x27199a=new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47e430=>setTimeout(_0x47e430,0x93ecc)),_0x34fbf7=_0x1a0264[_0x4a2969([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc1564d=>{let _0x375ab0=0x0;_0xb19783[_0x4a2969([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2969([0x6f,0x6e])](_0x4a2969([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x180f24,_0x102891)=>{_0x102891[0x0][_0x4a2969([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x375ab0++,0x5e8==_0x375ab0&&(_0xc1564d(),_0x180f24[_0x4a2969([0x6f,0x66,0x66])]());});})),_0x5dc96e=[_0x27199a,_0x34fbf7];return window[_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a2969([0x72,0x61,0x63,0x65])](_0x5dc96e)[_0x4a2969([0x74,0x68,0x65,0x6e])](()=>_0x1d5eb3);}(_0x4a2969([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await(function(){if(_0x1ecafd&&_0x30f126)return new window[(_0x4a2969([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cc03a,_0x1cf346)=>{_0x1ecafd[_0x4a2969([0x74,0x68,0x65,0x6e])](_0x4cc03a,_0x1cf346),_0x30f126[_0x4a2969([0x74,0x68,0x65,0x6e])](_0x5029d0=>{_0x5029d0!=_0x4a2969([0x56,0x61,0x6c,0x69,0x64])&&_0x4cc03a(_0x5029d0);},_0x1cf346);});return _0x1ecafd||_0x30f126||_0x4a2969([0x56,0x61,0x6c,0x69,0x64]);}())):_0x4a2969([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2969([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a2969([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a2969([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}}());function _0x14007d(_0x4ddac8){return _0x4ddac8[_0x4a2969([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a2969([0x65,0x79]))?JSON[_0x4a2969([0x70,0x61,0x72,0x73,0x65])](_0x2426a9(_0x4ddac8)):null;}function _0x2426a9(_0x3cd982){return window[_0x4a2969([0x61,0x74,0x6f,0x62])](_0x3cd982[_0x4a2969([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a2969([0x2b]))[_0x4a2969([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a2969([0x2f])));}function _0x1c646e(_0xc324e){let _0x1e3aa2=0x1505;function _0x3b592a(_0x32f364){for(let _0x5ce4ed=0x0;_0x5ce4ed<_0x32f364[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ce4ed++){const _0x5678e8=_0x32f364[_0x4a2969([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ce4ed);_0x1e3aa2=(_0x1e3aa2<<0x5)+_0x1e3aa2+_0x5678e8,_0x1e3aa2&=_0x1e3aa2;}}return function _0x577da5(_0x2db50e){Array[_0x4a2969([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2db50e)?_0x2db50e[_0x4a2969([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x577da5):_0x2db50e&&typeof _0x2db50e==_0x4a2969([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a2969([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2db50e)[_0x4a2969([0x73,0x6f,0x72,0x74])]()[_0x4a2969([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e0e61,_0x5704c8])=>{_0x3b592a(_0x5e0e61),_0x577da5(_0x5704c8);}):_0x3b592a(window[_0x4a2969([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2db50e));}(_0xc324e),_0x1e3aa2>>>0x0;}function _0x26deae(_0x1b95f5){return _0x1b95f5[_0x4a2969([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a2969([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a2969([0x30]));}function _0x599875(_0x343254){return _0x343254[_0x4a2969([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a2969([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a2969([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b9341(){}function _0x4a2969(_0x3349ed){return _0x3349ed['map'](_0x896846=>String['fromCharCode'](_0x896846))['join']('');}!function(_0x11ecd6){const _0xdd8cc1=(function(){const _0x581e3c=window[_0x4a2969([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a2969([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a2969([0x6e,0x6f,0x77])]())[_0x4a2969([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a2969([0x2e]),'');let _0x4b0bb3=_0x4a2969([0x68]);for(let _0x534916=0x0;_0x534916<_0x581e3c[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x534916+=0x2){let _0x22b7d4=window[_0x4a2969([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x581e3c[_0x4a2969([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x534916,_0x534916+0x2));_0x22b7d4>=_0x2cd733[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22b7d4-=_0x2cd733[_0x4a2969([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b0bb3+=_0x2cd733[_0x22b7d4];}return _0x4b0bb3;}());_0xb19783[_0xdd8cc1]=_0x4a2969([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11ecd6,_0x11ecd6!=_0x4a2969([0x56,0x61,0x6c,0x69,0x64])&&(async function(){await _0x1a0264,_0xb19783[_0x4a2969([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2969([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b9341,_0xb19783[_0x4a2969([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2969([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b9341,_0xb19783[_0x4a2969([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a2969([0x6d,0x6f,0x64,0x65,0x6c]));}());}(_0x4ae273);}var __defProp=Object['defineProperty'],__defNormalProp=(_0x57219c,_0x4af5bf,_0x164630)=>_0x4af5bf in _0x57219c?__defProp(_0x57219c,_0x4af5bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164630}):_0x57219c[_0x4af5bf]=_0x164630,__publicField=(_0x4c8796,_0x139533,_0xa67835)=>(__defNormalProp(_0x4c8796,'symbol'!=typeof _0x139533?_0x139533+'':_0x139533,_0xa67835),_0xa67835);function cloneObj(_0x1ec3ae){let _0x1d7121=_0x184ed6=>{var _0x33a32e;for(let _0x3a4c3e in _0x184ed6)(null==(_0x33a32e=_0x184ed6[_0x3a4c3e])?void 0x0:_0x33a32e['constructor'])===Object&&(_0x184ed6[_0x3a4c3e]=_0x1d7121(_0x184ed6[_0x3a4c3e]));return{..._0x184ed6};};return _0x1d7121(_0x1ec3ae);}var Data=class{constructor(_0x4c4bea){_0x4c4bea['constructor']===Object?this['store']=cloneObj(_0x4c4bea):(this['_storeIsProxy']=!0x0,this['store']=_0x4c4bea),this['callbackMap']=Object['create'](null);}static['warn'](_0x21a23f,_0x2f1390){console['warn']('Symbiote\x20Data:\x20cannot\x20'+_0x21a23f+'.\x20Prop\x20name:\x20'+_0x2f1390);}['read'](_0x3e9f28){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x3e9f28)?this['store'][_0x3e9f28]:(Data['warn']('read',_0x3e9f28),null);}['has'](_0x2c664c){return this['_storeIsProxy']?void 0x0!==this['store'][_0x2c664c]:this['store']['hasOwnProperty'](_0x2c664c);}['add'](_0x484833,_0x23a76e,_0x410607=!0x1){!_0x410607&&Object['keys'](this['store'])['includes'](_0x484833)||(this['store'][_0x484833]=_0x23a76e,this['notify'](_0x484833));}['pub'](_0x3776b1,_0x1e0945){this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x3776b1)?(this['store'][_0x3776b1]=_0x1e0945,this['notify'](_0x3776b1)):Data['warn']('publish',_0x3776b1);}['multiPub'](_0x2a5736){for(let _0xadd5d1 in _0x2a5736)this['pub'](_0xadd5d1,_0x2a5736[_0xadd5d1]);}['notify'](_0x43a24e){this['callbackMap'][_0x43a24e]&&this['callbackMap'][_0x43a24e]['forEach'](_0x27fdb7=>{_0x27fdb7(this['store'][_0x43a24e]);});}['sub'](_0x30fd7c,_0x501212,_0x2bdd4f=!0x0){return this['_storeIsProxy']||this['store']['hasOwnProperty'](_0x30fd7c)?(this['callbackMap'][_0x30fd7c]||(this['callbackMap'][_0x30fd7c]=new Set()),this['callbackMap'][_0x30fd7c]['add'](_0x501212),_0x2bdd4f&&_0x501212(this['store'][_0x30fd7c]),{'remove':()=>{this['callbackMap'][_0x30fd7c]['delete'](_0x501212),this['callbackMap'][_0x30fd7c]['size']||delete this['callbackMap'][_0x30fd7c];},'callback':_0x501212}):(Data['warn']('subscribe',_0x30fd7c),null);}static['registerCtx'](_0x58314a,_0x3259af=Symbol()){let _0x19169b=Data['globalStore']['get'](_0x3259af);return _0x19169b?console['warn']('State:\x20context\x20UID\x20\x22'+_0x3259af+'\x22\x20already\x20in\x20use'):(_0x19169b=new Data(_0x58314a),Data['globalStore']['set'](_0x3259af,_0x19169b)),_0x19169b;}static['deleteCtx'](_0x58a676){Data['globalStore']['delete'](_0x58a676);}static['getCtx'](_0x22e8fb,_0xb47830=!0x0){return Data['globalStore']['get'](_0x22e8fb)||(_0xb47830&&console['warn']('State:\x20wrong\x20context\x20UID\x20-\x20\x22'+_0x22e8fb+'\x22'),null);}};Data['globalStore']=new Map();var DICT=Object['freeze']({'BIND_ATTR':'set','ATTR_BIND_PRFX':'@','EXT_DATA_CTX_PRFX':'*','NAMED_DATA_CTX_SPLTR':'/','CTX_NAME_ATTR':'ctx-name','CTX_OWNER_ATTR':'ctx-owner','CSS_CTX_PROP':'--ctx-name','EL_REF_ATTR':'ref','AUTO_TAG_PRFX':'sym','REPEAT_ATTR':'repeat','REPEAT_ITEM_TAG_ATTR':'repeat-item-tag','SET_LATER_KEY':'__toSetLater__','USE_TPL':'use-template','ROOT_STYLE_ATTR_NAME':'sym-component'}),CHARS='1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm',CHLENGTH=CHARS['length']-0x1,UID=class{static['generate'](_0x14fc78='XXXXXXXXX-XXX'){let _0x43e9d0='';for(let _0x56acca=0x0;_0x56acca<_0x14fc78['length'];_0x56acca++)_0x43e9d0+='-'===_0x14fc78[_0x56acca]?_0x14fc78[_0x56acca]:CHARS['charAt'](Math['random']()*CHLENGTH);return _0x43e9d0;}};function setNestedProp(_0x2531d9,_0x440779,_0x49d62b){let _0x970859,_0x4da86d=!0x0,_0x1b1a45=_0x440779['split']('.');return _0x1b1a45['forEach']((_0x48c02d,_0x4fc0ea)=>{_0x4fc0ea<_0x1b1a45['length']-0x1?_0x2531d9=_0x2531d9[_0x48c02d]:_0x970859=_0x48c02d;}),_0x2531d9?_0x2531d9[_0x970859]=_0x49d62b:_0x4da86d=!0x1,_0x4da86d;}function kebabToCamel(_0x133eed){return _0x133eed['split']('-')['map']((_0x16149d,_0x20e3f5)=>_0x16149d&&_0x20e3f5?_0x16149d[0x0]['toUpperCase']()+_0x16149d['slice'](0x1):_0x16149d)['join']('')['split']('_')['map']((_0x39698a,_0x3379e4)=>_0x39698a&&_0x3379e4?_0x39698a['toUpperCase']():_0x39698a)['join']('');}function repeatProcessor(_0x183423,_0x14ff5d){[..._0x183423['querySelectorAll']('['+DICT['REPEAT_ATTR']+']')]['forEach'](_0x4219f1=>{let _0x1c93d1,_0xbdee91=_0x4219f1['getAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);if(_0xbdee91&&(_0x1c93d1=window['customElements']['get'](_0xbdee91)),!_0x1c93d1){_0x1c93d1=class extends _0x14ff5d['BaseComponent']{constructor(){super(),_0xbdee91||(this['style']['display']='contents');}};let _0x5a5115=_0x4219f1['innerHTML'];_0x1c93d1['template']=_0x5a5115,_0x1c93d1['reg'](_0xbdee91);}for(;_0x4219f1['firstChild'];)_0x4219f1['firstChild']['remove']();let _0x322dc2=_0x4219f1['getAttribute'](DICT['REPEAT_ATTR']);_0x14ff5d['sub'](_0x322dc2,_0x408c09=>{if(!_0x408c09){for(;_0x4219f1['firstChild'];)_0x4219f1['firstChild']['remove']();return;}let _0x3ee979,_0x7063bf=[..._0x4219f1['children']],_0xb5f0d=_0x3c68a3=>{_0x3c68a3['forEach']((_0xee9e47,_0x250756)=>{if(_0x7063bf[_0x250756]){if(_0x7063bf[_0x250756]['set$'])setTimeout(()=>{_0x7063bf[_0x250756]['set$'](_0xee9e47);});else{for(let _0x413bc9 in _0xee9e47)_0x7063bf[_0x250756][_0x413bc9]=_0xee9e47[_0x413bc9];}}else{_0x3ee979||(_0x3ee979=new DocumentFragment());let _0xeff654=new _0x1c93d1();Object['assign'](_0xeff654['init$'],_0xee9e47),_0x3ee979['appendChild'](_0xeff654);}}),_0x3ee979&&_0x4219f1['appendChild'](_0x3ee979);let _0x26bfbc=_0x7063bf['slice'](_0x3c68a3['length'],_0x7063bf['length']);for(let _0x21ee1d of _0x26bfbc)_0x21ee1d['remove']();};if(_0x408c09['constructor']===Array)_0xb5f0d(_0x408c09);else{if(_0x408c09['constructor']===Object){let _0x10faec=[];for(let _0xd04372 in _0x408c09){let _0x4caee2=_0x408c09[_0xd04372];Object['defineProperty'](_0x4caee2,'_KEY_',{'value':_0xd04372,'enumerable':!0x0}),_0x10faec['push'](_0x4caee2);}_0xb5f0d(_0x10faec);}else console['warn']('Symbiote\x20repeat\x20data\x20type\x20error:'),console['log'](_0x408c09);}}),_0x4219f1['removeAttribute'](DICT['REPEAT_ATTR']),_0x4219f1['removeAttribute'](DICT['REPEAT_ITEM_TAG_ATTR']);});}var DEFAULT_SLOT_KEY='__default__';function slotProcessor(_0x175049,_0x436eab){if(_0x436eab['shadowRoot'])return;let _0x456b6a=[..._0x175049['querySelectorAll']('slot')];if(!_0x456b6a['length'])return;let _0x3ddc8a={};_0x456b6a['forEach'](_0x5410a4=>{let _0x355cab=_0x5410a4['getAttribute']('name')||DEFAULT_SLOT_KEY;_0x3ddc8a[_0x355cab]={'slot':_0x5410a4,'fr':document['createDocumentFragment']()};}),_0x436eab['initChildren']['forEach'](_0x2274a7=>{var _0x3a9143;let _0x8e1b8=DEFAULT_SLOT_KEY;_0x2274a7 instanceof Element&&_0x2274a7['hasAttribute']('slot')&&(_0x8e1b8=_0x2274a7['getAttribute']('slot'),_0x2274a7['removeAttribute']('slot')),null==(_0x3a9143=_0x3ddc8a[_0x8e1b8])||_0x3a9143['fr']['appendChild'](_0x2274a7);}),Object['values'](_0x3ddc8a)['forEach'](_0x4ccfb1=>{if(_0x4ccfb1['fr']['childNodes']['length'])_0x4ccfb1['slot']['parentNode']['replaceChild'](_0x4ccfb1['fr'],_0x4ccfb1['slot']);else{if(_0x4ccfb1['slot']['childNodes']['length']){let _0x4cf6c2=document['createDocumentFragment']();_0x4cf6c2['append'](..._0x4ccfb1['slot']['childNodes']),_0x4ccfb1['slot']['parentNode']['replaceChild'](_0x4cf6c2,_0x4ccfb1['slot']);}else _0x4ccfb1['slot']['remove']();}});}function refProcessor(_0x553678,_0x393de2){[..._0x553678['querySelectorAll']('['+DICT['EL_REF_ATTR']+']')]['forEach'](_0x7dff1a=>{let _0x341e9b=_0x7dff1a['getAttribute'](DICT['EL_REF_ATTR']);_0x393de2['ref'][_0x341e9b]=_0x7dff1a,_0x7dff1a['removeAttribute'](DICT['EL_REF_ATTR']);});}function domSetProcessor(_0x4ff3be,_0x2b2bf8){[..._0x4ff3be['querySelectorAll']('['+DICT['BIND_ATTR']+']')]['forEach'](_0x259238=>{let _0xcb710c=_0x259238['getAttribute'](DICT['BIND_ATTR'])['split'](';');[..._0x259238['attributes']]['forEach'](_0x471a35=>{if(_0x471a35['name']['startsWith']('-')&&_0x471a35['value']){let _0x31d51b=kebabToCamel(_0x471a35['name']['replace']('-',''));_0xcb710c['push'](_0x31d51b+':'+_0x471a35['value']),_0x259238['removeAttribute'](_0x471a35['name']);}}),_0xcb710c['forEach'](_0x1da9f7=>{if(!_0x1da9f7)return;let _0x1a75ab,_0x38d66b=_0x1da9f7['split'](':')['map'](_0x280331=>_0x280331['trim']()),_0x4c7ac4=_0x38d66b[0x0];0x0===_0x4c7ac4['indexOf'](DICT['ATTR_BIND_PRFX'])&&(_0x1a75ab=!0x0,_0x4c7ac4=_0x4c7ac4['replace'](DICT['ATTR_BIND_PRFX'],''));let _0x460dec=_0x38d66b[0x1]['split'](',')['map'](_0x575335=>_0x575335['trim']());for(let _0x681e82 of _0x460dec){let _0x39b7a0;_0x681e82['startsWith']('!!')?(_0x39b7a0='double',_0x681e82=_0x681e82['replace']('!!','')):_0x681e82['startsWith']('!')&&(_0x39b7a0='single',_0x681e82=_0x681e82['replace']('!','')),_0x2b2bf8['sub'](_0x681e82,_0x41eba6=>{'double'===_0x39b7a0?_0x41eba6=!!_0x41eba6:'single'===_0x39b7a0&&(_0x41eba6=!_0x41eba6),_0x1a75ab?(null==_0x41eba6?void 0x0:_0x41eba6['constructor'])===Boolean?_0x41eba6?_0x259238['setAttribute'](_0x4c7ac4,''):_0x259238['removeAttribute'](_0x4c7ac4):_0x259238['setAttribute'](_0x4c7ac4,_0x41eba6):setNestedProp(_0x259238,_0x4c7ac4,_0x41eba6)||(_0x259238[DICT['SET_LATER_KEY']]||(_0x259238[DICT['SET_LATER_KEY']]=Object['create'](null)),_0x259238[DICT['SET_LATER_KEY']][_0x4c7ac4]=_0x41eba6);});}}),_0x259238['removeAttribute'](DICT['BIND_ATTR']);});}var OPEN_TOKEN$1='{{',CLOSE_TOKEN$1='}}',SKIP_ATTR='skip-text';function getTextNodesWithTokens(_0x54e9ec){let _0x46d5e7,_0x2cc2ce=[],_0xd22556=document['createTreeWalker'](_0x54e9ec,NodeFilter['SHOW_TEXT'],{'acceptNode':_0x1bb32c=>{var _0x81047b;return!(null==(_0x81047b=_0x1bb32c['parentElement'])?void 0x0:_0x81047b['hasAttribute'](SKIP_ATTR))&&_0x1bb32c['textContent']['includes'](OPEN_TOKEN$1)&&_0x1bb32c['textContent']['includes'](CLOSE_TOKEN$1)&&0x1;}});for(;_0x46d5e7=_0xd22556['nextNode']();)_0x2cc2ce['push'](_0x46d5e7);return _0x2cc2ce;}var txtNodesProcessor=function(_0xb996fe,_0x34a08b){getTextNodesWithTokens(_0xb996fe)['forEach'](_0x484057=>{let _0x1d53e6,_0x164db2=[];for(;_0x484057['textContent']['includes'](CLOSE_TOKEN$1);)_0x484057['textContent']['startsWith'](OPEN_TOKEN$1)?(_0x1d53e6=_0x484057['textContent']['indexOf'](CLOSE_TOKEN$1)+CLOSE_TOKEN$1['length'],_0x484057['splitText'](_0x1d53e6),_0x164db2['push'](_0x484057)):(_0x1d53e6=_0x484057['textContent']['indexOf'](OPEN_TOKEN$1),_0x484057['splitText'](_0x1d53e6)),_0x484057=_0x484057['nextSibling'];_0x164db2['forEach'](_0x142f16=>{let _0x353e29=_0x142f16['textContent']['replace'](OPEN_TOKEN$1,'')['replace'](CLOSE_TOKEN$1,'');_0x142f16['textContent']='',_0x34a08b['sub'](_0x353e29,_0x3aeb11=>{_0x142f16['textContent']=_0x3aeb11;});});});},tpl_processors_default=[repeatProcessor,slotProcessor,refProcessor,domSetProcessor,txtNodesProcessor],SINGLE_QUOTE='\x27',DOUBLE_QUOTE='\x22',ESCAPED_PATTERN=/\\([0-9a-fA-F]{1,6} ?)/g;function hasLeadingTrailingQuotes(_0x2e657c){return!(_0x2e657c[0x0]!==DOUBLE_QUOTE&&_0x2e657c[0x0]!==SINGLE_QUOTE||_0x2e657c[_0x2e657c['length']-0x1]!==DOUBLE_QUOTE&&_0x2e657c[_0x2e657c['length']-0x1]!==SINGLE_QUOTE);}function trimQuotes(_0x11701c){return _0x11701c[0x0]!==DOUBLE_QUOTE&&_0x11701c[0x0]!==SINGLE_QUOTE||(_0x11701c=_0x11701c['slice'](0x1)),_0x11701c[_0x11701c['length']-0x1]!==DOUBLE_QUOTE&&_0x11701c[_0x11701c['length']-0x1]!==SINGLE_QUOTE||(_0x11701c=_0x11701c['slice'](0x0,-0x1)),_0x11701c;}function escapeQuotes(_0x12c744){let _0x18cfaa='',_0x106c7f='';for(var _0x1d5aa3=0x0;_0x1d5aa3<_0x12c744['length'];_0x1d5aa3++){const _0xb9f627=_0x12c744[_0x1d5aa3+0x1];'\x5c'===_0x12c744[_0x1d5aa3]&&'\x22'===_0xb9f627?(_0x18cfaa+='\x5c\x22',_0x1d5aa3++):'\x22'===_0x12c744[_0x1d5aa3]&&'\x5c'!==_0x106c7f?_0x18cfaa+='\x5c\x22':_0x18cfaa+=_0x12c744[_0x1d5aa3],_0x106c7f=_0x12c744[_0x1d5aa3];}return _0x18cfaa;}function parseCssPropertyValue(_0x312163){let _0x4ebe6d=_0x312163;hasLeadingTrailingQuotes(_0x312163)&&(_0x4ebe6d=trimQuotes(_0x4ebe6d),_0x4ebe6d=_0x4ebe6d['replace'](ESCAPED_PATTERN,(_0x20a113,_0xef45ea)=>String['fromCodePoint'](parseInt(_0xef45ea['trim'](),0x10))),_0x4ebe6d=_0x4ebe6d['replaceAll']('\x5c\x0a','\x5cn'),_0x4ebe6d=escapeQuotes(_0x4ebe6d),_0x4ebe6d=DOUBLE_QUOTE+_0x4ebe6d+DOUBLE_QUOTE);try{return JSON['parse'](_0x4ebe6d);}catch(_0x3e83f){throw new Error('Failed\x20to\x20parse\x20CSS\x20property\x20value:\x20'+_0x4ebe6d+'.\x20Original\x20input:\x20'+_0x312163);}}var autoTagsCount=0x0,styleMutationObserver=null,styleMutationObserverCbList=null,_BaseComponent=class extends HTMLElement{constructor(){super(),__publicField(this,'updateCssData',()=>{var _0x3f5be6;this['dropCssDataCache'](),null==(_0x3f5be6=this['__boundCssProps'])||_0x3f5be6['forEach'](_0x428e95=>{let _0x583897=this['getCssData'](this['__extractCssName'](_0x428e95),!0x0);null!==_0x583897&&this['$'][_0x428e95]!==_0x583897&&(this['$'][_0x428e95]=_0x583897);});}),this['init$']=Object['create'](null),this['cssInit$']=Object['create'](null),this['tplProcessors']=new Set(),this['ref']=Object['create'](null),this['allSubs']=new Set(),this['pauseRender']=!0x1,this['renderShadow']=!0x1,this['readyToDestroy']=!0x0,this['processInnerHtml']=!0x1,this['allowCustomTemplate']=!0x1,this['ctxOwner']=!0x1;}get['BaseComponent'](){return _BaseComponent;}['initCallback'](){}['__initCallback'](){var _0x1492e3;this['__initialized']||(this['__initialized']=!0x0,null==(_0x1492e3=this['initCallback'])||_0x1492e3['call'](this));}['render'](_0x30ec48,_0xa3311d=this['renderShadow']){let _0x16c691;if(!_0xa3311d&&!this['constructor']['__shadowStylesUrl']||this['shadowRoot']||this['attachShadow']({'mode':'open'}),this['allowCustomTemplate']){let _0x54410c=this['getAttribute'](DICT['USE_TPL']);if(_0x54410c){let _0xa05225=this['getRootNode'](),_0x1d6892=(null==_0xa05225?void 0x0:_0xa05225['querySelector'](_0x54410c))||document['querySelector'](_0x54410c);_0x1d6892?_0x30ec48=_0x1d6892['content']['cloneNode'](!0x0):console['warn']('Symbiote\x20template\x20\x22'+_0x54410c+'\x22\x20is\x20not\x20found...');}}if(this['processInnerHtml']){for(let _0x4a43fb of this['tplProcessors'])_0x4a43fb(this,this);}if(_0x30ec48||this['constructor']['template']){if(this['constructor']['template']&&!this['constructor']['__tpl']&&(this['constructor']['__tpl']=document['createElement']('template'),this['constructor']['__tpl']['innerHTML']=this['constructor']['template']),(null==_0x30ec48?void 0x0:_0x30ec48['constructor'])===DocumentFragment)_0x16c691=_0x30ec48;else{if((null==_0x30ec48?void 0x0:_0x30ec48['constructor'])===String){let _0x36580b=document['createElement']('template');_0x36580b['innerHTML']=_0x30ec48,_0x16c691=_0x36580b['content']['cloneNode'](!0x0);}else this['constructor']['__tpl']&&(_0x16c691=this['constructor']['__tpl']['content']['cloneNode'](!0x0));}for(let _0x3dfb19 of this['tplProcessors'])_0x3dfb19(_0x16c691,this);}let _0x50b350=()=>{_0x16c691&&(_0xa3311d&&this['shadowRoot']['appendChild'](_0x16c691)||this['appendChild'](_0x16c691)),this['__initCallback']();};if(this['constructor']['__shadowStylesUrl']){_0xa3311d=!0x0;let _0x2042f8=document['createElement']('link');_0x2042f8['rel']='stylesheet',_0x2042f8['href']=this['constructor']['__shadowStylesUrl'],_0x2042f8['onload']=_0x50b350,this['shadowRoot']['prepend'](_0x2042f8);}else _0x50b350();}['addTemplateProcessor'](_0x142d70){this['tplProcessors']['add'](_0x142d70);}get['autoCtxName'](){return this['__autoCtxName']||(this['__autoCtxName']=UID['generate'](),this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+this['__autoCtxName']+'\x27')),this['__autoCtxName'];}get['cssCtxName'](){return this['getCssData'](DICT['CSS_CTX_PROP'],!0x0);}get['ctxName'](){var _0x51c9e1;let _0x42cf21=(null==(_0x51c9e1=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x51c9e1['trim']())||this['cssCtxName']||this['__cachedCtxName']||this['autoCtxName'];return this['__cachedCtxName']=_0x42cf21,_0x42cf21;}get['localCtx'](){return this['__localCtx']||(this['__localCtx']=Data['registerCtx']({},this)),this['__localCtx'];}get['nodeCtx'](){return Data['getCtx'](this['ctxName'],!0x1)||Data['registerCtx']({},this['ctxName']);}static['__parseProp'](_0x2747da,_0x2b9661){let _0x315c0a,_0x4e5b70;if(_0x2747da['startsWith'](DICT['EXT_DATA_CTX_PRFX']))_0x315c0a=_0x2b9661['nodeCtx'],_0x4e5b70=_0x2747da['replace'](DICT['EXT_DATA_CTX_PRFX'],'');else{if(_0x2747da['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x429fd4=_0x2747da['split'](DICT['NAMED_DATA_CTX_SPLTR']);_0x315c0a=Data['getCtx'](_0x429fd4[0x0]),_0x4e5b70=_0x429fd4[0x1];}else _0x315c0a=_0x2b9661['localCtx'],_0x4e5b70=_0x2747da;}return{'ctx':_0x315c0a,'name':_0x4e5b70};}['sub'](_0xce8dfc,_0x1a3726,_0x48d707=!0x0){let _0xee1e55=_0x3a153a=>{this['isConnected']&&_0x1a3726(_0x3a153a);},_0x4a2e26=_BaseComponent['__parseProp'](_0xce8dfc,this);_0x4a2e26['ctx']['has'](_0x4a2e26['name'])?this['allSubs']['add'](_0x4a2e26['ctx']['sub'](_0x4a2e26['name'],_0xee1e55,_0x48d707)):window['setTimeout'](()=>{this['allSubs']['add'](_0x4a2e26['ctx']['sub'](_0x4a2e26['name'],_0xee1e55,_0x48d707));});}['notify'](_0x29395d){let _0x3b9417=_BaseComponent['__parseProp'](_0x29395d,this);_0x3b9417['ctx']['notify'](_0x3b9417['name']);}['has'](_0x55cec5){let _0x26dfda=_BaseComponent['__parseProp'](_0x55cec5,this);return _0x26dfda['ctx']['has'](_0x26dfda['name']);}['add'](_0xa2ae7e,_0x405fb0,_0x351434=!0x1){let _0x2fc4ed=_BaseComponent['__parseProp'](_0xa2ae7e,this);_0x2fc4ed['ctx']['add'](_0x2fc4ed['name'],_0x405fb0,_0x351434);}['add$'](_0x196529,_0x2264e3=!0x1){for(let _0x178e24 in _0x196529)this['add'](_0x178e24,_0x196529[_0x178e24],_0x2264e3);}get['$'](){if(!this['__stateProxy']){let _0x532354=Object['create'](null);this['__stateProxy']=new Proxy(_0x532354,{'set':(_0x11feed,_0x35b998,_0x23e0f2)=>{let _0xac7b8f=_BaseComponent['__parseProp'](_0x35b998,this);return _0xac7b8f['ctx']['pub'](_0xac7b8f['name'],_0x23e0f2),!0x0;},'get':(_0x23ce03,_0x1be4ae)=>{let _0x53ee90=_BaseComponent['__parseProp'](_0x1be4ae,this);return _0x53ee90['ctx']['read'](_0x53ee90['name']);}});}return this['__stateProxy'];}['set$'](_0x4aaf55,_0x1e1f52=!0x1){for(let _0x2dc080 in _0x4aaf55){let _0x2dbf41=_0x4aaf55[_0x2dc080],_0x510b23=[String,Number,Boolean];(_0x1e1f52||!_0x510b23['includes'](null==_0x2dbf41?void 0x0:_0x2dbf41['constructor'])||this['$'][_0x2dc080]!==_0x2dbf41)&&(this['$'][_0x2dc080]=_0x2dbf41);}}get['__ctxOwner'](){return this['ctxOwner']||this['hasAttribute'](DICT['CTX_OWNER_ATTR'])&&'false'!==this['getAttribute'](DICT['CTX_OWNER_ATTR']);}['__initDataCtx'](){let _0x1e185b=this['constructor']['__attrDesc'];if(_0x1e185b){for(let _0x39e872 of Object['values'](_0x1e185b))Object['keys'](this['init$'])['includes'](_0x39e872)||(this['init$'][_0x39e872]='');}for(let _0xa5c1f4 in this['init$'])if(_0xa5c1f4['startsWith'](DICT['EXT_DATA_CTX_PRFX']))this['nodeCtx']['add'](_0xa5c1f4['replace'](DICT['EXT_DATA_CTX_PRFX'],''),this['init$'][_0xa5c1f4],this['__ctxOwner']);else{if(_0xa5c1f4['includes'](DICT['NAMED_DATA_CTX_SPLTR'])){let _0x4e8ef7=_0xa5c1f4['split'](DICT['NAMED_DATA_CTX_SPLTR']),_0x5ce0c6=_0x4e8ef7[0x0]['trim'](),_0x1c6571=_0x4e8ef7[0x1]['trim']();if(_0x5ce0c6&&_0x1c6571){let _0x26b989=Data['getCtx'](_0x5ce0c6,!0x1);_0x26b989||(_0x26b989=Data['registerCtx']({},_0x5ce0c6)),_0x26b989['add'](_0x1c6571,this['init$'][_0xa5c1f4]);}}else this['localCtx']['add'](_0xa5c1f4,this['init$'][_0xa5c1f4]);}for(let _0x835f8d in this['cssInit$'])this['bindCssData'](_0x835f8d,this['cssInit$'][_0x835f8d]);this['__dataCtxInitialized']=!0x0;}['connectedCallback'](){var _0x5b5b1e;if(this['isConnected']){if(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),!this['connectedOnce']){let _0x12af4e=null==(_0x5b5b1e=this['getAttribute'](DICT['CTX_NAME_ATTR']))?void 0x0:_0x5b5b1e['trim']();if(_0x12af4e&&this['style']['setProperty'](DICT['CSS_CTX_PROP'],'\x27'+_0x12af4e+'\x27'),this['__initDataCtx'](),this[DICT['SET_LATER_KEY']]){for(let _0x30dedd in this[DICT['SET_LATER_KEY']])setNestedProp(this,_0x30dedd,this[DICT['SET_LATER_KEY']][_0x30dedd]);delete this[DICT['SET_LATER_KEY']];}this['initChildren']=[...this['childNodes']];for(let _0x48c459 of tpl_processors_default)this['addTemplateProcessor'](_0x48c459);if(this['pauseRender'])this['__initCallback']();else{if(this['constructor']['__rootStylesLink']){let _0x1632f8=this['getRootNode']();if(!_0x1632f8)return;if(null==_0x1632f8?void 0x0:_0x1632f8['querySelector']('link['+DICT['ROOT_STYLE_ATTR_NAME']+'=\x22'+this['constructor']['is']+'\x22]'))return void this['render']();let _0x2653b8=this['constructor']['__rootStylesLink']['cloneNode'](!0x0);_0x2653b8['setAttribute'](DICT['ROOT_STYLE_ATTR_NAME'],this['constructor']['is']),_0x2653b8['onload']=()=>{this['render']();},_0x1632f8['nodeType']===Node['DOCUMENT_NODE']?_0x1632f8['head']['appendChild'](_0x2653b8):_0x1632f8['prepend'](_0x2653b8);}else this['render']();}}this['connectedOnce']=!0x0;}}['destroyCallback'](){}['disconnectedCallback'](){this['connectedOnce']&&(this['dropCssDataCache'](),this['readyToDestroy']&&(this['__disconnectTimeout']&&window['clearTimeout'](this['__disconnectTimeout']),this['__disconnectTimeout']=window['setTimeout'](()=>{this['destroyCallback']();for(let _0x31b492 of this['allSubs'])_0x31b492['remove'](),this['allSubs']['delete'](_0x31b492);for(let _0xf08b12 of this['tplProcessors'])this['tplProcessors']['delete'](_0xf08b12);null==styleMutationObserverCbList||styleMutationObserverCbList['delete'](this['updateCssData']),(null==styleMutationObserverCbList?void 0x0:styleMutationObserverCbList['size'])||(null==styleMutationObserver||styleMutationObserver['disconnect'](),styleMutationObserver=null,styleMutationObserverCbList=null);},0x64)));}static['reg'](_0x4f2442,_0x4d60aa=!0x1){_0x4f2442||(autoTagsCount++,_0x4f2442=DICT['AUTO_TAG_PRFX']+'-'+autoTagsCount),this['__tag']=_0x4f2442;let _0x3b5c46=window['customElements']['get'](_0x4f2442);_0x3b5c46?_0x4d60aa||_0x3b5c46===this||console['warn'](['Element\x20with\x20tag\x20name\x20\x22'+_0x4f2442+'\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']('\x0a')):window['customElements']['define'](_0x4f2442,_0x4d60aa?class extends this{}:this);}static get['is'](){return this['__tag']||this['reg'](),this['__tag'];}static['bindAttributes'](_0x55c81e){this['observedAttributes']=Object['keys'](_0x55c81e),this['__attrDesc']=_0x55c81e;}['attributeChangedCallback'](_0x5b6135,_0x54d3d1,_0x2c26c5){var _0x4eba90;if(_0x54d3d1===_0x2c26c5)return;let _0x465526=null==(_0x4eba90=this['constructor']['__attrDesc'])?void 0x0:_0x4eba90[_0x5b6135];_0x465526?this['__dataCtxInitialized']?this['$'][_0x465526]=_0x2c26c5:this['init$'][_0x465526]=_0x2c26c5:this[_0x5b6135]=_0x2c26c5;}['getCssData'](_0x2b4235,_0x2ea7cf=!0x1){if(this['__cssDataCache']||(this['__cssDataCache']=Object['create'](null)),!Object['keys'](this['__cssDataCache'])['includes'](_0x2b4235)){this['__computedStyle']||(this['__computedStyle']=window['getComputedStyle'](this));let _0x2e17d1=this['__computedStyle']['getPropertyValue'](_0x2b4235)['trim']();try{this['__cssDataCache'][_0x2b4235]=parseCssPropertyValue(_0x2e17d1);}catch(_0x53dc52){!_0x2ea7cf&&console['warn']('CSS\x20Data\x20error:\x20'+_0x2b4235),this['__cssDataCache'][_0x2b4235]=null;}}return this['__cssDataCache'][_0x2b4235];}['__extractCssName'](_0x5c6281){return _0x5c6281['split']('--')['map']((_0x52919e,_0x245b70)=>0x0===_0x245b70?'':_0x52919e)['join']('--');}['__initStyleAttrObserver'](){styleMutationObserverCbList||(styleMutationObserverCbList=new Set()),styleMutationObserverCbList['add'](this['updateCssData']),styleMutationObserver||(styleMutationObserver=new MutationObserver(_0xba66a1=>{'attributes'===_0xba66a1[0x0]['type']&&styleMutationObserverCbList['forEach'](_0x1e6e30=>{_0x1e6e30();});}))['observe'](document,{'childList':!0x0,'subtree':!0x0,'attributes':!0x0,'attributeFilter':['style']});}['bindCssData'](_0x4f4693,_0x4c58fe=''){this['__boundCssProps']||(this['__boundCssProps']=new Set()),this['__boundCssProps']['add'](_0x4f4693);let _0x162ddb=this['getCssData'](this['__extractCssName'](_0x4f4693),!0x0);null===_0x162ddb&&(_0x162ddb=_0x4c58fe),this['add'](_0x4f4693,_0x162ddb),this['__initStyleAttrObserver']();}['dropCssDataCache'](){this['__cssDataCache']=null,this['__computedStyle']=null;}['defineAccessor'](_0x2a22ba,_0x4d067d,_0x5115bf){let _0x9ae742='__'+_0x2a22ba;this[_0x9ae742]=this[_0x2a22ba],Object['defineProperty'](this,_0x2a22ba,{'set':_0x3ed21f=>{this[_0x9ae742]=_0x3ed21f,_0x5115bf?window['setTimeout'](()=>{null==_0x4d067d||_0x4d067d(_0x3ed21f);}):null==_0x4d067d||_0x4d067d(_0x3ed21f);},'get':()=>this[_0x9ae742]}),this[_0x2a22ba]=this[_0x9ae742];}static set['shadowStyles'](_0x3b6ab1){let _0x5110bb=new Blob([_0x3b6ab1],{'type':'text/css'});this['__shadowStylesUrl']=URL['createObjectURL'](_0x5110bb);}static set['rootStyles'](_0x1c5230){if(!this['__rootStylesLink']){let _0x3cf94d=new Blob([_0x1c5230],{'type':'text/css'}),_0x350af7=URL['createObjectURL'](_0x3cf94d),_0x11ed2e=document['createElement']('link');_0x11ed2e['href']=_0x350af7,_0x11ed2e['rel']='stylesheet',this['__rootStylesLink']=_0x11ed2e;}}},BaseComponent=_BaseComponent;function applyStyles(_0x185f46,_0x38b547){for(let _0x2f9d43 in _0x38b547)_0x2f9d43['includes']('-')?_0x185f46['style']['setProperty'](_0x2f9d43,_0x38b547[_0x2f9d43]):_0x185f46['style'][_0x2f9d43]=_0x38b547[_0x2f9d43];}function applyAttributes(_0x34f110,_0x5771ed){for(let _0x327f7d in _0x5771ed)_0x5771ed[_0x327f7d]['constructor']===Boolean?_0x5771ed[_0x327f7d]?_0x34f110['setAttribute'](_0x327f7d,''):_0x34f110['removeAttribute'](_0x327f7d):_0x34f110['setAttribute'](_0x327f7d,_0x5771ed[_0x327f7d]);}function create(_0x1b8ae2={'tag':'div'}){let _0x4e5581=document['createElement'](_0x1b8ae2['tag']);if(_0x1b8ae2['attributes']&&applyAttributes(_0x4e5581,_0x1b8ae2['attributes']),_0x1b8ae2['styles']&&applyStyles(_0x4e5581,_0x1b8ae2['styles']),_0x1b8ae2['properties']){for(let _0x1acd98 in _0x1b8ae2['properties'])_0x4e5581[_0x1acd98]=_0x1b8ae2['properties'][_0x1acd98];}return _0x1b8ae2['processors']&&_0x1b8ae2['processors']['forEach'](_0x5d3846=>{_0x5d3846(_0x4e5581);}),_0x1b8ae2['children']&&_0x1b8ae2['children']['forEach'](_0x55506a=>{let _0x306b35=create(_0x55506a);_0x4e5581['appendChild'](_0x306b35);}),_0x4e5581;}__publicField(BaseComponent,'template');var READY_EVENT_NAME='idb-store-ready',DEFAULT_DB_NAME='symbiote-db',UPD_EVENT_PREFIX='symbiote-idb-update_',DbInstance=class{['_notifyWhenReady'](_0x5e9328=null){window['dispatchEvent'](new CustomEvent(READY_EVENT_NAME,{'detail':{'dbName':this['name'],'storeName':this['storeName'],'event':_0x5e9328}}));}get['_updEventName'](){return UPD_EVENT_PREFIX+this['name'];}['_getUpdateEvent'](_0x239d30){return new CustomEvent(this['_updEventName'],{'detail':{'key':this['name'],'newValue':_0x239d30}});}['_notifySubscribers'](_0x443a2a){window['localStorage']['removeItem'](this['name']),window['localStorage']['setItem'](this['name'],_0x443a2a),window['dispatchEvent'](this['_getUpdateEvent'](_0x443a2a));}constructor(_0x2ad596,_0x94a7c4){this['name']=_0x2ad596,this['storeName']=_0x94a7c4,this['version']=0x1,this['request']=window['indexedDB']['open'](this['name'],this['version']),this['request']['onupgradeneeded']=_0x1c5815=>{this['db']=_0x1c5815['target']['result'],this['objStore']=this['db']['createObjectStore'](_0x94a7c4,{'keyPath':'_key'}),this['objStore']['transaction']['oncomplete']=_0x749e98=>{this['_notifyWhenReady'](_0x749e98);};},this['request']['onsuccess']=_0x501c39=>{this['db']=_0x501c39['target']['result'],this['_notifyWhenReady'](_0x501c39);},this['request']['onerror']=_0x21b06a=>{console['error'](_0x21b06a);},this['_subscriptionsMap']={},this['_updateHandler']=_0x2f5f87=>{_0x2f5f87['key']===this['name']&&this['_subscriptionsMap'][_0x2f5f87['newValue']]&&this['_subscriptionsMap'][_0x2f5f87['newValue']]['forEach'](async _0xe24278=>{_0xe24278(await this['read'](_0x2f5f87['newValue']));});},this['_localUpdateHandler']=_0x1997aa=>{this['_updateHandler'](_0x1997aa['detail']);},window['addEventListener']('storage',this['_updateHandler']),window['addEventListener'](this['_updEventName'],this['_localUpdateHandler']);}['read'](_0x26a012){let _0x465c4a=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['get'](_0x26a012);return new Promise((_0x4e3ce4,_0x1120c5)=>{_0x465c4a['onsuccess']=_0x1ef038=>{var _0x493c8b;(null==(_0x493c8b=_0x1ef038['target']['result'])?void 0x0:_0x493c8b['_value'])?_0x4e3ce4(_0x1ef038['target']['result']['_value']):(_0x4e3ce4(null),console['warn']('IDB:\x20cannot\x20read\x20\x22'+_0x26a012+'\x22'));},_0x465c4a['onerror']=_0x5a3381=>{_0x1120c5(_0x5a3381);};});}['write'](_0x694683,_0x3603ce,_0x5cc028=!0x1){let _0x57f56a={'_key':_0x694683,'_value':_0x3603ce},_0x1c2393=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['put'](_0x57f56a);return new Promise((_0x581c27,_0x31bdc6)=>{_0x1c2393['onsuccess']=_0x41d62c=>{_0x5cc028||this['_notifySubscribers'](_0x694683),_0x581c27(_0x41d62c['target']['result']);},_0x1c2393['onerror']=_0x5e3547=>{_0x31bdc6(_0x5e3547);};});}['delete'](_0x296819,_0x3fd965=!0x1){let _0xb7fd9b=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['delete'](_0x296819);return new Promise((_0x57de91,_0x212c91)=>{_0xb7fd9b['onsuccess']=_0x361bd5=>{_0x3fd965||this['_notifySubscribers'](_0x296819),_0x57de91(_0x361bd5);},_0xb7fd9b['onerror']=_0x3561eb=>{_0x212c91(_0x3561eb);};});}['getAll'](){let _0x4f0121=this['db']['transaction'](this['storeName'],'readwrite')['objectStore'](this['storeName'])['getAll']();return new Promise((_0x130669,_0x152b82)=>{_0x4f0121['onsuccess']=_0x3a61fb=>{let _0x3f1ce9=_0x3a61fb['target']['result'];_0x130669(_0x3f1ce9['map'](_0x4a129a=>_0x4a129a['_value']));},_0x4f0121['onerror']=_0x171e48=>{_0x152b82(_0x171e48);};});}['subscribe'](_0x43a8ea,_0x36915b){this['_subscriptionsMap'][_0x43a8ea]||(this['_subscriptionsMap'][_0x43a8ea]=new Set());let _0x44725f=this['_subscriptionsMap'][_0x43a8ea];return _0x44725f['add'](_0x36915b),{'remove':()=>{_0x44725f['delete'](_0x36915b),_0x44725f['size']||delete this['_subscriptionsMap'][_0x43a8ea];}};}['stop'](){window['removeEventListener']('storage',this['_updateHandler']),this['_subscriptionsMap']=null,IDB['clear'](this['name']);}},IDB=class{static get['readyEventName'](){return READY_EVENT_NAME;}static['open'](_0x35151d=DEFAULT_DB_NAME,_0x480f7b='store'){let _0xe64f2c=_0x35151d+'/'+_0x480f7b;return this['_reg'][_0xe64f2c]||(this['_reg'][_0xe64f2c]=new DbInstance(_0x35151d,_0x480f7b)),this['_reg'][_0xe64f2c];}static['clear'](_0xc5c651){window['indexedDB']['deleteDatabase'](_0xc5c651);for(let _0x2e9218 in this['_reg'])_0x2e9218['split']('/')[0x0]===_0xc5c651&&delete this['_reg'][_0x2e9218];}};function isObject(_0x2469f6){return'[object\x20Object]'===Object['prototype']['toString']['call'](_0x2469f6);}__publicField(IDB,'_reg',Object['create'](null));const SEPARATOR=/\W|_/g;function camelizeString(_0x249916){return _0x249916['split'](SEPARATOR)['map']((_0x2b9ac9,_0x3f2b29)=>_0x2b9ac9['charAt'](0x0)[_0x3f2b29>0x0?'toUpperCase':'toLowerCase']()+_0x2b9ac9['slice'](0x1))['join']('');}function camelizeArrayItems(_0xd9c297,{ignoreKeys:_0x350555}={'ignoreKeys':[]}){return Array['isArray'](_0xd9c297)?_0xd9c297['map'](_0x34b3c7=>camelizeKeys(_0x34b3c7,{'ignoreKeys':_0x350555})):_0xd9c297;}function camelizeKeys(_0x3b53e0,{ignoreKeys:_0x52a5d4}={'ignoreKeys':[]}){if(Array['isArray'](_0x3b53e0))return camelizeArrayItems(_0x3b53e0,{'ignoreKeys':_0x52a5d4});if(!isObject(_0x3b53e0))return _0x3b53e0;const _0x56e1f6={};for(const _0x183388 of Object['keys'](_0x3b53e0)){let _0x2f8a81=_0x3b53e0[_0x183388];_0x52a5d4['includes'](_0x183388)?_0x56e1f6[_0x183388]=_0x2f8a81:(isObject(_0x2f8a81)?_0x2f8a81=camelizeKeys(_0x2f8a81,{'ignoreKeys':_0x52a5d4}):Array['isArray'](_0x2f8a81)&&(_0x2f8a81=camelizeArrayItems(_0x2f8a81,{'ignoreKeys':_0x52a5d4})),_0x56e1f6[camelizeString(_0x183388)]=_0x2f8a81);}return _0x56e1f6;}const delay=_0x5be511=>new Promise(_0x329b64=>setTimeout(_0x329b64,_0x5be511));function getUserAgent$1({libraryName:_0x40368b,libraryVersion:_0x38c654,userAgent:_0x3e14dd,publicKey:_0x2b7510='',integration:_0x2ad0fd=''}){const _0x94bdd7='JavaScript';if('string'==typeof _0x3e14dd)return _0x3e14dd;if('function'==typeof _0x3e14dd)return _0x3e14dd({'publicKey':_0x2b7510,'libraryName':_0x40368b,'libraryVersion':_0x38c654,'languageName':_0x94bdd7,'integration':_0x2ad0fd});return[_0x40368b,_0x38c654,_0x2b7510]['filter'](Boolean)['join']('/')+'\x20('+[_0x94bdd7,_0x2ad0fd]['filter'](Boolean)['join'](';\x20')+')';}const defaultOptions={'factor':0x2,'time':0x64};function retrier(_0x42945c,_0x9a3f82=defaultOptions){let _0xbda8dd=0x0;return function _0x370608(_0x275b75){const _0x21a66a=Math['round'](_0x9a3f82['time']*_0x9a3f82['factor']**_0xbda8dd);return _0x275b75({'attempt':_0xbda8dd,'retry':_0x4557de=>delay(_0x4557de??_0x21a66a)['then'](()=>(_0xbda8dd+=0x1,_0x370608(_0x275b75)))});}(_0x42945c);}class UploadcareError extends Error{}class NetworkError extends UploadcareError{['originalProgressEvent'];constructor(_0x154258){super(),this['name']='NetworkError',this['message']='Network\x20error',Object['setPrototypeOf'](this,NetworkError['prototype']),this['originalProgressEvent']=_0x154258;}}const onCancel=(_0x7e8dc8,_0x5c2212)=>{_0x7e8dc8&&(_0x7e8dc8['aborted']?Promise['resolve']()['then'](_0x5c2212):_0x7e8dc8['addEventListener']('abort',()=>_0x5c2212(),{'once':!0x0}));};class CancelError extends UploadcareError{['isCancel']=!0x0;constructor(_0x16c4a1='Request\x20canceled'){super(_0x16c4a1),this['name']='CancelError',Object['setPrototypeOf'](this,CancelError['prototype']);}}const DEFAULT_INTERVAL=0x1f4,poll=({check:_0x57942e,interval:_0x2881fb=DEFAULT_INTERVAL,timeout:_0x3c5ec3,signal:_0x138393})=>new Promise((_0x5ab185,_0x3b56fe)=>{let _0xd264ca,_0x2c9aa7;onCancel(_0x138393,()=>{_0xd264ca&&clearTimeout(_0xd264ca),_0x3b56fe(new CancelError('Poll\x20cancelled'));}),_0x3c5ec3&&(_0x2c9aa7=setTimeout(()=>{_0xd264ca&&clearTimeout(_0xd264ca),_0x3b56fe(new CancelError('Timed\x20out'));},_0x3c5ec3));const _0x14005d=()=>{try{Promise['resolve'](_0x57942e(_0x138393))['then'](_0xcebe4d=>{_0xcebe4d?(_0x2c9aa7&&clearTimeout(_0x2c9aa7),_0x5ab185(_0xcebe4d)):_0xd264ca=setTimeout(_0x14005d,_0x2881fb);})['catch'](_0x4418d3=>{_0x2c9aa7&&clearTimeout(_0x2c9aa7),_0x3b56fe(_0x4418d3);});}catch(_0x3d736d){_0x2c9aa7&&clearTimeout(_0x2c9aa7),_0x3b56fe(_0x3d736d);}};_0xd264ca=setTimeout(_0x14005d,0x0);}),defaultSettings={'baseCDN':'https://ucarecdn.com','baseURL':'https://upload.uploadcare.com','retryThrottledRequestMaxTimes':0x1,'retryNetworkErrorMaxTimes':0x3,'multipartMinFileSize':0x1900000,'multipartChunkSize':0x500000,'maxConcurrentRequests':0x4,'pusherKey':'79ae88bd931ea68464d9'},defaultContentType='application/octet-stream',defaultFilename='original',request=({method:_0x2b5911,url:_0x43e947,data:_0x4dd059,headers:_0x5d385e={},signal:_0x37072e,onProgress:_0x28464b})=>new Promise((_0x57b85b,_0x2ffa83)=>{const _0x3d290c=new XMLHttpRequest(),_0x48daf7=_0x2b5911?.['toUpperCase']()||'GET';let _0x4d9de6=!0x1;_0x3d290c['open'](_0x48daf7,_0x43e947,!0x0),_0x5d385e&&Object['entries'](_0x5d385e)['forEach'](_0x496026=>{const [_0x2fc5f1,_0x4ec639]=_0x496026;void 0x0!==_0x4ec639&&!Array['isArray'](_0x4ec639)&&_0x3d290c['setRequestHeader'](_0x2fc5f1,_0x4ec639);}),_0x3d290c['responseType']='text',onCancel(_0x37072e,()=>{_0x4d9de6=!0x0,_0x3d290c['abort'](),_0x2ffa83(new CancelError());}),_0x3d290c['onload']=()=>{if(0xc8!=_0x3d290c['status'])_0x2ffa83(new Error('Error\x20'+_0x3d290c['status']+':\x20'+_0x3d290c['statusText']));else{const _0x502bcb={'method':_0x48daf7,'url':_0x43e947,'data':_0x4dd059,'headers':_0x5d385e||void 0x0,'signal':_0x37072e,'onProgress':_0x28464b},_0x5865bc=_0x3d290c['getAllResponseHeaders']()['trim']()['split'](/[\r\n]+/),_0x24d455={};_0x5865bc['forEach'](function(_0xa8b18e){const _0x13cc79=_0xa8b18e['split'](':\x20'),_0x152245=_0x13cc79['shift'](),_0x1bd058=_0x13cc79['join'](':\x20');_0x152245&&void 0x0!==_0x152245&&(_0x24d455[_0x152245]=_0x1bd058);});const _0x4f87df=_0x3d290c['response'],_0x555521=_0x3d290c['status'];_0x57b85b({'request':_0x502bcb,'data':_0x4f87df,'headers':_0x24d455,'status':_0x555521});}},_0x3d290c['onerror']=_0x51f76f=>{_0x4d9de6||_0x2ffa83(new NetworkError(_0x51f76f));},_0x28464b&&'function'==typeof _0x28464b&&(_0x3d290c['upload']['onprogress']=_0x401dca=>{_0x401dca['lengthComputable']?_0x28464b({'isComputable':!0x0,'value':_0x401dca['loaded']/_0x401dca['total']}):_0x28464b({'isComputable':!0x1});}),_0x4dd059?_0x3d290c['send'](_0x4dd059):_0x3d290c['send']();});function identity(_0x4d7b7c,..._0x1296e2){return _0x4d7b7c;}const getFileOptions=({name:_0xb1f023})=>_0xb1f023?[_0xb1f023]:[],transformFile=identity;var getFormData=()=>new FormData();const isBuffer=_0x2d081b=>!0x1,isBlob=_0x3b09db=>'undefined'!=typeof Blob&&_0x3b09db instanceof Blob,isFile=_0x8bca31=>'undefined'!=typeof File&&_0x8bca31 instanceof File,isReactNativeAsset=_0x2a85b4=>!!_0x2a85b4&&'object'==typeof _0x2a85b4&&!Array['isArray'](_0x2a85b4)&&'uri'in _0x2a85b4&&'string'==typeof _0x2a85b4['uri'],isFileData=_0x16b617=>isBlob(_0x16b617)||isFile(_0x16b617)||isBuffer()||isReactNativeAsset(_0x16b617),isSimpleValue=_0x2242cd=>'string'==typeof _0x2242cd||'number'==typeof _0x2242cd||void 0x0===_0x2242cd,isObjectValue=_0x8164c3=>!!_0x8164c3&&'object'==typeof _0x8164c3&&!Array['isArray'](_0x8164c3),isFileValue=_0x105042=>!!_0x105042&&'object'==typeof _0x105042&&'data'in _0x105042&&isFileData(_0x105042['data']);function collectParams(_0x12c581,_0x107b69,_0x329022){if(Array['isArray'](_0x329022)){for(const _0x299f2f of _0x329022)collectParams(_0x12c581,_0x107b69+'[]',_0x299f2f);}else{if(isFileValue(_0x329022)){const {name:_0x425b6c,contentType:_0x3fdad3}=_0x329022,_0x449802=transformFile(_0x329022['data'],_0x425b6c,_0x3fdad3??defaultContentType),_0x5ac88e=getFileOptions({'name':_0x425b6c});_0x12c581['push']([_0x107b69,_0x449802,..._0x5ac88e]);}else{if(isObjectValue(_0x329022)){for(const [_0x14102c,_0x25c812]of Object['entries'](_0x329022))void 0x0!==_0x25c812&&_0x12c581['push']([_0x107b69+'['+_0x14102c+']',String(_0x25c812)]);}else isSimpleValue(_0x329022)&&_0x329022&&_0x12c581['push']([_0x107b69,_0x329022['toString']()]);}}}function getFormDataParams(_0x49472a){const _0x47c22c=[];for(const [_0x1fbc1f,_0x3cb424]of Object['entries'](_0x49472a))collectParams(_0x47c22c,_0x1fbc1f,_0x3cb424);return _0x47c22c;}function buildFormData(_0x46a3cf){const _0x8063e2=getFormData(),_0x326e6c=getFormDataParams(_0x46a3cf);for(const _0xe41a72 of _0x326e6c){const [_0x487c9e,_0x2a9b1d,..._0x54c19c]=_0xe41a72;_0x8063e2['append'](_0x487c9e,_0x2a9b1d,..._0x54c19c);}return _0x8063e2;}class UploadError extends UploadcareError{['code'];['request'];['response'];['headers'];constructor(_0x25e6c0,_0x4e70da,_0x518613,_0x39e715,_0x1b8810){super(),this['name']='UploadError',this['message']=_0x25e6c0,this['code']=_0x4e70da,this['request']=_0x518613,this['response']=_0x39e715,this['headers']=_0x1b8810,Object['setPrototypeOf'](this,UploadError['prototype']);}}const buildSearchParams=_0x2bcfd8=>{const _0x6ddb39=new URLSearchParams();for(const [_0x6998bc,_0x10f493]of Object['entries'](_0x2bcfd8))_0x10f493&&'object'==typeof _0x10f493&&!Array['isArray'](_0x10f493)?Object['entries'](_0x10f493)['filter'](_0x1a61fb=>_0x1a61fb[0x1]??!0x1)['forEach'](_0x6dbcbe=>_0x6ddb39['set'](_0x6998bc+'['+_0x6dbcbe[0x0]+']',String(_0x6dbcbe[0x1]))):Array['isArray'](_0x10f493)?_0x10f493['forEach'](_0x147a94=>{_0x6ddb39['append'](_0x6998bc+'[]',_0x147a94);}):'string'==typeof _0x10f493&&_0x10f493?_0x6ddb39['set'](_0x6998bc,_0x10f493):'number'==typeof _0x10f493&&_0x6ddb39['set'](_0x6998bc,_0x10f493['toString']());return _0x6ddb39['toString']();},getUrl=(_0x3304d1,_0x162307,_0x5ea8f5)=>{const _0x3e6281=new URL(_0x3304d1);return _0x3e6281['pathname']=(_0x3e6281['pathname']+_0x162307)['replace']('//','/'),_0x5ea8f5&&(_0x3e6281['search']=buildSearchParams(_0x5ea8f5)),_0x3e6281['toString']();};var version$1='6.18.2';const LIBRARY_NAME='UploadcareUploadClient',LIBRARY_VERSION=version$1;function getUserAgent(_0x21edae){return getUserAgent$1({'libraryName':LIBRARY_NAME,'libraryVersion':LIBRARY_VERSION,..._0x21edae});}const REQUEST_WAS_THROTTLED_CODE='RequestThrottledError',DEFAULT_RETRY_AFTER_TIMEOUT=0x3a98,DEFAULT_NETWORK_ERROR_TIMEOUT=0x3e8;function getTimeoutFromThrottledRequest(_0x20e63c){const {headers:_0x2896bb}=_0x20e63c||{};if(!_0x2896bb||'string'!=typeof _0x2896bb['retry-after'])return DEFAULT_RETRY_AFTER_TIMEOUT;const _0x541503=parseInt(_0x2896bb['retry-after'],0xa);return Number['isFinite'](_0x541503)?0x3e8*_0x541503:DEFAULT_RETRY_AFTER_TIMEOUT;}function retryIfFailed(_0x39091d,_0x4349cc){const {retryThrottledRequestMaxTimes:_0x4babf7,retryNetworkErrorMaxTimes:_0x1ba769}=_0x4349cc;return retrier(({attempt:_0xbc51b4,retry:_0x33d8e8})=>_0x39091d()['catch'](_0x2654ea=>{if('response'in _0x2654ea&&_0x2654ea?.['code']===REQUEST_WAS_THROTTLED_CODE&&_0xbc51b4<_0x4babf7)return _0x33d8e8(getTimeoutFromThrottledRequest(_0x2654ea));if(_0x2654ea instanceof NetworkError&&_0xbc51b4<_0x1ba769)return _0x33d8e8((_0xbc51b4+0x1)*DEFAULT_NETWORK_ERROR_TIMEOUT);throw _0x2654ea;}));}const getContentType=_0x293fc3=>{let _0x3e9b97='';return(isBlob(_0x293fc3)||isFile(_0x293fc3)||isReactNativeAsset(_0x293fc3))&&(_0x3e9b97=_0x293fc3['type']),_0x3e9b97||defaultContentType;},getFileName=_0x2ce49c=>{let _0x30fb69='';return isFile(_0x2ce49c)&&_0x2ce49c['name']?_0x30fb69=_0x2ce49c['name']:isBlob(_0x2ce49c)||isBuffer()?_0x30fb69='':isReactNativeAsset(_0x2ce49c)&&_0x2ce49c['name']&&(_0x30fb69=_0x2ce49c['name']),_0x30fb69||defaultFilename;};function getStoreValue(_0x59e3ca){return void 0x0===_0x59e3ca||'auto'===_0x59e3ca?'auto':_0x59e3ca?'1':'0';}function base(_0x18ea85,{publicKey:_0x584159,fileName:_0xc20b11,contentType:_0x4f7065,baseURL:_0x1f87c6=defaultSettings['baseURL'],secureSignature:_0x167318,secureExpire:_0x3748b1,store:_0x273157,signal:_0x1194a9,onProgress:_0x4f1cc1,source:_0x2ffe36='local',integration:_0x4814a0,userAgent:_0x4a88a1,retryThrottledRequestMaxTimes:_0x58c0cd=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x9513f=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x4d23a2}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x1f87c6,'/base/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x584159,'integration':_0x4814a0,'userAgent':_0x4a88a1})},'data':buildFormData({'file':{'data':_0x18ea85,'name':_0xc20b11||getFileName(_0x18ea85),'contentType':_0x4f7065||getContentType(_0x18ea85)},'UPLOADCARE_PUB_KEY':_0x584159,'UPLOADCARE_STORE':getStoreValue(_0x273157),'signature':_0x167318,'expire':_0x3748b1,'source':_0x2ffe36,'metadata':_0x4d23a2}),'signal':_0x1194a9,'onProgress':_0x4f1cc1})['then'](({data:_0x26ba50,headers:_0x3d9e6f,request:_0x8f5e7d})=>{const _0x2817d1=camelizeKeys(JSON['parse'](_0x26ba50));if('error'in _0x2817d1)throw new UploadError(_0x2817d1['error']['content'],_0x2817d1['error']['errorCode'],_0x8f5e7d,_0x2817d1,_0x3d9e6f);return _0x2817d1;}),{'retryNetworkErrorMaxTimes':_0x9513f,'retryThrottledRequestMaxTimes':_0x58c0cd});}var TypeEnum,Status;function fromUrl(_0x3b1d00,{publicKey:_0x46cdb7,baseURL:_0xf857b6=defaultSettings['baseURL'],store:_0x166329,fileName:_0x1c6e3b,checkForUrlDuplicates:_0x2c5b1a,saveUrlForRecurrentUploads:_0x1c7568,secureSignature:_0xb9ce72,secureExpire:_0x1964f3,source:_0x2e58b1='url',signal:_0x50404c,integration:_0x4bf735,userAgent:_0x3b132a,retryThrottledRequestMaxTimes:_0x3d6362=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0xc75c71=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x23347e}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x46cdb7,'integration':_0x4bf735,'userAgent':_0x3b132a})},'url':getUrl(_0xf857b6,'/from_url/',{'jsonerrors':0x1,'pub_key':_0x46cdb7,'source_url':_0x3b1d00,'store':getStoreValue(_0x166329),'filename':_0x1c6e3b,'check_URL_duplicates':_0x2c5b1a?0x1:void 0x0,'save_URL_duplicates':_0x1c7568?0x1:void 0x0,'signature':_0xb9ce72,'expire':_0x1964f3,'source':_0x2e58b1,'metadata':_0x23347e}),'signal':_0x50404c})['then'](({data:_0x3f402e,headers:_0x1a93ae,request:_0x54ce1d})=>{const _0x41ff52=camelizeKeys(JSON['parse'](_0x3f402e));if('error'in _0x41ff52)throw new UploadError(_0x41ff52['error']['content'],_0x41ff52['error']['errorCode'],_0x54ce1d,_0x41ff52,_0x1a93ae);return _0x41ff52;}),{'retryNetworkErrorMaxTimes':_0xc75c71,'retryThrottledRequestMaxTimes':_0x3d6362});}!function(_0x22f320){_0x22f320['Token']='token',_0x22f320['FileInfo']='file_info';}(TypeEnum||(TypeEnum={})),function(_0x3fc51c){_0x3fc51c['Unknown']='unknown',_0x3fc51c['Waiting']='waiting',_0x3fc51c['Progress']='progress',_0x3fc51c['Error']='error',_0x3fc51c['Success']='success';}(Status||(Status={}));const isErrorResponse=_0x18aef2=>'status'in _0x18aef2&&_0x18aef2['status']===Status['Error'];function fromUrlStatus(_0xbcef70,{publicKey:_0x5bd722,baseURL:_0x192cdb=defaultSettings['baseURL'],signal:_0x51549d,integration:_0x36ab34,userAgent:_0x42ad58,retryThrottledRequestMaxTimes:_0x42e7ae=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x2a1358=defaultSettings['retryNetworkErrorMaxTimes']}={}){return retryIfFailed(()=>request({'method':'GET','headers':_0x5bd722?{'X-UC-User-Agent':getUserAgent({'publicKey':_0x5bd722,'integration':_0x36ab34,'userAgent':_0x42ad58})}:void 0x0,'url':getUrl(_0x192cdb,'/from_url/status/',{'jsonerrors':0x1,'token':_0xbcef70}),'signal':_0x51549d})['then'](({data:_0x79ebf1,headers:_0x4950b6,request:_0x48bccf})=>{const _0x350cbb=camelizeKeys(JSON['parse'](_0x79ebf1));if('error'in _0x350cbb&&!isErrorResponse(_0x350cbb))throw new UploadError(_0x350cbb['error']['content'],_0x350cbb['error']['errorCode'],_0x48bccf,_0x350cbb,_0x4950b6);return _0x350cbb;}),{'retryNetworkErrorMaxTimes':_0x2a1358,'retryThrottledRequestMaxTimes':_0x42e7ae});}function group(_0x599ddd,{publicKey:_0x312890,baseURL:_0x33ac76=defaultSettings['baseURL'],jsonpCallback:_0x17adeb,secureSignature:_0x3c9066,secureExpire:_0x2ed981,signal:_0x21c762,source:_0x3ac687,integration:_0x13baf3,userAgent:_0x5e1206,retryThrottledRequestMaxTimes:_0x3577f4=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x207d43=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x312890,'integration':_0x13baf3,'userAgent':_0x5e1206})},'url':getUrl(_0x33ac76,'/group/',{'jsonerrors':0x1}),'data':buildFormData({'files':_0x599ddd,'callback':_0x17adeb,'pub_key':_0x312890,'signature':_0x3c9066,'expire':_0x2ed981,'source':_0x3ac687}),'signal':_0x21c762})['then'](({data:_0x4011eb,headers:_0x2cacc2,request:_0x4b3788})=>{const _0x327aeb=camelizeKeys(JSON['parse'](_0x4011eb));if('error'in _0x327aeb)throw new UploadError(_0x327aeb['error']['content'],_0x327aeb['error']['errorCode'],_0x4b3788,_0x327aeb,_0x2cacc2);return _0x327aeb;}),{'retryNetworkErrorMaxTimes':_0x207d43,'retryThrottledRequestMaxTimes':_0x3577f4});}function info(_0x108f83,{publicKey:_0x2c3200,baseURL:_0x3d0e56=defaultSettings['baseURL'],signal:_0x4cda75,source:_0x1eb2e9,integration:_0x4737ac,userAgent:_0x54af10,retryThrottledRequestMaxTimes:_0x58e376=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x4b6952=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'GET','headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x2c3200,'integration':_0x4737ac,'userAgent':_0x54af10})},'url':getUrl(_0x3d0e56,'/info/',{'jsonerrors':0x1,'pub_key':_0x2c3200,'file_id':_0x108f83,'source':_0x1eb2e9}),'signal':_0x4cda75})['then'](({data:_0x5ed8df,headers:_0x48c6df,request:_0x3bbf9f})=>{const _0x18f8e0=camelizeKeys(JSON['parse'](_0x5ed8df));if('error'in _0x18f8e0)throw new UploadError(_0x18f8e0['error']['content'],_0x18f8e0['error']['errorCode'],_0x3bbf9f,_0x18f8e0,_0x48c6df);return _0x18f8e0;}),{'retryThrottledRequestMaxTimes':_0x58e376,'retryNetworkErrorMaxTimes':_0x4b6952});}function multipartStart(_0x3c9301,{publicKey:_0x51cfe0,contentType:_0x4e0966,fileName:_0x1b8ad6,multipartChunkSize:_0x255f19=defaultSettings['multipartChunkSize'],baseURL:_0x2c169c='',secureSignature:_0x4df569,secureExpire:_0x189ba7,store:_0x52cf2c,signal:_0x524b51,source:_0x20a68e='local',integration:_0x22fb1a,userAgent:_0x3d0de7,retryThrottledRequestMaxTimes:_0xc53c3e=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x37a814=defaultSettings['retryNetworkErrorMaxTimes'],metadata:_0x57a97c}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0x2c169c,'/multipart/start/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x51cfe0,'integration':_0x22fb1a,'userAgent':_0x3d0de7})},'data':buildFormData({'filename':_0x1b8ad6||defaultFilename,'size':_0x3c9301,'content_type':_0x4e0966||defaultContentType,'part_size':_0x255f19,'UPLOADCARE_STORE':getStoreValue(_0x52cf2c),'UPLOADCARE_PUB_KEY':_0x51cfe0,'signature':_0x4df569,'expire':_0x189ba7,'source':_0x20a68e,'metadata':_0x57a97c}),'signal':_0x524b51})['then'](({data:_0x27e91f,headers:_0x1afd14,request:_0x460987})=>{const _0x16cd6a=camelizeKeys(JSON['parse'](_0x27e91f));if('error'in _0x16cd6a)throw new UploadError(_0x16cd6a['error']['content'],_0x16cd6a['error']['errorCode'],_0x460987,_0x16cd6a,_0x1afd14);return _0x16cd6a['parts']=Object['keys'](_0x16cd6a['parts'])['map'](_0x589831=>_0x16cd6a['parts'][Number(_0x589831)]),_0x16cd6a;}),{'retryThrottledRequestMaxTimes':_0xc53c3e,'retryNetworkErrorMaxTimes':_0x37a814});}function multipartUpload(_0x4c2f68,_0x21ecbe,{contentType:_0x289667,signal:_0x53b1c5,onProgress:_0x1a9fe7,retryThrottledRequestMaxTimes:_0x2bf592=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x31de43=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'PUT','url':_0x21ecbe,'data':_0x4c2f68,'onProgress':_0x1a9fe7,'signal':_0x53b1c5,'headers':{'Content-Type':_0x289667||defaultContentType}})['then'](_0x664dd5=>(_0x1a9fe7&&_0x1a9fe7({'isComputable':!0x0,'value':0x1}),_0x664dd5))['then'](({status:_0x1d0845})=>({'code':_0x1d0845})),{'retryThrottledRequestMaxTimes':_0x2bf592,'retryNetworkErrorMaxTimes':_0x31de43});}function multipartComplete(_0xb6e011,{publicKey:_0x14cff0,baseURL:_0xc014c7=defaultSettings['baseURL'],source:_0x2ec0b9='local',signal:_0x43d7e5,integration:_0x59e0f7,userAgent:_0x5efd21,retryThrottledRequestMaxTimes:_0x1e845d=defaultSettings['retryThrottledRequestMaxTimes'],retryNetworkErrorMaxTimes:_0x57265f=defaultSettings['retryNetworkErrorMaxTimes']}){return retryIfFailed(()=>request({'method':'POST','url':getUrl(_0xc014c7,'/multipart/complete/',{'jsonerrors':0x1}),'headers':{'X-UC-User-Agent':getUserAgent({'publicKey':_0x14cff0,'integration':_0x59e0f7,'userAgent':_0x5efd21})},'data':buildFormData({'uuid':_0xb6e011,'UPLOADCARE_PUB_KEY':_0x14cff0,'source':_0x2ec0b9}),'signal':_0x43d7e5})['then'](({data:_0x2251fc,headers:_0x511794,request:_0x5aeb74})=>{const _0x5022b0=camelizeKeys(JSON['parse'](_0x2251fc));if('error'in _0x5022b0)throw new UploadError(_0x5022b0['error']['content'],_0x5022b0['error']['errorCode'],_0x5aeb74,_0x5022b0,_0x511794);return _0x5022b0;}),{'retryThrottledRequestMaxTimes':_0x1e845d,'retryNetworkErrorMaxTimes':_0x57265f});}function isReadyPoll(_0x500428,{publicKey:_0x2e2f8b,baseURL:_0x40e09a,source:_0x2a2607,integration:_0x374b6d,userAgent:_0x297c78,retryThrottledRequestMaxTimes:_0x1d165a,retryNetworkErrorMaxTimes:_0x2e0536,signal:_0x4d4621,onProgress:_0x49a9f1}){return poll({'check':_0x5f49c8=>info(_0x500428,{'publicKey':_0x2e2f8b,'baseURL':_0x40e09a,'signal':_0x5f49c8,'source':_0x2a2607,'integration':_0x374b6d,'userAgent':_0x297c78,'retryThrottledRequestMaxTimes':_0x1d165a,'retryNetworkErrorMaxTimes':_0x2e0536})['then'](_0x1ff19d=>_0x1ff19d['isReady']?_0x1ff19d:(_0x49a9f1&&_0x49a9f1({'isComputable':!0x0,'value':0x1}),!0x1)),'signal':_0x4d4621});}function isGroupFileInfo(_0x2deb5e){return'defaultEffects'in _0x2deb5e;}class UploadcareFile{['uuid'];['name'];['size'];['isStored'];['isImage'];['mimeType'];['cdnUrl'];['s3Url'];['originalFilename'];['imageInfo'];['videoInfo'];['contentInfo'];['metadata'];['s3Bucket'];['defaultEffects']=null;constructor(_0x112417,{baseCDN:_0x4a94ce=defaultSettings['baseCDN'],fileName:_0x16b8b3}={}){const {uuid:_0xc6f42,s3Bucket:_0xb7ffc0}=_0x112417,_0x216279=getUrl(_0x4a94ce,_0xc6f42+'/'),_0x33f051=_0xb7ffc0?getUrl('https://'+_0xb7ffc0+'.s3.amazonaws.com/',_0xc6f42+'/'+_0x112417['filename']):null;this['uuid']=_0xc6f42,this['name']=_0x16b8b3||_0x112417['filename'],this['size']=_0x112417['size'],this['isStored']=_0x112417['isStored'],this['isImage']=_0x112417['isImage'],this['mimeType']=_0x112417['mimeType'],this['cdnUrl']=_0x216279,this['originalFilename']=_0x112417['originalFilename'],this['imageInfo']=_0x112417['imageInfo'],this['videoInfo']=_0x112417['videoInfo'],this['contentInfo']=_0x112417['contentInfo'],this['metadata']=_0x112417['metadata']||null,this['s3Bucket']=_0xb7ffc0||null,this['s3Url']=_0x33f051,isGroupFileInfo(_0x112417)&&(this['defaultEffects']=_0x112417['defaultEffects']);}}const uploadDirect=(_0x44279f,{publicKey:_0x38ffb0,fileName:_0x206c44,baseURL:_0x36d10e,secureSignature:_0x2ee2d6,secureExpire:_0x4ecc73,store:_0x3c2dc2,contentType:_0x1ac419,signal:_0x52e5df,onProgress:_0x14bfba,source:_0x29fb9c,integration:_0x3bac2e,userAgent:_0x424eef,retryThrottledRequestMaxTimes:_0x5de26d,retryNetworkErrorMaxTimes:_0x3ca4bf,baseCDN:_0x3a92db,metadata:_0x53d42d})=>base(_0x44279f,{'publicKey':_0x38ffb0,'fileName':_0x206c44,'contentType':_0x1ac419,'baseURL':_0x36d10e,'secureSignature':_0x2ee2d6,'secureExpire':_0x4ecc73,'store':_0x3c2dc2,'signal':_0x52e5df,'onProgress':_0x14bfba,'source':_0x29fb9c,'integration':_0x3bac2e,'userAgent':_0x424eef,'retryThrottledRequestMaxTimes':_0x5de26d,'retryNetworkErrorMaxTimes':_0x3ca4bf,'metadata':_0x53d42d})['then'](({file:_0x1541f3})=>isReadyPoll(_0x1541f3,{'publicKey':_0x38ffb0,'baseURL':_0x36d10e,'source':_0x29fb9c,'integration':_0x3bac2e,'userAgent':_0x424eef,'retryThrottledRequestMaxTimes':_0x5de26d,'retryNetworkErrorMaxTimes':_0x3ca4bf,'onProgress':_0x14bfba,'signal':_0x52e5df}))['then'](_0x5dbc6a=>new UploadcareFile(_0x5dbc6a,{'baseCDN':_0x3a92db})),uploadFromUploaded=(_0xf2656f,{publicKey:_0x5b7192,fileName:_0x563055,baseURL:_0x1c2157,signal:_0x2f62d5,onProgress:_0x307522,source:_0x8b8dba,integration:_0x378bb5,userAgent:_0x5e7590,retryThrottledRequestMaxTimes:_0x3c21b0,retryNetworkErrorMaxTimes:_0x1bd721,baseCDN:_0x328e20})=>info(_0xf2656f,{'publicKey':_0x5b7192,'baseURL':_0x1c2157,'signal':_0x2f62d5,'source':_0x8b8dba,'integration':_0x378bb5,'userAgent':_0x5e7590,'retryThrottledRequestMaxTimes':_0x3c21b0,'retryNetworkErrorMaxTimes':_0x1bd721})['then'](_0x235394=>new UploadcareFile(_0x235394,{'baseCDN':_0x328e20,'fileName':_0x563055}))['then'](_0x3bb5c2=>(_0x307522&&_0x307522({'isComputable':!0x0,'value':0x1}),_0x3bb5c2)),race=(_0x41d097,{signal:_0x1f61ef}={})=>{let _0x2650a9=null,_0xcd7e74=null;const _0x2a20c9=_0x41d097['map'](()=>new AbortController());return onCancel(_0x1f61ef,()=>{_0x2a20c9['forEach'](_0x37ba33=>_0x37ba33['abort']());}),Promise['all'](_0x41d097['map']((_0x503f6b,_0x3c0d86)=>{const _0x5568c5=(_0x15bc2e=>()=>{_0xcd7e74=_0x15bc2e,_0x2a20c9['forEach']((_0x22a7db,_0x3924ca)=>_0x3924ca!==_0x15bc2e&&_0x22a7db['abort']());})(_0x3c0d86);return Promise['resolve']()['then'](()=>_0x503f6b({'stopRace':_0x5568c5,'signal':_0x2a20c9[_0x3c0d86]['signal']}))['then'](_0x4bdb01=>(_0x5568c5(),_0x4bdb01))['catch'](_0x22f68a=>(_0x2650a9=_0x22f68a,null));}))['then'](_0x2584f2=>{if(null===_0xcd7e74)throw _0x2650a9;return _0x2584f2[_0xcd7e74];});};var WebSocket=window['WebSocket'];class Events{['events']=Object['create']({});['emit'](_0x4d7753,_0x2515ff){this['events'][_0x4d7753]?.['forEach'](_0x574126=>_0x574126(_0x2515ff));}['on'](_0x1978d4,_0x3b5d37){this['events'][_0x1978d4]=this['events'][_0x1978d4]||[],this['events'][_0x1978d4]['push'](_0x3b5d37);}['off'](_0x53ab7e,_0x3d74c7){this['events'][_0x53ab7e]=_0x3d74c7?this['events'][_0x53ab7e]['filter'](_0x476953=>_0x476953!==_0x3d74c7):[];}}const response=(_0x1a673a,_0x44a8e0)=>'success'===_0x1a673a?{'status':Status['Success'],..._0x44a8e0}:'progress'===_0x1a673a?{'status':Status['Progress'],..._0x44a8e0}:{'status':Status['Error'],..._0x44a8e0};class Pusher{['key'];['disconnectTime'];['ws']=void 0x0;['queue']=[];['isConnected']=!0x1;['subscribers']=0x0;['emmitter']=new Events();['disconnectTimeoutId']=null;constructor(_0x23c54e,_0x26cbcd=0x7530){this['key']=_0x23c54e,this['disconnectTime']=_0x26cbcd;}['connect'](){if(this['disconnectTimeoutId']&&clearTimeout(this['disconnectTimeoutId']),!this['isConnected']&&!this['ws']){const _0x1ca705='wss://ws.pusherapp.com/app/'+this['key']+'?protocol=5&client=js&version=1.12.2';this['ws']=new WebSocket(_0x1ca705),this['ws']['addEventListener']('error',_0x5c90bf=>{this['emmitter']['emit']('error',new Error(_0x5c90bf['message']));}),this['emmitter']['on']('connected',()=>{this['isConnected']=!0x0,this['queue']['forEach'](_0x1bc7ad=>this['send'](_0x1bc7ad['event'],_0x1bc7ad['data'])),this['queue']=[];}),this['ws']['addEventListener']('message',_0x4a73db=>{const _0x265964=JSON['parse'](_0x4a73db['data']['toString']());switch(_0x265964['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'](_0x265964['channel'],response(_0x265964['event'],JSON['parse'](_0x265964['data'])));}});}}['disconnect'](){const _0x49eeff=()=>{this['ws']?.['close'](),this['ws']=void 0x0,this['isConnected']=!0x1;};this['disconnectTime']?this['disconnectTimeoutId']=setTimeout(()=>{_0x49eeff();},this['disconnectTime']):_0x49eeff();}['send'](_0x59b9d2,_0x32076c){const _0x50a7de=JSON['stringify']({'event':_0x59b9d2,'data':_0x32076c});this['ws']?.['send'](_0x50a7de);}['subscribe'](_0x3f1942,_0x53397b){this['subscribers']+=0x1,this['connect']();const _0x22f283='task-status-'+_0x3f1942,_0x331881={'event':'pusher:subscribe','data':{'channel':_0x22f283}};this['emmitter']['on'](_0x22f283,_0x53397b),this['isConnected']?this['send'](_0x331881['event'],_0x331881['data']):this['queue']['push'](_0x331881);}['unsubscribe'](_0x268627){this['subscribers']-=0x1;const _0x3ad67a='task-status-'+_0x268627,_0x57c18c={'event':'pusher:unsubscribe','data':{'channel':_0x3ad67a}};this['emmitter']['off'](_0x3ad67a),this['isConnected']?this['send'](_0x57c18c['event'],_0x57c18c['data']):this['queue']=this['queue']['filter'](_0x509e81=>_0x509e81['data']['channel']!==_0x3ad67a),0x0===this['subscribers']&&this['disconnect']();}['onError'](_0x17d298){return this['emmitter']['on']('error',_0x17d298),()=>this['emmitter']['off']('error',_0x17d298);}}let pusher=null;const getPusher=_0x42fe50=>{if(!pusher){const _0x5610d0='undefined'==typeof window?0x0:0x7530;pusher=new Pusher(_0x42fe50,_0x5610d0);}return pusher;},preconnect=_0x127bbf=>{getPusher(_0x127bbf)['connect']();};function pollStrategy({token:_0xce793f,publicKey:_0x363d03,baseURL:_0x2922dc,integration:_0x2c783d,userAgent:_0x2f6566,retryThrottledRequestMaxTimes:_0x48574f,retryNetworkErrorMaxTimes:_0xf198b9,onProgress:_0x2307e9,signal:_0x52630a}){return poll({'check':_0x3db06d=>fromUrlStatus(_0xce793f,{'publicKey':_0x363d03,'baseURL':_0x2922dc,'integration':_0x2c783d,'userAgent':_0x2f6566,'retryThrottledRequestMaxTimes':_0x48574f,'retryNetworkErrorMaxTimes':_0xf198b9,'signal':_0x3db06d})['then'](_0x5b4c07=>{switch(_0x5b4c07['status']){case Status['Error']:return new UploadError(_0x5b4c07['error'],_0x5b4c07['errorCode']);case Status['Waiting']:return!0x1;case Status['Unknown']:return new UploadError('Token\x20\x22'+_0xce793f+'\x22\x20was\x20not\x20found.');case Status['Progress']:return _0x2307e9&&('unknown'===_0x5b4c07['total']?_0x2307e9({'isComputable':!0x1}):_0x2307e9({'isComputable':!0x0,'value':_0x5b4c07['done']/_0x5b4c07['total']})),!0x1;case Status['Success']:return _0x2307e9&&_0x2307e9({'isComputable':!0x0,'value':_0x5b4c07['done']/_0x5b4c07['total']}),_0x5b4c07;default:throw new Error('Unknown\x20status');}}),'signal':_0x52630a});}const pushStrategy=({token:_0x1c012d,pusherKey:_0xa6f003,signal:_0xd30a7,onProgress:_0x582a13})=>new Promise((_0x28fa48,_0x40e799)=>{const _0x32e35c=getPusher(_0xa6f003),_0x52ea94=_0x32e35c['onError'](_0x40e799),_0x10e705=()=>{_0x52ea94(),_0x32e35c['unsubscribe'](_0x1c012d);};onCancel(_0xd30a7,()=>{_0x10e705(),_0x40e799(new CancelError('pusher\x20cancelled'));}),_0x32e35c['subscribe'](_0x1c012d,_0x126c73=>{switch(_0x126c73['status']){case Status['Progress']:_0x582a13&&('unknown'===_0x126c73['total']?_0x582a13({'isComputable':!0x1}):_0x582a13({'isComputable':!0x0,'value':_0x126c73['done']/_0x126c73['total']}));break;case Status['Success']:_0x10e705(),_0x582a13&&_0x582a13({'isComputable':!0x0,'value':_0x126c73['done']/_0x126c73['total']}),_0x28fa48(_0x126c73);break;case Status['Error']:_0x10e705(),_0x40e799(new UploadError(_0x126c73['msg'],_0x126c73['error_code']));}});}),uploadFromUrl=(_0x2abdd0,{publicKey:_0x53704d,fileName:_0x50c8ea,baseURL:_0xd2c3a4,baseCDN:_0x206774,checkForUrlDuplicates:_0x5d1d54,saveUrlForRecurrentUploads:_0x483452,secureSignature:_0x51960f,secureExpire:_0x436f47,store:_0x3ad3b4,signal:_0x3c0987,onProgress:_0x452392,source:_0xbbf37e,integration:_0x967752,userAgent:_0x27c08a,retryThrottledRequestMaxTimes:_0x1526d8,pusherKey:_0x3d0e2d=defaultSettings['pusherKey'],metadata:_0x41e084})=>Promise['resolve'](preconnect(_0x3d0e2d))['then'](()=>fromUrl(_0x2abdd0,{'publicKey':_0x53704d,'fileName':_0x50c8ea,'baseURL':_0xd2c3a4,'checkForUrlDuplicates':_0x5d1d54,'saveUrlForRecurrentUploads':_0x483452,'secureSignature':_0x51960f,'secureExpire':_0x436f47,'store':_0x3ad3b4,'signal':_0x3c0987,'source':_0xbbf37e,'integration':_0x967752,'userAgent':_0x27c08a,'retryThrottledRequestMaxTimes':_0x1526d8,'metadata':_0x41e084}))['catch'](_0x738ba4=>{const _0x52b766=getPusher(_0x3d0e2d);return _0x52b766?.['disconnect'](),Promise['reject'](_0x738ba4);})['then'](_0x58b95a=>_0x58b95a['type']===TypeEnum['FileInfo']?_0x58b95a:race([({signal:_0xba0f8c})=>pollStrategy({'token':_0x58b95a['token'],'publicKey':_0x53704d,'baseURL':_0xd2c3a4,'integration':_0x967752,'userAgent':_0x27c08a,'retryThrottledRequestMaxTimes':_0x1526d8,'onProgress':_0x452392,'signal':_0xba0f8c}),({signal:_0x10af7b})=>pushStrategy({'token':_0x58b95a['token'],'pusherKey':_0x3d0e2d,'signal':_0x10af7b,'onProgress':_0x452392})],{'signal':_0x3c0987}))['then'](_0x3e6080=>{if(_0x3e6080 instanceof UploadError)throw _0x3e6080;return _0x3e6080;})['then'](_0x24d5b7=>isReadyPoll(_0x24d5b7['uuid'],{'publicKey':_0x53704d,'baseURL':_0xd2c3a4,'integration':_0x967752,'userAgent':_0x27c08a,'retryThrottledRequestMaxTimes':_0x1526d8,'onProgress':_0x452392,'signal':_0x3c0987}))['then'](_0x3ab23b=>new UploadcareFile(_0x3ab23b,{'baseCDN':_0x206774})),memo=new WeakMap(),getBlobFromReactNativeAsset=async _0x17fe0c=>{if(memo['has'](_0x17fe0c))return memo['get'](_0x17fe0c);const _0x26d05a=await fetch(_0x17fe0c['uri'])['then'](_0x385a5a=>_0x385a5a['blob']());return memo['set'](_0x17fe0c,_0x26d05a),_0x26d05a;},getFileSize=async _0xcf49ac=>{if(isFile(_0xcf49ac)||isBlob(_0xcf49ac))return _0xcf49ac['size'];if(isReactNativeAsset(_0xcf49ac))return(await getBlobFromReactNativeAsset(_0xcf49ac))['size'];throw new Error('Unknown\x20file\x20type.\x20Cannot\x20determine\x20file\x20size.');},isMultipart=(_0x18ad94,_0x26f528=defaultSettings['multipartMinFileSize'])=>_0x18ad94>=_0x26f528,isUuid=_0x55f8f2=>{const _0x2df31c=new RegExp('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}');return!isFileData(_0x55f8f2)&&_0x2df31c['test'](_0x55f8f2);},isUrl=_0x580988=>{const _0x2abf32=new RegExp('^(?:\x5cw+:)?\x5c/\x5c/([^\x5cs\x5c.]+\x5c.\x5cS{2}|localhost[\x5c:?\x5cd]*)\x5cS*$');return!isFileData(_0x580988)&&_0x2abf32['test'](_0x580988);},runWithConcurrency=(_0x1a249d,_0x840bf8)=>new Promise((_0x2feef9,_0x285540)=>{const _0x142d07=[];let _0x3e2fa5=!0x1,_0xbd1a5f=_0x840bf8['length'];const _0x590754=[..._0x840bf8],_0x41ea29=()=>{const _0x50923f=_0x840bf8['length']-_0x590754['length'],_0x404ed5=_0x590754['shift']();_0x404ed5&&_0x404ed5()['then'](_0x214928=>{_0x3e2fa5||(_0x142d07[_0x50923f]=_0x214928,_0xbd1a5f-=0x1,_0xbd1a5f?_0x41ea29():_0x2feef9(_0x142d07));})['catch'](_0x2b3b47=>{_0x3e2fa5=!0x0,_0x285540(_0x2b3b47);});};for(let _0xf2f5ca=0x0;_0xf2f5ca<_0x1a249d;_0xf2f5ca++)_0x41ea29();}),sliceChunk=(_0x22f46a,_0x8fa97d,_0x5e8a34,_0x5afda3)=>{const _0x13318b=_0x5afda3*_0x8fa97d,_0x3b36ab=Math['min'](_0x13318b+_0x5afda3,_0x5e8a34);return _0x22f46a['slice'](_0x13318b,_0x3b36ab);},prepareChunks=async(_0x5c1571,_0x257cf1,_0x3154f7)=>_0x282609=>sliceChunk(_0x5c1571,_0x282609,_0x257cf1,_0x3154f7),uploadPart=(_0x5effee,_0x267e3e,{publicKey:_0x25793c,contentType:_0x25878d,onProgress:_0x5ab95f,signal:_0x4580b0,integration:_0x3c3d13,retryThrottledRequestMaxTimes:_0x5b554f,retryNetworkErrorMaxTimes:_0x2eb4c9})=>multipartUpload(_0x5effee,_0x267e3e,{'contentType':_0x25878d,'onProgress':_0x5ab95f,'signal':_0x4580b0,'retryThrottledRequestMaxTimes':_0x5b554f,'retryNetworkErrorMaxTimes':_0x2eb4c9}),uploadMultipart=async(_0x369e05,{publicKey:_0x390ff3,fileName:_0x93e1a1,fileSize:_0x5237e0,baseURL:_0x158d73,secureSignature:_0x160da3,secureExpire:_0x32a386,store:_0x2ec6b4,signal:_0x374bc5,onProgress:_0x1f6ff3,source:_0x5b1425,integration:_0x39500b,userAgent:_0x218a1f,retryThrottledRequestMaxTimes:_0x3d5c3b,retryNetworkErrorMaxTimes:_0x1c4bdf,contentType:_0x1a9022,multipartChunkSize:_0x2d7c9b=defaultSettings['multipartChunkSize'],maxConcurrentRequests:_0x4baaf9=defaultSettings['maxConcurrentRequests'],baseCDN:_0x561131,metadata:_0x52da7a})=>{const _0x238f47=_0x5237e0??await getFileSize(_0x369e05);let _0x419c19;const _0x42cfb9=(_0x53df5e,_0x23e9a1)=>{if(!_0x1f6ff3)return;_0x419c19||(_0x419c19=Array(_0x53df5e)['fill'](0x0));const _0x584e78=_0x3d1018=>_0x3d1018['reduce']((_0x2ccc59,_0x1c43d4)=>_0x2ccc59+_0x1c43d4,0x0);return _0xdcf9=>{_0xdcf9['isComputable']&&(_0x419c19[_0x23e9a1]=_0xdcf9['value'],_0x1f6ff3({'isComputable':!0x0,'value':_0x584e78(_0x419c19)/_0x53df5e}));};};return _0x1a9022||=getContentType(_0x369e05),multipartStart(_0x238f47,{'publicKey':_0x390ff3,'contentType':_0x1a9022,'fileName':_0x93e1a1||getFileName(_0x369e05),'baseURL':_0x158d73,'secureSignature':_0x160da3,'secureExpire':_0x32a386,'store':_0x2ec6b4,'signal':_0x374bc5,'source':_0x5b1425,'integration':_0x39500b,'userAgent':_0x218a1f,'retryThrottledRequestMaxTimes':_0x3d5c3b,'retryNetworkErrorMaxTimes':_0x1c4bdf,'metadata':_0x52da7a,'multipartChunkSize':_0x2d7c9b})['then'](async({uuid:_0x12a4fd,parts:_0x6163cc})=>{const _0x5c938c=await prepareChunks(_0x369e05,_0x238f47,_0x2d7c9b);return Promise['all']([_0x12a4fd,runWithConcurrency(_0x4baaf9,_0x6163cc['map']((_0x500374,_0x3ecd05)=>()=>uploadPart(_0x5c938c(_0x3ecd05),_0x500374,{'publicKey':_0x390ff3,'contentType':_0x1a9022,'onProgress':_0x42cfb9(_0x6163cc['length'],_0x3ecd05),'signal':_0x374bc5,'integration':_0x39500b,'retryThrottledRequestMaxTimes':_0x3d5c3b,'retryNetworkErrorMaxTimes':_0x1c4bdf})))]);})['then'](([_0x21385d])=>multipartComplete(_0x21385d,{'publicKey':_0x390ff3,'baseURL':_0x158d73,'source':_0x5b1425,'integration':_0x39500b,'userAgent':_0x218a1f,'retryThrottledRequestMaxTimes':_0x3d5c3b,'retryNetworkErrorMaxTimes':_0x1c4bdf}))['then'](_0x231251=>_0x231251['isReady']?_0x231251:isReadyPoll(_0x231251['uuid'],{'publicKey':_0x390ff3,'baseURL':_0x158d73,'source':_0x5b1425,'integration':_0x39500b,'userAgent':_0x218a1f,'retryThrottledRequestMaxTimes':_0x3d5c3b,'retryNetworkErrorMaxTimes':_0x1c4bdf,'onProgress':_0x1f6ff3,'signal':_0x374bc5}))['then'](_0x111a1e=>new UploadcareFile(_0x111a1e,{'baseCDN':_0x561131}));};async function uploadFile(_0x18d3fa,{publicKey:_0x4890e8,fileName:_0x5d6369,baseURL:_0x449bc8=defaultSettings['baseURL'],secureSignature:_0x4b67a3,secureExpire:_0x385a9d,store:_0x43fe8c,signal:_0x2223f3,onProgress:_0x385a65,source:_0x261591,integration:_0x14d7d1,userAgent:_0x43caaa,retryThrottledRequestMaxTimes:_0x36f353,retryNetworkErrorMaxTimes:_0x3e38fa,contentType:_0x1d061c,multipartMinFileSize:_0x389d13,multipartChunkSize:_0x2ce2f5,maxConcurrentRequests:_0x409c52,baseCDN:_0x9866f4=defaultSettings['baseCDN'],checkForUrlDuplicates:_0xd7b90f,saveUrlForRecurrentUploads:_0xe786df,pusherKey:_0x28f555,metadata:_0x405129}){if(isFileData(_0x18d3fa)){const _0x4fd5be=await getFileSize(_0x18d3fa);return isMultipart(_0x4fd5be,_0x389d13)?uploadMultipart(_0x18d3fa,{'publicKey':_0x4890e8,'contentType':_0x1d061c,'multipartChunkSize':_0x2ce2f5,'fileSize':_0x4fd5be,'fileName':_0x5d6369,'baseURL':_0x449bc8,'secureSignature':_0x4b67a3,'secureExpire':_0x385a9d,'store':_0x43fe8c,'signal':_0x2223f3,'onProgress':_0x385a65,'source':_0x261591,'integration':_0x14d7d1,'userAgent':_0x43caaa,'maxConcurrentRequests':_0x409c52,'retryThrottledRequestMaxTimes':_0x36f353,'retryNetworkErrorMaxTimes':_0x3e38fa,'baseCDN':_0x9866f4,'metadata':_0x405129}):uploadDirect(_0x18d3fa,{'publicKey':_0x4890e8,'fileName':_0x5d6369,'contentType':_0x1d061c,'baseURL':_0x449bc8,'secureSignature':_0x4b67a3,'secureExpire':_0x385a9d,'store':_0x43fe8c,'signal':_0x2223f3,'onProgress':_0x385a65,'source':_0x261591,'integration':_0x14d7d1,'userAgent':_0x43caaa,'retryThrottledRequestMaxTimes':_0x36f353,'retryNetworkErrorMaxTimes':_0x3e38fa,'baseCDN':_0x9866f4,'metadata':_0x405129});}if(isUrl(_0x18d3fa))return uploadFromUrl(_0x18d3fa,{'publicKey':_0x4890e8,'fileName':_0x5d6369,'baseURL':_0x449bc8,'baseCDN':_0x9866f4,'checkForUrlDuplicates':_0xd7b90f,'saveUrlForRecurrentUploads':_0xe786df,'secureSignature':_0x4b67a3,'secureExpire':_0x385a9d,'store':_0x43fe8c,'signal':_0x2223f3,'onProgress':_0x385a65,'source':_0x261591,'integration':_0x14d7d1,'userAgent':_0x43caaa,'retryThrottledRequestMaxTimes':_0x36f353,'pusherKey':_0x28f555,'metadata':_0x405129});if(isUuid(_0x18d3fa))return uploadFromUploaded(_0x18d3fa,{'publicKey':_0x4890e8,'fileName':_0x5d6369,'baseURL':_0x449bc8,'signal':_0x2223f3,'onProgress':_0x385a65,'source':_0x261591,'integration':_0x14d7d1,'userAgent':_0x43caaa,'retryThrottledRequestMaxTimes':_0x36f353,'retryNetworkErrorMaxTimes':_0x3e38fa,'baseCDN':_0x9866f4});throw new TypeError('File\x20uploading\x20from\x20\x22'+_0x18d3fa+'\x22\x20is\x20not\x20supported');}class UploadcareGroup{['uuid'];['filesCount'];['totalSize'];['isStored'];['isImage'];['cdnUrl'];['files'];['createdAt'];['storedAt']=null;constructor(_0x572c3e,{baseCDN:_0x14e086=defaultSettings['baseCDN']}={}){this['uuid']=_0x572c3e['id'],this['filesCount']=_0x572c3e['filesCount'];const _0x312ced=_0x572c3e['files']['filter'](Boolean);this['totalSize']=Object['values'](_0x312ced)['reduce']((_0x28862,_0x44c805)=>_0x28862+_0x44c805['size'],0x0),this['isStored']=!!_0x572c3e['datetimeStored'],this['isImage']=!!Object['values'](_0x312ced)['filter'](_0x5d211a=>_0x5d211a['isImage'])['length'],this['cdnUrl']=_0x572c3e['cdnUrl'],this['files']=_0x312ced['map'](_0x4a3b9c=>new UploadcareFile(_0x4a3b9c,{'baseCDN':_0x14e086})),this['createdAt']=_0x572c3e['datetimeCreated'],this['storedAt']=_0x572c3e['datetimeStored'];}}const isFileDataArray=_0x3ed4be=>{for(const _0x3eea9f of _0x3ed4be)if(!isFileData(_0x3eea9f))return!0x1;return!0x0;},isUuidArray=_0x1a820c=>{for(const _0x317f11 of _0x1a820c)if(!isUuid(_0x317f11))return!0x1;return!0x0;},isUrlArray=_0x1a4153=>{for(const _0x21cb0d of _0x1a4153)if(!isUrl(_0x21cb0d))return!0x1;return!0x0;};function uploadFileGroup(_0x5bef07,{publicKey:_0x464186,fileName:_0x263e30,baseURL:_0x4ebf86=defaultSettings['baseURL'],secureSignature:_0x51ff9f,secureExpire:_0x400c64,store:_0x1bc29a,signal:_0x23405a,onProgress:_0x2e3165,source:_0x567fd1,integration:_0x4f293b,userAgent:_0x3c0d2f,retryThrottledRequestMaxTimes:_0x2b5774,retryNetworkErrorMaxTimes:_0xa8a442,contentType:_0x58a4fb,multipartChunkSize:_0x2b36a7=defaultSettings['multipartChunkSize'],baseCDN:_0x118cab=defaultSettings['baseCDN'],checkForUrlDuplicates:_0x55e334,saveUrlForRecurrentUploads:_0x45a569,jsonpCallback:_0x1a401f}){if(!isFileDataArray(_0x5bef07)&&!isUrlArray(_0x5bef07)&&!isUuidArray(_0x5bef07))throw new TypeError('Group\x20uploading\x20from\x20\x22'+_0x5bef07+'\x22\x20is\x20not\x20supported');let _0x466b4e,_0x163727=!0x0;const _0x2388ad=_0x5bef07['length'],_0x4383dc=(_0x2a9ae9,_0x17ed0c)=>{if(!_0x2e3165)return;_0x466b4e||(_0x466b4e=Array(_0x2a9ae9)['fill'](0x0));const _0x5694ba=_0xae0223=>_0xae0223['reduce']((_0x15cbb5,_0x41f75a)=>_0x15cbb5+_0x41f75a)/_0x2a9ae9;return _0x28addb=>{if(!_0x28addb['isComputable']||!_0x163727)return _0x163727=!0x1,void _0x2e3165({'isComputable':!0x1});_0x466b4e[_0x17ed0c]=_0x28addb['value'],_0x2e3165({'isComputable':!0x0,'value':_0x5694ba(_0x466b4e)});};};return Promise['all'](_0x5bef07['map']((_0x45b8bb,_0x570561)=>isFileData(_0x45b8bb)||isUrl(_0x45b8bb)?uploadFile(_0x45b8bb,{'publicKey':_0x464186,'fileName':_0x263e30,'baseURL':_0x4ebf86,'secureSignature':_0x51ff9f,'secureExpire':_0x400c64,'store':_0x1bc29a,'signal':_0x23405a,'onProgress':_0x4383dc(_0x2388ad,_0x570561),'source':_0x567fd1,'integration':_0x4f293b,'userAgent':_0x3c0d2f,'retryThrottledRequestMaxTimes':_0x2b5774,'retryNetworkErrorMaxTimes':_0xa8a442,'contentType':_0x58a4fb,'multipartChunkSize':_0x2b36a7,'baseCDN':_0x118cab,'checkForUrlDuplicates':_0x55e334,'saveUrlForRecurrentUploads':_0x45a569})['then'](_0x42c039=>_0x42c039['uuid']):_0x45b8bb))['then'](_0x617348=>group(_0x617348,{'publicKey':_0x464186,'baseURL':_0x4ebf86,'jsonpCallback':_0x1a401f,'secureSignature':_0x51ff9f,'secureExpire':_0x400c64,'signal':_0x23405a,'source':_0x567fd1,'integration':_0x4f293b,'userAgent':_0x3c0d2f,'retryThrottledRequestMaxTimes':_0x2b5774,'retryNetworkErrorMaxTimes':_0xa8a442})['then'](_0x2431e9=>new UploadcareGroup(_0x2431e9,{'baseCDN':_0x118cab}))['then'](_0x493f6e=>(_0x2e3165&&_0x2e3165({'isComputable':!0x0,'value':0x1}),_0x493f6e)));}class Queue{['_concurrency']=0x1;['_pending']=[];['_running']=0x0;['_resolvers']=new Map();['_rejectors']=new Map();constructor(_0x20c1ce){this['_concurrency']=_0x20c1ce;}['run'](){const _0x1041d6=this['_concurrency']-this['_running'];for(let _0xbb88da=0x0;_0xbb88da<_0x1041d6;_0xbb88da++){const _0x4fa97a=this['_pending']['shift']();if(!_0x4fa97a)return;const _0x4c9ff9=this['_resolvers']['get'](_0x4fa97a),_0x125edb=this['_rejectors']['get'](_0x4fa97a);if(!_0x4c9ff9||!_0x125edb)throw new Error('Unexpected\x20behavior:\x20resolver\x20or\x20rejector\x20is\x20undefined');this['_running']+=0x1,_0x4fa97a()['finally'](()=>{this['_resolvers']['delete'](_0x4fa97a),this['_rejectors']['delete'](_0x4fa97a),this['_running']-=0x1,this['run']();})['then'](_0xbb49c2=>_0x4c9ff9(_0xbb49c2))['catch'](_0x4731d6=>_0x125edb(_0x4731d6));}}['add'](_0x3fb51d,{autoRun:_0x153f62}={'autoRun':!0x0}){return new Promise((_0x266e24,_0x3bd4c4)=>{this['_resolvers']['set'](_0x3fb51d,_0x266e24),this['_rejectors']['set'](_0x3fb51d,_0x3bd4c4),this['_pending']['push'](_0x3fb51d),_0x153f62&&this['run']();});}get['pending'](){return this['_pending']['length'];}get['running'](){return this['_running'];}set['concurrency'](_0x555d10){this['_concurrency']=_0x555d10,this['run']();}get['concurrency'](){return this['_concurrency'];}}const ROLES={'button':['toolbar'],'checkbox':['toolbar'],'menuitem':['menu','menubar'],'option':['listbox'],'tab':['tablist']};function focus(_0x18ce65,_0x4eb0b){_0x4eb0b['tabIndex']=0x0,_0x4eb0b['focus'](),_0x18ce65['tabIndex']=-0x1;}function findGroupNodeByEventTarget(_0x31db9c){let _0x59d809=_0x31db9c['role']||_0x31db9c['type']||_0x31db9c['tagName'];if(!_0x59d809)return null;let _0xe8452e=ROLES[_0x59d809['toLowerCase']()];if(!_0xe8452e)return null;for(let _0x5dc551 of _0xe8452e){let _0x4302f3=_0x31db9c['closest']('[role='+_0x5dc551+']');if(_0x4302f3)return _0x4302f3;}}function getItems(_0x234121,_0x2129e5){return'toolbar'===_0x2129e5['role']?getToolbarItems(_0x2129e5):_0x2129e5['querySelectorAll']('[role='+_0x234121['role']+']');}function getToolbarItems(_0x2664c6){return[..._0x2664c6['querySelectorAll']('*')]['filter'](_0xdc90dd=>'button'===_0xdc90dd['role']||'button'===_0xdc90dd['type']||'checkbox'===_0xdc90dd['role']||'checkbox'===_0xdc90dd['type']);}function isHorizontalOrientation(_0x432618){let _0x1862b0=_0x432618['getAttribute']('aria-orientation');if('vertical'===_0x1862b0)return!0x1;if('horizontal'===_0x1862b0)return!0x0;let _0x19facb=_0x432618['role'];return'menubar'===_0x19facb||'tablist'===_0x19facb||'toolbar'===_0x19facb;}function focusGroupKeyUX(_0x595b49){return _0x4f5c4f=>{let _0xe7ca87=!0x1,_0x15cf3d=0x0,_0x11a273='';function _0x48ebab(_0x489ecd){let _0x109abe=findGroupNodeByEventTarget(_0x489ecd['target']);if(!_0x109abe)return void _0x41d625();let _0x86f9fd=getItems(_0x489ecd['target'],_0x109abe),_0x4c23b0=Array['from'](_0x86f9fd)['indexOf'](_0x489ecd['target']),_0x5a4530='ArrowDown',_0x49120d='ArrowUp';if(isHorizontalOrientation(_0x109abe)&&('rtl'===_0x4f5c4f['document']['dir']?(_0x5a4530='ArrowLeft',_0x49120d='ArrowRight'):(_0x5a4530='ArrowRight',_0x49120d='ArrowLeft')),_0x489ecd['key']===_0x5a4530)_0x489ecd['preventDefault'](),focus(_0x489ecd['target'],_0x86f9fd[_0x4c23b0+0x1]||_0x86f9fd[0x0]);else{if(_0x489ecd['key']===_0x49120d)_0x489ecd['preventDefault'](),focus(_0x489ecd['target'],_0x86f9fd[_0x4c23b0-0x1]||_0x86f9fd[_0x86f9fd['length']-0x1]);else{if('Home'===_0x489ecd['key'])_0x489ecd['preventDefault'](),focus(_0x489ecd['target'],_0x86f9fd[0x0]);else{if('End'===_0x489ecd['key'])_0x489ecd['preventDefault'](),focus(_0x489ecd['target'],_0x86f9fd[_0x86f9fd['length']-0x1]);else{if(0x1===_0x489ecd['key']['length']&&'tablist'!==_0x109abe['role']){let _0x1709b4=Date['now']();_0x1709b4-_0x15cf3d<=0x12c?_0x11a273+=_0x489ecd['key']['toLowerCase']():_0x11a273=_0x489ecd['key']['toLowerCase'](),_0x15cf3d=_0x1709b4;let _0x4691c3=Array['from'](_0x86f9fd)['find'](_0x1cf67c=>_0x1cf67c['textContent']?.['trim']()?.['toLowerCase']()?.['startsWith'](_0x11a273));_0x4691c3&&(_0x489ecd['preventDefault'](),focus(_0x489ecd['target'],_0x4691c3));}}}}}}function _0x41d625(){_0xe7ca87=!0x1,_0x4f5c4f['removeEventListener']('keydown',_0x48ebab);}function _0xa310ef(_0x43ca0e){let _0x14e45f=findGroupNodeByEventTarget(_0x43ca0e['target']);if(_0x14e45f){_0xe7ca87||(_0xe7ca87=!0x0,_0x4f5c4f['addEventListener']('keydown',_0x48ebab));let _0x23ebda=getItems(_0x43ca0e['target'],_0x14e45f);for(let _0x2e7b57 of _0x23ebda)_0x2e7b57!==_0x43ca0e['target']&&_0x2e7b57['setAttribute']('tabindex',-0x1);}else _0xe7ca87&&_0x41d625();}function _0x25cadd(_0xb89b18){_0xb89b18['relatedTarget']&&_0xb89b18['relatedTarget']!==_0x4f5c4f['document']||_0x41d625();}function _0x2055dc(_0x46c96e){let _0x1c05e2=findGroupNodeByEventTarget(_0x46c96e['target']);if(_0x1c05e2){let _0x12644c=getItems(_0x46c96e['target'],_0x1c05e2);for(let _0x3cb9d6 of _0x12644c)_0x3cb9d6!==_0x46c96e['target']&&_0x3cb9d6['setAttribute']('tabindex',-0x1);_0x46c96e['target']['setAttribute']('tabindex',0x0);}}return _0x4f5c4f['addEventListener']('click',_0x2055dc),_0x4f5c4f['addEventListener']('focusin',_0xa310ef),_0x4f5c4f['addEventListener']('focusout',_0x25cadd),()=>{_0x41d625(),_0x4f5c4f['removeEventListener']('click',_0x2055dc),_0x4f5c4f['removeEventListener']('focusin',_0xa310ef),_0x4f5c4f['removeEventListener']('focusout',_0x25cadd);};};}function hiddenKeyUX(){return _0x41c363=>{let _0x5339af,_0x22aa54;function _0xd364bf(_0x242532){if('true'===_0x242532['target']['getAttribute']('aria-hidden')){_0x5339af=_0x242532['target'],_0x5339af['setAttribute']('aria-hidden','false'),_0x22aa54=_0x5339af['hidden'],_0x22aa54&&(_0x5339af['hidden']=!0x1);let _0x4f742d=_0x242532['target']['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x4f742d&&(_0x4f742d['tabIndex']=0x0);}}function _0x163c8e(_0x3e6668){!_0x5339af||!_0x5339af['contains'](_0x3e6668['target'])||_0x3e6668['relatedTarget']&&_0x5339af['contains'](_0x3e6668['relatedTarget'])||(_0x3e6668['target']['tabIndex']=-0x1,_0x5339af['setAttribute']('aria-hidden','true'),_0x22aa54&&(_0x5339af['hidden']=!0x0),_0x5339af=null);}return _0x41c363['addEventListener']('keyuxJump',_0xd364bf),_0x41c363['addEventListener']('focusout',_0x163c8e),()=>{_0x41c363['removeEventListener']('keyuxJump',_0xd364bf),_0x41c363['removeEventListener']('focusout',_0x163c8e);};};}function jumpKeyUX(){return _0x2b3786=>{let _0x59afb9=[];function _0x1e3fbf(){let _0xbfed57=_0x59afb9['pop']();if(!_0xbfed57)return void _0x2b3786['document']['activeElement']['blur']();let _0x5beb94=_0xbfed57['deref']();_0x5beb94&&_0x5beb94['isConnected']?_0x5beb94['focus']():_0x1e3fbf();}let _0x145f71,_0x4c8132=0x0;function _0x45b1ab(_0x539997){clearInterval(_0x145f71);let _0x369f4a=_0x539997['getAttribute']('aria-controls');_0x145f71=setInterval(()=>{if(_0x4c8132++>0x32)return void clearInterval(_0x145f71);let _0xdd1f94=_0x2b3786['document']['getElementById'](_0x369f4a);if(_0xdd1f94){let _0x426b16=_0xdd1f94['querySelector']('a,\x20button,\x20select,\x20textarea,\x20input:not([type=radio]),\x20[type=radio]:checked,\x20[tabindex]:not([tabindex=\x22-1\x22])');_0x426b16&&(clearInterval(_0x145f71),_0xdd1f94['dispatchEvent'](new _0x2b3786['CustomEvent']('keyuxJump',{'bubbles':!0x0})),function(_0x304856){let _0x4e2383=_0x2b3786['document']['activeElement'];_0x4e2383&&_0x4e2383!==_0x2b3786['document']['body']&&_0x59afb9['push'](new WeakRef(_0x4e2383)),_0x304856['focus']({'focusVisible':!0x0});}(_0x426b16));}},0x32);}function _0x3c63f5(_0x4cc8b4){_0x4cc8b4['target']['getAttribute']('aria-controls')&&'Enter'===_0x4cc8b4['key']&&_0x45b1ab(_0x4cc8b4['target']),'Escape'===_0x4cc8b4['key']&&_0x1e3fbf();}return _0x2b3786['addEventListener']('keydown',_0x3c63f5),()=>{_0x2b3786['removeEventListener']('keydown',_0x3c63f5);};};}function pressKeyUX(_0x34a29b){let _0x4da233,_0x5c399a,_0x1cb47a=_0x34a29b['split']('\x20');function _0xbc921d(_0x25a6b2){'Enter'!==_0x25a6b2['key']||'BUTTON'!==_0x25a6b2['target']['tagName']&&'A'!==_0x25a6b2['target']['tagName']||(_0x3797fd(),_0x25a6b2['target']['classList']['add'](..._0x1cb47a),_0x4da233=_0x25a6b2['target'],_0x5c399a=_0x25a6b2['target']);}function _0x3797fd(){_0x4da233&&_0x4da233['classList']['remove'](..._0x1cb47a),_0x5c399a=null;}function _0x2e8355(_0x525a59){0x0===_0x525a59['clientX']&&0x0===_0x525a59['clientY']&&_0x5c399a!==_0x525a59['target']&&(_0x3797fd(),_0x525a59['target']['classList']['add'](..._0x1cb47a),_0x4da233=_0x525a59['target']);}return _0x161683=>(_0x161683['addEventListener']('click',_0x2e8355),_0x161683['addEventListener']('keydown',_0xbc921d),_0x161683['addEventListener']('keyup',_0x3797fd),()=>{_0x161683['removeEventListener']('click',_0x2e8355),_0x161683['removeEventListener']('keydown',_0xbc921d),_0x161683['removeEventListener']('keyup',_0x3797fd);});}function startKeyUX(_0x5334d0,_0x28733f){let _0x240fc6=_0x28733f['map'](_0x3df9f9=>_0x3df9f9(_0x5334d0));return()=>{_0x240fc6['forEach'](_0x3626d0=>_0x3626d0());};}function i$1(_0x50377a){return _0x50377a['replace'](/[A-Z]/g,_0x3505b5=>'_'+_0x3505b5['toLowerCase']())['replace'](/__/g,'_');}function c$2(_0xbe2d43){return Array['isArray'](_0xbe2d43)?_0xbe2d43['map'](_0x6d85da=>'object'==typeof _0x6d85da&&null!==_0x6d85da?c$2(_0x6d85da):_0x6d85da):'object'!=typeof _0xbe2d43||null===_0xbe2d43?_0xbe2d43:Object['fromEntries'](Object['entries'](_0xbe2d43)['map'](([_0x1ecacd,_0x209822])=>{const t=i$1(_0x1ecacd);return'object'==typeof _0x209822&&null!==_0x209822?[t,c$2(_0x209822)]:[t,_0x209822];}));}function u(_0x1401e4){return{'ok':!0x0,'value':_0x1401e4};}function a$1(_0x24d1b0){return{'ok':!0x1,'error':_0x24d1b0};}const l='https://tlm.uploadcare.com/api/';class y{constructor(_0x50ec75=l){this['baseUrl']=_0x50ec75;}async['base'](_0x4562fb,_0x43784d={}){const t=''+this['baseUrl']+_0x4562fb;try{const _0xfead9e=await fetch(t,_0x43784d);if(!_0xfead9e['ok'])return a$1(new Error('Got\x20non-200\x20response\x20from\x20\x22'+t+'\x22.\x20Status:\x20'+_0xfead9e['status']['toString']()));try{return u(await _0xfead9e['json']());}catch(_0x15e1ab){return a$1(new Error('Error\x20parsing\x20JSON\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x15e1ab));}}catch(_0x3eb7e3){return a$1(new Error('Error\x20fetching\x20data\x20from\x20\x22'+t+'\x22.\x20Error:\x20'+_0x3eb7e3));}}async['post'](_0x5ac6f6,_0xd3051a,t={}){return await this['base'](_0x5ac6f6,{...t,'method':'POST','body':JSON['stringify'](c$2(_0xd3051a)),'headers':{'Content-Type':'application/json',...t['headers']||{}}});}async['get'](_0x6ffe82,_0x53d13f={}){return await this['base'](_0x6ffe82,{'method':'GET',..._0x53d13f});}}const f$1=async(_0x3ce10a,_0x674288)=>({'success':!0x0,'data':_0x674288});class p extends y{constructor(){super();}async['sendEvent'](_0x4bc5e9,_0x248070){const t=await f$1(void 0x0,_0x4bc5e9);if(!t['success'])throw console['error']('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid',t['error']),new Error('TelemetryAPIService:\x20events:\x20body\x20is\x20invalid');return this['post']('v1/events',_0x4bc5e9,_0x248070);}}const o=(_0x4ce756,_0x1bc25)=>{const _0x4a306f=new URL(_0x1bc25);return _0x4a306f['hostname']=_0x4ce756+'.'+_0x4a306f['hostname'],_0x4a306f['toString']()['replace'](/\/$/,'');},s='0123456789abcdefghijklmnopqrstuvwxyz',a=_0x59e255=>{if(_0x59e255<=0x0n)return'0';let _0xbe245f='';for(;_0x59e255>0x0n;){_0xbe245f=s[Number(_0x59e255%0x24n)]+_0xbe245f,_0x59e255/=0x24n;}return _0xbe245f;},c$1=(_0x3988ea,_0x3dca0c)=>{try{const _0x5b3f37=new URL(_0x3988ea),t=new URL(_0x3dca0c);return _0x5b3f37['hostname']['endsWith'](t['hostname']);}catch{return!0x1;}},c=async _0x178977=>{const _0x275867=new TextEncoder()['encode'](_0x178977),t=await window['crypto']['subtle']['digest']('SHA-256',_0x275867),_0x1aedf1=Array['from'](new Uint8Array(t))['map'](_0x5e94d3=>_0x5e94d3['toString'](0x10)['padStart'](0x2,'0'))['join']('');return BigInt('0x'+_0x1aedf1);},i=0xa,d=async _0x46823d=>{const _0x571eac=await c(_0x46823d);return a(_0x571eac)['slice'](0x0,i);},f=async(_0x31380b,_0x44bbea)=>{const t=await d(_0x31380b);return o(t,_0x44bbea);},readJpegChunks=()=>{const _0x30e9b6=[];return{'stack':_0x30e9b6,'promiseReadJpegChunks':_0x122845=>new Promise((_0x53fe0d,_0x3e790a)=>{let _0x324dda=0x2;const _0x14ab86=(_0x34a7ae,_0x331251)=>{const _0x3c9015=new FileReader();_0x3c9015['addEventListener']('load',()=>{_0x331251(new DataView(_0x3c9015['result']));}),_0x3c9015['addEventListener']('error',_0x271b90=>{_0x3e790a('Reader\x20error:\x20'+_0x271b90);}),_0x3c9015['readAsArrayBuffer'](_0x34a7ae);},_0xd8c7ab=()=>_0x14ab86(_0x122845['slice'](_0x324dda,_0x324dda+0x80),_0x16fedf=>{let _0xc3f351,_0x29fd20,_0x12d988;for(_0xc3f351=_0x29fd20=0x0,_0x12d988=_0x16fedf['byteLength'];_0x12d988>=0x0?_0x29fd20<_0x12d988:_0x29fd20>_0x12d988;_0xc3f351=_0x12d988>=0x0?++_0x29fd20:--_0x29fd20)if(0xff===_0x16fedf['getUint8'](_0xc3f351)){_0x324dda+=_0xc3f351;break;}_0x2fc58();}),_0x2fc58=()=>{const _0x594439=_0x324dda;return _0x14ab86(_0x122845['slice'](_0x324dda,_0x324dda+=0x4),_0x178b1b=>{if(0x4!==_0x178b1b['byteLength']||0xff!==_0x178b1b['getUint8'](0x0))return void _0x3e790a('Corrupted');const _0x4ddf4e=_0x178b1b['getUint8'](0x1);if(0xda===_0x4ddf4e)return void _0x53fe0d(!0x0);const _0xe286b7=_0x178b1b['getUint16'](0x2)-0x2;return _0x14ab86(_0x122845['slice'](_0x324dda,_0x324dda+=_0xe286b7),_0x2a8c28=>{_0x2a8c28['byteLength']===_0xe286b7?(_0x30e9b6['push']({'startPos':_0x594439,'length':_0xe286b7,'marker':_0x4ddf4e,'view':_0x2a8c28}),_0xd8c7ab()):_0x3e790a('Corrupted');});});};FileReader&&DataView||_0x3e790a('Not\x20Support'),_0x14ab86(_0x122845['slice'](0x0,0x2),_0x410acd=>{0xffd8!==_0x410acd['getUint16'](0x0)&&_0x3e790a('Not\x20jpeg'),_0xd8c7ab();});})};},getIccProfile=async _0x2337c7=>{const _0x1a40ed=[],{promiseReadJpegChunks:_0xe48524,stack:_0x259d4e}=readJpegChunks();return await _0xe48524(_0x2337c7),_0x259d4e['forEach'](({marker:_0x51d8b8,view:_0x12a6f6})=>{0xe2===_0x51d8b8&&0x4943435f===_0x12a6f6['getUint32'](0x0)&&0x50524f46===_0x12a6f6['getUint32'](0x4)&&0x494c4500===_0x12a6f6['getUint32'](0x8)&&_0x1a40ed['push'](_0x12a6f6);}),_0x1a40ed;},replaceJpegChunk=async(_0x255585,_0x128912,_0x3ba321)=>{{const _0x5adc21=[],_0x3677a3=[],{promiseReadJpegChunks:_0xd8bf94,stack:_0x33a442}=readJpegChunks();await _0xd8bf94(_0x255585),_0x33a442['forEach'](_0x484722=>{if(_0x484722['marker']===_0x128912)return _0x5adc21['push'](_0x484722['startPos']),_0x3677a3['push'](_0x484722['length']);});const _0x58ea3d=[_0x255585['slice'](0x0,0x2)];for(const _0x425a62 of _0x3ba321){const _0x10b600=new DataView(new ArrayBuffer(0x4));_0x10b600['setUint16'](0x0,0xff00+_0x128912),_0x10b600['setUint16'](0x2,_0x425a62['byteLength']+0x2),_0x58ea3d['push'](_0x10b600['buffer']),_0x58ea3d['push'](_0x425a62);}let _0x286f60=0x2;for(let _0x1a3e94=0x0;_0x1a3e94<_0x5adc21['length'];_0x1a3e94++)_0x5adc21[_0x1a3e94]>_0x286f60&&_0x58ea3d['push'](_0x255585['slice'](_0x286f60,_0x5adc21[_0x1a3e94])),_0x286f60=_0x5adc21[_0x1a3e94]+_0x3677a3[_0x1a3e94]+0x4;return _0x58ea3d['push'](_0x255585['slice'](_0x286f60,_0x255585['size'])),new Blob(_0x58ea3d,{'type':_0x255585['type']});}},MARKER=0xe2,replaceIccProfile=(_0x2ccec4,_0x3a83ba)=>replaceJpegChunk(_0x2ccec4,MARKER,_0x3a83ba['map'](_0x1bb290=>_0x1bb290['buffer'])),stripIccProfile=async _0x13857a=>{try{return await replaceIccProfile(_0x13857a,[]);}catch(_0x85ba7b){throw new Error('Failed\x20to\x20strip\x20ICC\x20profile:\x20'+_0x85ba7b);}},canvasToBlob=(_0x16b33a,_0x34e914,_0x3b6871)=>new Promise((_0x42bf6a,_0x3b1d41)=>{_0x16b33a['toBlob'](_0x55d075=>{_0x55d075?_0x42bf6a(_0x55d075):_0x3b1d41('Failed\x20to\x20convert\x20canvas\x20to\x20blob');},_0x34e914,_0x3b6871),_0x16b33a['width']=_0x16b33a['height']=0x1;}),createCanvas=()=>{const _0x13332f=document['createElement']('canvas'),_0x1e43f1=_0x13332f['getContext']('2d');return{'canvas':_0x13332f,'ctx':_0x1e43f1};},hasTransparency=_0x34aef5=>{const {ctx:_0x5356c3,canvas:_0x42d04c}=createCanvas();_0x42d04c['width']=_0x42d04c['height']=0x32,_0x5356c3['drawImage'](_0x34aef5,0x0,0x0,0x32,0x32);const _0x3799dd=_0x5356c3['getImageData'](0x0,0x0,0x32,0x32)['data'];_0x42d04c['width']=_0x42d04c['height']=0x1;for(let _0x372997=0x3;_0x372997<_0x3799dd['length'];_0x372997+=0x4)if(_0x3799dd[_0x372997]<0xfe)return!0x0;return!0x1;},getExif=async _0x6eba0f=>{let _0x7b91d1=null;const {promiseReadJpegChunks:_0x53c28c,stack:_0x5470ff}=readJpegChunks();return await _0x53c28c(_0x6eba0f),_0x5470ff['forEach'](({marker:_0x1b18ba,view:_0x48d3c9})=>{!_0x7b91d1&&0xe1===_0x1b18ba&&_0x48d3c9['byteLength']>=0xe&&0x45786966===_0x48d3c9['getUint32'](0x0)&&0x0===_0x48d3c9['getUint16'](0x4)&&(_0x7b91d1=_0x48d3c9);}),_0x7b91d1;},base64ImageSrc='data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=';let isApplied;const isBrowserApplyExifOrientation=()=>new Promise(_0x19d70b=>{if(void 0x0!==isApplied)_0x19d70b(isApplied);else{const _0x2f88ee=new Image();_0x2f88ee['addEventListener']('load',()=>{isApplied=_0x2f88ee['naturalWidth']<_0x2f88ee['naturalHeight'],_0x2f88ee['src']='//:0',_0x19d70b(isApplied);}),_0x2f88ee['src']=base64ImageSrc;}}),findExifOrientation=(_0x4a7c1f,_0x23e7e5)=>{let _0x2b6c54,_0x1a1cf2,_0x24f6b5,_0x11dc57;if(!_0x4a7c1f||_0x4a7c1f['byteLength']<0xe||0x45786966!==_0x4a7c1f['getUint32'](0x0)||0x0!==_0x4a7c1f['getUint16'](0x4))return;if(0x4949===_0x4a7c1f['getUint16'](0x6))_0x1a1cf2=!0x0;else{if(0x4d4d!==_0x4a7c1f['getUint16'](0x6))return;_0x1a1cf2=!0x1;}if(0x2a!==_0x4a7c1f['getUint16'](0x8,_0x1a1cf2))return;_0x24f6b5=0x8+_0x4a7c1f['getUint32'](0xa,_0x1a1cf2);for(_0x2b6c54=0x0,_0x11dc57=_0x4a7c1f['getUint16'](_0x24f6b5-0x2,_0x1a1cf2);_0x11dc57>=0x0?_0x2b6c54<_0x11dc57:_0x2b6c54>_0x11dc57;_0x11dc57>=0x0?++_0x2b6c54:--_0x2b6c54){if(_0x4a7c1f['byteLength']<_0x24f6b5+0xa)return;0x112===_0x4a7c1f['getUint16'](_0x24f6b5,_0x1a1cf2)&&_0x23e7e5(_0x24f6b5+0x8,_0x1a1cf2),_0x24f6b5+=0xc;}},setExifOrientation=(_0x5ad176,_0x79a56d)=>{findExifOrientation(_0x5ad176,(_0x1deb2e,_0x25b8ef)=>_0x5ad176['setUint16'](_0x1deb2e,_0x79a56d,_0x25b8ef));},replaceExif=async(_0x5e7357,_0x22e647,_0xcf6c8)=>(_0xcf6c8&&setExifOrientation(_0x22e647,0x1),replaceJpegChunk(_0x5e7357,0xe1,[_0x22e647['buffer']])),processImage=(_0x237850,_0x5144b7)=>new Promise((_0x2f804b,_0xabb044)=>{_0x5144b7&&(_0x237850['src']=_0x5144b7),_0x237850['complete']?_0x2f804b(_0x237850):(_0x237850['addEventListener']('load',()=>{_0x2f804b(_0x237850);}),_0x237850['addEventListener']('error',()=>{_0xabb044(new Error('Failed\x20to\x20load\x20image.\x20Probably\x20not\x20an\x20image.'));}));}),imageLoader=_0x56f04b=>processImage(new Image(),_0x56f04b),allowLayers=[0x1,0x3],markers=[0xc0,0xc1,0xc2,0xc3,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcd,0xce,0xcf],sizes={'squareSide':[Math['floor'](Math['sqrt'](0x4c4b40)),0x1000,0x2000,0x2bac,0x2a54,0x2c8a,0x376c,0x4000],'dimension':[0x1000,0x2000,0x4000,0x7fff,0xffff]},shouldSkipShrink=async _0x41e510=>{let _0x26a831=!0x1;const {promiseReadJpegChunks:_0x3e744f,stack:_0x11a18d}=readJpegChunks();return await _0x3e744f(_0x41e510)['then'](()=>(_0x11a18d['forEach'](({marker:_0x304887,view:_0x1ebdb6})=>{if(!_0x26a831&&markers['indexOf'](_0x304887)>=0x0){const _0x584009=_0x1ebdb6['getUint8'](0x5);allowLayers['indexOf'](_0x584009)<0x0&&(_0x26a831=!0x0);}}),_0x26a831))['catch'](()=>_0x26a831);},memoize$1=(_0x2cb64e,_0x45ba52)=>{const _0x4d94c6={};return(..._0x5f38cf)=>{const _0x45ef17=_0x45ba52(_0x5f38cf,_0x4d94c6);return _0x45ef17 in _0x4d94c6?_0x4d94c6[_0x45ef17]:_0x4d94c6[_0x45ef17]=_0x2cb64e(..._0x5f38cf);};},memoKeySerializer=(_0x413182,_0x2d5432)=>{const [_0x49fffb]=_0x413182,_0x3040f3=Object['keys'](_0x2d5432)['map'](_0x43c4c2=>parseInt(_0x43c4c2,0xa))['sort']((_0x108f69,_0x3ad584)=>_0x108f69-_0x3ad584);for(let _0x278496=0x0;_0x278496<_0x3040f3['length'];_0x278496++){const _0x4b5266=_0x3040f3[_0x278496],_0x5c119b=!!_0x2d5432[_0x4b5266];if(_0x4b5266>_0x49fffb&&_0x5c119b)return _0x4b5266;if(_0x4b5266<_0x49fffb&&!_0x5c119b)return _0x4b5266;}return _0x49fffb;},TestPixel={'R':0x37,'G':0x6e,'B':0xa5,'A':0xff},FILL_STYLE='rgba('+TestPixel['R']+',\x20'+TestPixel['G']+',\x20'+TestPixel['B']+',\x20'+TestPixel['A']/0xff+')',canvasTest=(_0x1a2028,_0x482116)=>{try{const _0x1e1a93=[_0x1a2028-0x1,_0x482116-0x1,0x1,0x1],{canvas:_0x2ec184,ctx:_0x8fb86b}=createCanvas();_0x2ec184['width']=0x1,_0x2ec184['height']=0x1;const {canvas:_0x24bfaf,ctx:_0x5bb7bf}=createCanvas();_0x24bfaf['width']=_0x1a2028,_0x24bfaf['height']=_0x482116,_0x5bb7bf&&(_0x5bb7bf['fillStyle']=FILL_STYLE,_0x5bb7bf['fillRect'](..._0x1e1a93),_0x8fb86b['drawImage'](_0x24bfaf,_0x1a2028-0x1,_0x482116-0x1,0x1,0x1,0x0,0x0,0x1,0x1));const _0x56dfa9=_0x8fb86b&&_0x8fb86b['getImageData'](0x0,0x0,0x1,0x1)['data'];let _0xd7eda=!0x1;return _0x56dfa9&&(_0xd7eda=_0x56dfa9[0x0]===TestPixel['R']&&_0x56dfa9[0x1]===TestPixel['G']&&_0x56dfa9[0x2]===TestPixel['B']&&_0x56dfa9[0x3]===TestPixel['A']),_0x24bfaf['width']=_0x24bfaf['height']=0x1,_0xd7eda;}catch(_0x49d82b){return console['error']('Failed\x20to\x20test\x20for\x20max\x20canvas\x20size\x20of\x20'+_0x1a2028+'x'+_0x482116+'.'),!0x1;}};function wrapAsync(_0x48e10){return(..._0x24aaa1)=>new Promise(_0x5f4731=>{setTimeout(()=>{const _0xedeeb0=_0x48e10(..._0x24aaa1);_0x5f4731(_0xedeeb0);},0x0);});}const squareTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),dimensionTest=wrapAsync(memoize$1(canvasTest,memoKeySerializer)),testCanvasSize=async(_0x236365,_0x410b81)=>{const _0x1492bc=sizes['squareSide']['find'](_0x74668f=>_0x74668f*_0x74668f>=_0x236365*_0x410b81),_0x7add93=sizes['dimension']['find'](_0x5ee137=>_0x5ee137>=_0x236365&&_0x5ee137>=_0x410b81);if(!_0x1492bc||!_0x7add93)throw new Error('Not\x20supported');const [_0x4d8d9f,_0x1ed2a3]=await Promise['all']([squareTest(_0x1492bc,_0x1492bc),dimensionTest(_0x7add93,0x1)]);if(_0x4d8d9f&&_0x1ed2a3)return!0x0;throw new Error('Not\x20supported');},canvasResize=async(_0x5a37aa,_0x1fa8d7,_0x1a240b)=>{try{const {ctx:_0x446e89,canvas:_0xdaab70}=createCanvas();return _0xdaab70['width']=_0x1fa8d7,_0xdaab70['height']=_0x1a240b,_0x446e89['imageSmoothingQuality']='high',_0x446e89['drawImage'](_0x5a37aa,0x0,0x0,_0x1fa8d7,_0x1a240b),_0x5a37aa instanceof HTMLImageElement&&(_0x5a37aa['src']='//:0'),_0x5a37aa instanceof HTMLCanvasElement&&(_0x5a37aa['width']=_0x5a37aa['height']=0x1),_0xdaab70;}catch(_0xa207ea){throw new Error('Canvas\x20resize\x20error',{'cause':_0xa207ea});}},native=({img:_0x4d8bbf,targetW:_0x2f138f,targetH:_0x33a09c})=>canvasResize(_0x4d8bbf,_0x2f138f,_0x33a09c),calcShrinkSteps=function({sourceW:_0x422821,targetW:_0x42d361,targetH:_0x1e92fe,step:_0x4978c2}){const _0x270073=[];let _0x18eb5a=_0x42d361,_0x14112a=_0x1e92fe;do{_0x270073['push']([_0x18eb5a,_0x14112a]),_0x18eb5a=Math['round'](_0x18eb5a/_0x4978c2),_0x14112a=Math['round'](_0x14112a/_0x4978c2);}while(_0x18eb5a<_0x422821*_0x4978c2);return _0x270073['reverse']();},fallback=({img:_0x587e9f,sourceW:_0x3cc03a,targetW:_0x5ab756,targetH:_0x4506bb,step:_0x17de99})=>{const _0x508a7e=calcShrinkSteps({'sourceW':_0x3cc03a,'targetW':_0x5ab756,'targetH':_0x4506bb,'step':_0x17de99});return _0x508a7e['reduce']((_0x5a7668,[_0x132efe,_0x29332f],_0x36e399)=>_0x5a7668['then'](_0x20947f=>testCanvasSize(_0x132efe,_0x29332f)['then'](()=>canvasResize(_0x20947f,_0x132efe,_0x29332f))['catch'](()=>{if(_0x36e399===_0x508a7e['length']-0x1)throw new Error('Not\x20supported');return _0x20947f;})),Promise['resolve'](_0x587e9f));},isIOS=()=>!!/iPad|iPhone|iPod/['test'](navigator['platform'])||navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),isIpadOS=navigator['maxTouchPoints']&&navigator['maxTouchPoints']>0x2&&/MacIntel/['test'](navigator['platform']),STEP=0.71,shrinkImage=(_0x56c187,_0xd2c306)=>{if(_0x56c187['width']*STEP*_0x56c187['height']*STEP<_0xd2c306['size'])throw new Error('Not\x20required');const _0x2db296=_0x56c187['width'],_0x3c12b8=_0x56c187['height'],_0x48b880=_0x2db296/_0x3c12b8,_0x4ebd70=Math['floor'](Math['sqrt'](_0xd2c306['size']*_0x48b880)),_0x17e707=Math['floor'](_0xd2c306['size']/Math['sqrt'](_0xd2c306['size']*_0x48b880));return testCanvasSize(_0x4ebd70,_0x17e707)['then'](()=>{const {ctx:_0x1b076a}=createCanvas();return'imageSmoothingQuality'in _0x1b076a&&!isIOS()&&!isIpadOS?native({'img':_0x56c187,'targetW':_0x4ebd70,'targetH':_0x17e707}):fallback({'img':_0x56c187,'sourceW':_0x2db296,'targetW':_0x4ebd70,'targetH':_0x17e707,'step':STEP});})['catch'](()=>Promise['reject']('Not\x20supported'));},shrinkFile=async(_0x39593f,_0xc953bf)=>{try{if(await shouldSkipShrink(_0x39593f))throw new Error('Should\x20skipped');const _0x450313=await Promise['allSettled']([getExif(_0x39593f),isBrowserApplyExifOrientation(),getIccProfile(_0x39593f)]),_0x43784a=!_0x450313['some'](_0xc9de84=>'rejected'===_0xc9de84['status']),[_0xb1ee11,_0x4a570f,_0xec73]=_0x450313,_0x474d27=await stripIccProfile(_0x39593f)['catch'](()=>_0x39593f),_0x470a48=await imageLoader(URL['createObjectURL'](_0x474d27));URL['revokeObjectURL'](_0x470a48['src']);const _0x56d69a=await shrinkImage(_0x470a48,_0xc953bf);let _0x1af37f='image/jpeg',_0x3e3d58=_0xc953bf?.['quality']||0.8;!_0x43784a&&hasTransparency(_0x56d69a)&&(_0x1af37f='image/png',_0x3e3d58=void 0x0);let _0x2bf232=await canvasToBlob(_0x56d69a,_0x1af37f,_0x3e3d58);if(_0x43784a&&'fulfilled'===_0xb1ee11['status']&&_0xb1ee11['value']){const _0x18f6d7=_0xb1ee11['value'],_0x27b9a2='fulfilled'===_0x4a570f['status']&&_0x4a570f['value'];_0x2bf232=await replaceExif(_0x2bf232,_0x18f6d7,_0x27b9a2);}return _0x43784a&&'fulfilled'===_0xec73['status']&&_0xec73['value']['length']>0x0&&(_0x2bf232=await replaceIccProfile(_0x2bf232,_0xec73['value'])),_0x2bf232;}catch(_0x4e9f76){let _0x9df55c;throw _0x4e9f76 instanceof Error&&(_0x9df55c=_0x4e9f76['message']),'string'==typeof _0x4e9f76&&(_0x9df55c=_0x4e9f76),new Error('Failed\x20to\x20shrink\x20image.\x20'+(_0x9df55c?'Message:\x20\x22'+_0x9df55c+'\x22.':''),{'cause':_0x4e9f76});}};var DEFAULT_DEBOUNCE_TIMEOUT=0x14,InternalEventType=Object['freeze']({'INIT_SOLUTION':'init-solution','CHANGE_CONFIG':'change-config','ACTION_EVENT':'action-event','ERROR_EVENT':'error-event'}),EventType=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'}),EventEmitter=class{['_timeoutStore']=new Map();['_targets']=new Set();['_debugPrint']=null;constructor(_0x28ae26){this['_debugPrint']=_0x28ae26;}['bindTarget'](_0x38419a){this['_targets']['add'](_0x38419a);}['unbindTarget'](_0x32669d){this['_targets']['delete'](_0x32669d);}['_dispatch'](_0x16e230,_0x4728ac){for(const _0x291354 of this['_targets'])_0x291354['dispatchEvent'](new CustomEvent(_0x16e230,{'detail':_0x4728ac}));this['_debugPrint']?.(()=>{const _0x4f2332=_0x4728ac&&'object'==typeof _0x4728ac?{..._0x4728ac}:_0x4728ac;return['event\x20\x22'+_0x16e230+'\x22',_0x4f2332];});}['emit'](_0x2003b7,_0x2e82ab,_0x39245b={}){const {debounce:_0x3e741d}=_0x39245b;if('number'!=typeof _0x3e741d&&!_0x3e741d)return void this['_dispatch'](_0x2003b7,'function'==typeof _0x2e82ab?_0x2e82ab():_0x2e82ab);this['_timeoutStore']['has'](_0x2003b7)&&window['clearTimeout'](this['_timeoutStore']['get'](_0x2003b7));const _0x59c385='number'==typeof _0x3e741d?_0x3e741d:DEFAULT_DEBOUNCE_TIMEOUT,_0x504c5=window['setTimeout'](()=>{this['_dispatch'](_0x2003b7,'function'==typeof _0x2e82ab?_0x2e82ab():_0x2e82ab),this['_timeoutStore']['delete'](_0x2003b7);},_0x59c385);this['_timeoutStore']['set'](_0x2003b7,_0x504c5);}};function debounce(_0x416f1e,_0x4c99aa){let _0x126348;const _0x42cdcb=(..._0x21597a)=>{_0x126348&&clearTimeout(_0x126348),_0x126348=setTimeout(()=>_0x416f1e(..._0x21597a),_0x4c99aa);};return _0x42cdcb['cancel']=()=>{_0x126348&&clearTimeout(_0x126348);},_0x42cdcb;}var deserializeCsv=_0x5b5c2e=>_0x5b5c2e?_0x5b5c2e['split'](',')['map'](_0x2d3942=>_0x2d3942['trim']())['filter'](Boolean):[],serializeCsv=_0x241667=>_0x241667['join'](','),normalizeCdnOperation=_0xeb11dd=>{if('string'!=typeof _0xeb11dd||!_0xeb11dd)return'';let _0x3f46e0=_0xeb11dd['trim']();return _0x3f46e0['startsWith']('-/')?_0x3f46e0=_0x3f46e0['slice'](0x2):_0x3f46e0['startsWith']('/')&&(_0x3f46e0=_0x3f46e0['slice'](0x1)),_0x3f46e0['endsWith']('/')&&(_0x3f46e0=_0x3f46e0['slice'](0x0,_0x3f46e0['length']-0x1)),_0x3f46e0;},joinCdnOperations=(..._0x3ad2d4)=>_0x3ad2d4['filter'](_0x40bd1e=>'string'==typeof _0x40bd1e&&!!_0x40bd1e)['map'](_0xc3b9b0=>normalizeCdnOperation(_0xc3b9b0))['join']('/-/'),createCdnUrlModifiers=(..._0x378d21)=>{const _0x3daa10=joinCdnOperations(..._0x378d21);return _0x3daa10?'-/'+_0x3daa10+'/':'';};function extractFilename(_0x11da47){const _0x5f33d2=new URL(_0x11da47),_0x34de50=_0x5f33d2['pathname']+_0x5f33d2['search']+_0x5f33d2['hash'],_0x233ca9=_0x34de50['lastIndexOf']('http'),_0x162cd4=_0x34de50['lastIndexOf']('/');let _0x4ef5df='';return _0x233ca9>=0x0?_0x4ef5df=_0x34de50['slice'](_0x233ca9):_0x162cd4>=0x0&&(_0x4ef5df=_0x34de50['slice'](_0x162cd4+0x1)),_0x4ef5df;}function extractUuid(_0x2e07ec){const _0x5e1819=new URL(_0x2e07ec),{pathname:_0x4ed7cd}=_0x5e1819,_0x1502f9=_0x4ed7cd['indexOf']('/'),_0x321669=_0x4ed7cd['indexOf']('/',_0x1502f9+0x1);return _0x4ed7cd['substring'](_0x1502f9+0x1,_0x321669);}function extractCdnUrlModifiers(_0x250e93){const _0x576f11=trimFilename(_0x250e93),_0x29a992=new URL(_0x576f11),_0x3fd096=_0x29a992['pathname']['indexOf']('/-/');if(-0x1===_0x3fd096)return'';return _0x29a992['pathname']['substring'](_0x3fd096)['slice'](0x1);}function extractOperations(_0x3c3365){return extractCdnUrlModifiers(_0x3c3365)['split']('/-/')['filter'](Boolean)['map'](_0x3dc472=>normalizeCdnOperation(_0x3dc472));}function trimFilename(_0x3aae97){const _0x39645c=new URL(_0x3aae97),_0x1a9ab8=extractFilename(_0x3aae97),_0x303c3d=isFileUrl(_0x1a9ab8)?splitFileUrl(_0x1a9ab8)['pathname']:_0x1a9ab8;return _0x39645c['pathname']=_0x39645c['pathname']['replace'](_0x303c3d,''),_0x39645c['search']='',_0x39645c['hash']='',_0x39645c['toString']();}function isFileUrl(_0x32905d){return _0x32905d['startsWith']('http');}function splitFileUrl(_0x250d26){const _0x5ae8c2=new URL(_0x250d26);return{'pathname':''+_0x5ae8c2['origin']+(_0x5ae8c2['pathname']??''),'search':_0x5ae8c2['search']??'','hash':_0x5ae8c2['hash']??''};}var createCdnUrl=(_0x584ea3,_0x2f64ad,_0x5ddbe5)=>{const _0x4bb112=new URL(trimFilename(_0x584ea3)),_0x1476cd=_0x5ddbe5??extractFilename(_0x584ea3),_0x5bba3f=_0x2f64ad??'';if(_0x4bb112['pathname']['startsWith']('//')&&(_0x4bb112['pathname']=_0x4bb112['pathname']['replace']('//','/')),_0x1476cd&&isFileUrl(_0x1476cd)){const _0xacbdf7=splitFileUrl(_0x1476cd);_0x4bb112['pathname']=''+_0x4bb112['pathname']+_0x5bba3f+(_0xacbdf7['pathname']||''),_0x4bb112['search']=_0xacbdf7['search'],_0x4bb112['hash']=_0xacbdf7['hash'];}else _0x4bb112['pathname']=''+_0x4bb112['pathname']+_0x5bba3f+(_0x1476cd||'');return _0x4bb112['toString']();},createOriginalUrl=(_0x5762a0,_0x147a5c)=>{const _0x56a47f=new URL(_0x5762a0);return _0x56a47f['pathname']=_0x147a5c+'/',_0x56a47f['toString']();},stringToArray=(_0x2dbfe2,_0x17af9=',')=>_0x2dbfe2['trim']()['split'](_0x17af9)['map'](_0xf3fc8a=>_0xf3fc8a['trim']())['filter'](_0x2cf2bf=>_0x2cf2bf['length']>0x0),OPERATIONS_DEFAULTS=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}),SUPPORTED_OPERATIONS_ORDERED=['enhance','brightness','exposure','gamma','contrast','saturation','vibrance','warmth','filter','mirror','flip','rotate','crop'];function transformationToStr(_0x51129b,_0x19681b){if('number'==typeof _0x19681b){const _0x45dce9=_0x19681b;return OPERATIONS_DEFAULTS[_0x51129b]!==_0x45dce9?_0x51129b+'/'+_0x45dce9:'';}if('boolean'==typeof _0x19681b){const _0x35c5a5=_0x19681b;return OPERATIONS_DEFAULTS[_0x51129b]!==_0x35c5a5?''+_0x51129b:'';}if('filter'===_0x51129b&&_0x19681b){const {name:_0x56347c,amount:_0x4514ab}=_0x19681b;return OPERATIONS_DEFAULTS['filter']===_0x4514ab?'':_0x51129b+'/'+_0x56347c+'/'+_0x4514ab;}if('crop'===_0x51129b&&_0x19681b){const {dimensions:_0x43cb6d,coords:_0x3b7d93}=_0x19681b;return _0x51129b+'/'+_0x43cb6d['join']('x')+'/'+_0x3b7d93['join'](',');}return'';}function transformationsToOperations(_0x3fd252){return joinCdnOperations(...SUPPORTED_OPERATIONS_ORDERED['filter'](_0x22f3c4=>void 0x0!==_0x3fd252[_0x22f3c4]&&null!==_0x3fd252[_0x22f3c4])['map'](_0x394a70=>transformationToStr(_0x394a70,_0x3fd252[_0x394a70]))['filter'](_0x17e273=>!!_0x17e273));}var COMMON_OPERATIONS=joinCdnOperations('format/auto','progressive/yes'),asNumber=([_0x3c6747])=>void 0x0!==_0x3c6747?Number(_0x3c6747):void 0x0,asBoolean=()=>!0x0,asFilter=([_0x6d542,_0xd237c3])=>({'name':_0x6d542,'amount':void 0x0!==_0xd237c3?Number(_0xd237c3):0x64}),asCrop=([_0x1d30aa,_0x1b9d4f])=>{if(!/\d+x\d+/['test'](_0x1d30aa)||!/\d+,\d+/['test'](_0x1b9d4f))throw new Error('Crop\x20by\x20aspect\x20ratio,\x20percentage\x20or\x20alignment\x20shortcuts\x20is\x20not\x20supported.');return{'dimensions':stringToArray(_0x1d30aa,'x')['map'](Number),'coords':stringToArray(_0x1b9d4f)['map'](Number)};},OPERATION_PROCESSORS=Object['freeze']({'enhance':asNumber,'brightness':asNumber,'exposure':asNumber,'gamma':asNumber,'contrast':asNumber,'saturation':asNumber,'vibrance':asNumber,'warmth':asNumber,'filter':asFilter,'mirror':asBoolean,'flip':asBoolean,'rotate':asNumber,'crop':_0x5aef81=>{const [_0x22b399,_0x253d16]=_0x5aef81,{dimensions:_0x130f29,coords:_0x19189c}=asCrop([_0x22b399,_0x253d16]);return{'dimensions':_0x130f29,'coords':_0x19189c};}});function operationsToTransformations(_0x12a739){const _0x34e423={};for(const _0x962547 of _0x12a739){const [_0x238dad,..._0x46d355]=_0x962547['split']('/');if(!_0x238dad||!SUPPORTED_OPERATIONS_ORDERED['includes'](_0x238dad))continue;const _0x108a94=_0x238dad,_0x238f15=OPERATION_PROCESSORS[_0x108a94];try{const _0x2ce0fe=_0x238f15(_0x46d355);_0x34e423[_0x108a94]=_0x2ce0fe;}catch(_0xa16626){console['warn'](['Failed\x20to\x20parse\x20URL\x20operation\x20\x22'+_0x962547+'\x22.\x20It\x20will\x20be\x20ignored.',_0xa16626 instanceof Error?'Error\x20message:\x20\x22'+_0xa16626['message']+'\x22':_0xa16626,'If\x20you\x20need\x20this\x20functionality,\x20please\x20feel\x20free\x20to\x20open\x20an\x20issue\x20at\x20https://github.com/uploadcare/blocks/issues/new']['join']('\x0a'));}}return _0x34e423;}var TabId=Object['freeze']({'CROP':'crop','TUNING':'tuning','FILTERS':'filters'}),ALL_TABS=Object['freeze']([TabId['CROP'],TabId['TUNING'],TabId['FILTERS']]),ALL_COLOR_OPERATIONS=Object['freeze'](['brightness','exposure','gamma','contrast','saturation','vibrance','warmth','enhance']),ALL_FILTERS=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']),ALL_CROP_OPERATIONS=Object['freeze'](['rotate','mirror','flip']),NUMERIC_OPERATION_DEFAULTS=OPERATIONS_DEFAULTS,COLOR_OPERATIONS_CONFIG=Object['freeze']({'brightness':{'zero':NUMERIC_OPERATION_DEFAULTS['brightness'],'range':[-0x64,0x64],'keypointsNumber':0x2},'exposure':{'zero':NUMERIC_OPERATION_DEFAULTS['exposure'],'range':[-0x1f4,0x1f4],'keypointsNumber':0x2},'gamma':{'zero':NUMERIC_OPERATION_DEFAULTS['gamma'],'range':[0x0,0x3e8],'keypointsNumber':0x2},'contrast':{'zero':NUMERIC_OPERATION_DEFAULTS['contrast'],'range':[-0x64,0x1f4],'keypointsNumber':0x2},'saturation':{'zero':NUMERIC_OPERATION_DEFAULTS['saturation'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'vibrance':{'zero':NUMERIC_OPERATION_DEFAULTS['vibrance'],'range':[-0x64,0x1f4],'keypointsNumber':0x1},'warmth':{'zero':NUMERIC_OPERATION_DEFAULTS['warmth'],'range':[-0x64,0x64],'keypointsNumber':0x1},'enhance':{'zero':NUMERIC_OPERATION_DEFAULTS['enhance'],'range':[0x0,0x64],'keypointsNumber':0x1},'filter':{'zero':NUMERIC_OPERATION_DEFAULTS['filter'],'range':[0x0,0x64],'keypointsNumber':0x1}}),DEFAULT_CDN_CNAME='https://ucarecdn.com',DEFAULT_BASE_URL='https://upload.uploadcare.com',DEFAULT_SOCIAL_BASE_URL='https://social.uploadcare.com',DEFAULT_PREFIXED_CDN_BASE_DOMAIN='https://ucarecd.net',config={'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':'','cloudImageEditorTabs':serializeCsv(ALL_TABS),'maxLocalFileSizeBytes':0x0,'thumbSize':0x4c,'showEmptyList':!0x1,'useLocalImageEditor':!0x1,'useCloudImageEditor':!0x0,'removeCopyright':!0x1,'cropPreset':'','imageShrink':'','modalScrollLock':!0x0,'modalBackdropStrokes':!0x1,'sourceListWrap':!0x0,'remoteTabSessionKey':'','cdnCname':DEFAULT_CDN_CNAME,'cdnCnamePrefixed':DEFAULT_PREFIXED_CDN_BASE_DOMAIN,'baseUrl':DEFAULT_BASE_URL,'socialBaseUrl':DEFAULT_SOCIAL_BASE_URL,'secureSignature':'','secureExpire':'','secureDeliveryProxy':'','retryThrottledRequestMaxTimes':0xa,'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,'cloudImageEditorAutoOpen':!0x1,'cloudImageEditorMaskHref':null,'testMode':!0x1,'qualityInsights':!0x0},initialConfig=Object['freeze'](config),getLocaleDirection=_0x5ac84d=>{const _0x111ea0=new Intl['Locale'](_0x5ac84d);let _0x5a27a5='ltr';const _0x11ef57=_0x111ea0['getTextInfo']?.()['direction'];return _0x11ef57?_0x5a27a5=_0x11ef57:_0x111ea0['textInfo']?.['direction']&&(_0x5a27a5=_0x111ea0['textInfo']['direction']),_0x5a27a5;},getPluralForm=(_0x33e925,_0x153c45)=>new Intl['PluralRules'](_0x33e925)['select'](_0x153c45),DEFAULT_TRANSFORMER=_0x25c6c5=>_0x25c6c5,OPEN_TOKEN='{{',CLOSE_TOKEN='}}',PLURAL_PREFIX='plural:';function applyTemplateData(_0x36ed24,_0x30fdc3={},_0x4b6983={}){const {openToken:_0x2ef0a3=OPEN_TOKEN,closeToken:_0x382a62=CLOSE_TOKEN,transform:_0xfef85f=DEFAULT_TRANSFORMER}=_0x4b6983;for(const _0x3a3f1c in _0x30fdc3){const _0x1fc189=_0x30fdc3[_0x3a3f1c],_0xd14414=null!=_0x1fc189?_0x1fc189['toString']():void 0x0,_0x215206='string'==typeof _0xd14414?_0xfef85f(_0xd14414):String(_0xd14414);_0x36ed24=_0x36ed24['replaceAll'](_0x2ef0a3+_0x3a3f1c+_0x382a62,_0x215206);}return _0x36ed24;}function getPluralObjects(_0x421160){const _0x184f17=[];let _0x88206f=_0x421160['indexOf'](OPEN_TOKEN);for(;-0x1!==_0x88206f;){const _0x240c9b=_0x421160['indexOf'](CLOSE_TOKEN,_0x88206f);if(-0x1===_0x240c9b)break;const _0x51641b=_0x421160['substring'](_0x88206f+0x2,_0x240c9b);if(_0x51641b['startsWith'](PLURAL_PREFIX)){const _0x49d470=_0x421160['substring'](_0x88206f+0x2,_0x240c9b)['replace'](PLURAL_PREFIX,''),_0x22a069=_0x49d470['substring'](0x0,_0x49d470['indexOf']('(')),_0x5e1d55=_0x49d470['substring'](_0x49d470['indexOf']('(')+0x1,_0x49d470['indexOf'](')'));_0x184f17['push']({'variable':_0x51641b,'pluralKey':_0x22a069,'countVariable':_0x5e1d55});}_0x88206f=_0x421160['indexOf'](OPEN_TOKEN,_0x240c9b);}return _0x184f17;}var WINDOW_HEIGHT_TRACKER_PROPERTY='--uploadcare-blocks-window-height',WindowHeightTracker=class e{static ['clientsRegistry']=new Set();static ['flush']=debounce(()=>{document['documentElement']['style']['setProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY,window['innerHeight']+'px');},0x64);static['registerClient'](_0x419fdc){0x0===e['clientsRegistry']['size']&&e['attachTracker'](),e['clientsRegistry']['add'](_0x419fdc);}static['unregisterClient'](_0x439d0b){e['clientsRegistry']['delete'](_0x439d0b),0x0===e['clientsRegistry']['size']&&e['detachTracker']();}static['attachTracker'](){window['addEventListener']('resize',e['flush'],{'passive':!0x0,'capture':!0x0}),e['flush']();}static['detachTracker'](){window['removeEventListener']('resize',e['flush'],{'capture':!0x0}),document['documentElement']['style']['removeProperty'](WINDOW_HEIGHT_TRACKER_PROPERTY);}},waitForAttribute=({element:_0x34844e,attribute:_0x2f199a,onSuccess:_0x3fe600,onTimeout:_0x5a8bf9,timeout:_0x47cdb0=0x12c})=>{const _0x3fe646=_0x34844e['getAttribute'](_0x2f199a);if(null!==_0x3fe646)return void _0x3fe600(_0x3fe646);const _0x2f9561=new MutationObserver(_0x45c8bd=>{const _0x49f0e1=_0x45c8bd[_0x45c8bd['length']-0x1];_0x49f0e1&&_0x5a7d64(_0x49f0e1);});_0x2f9561['observe'](_0x34844e,{'attributes':!0x0,'attributeFilter':[_0x2f199a]});const _0x502269=window['setTimeout'](()=>{_0x2f9561['disconnect'](),_0x5a8bf9();},_0x47cdb0),_0x5a7d64=_0x504ffd=>{const _0x343ba0=_0x34844e['getAttribute'](_0x2f199a);'attributes'===_0x504ffd['type']&&_0x504ffd['attributeName']===_0x2f199a&&null!==_0x343ba0&&(window['clearTimeout'](_0x502269),_0x2f9561['disconnect'](),_0x3fe600(_0x343ba0));};},blockCtx=()=>({}),activityBlockCtx=_0x59017f=>({...blockCtx(),'*currentActivity':null,'*currentActivityParams':{},'*history':[],'*historyBack':null,'*closeModal':()=>{_0x59017f['modalManager']?.['close'](_0x59017f['$']['*currentActivity']),_0x59017f['set$']({'*currentActivity':null});}}),uploaderBlockCtx=_0x40225c=>({...activityBlockCtx(_0x40225c),'*commonProgress':0x0,'*uploadList':[],'*uploadQueue':new Queue(0x1),'*collectionErrors':[],'*collectionState':null,'*groupInfo':null,'*uploadTrigger':new Set(),'*secureUploadsManager':null}),solutionBlockCtx=_0x2870ef=>({...uploaderBlockCtx(_0x2870ef),'*solution':null}),en_default={'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','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-draw':'Draw','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-draw':'Draw','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'},localeRegistry=new Map(),localeResolvers=new Map(),defineLocaleSync=(_0x2b1162,_0x267ae4)=>{localeRegistry['has'](_0x2b1162)&&console['log']('Locale\x20'+_0x2b1162+'\x20is\x20already\x20defined.\x20Overwriting...'),localeRegistry['set'](_0x2b1162,{...en_default,..._0x267ae4});},defineLocaleAsync=(_0x2f7724,_0x542051)=>{localeResolvers['set'](_0x2f7724,_0x542051);},defineLocale=(_0xd15401,_0x327f7e)=>{'function'==typeof _0x327f7e?defineLocaleAsync(_0xd15401,_0x327f7e):defineLocaleSync(_0xd15401,_0x327f7e);},resolveLocaleDefinition=async _0x213b05=>{if(!localeRegistry['has'](_0x213b05)){if(!localeResolvers['has'](_0x213b05))throw new Error('Locale\x20'+_0x213b05+'\x20is\x20not\x20defined');const _0x3c4b75=localeResolvers['get'](_0x213b05),_0x42d1d8=await _0x3c4b75();defineLocaleSync(_0x213b05,_0x42d1d8);}return localeRegistry['get'](_0x213b05);};defineLocale('en',en_default);var localeStateKey=_0x12a71b=>'*l10n/'+_0x12a71b,DEFAULT_LOCALE='en',LocaleManager=class{['_blockInstance']=null;['_localeName']='';['_callbacks']=new Set();['_boundBlocks']=new Map();constructor(_0x37d5aa){this['_blockInstance']=_0x37d5aa;for(const [_0x4b247a,_0x26b1ae]of Object['entries'](en_default)){const _0xdf964a=!this['_blockInstance']['has'](localeStateKey(_0x4b247a))||!this['_blockInstance']['$'][localeStateKey(_0x4b247a)];this['_blockInstance']['add'](localeStateKey(_0x4b247a),_0x26b1ae,_0xdf964a);}setTimeout(()=>{_0x37d5aa['subConfigValue']('localeName',async _0x14c63e=>{if(!this['_blockInstance']||!_0x14c63e)return;this['_localeName']=_0x14c63e;const _0x3f60fe=await resolveLocaleDefinition(_0x14c63e);if(_0x14c63e!==DEFAULT_LOCALE&&this['_localeName']!==_0x14c63e)return;const _0x34d260=this['_blockInstance']['cfg']['localeDefinitionOverride']?.[_0x14c63e];for(const [_0xe67972,_0x20c775]of Object['entries'](_0x3f60fe)){const _0x4ce5d9=_0x34d260?.[_0xe67972];this['_blockInstance']['add'](localeStateKey(_0xe67972),_0x4ce5d9??_0x20c775,!0x0);for(const _0x4a6f13 of this['_callbacks'])_0x4a6f13();}}),_0x37d5aa['subConfigValue']('localeDefinitionOverride',_0x525596=>{if(!_0x525596)return;const _0x5db574=_0x525596[this['_localeName']];if(_0x5db574)for(const [_0x25e600,_0x2e3370]of Object['entries'](_0x5db574)){this['_blockInstance']?.['add'](localeStateKey(_0x25e600),_0x2e3370,!0x0);for(const _0x1bdb2c of this['_callbacks'])_0x1bdb2c();}});});}['onLocaleChange'](_0x4640d8){const _0xabc3b6=debounce(_0x4640d8,0x0);return this['_callbacks']['add'](_0xabc3b6),()=>{this['_callbacks']['delete'](_0xabc3b6);};}['bindL10n'](_0x19fed9,_0xa7a920,_0x1ca178){_0x19fed9['$'][_0xa7a920]=_0x1ca178(),this['_boundBlocks']['has'](_0x19fed9)||this['_boundBlocks']['set'](_0x19fed9,new Map()),this['_boundBlocks']['get'](_0x19fed9)?.['get'](_0xa7a920)?.();const _0x177356=this['onLocaleChange'](()=>{_0x19fed9['$'][_0xa7a920]=_0x1ca178();});this['_boundBlocks']['get'](_0x19fed9)?.['set'](_0xa7a920,_0x177356);}['destroyL10nBindings'](_0x34b332){const _0x11c99d=this['_boundBlocks']['get'](_0x34b332);if(_0x11c99d){for(const _0x40eee4 of _0x11c99d['values']())_0x40eee4();this['_boundBlocks']['delete'](_0x34b332);}}['destroy'](){this['_callbacks']['clear']();}};function l10nProcessor(_0x396ef6,_0x372e8e){[..._0x396ef6['querySelectorAll']('[l10n]')]['forEach'](_0x5e385f=>{const _0x9ab329=_0x5e385f['getAttribute']('l10n');if(!_0x9ab329)return;const _0x14868e=_0x9ab329['split'](';');for(const _0x40a5c6 of _0x14868e)_0x40a5c6&&locale(_0x5e385f,_0x40a5c6,_0x372e8e);});}var locale=(_0x342307,_0x432a54,_0x156486)=>{let _0x32a9f5='textContent',_0x5b73b8=!0x1;if(_0x432a54['includes'](':')){const _0x3bfea9=_0x432a54['split'](':');if(0x2!==_0x3bfea9['length'])return void console['warn']('l10n\x20attribute\x20value\x20should\x20be\x20in\x20format\x20\x22property:key\x22\x20or\x20\x22key\x22.\x20Found:\x20'+_0x432a54);const _0x3f47ce=_0x3bfea9;_0x32a9f5=_0x3f47ce[0x0],_0x432a54=_0x3f47ce[0x1],_0x32a9f5['startsWith']('@')&&(_0x32a9f5=_0x32a9f5['slice'](0x1),_0x5b73b8=!0x0);}const _0x3a42fa=_0x432a54;_0x156486['has'](_0x3a42fa)&&_0x156486['sub'](_0x3a42fa,_0x1658a8=>{if(!_0x1658a8)return;_0x156486['l10nProcessorSubs']['has'](_0x3a42fa)||_0x156486['l10nProcessorSubs']['set'](_0x3a42fa,new Set());const _0x453ed5=_0x156486['l10nProcessorSubs']['get'](_0x3a42fa);_0x453ed5?.['forEach'](_0x459c99=>{_0x459c99['remove'](),_0x453ed5['delete'](_0x459c99),_0x156486['allSubs']['delete'](_0x459c99);});const _0x3ba85b=localeStateKey(_0x1658a8)['replace']('*','');_0x156486['nodeCtx']['has'](_0x3ba85b)||_0x156486['nodeCtx']['add'](_0x3ba85b,_0x1658a8);const _0x4abacc=_0x156486['nodeCtx']['sub'](_0x3ba85b,()=>{_0x342307[_0x32a9f5]=_0x156486['l10n'](_0x1658a8);});_0x453ed5?.['add'](_0x4abacc),_0x156486['allSubs']['add'](_0x4abacc),_0x342307['removeAttribute']('l10n');});const _0xc3e601=localeStateKey(_0x432a54);_0x156486['has'](_0xc3e601)||_0x156486['add'](_0xc3e601,''),_0x156486['sub'](_0xc3e601,()=>{_0x5b73b8?_0x342307['setAttribute'](_0x32a9f5,_0x156486['l10n'](_0x432a54)):_0x342307[_0x32a9f5]=_0x156486['l10n'](_0x432a54);}),_0x342307['removeAttribute']('l10n');},ScopedMinimalWindow=class{['_listeners']=new Map();['_scope']=[];['addEventListener'](_0x32493f,_0x3531ab){const _0xb6dee6=_0x2d86a9=>{const _0x48e2e0=_0x2d86a9['target'];_0x48e2e0 instanceof Node&&this['_scope']['some'](_0x399f02=>_0x399f02===_0x48e2e0||_0x399f02['contains'](_0x48e2e0))&&_0x3531ab(_0x2d86a9);};this['_listeners']['set'](_0x3531ab,_0xb6dee6),window['addEventListener'](_0x32493f,_0xb6dee6);}['removeEventListener'](_0x146a92,_0x1b2095){const _0x5d8c98=this['_listeners']['get'](_0x1b2095);_0x5d8c98&&window['removeEventListener'](_0x146a92,_0x5d8c98),this['_listeners']['delete'](_0x1b2095);}get['CustomEvent'](){return window['CustomEvent'];}get['document'](){return window['document'];}get['navigator'](){return window['navigator'];}['registerScope'](_0xb5bce1){this['_scope']['push'](_0xb5bce1);}['destroy'](){this['_scope']=[];for(const _0x2dff4d of this['_listeners']['values']())window['removeEventListener']('keydown',_0x2dff4d),window['removeEventListener']('keyup',_0x2dff4d);this['_listeners']['clear']();}},A11y=class{['_destroyKeyUX'];['_scopedWindow'];constructor(){this['_scopedWindow']=new ScopedMinimalWindow(),this['_destroyKeyUX']=startKeyUX(this['_scopedWindow'],[focusGroupKeyUX(),pressKeyUX('is-pressed'),jumpKeyUX(),hiddenKeyUX()]);}['registerBlock'](_0x2d7479){this['_scopedWindow']['registerScope'](_0x2d7479);}['destroy'](){this['_destroyKeyUX']?.(),this['_scopedWindow']['destroy']();}},ModalEvents=Object['freeze']({'ADD':'modal:add','DELETE':'modal:delete','OPEN':'modal:open','CLOSE':'modal:close','CLOSE_ALL':'modal:closeAll','DESTROY':'modal:destroy'}),ModalManager=class{['_modals']=new Map();['_activeModals']=new Set();['_subscribers']=new Map();['_block'];constructor(_0xf68114){this['_block']=_0xf68114;}['_debugPrint'](..._0x4190b9){this['_block']['debugPrint']('[modal-manager]',..._0x4190b9);}['registerModal'](_0x37b698,_0x3efc53){this['_modals']['set'](_0x37b698,_0x3efc53),this['_notify'](ModalEvents['ADD'],{'id':_0x37b698,'modal':_0x3efc53});}['deleteModal'](_0xd7107d){if(!this['_modals']['has'](_0xd7107d))return!0x1;const _0x279fc3=this['_modals']['get'](_0xd7107d);return this['_modals']['delete'](_0xd7107d),this['_activeModals']['delete'](_0xd7107d),this['_notify'](ModalEvents['DELETE'],{'id':_0xd7107d,'modal':_0x279fc3}),!0x0;}['open'](_0x5abcc2){if(!this['_modals']['has'](_0x5abcc2))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x5abcc2+'\x22\x20not\x20found'),!0x1;const _0x1a9116=this['_modals']['get'](_0x5abcc2);return this['_activeModals']['add'](_0x5abcc2),this['_notify'](ModalEvents['OPEN'],{'modal':_0x1a9116,'id':_0x5abcc2}),!0x0;}['close'](_0x2b9a6d){if(!this['_modals']['has'](_0x2b9a6d)||!this['_activeModals']['has'](_0x2b9a6d))return this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x2b9a6d+'\x22\x20not\x20found\x20or\x20not\x20active'),!0x1;const _0x574778=this['_modals']['get'](_0x2b9a6d);return this['_activeModals']['delete'](_0x2b9a6d),this['_notify'](ModalEvents['CLOSE'],{'id':_0x2b9a6d,'modal':_0x574778}),!0x0;}['toggle'](_0x223bbe){return this['_modals']['has'](_0x223bbe)?this['_activeModals']['has'](_0x223bbe)?this['close'](_0x223bbe):this['open'](_0x223bbe):(this['_debugPrint']('Modal\x20with\x20ID\x20\x22'+_0x223bbe+'\x22\x20not\x20found'),!0x1);}get['hasActiveModals'](){return this['_activeModals']['size']>0x0;}['back'](){if(0x0===this['_activeModals']['size'])return this['_debugPrint']('No\x20active\x20modals\x20to\x20go\x20back\x20from'),!0x1;const _0x3b77e1=Array['from'](this['_activeModals'])['pop']();return!!_0x3b77e1&&this['close'](_0x3b77e1);}['closeAll'](){const _0x5b7de6=this['_activeModals']['size'];return this['_activeModals']['clear'](),this['_notify'](ModalEvents['CLOSE_ALL'],{}),_0x5b7de6;}['subscribe'](_0x1f864c,_0x1c27a8){return this['_subscribers']['has'](_0x1f864c)||this['_subscribers']['set'](_0x1f864c,new Set()),this['_subscribers']['get'](_0x1f864c)?.['add'](_0x1c27a8),()=>this['unsubscribe'](_0x1f864c,_0x1c27a8);}['unsubscribe'](_0x3db79,_0x17316b){this['_subscribers']['has'](_0x3db79)&&this['_subscribers']['get'](_0x3db79)?.['delete'](_0x17316b);}['_notify'](_0x5575a5,_0x35c005){if(this['_subscribers']['has'](_0x5575a5)){for(const _0x495982 of this['_subscribers']['get'](_0x5575a5)??new Set())try{_0x495982(_0x35c005);}catch(_0x49082e){this['_block']['telemetryManager']['sendEventError'](_0x49082e,'modal\x20subscriber'),this['_debugPrint']('Error\x20in\x20modal\x20subscriber:',_0x49082e);}}}['destroy'](){this['closeAll'](),this['_modals']['clear'](),this['_subscribers']['clear'](),this['_notify'](ModalEvents['DESTROY'],{});}},version='1.24.5',PACKAGE_NAME='blocks',PACKAGE_VERSION=version,TelemetryManager=class{['_sessionId']=crypto['randomUUID']();['_telemetryInstance'];['_block'];['_config']=structuredClone(initialConfig);['_initialized']=!0x1;['_lastPayload']=null;['_queue'];constructor(_0x22d592){this['_block']=_0x22d592,this['_telemetryInstance']=new p(),this['_queue']=new Queue(0xa);for(const _0xe3e4cf of Object['keys'](this['_config']))this['_block']['subConfigValue'](_0xe3e4cf,_0x233481=>{this['_initialized']&&this['_config'][_0xe3e4cf]!==_0x233481&&this['sendEvent']({'eventType':InternalEventType['CHANGE_CONFIG']}),this['_setConfig'](_0xe3e4cf,_0x233481);});}['_init'](_0x1f8c50){_0x1f8c50!==InternalEventType['INIT_SOLUTION']||this['_initialized']||(this['_initialized']=!0x0);}['_setConfig'](_0x1a4811,_0x33f1f0){this['_config'][_0x1a4811]!==_0x33f1f0&&(this['_config'][_0x1a4811]=_0x33f1f0);}['_formattingPayload'](_0x336c50){const _0x2fbb17=_0x336c50['payload']?{..._0x336c50['payload']}:{};_0x2fbb17['activity']&&(_0x2fbb17['activity']=void 0x0);const _0x496ab4={..._0x336c50};return _0x336c50['eventType']!==InternalEventType['INIT_SOLUTION']&&_0x336c50['eventType']!==InternalEventType['CHANGE_CONFIG']||(_0x496ab4['config']=this['_config']),{..._0x496ab4,'appVersion':PACKAGE_VERSION,'appName':PACKAGE_NAME,'sessionId':this['_sessionId'],'component':this['_solution'],'activity':this['_activity'],'projectPubkey':this['_config']['pubkey'],'userAgent':navigator['userAgent'],'eventType':_0x496ab4['eventType']??'','eventTimestamp':this['_timestamp'],'payload':{'location':this['_location'],..._0x2fbb17}};}['_excludedEvents'](_0x23f9a4){return!(!_0x23f9a4||![EventType['CHANGE'],EventType['COMMON_UPLOAD_PROGRESS'],EventType['FILE_ADDED'],EventType['FILE_REMOVED'],EventType['FILE_UPLOAD_START'],EventType['FILE_UPLOAD_PROGRESS'],EventType['FILE_UPLOAD_SUCCESS'],EventType['FILE_UPLOAD_FAILED']]['includes'](_0x23f9a4));}['sendEvent'](_0x52c415){const _0x1cae3f=this['_formattingPayload']({'eventType':_0x52c415['eventType'],'payload':_0x52c415['payload'],'config':_0x52c415['config']});this['_init'](_0x52c415['eventType']);if(this['_excludedEvents'](_0x52c415['eventType']))return;this['_lastPayload']&&this['_checkObj'](this['_lastPayload'],_0x1cae3f)||this['_queue']['add'](async()=>{this['_lastPayload']=_0x1cae3f,await this['_telemetryInstance']['sendEvent'](_0x1cae3f);});}['sendEventError'](_0x39629c,_0x4b5b94='unknown'){this['sendEvent']({'eventType':InternalEventType['ERROR_EVENT'],'payload':{'metadata':{'event':'error','text':'Error\x20in\x20'+_0x4b5b94,'error':_0x39629c['message']}}});}['sendEventCloudImageEditor'](_0x48160c,_0x21c432,_0x4eda69={}){this['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'tabId':_0x21c432,'node':_0x48160c['currentTarget']?.['tagName'],'event':_0x48160c['type'],..._0x4eda69}}});}['_checkObj'](_0x371218,_0x19f4e9){if(JSON['stringify'](_0x371218)===JSON['stringify'](_0x19f4e9))return!0x0;if('object'!=typeof _0x371218||'object'!=typeof _0x19f4e9||null==_0x371218||null==_0x19f4e9)return!0x1;const _0x42d95f=Object['keys'](_0x371218),_0x2dba30=Object['keys'](_0x19f4e9);if(_0x42d95f['length']!==_0x2dba30['length'])return!0x1;for(const _0xb55b7 of _0x42d95f){if(!Object['hasOwn'](_0x19f4e9,_0xb55b7))return!0x1;if(!this['_checkObj'](_0x371218[_0xb55b7],_0x19f4e9[_0xb55b7]))return!0x1;}return!0x0;}get['_timestamp'](){return Date['now']();}get['_solution'](){if(!this['_block']['has']('*solution'))return null;const _0x6813c5=this['_block']['$']['*solution'];return _0x6813c5?_0x6813c5['toLowerCase']():null;}get['_activity'](){return this['_block']['has']('*currentActivity')?this['_block']['$']['*currentActivity']??null:null;}get['_location'](){return location['origin'];}},sharedConfigKey=_0x479c39=>'*cfg/'+_0x479c39;function testModeProcessor(_0x5b6aab,_0x3ef99b){const _0x3d22e4=_0x5b6aab['querySelectorAll']('[data-testid]');if(0x0===_0x3d22e4['length'])return;const _0x41f860=new WeakMap();for(const _0x5bfbe5 of _0x3d22e4){const _0x379a1e=_0x5bfbe5['getAttribute']('data-testid');_0x379a1e&&_0x41f860['set'](_0x5bfbe5,_0x379a1e);}_0x3ef99b['subConfigValue']('testMode',_0x2bedfd=>{if(!_0x2bedfd){for(const _0x1185a5 of _0x3d22e4)_0x1185a5['removeAttribute']('data-testid');return;}const _0xb07d7f=_0x3ef99b['testId'];for(const _0x1873fd of _0x3d22e4){const _0x13e637=_0x41f860['get'](_0x1873fd);_0x13e637&&_0x1873fd['setAttribute']('data-testid',_0xb07d7f+'--'+_0x13e637);}});}var TAG_PREFIX='uc-',Block=class extends BaseComponent{['__cfgProxy'];['l10nProcessorSubs']=new Map();static ['StateConsumerScope']=null;static ['styleAttrs']=[];['requireCtxName']=!0x1;['activityType']=null;['init$']=blockCtx();['l10n'](_0x57fad3,_0x2705d9={}){if(!_0x57fad3)return'';const _0x3a391c=this['$'][localeStateKey(_0x57fad3)]||_0x57fad3,_0x566e15=getPluralObjects(_0x3a391c);for(const _0x2226a6 of _0x566e15)_0x2705d9[_0x2226a6['variable']]=this['pluralize'](_0x2226a6['pluralKey'],Number(_0x2705d9[_0x2226a6['countVariable']]));return applyTemplateData(_0x3a391c,_0x2705d9);}['pluralize'](_0xa090f6,_0x31c7b2){const _0xac21bf=this['l10n']('locale-id')||'en',_0x5aa95=getPluralForm(_0xac21bf,_0x31c7b2);return this['l10n'](_0xa090f6+'__'+_0x5aa95);}['bindL10n'](_0x103462,_0x55c08c){this['localeManager']?.['bindL10n'](this,_0x103462,_0x55c08c);}constructor(){super(),this['addTemplateProcessor'](l10nProcessor),this['addTemplateProcessor'](testModeProcessor);}['emit'](_0xbe98d6,_0x24b3bd,_0x576aa4){const _0x51a0e2=this['has']('*eventEmitter')?this['$']['*eventEmitter']:void 0x0;_0x51a0e2&&(_0x51a0e2['emit'](_0xbe98d6,_0x24b3bd,_0x576aa4),this['telemetryManager']['sendEvent']({'eventType':_0xbe98d6,'payload':'function'==typeof _0x24b3bd?_0x24b3bd():_0x24b3bd}));}['hasBlockInCtx'](_0x4f2cdd){for(const _0x4f438c of this['blocksRegistry'])if(_0x4f2cdd(_0x4f438c))return!0x0;return!0x1;}['setOrAddState'](_0x2e379a,_0x5bd544){this['add$']({[_0x2e379a]:_0x5bd544},!0x0);}['connectedCallback'](){this['constructor']['styleAttrs']['forEach'](_0x474e8b=>{this['setAttribute'](_0x474e8b,'');}),this['hasAttribute']('retpl')&&(this['constructor']['template']=null,this['processInnerHtml']=!0x0),this['requireCtxName']?waitForAttribute({'element':this,'attribute':'ctx-name','onSuccess':()=>{super['connectedCallback']();},'onTimeout':()=>{console['error']('Attribute\x20`ctx-name`\x20is\x20required\x20and\x20it\x20is\x20not\x20set.');}}):super['connectedCallback'](),WindowHeightTracker['registerClient'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),WindowHeightTracker['unregisterClient'](this);}['initCallback'](){this['has']('*blocksRegistry')||this['add']('*blocksRegistry',new Set()),(this['$']['*blocksRegistry']['add'](this),this['has']('*eventEmitter')||this['add']('*eventEmitter',new EventEmitter(this['debugPrint']['bind'](this))),this['has']('*localeManager')||this['add']('*localeManager',new LocaleManager(this)),this['cfg']['qualityInsights']&&!this['has']('*telemetryManager')&&this['add']('*telemetryManager',new TelemetryManager(this)),this['has']('*a11y')||this['add']('*a11y',new A11y()),this['has']('*modalManager')||this['add']('*modalManager',new ModalManager(this)),this['sub'](localeStateKey('locale-id'),_0x4fb724=>{const _0x3a83db=getLocaleDirection(_0x4fb724);this['style']['direction']='ltr'===_0x3a83db?'':_0x3a83db;}),this['subConfigValue']('testMode',_0x435527=>{_0x435527&&this['testId']?this['setAttribute']('data-testid',this['testId']):this['removeAttribute']('data-testid');}));}get['testId'](){return window['customElements']['getName'](this['constructor']);}get['modalManager'](){return this['has']('*modalManager')?this['$']['*modalManager']:void 0x0;}get['telemetryManager'](){return this['cfg']['qualityInsights']?this['has']('*telemetryManager')&&this['$']['*telemetryManager']:{'sendEvent':()=>{},'sendEventCloudImageEditor':()=>{},'sendEventError':()=>{}};}get['localeManager'](){return this['has']('*localeManager')?this['$']['*localeManager']:null;}get['a11y'](){return this['has']('*a11y')?this['$']['*a11y']:null;}get['blocksRegistry'](){return this['$']['*blocksRegistry'];}['destroyCallback'](){super['destroyCallback']();const _0x335f37=this['blocksRegistry'];_0x335f37?.['delete'](this),this['localeManager']?.['destroyL10nBindings'](this),this['l10nProcessorSubs']=new Map(),Data['deleteCtx'](this),0x0===_0x335f37?.['size']&&setTimeout(()=>{this['destroyCtxCallback']();},0x0);}['destroyCtxCallback'](){Data['deleteCtx'](this['ctxName']),this['localeManager']?.['destroy'](),this['modalManager']?.['destroy']();}async['proxyUrl'](_0x321d45){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'](_0x321d45,{'uuid':extractUuid(_0x321d45),'cdnUrlModifiers':extractCdnUrlModifiers(_0x321d45),'fileName':extractFilename(_0x321d45)});}catch(_0xb60b1c){return console['error']('Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.',_0xb60b1c),this['telemetryManager']['sendEventError'](_0xb60b1c,'secureDeliveryProxyUrlResolver.\x20Failed\x20to\x20resolve\x20secure\x20delivery\x20proxy\x20URL.\x20Falling\x20back\x20to\x20the\x20default\x20URL.'),_0x321d45;}return this['cfg']['secureDeliveryProxy']?applyTemplateData(this['cfg']['secureDeliveryProxy'],{'previewUrl':_0x321d45},{'transform':_0xca0828=>window['encodeURIComponent'](_0xca0828)}):_0x321d45;}get['cfg'](){if(!this['__cfgProxy']){const _0x26ac56=Object['create'](null);this['__cfgProxy']=new Proxy(_0x26ac56,{'set':(_0x1dc5f3,_0xcc5fe1,_0x1e38f0)=>{if('string'!=typeof _0xcc5fe1)return!0x1;const _0x3b1fad=sharedConfigKey(_0xcc5fe1);return this['has'](_0x3b1fad)||this['add'](_0x3b1fad,initialConfig[_0xcc5fe1]),this['$'][_0x3b1fad]=_0x1e38f0,!0x0;},'get':(_0x505b1e,_0x5a0b10)=>{const _0x5be5c5=sharedConfigKey(_0x5a0b10);return this['has'](_0x5be5c5)||this['add'](_0x5be5c5,initialConfig[_0x5a0b10]),this['$'][sharedConfigKey(_0x5a0b10)];}});}return this['__cfgProxy'];}['subConfigValue'](_0x195609,_0x437362){const _0x13ab93=sharedConfigKey(_0x195609);this['has'](_0x13ab93)||this['add'](_0x13ab93,initialConfig[_0x195609]),this['sub'](_0x13ab93,_0x437362);}['debugPrint'](..._0x24697e){if(!this['cfg']['debug'])return;let _0x465c0b=_0x24697e;'function'==typeof _0x24697e?.[0x0]&&(_0x465c0b=(0x0,_0x24697e[0x0])()),console['log']('['+this['ctxName']+']',..._0x465c0b);}static['reg'](_0x269573){_0x269573?_0x269573['startsWith'](TAG_PREFIX)&&super['reg'](_0x269573):super['reg']();}},ACTIVE_ATTR='active',ACTIVE_PROP='___ACTIVITY_IS_ACTIVE___',ActivityBlock=class e extends Block{['historyTracked']=!0x1;[ACTIVE_PROP];['init$']=activityBlockCtx(this);['_debouncedHistoryFlush']=debounce(this['_historyFlush']['bind'](this),0xa);['_deactivate'](){const _0x1105c3=e['_activityCallbacks']['get'](this);this[ACTIVE_PROP]=!0x1,this['removeAttribute'](ACTIVE_ATTR),_0x1105c3?.['deactivateCallback']?.();}['_activate'](){const _0x12dec1=e['_activityCallbacks']['get'](this);this['$']['*historyBack']=this['historyBack']['bind'](this),this[ACTIVE_PROP]=!0x0,this['setAttribute'](ACTIVE_ATTR,''),_0x12dec1?.['activateCallback']?.(),this['_debouncedHistoryFlush'](),this['emit'](EventType['ACTIVITY_CHANGE'],{'activity':this['activityType']});}['initCallback'](){super['initCallback'](),this['activityType']&&(this['hasAttribute']('activity')||this['setAttribute']('activity',this['activityType']),this['sub']('*currentActivity',_0x1e448f=>{try{this['activityType']!==_0x1e448f&&this[ACTIVE_PROP]?this['_deactivate']():this['activityType']!==_0x1e448f||this[ACTIVE_PROP]||this['_activate']();}catch(_0x63bd6b){this['telemetryManager']['sendEventError'](_0x63bd6b,'activity\x20\x22'+this['activityType']+'\x22'),console['error']('Error\x20in\x20activity\x20\x22'+this['activityType']+'\x22.\x20',_0x63bd6b),this['$']['*currentActivity']=this['$']['*history'][this['$']['*history']['length']-0x1]??null;}_0x1e448f||(this['$']['*history']=[]);}));}['_historyFlush'](){let _0x12c7d4=this['$']['*history'];_0x12c7d4&&(_0x12c7d4['length']>0xa&&(_0x12c7d4=_0x12c7d4['slice'](_0x12c7d4['length']-0xb,_0x12c7d4['length']-0x1)),this['historyTracked']&&_0x12c7d4[_0x12c7d4['length']-0x1]!==this['activityType']&&_0x12c7d4['push'](this['activityType']),this['$']['*history']=_0x12c7d4);}['_isActivityRegistered'](){return!!this['activityType']&&e['_activityCallbacks']['has'](this);}static ['_activityCallbacks']=new Map();static ['activities'];get['isActivityActive'](){return!!this[ACTIVE_PROP];}get['couldOpenActivity'](){return!0x0;}['registerActivity'](_0x2def28,_0x536419={}){const {onActivate:_0x590843,onDeactivate:_0x5b382d}=_0x536419;e['_activityCallbacks']['set'](this,{'activateCallback':_0x590843,'deactivateCallback':_0x5b382d});}['unregisterActivity'](){this['isActivityActive']&&this['_deactivate'](),e['_activityCallbacks']['delete'](this);}['destroyCallback'](){super['destroyCallback'](),this['_isActivityRegistered']()&&this['unregisterActivity']();const _0x3c35da=this['$']['*currentActivity'];!![...this['blocksRegistry']]['find'](_0x2d3f62=>_0x2d3f62 instanceof e&&_0x2d3f62['activityType']===_0x3c35da)||(this['$']['*currentActivity']=null,this['modalManager']?.['closeAll']());}get['activityKey'](){return this['ctxName']+this['activityType'];}get['activityParams'](){return this['$']['*currentActivityParams'];}get['initActivity'](){return this['getCssData']('--cfg-init-activity');}get['doneActivity'](){return this['getCssData']('--cfg-done-activity');}['historyBack'](){const _0x919752=this['$']['*history'];if(_0x919752){let _0xf38c6f=_0x919752['pop']();for(;_0xf38c6f===this['activityType'];)_0xf38c6f=_0x919752['pop']();let _0x12cd8b=!!_0xf38c6f;if(_0xf38c6f){const _0x3a2e78=[...this['blocksRegistry']]['find'](_0xd29c16=>_0xd29c16['activityType']===_0xf38c6f);_0x12cd8b=_0x3a2e78?.['couldOpenActivity']??!0x1;}_0xf38c6f=_0x12cd8b?_0xf38c6f:void 0x0,_0xf38c6f&&this['modalManager']?.['open'](_0xf38c6f),this['$']['*currentActivity']=_0xf38c6f,this['$']['*history']=_0x919752,_0xf38c6f||this['modalManager']?.['closeAll']();}}};function defineComponents(_0x97c3b5){for(const _0x590a84 in _0x97c3b5){let _0x5d78ae=[..._0x590a84]['reduce']((_0x4f6441,_0x3ac7d6)=>(_0x3ac7d6['toUpperCase']()===_0x3ac7d6&&(_0x3ac7d6='-'+_0x3ac7d6['toLowerCase']()),_0x4f6441+=_0x3ac7d6),'');_0x5d78ae['startsWith']('-')&&(_0x5d78ae=_0x5d78ae['replace']('-','')),_0x5d78ae['startsWith']('uc-')||(_0x5d78ae='uc-'+_0x5d78ae),_0x97c3b5[_0x590a84]['reg']&&_0x97c3b5[_0x590a84]['reg'](_0x5d78ae);}}ActivityBlock['activities']=Object['freeze']({'START_FROM':'start-from','CAMERA':'camera','DRAW':'draw','UPLOAD_LIST':'upload-list','URL':'url','CLOUD_IMG_EDIT':'cloud-image-edit','EXTERNAL':'external'});var UC_WINDOW_KEY='UC';function loadFileUploaderFrom(_0x55a6f8,_0x1606dd=!0x1){return new Promise((_0x6b94ef,_0x2a0dd9)=>{if('object'!=typeof document)return void _0x6b94ef(null);if('object'==typeof window&&window[UC_WINDOW_KEY])return void _0x6b94ef(window[UC_WINDOW_KEY]);const _0x2b15a1=document['createElement']('script');_0x2b15a1['async']=!0x0,_0x2b15a1['src']=_0x55a6f8,_0x2b15a1['onerror']=()=>{_0x2a0dd9();},_0x2b15a1['onload']=()=>{const _0x345450=window[UC_WINDOW_KEY];_0x1606dd&&defineComponents(_0x345450),_0x6b94ef(_0x345450);},document['head']['appendChild'](_0x2b15a1);});}var svg_sprite_default='<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>',SolutionBlock=class extends Block{static ['styleAttrs']=['uc-wgt-common'];['requireCtxName']=!0x0;['init$']=solutionBlockCtx(this);static ['_template']='';['initCallback'](){super['initCallback'](),this['a11y']?.['registerBlock'](this);}static set['template'](_0x2ec86){this['_template']=svg_sprite_default+_0x2ec86+'<slot></slot>';}static get['template'](){return this['_template'];}},CROP_PADDING=0x14,THUMB_CORNER_SIZE=0x18,THUMB_SIDE_SIZE=0x22,THUMB_STROKE_WIDTH=0x3,THUMB_OFFSET=THUMB_STROKE_WIDTH/0x2,GUIDE_STROKE_WIDTH=0x1,GUIDE_THIRD=0x64/0x3,MIN_CROP_SIZE=0x1,MAX_INTERACTION_SIZE=0x18,MIN_INTERACTION_SIZE=0x6;function setSvgNodeAttrs(_0x240313,_0x5e4280){for(const [_0x397e63,_0x13334f]of Object['entries'](_0x5e4280))_0x240313['setAttributeNS'](null,_0x397e63,_0x13334f['toString']());}function createSvgNode(_0x361d52,_0x281f5d={}){const _0x39d9b8=document['createElementNS']('http://www.w3.org/2000/svg',_0x361d52);return setSvgNodeAttrs(_0x39d9b8,_0x281f5d),_0x39d9b8;}function cornerPath(_0x2a993e,_0x217cfe,_0x21cc45){const {x:_0x1874a1,y:_0x36dbf6,width:_0x4fe27e,height:_0x2194f4}=_0x2a993e,_0x12af01=_0x217cfe['includes']('w')?0x0:0x1,_0x583251=_0x217cfe['includes']('n')?0x0:0x1,_0x2f8286=0x0===_0x12af01?-0x1:0x1,_0x33d636=0x0===_0x583251?-0x1:0x1,_0x3e2fe2=[_0x1874a1+_0x12af01*_0x4fe27e+THUMB_OFFSET*_0x2f8286,_0x36dbf6+_0x583251*_0x2194f4+THUMB_OFFSET*_0x33d636-THUMB_CORNER_SIZE*_0x21cc45*_0x33d636],_0x5241ff=[_0x1874a1+_0x12af01*_0x4fe27e+THUMB_OFFSET*_0x2f8286,_0x36dbf6+_0x583251*_0x2194f4+THUMB_OFFSET*_0x33d636],_0x1bf37c=[_0x1874a1+_0x12af01*_0x4fe27e-THUMB_CORNER_SIZE*_0x21cc45*_0x2f8286+THUMB_OFFSET*_0x2f8286,_0x36dbf6+_0x583251*_0x2194f4+THUMB_OFFSET*_0x33d636];return{'d':'M\x20'+_0x3e2fe2[0x0]+'\x20'+_0x3e2fe2[0x1]+'\x20L\x20'+_0x5241ff[0x0]+'\x20'+_0x5241ff[0x1]+'\x20L\x20'+_0x1bf37c[0x0]+'\x20'+_0x1bf37c[0x1],'center':[_0x5241ff[0x0],_0x5241ff[0x1]]};}function sidePath(_0x283d8e,_0x2283d5,_0x5eebd5){const {x:_0x33bbd4,y:_0x3f5d75,width:_0x5ec445,height:_0xfc1d03}=_0x283d8e,_0x4bd31e='n'===_0x2283d5||'s'===_0x2283d5,_0xa951cf=_0x4bd31e?0.5:'w'===_0x2283d5?0x0:0x1,_0xee4217='w'===_0x2283d5||'e'===_0x2283d5?0.5:'n'===_0x2283d5?0x0:0x1,_0x429242='w'===_0x2283d5?-0x1:'e'===_0x2283d5?0x1:0x0,_0x118dd1='n'===_0x2283d5?-0x1:'s'===_0x2283d5?0x1:0x0;let _0x38fee3,_0xe87433;return _0x4bd31e?(_0x38fee3=[_0x33bbd4+_0xa951cf*_0x5ec445-THUMB_SIDE_SIZE*_0x5eebd5/0x2,_0x3f5d75+_0xee4217*_0xfc1d03+THUMB_OFFSET*_0x118dd1],_0xe87433=[_0x33bbd4+_0xa951cf*_0x5ec445+THUMB_SIDE_SIZE*_0x5eebd5/0x2,_0x3f5d75+_0xee4217*_0xfc1d03+THUMB_OFFSET*_0x118dd1]):(_0x38fee3=[_0x33bbd4+_0xa951cf*_0x5ec445+THUMB_OFFSET*_0x429242,_0x3f5d75+_0xee4217*_0xfc1d03-THUMB_SIDE_SIZE*_0x5eebd5/0x2],_0xe87433=[_0x33bbd4+_0xa951cf*_0x5ec445+THUMB_OFFSET*_0x429242,_0x3f5d75+_0xee4217*_0xfc1d03+THUMB_SIDE_SIZE*_0x5eebd5/0x2]),{'d':'M\x20'+_0x38fee3[0x0]+'\x20'+_0x38fee3[0x1]+'\x20L\x20'+_0xe87433[0x0]+'\x20'+_0xe87433[0x1],'center':[(_0x38fee3[0x0]+_0xe87433[0x0])/0x2,(_0x38fee3[0x1]+_0xe87433[0x1])/0x2]};}function thumbCursor(_0x1b0977){return''===_0x1b0977?'move':['e','w']['includes'](_0x1b0977)?'ew-resize':['n','s']['includes'](_0x1b0977)?'ns-resize':['nw','se']['includes'](_0x1b0977)?'nwse-resize':'nesw-resize';}function moveRect({rect:_0xd729d,delta:[_0x2f2cbf,_0x5d0394],imageBox:_0x4b6f33}){return constraintRect({..._0xd729d,'x':_0xd729d['x']+_0x2f2cbf,'y':_0xd729d['y']+_0x5d0394},_0x4b6f33);}function constraintRect(_0x14cbb4,_0x148961){let {x:_0x2f48b8}=_0x14cbb4,{y:_0x1d3aba}=_0x14cbb4;return _0x14cbb4['x']<_0x148961['x']?_0x2f48b8=_0x148961['x']:_0x14cbb4['x']+_0x14cbb4['width']>_0x148961['x']+_0x148961['width']&&(_0x2f48b8=_0x148961['x']+_0x148961['width']-_0x14cbb4['width']),_0x14cbb4['y']<_0x148961['y']?_0x1d3aba=_0x148961['y']:_0x14cbb4['y']+_0x14cbb4['height']>_0x148961['y']+_0x148961['height']&&(_0x1d3aba=_0x148961['y']+_0x148961['height']-_0x14cbb4['height']),{..._0x14cbb4,'x':_0x2f48b8,'y':_0x1d3aba};}function resizeNorth({rect:_0x2d6da9,delta:_0x3e1a88,aspectRatio:_0x31ebd8,imageBox:_0x18bb65}){const [,_0x2fc1c7]=_0x3e1a88;let {y:_0x187fe9,width:_0x5204bc,height:_0x11b043}=_0x2d6da9;_0x187fe9+=_0x2fc1c7,_0x11b043-=_0x2fc1c7,_0x31ebd8&&(_0x5204bc=_0x11b043*_0x31ebd8);let _0x5782de=_0x2d6da9['x']+_0x2d6da9['width']/0x2-_0x5204bc/0x2;return _0x187fe9<=_0x18bb65['y']&&(_0x187fe9=_0x18bb65['y'],_0x11b043=_0x2d6da9['y']+_0x2d6da9['height']-_0x187fe9,_0x31ebd8&&(_0x5204bc=_0x11b043*_0x31ebd8,_0x5782de=_0x2d6da9['x']+_0x2d6da9['width']/0x2-_0x5204bc/0x2)),_0x5782de<=_0x18bb65['x']&&(_0x5782de=_0x18bb65['x'],_0x187fe9=_0x2d6da9['y']+_0x2d6da9['height']-_0x11b043),_0x5782de+_0x5204bc>=_0x18bb65['x']+_0x18bb65['width']&&(_0x5782de=Math['max'](_0x18bb65['x'],_0x18bb65['x']+_0x18bb65['width']-_0x5204bc),_0x5204bc=_0x18bb65['x']+_0x18bb65['width']-_0x5782de,_0x31ebd8&&(_0x11b043=_0x5204bc/_0x31ebd8),_0x187fe9=_0x2d6da9['y']+_0x2d6da9['height']-_0x11b043),_0x11b043<MIN_CROP_SIZE&&(_0x11b043=MIN_CROP_SIZE,_0x31ebd8&&(_0x5204bc=_0x11b043*_0x31ebd8,_0x5782de=_0x2d6da9['x']+_0x2d6da9['width']/0x2-_0x5204bc/0x2),_0x187fe9=_0x2d6da9['y']+_0x2d6da9['height']-_0x11b043),_0x5204bc<MIN_CROP_SIZE&&(_0x5204bc=MIN_CROP_SIZE,_0x31ebd8&&(_0x11b043=_0x5204bc/_0x31ebd8,_0x5782de=_0x2d6da9['x']+_0x2d6da9['width']/0x2-_0x5204bc/0x2),_0x187fe9=_0x2d6da9['y']+_0x2d6da9['height']-_0x11b043),{'x':_0x5782de,'y':_0x187fe9,'width':_0x5204bc,'height':_0x11b043};}function resizeWest({rect:_0xdea77c,delta:_0x1e3b72,aspectRatio:_0x5b1cb7,imageBox:_0x2f749f}){const [_0x4625cc]=_0x1e3b72;let {x:_0x2c0910,width:_0x192a3a,height:_0x5d5c8d}=_0xdea77c;_0x2c0910+=_0x4625cc,_0x192a3a-=_0x4625cc,_0x5b1cb7&&(_0x5d5c8d=_0x192a3a/_0x5b1cb7);let _0x4e22fa=_0xdea77c['y']+_0xdea77c['height']/0x2-_0x5d5c8d/0x2;return _0x2c0910<=_0x2f749f['x']&&(_0x2c0910=_0x2f749f['x'],_0x192a3a=_0xdea77c['x']+_0xdea77c['width']-_0x2c0910,_0x5b1cb7&&(_0x5d5c8d=_0x192a3a/_0x5b1cb7,_0x4e22fa=_0xdea77c['y']+_0xdea77c['height']/0x2-_0x5d5c8d/0x2)),_0x4e22fa<=_0x2f749f['y']&&(_0x4e22fa=_0x2f749f['y'],_0x2c0910=_0xdea77c['x']+_0xdea77c['width']-_0x192a3a),_0x4e22fa+_0x5d5c8d>=_0x2f749f['y']+_0x2f749f['height']&&(_0x4e22fa=Math['max'](_0x2f749f['y'],_0x2f749f['y']+_0x2f749f['height']-_0x5d5c8d),_0x5d5c8d=_0x2f749f['y']+_0x2f749f['height']-_0x4e22fa,_0x5b1cb7&&(_0x192a3a=_0x5d5c8d*_0x5b1cb7),_0x2c0910=_0xdea77c['x']+_0xdea77c['width']-_0x192a3a),_0x5d5c8d<MIN_CROP_SIZE&&(_0x5d5c8d=MIN_CROP_SIZE,_0x5b1cb7&&(_0x192a3a=_0x5d5c8d*_0x5b1cb7),_0x4e22fa=_0xdea77c['y']+_0xdea77c['height']/0x2-_0x5d5c8d/0x2,_0x2c0910=_0xdea77c['x']+_0xdea77c['width']-_0x192a3a),_0x192a3a<MIN_CROP_SIZE&&(_0x192a3a=MIN_CROP_SIZE,_0x5b1cb7&&(_0x5d5c8d=_0x192a3a/_0x5b1cb7),_0x4e22fa=_0xdea77c['y']+_0xdea77c['height']/0x2-_0x5d5c8d/0x2,_0x2c0910=_0xdea77c['x']+_0xdea77c['width']-_0x192a3a),{'x':_0x2c0910,'y':_0x4e22fa,'width':_0x192a3a,'height':_0x5d5c8d};}function resizeSouth({rect:_0x557d77,delta:_0x49d0de,aspectRatio:_0x2b39f7,imageBox:_0x563c3e}){const [,_0x506f60]=_0x49d0de;let {y:_0x21e1a6,width:_0x12003e,height:_0x52aa44}=_0x557d77;_0x52aa44+=_0x506f60,_0x2b39f7&&(_0x12003e=_0x52aa44*_0x2b39f7);let _0x29d78d=_0x557d77['x']+_0x557d77['width']/0x2-_0x12003e/0x2;return _0x21e1a6+_0x52aa44>=_0x563c3e['y']+_0x563c3e['height']&&(_0x52aa44=_0x563c3e['y']+_0x563c3e['height']-_0x21e1a6,_0x2b39f7&&(_0x12003e=_0x52aa44*_0x2b39f7),_0x29d78d=_0x557d77['x']+_0x557d77['width']/0x2-_0x12003e/0x2),_0x29d78d<=_0x563c3e['x']&&(_0x29d78d=_0x563c3e['x'],_0x21e1a6=_0x557d77['y']),_0x29d78d+_0x12003e>=_0x563c3e['x']+_0x563c3e['width']&&(_0x29d78d=Math['max'](_0x563c3e['x'],_0x563c3e['x']+_0x563c3e['width']-_0x12003e),_0x12003e=_0x563c3e['x']+_0x563c3e['width']-_0x29d78d,_0x2b39f7&&(_0x52aa44=_0x12003e/_0x2b39f7),_0x21e1a6=_0x557d77['y']),_0x52aa44<MIN_CROP_SIZE&&(_0x52aa44=MIN_CROP_SIZE,_0x2b39f7&&(_0x12003e=_0x52aa44*_0x2b39f7),_0x29d78d=_0x557d77['x']+_0x557d77['width']/0x2-_0x12003e/0x2),_0x12003e<MIN_CROP_SIZE&&(_0x12003e=MIN_CROP_SIZE,_0x2b39f7&&(_0x52aa44=_0x12003e/_0x2b39f7),_0x29d78d=_0x557d77['x']+_0x557d77['width']/0x2-_0x12003e/0x2),{'x':_0x29d78d,'y':_0x21e1a6,'width':_0x12003e,'height':_0x52aa44};}function resizeEast({rect:_0x2be707,delta:_0xc29b56,aspectRatio:_0x28e80a,imageBox:_0x726184}){const [_0x46d9c8]=_0xc29b56;let {x:_0x1e3777,width:_0x324145,height:_0x44b1cb}=_0x2be707;_0x324145+=_0x46d9c8,_0x28e80a&&(_0x44b1cb=_0x324145/_0x28e80a);let _0x5f2993=_0x2be707['y']+_0x2be707['height']/0x2-_0x44b1cb/0x2;return _0x1e3777+_0x324145>=_0x726184['x']+_0x726184['width']&&(_0x324145=_0x726184['x']+_0x726184['width']-_0x1e3777,_0x28e80a&&(_0x44b1cb=_0x324145/_0x28e80a),_0x5f2993=_0x2be707['y']+_0x2be707['height']/0x2-_0x44b1cb/0x2),_0x5f2993<=_0x726184['y']&&(_0x5f2993=_0x726184['y'],_0x1e3777=_0x2be707['x']),_0x5f2993+_0x44b1cb>=_0x726184['y']+_0x726184['height']&&(_0x5f2993=Math['max'](_0x726184['y'],_0x726184['y']+_0x726184['height']-_0x44b1cb),_0x44b1cb=_0x726184['y']+_0x726184['height']-_0x5f2993,_0x28e80a&&(_0x324145=_0x44b1cb*_0x28e80a),_0x1e3777=_0x2be707['x']),_0x44b1cb<MIN_CROP_SIZE&&(_0x44b1cb=MIN_CROP_SIZE,_0x28e80a&&(_0x324145=_0x44b1cb*_0x28e80a),_0x5f2993=_0x2be707['y']+_0x2be707['height']/0x2-_0x44b1cb/0x2),_0x324145<MIN_CROP_SIZE&&(_0x324145=MIN_CROP_SIZE,_0x28e80a&&(_0x44b1cb=_0x324145/_0x28e80a),_0x5f2993=_0x2be707['y']+_0x2be707['height']/0x2-_0x44b1cb/0x2),{'x':_0x1e3777,'y':_0x5f2993,'width':_0x324145,'height':_0x44b1cb};}function resizeNorthWest({rect:_0x3960a1,delta:_0x4182f7,aspectRatio:_0x95469,imageBox:_0xa25623}){let [_0xbf5620,_0x150450]=_0x4182f7,{x:_0x3253d6,y:_0x5e040f,width:_0x31d1bd,height:_0x5ae70c}=_0x3960a1;return _0x3253d6+_0xbf5620<_0xa25623['x']&&(_0xbf5620=_0xa25623['x']-_0x3253d6),_0x5e040f+_0x150450<_0xa25623['y']&&(_0x150450=_0xa25623['y']-_0x5e040f),_0x3253d6+=_0xbf5620,_0x31d1bd-=_0xbf5620,_0x5e040f+=_0x150450,_0x5ae70c-=_0x150450,_0x95469&&Math['abs'](_0x31d1bd/_0x5ae70c)>_0x95469?(_0x150450=_0x31d1bd/_0x95469-_0x5ae70c,_0x5ae70c+=_0x150450,_0x5e040f-=_0x150450,_0x5e040f<=_0xa25623['y']&&(_0x5ae70c-=_0xa25623['y']-_0x5e040f,_0x31d1bd=_0x5ae70c*_0x95469,_0x3253d6=_0x3960a1['x']+_0x3960a1['width']-_0x31d1bd,_0x5e040f=_0xa25623['y'])):_0x95469&&(_0xbf5620=_0x5ae70c*_0x95469-_0x31d1bd,_0x31d1bd+=_0xbf5620,_0x3253d6-=_0xbf5620,_0x3253d6<=_0xa25623['x']&&(_0x31d1bd-=_0xa25623['x']-_0x3253d6,_0x5ae70c=_0x31d1bd/_0x95469,_0x3253d6=_0xa25623['x'],_0x5e040f=_0x3960a1['y']+_0x3960a1['height']-_0x5ae70c)),_0x5ae70c<MIN_CROP_SIZE&&(_0x5ae70c=MIN_CROP_SIZE,_0x95469&&(_0x31d1bd=_0x5ae70c*_0x95469),_0x3253d6=_0x3960a1['x']+_0x3960a1['width']-_0x31d1bd,_0x5e040f=_0x3960a1['y']+_0x3960a1['height']-_0x5ae70c),_0x31d1bd<MIN_CROP_SIZE&&(_0x31d1bd=MIN_CROP_SIZE,_0x95469&&(_0x5ae70c=_0x31d1bd/_0x95469),_0x3253d6=_0x3960a1['x']+_0x3960a1['width']-_0x31d1bd,_0x5e040f=_0x3960a1['y']+_0x3960a1['height']-_0x5ae70c),{'x':_0x3253d6,'y':_0x5e040f,'width':_0x31d1bd,'height':_0x5ae70c};}function resizeNorthEast({rect:_0x485047,delta:_0x123a72,aspectRatio:_0x9b715e,imageBox:_0x427241}){let [_0x505f79,_0xbfd349]=_0x123a72,{x:_0x2c5a67,y:_0x211454,width:_0x4c1a5f,height:_0xe5c1dd}=_0x485047;return _0x2c5a67+_0x4c1a5f+_0x505f79>_0x427241['x']+_0x427241['width']&&(_0x505f79=_0x427241['x']+_0x427241['width']-_0x2c5a67-_0x4c1a5f),_0x211454+_0xbfd349<_0x427241['y']&&(_0xbfd349=_0x427241['y']-_0x211454),_0x4c1a5f+=_0x505f79,_0x211454+=_0xbfd349,_0xe5c1dd-=_0xbfd349,_0x9b715e&&Math['abs'](_0x4c1a5f/_0xe5c1dd)>_0x9b715e?(_0xbfd349=_0x4c1a5f/_0x9b715e-_0xe5c1dd,_0xe5c1dd+=_0xbfd349,_0x211454-=_0xbfd349,_0x211454<=_0x427241['y']&&(_0xe5c1dd-=_0x427241['y']-_0x211454,_0x4c1a5f=_0xe5c1dd*_0x9b715e,_0x2c5a67=_0x485047['x'],_0x211454=_0x427241['y'])):_0x9b715e&&(_0x505f79=_0xe5c1dd*_0x9b715e-_0x4c1a5f,_0x4c1a5f+=_0x505f79,_0x2c5a67+_0x4c1a5f>=_0x427241['x']+_0x427241['width']&&(_0x4c1a5f=_0x427241['x']+_0x427241['width']-_0x2c5a67,_0xe5c1dd=_0x4c1a5f/_0x9b715e,_0x2c5a67=_0x427241['x']+_0x427241['width']-_0x4c1a5f,_0x211454=_0x485047['y']+_0x485047['height']-_0xe5c1dd)),_0xe5c1dd<MIN_CROP_SIZE&&(_0xe5c1dd=MIN_CROP_SIZE,_0x9b715e&&(_0x4c1a5f=_0xe5c1dd*_0x9b715e),_0x211454=_0x485047['y']+_0x485047['height']-_0xe5c1dd),_0x4c1a5f<MIN_CROP_SIZE&&(_0x4c1a5f=MIN_CROP_SIZE,_0x9b715e&&(_0xe5c1dd=_0x4c1a5f/_0x9b715e),_0x211454=_0x485047['y']+_0x485047['height']-_0xe5c1dd),{'x':_0x2c5a67,'y':_0x211454,'width':_0x4c1a5f,'height':_0xe5c1dd};}function resizeSouthWest({rect:_0x2d9175,delta:_0xcb03da,aspectRatio:_0x2b0879,imageBox:_0x1cc844}){let [_0x45598a,_0x282d7e]=_0xcb03da,{x:_0x390ac6,y:_0x1b4434,width:_0x102c72,height:_0x73e717}=_0x2d9175;return _0x390ac6+_0x45598a<_0x1cc844['x']&&(_0x45598a=_0x1cc844['x']-_0x390ac6),_0x1b4434+_0x73e717+_0x282d7e>_0x1cc844['y']+_0x1cc844['height']&&(_0x282d7e=_0x1cc844['y']+_0x1cc844['height']-_0x1b4434-_0x73e717),_0x390ac6+=_0x45598a,_0x102c72-=_0x45598a,_0x73e717+=_0x282d7e,_0x2b0879&&Math['abs'](_0x102c72/_0x73e717)>_0x2b0879?(_0x282d7e=_0x102c72/_0x2b0879-_0x73e717,_0x73e717+=_0x282d7e,_0x1b4434+_0x73e717>=_0x1cc844['y']+_0x1cc844['height']&&(_0x73e717=_0x1cc844['y']+_0x1cc844['height']-_0x1b4434,_0x102c72=_0x73e717*_0x2b0879,_0x390ac6=_0x2d9175['x']+_0x2d9175['width']-_0x102c72,_0x1b4434=_0x1cc844['y']+_0x1cc844['height']-_0x73e717)):_0x2b0879&&(_0x45598a=_0x73e717*_0x2b0879-_0x102c72,_0x102c72+=_0x45598a,_0x390ac6-=_0x45598a,_0x390ac6<=_0x1cc844['x']&&(_0x102c72-=_0x1cc844['x']-_0x390ac6,_0x73e717=_0x102c72/_0x2b0879,_0x390ac6=_0x1cc844['x'],_0x1b4434=_0x2d9175['y'])),_0x73e717<MIN_CROP_SIZE&&(_0x73e717=MIN_CROP_SIZE,_0x2b0879&&(_0x102c72=_0x73e717*_0x2b0879),_0x390ac6=_0x2d9175['x']+_0x2d9175['width']-_0x102c72),_0x102c72<MIN_CROP_SIZE&&(_0x102c72=MIN_CROP_SIZE,_0x2b0879&&(_0x73e717=_0x102c72/_0x2b0879),_0x390ac6=_0x2d9175['x']+_0x2d9175['width']-_0x102c72),{'x':_0x390ac6,'y':_0x1b4434,'width':_0x102c72,'height':_0x73e717};}function resizeSouthEast({rect:_0x513f2d,delta:_0x21546e,aspectRatio:_0x548595,imageBox:_0x4bea5b}){let [_0x132d89,_0x32c191]=_0x21546e,{x:_0x69f32d,y:_0x482285,width:_0x18c991,height:_0x1856aa}=_0x513f2d;return _0x69f32d+_0x18c991+_0x132d89>_0x4bea5b['x']+_0x4bea5b['width']&&(_0x132d89=_0x4bea5b['x']+_0x4bea5b['width']-_0x69f32d-_0x18c991),_0x482285+_0x1856aa+_0x32c191>_0x4bea5b['y']+_0x4bea5b['height']&&(_0x32c191=_0x4bea5b['y']+_0x4bea5b['height']-_0x482285-_0x1856aa),_0x18c991+=_0x132d89,_0x1856aa+=_0x32c191,_0x548595&&Math['abs'](_0x18c991/_0x1856aa)>_0x548595?(_0x32c191=_0x18c991/_0x548595-_0x1856aa,_0x1856aa+=_0x32c191,_0x482285+_0x1856aa>=_0x4bea5b['y']+_0x4bea5b['height']&&(_0x1856aa=_0x4bea5b['y']+_0x4bea5b['height']-_0x482285,_0x18c991=_0x1856aa*_0x548595,_0x69f32d=_0x513f2d['x'],_0x482285=_0x4bea5b['y']+_0x4bea5b['height']-_0x1856aa)):_0x548595&&(_0x132d89=_0x1856aa*_0x548595-_0x18c991,_0x18c991+=_0x132d89,_0x69f32d+_0x18c991>=_0x4bea5b['x']+_0x4bea5b['width']&&(_0x18c991=_0x4bea5b['x']+_0x4bea5b['width']-_0x69f32d,_0x1856aa=_0x18c991/_0x548595,_0x69f32d=_0x4bea5b['x']+_0x4bea5b['width']-_0x18c991,_0x482285=_0x513f2d['y'])),_0x1856aa<MIN_CROP_SIZE&&(_0x1856aa=MIN_CROP_SIZE,_0x548595&&(_0x18c991=_0x1856aa*_0x548595)),_0x18c991<MIN_CROP_SIZE&&(_0x18c991=MIN_CROP_SIZE,_0x548595&&(_0x1856aa=_0x18c991/_0x548595)),{'x':_0x69f32d,'y':_0x482285,'width':_0x18c991,'height':_0x1856aa};}function resizeRect({direction:_0x105785,..._0x212081}){switch(_0x105785){case'n':return resizeNorth(_0x212081);case'w':return resizeWest(_0x212081);case's':return resizeSouth(_0x212081);case'e':return resizeEast(_0x212081);case'nw':return resizeNorthWest(_0x212081);case'ne':return resizeNorthEast(_0x212081);case'sw':return resizeSouthWest(_0x212081);case'se':return resizeSouthEast(_0x212081);default:return _0x212081['rect'];}}function rectContainsPoint(_0x3992d0,[_0x46a7fb,_0x4be763]){return _0x3992d0['x']<=_0x46a7fb&&_0x46a7fb<=_0x3992d0['x']+_0x3992d0['width']&&_0x3992d0['y']<=_0x4be763&&_0x4be763<=_0x3992d0['y']+_0x3992d0['height'];}function isRectInsideRect(_0x5432b0,_0x158f5b){return _0x5432b0['x']>=_0x158f5b['x']&&_0x5432b0['y']>=_0x158f5b['y']&&_0x5432b0['x']+_0x5432b0['width']<=_0x158f5b['x']+_0x158f5b['width']&&_0x5432b0['y']+_0x5432b0['height']<=_0x158f5b['y']+_0x158f5b['height'];}function isRectMatchesAspectRatio(_0x296fa4,_0x33ffc1){return Math['abs'](_0x296fa4['width']/_0x296fa4['height']-_0x33ffc1)<0.1;}function rotateSize({width:_0x226728,height:_0x514010},_0x3d2656){const _0x28b715=_0x3d2656/0x5a%0x2!=0x0;return{'width':_0x28b715?_0x514010:_0x226728,'height':_0x28b715?_0x226728:_0x514010};}function calculateMaxCenteredCropFrame(_0x3917d3,_0x15b700,_0x38040d){let _0x1ec280,_0xef7021;_0x3917d3/_0x15b700>_0x38040d?(_0x1ec280=Math['round'](_0x15b700*_0x38040d),_0xef7021=_0x15b700):(_0x1ec280=_0x3917d3,_0xef7021=Math['round'](_0x3917d3/_0x38040d));const _0x213e91=Math['round']((_0x3917d3-_0x1ec280)/0x2),_0x20fc9f=Math['round']((_0x15b700-_0xef7021)/0x2);return _0x213e91+_0x1ec280>_0x3917d3&&(_0x1ec280=_0x3917d3-_0x213e91),_0x20fc9f+_0xef7021>_0x15b700&&(_0xef7021=_0x15b700-_0x20fc9f),{'x':_0x213e91,'y':_0x20fc9f,'width':_0x1ec280,'height':_0xef7021};}function roundRect(_0x3353fe){return{'x':Math['round'](_0x3353fe['x']),'y':Math['round'](_0x3353fe['y']),'width':Math['round'](_0x3353fe['width']),'height':Math['round'](_0x3353fe['height'])};}function clamp(_0x50335d,_0x3d5ba4,_0x4b541d){return Math['min'](Math['max'](_0x50335d,_0x3d5ba4),_0x4b541d);}var EXCLUDED_TYPES=['free'],parseCropPreset=_0x3c9f3a=>{const _0x5a9a71=stringToArray(_0x3c9f3a);if(!_0x5a9a71||0x0===_0x5a9a71['length'])return[];const _0x1f5ccc=[];for(const _0x3b8002 of _0x5a9a71){const _0x9f41b=_0x3b8002['trim']();if(!_0x9f41b)continue;const _0x11165d=_0x9f41b['indexOf'](':');if(-0x1===_0x11165d&&!EXCLUDED_TYPES['includes'](_0x9f41b)){console['warn']('Invalid\x20crop\x20preset:\x20'+_0x9f41b);continue;}const _0x4afead=Number(_0x9f41b['slice'](0x0,_0x11165d)),_0x343c10=Number(_0x9f41b['slice'](_0x11165d+0x1));!(!Number['isFinite'](_0x4afead)||!Number['isFinite'](_0x343c10)||_0x4afead<=0x0||_0x343c10<=0x0)||EXCLUDED_TYPES['includes'](_0x9f41b)?_0x1f5ccc['push']({'id':UID['generate'](),'type':'aspect-ratio','width':EXCLUDED_TYPES['includes'](_0x9f41b)?0x0:_0x4afead,'height':EXCLUDED_TYPES['includes'](_0x9f41b)?0x0:_0x343c10,'hasFreeform':EXCLUDED_TYPES['includes'](_0x9f41b)}):console['warn']('Invalid\x20crop\x20preset:\x20'+_0x9f41b);}return _0x1f5ccc;},getClosestAspectRatio=(_0x5a633d,_0x4582ff,_0x36b9f4,_0x427c0f=0.1)=>{const _0x118a2c=_0x5a633d/_0x4582ff;let _0x3dcf7b=null,_0x9e9b3d=0x1/0x0;for(const _0x4bcce7 of _0x36b9f4){const [_0x498044,_0x40724f]=[_0x4bcce7['width'],_0x4bcce7['height']],_0x140f32=_0x498044/_0x40724f,_0x3d5651=Math['abs'](_0x118a2c-_0x140f32);_0x3d5651<_0x9e9b3d&&(_0x9e9b3d=_0x3d5651,_0x3dcf7b=_0x4bcce7);}if(_0x3dcf7b){const [_0x3036d5,_0x4e4a5f]=[_0x3dcf7b['width'],_0x3dcf7b['height']],_0xc7a6fa=_0x3036d5/_0x4e4a5f;if(Math['abs'](_0x118a2c-_0xc7a6fa)/_0xc7a6fa>_0x427c0f)return null;}return _0x3dcf7b;},ExternalUploadSource=Object['freeze']({'FACEBOOK':'facebook','DROPBOX':'dropbox','GDRIVE':'gdrive','GPHOTOS':'gphotos','FLICKR':'flickr','VK':'vk','EVERNOTE':'evernote','BOX':'box','ONEDRIVE':'onedrive','HUDDLE':'huddle'}),UploadSourceMobile=Object['freeze']({'MOBILE_VIDEO_CAMERA':'mobile-video-camera','MOBILE_PHOTO_CAMERA':'mobile-photo-camera'}),UploadSource=Object['freeze']({'LOCAL':'local','DROP_AREA':'drop-area','CAMERA':'camera','EXTERNAL':'external','API':'js-api','URL':'url','DRAW':'draw',...UploadSourceMobile,...ExternalUploadSource});function customUserAgent(_0x599cf2){return getUserAgent$1({..._0x599cf2,'libraryName':PACKAGE_NAME,'libraryVersion':PACKAGE_VERSION});}var msToUnixTimestamp=_0x20d63b=>'number'!=typeof _0x20d63b?0x0:Math['floor'](_0x20d63b/0x3e8),isSecureTokenExpired=(_0x2aa2a9,{threshold:_0x680d4a})=>{const {secureExpire:_0x50dcee}=_0x2aa2a9,_0x38b6df=msToUnixTimestamp(Date['now']()),_0x535c5b=Number(_0x50dcee);return _0x38b6df+msToUnixTimestamp(_0x680d4a)>=_0x535c5b;},SecureUploadsManager=class{['_block'];['_secureToken']=null;constructor(_0x467a48){this['_block']=_0x467a48;}['_debugPrint'](..._0x1d8f8f){this['_block']['debugPrint']('[secure-uploads]',..._0x1d8f8f);}async['getSecureToken'](){const {secureSignature:_0x3a4201,secureExpire:_0x576cdd,secureUploadsSignatureResolver:_0x294b19}=this['_block']['cfg'];if((_0x3a4201||_0x576cdd)&&_0x294b19&&console['warn']('Both\x20secureSignature/secureExpire\x20and\x20secureUploadsSignatureResolver\x20are\x20set.\x20secureUploadsSignatureResolver\x20will\x20be\x20used.'),_0x294b19){if(!this['_secureToken']||isSecureTokenExpired(this['_secureToken'],{'threshold':this['_block']['cfg']['secureUploadsExpireThreshold']})){this['_secureToken']?this['_debugPrint']('Secure\x20signature\x20is\x20expired.\x20Resolving\x20a\x20new\x20one...'):this['_debugPrint']('Secure\x20signature\x20is\x20not\x20set\x20yet.');try{const _0x34a427=await _0x294b19();_0x34a427?_0x34a427['secureSignature']&&_0x34a427['secureExpire']?(this['_debugPrint']('Secure\x20signature\x20resolved:',_0x34a427),this['_debugPrint']('Secure\x20signature\x20will\x20expire\x20in',new Date(0x3e8*Number(_0x34a427['secureExpire']))['toISOString']()),this['_secureToken']=_0x34a427):console['error']('Secure\x20signature\x20resolver\x20returned\x20an\x20invalid\x20result:',_0x34a427):(this['_debugPrint']('Secure\x20signature\x20resolver\x20returned\x20nothing.'),this['_secureToken']=null);}catch(_0x31ecd0){console['error']('Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.',_0x31ecd0),this['_block']['telemetryManager']['sendEventError'](_0x31ecd0,'secureUploadsSignatureResolver.\x20Secure\x20signature\x20resolving\x20failed.\x20Falling\x20back\x20to\x20the\x20previous\x20one.');}}return this['_secureToken'];}return _0x3a4201&&_0x576cdd?(this['_debugPrint']('Secure\x20signature\x20and\x20expire\x20are\x20set.\x20Using\x20them...',{'secureSignature':_0x3a4201,'secureExpire':_0x576cdd}),{'secureSignature':_0x3a4201,'secureExpire':_0x576cdd}):null;}},validateCollectionUploadError=(_0x113205,_0x41cec3)=>{if(_0x113205['failedCount']>0x0)return{'type':'SOME_FILES_HAS_ERRORS','message':_0x41cec3['l10n']('some-files-were-not-uploaded')};},validateMultiple=(_0x562aeb,_0x56be14)=>{const _0x380395=_0x562aeb['totalCount'],_0xc80a39=_0x56be14['cfg']['multiple']?_0x56be14['cfg']['multipleMin']:0x0,_0x2ccb2e=_0x56be14['cfg']['multiple']?_0x56be14['cfg']['multipleMax']:0x1;if(_0xc80a39&&_0x380395<_0xc80a39)return{'type':'TOO_FEW_FILES','message':_0x56be14['l10n']('files-count-limit-error-too-few',{'min':_0xc80a39,'max':_0x2ccb2e,'total':_0x380395}),'payload':{'total':_0x380395,'min':_0xc80a39,'max':_0x2ccb2e}};if(_0x2ccb2e&&_0x380395>_0x2ccb2e)return{'type':'TOO_MANY_FILES','message':_0x56be14['l10n']('files-count-limit-error-too-many',{'min':_0xc80a39,'max':_0x2ccb2e,'total':_0x380395}),'payload':{'total':_0x380395,'min':_0xc80a39,'max':_0x2ccb2e}};},calcIsDesktopSafari=()=>{const _0x444316=navigator['userAgent'];return/Macintosh|Windows/['test'](_0x444316)&&/Version\/[\d.]+.*Safari/['test'](_0x444316)&&!/Chrome|Chromium|Edg|OPR/['test'](_0x444316);},calcHtmlMediaCaptureSupport=()=>'capture'in document['createElement']('input'),calcBrowserInfo=()=>({'safariDesktop':calcIsDesktopSafari()}),calcBrowserFeatures=()=>({'htmlMediaCapture':calcHtmlMediaCaptureSupport()}),browserInfo=calcBrowserInfo(),browserFeatures=calcBrowserFeatures(),BASIC_IMAGE_WILDCARD='image/*',BASIC_VIDEO_WILDCARD='video/*',HEIC_IMAGE_MIME_LIST=['image/heif','image/heif-sequence','image/heic','image/heic-sequence','image/avif','image/avif-sequence','.heif','.heifs','.heic','.heics','.avif','.avifs'],calcImageAcceptList=()=>browserInfo['safariDesktop']?[BASIC_IMAGE_WILDCARD]:[BASIC_IMAGE_WILDCARD,...HEIC_IMAGE_MIME_LIST],IMAGE_ACCEPT_LIST=calcImageAcceptList(),mergeFileTypes=_0x347892=>_0x347892?_0x347892['filter'](_0x3ecd8b=>'string'==typeof _0x3ecd8b)['flatMap'](_0x335239=>stringToArray(_0x335239)):[],matchMimeType=(_0x2a2928,_0x271538)=>_0x271538['some'](_0x35fae3=>{if(_0x35fae3['endsWith']('*')){const _0x248c53=_0x35fae3['replace']('*','');return _0x2a2928['startsWith'](_0x248c53);}return _0x2a2928===_0x35fae3;}),matchExtension=(_0x547539,_0xdf5571)=>_0xdf5571['some'](_0xc8ead8=>!!_0xc8ead8['startsWith']('.')&&_0x547539['toLowerCase']()['endsWith'](_0xc8ead8['toLowerCase']())),fileIsImage=_0x4c0909=>{const _0x769cd1=_0x4c0909?.['type'];return!!_0x769cd1&&matchMimeType(_0x769cd1,IMAGE_ACCEPT_LIST);},validateFileType=(_0x406199,_0xb3e30d)=>{const _0x55b807=_0xb3e30d['cfg']['imgOnly'],_0x33d0f9=_0xb3e30d['cfg']['accept'],_0x5a47fa=mergeFileTypes([..._0x55b807?IMAGE_ACCEPT_LIST:[],_0x33d0f9]);if(!_0x5a47fa['length'])return;const _0x410cff=_0x406199['mimeType'],_0x2a075e=_0x406199['name'];if(!_0x410cff||!_0x2a075e)return;const _0x50b004=matchMimeType(_0x410cff,_0x5a47fa),_0x2de3d9=matchExtension(_0x2a075e,_0x5a47fa);return _0x50b004||_0x2de3d9?void 0x0:{'type':'FORBIDDEN_FILE_TYPE','message':_0xb3e30d['l10n']('file-type-not-allowed'),'payload':{'entry':_0x406199}};},validateIsImage=(_0x17ba2d,_0x594eb2)=>{const _0x3eeadc=_0x594eb2['cfg']['imgOnly'],_0xba02c5=_0x17ba2d['isImage'];if(_0x3eeadc&&!_0xba02c5&&(_0x17ba2d['fileInfo']||!_0x17ba2d['externalUrl'])&&(_0x17ba2d['fileInfo']||_0x17ba2d['mimeType']))return{'type':'NOT_AN_IMAGE','message':_0x594eb2['l10n']('images-only-accepted'),'payload':{'entry':_0x17ba2d}};},BASE=0x3e8,ByteUnitEnum=Object['freeze']({'AUTO':'auto','BYTE':'byte','KB':'kb','MB':'mb','GB':'gb','TB':'tb','PB':'pb'}),round=_0x1f3be5=>Math['ceil'](0x64*_0x1f3be5)/0x64,prettyBytes=(_0x29ec16,_0x3e45cd=ByteUnitEnum['AUTO'])=>{const _0x3eddfd=_0x3e45cd===ByteUnitEnum['AUTO'];if(_0x3e45cd===ByteUnitEnum['BYTE']||_0x3eddfd&&_0x29ec16<BASE**0x1)return _0x29ec16+'\x20'+('one'===getPluralForm('en-US',_0x29ec16)?'byte':'bytes');return _0x3e45cd===ByteUnitEnum['KB']||_0x3eddfd&&_0x29ec16<BASE**0x2?round(_0x29ec16/BASE**0x1)+'\x20KB':_0x3e45cd===ByteUnitEnum['MB']||_0x3eddfd&&_0x29ec16<BASE**0x3?round(_0x29ec16/BASE**0x2)+'\x20MB':_0x3e45cd===ByteUnitEnum['GB']||_0x3eddfd&&_0x29ec16<BASE**0x4?round(_0x29ec16/BASE**0x3)+'\x20GB':_0x3e45cd===ByteUnitEnum['TB']||_0x3eddfd&&_0x29ec16<BASE**0x5?round(_0x29ec16/BASE**0x4)+'\x20TB':round(_0x29ec16/BASE**0x5)+'\x20PB';},validateMaxSizeLimit=(_0x57bd19,_0x37ed0f)=>{const _0x5752ae=_0x37ed0f['cfg']['maxLocalFileSizeBytes'],_0x24b216=_0x57bd19['size'];if(_0x5752ae&&_0x24b216&&_0x24b216>_0x5752ae)return{'type':'FILE_SIZE_EXCEEDED','message':_0x37ed0f['l10n']('files-max-size-limit-error',{'maxFileSize':prettyBytes(_0x5752ae)}),'payload':{'entry':_0x57bd19}};},validateUploadError=(_0x287c36,_0xc073b7)=>{const {internalId:_0x1ff1ef}=_0x287c36,_0x5ef5ad=_0xc073b7['_uploadCollection']['read'](_0x1ff1ef),_0x255599=_0x5ef5ad?.['getValue']('uploadError');if(!_0x255599)return;if(_0x255599 instanceof UploadError)return{'type':'UPLOAD_ERROR','message':_0x255599['message'],'payload':{'entry':_0x287c36,'error':_0x255599}};if(_0x255599 instanceof NetworkError)return{'type':'NETWORK_ERROR','message':_0x255599['message'],'payload':{'entry':_0x287c36,'error':_0x255599}};const _0x2a5bcd=_0x255599 instanceof Error?_0x255599:new Error('Unknown\x20error',{'cause':_0x255599});return{'type':'UNKNOWN_ERROR','message':_0x2a5bcd['message'],'payload':{'entry':_0x287c36,'error':_0x2a5bcd}};},withResolvers=()=>{let _0x722201=()=>{},_0x331006=()=>{};return{'promise':new Promise((_0x347d09,_0x1b1deb)=>{_0x722201=_0x347d09,_0x331006=_0x1b1deb;}),'resolve':_0x722201,'reject':_0x331006};},LOG_TEXT={'FILE_VALIDATION_FAILED':'File\x20validator\x20execution\x20has\x20failed','FILE_VALIDATION_TIMEOUT':'File\x20validator\x20execution\x20has\x20timed\x20out','COLLECTION_VALIDATION_FAILED':'Collection\x20validator\x20execution\x20has\x20failed','MISSING_ERROR_MESSAGE':'Missing\x20message.\x20We\x20recommend\x20adding\x20message:\x20value.'},getValidatorDescriptor=_0x271016=>'function'==typeof _0x271016?{'runOn':'change','validator':_0x271016}:_0x271016,ValidationManager=class{['_blockInstance'];['_uploadCollection'];['_commonFileValidators']=[validateIsImage,validateFileType,validateMaxSizeLimit,validateUploadError];['_commonCollectionValidators']=[validateMultiple,validateCollectionUploadError];['_queue']=new Queue(0x14);['_runQueueDebounced']=debounce(()=>{this['_queue']['run']();},0x1f4);['_entryValidationState']=new Map();constructor(_0x4c185c){this['_blockInstance']=_0x4c185c,this['_uploadCollection']=this['_blockInstance']['uploadCollection'];const _0x2eb0ff=()=>{this['runFileValidators']('change'),this['runCollectionValidators']();};this['_blockInstance']['subConfigValue']('maxLocalFileSizeBytes',_0x2eb0ff),this['_blockInstance']['subConfigValue']('multipleMin',_0x2eb0ff),this['_blockInstance']['subConfigValue']('multipleMax',_0x2eb0ff),this['_blockInstance']['subConfigValue']('multiple',_0x2eb0ff),this['_blockInstance']['subConfigValue']('imgOnly',_0x2eb0ff),this['_blockInstance']['subConfigValue']('accept',_0x2eb0ff),this['_blockInstance']['subConfigValue']('validationConcurrency',_0x353087=>{this['_queue']['concurrency']=_0x353087;});}['runFileValidators'](_0x33313a,_0x58867d){const _0x94e8bd=_0x58867d??this['_uploadCollection']['items']();for(const _0x1e4eef of _0x94e8bd){const _0x234d28=this['_uploadCollection']['read'](_0x1e4eef);_0x234d28&&this['_runFileValidatorsForEntry'](_0x234d28,_0x33313a);}}['runCollectionValidators'](){const _0x2153bf=this['_blockInstance']['api']['getOutputCollectionState'](),_0x412f54=[];for(const _0x3d6ed1 of[...this['_commonCollectionValidators'],...this['_blockInstance']['cfg']['collectionValidators']])try{const _0xcabe81=_0x3d6ed1(_0x2153bf,this['_blockInstance']['api']);if(!_0xcabe81)continue;_0xcabe81&&(_0x412f54['push'](this['_addCustomTypeToValidationError'](_0xcabe81)),_0xcabe81['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']));}catch(_0x1cc219){console['warn'](LOG_TEXT['COLLECTION_VALIDATION_FAILED'],_0x1cc219);}this['_blockInstance']['$']['*collectionErrors']=_0x412f54,_0x412f54['length']>0x0&&this['_blockInstance']['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['_blockInstance']['api']['getOutputCollectionState'](),{'debounce':!0x0});}['cleanupValidationForEntry'](_0x569318){const _0x5a6b4f=this['_entryValidationState']['get'](_0x569318['uid']);_0x5a6b4f&&(_0x5a6b4f['abortController']?.['abort'](),this['_entryValidationState']['delete'](_0x569318['uid']));}async['_runFileValidatorsForEntry'](_0x22eb68,_0x549d00){const _0x599af6=this['_getValidatorDescriptorsForEntry'](_0x22eb68,_0x549d00);if(0x0===_0x599af6['length'])return;_0x22eb68['setMultipleValues']({'isQueuedForValidation':!0x0,'isValidationPending':!0x0});const _0x41b98d=this['_blockInstance']['api']['getOutputItem'](_0x22eb68['uid']),_0x5e75c4=this['_getEntryValidationState'](_0x22eb68);_0x5e75c4['promise']&&await _0x5e75c4['promise'];const {promise:_0x3a521d,resolve:_0x4ef5d6}=withResolvers();_0x5e75c4['promise']=_0x3a521d;const _0x45d3c8=new AbortController();_0x5e75c4['abortController']=_0x45d3c8;const _0x1f60d7=this['_blockInstance']['cfg']['validationTimeout'],_0x59737f=this['_getValidatorDescriptors'](),_0x2b6a13=new Set(_0x599af6['map'](_0x1946db=>_0x1946db['validator'])),_0x145a2d=[];for(const _0x4d7dc8 of _0x59737f)if(!_0x2b6a13['has'](_0x4d7dc8['validator'])){const _0x345b57=_0x5e75c4['lastErrorThrownByValidator']['get'](_0x4d7dc8['validator']);_0x345b57&&_0x145a2d['push'](_0x345b57);}const _0x583f66=_0x599af6['map'](_0x3bfeb5=>async()=>{if(!this['_blockInstance']['isConnected'])return;const _0x1d1e7b=setTimeout(()=>{_0x5e75c4['skippedValidators']['add'](_0x3bfeb5['validator']),_0x45d3c8['abort'](),console['warn'](LOG_TEXT['FILE_VALIDATION_TIMEOUT']);},_0x1f60d7);try{const _0x2d71f0=await _0x3bfeb5['validator'](_0x41b98d,this['_blockInstance']['api'],{'signal':_0x45d3c8['signal']});if(!_0x2d71f0||_0x45d3c8['signal']['aborted'])return void _0x5e75c4['lastErrorThrownByValidator']['set'](_0x3bfeb5['validator'],void 0x0);const _0x144054=this['_addCustomTypeToValidationError'](_0x2d71f0);_0x5e75c4['lastErrorThrownByValidator']['set'](_0x3bfeb5['validator'],_0x144054),_0x145a2d['push'](_0x144054),_0x2d71f0['message']||console['warn'](LOG_TEXT['MISSING_ERROR_MESSAGE']);}catch(_0xd03a6f){_0x45d3c8['signal']['aborted']||(_0x5e75c4['skippedValidators']['add'](_0x3bfeb5['validator']),console['warn'](LOG_TEXT['FILE_VALIDATION_FAILED'],_0xd03a6f),this['_blockInstance']['telemetryManager']['sendEventError'](_0xd03a6f,'file\x20validator.\x20'+LOG_TEXT['FILE_VALIDATION_FAILED']));}finally{clearTimeout(_0x1d1e7b),'change'!==_0x3bfeb5['runOn']&&_0x5e75c4['skippedValidators']['add'](_0x3bfeb5['validator']);}});if(this['_runQueueDebounced'](),await this['_queue']['add'](async()=>{_0x22eb68['setValue']('isQueuedForValidation',!0x1),await Promise['all'](_0x583f66['map'](_0x200ea9=>_0x200ea9()))['catch'](()=>{});},{'autoRun':!0x1}),_0x45d3c8['signal']['aborted'])return _0x22eb68['setMultipleValues']({'isQueuedForValidation':!0x1,'isValidationPending':!0x1}),void _0x4ef5d6();_0x22eb68['setMultipleValues']({'isValidationPending':!0x1,'isQueuedForValidation':!0x1,'errors':_0x145a2d}),_0x4ef5d6();}['_addCustomTypeToValidationError'](_0x5c95be){return{..._0x5c95be,'type':_0x5c95be['type']??'CUSTOM_ERROR'};}['_getEntryValidationState'](_0x2dca73){const _0x5c9153=this['_entryValidationState']['get'](_0x2dca73['uid']);if(_0x5c9153)return _0x5c9153;const _0x3c745e={'abortController':void 0x0,'skippedValidators':new WeakSet(),'promise':void 0x0,'lastErrorThrownByValidator':new WeakMap()};return this['_entryValidationState']['set'](_0x2dca73['uid'],_0x3c745e),_0x3c745e;}['_getValidatorDescriptors'](){return[...this['_commonFileValidators'],...this['_blockInstance']['cfg']['fileValidators']]['map'](getValidatorDescriptor);}['_getValidatorDescriptorsForEntry'](_0x384d90,_0x14a17d){const _0x236aca=this['_getEntryValidationState'](_0x384d90);return this['_getValidatorDescriptors']()['filter'](_0x159f46=>!_0x236aca['skippedValidators']['has'](_0x159f46['validator']))['filter'](_0x31ed24=>_0x31ed24['runOn']===_0x14a17d);}},MSG_NAME='[Typed\x20State]\x20Wrong\x20property\x20name:\x20',MSG_TYPE='[Typed\x20State]\x20Wrong\x20property\x20type:\x20',TypedData=class{['__typedSchema'];['__ctxId'];['__schema'];['__data'];constructor(_0x3b3436,_0x430a34){this['__typedSchema']=_0x3b3436,this['__ctxId']=_0x430a34||UID['generate'](),this['__schema']=Object['keys'](_0x3b3436)['reduce']((_0x1829ab,_0x4ee340)=>(_0x3b3436[_0x4ee340]&&(_0x1829ab[_0x4ee340]=_0x3b3436[_0x4ee340]['value']),_0x1829ab),{}),this['__data']=Data['registerCtx'](this['__schema'],this['__ctxId']);}get['uid'](){return this['__ctxId'];}['setValue'](_0x4bfa49,_0x8132c0){if(!Object['hasOwn'](this['__typedSchema'],_0x4bfa49)||!this['__typedSchema'][_0x4bfa49])return void console['warn'](MSG_NAME+_0x4bfa49);const _0x48e291=this['__typedSchema'][_0x4bfa49],_0x43973e=_0x8132c0?.['constructor']===_0x48e291['type'],_0x4f5d0a=_0x8132c0 instanceof _0x48e291['type'],_0x9de25b=_0x48e291['nullable']&&null===_0x8132c0;_0x43973e||_0x4f5d0a||_0x9de25b?this['__data']['pub'](_0x4bfa49,_0x8132c0):console['warn'](MSG_TYPE+_0x4bfa49);}['setMultipleValues'](_0x1a2fcb){for(const [_0x924e8,_0x4eff2a]of Object['entries'](_0x1a2fcb))this['setValue'](_0x924e8,_0x4eff2a);}['getValue'](_0x471318){return Object['hasOwn'](this['__typedSchema'],_0x471318)||console['warn'](MSG_NAME+_0x471318),this['__data']['read'](_0x471318);}['subscribe'](_0x44a21b,_0x46e6ee){return this['__data']['sub'](_0x44a21b,_0x46e6ee);}['remove'](){Data['deleteCtx'](this['__ctxId']);}},TypedCollection=class{['__typedSchema'];['__ctxId'];['__data'];['__watchList'];['__subsMap']=Object['create'](null);['__propertyObservers']=new Set();['__collectionObservers']=new Set();['__items']=new Set();['__removed']=new Set();['__added']=new Set();['__observeTimeout'];['__notifyTimeout'];['__notifyObservers'];constructor(_0x1a5d21){this['__typedSchema']=_0x1a5d21['typedSchema'],this['__ctxId']=_0x1a5d21['ctxName']||UID['generate'](),this['__data']=Data['registerCtx']({},this['__ctxId']),this['__watchList']=_0x1a5d21['watchList']||[];let _0x276cca=Object['create'](null);this['__notifyObservers']=(_0xdc8194,_0x54c25a)=>{this['__observeTimeout']&&window['clearTimeout'](this['__observeTimeout']),_0x276cca[_0xdc8194]||(_0x276cca[_0xdc8194]=new Set()),_0x276cca[_0xdc8194]['add'](_0x54c25a),this['__observeTimeout']=window['setTimeout'](()=>{0x0!==Object['keys'](_0x276cca)['length']&&(this['__propertyObservers']['forEach'](_0x59233b=>{_0x59233b({..._0x276cca});}),_0x276cca=Object['create'](null));});},_0x1a5d21['handler']&&this['observeCollection'](_0x1a5d21['handler']);}['notify'](){this['__notifyTimeout']&&window['clearTimeout'](this['__notifyTimeout']),this['__notifyTimeout']=window['setTimeout'](()=>{const _0x4fa6c4=new Set(this['__added']),_0x2fdbc0=new Set(this['__removed']);this['__added']['clear'](),this['__removed']['clear']();for(const _0x1a2695 of this['__collectionObservers'])_0x1a2695?.([...this['__items']],_0x4fa6c4,_0x2fdbc0);});}['observeCollection'](_0x2a0116){return this['__collectionObservers']['add'](_0x2a0116),this['__items']['size']>0x0&&this['notify'](),()=>{this['unobserveCollection'](_0x2a0116);};}['unobserveCollection'](_0x2857d9){this['__collectionObservers']['delete'](_0x2857d9);}['add'](_0x3dd980){const _0x2f6713=new TypedData(this['__typedSchema']);for(const [_0x12862f,_0x271038]of Object['entries'](_0x3dd980))void 0x0!==_0x271038&&_0x2f6713['setValue'](_0x12862f,_0x271038);return this['__items']['add'](_0x2f6713['uid']),this['notify'](),this['__data']['add'](_0x2f6713['uid'],_0x2f6713),this['__added']['add'](_0x2f6713),this['__watchList']['forEach'](_0xd90bdb=>{this['__subsMap'][_0x2f6713['uid']]||(this['__subsMap'][_0x2f6713['uid']]=[]),this['__subsMap'][_0x2f6713['uid']]?.['push'](_0x2f6713['subscribe'](_0xd90bdb,()=>{this['__notifyObservers'](_0xd90bdb,_0x2f6713['uid']);}));}),_0x2f6713['uid'];}['read'](_0x584745){return this['__data']['read'](_0x584745);}['readProp'](_0x44da40,_0x49b110){const _0xe14f4a=this['read'](_0x44da40);return _0xe14f4a?_0xe14f4a['getValue'](_0x49b110):(console['warn']('Item\x20with\x20id\x20'+_0x44da40+'\x20not\x20found'),null);}['publishProp'](_0x1b037d,_0x43d0fe,_0x28d8be){const _0x2873e0=this['read'](_0x1b037d);_0x2873e0?_0x2873e0['setValue'](_0x43d0fe,_0x28d8be):console['warn']('Item\x20with\x20id\x20'+_0x1b037d+'\x20not\x20found');}['remove'](_0x48653f){const _0x146216=this['read'](_0x48653f);_0x146216&&this['__removed']['add'](_0x146216),this['__items']['delete'](_0x48653f),this['notify'](),this['__data']['pub'](_0x48653f,null),delete this['__subsMap'][_0x48653f];}['clearAll'](){this['__items']['forEach'](_0x32bd37=>{this['remove'](_0x32bd37);});}['observeProperties'](_0x226346){return this['__propertyObservers']['add'](_0x226346),()=>{this['unobserveProperties'](_0x226346);};}['unobserveProperties'](_0x9175e8){this['__propertyObservers']['delete'](_0x9175e8);}['findItems'](_0x532ce9){const _0x407632=[];return this['__items']['forEach'](_0x3ba733=>{const _0x5a542e=this['read'](_0x3ba733);_0x5a542e&&_0x532ce9(_0x5a542e)&&_0x407632['push'](_0x3ba733);}),_0x407632;}['items'](){return[...this['__items']];}get['size'](){return this['__items']['size'];}['destroy'](){Data['deleteCtx'](this['__ctxId']),this['__propertyObservers']=new Set(),this['__collectionObservers']=new Set();for(const _0x347a66 in this['__subsMap'])this['__subsMap'][_0x347a66]?.['forEach'](_0x12ee51=>{_0x12ee51['remove']();}),delete this['__subsMap'][_0x347a66];}},CameraSourceTypes=Object['freeze']({'PHOTO':'photo','VIDEO':'video'}),CameraSourceEvents=Object['freeze']({'IDLE':'idle','SHOT':'shot','PLAY':'play','PAUSE':'pause','RESUME':'resume','STOP':'stop','RETAKE':'retake','ACCEPT':'accept'}),calcCameraModes=_0x1c43fb=>({'isVideoRecordingEnabled':deserializeCsv(_0x1c43fb['cameraModes'])['includes'](CameraSourceTypes['VIDEO']),'isPhotoEnabled':deserializeCsv(_0x1c43fb['cameraModes'])['includes'](CameraSourceTypes['PHOTO'])}),uuidRegex=/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/i,cdnUrlRegex=new RegExp('^/?('+uuidRegex['source']+')(?:/(-/(?:[^/]+/)+)?([^/]*))?$','i'),parseCdnUrl=({url:_0xefdb4,cdnBase:_0x2d937a})=>{const _0x1de25f=new URL(_0x2d937a),_0x377977=new URL(DEFAULT_CDN_CNAME),_0x158652=new URL(_0xefdb4);if(_0x1de25f['host']!==_0x158652['host']&&_0x377977['host']!==_0x158652['host'])return null;const _0x515a06=cdnUrlRegex['exec'](_0x158652['pathname']);if(!_0x515a06)return null;const [,_0x33b3d3,_0x169867,_0x3e58d5]=_0x515a06;return _0x33b3d3?{'uuid':_0x33b3d3,'cdnUrlModifiers':_0x169867||'','filename':_0x3e58d5||null}:null;};function memoize(_0x2428a3){const _0x25f619=new Map();return(..._0x464254)=>{const _0x1b9426=JSON['stringify'](_0x464254);if(_0x25f619['has'](_0x1b9426))return _0x25f619['get'](_0x1b9426);const _0x1c36dd=_0x2428a3(..._0x464254);return _0x25f619['set'](_0x1b9426,_0x1c36dd),_0x1c36dd;};}var warnings=new Set();function warnOnce(_0x1717d6){warnings['has'](_0x1717d6)||(warnings['add'](_0x1717d6),console['warn'](_0x1717d6));}function createAsyncAssertWrapper(_0x1c30db){let _0x289264=!0x1;return setTimeout(()=>{_0x289264=!0x0;},0x0),_0x548a47=>(..._0xd955a6)=>(_0x289264&&warnOnce(_0x1c30db),_0x548a47(..._0xd955a6));}function buildOutputCollectionState(_0x56957f){const _0x4a3c54={},_0xf62fe={'progress':()=>_0x56957f['$']['*commonProgress'],'errors':()=>_0x56957f['$']['*collectionErrors'],'group':()=>_0x56957f['$']['*groupInfo'],'totalCount':()=>_0x56957f['uploadCollection']['size'],'failedCount':()=>_0x4a3c54['failedEntries']['length'],'successCount':()=>_0x4a3c54['successEntries']['length'],'uploadingCount':()=>_0x4a3c54['uploadingEntries']['length'],'status':()=>_0x4a3c54['isFailed']?'failed':_0x4a3c54['isUploading']?'uploading':_0x4a3c54['isSuccess']?'success':'idle','isSuccess':()=>_0x4a3c54['allEntries']['length']>0x0&&0x0===_0x4a3c54['errors']['length']&&_0x4a3c54['successEntries']['length']===_0x4a3c54['allEntries']['length'],'isUploading':()=>_0x4a3c54['allEntries']['some'](_0x182acb=>'uploading'===_0x182acb['status']),'isFailed':()=>_0x4a3c54['errors']['length']>0x0||_0x4a3c54['failedEntries']['length']>0x0,'allEntries':()=>_0x56957f['getOutputData'](),'successEntries':()=>_0x4a3c54['allEntries']['filter'](_0x1a6097=>'success'===_0x1a6097['status']),'failedEntries':()=>_0x4a3c54['allEntries']['filter'](_0x49134c=>'failed'===_0x49134c['status']),'uploadingEntries':()=>_0x4a3c54['allEntries']['filter'](_0x3ac691=>'uploading'===_0x3ac691['status']),'idleEntries':()=>_0x4a3c54['allEntries']['filter'](_0x48f73b=>'idle'===_0x48f73b['status'])},_0x18a420=createAsyncAssertWrapper('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(const [_0x5cb22f,_0x3932ab]of Object['entries'](_0xf62fe)){const _0x2e5b6e=_0x5cb22f,_0x386b9f=memoize(_0x18a420(_0x3932ab));Object['defineProperty'](_0x4a3c54,_0x2e5b6e,{'get':_0x386b9f,'enumerable':!0x0});}return _0x4a3c54;}var UploaderPublicApi=class{['_ctx'];constructor(_0x2b2de1){this['_ctx']=_0x2b2de1;}get['_uploadCollection'](){return this['_ctx']['uploadCollection'];}get['cfg'](){return this['_ctx']['cfg'];}get['l10n'](){return this['_ctx']['l10n']['bind'](this['_ctx']);}['addFileFromUrl']=(_0x18a55d,{silent:_0x42e3bb,fileName:_0x55696c,source:_0x349222}={})=>{const _0x3f5068=this['_uploadCollection']['add']({'externalUrl':_0x18a55d,'fileName':_0x55696c??null,'silent':_0x42e3bb??!0x1,'source':_0x349222??UploadSource['API']});return this['getOutputItem'](_0x3f5068);};['addFileFromUuid']=(_0x105a14,{silent:_0x4dd09f,fileName:_0x41d364,source:_0x24c6e4}={})=>{const _0x4055a4=this['_uploadCollection']['add']({'uuid':_0x105a14,'fileName':_0x41d364??null,'silent':_0x4dd09f??!0x1,'source':_0x24c6e4??UploadSource['API']});return this['getOutputItem'](_0x4055a4);};['addFileFromCdnUrl']=(_0x444617,{silent:_0x4f99bb,fileName:_0x3466b1,source:_0x36b270}={})=>{const _0x363f58=parseCdnUrl({'url':_0x444617,'cdnBase':this['cfg']['cdnCname']});if(!_0x363f58)throw new Error('Invalid\x20CDN\x20URL');const _0x25e4a4=this['_uploadCollection']['add']({'uuid':_0x363f58['uuid'],'cdnUrl':_0x444617,'cdnUrlModifiers':_0x363f58['cdnUrlModifiers'],'fileName':_0x3466b1??_0x363f58['filename']??null,'silent':_0x4f99bb??!0x1,'source':_0x36b270??UploadSource['API']});return this['getOutputItem'](_0x25e4a4);};['addFileFromObject']=(_0xf705d5,{silent:_0x2f9501,fileName:_0x5b8c16,source:_0x2add7b,fullPath:_0x40f2be}={})=>{const _0x59a26a=this['_uploadCollection']['add']({'file':_0xf705d5,'isImage':fileIsImage(_0xf705d5),'mimeType':_0xf705d5['type'],'fileName':_0x5b8c16??_0xf705d5['name'],'fileSize':_0xf705d5['size'],'silent':_0x2f9501??!0x1,'source':_0x2add7b??UploadSource['API'],'fullPath':_0x40f2be??null});return this['getOutputItem'](_0x59a26a);};['removeFileByInternalId']=_0x1d7a00=>{if(!this['_uploadCollection']['read'](_0x1d7a00))throw new Error('File\x20with\x20internalId\x20'+_0x1d7a00+'\x20not\x20found');this['_uploadCollection']['remove'](_0x1d7a00);};['removeAllFiles'](){this['_uploadCollection']['clearAll']();}['uploadAll']=()=>{const _0x12f3de=this['_uploadCollection']['items']()['filter'](_0x2c7dec=>{const _0x5aaf8d=this['_uploadCollection']['read'](_0x2c7dec);return!!_0x5aaf8d&&!(_0x5aaf8d['getValue']('isRemoved')||_0x5aaf8d['getValue']('isUploading')||_0x5aaf8d['getValue']('fileInfo')||0x0!==_0x5aaf8d['getValue']('errors')['length']||_0x5aaf8d['getValue']('isValidationPending')||_0x5aaf8d['getValue']('isQueuedForValidation'));});0x0!==_0x12f3de['length']&&(this['_ctx']['$']['*uploadTrigger']=new Set(_0x12f3de),this['_ctx']['emit'](EventType['COMMON_UPLOAD_START'],this['getOutputCollectionState']()));};['openSystemDialog']=(_0x295179={})=>{const _0x6e9e4e=serializeCsv(mergeFileTypes([this['cfg']['accept']??'',...this['cfg']['imgOnly']?IMAGE_ACCEPT_LIST:[]])),_0x36845a='uploadcare-file-input',_0xd9b3b1=document['createElement']('input');if(_0xd9b3b1['setAttribute'](_0x36845a,''),applyStyles(_0xd9b3b1,{'opacity':0x0,'height':0x0,'width':0x0,'visibility':'hidden','position':'absolute','top':0x0,'left':0x0}),_0xd9b3b1['type']='file',_0xd9b3b1['multiple']=this['cfg']['multiple'],_0x295179['captureCamera']){_0xd9b3b1['capture']=this['cfg']['cameraCapture'];const {isPhotoEnabled:_0x3f06c4,isVideoRecordingEnabled:_0x3a9a55}=calcCameraModes(this['cfg']);_0x295179['modeCamera']===CameraSourceTypes['PHOTO']&&_0x3f06c4?_0xd9b3b1['accept']=BASIC_IMAGE_WILDCARD:_0x295179['modeCamera']===CameraSourceTypes['VIDEO']&&_0x3a9a55?_0xd9b3b1['accept']=BASIC_VIDEO_WILDCARD:_0xd9b3b1['accept']=[BASIC_IMAGE_WILDCARD,_0x3a9a55&&BASIC_VIDEO_WILDCARD]['filter'](Boolean)['join'](',');}else _0xd9b3b1['accept']=_0x6e9e4e;_0xd9b3b1['addEventListener']('change',()=>{_0xd9b3b1['files']&&([..._0xd9b3b1['files']]['forEach'](_0x4df591=>{this['addFileFromObject'](_0x4df591,{'source':_0x295179['captureCamera']?UploadSource['CAMERA']:UploadSource['LOCAL']});}),this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],_0xd9b3b1['remove']());},{'once':!0x0}),document['querySelectorAll']('['+_0x36845a+']')['forEach'](_0x105091=>{_0x105091['remove']();}),document['body']['appendChild'](_0xd9b3b1),_0xd9b3b1['dispatchEvent'](new MouseEvent('click'));};['getOutputItem'](_0x4ac8ba){const _0x278374=Data['getCtx'](_0x4ac8ba)['store'],_0x5262d8=_0x278374['fileInfo'],_0x544b1b=_0x278374['isRemoved']?'removed':_0x278374['errors']['length']>0x0?'failed':_0x278374['fileInfo']?'success':_0x278374['isUploading']?'uploading':'idle';return{'uuid':_0x5262d8?.['uuid']??_0x278374['uuid']??null,'internalId':_0x4ac8ba,'name':_0x5262d8?.['originalFilename']??_0x278374['fileName'],'size':_0x5262d8?.['size']??_0x278374['fileSize'],'isImage':_0x5262d8?.['isImage']??_0x278374['isImage'],'mimeType':_0x5262d8?.['mimeType']??_0x278374['mimeType'],'file':_0x278374['file'],'externalUrl':_0x278374['externalUrl'],'cdnUrlModifiers':_0x278374['cdnUrlModifiers'],'cdnUrl':_0x278374['cdnUrl']??_0x5262d8?.['cdnUrl']??null,'fullPath':_0x278374['fullPath'],'uploadProgress':_0x278374['uploadProgress'],'fileInfo':_0x5262d8??null,'metadata':_0x278374['metadata']??_0x5262d8?.['metadata']??null,'isSuccess':'success'===_0x544b1b,'isUploading':'uploading'===_0x544b1b,'isFailed':'failed'===_0x544b1b,'isRemoved':'removed'===_0x544b1b,'isValidationPending':_0x278374['isValidationPending'],'errors':_0x278374['errors'],'status':_0x544b1b,'source':_0x278374?.['source']};}['getOutputCollectionState'](){return buildOutputCollectionState(this['_ctx']);}['initFlow']=(_0x73f622=!0x1)=>{if(this['_uploadCollection']['size']>0x0&&!_0x73f622)this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']});else{if(0x1===this['_sourceList']?.['length']){const _0x7c3fd9=this['_sourceList'][0x0];if('local'===_0x7c3fd9)return this['_ctx']['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],void this['openSystemDialog']();if('camera'===_0x7c3fd9&&browserFeatures['htmlMediaCapture']){const {isPhotoEnabled:_0x51910b,isVideoRecordingEnabled:_0x230625}=calcCameraModes(this['cfg']);if(_0x51910b&&_0x230625)return void this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});if(_0x51910b||_0x230625)return void this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':_0x51910b?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']});this['openSystemDialog']({'captureCamera':!0x0,'modeCamera':CameraSourceTypes['PHOTO']});}const _0x4ad7f3=[...this['_ctx']['$']['*blocksRegistry']]['find'](_0x1cf9b1=>'type'in _0x1cf9b1&&_0x1cf9b1['type']===_0x7c3fd9);_0x4ad7f3?.['activate'](),this['_ctx']['$']['*currentActivity']&&this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']);}else this['_ctx']['modalManager']?.['open'](ActivityBlock['activities']['START_FROM']),this['_ctx']['set$']({'*currentActivity':ActivityBlock['activities']['START_FROM']});}};['doneFlow']=()=>{this['_ctx']['set$']({'*currentActivity':this['_ctx']['doneActivity'],'*history':this['_ctx']['doneActivity']?[this['_ctx']['doneActivity']]:[]}),this['_ctx']['$']['*currentActivity']||this['_ctx']['modalManager']?.['closeAll']();};['setCurrentActivity']=(_0x36b691,..._0x172367)=>{this['_ctx']['hasBlockInCtx'](_0x595048=>_0x595048['activityType']===_0x36b691)?this['_ctx']['set$']({'*currentActivityParams':_0x172367??{},'*currentActivity':_0x36b691}):console['warn']('Activity\x20type\x20\x22'+_0x36b691+'\x22\x20not\x20found\x20in\x20the\x20context');};['getCurrentActivity']=()=>this['_ctx']['$']['*currentActivity'];['setModalState']=_0x2b5e67=>{!_0x2b5e67||this['_ctx']['$']['*currentActivity']?_0x2b5e67?this['_ctx']['modalManager']?.['open'](this['_ctx']['$']['*currentActivity']):(this['_ctx']['modalManager']?.['close'](this['_ctx']['$']['*currentActivity']),this['_ctx']['$']['*currentActivity']=null):console['warn']('Can\x27t\x20open\x20modal\x20without\x20current\x20activity.\x20Please\x20use\x20\x22setCurrentActivity\x22\x20method\x20first.');};get['_sourceList'](){let _0x390538=[];return this['cfg']['sourceList']&&(_0x390538=stringToArray(this['cfg']['sourceList'])),_0x390538;}},uploadEntrySchema=Object['freeze']({'file':Object['freeze']({'type':File,'value':null,'nullable':!0x0}),'externalUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileSize':Object['freeze']({'type':Number,'value':null,'nullable':!0x0}),'lastModified':Object['freeze']({'type':Number,'value':Date['now']()}),'uploadProgress':Object['freeze']({'type':Number,'value':0x0}),'uuid':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'isImage':Object['freeze']({'type':Boolean,'value':!0x1}),'mimeType':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'ctxName':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'cdnUrlModifiers':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fileInfo':Object['freeze']({'type':UploadcareFile,'value':null,'nullable':!0x0}),'isUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'abortController':Object['freeze']({'type':AbortController,'value':null,'nullable':!0x0}),'thumbUrl':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'silent':Object['freeze']({'type':Boolean,'value':!0x1}),'source':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'fullPath':Object['freeze']({'type':String,'value':null,'nullable':!0x0}),'metadata':Object['freeze']({'type':Object,'value':null,'nullable':!0x0}),'errors':Object['freeze']({'type':Array,'value':[]}),'uploadError':Object['freeze']({'type':Error,'value':null,'nullable':!0x0}),'isRemoved':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueuedForUploading':Object['freeze']({'type':Boolean,'value':!0x1}),'isValidationPending':Object['freeze']({'type':Boolean,'value':!0x1}),'isQueuedForValidation':Object['freeze']({'type':Boolean,'value':!0x1})}),UploaderBlock=class e extends ActivityBlock{static ['extSrcList'];static ['sourceTypes'];['couldBeCtxOwner']=!0x1;['isCtxOwner']=!0x1;['_unobserveCollection'];['_unobserveCollectionProperties'];['init$']=uploaderBlockCtx(this);get['hasCtxOwner'](){return this['hasBlockInCtx'](_0x4fe3cc=>_0x4fe3cc instanceof e&&(_0x4fe3cc['isCtxOwner']&&_0x4fe3cc['isConnected']&&_0x4fe3cc!==this));}['initCallback'](){if(super['initCallback'](),!this['has']('*uploadCollection')){const _0x43ac39=new TypedCollection({'typedSchema':uploadEntrySchema,'watchList':['uploadProgress','uploadError','fileInfo','errors','cdnUrl','isUploading','isValidationPending']});this['add']('*uploadCollection',_0x43ac39);}this['has']('*publicApi')||this['add']('*publicApi',new UploaderPublicApi(this)),this['has']('*validationManager')||this['add']('*validationManager',new ValidationManager(this)),!this['hasCtxOwner']&&this['couldBeCtxOwner']&&this['_initCtxOwner']();}get['validationManager'](){if(!this['has']('*validationManager'))throw new Error('Unexpected\x20error:\x20ValidationManager\x20is\x20not\x20initialized');return this['$']['*validationManager'];}get['api'](){if(!this['has']('*publicApi'))throw new Error('Unexpected\x20error:\x20UploaderPublicApi\x20is\x20not\x20initialized');return this['$']['*publicApi'];}['getAPI'](){return this['api'];}get['uploadCollection'](){if(!this['has']('*uploadCollection'))throw new Error('Unexpected\x20error:\x20TypedCollection\x20is\x20not\x20initialized');return this['$']['*uploadCollection'];}['destroyCtxCallback'](){this['uploadCollection']['destroy'](),this['$']['*uploadCollection']=null,super['destroyCtxCallback']();}['disconnectedCallback'](){super['disconnectedCallback'](),this['isCtxOwner']&&this['_unobserveUploadCollection']();}['connectedCallback'](){super['connectedCallback'](),this['isCtxOwner']&&this['_observeUploadCollection']();}['destroyCallback'](){super['destroyCallback'](),this['_flushOutputItems']['cancel']();}['_initCtxOwner'](){this['isCtxOwner']=!0x0,this['_observeUploadCollection'](),this['subConfigValue']('maxConcurrentRequests',_0x1d533e=>{this['$']['*uploadQueue']['concurrency']=Number(_0x1d533e)||0x1;}),this['$']['*secureUploadsManager']||(this['$']['*secureUploadsManager']=new SecureUploadsManager(this));}['_observeUploadCollection'](){this['_unobserveUploadCollection'](),this['_unobserveCollection']=this['uploadCollection']['observeCollection'](this['_handleCollectionUpdate']),this['_unobserveCollectionProperties']=this['uploadCollection']['observeProperties'](this['_handleCollectionPropertiesUpdate']);}['_unobserveUploadCollection'](){this['_unobserveCollectionProperties']?.(),this['_unobserveCollection']?.(),this['_unobserveCollectionProperties']=void 0x0,this['_unobserveCollection']=void 0x0;}async['_createGroup'](_0x3a2d45){const _0x621b94=await this['getUploadClientOptions'](),_0x406949=_0x3a2d45['allEntries']['map'](_0x57b267=>_0x57b267['uuid']+(_0x57b267['cdnUrlModifiers']?'/'+_0x57b267['cdnUrlModifiers']:'')),_0x349e7d=new AbortController(),_0x36b844=await uploadFileGroup(_0x406949,{..._0x621b94,'signal':_0x349e7d['signal']});if(this['$']['*collectionState']!==_0x3a2d45)return void _0x349e7d['abort']();this['$']['*groupInfo']=_0x36b844;const _0x990f9b=this['api']['getOutputCollectionState']();this['emit'](EventType['GROUP_CREATED'],_0x990f9b),this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['$']['*collectionState']=_0x990f9b;}['_flushOutputItems']=debounce(async()=>{if(this['getOutputData']()['length']!==this['uploadCollection']['size'])return;const e=this['api']['getOutputCollectionState']();this['$']['*collectionState']=e,this['emit'](EventType['CHANGE'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}),this['cfg']['groupOutput']&&e['totalCount']>0x0&&'success'===e['status']&&this['_createGroup'](e);},0x12c);['_handleCollectionUpdate']=(_0x4b996f,_0x4e8738,_0x4cd998)=>{(_0x4e8738['size']||_0x4cd998['size'])&&(this['$']['*groupInfo']=null),this['validationManager']['runFileValidators']('add',[..._0x4e8738]['map'](_0x2e1f22=>_0x2e1f22['uid']));for(const _0x22d805 of _0x4e8738)_0x22d805['getValue']('silent')||this['emit'](EventType['FILE_ADDED'],this['api']['getOutputItem'](_0x22d805['uid']));this['validationManager']['runCollectionValidators']();for(const _0x1fada0 of _0x4cd998){this['$']['*uploadTrigger']['delete'](_0x1fada0['uid']),this['validationManager']['cleanupValidationForEntry'](_0x1fada0),_0x1fada0['getValue']('abortController')?.['abort'](),_0x1fada0['setMultipleValues']({'isRemoved':!0x0,'abortController':null,'isUploading':!0x1,'uploadProgress':0x0});const _0x3bee94=_0x1fada0?.['getValue']('thumbUrl');_0x3bee94&&URL['revokeObjectURL'](_0x3bee94),this['emit'](EventType['FILE_REMOVED'],this['api']['getOutputItem'](_0x1fada0['uid']));}this['$']['*uploadList']=_0x4b996f['map'](_0x23b605=>({'uid':_0x23b605})),this['_flushCommonUploadProgress'](),this['_flushOutputItems']();};['_handleCollectionPropertiesUpdate']=_0x5cca1a=>{this['_flushOutputItems']();const _0x32bab0=this['uploadCollection'],_0x15a372=[...new Set(Object['entries'](_0x5cca1a)['filter'](([_0x522002])=>['uploadError','fileInfo','cdnUrl','cdnUrlModifiers']['includes'](_0x522002))['flatMap'](([,_0x5c8ac1])=>[..._0x5c8ac1]))];if(_0x15a372['length']>0x0&&setTimeout(()=>{const _0x59fd58=_0x15a372['filter'](_0x4cb278=>_0x5cca1a['fileInfo']?.['has'](_0x4cb278)&&!!Data['getCtx'](_0x4cb278)['store']['fileInfo']);_0x59fd58['length']>0x0&&this['validationManager']['runFileValidators']('upload',_0x59fd58),this['validationManager']['runFileValidators']('change',_0x15a372);}),_0x5cca1a['uploadProgress']){for(const _0x34f4c1 of _0x5cca1a['uploadProgress']){const {isUploading:_0x1beb65,silent:_0x46d358}=Data['getCtx'](_0x34f4c1)['store'];_0x1beb65&&!_0x46d358&&this['emit'](EventType['FILE_UPLOAD_PROGRESS'],this['api']['getOutputItem'](_0x34f4c1));}this['_flushCommonUploadProgress']();}if(_0x5cca1a['isUploading'])for(const _0x677623 of _0x5cca1a['isUploading']){const {isUploading:_0x3d6bc5,silent:_0x108e2b}=Data['getCtx'](_0x677623)['store'];_0x3d6bc5&&!_0x108e2b&&this['emit'](EventType['FILE_UPLOAD_START'],this['api']['getOutputItem'](_0x677623));}if(_0x5cca1a['fileInfo']){for(const _0xd9638b of _0x5cca1a['fileInfo']){const {fileInfo:_0x3bfb5e,silent:_0x5a5ce5}=Data['getCtx'](_0xd9638b)['store'];_0x3bfb5e&&!_0x5a5ce5&&this['emit'](EventType['FILE_UPLOAD_SUCCESS'],this['api']['getOutputItem'](_0xd9638b));}this['cfg']['cropPreset']&&this['setInitialCrop'](),this['cfg']['cloudImageEditorAutoOpen']&&this['openCloudImageEditor']();}if(_0x5cca1a['errors']){this['validationManager']['runCollectionValidators']();for(const _0x5f2fe5 of _0x5cca1a['errors']){const {errors:_0x4477d1}=Data['getCtx'](_0x5f2fe5)['store'];_0x4477d1['length']>0x0&&(this['emit'](EventType['FILE_UPLOAD_FAILED'],this['api']['getOutputItem'](_0x5f2fe5)),this['emit'](EventType['COMMON_UPLOAD_FAILED'],()=>this['api']['getOutputCollectionState'](),{'debounce':!0x0}));}const _0x1f33b2=_0x32bab0['findItems'](_0x3562dd=>!!_0x3562dd['getValue']('fileInfo')),_0x4967ff=_0x32bab0['findItems'](_0x54e0bc=>_0x54e0bc['getValue']('errors')['length']>0x0);_0x32bab0['size']>0x0&&0x0===_0x4967ff['length']&&_0x32bab0['size']===_0x1f33b2['length']&&0x0===this['$']['*collectionErrors']['length']&&this['emit'](EventType['COMMON_UPLOAD_SUCCESS'],this['api']['getOutputCollectionState']());}if(_0x5cca1a['cdnUrl']){const _0x4bc5d5=[..._0x5cca1a['cdnUrl']]['filter'](_0x5a8724=>!!this['uploadCollection']['read'](_0x5a8724)?.['getValue']('cdnUrl'));_0x4bc5d5['forEach'](_0x147963=>{this['emit'](EventType['FILE_URL_CHANGED'],this['api']['getOutputItem'](_0x147963));}),this['$']['*groupInfo']=null;}};['_flushCommonUploadProgress']=()=>{let _0x555330=0x0;const _0xe4a32c=[...this['$']['*uploadTrigger']]['filter'](_0x34730a=>!!this['uploadCollection']['read'](_0x34730a));_0xe4a32c['forEach'](_0x42a984=>{const _0xc1502d=this['uploadCollection']['readProp'](_0x42a984,'uploadProgress');'number'==typeof _0xc1502d&&(_0x555330+=_0xc1502d);});const _0x257c93=_0xe4a32c['length']?Math['round'](_0x555330/_0xe4a32c['length']):0x0;this['$']['*commonProgress']!==_0x257c93&&(this['$']['*commonProgress']=_0x257c93,this['emit'](EventType['COMMON_UPLOAD_PROGRESS'],this['api']['getOutputCollectionState']()));};['openCloudImageEditor'](){const [_0x460915]=this['uploadCollection']['findItems'](_0x2c355c=>!!_0x2c355c['getValue']('fileInfo')&&_0x2c355c['getValue']('isImage'))['map'](_0x4f4d2c=>this['uploadCollection']['read'](_0x4f4d2c));_0x460915&&0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x3eb69d=>_0x3eb69d['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x460915['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']));}['setInitialCrop'](){const _0x28b65c=parseCropPreset(this['cfg']['cropPreset']);if(_0x28b65c){const [_0x56e082]=_0x28b65c,_0x4d31ed=this['uploadCollection']['findItems'](_0x54c24b=>!!_0x54c24b['getValue']('fileInfo')&&_0x54c24b['getValue']('isImage')&&!_0x54c24b['getValue']('cdnUrlModifiers')?.['includes']('/crop/'))['map'](_0x323423=>this['uploadCollection']['read'](_0x323423))['filter'](Boolean);for(const _0x5af2de of _0x4d31ed){const _0x4616fb=_0x5af2de['getValue']('fileInfo');if(!_0x4616fb||!_0x4616fb['imageInfo']){console['warn']('Failed\x20to\x20get\x20image\x20info\x20for\x20entry',_0x5af2de['uid']);continue;}const {width:_0x1fca95,height:_0x3bfd6a}=_0x4616fb['imageInfo'],_0x5d56c3=calculateMaxCenteredCropFrame(_0x1fca95,_0x3bfd6a,'number'==typeof _0x56e082?.['width']&&'number'==typeof _0x56e082?.['height']&&_0x56e082['width']>0x0&&_0x56e082['height']>0x0?_0x56e082['width']/_0x56e082['height']:0x1),_0x5507aa=createCdnUrlModifiers('crop/'+_0x5d56c3['width']+'x'+_0x5d56c3['height']+'/'+_0x5d56c3['x']+','+_0x5d56c3['y'],'preview'),_0x51e89d=_0x5af2de['getValue']('cdnUrl');_0x51e89d?(_0x5af2de['setMultipleValues']({'cdnUrlModifiers':_0x5507aa,'cdnUrl':createCdnUrl(_0x51e89d,_0x5507aa)}),0x1===this['uploadCollection']['size']&&this['cfg']['useCloudImageEditor']&&this['hasBlockInCtx'](_0x12288e=>_0x12288e['activityType']===ActivityBlock['activities']['CLOUD_IMG_EDIT'])&&(this['$']['*currentActivityParams']={'internalId':_0x5af2de['uid']},this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'],this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']))):console['warn']('Failed\x20to\x20get\x20cdnUrl\x20for\x20entry',_0x5af2de['uid']);}}}async['getMetadataFor'](_0x511df9){const _0x392a40=this['cfg']['metadata']||void 0x0;if('function'==typeof _0x392a40){const _0x345f67=this['api']['getOutputItem'](_0x511df9);return await _0x392a40(_0x345f67);}return _0x392a40;}async['getUploadClientOptions'](){const _0x5b990e=this['$']['*secureUploadsManager'],_0x488fef=await _0x5b990e['getSecureToken']()['catch'](()=>null);return{'store':this['cfg']['store'],'publicKey':this['cfg']['pubkey'],'baseCDN':this['cfg']['cdnCname'],'baseURL':this['cfg']['baseUrl'],'userAgent':customUserAgent,'integration':this['cfg']['userAgentIntegration'],'secureSignature':_0x488fef?.['secureSignature'],'secureExpire':_0x488fef?.['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 this['uploadCollection']['items']()['map'](_0x4ae9ea=>this['api']['getOutputItem'](_0x4ae9ea));}};UploaderBlock['extSrcList']=Object['freeze']({...ExternalUploadSource}),UploaderBlock['sourceTypes']=Object['freeze']({...UploadSource});var ActivityHeader=class extends ActivityBlock{},canUsePermissionsApi=()=>void 0x0!==navigator['permissions'],DEFAULT_VIDEO_CONFIG={'width':{'ideal':0x780},'height':{'ideal':0x438},'frameRate':{'ideal':0x1e}},DEFAULT_PERMISSIONS=['camera','microphone'];function formatTime(_0x239fd9){return Math['floor'](_0x239fd9/0x3c)['toString']()['padStart'](0x2,'0')+':'+Math['floor'](_0x239fd9%0x3c)['toString']()['padStart'](0x2,'0');}var DEFAULT_PICTURE_FORMAT='image/jpeg',DEFAULT_VIDEO_FORMAT='video/webm',CameraSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CAMERA'];['_unsubPermissions']=null;['_capturing']=!0x1;['_chunks']=[];['_mediaRecorder']=null;['_stream']=null;['_selectedAudioId']=null;['_selectedCameraId']=null;['_activeTab']=null;['_options']={};['_canvas']=null;['_ctx']=null;['_cameraDevices']=[];['_audioDevices']=[];['_permissionResponses']={};constructor(){super(),this['init$']={...this['init$'],'video':null,'videoTransformCss':null,'videoHidden':!0x0,'messageHidden':!0x0,'requestBtnHidden':canUsePermissionsApi(),'cameraSelectOptions':null,'cameraSelectHidden':!0x0,'l10nMessage':'','switcher':null,'panels':null,'timer':null,'timerHidden':!0x0,'cameraHidden':!0x0,'cameraActionsHidden':!0x0,'audioSelectOptions':null,'audioSelectHidden':!0x0,'audioSelectDisabled':!0x0,'audioToggleMicrophoneHidden':!0x0,'tabCameraHidden':!0x0,'tabVideoHidden':!0x0,'currentIcon':'camera-full','currentTimelineIcon':'play','toggleMicrophoneIcon':'microphone','_startTime':0x0,'_elapsedTime':0x0,'_animationFrameId':null,'mutableClassButton':'uc-shot-btn\x20uc-camera-action','onCameraSelectChange':_0x1638a9=>{const _0x4dbb6b=_0x1638a9['target'];_0x4dbb6b&&(this['_selectedCameraId']=_0x4dbb6b['value'],this['_capture']());},'onAudioSelectChange':_0x25c058=>{const _0x3d38ad=_0x25c058['target'];_0x3d38ad&&(this['_selectedAudioId']=_0x3d38ad['value'],this['_capture']());},'onCancel':()=>{this['historyBack']();},'onShot':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'shot-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_shot']();},'onRequestPermissions':()=>this['_capture'](),'onStartCamera':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'start-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_chooseActionWithCamera']();},'onStartRecording':()=>this['_startRecording'](),'onStopRecording':()=>this['_stopRecording'](),'onToggleRecording':()=>this['_toggleRecording'](),'onToggleAudio':()=>this['_toggleEnableAudio'](),'onRetake':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'retake-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_retake']();},'onAccept':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'accept-camera','node':this['tagName'],'tabId':this['_activeTab']}}}),this['_accept']();},'onClickTab':_0x542355=>{const _0x233f4=_0x542355['currentTarget'],_0x1add00=_0x233f4?.['getAttribute']('data-id');_0x1add00&&this['_handleActiveTab'](_0x1add00);}};}['_chooseActionWithCamera']=()=>{if(this['_activeTab']===CameraSourceTypes['PHOTO']&&this['_shot'](),this['_activeTab']===CameraSourceTypes['VIDEO']){if('recording'===this['_mediaRecorder']?.['state'])return void this['_stopRecording']();this['_startRecording']();}};['_updateTimer']=()=>{const _0x30a239=Math['floor']((performance['now']()-this['$']['_startTime']+this['$']['_elapsedTime'])/0x3e8);if('number'==typeof this['cfg']['maxVideoRecordingDuration']&&this['cfg']['maxVideoRecordingDuration']>0x0){const _0x3da320=this['cfg']['maxVideoRecordingDuration']-_0x30a239;if(_0x3da320<=0x0){const _0x3d0b40=this['ref']['timer'];return _0x3d0b40&&(_0x3d0b40['textContent']=formatTime(_0x3da320)),void this['_stopRecording']();}const _0x2e0905=this['ref']['timer'];_0x2e0905&&(_0x2e0905['textContent']=formatTime(_0x3da320));}else{const _0x5c2f94=this['ref']['timer'];_0x5c2f94&&(_0x5c2f94['textContent']=formatTime(_0x30a239));}this['_animationFrameId']=requestAnimationFrame(this['_updateTimer']);};['_startTimer']=()=>{this['$']['_startTime']=performance['now'](),this['$']['_elapsedTime']=0x0,this['_updateTimer']();};['_stopTimer']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_startTimeline']=()=>{const _0x68569f=this['ref']['video'];if(!_0x68569f)return;const _0x33e3ba=_0x68569f['currentTime'],_0x10e7a0=_0x68569f['duration']||0x1,_0x28492c=this['ref']['line'];_0x28492c&&(_0x28492c['style']['transform']='scaleX('+_0x33e3ba/_0x10e7a0+')');const _0x1de9af=this['ref']['timer'];_0x1de9af&&(_0x1de9af['textContent']=formatTime(_0x33e3ba)),this['_animationFrameId']=requestAnimationFrame(this['_startTimeline']);};['_stopTimeline']=()=>{this['_animationFrameId']&&cancelAnimationFrame(this['_animationFrameId']);};['_animationFrameId']=null;['_startRecording']=()=>{try{this['_chunks']=[],this['_options']={...this['cfg']['mediaRecorderOptions']};const {mimeType:_0x49156f}=this['cfg']['mediaRecorderOptions']||{};_0x49156f&&MediaRecorder['isTypeSupported'](_0x49156f)?this['_options']['mimeType']=_0x49156f:MediaRecorder['isTypeSupported'](DEFAULT_VIDEO_FORMAT)?this['_options']['mimeType']=DEFAULT_VIDEO_FORMAT:this['_options']['mimeType']='video/mp4',this['_stream']&&(this['_mediaRecorder']=new MediaRecorder(this['_stream'],this['_options']),this['_mediaRecorder']['start'](),this['_mediaRecorder']['addEventListener']('dataavailable',_0x5b4331=>{this['_chunks']['push'](_0x5b4331['data']);}),this['_startTimer'](),this['classList']['add']('uc-recording'),this['_setCameraState'](CameraSourceEvents['PLAY']));}catch(_0x18e63b){console['error']('Failed\x20to\x20start\x20recording',_0x18e63b),this['telemetryManager']['sendEventError'](_0x18e63b,'camera\x20recording.\x20Failed\x20to\x20start\x20recording');}};['_stopRecording']=()=>{this['_mediaRecorder']?.['addEventListener']('stop',()=>{this['_previewVideo'](),this['_stopTimer'](),this['_setCameraState'](CameraSourceEvents['STOP']);}),this['_mediaRecorder']?.['stop'](),this['classList']['remove']('uc-recording'),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'stop-camera','node':this['tagName'],'tabId':this['_activeTab']}}});};['_toggleRecording']=()=>{'recording'!==this['_mediaRecorder']?.['state']&&(!this['ref']['video']['paused']&&!this['ref']['video']['ended']&&this['ref']['video']['readyState']>0x2?this['ref']['video']['pause']():this['ref']['video']['paused']&&this['ref']['video']['play']());};['_toggleEnableAudio']=()=>{this['_stream']?.['getAudioTracks']()['forEach'](_0x4a5a04=>{_0x4a5a04['enabled']=!_0x4a5a04['enabled'],this['$']['toggleMicrophoneIcon']=_0x4a5a04['enabled']?'microphone':'microphone-mute',this['$']['audioSelectDisabled']=!_0x4a5a04['enabled'];});};['_previewVideo']=()=>{try{const _0x544f2c=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x4ff00b=URL['createObjectURL'](_0x544f2c),_0x19c327=this['ref']['video'];if(!_0x19c327)return;_0x19c327['muted']=!0x1,_0x19c327['volume']=0x1,this['$']['video']=null,_0x19c327['src']=_0x4ff00b,_0x19c327['addEventListener']('play',()=>{this['_startTimeline'](),this['set$']({'currentTimelineIcon':'pause'});}),_0x19c327['addEventListener']('pause',()=>{this['set$']({'currentTimelineIcon':'play'}),this['_stopTimeline']();});}catch(_0x4873d9){console['error']('Failed\x20to\x20preview\x20video',_0x4873d9),this['telemetryManager']['sendEventError'](_0x4873d9,'camera\x20previewing.\x20Failed\x20to\x20preview\x20video');}};['_retake']=()=>{if(this['_setCameraState'](CameraSourceEvents['RETAKE']),this['_activeTab']===CameraSourceTypes['VIDEO']){this['$']['video']=this['_stream'];const _0x546526=this['ref']['video'];_0x546526&&(_0x546526['muted']=!0x0);}this['ref']['video']?.['play']?.();};['_accept']=()=>{if(this['_setCameraState'](CameraSourceEvents['ACCEPT']),this['_activeTab']===CameraSourceTypes['PHOTO'])return void this['_canvas']?.['toBlob'](_0xb6ce1e=>{if(!_0xb6ce1e)return;const _0x4b7cd7=this['_createFile']('camera','jpeg',DEFAULT_PICTURE_FORMAT,_0xb6ce1e);this['_toSend'](_0x4b7cd7);},DEFAULT_PICTURE_FORMAT);const _0x480056=new Blob(this['_chunks'],{'type':this['_mediaRecorder']?.['mimeType']}),_0x1c6033=this['_guessExtensionByMime'](this['_mediaRecorder']?.['mimeType']),_0x4fb5c8=this['_createFile']('video',_0x1c6033,'video/'+_0x1c6033,_0x480056);this['_toSend'](_0x4fb5c8),this['_chunks']=[];};['_handlePhoto']=_0x2341be=>{_0x2341be===CameraSourceEvents['SHOT']&&this['set$']({'tabVideoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'cameraActionsHidden':!0x1,'cameraSelectHidden':!0x0}),_0x2341be!==CameraSourceEvents['RETAKE']&&_0x2341be!==CameraSourceEvents['ACCEPT']||this['set$']({'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_handleVideo']=_0x5c1169=>{_0x5c1169===CameraSourceEvents['PLAY']&&this['set$']({'timerHidden':!0x1,'tabCameraHidden':!0x0,'cameraSelectHidden':!0x0,'audioSelectHidden':!0x0,'currentTimelineIcon':'pause','currentIcon':'square','mutableClassButton':'uc-shot-btn\x20uc-camera-action\x20uc-stop-record'}),_0x5c1169===CameraSourceEvents['STOP']&&this['set$']({'timerHidden':!0x1,'cameraHidden':!0x0,'audioToggleMicrophoneHidden':!0x0,'cameraActionsHidden':!0x1}),_0x5c1169!==CameraSourceEvents['RETAKE']&&_0x5c1169!==CameraSourceEvents['ACCEPT']||this['set$']({'timerHidden':!0x0,'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'cameraHidden':!0x1,'cameraActionsHidden':!0x0,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording'],'currentIcon':'video-camera-full','mutableClassButton':'uc-shot-btn\x20uc-camera-action','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'cameraSelectHidden':this['_cameraDevices']['length']<=0x1});};['_setCameraState']=_0x3431ee=>{this['_activeTab']!==CameraSourceTypes['PHOTO']||'shot'!==_0x3431ee&&'retake'!==_0x3431ee&&'accept'!==_0x3431ee||this['_handlePhoto'](_0x3431ee),this['_activeTab']!==CameraSourceTypes['VIDEO']||'play'!==_0x3431ee&&'stop'!==_0x3431ee&&'retake'!==_0x3431ee&&'accept'!==_0x3431ee&&'pause'!==_0x3431ee&&'resume'!==_0x3431ee||this['_handleVideo'](_0x3431ee);};['_shot'](){if(this['_setCameraState']('shot'),this['_canvas']=document['createElement']('canvas'),this['_ctx']=this['_canvas']['getContext']('2d'),!this['_ctx'])throw new Error('Failed\x20to\x20get\x20canvas\x20context');this['_canvas']['height']=this['ref']['video']['videoHeight'],this['_canvas']['width']=this['ref']['video']['videoWidth'],this['cfg']['cameraMirror']&&(this['_ctx']['translate'](this['_canvas']['width'],0x0),this['_ctx']['scale'](-0x1,0x1)),this['_ctx']['drawImage'](this['ref']['video'],0x0,0x0),this['ref']['video']['pause']();}['_handleActiveTab']=_0x3f24a2=>{const _0x218572=this['ref']['switcher'];_0x218572?.['querySelectorAll']('button')['forEach'](_0x2a34e7=>{_0x2a34e7['classList']['toggle']('uc-active',_0x2a34e7['getAttribute']('data-id')===_0x3f24a2);}),_0x3f24a2===CameraSourceTypes['PHOTO']&&this['set$']({'currentIcon':'camera-full','audioSelectHidden':!0x0,'audioToggleMicrophoneHidden':!0x0}),_0x3f24a2===CameraSourceTypes['VIDEO']&&this['set$']({'currentTimelineIcon':'play','currentIcon':'video-camera-full','audioSelectHidden':!this['cfg']['enableAudioRecording']||this['_audioDevices']['length']<=0x1,'audioToggleMicrophoneHidden':!this['cfg']['enableAudioRecording']}),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'camera-tab-switch','node':this['tagName'],'tabId':_0x3f24a2}}}),this['_activeTab']=_0x3f24a2;};['_createFile']=(_0x375183,_0x11b8c6,_0x524108,_0x3f4720)=>{const _0x84119b=Date['now']();return new File([_0x3f4720],_0x375183+'-'+_0x84119b+'.'+_0x11b8c6,{'lastModified':_0x84119b,'type':_0x524108});};['_guessExtensionByMime'](_0x5a546f){const _0x49f2d0={'mp4':'mp4','ogg':'ogg','webm':'webm','quicktime':'mov','x-matroska':'mkv'};if(''===_0x5a546f)return'webm';if(_0x5a546f){const _0xe6ba53=_0x5a546f['split']('/');if('video'===_0xe6ba53?.[0x0]){const _0x251a8b=_0xe6ba53['slice'](0x1)['join']('/'),_0x13178f=_0x251a8b?.['split'](';')[0x0];if(_0x13178f&&_0x49f2d0[_0x13178f])return _0x49f2d0[_0x13178f];}}return'avi';}['_toSend']=_0x15bb4f=>{this['api']['addFileFromObject'](_0x15bb4f,{'source':UploadSource['CAMERA']}),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']);};get['_cameraModes'](){return stringToArray(this['cfg']['cameraModes'])['filter'](_0x52f9b8=>_0x52f9b8===CameraSourceTypes['PHOTO']||_0x52f9b8===CameraSourceTypes['VIDEO']);}['_setPermissionsState']=debounce(e=>{this['classList']['toggle']('uc-initialized','granted'===e);const i=this['_activeTab']===CameraSourceTypes['VIDEO']&&this['cfg']['enableAudioRecording'],n=this['_activeTab']===CameraSourceTypes['PHOTO']?'camera-full':'video-camera-full';'granted'===e?this['set$']({'videoHidden':!0x1,'cameraHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'messageHidden':!0x0,'timerHidden':!0x0,'currentIcon':n,'audioToggleMicrophoneHidden':!i,'audioSelectHidden':!i}):'prompt'===e?(this['$']['l10nMessage']='camera-permissions-prompt',this['set$']({'videoHidden':!0x0,'cameraHidden':!0x0,'tabCameraHidden':!0x0,'messageHidden':!0x1}),this['_stopCapture']()):(this['$']['l10nMessage']='camera-permissions-denied',this['set$']({'videoHidden':!0x0,'messageHidden':!0x1,'tabCameraHidden':!this['_cameraModes']['includes'](CameraSourceTypes['PHOTO']),'tabVideoHidden':!this['_cameraModes']['includes'](CameraSourceTypes['VIDEO']),'cameraActionsHidden':!0x0,'mutableClassButton':'uc-shot-btn\x20uc-camera-action'}),this['_stopCapture']());},0x12c);['_makeStreamInactive']=()=>{if(!this['_stream'])return!0x1;const _0x220c12=this['_stream']?.['getAudioTracks'](),_0x2ccf5c=this['_stream']?.['getVideoTracks']();return _0x220c12['forEach'](_0xdb6b1b=>{_0xdb6b1b['stop']();}),_0x2ccf5c['forEach'](_0x3a8845=>{_0x3a8845['stop']();}),!0x0;};['_stopCapture']=()=>{if(this['_capturing']){this['ref']['video']['volume']=0x0;const _0x483429=this['$']['video']?.['getTracks']?.();_0x483429?.[0x0]?.['stop'](),this['$']['video']=null,this['_makeStreamInactive'](),this['_stopTimer'](),this['_capturing']=!0x1;}};['_capture']=async()=>{const _0x314234={'video':{...DEFAULT_VIDEO_CONFIG},'audio':!!this['cfg']['enableAudioRecording']&&{}};this['_selectedCameraId']&&(_0x314234['video']={'deviceId':{'exact':this['_selectedCameraId']}}),this['_selectedAudioId']&&this['cfg']['enableAudioRecording']&&(_0x314234['audio']={'deviceId':{'exact':this['_selectedAudioId']}}),this['ref']['video']&&(this['ref']['video']['volume']=0x0);try{this['_setPermissionsState']('prompt'),this['_stream']=await navigator['mediaDevices']['getUserMedia'](_0x314234),this['_stream']['addEventListener']('inactive',()=>{this['_setPermissionsState']('denied');}),this['$']['video']=this['_stream'],this['_capturing']=!0x0,this['_setPermissionsState']('granted');}catch(_0x101749){this['_setPermissionsState']('denied'),console['log']('Failed\x20to\x20capture\x20camera',_0x101749),this['telemetryManager']['sendEventError'](_0x101749,'camera\x20capturing.\x20Failed\x20to\x20capture\x20camera');}};['_handlePermissionsChange']=()=>{this['_capture']();};['_permissionAccess']=async()=>{try{for(const _0x117f7d of DEFAULT_PERMISSIONS){const _0x44abc5=await navigator['permissions']['query']({'name':_0x117f7d});this['_permissionResponses'][_0x117f7d]=_0x44abc5,_0x44abc5['addEventListener']('change',this['_handlePermissionsChange']);}}catch(_0x440073){console['log']('Failed\x20to\x20use\x20permissions\x20API.\x20Fallback\x20to\x20manual\x20request\x20mode.',_0x440073),this['telemetryManager']['sendEventError'](_0x440073,'camera\x20permissions.\x20Failed\x20to\x20use\x20permissions\x20API'),this['_capture']();}};['_getPermission']=()=>{};['_requestDeviceAccess']=async()=>{try{await navigator['mediaDevices']['getUserMedia']({'video':!0x0,'audio':this['cfg']['enableAudioRecording']}),await this['_getDevices'](),navigator['mediaDevices']['addEventListener']('devicechange',this['_getDevices']);}catch(_0xfd8757){this['telemetryManager']['sendEventError'](_0xfd8757,'camera\x20devices.\x20Failed\x20to\x20get\x20user\x20media'),console['log']('Failed\x20to\x20get\x20user\x20media',_0xfd8757);}};['_getDevices']=async()=>{try{const _0x5dcb14=await navigator['mediaDevices']['enumerateDevices']();this['_cameraDevices']=_0x5dcb14['filter'](_0x4578d3=>'videoinput'===_0x4578d3['kind'])['map']((_0x50ff44,_0x2c0b2c)=>({'text':_0x50ff44['label']['trim']()||this['l10n']('caption-camera')+'\x20'+(_0x2c0b2c+0x1),'value':_0x50ff44['deviceId']})),this['_audioDevices']=this['cfg']['enableAudioRecording']?_0x5dcb14['filter'](_0x5a48e3=>'audioinput'===_0x5a48e3['kind'])['map'](_0x1fa97b=>({'text':_0x1fa97b['label']['trim'](),'value':_0x1fa97b['deviceId']})):[],this['_cameraDevices']['length']>0x1&&this['set$']({'cameraSelectOptions':this['_cameraDevices'],'cameraSelectHidden':!0x1}),this['_selectedCameraId']=this['_cameraDevices'][0x0]?.['value']??null,this['_audioDevices']['length']>0x1&&this['set$']({'audioSelectOptions':this['_audioDevices'],'audioSelectHidden':!0x1}),this['_selectedAudioId']=this['_audioDevices'][0x0]?.['value']??null;}catch(_0x33a41d){this['telemetryManager']['sendEventError'](_0x33a41d,'camera\x20devices.\x20Failed\x20to\x20get\x20devices'),console['log']('Failed\x20to\x20get\x20devices',_0x33a41d);}};['_onActivate']=async()=>{await this['_permissionAccess'](),await this['_requestDeviceAccess'](),await this['_capture'](),this['_handleCameraModes'](this['_cameraModes']);};['_onDeactivate']=async()=>{this['_unsubPermissions']&&this['_unsubPermissions'](),(Boolean(window['chrome'])||this['_setPermissionsState']('denied'),this['_stopCapture']());};['_handleCameraModes']=_0x235b6f=>{this['$']['tabVideoHidden']=!_0x235b6f['includes'](CameraSourceTypes['VIDEO']),this['$']['tabCameraHidden']=!_0x235b6f['includes'](CameraSourceTypes['PHOTO']);const _0x420c90=_0x235b6f[0x0];!_0x420c90||this['_activeTab']&&_0x235b6f['includes'](this['_activeTab'])||this['_handleActiveTab'](_0x420c90);};['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':this['_onActivate'],'onDeactivate':this['_onDeactivate']}),this['subConfigValue']('cameraMirror',_0x2795da=>{this['$']['videoTransformCss']=_0x2795da?'scaleX(-1)':null;}),this['subConfigValue']('enableAudioRecording',_0x57413b=>{this['$']['audioToggleMicrophoneHidden']=!_0x57413b,this['$']['audioSelectDisabled']=!_0x57413b;}),this['subConfigValue']('cameraModes',_0x9e71b7=>{if(!this['isActivityActive'])return;const _0x364030=deserializeCsv(_0x9e71b7);this['_handleCameraModes'](_0x364030['filter'](_0x329557=>_0x329557===CameraSourceTypes['PHOTO']||_0x329557===CameraSourceTypes['VIDEO']));});}['_destroy'](){for(const _0x1937a1 of DEFAULT_PERMISSIONS)this['_permissionResponses'][_0x1937a1]?.['removeEventListener']('change',this['_handlePermissionsChange']);navigator['mediaDevices']?.['removeEventListener']('devicechange',this['_getDevices']);}async['destroyCallback'](){super['destroyCallback'](),this['_destroy']();}};CameraSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:back\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!cameraSelectHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-camera\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-select\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20cameraSelectOptions;\x20@hidden:\x20cameraSelectHidden;\x20onchange:\x20onCameraSelectChange\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<video\x0a\x20\x20\x20\x20\x20\x20muted\x0a\x20\x20\x20\x20\x20\x20autoplay\x0a\x20\x20\x20\x20\x20\x20playsinline\x0a\x20\x20\x20\x20\x20\x20set=\x22srcObject:\x20video;\x20style.transform:\x20videoTransformCss;\x20@hidden:\x20videoHidden\x22\x0a\x20\x20\x20\x20\x20\x20ref=\x22video\x22\x0a\x20\x20\x20\x20></video>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-message-box\x22\x20set=\x22@hidden:\x20messageHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22l10nMessage\x22></span>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRequestPermissions;\x20@hidden:\x20requestBtnHidden\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22camera-permissions-request\x22\x0a\x20\x20\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-controls\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22switcher\x22\x20class=\x22uc-switcher\x22\x20set=\x22@hidden:!timerHidden\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22photo\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20\x20@hidden:\x20tabCameraHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22video\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-switch\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onClickTab;\x20@hidden:\x20tabVideoHidden\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22video-camera\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-secondary-btn\x20uc-recording-timer\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:timerHidden;\x20onclick:\x20onToggleRecording\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentTimelineIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22timer\x22>\x2000:00\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20ref=\x22line\x22\x20class=\x22uc-line\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-camera-actions\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20cameraActionsHidden\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20onRetake\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Retake\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAccept\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-testid=\x22accept\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Accept\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-shot-btn\x20uc-camera-action\x22\x0a\x20\x20\x20\x20\x20\x20data-testid=\x22shot\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onStartCamera;\x20@class:\x20mutableClassButton;\x20@hidden:\x20cameraHidden;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20currentIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<div\x20class=\x22uc-select\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-btn-microphone\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onToggleAudio;\x20@hidden:\x20audioToggleMicrophoneHidden;\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:toggleMicrophoneIcon\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20\x20\x20<uc-select\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-audio-select\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22$.options:\x20audioSelectOptions;\x20onchange:\x20onAudioSelectChange;\x20@hidden:\x20audioSelectHidden;\x20@disabled:\x20audioSelectDisabled\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-select>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';var TRANSPARENT_PIXEL_SRC='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';function normalize(..._0x4a68b5){return _0x4a68b5['reduce']((_0x4cc4e0,_0x218e01)=>{if('string'==typeof _0x218e01)return _0x4cc4e0[_0x218e01]=!0x0,_0x4cc4e0;for(const _0x31b7f6 of Object['keys'](_0x218e01))_0x4cc4e0[_0x31b7f6]=_0x218e01[_0x31b7f6];return _0x4cc4e0;},{});}function classNames(..._0x5a87fd){const _0x35a3ed=normalize(..._0x5a87fd);return Object['keys'](_0x35a3ed)['reduce']((_0x2d6f7d,_0xeea6d3)=>(_0x35a3ed[_0xeea6d3]&&_0x2d6f7d['push'](_0xeea6d3),_0x2d6f7d),[])['join']('\x20');}function applyClassNames(_0x2d67cf,..._0xb2514b){const _0x3c28b1=normalize(..._0xb2514b);for(const _0x5459e8 of Object['keys'](_0x3c28b1))_0x2d67cf['classList']['toggle'](_0x5459e8,Boolean(_0x3c28b1[_0x5459e8]));}var isTabIdValue=_0x357909=>ALL_TABS['includes'](_0x357909),parseTabs=_0xca4b4e=>{if(!_0xca4b4e)return ALL_TABS;const _0x392801=deserializeCsv(_0xca4b4e)['filter'](isTabIdValue);return 0x0===_0x392801['length']?ALL_TABS:_0x392801;};function initState(_0x4d55ea){return{'*originalUrl':null,'*faderEl':null,'*cropperEl':null,'*imgEl':null,'*imgContainerEl':null,'*networkProblems':!0x1,'*imageSize':null,'*editorTransformations':{},'*cropPresetList':[],'*currentAspectRatio':null,'*tabList':ALL_TABS,'*tabId':TabId['CROP'],'entry':null,'extension':null,'editorMode':!0x1,'modalCaption':'','isImage':!0x1,'msg':'','src':TRANSPARENT_PIXEL_SRC,'fileType':'','showLoader':!0x1,'uuid':null,'cdnUrl':null,'cropPreset':'','tabs':serializeCsv([...ALL_TABS]),'presence.networkProblems':!0x1,'presence.modalCaption':!0x0,'presence.editorToolbar':!0x1,'presence.viewerToolbar':!0x0,'*on.retryNetwork':()=>{const _0x5c8b46=_0x4d55ea['querySelectorAll']('img');for(const _0x20e33e of _0x5c8b46){const _0x1b5970=_0x20e33e['src'];_0x20e33e['src']=TRANSPARENT_PIXEL_SRC,_0x20e33e['src']=_0x1b5970;}_0x4d55ea['$']['*networkProblems']=!0x1;},'*on.apply':_0x4a0997=>{if(!_0x4a0997)return;const _0x200030=_0x4d55ea['$']['*originalUrl'],_0x170535=createCdnUrlModifiers(transformationsToOperations(_0x4a0997),'preview'),_0x4df6fe={'originalUrl':_0x200030,'cdnUrlModifiers':_0x170535,'cdnUrl':createCdnUrl(_0x200030,_0x170535),'transformations':_0x4a0997};_0x4d55ea['dispatchEvent'](new CustomEvent('apply',{'detail':_0x4df6fe,'bubbles':!0x0,'composed':!0x0})),_0x4d55ea['remove']();},'*on.cancel':()=>{_0x4d55ea['remove'](),_0x4d55ea['dispatchEvent'](new CustomEvent('cancel',{'bubbles':!0x0,'composed':!0x0}));}};}var svg_sprite_default2='<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>',TEMPLATE='\x0a\x20\x20'+svg_sprite_default2+'\x0a\x20\x20<div\x20class=\x22uc-wrapper\x20uc-wrapper_desktop\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x20class=\x22uc-network_problems_splash\x22\x20set=\x22visible:\x20presence.networkProblems;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_content\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_icon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22sad\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_text\x22>Network\x20error</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-network_problems_footer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20text=\x22Retry\x22\x20set=\x22onclick:\x20*on.retryNetwork\x22></uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-viewport\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type_outer\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-file_type\x22>{{fileType}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-image_container\x22\x20ref=\x22img-container-el\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+TRANSPARENT_PIXEL_SRC+'\x22\x20class=\x22uc-image\x20uc-image_visible_from_editor\x22\x20ref=\x22img-el\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-cropper\x20ref=\x22cropper-el\x22></uc-editor-image-cropper>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-image-fader\x20ref=\x22fader-el\x22></uc-editor-image-fader>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-info_pan\x22>{{msg}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-toolbar_content\x20uc-toolbar_content__editor\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-toolbar></uc-editor-toolbar>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a',CloudImageEditorBlock=class extends Block{['ctxOwner']=!0x0;static ['styleAttrs']=['uc-cloud-image-editor'];['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x12c);constructor(){super(),this['init$']={...this['init$'],...initState(this)};}['_showLoader'](_0x440ee9){this['$']['showLoader']=_0x440ee9;}['_waitForSize'](){return new Promise((_0x241c43,_0x128adc)=>{const _0x2bbf99=window['setTimeout'](()=>{_0x128adc(new Error('[cloud-image-editor]\x20timeout\x20waiting\x20for\x20non-zero\x20container\x20size'));},0xbb8),_0x22529e=new ResizeObserver(_0x12dd01=>{const [_0x104847]=_0x12dd01;_0x104847&&_0x104847['contentRect']['width']>0x0&&_0x104847['contentRect']['height']>0x0&&(window['clearTimeout'](_0x2bbf99),_0x22529e['disconnect'](),window['setTimeout'](()=>_0x241c43(),0x0));});_0x22529e['observe'](this);});}['initCallback'](){super['initCallback'](),this['$']['*faderEl']=this['ref']['fader-el'],this['$']['*cropperEl']=this['ref']['cropper-el'],this['$']['*imgContainerEl']=this['ref']['img-container-el'],this['initEditor']();}async['updateImage'](){if(this['isConnected']){if(await this['_waitForSize'](),this['$']['cdnUrl']){const _0x148e60=this['$']['cdnUrl'],_0x345c57=extractUuid(_0x148e60),_0x539c25=createOriginalUrl(_0x148e60,_0x345c57);if(_0x539c25===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x539c25;const _0x52a4ec=operationsToTransformations(extractOperations(_0x148e60));this['$']['*editorTransformations']=_0x52a4ec;}else{if(!this['$']['uuid'])throw new Error('No\x20UUID\x20nor\x20CDN\x20URL\x20provided');{const _0x22252f=createOriginalUrl(this['cfg']['cdnCname'],this['$']['uuid']);if(_0x22252f===this['$']['*originalUrl'])return;this['$']['*originalUrl']=_0x22252f,this['$']['*editorTransformations']={};}}this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['deactivate']({'reset':!0x0}):this['$']['*faderEl']?.['deactivate']();try{const _0x3c929b=this['$']['*originalUrl'],_0x3256d2=await this['proxyUrl'](createCdnUrl(_0x3c929b,createCdnUrlModifiers('json'))),_0x444127=await fetch(_0x3256d2)['then'](_0x3813b3=>_0x3813b3['json']()),{width:_0x3d99a6,height:_0x2c6c56}=_0x444127;this['$']['*imageSize']={'width':_0x3d99a6,'height':_0x2c6c56},this['$']['*tabId']===TabId['CROP']?this['$']['*cropperEl']?.['activate'](this['$']['*imageSize']):this['$']['*faderEl']?.['activate']({'url':_0x3c929b});}catch(_0x337122){_0x337122&&(this['telemetryManager']['sendEventError'](_0x337122,'cloud\x20editor\x20image.\x20Failed\x20to\x20load\x20image\x20info'),console['error']('Failed\x20to\x20load\x20image\x20info',_0x337122));}}}async['initEditor'](){try{await this['_waitForSize']();}catch(_0xff867d){return void(this['isConnected']&&console['error'](_0xff867d['message']));}this['ref']['img-el']['addEventListener']('load',()=>{this['_debouncedShowLoader'](!0x1),this['$']['src']!==TRANSPARENT_PIXEL_SRC&&(this['$']['*networkProblems']=!0x1);}),this['ref']['img-el']['addEventListener']('error',()=>{this['_debouncedShowLoader'](!0x1),this['$']['*networkProblems']=!0x0;}),this['sub']('src',_0x21dbb3=>{const _0x28a32a=this['ref']['img-el'];_0x28a32a['src']!==_0x21dbb3&&(_0x28a32a['src']=_0x21dbb3||TRANSPARENT_PIXEL_SRC);}),this['sub']('tabs',_0x52cc12=>{this['$']['*tabList']=parseTabs(_0x52cc12);}),this['sub']('*tabId',_0xce26ea=>{this['ref']['img-el']['className']=classNames('uc-image',{'uc-image_hidden_to_cropper':_0xce26ea===TabId['CROP'],'uc-image_hidden_effects':_0xce26ea!==TabId['CROP']});}),this['classList']['add']('uc-editor_ON'),this['sub']('*networkProblems',_0x2ec5df=>{this['$']['presence.networkProblems']=_0x2ec5df,this['$']['presence.modalCaption']=!_0x2ec5df;}),this['sub']('*editorTransformations',_0x1fa161=>{if(0x0===Object['keys'](_0x1fa161)['length'])return;const _0x2a2859=this['$']['*originalUrl'],_0x1d687b=createCdnUrlModifiers(transformationsToOperations(_0x1fa161),'preview'),_0x5a7317={'originalUrl':_0x2a2859,'cdnUrlModifiers':_0x1d687b,'cdnUrl':createCdnUrl(_0x2a2859,_0x1d687b),'transformations':_0x1fa161};this['dispatchEvent'](new CustomEvent('change',{'detail':_0x5a7317,'bubbles':!0x0,'composed':!0x0}));},!0x1),this['sub']('uuid',_0x3845d5=>_0x3845d5&&this['updateImage']()),this['sub']('cdnUrl',_0x33ad08=>_0x33ad08&&this['updateImage']()),this['sub']('cropPreset',_0x1763b2=>{const _0x38aa83=parseCropPreset(_0x1763b2);let _0x15c24b=null;if(this['$']['cdnUrl']){const _0x50fc2e=operationsToTransformations(extractOperations(this['$']['cdnUrl']));if(Array['isArray'](_0x50fc2e?.['crop']?.['dimensions'])){const [_0x3f610b,_0x4df2ea]=_0x50fc2e['crop']['dimensions'];_0x15c24b=getClosestAspectRatio(_0x3f610b,_0x4df2ea,_0x38aa83,0.1);}}this['$']['*cropPresetList']=_0x38aa83,this['$']['*currentAspectRatio']=_0x15c24b??_0x38aa83?.[0x0]??null;});}};CloudImageEditorBlock['template']=TEMPLATE,CloudImageEditorBlock['bindAttributes']({'uuid':'uuid','cdn-url':'cdnUrl','crop-preset':'cropPreset','tabs':'tabs'});var CropFrame=class extends Block{['_handlePointerUp'];['_handlePointerMove'];['_handleSvgPointerMove'];['_backdropMaskId']='backdrop-mask-'+UID['generate']();['_backdropMask'];['_backdropMaskInner'];['_frameThumbs'];['_frameGuides'];['_draggingThumb'];['_hoverThumb'];['_dragStartPoint'];['_dragStartCrop'];['_frameImage'];['_guidesHidden']=!0x1;constructor(){super(),this['init$']={...this['init$'],'dragging':!0x1},this['_handlePointerUp']=this['_handlePointerUp_']['bind'](this),this['_handlePointerMove']=this['_handlePointerMove_']['bind'](this),this['_handleSvgPointerMove']=this['_handleSvgPointerMove_']['bind'](this);}['_shouldThumbBeDisabled'](_0x3ac611){const _0x4b9c37=this['$']['*imageBox'];if(!_0x4b9c37)return!0x1;if(''===_0x3ac611&&_0x4b9c37['height']<=MIN_CROP_SIZE&&_0x4b9c37['width']<=MIN_CROP_SIZE)return!0x0;const _0xf342c9=_0x4b9c37['height']<=MIN_CROP_SIZE&&(_0x3ac611['includes']('n')||_0x3ac611['includes']('s')),_0x4a47f7=_0x4b9c37['width']<=MIN_CROP_SIZE&&(_0x3ac611['includes']('e')||_0x3ac611['includes']('w'));return _0xf342c9||_0x4a47f7;}['_createBackdrop'](){const _0x1f1c00=this['$']['*cropBox'];if(!_0x1f1c00)return;const {x:_0x30ef0e,y:_0x21b13b,width:_0x2b0991,height:_0x5da9cb}=_0x1f1c00,_0x5dc65f=this['ref']['svg-el'],_0x50abf3=createSvgNode('mask',{'id':this['_backdropMaskId']}),_0x326cff=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'white'}),_0x33a75d=createSvgNode('rect',{'x':_0x30ef0e,'y':_0x21b13b,'width':_0x2b0991,'height':_0x5da9cb,'fill':'black'});_0x50abf3['appendChild'](_0x326cff),_0x50abf3['appendChild'](_0x33a75d);const _0x32e811=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'var(--color-image-background)','fill-opacity':0.85,'mask':'url(#'+this['_backdropMaskId']+')'});_0x5dc65f['appendChild'](_0x32e811),_0x5dc65f['appendChild'](_0x50abf3),this['_backdropMask']=_0x50abf3,this['_backdropMaskInner']=_0x33a75d;}['_resizeBackdrop'](){this['_backdropMask']&&(this['_backdropMask']['style']['display']='none',window['requestAnimationFrame'](()=>{this['_backdropMask']&&(this['_backdropMask']['style']['display']='block');}));}['_updateBackdrop'](){const _0x1ccbe7=this['$']['*cropBox'];if(!_0x1ccbe7)return;const {x:_0x34b1a5,y:_0x1431cf,width:_0x370594,height:_0x3a2146}=_0x1ccbe7;this['_backdropMaskInner']&&setSvgNodeAttrs(this['_backdropMaskInner'],{'x':_0x34b1a5,'y':_0x1431cf,'width':_0x370594,'height':_0x3a2146});}['_updateFrame'](){const _0xe35df3=this['$']['*cropBox'];if(_0xe35df3&&this['_frameGuides']&&this['_frameThumbs']){for(const _0x2c6e89 of Object['values'](this['_frameThumbs'])){if(!_0x2c6e89)continue;const {direction:_0x4c8b1,pathNode:_0x32b26e,interactionNode:_0x378409,groupNode:_0x4a22f1}=_0x2c6e89,_0x2b7a2a=''===_0x4c8b1,_0x27cca2=0x2===_0x4c8b1['length'],{x:_0xc6e9b,y:_0x7de604,width:_0x3274e0,height:_0x357bc2}=_0xe35df3;if(_0x2b7a2a)setSvgNodeAttrs(_0x378409,{'x':_0xc6e9b,'y':_0x7de604,'width':_0x3274e0,'height':_0x357bc2});else{const _0x5c2e7c=clamp(Math['min'](_0x3274e0,_0x357bc2)/(0x2*THUMB_CORNER_SIZE+THUMB_SIDE_SIZE)/0x2,0x0,0x1),_0x5f263e=_0x27cca2?cornerPath(_0xe35df3,_0x4c8b1,_0x5c2e7c):sidePath(_0xe35df3,_0x4c8b1,_0x5c2e7c),_0x28a720=_0x5f263e['center'];if(!_0x28a720)continue;const _0x2a0a6b=Math['max'](MAX_INTERACTION_SIZE*clamp(Math['min'](_0x3274e0,_0x357bc2)/MAX_INTERACTION_SIZE/0x3,0x0,0x1),MIN_INTERACTION_SIZE);setSvgNodeAttrs(_0x378409,{'x':_0x28a720[0x0]-_0x2a0a6b,'y':_0x28a720[0x1]-_0x2a0a6b,'width':0x2*_0x2a0a6b,'height':0x2*_0x2a0a6b}),setSvgNodeAttrs(_0x32b26e,{'d':_0x5f263e['d']});}const _0x2fd0b3=this['_shouldThumbBeDisabled'](_0x4c8b1);_0x4a22f1['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':_0x2fd0b3,'uc-thumb--visible':!_0x2fd0b3}));}setSvgNodeAttrs(this['_frameGuides'],{'x':_0xe35df3['x']-0.5*GUIDE_STROKE_WIDTH,'y':_0xe35df3['y']-0.5*GUIDE_STROKE_WIDTH,'width':_0xe35df3['width']+GUIDE_STROKE_WIDTH,'height':_0xe35df3['height']+GUIDE_STROKE_WIDTH});}}['_createThumb'](_0x32bf56,_0xee4d24){const _0x51d06e=createSvgNode('g');_0x51d06e['classList']['add']('uc-thumb'),_0x51d06e['setAttribute']('with-effects','');const _0x1d0384=createSvgNode('rect',{'fill':'transparent'}),_0xe23c5a=createSvgNode('path',{'stroke':'currentColor','fill':'none','stroke-width':THUMB_STROKE_WIDTH});_0x51d06e['appendChild'](_0xe23c5a),_0x51d06e['appendChild'](_0x1d0384),_0x32bf56[_0xee4d24]={'direction':_0xee4d24,'pathNode':_0xe23c5a,'interactionNode':_0x1d0384,'groupNode':_0x51d06e},''===_0xee4d24&&(_0x51d06e['style']['cursor']='move'),_0x1d0384['addEventListener']('pointerdown',this['_handlePointerDown']['bind'](this,_0xee4d24));}['_createThumbs'](){const _0x262ec8={};for(let _0xb2a00d=0x0;_0xb2a00d<0x3;_0xb2a00d++)for(let _0x195629=0x0;_0x195629<0x3;_0x195629++){const _0x56b566=''+['n','','s'][_0xb2a00d]+['w','','e'][_0x195629];''!==_0x56b566&&this['_createThumb'](_0x262ec8,_0x56b566);}return this['_createThumb'](_0x262ec8,''),_0x262ec8;}['_createGuides'](){const _0x303dfe=createSvgNode('svg'),_0x2af21a=createSvgNode('rect',{'x':0x0,'y':0x0,'width':'100%','height':'100%','fill':'none','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.5});_0x303dfe['appendChild'](_0x2af21a);for(let _0x50e0a7=0x1;_0x50e0a7<=0x2;_0x50e0a7++){const _0x1661d1=createSvgNode('line',{'x1':GUIDE_THIRD*_0x50e0a7+'%','y1':'0%','x2':GUIDE_THIRD*_0x50e0a7+'%','y2':'100%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x303dfe['appendChild'](_0x1661d1);}for(let _0x42bfea=0x1;_0x42bfea<=0x2;_0x42bfea++){const _0x5c179f=createSvgNode('line',{'x1':'0%','y1':GUIDE_THIRD*_0x42bfea+'%','x2':'100%','y2':GUIDE_THIRD*_0x42bfea+'%','stroke':'currentColor','stroke-width':GUIDE_STROKE_WIDTH,'stroke-opacity':0.3});_0x303dfe['appendChild'](_0x5c179f);}return _0x303dfe['classList']['add']('uc-guides','uc-guides--semi-hidden'),_0x303dfe;}['_createFrame'](){const _0x32ff97=this['ref']['svg-el'],_0x16ae44=document['createDocumentFragment'](),_0x100ee3=this['_createGuides']();_0x16ae44['appendChild'](_0x100ee3);const _0x17f8ef=this['_createThumbs']();for(const {groupNode:_0x1300ff}of Object['values'](_0x17f8ef))_0x16ae44['appendChild'](_0x1300ff);_0x32ff97['appendChild'](_0x16ae44),this['_frameThumbs']=_0x17f8ef,this['_frameGuides']=_0x100ee3;}['_handlePointerDown'](_0x53ca94,_0xc7c71b){if(!this['_frameThumbs'])return;const _0x4f6f82=this['_frameThumbs'][_0x53ca94];if(!_0x4f6f82)return;if(this['_shouldThumbBeDisabled'](_0x53ca94))return;const _0x18154f=this['$']['*cropBox'],_0x4e9724=this['ref']['svg-el'],{x:_0x36d4ac,y:_0x380de5}=_0x4e9724['getBoundingClientRect'](),_0x571df3=_0xc7c71b['x']-_0x36d4ac,_0x15e0a0=_0xc7c71b['y']-_0x380de5;this['$']['dragging']=!0x0,this['_draggingThumb']=_0x4f6f82,this['_dragStartPoint']=[_0x571df3,_0x15e0a0],this['_dragStartCrop']={..._0x18154f};}['_handlePointerUp_'](_0x2eb26a){this['_updateCursor'](),this['$']['dragging']&&(_0x2eb26a['stopPropagation'](),_0x2eb26a['preventDefault'](),this['$']['dragging']=!0x1);}['_handlePointerMove_'](_0x4ad424){if(!this['$']['dragging']||!this['_dragStartPoint']||!this['_draggingThumb'])return;_0x4ad424['stopPropagation'](),_0x4ad424['preventDefault']();const _0x122e82=this['ref']['svg-el'],{x:_0x272633,y:_0x2a2da0}=_0x122e82['getBoundingClientRect'](),_0xb313d4=_0x4ad424['x']-_0x272633,_0x3bf156=_0x4ad424['y']-_0x2a2da0,_0x4d2a5d=_0xb313d4-this['_dragStartPoint'][0x0],_0x394701=_0x3bf156-this['_dragStartPoint'][0x1],{direction:_0x27ccc0}=this['_draggingThumb'],_0x330334=this['_calcCropBox'](_0x27ccc0,[_0x4d2a5d,_0x394701]);_0x330334&&(this['$']['*cropBox']=_0x330334);}['_calcCropBox'](_0x2405d6,_0x49b47e){const [_0x462b86,_0x17556e]=_0x49b47e,_0x390c49=this['$']['*imageBox'];let _0x5a468c=this['_dragStartCrop']??this['$']['*cropBox'];const _0x33a9a5=this['$']['*currentAspectRatio'],_0xabc9e6=_0x33a9a5?_0x33a9a5['width']/_0x33a9a5['height']:void 0x0;if(_0x5a468c=''===_0x2405d6?moveRect({'rect':_0x5a468c,'delta':[_0x462b86,_0x17556e],'imageBox':_0x390c49}):resizeRect({'rect':_0x5a468c,'delta':[_0x462b86,_0x17556e],'direction':_0x2405d6,'aspectRatio':_0xabc9e6,'imageBox':_0x390c49}),Object['values'](_0x5a468c)['every'](_0x598b8d=>Number['isFinite'](_0x598b8d)&&_0x598b8d>=0x0))return constraintRect(roundRect(_0x5a468c),_0x390c49);console['error']('CropFrame\x20is\x20trying\x20to\x20create\x20invalid\x20rectangle',{'payload':_0x5a468c});}['_handleSvgPointerMove_'](_0x14d178){if(!this['_frameThumbs'])return;const _0x15af18=Object['values'](this['_frameThumbs'])['find'](_0xadb154=>{if(!_0xadb154)return!0x1;if(this['_shouldThumbBeDisabled'](_0xadb154['direction']))return!0x1;const _0x2a47a2=_0xadb154['interactionNode']['getBoundingClientRect']();return rectContainsPoint({'x':_0x2a47a2['x'],'y':_0x2a47a2['y'],'width':_0x2a47a2['width'],'height':_0x2a47a2['height']},[_0x14d178['x'],_0x14d178['y']]);});this['_hoverThumb']=_0x15af18,this['_updateCursor']();}['_updateCursor'](){const _0x4a93fb=this['_hoverThumb'];this['ref']['svg-el']['style']['cursor']=_0x4a93fb?thumbCursor(_0x4a93fb['direction']):'initial';}['_createMask'](_0xe22caf){if(this['_frameImage'])return void this['_frameImage']['setAttribute']('href',_0xe22caf);const _0x40c41b=this['ref']['svg-el'],_0x2fcea1=document['createDocumentFragment'](),_0x4eabb7=createSvgNode('image',{'href':_0xe22caf});_0x4eabb7['setAttribute']('class','uc-cloud-mask'),_0x2fcea1['appendChild'](_0x4eabb7),_0x40c41b['appendChild'](_0x2fcea1),this['_frameImage']=_0x4eabb7;}['_updateMask'](){const _0x414a3c=this['$']['*cropBox'];if(!_0x414a3c||!this['_frameImage'])return;const {x:_0x337d67,y:_0xc632d5,width:_0x4bae21,height:_0x5556a4}=_0x414a3c;setSvgNodeAttrs(this['_frameImage'],{'x':_0x337d67,'y':_0xc632d5,'height':_0x5556a4,'width':_0x4bae21});}['_render'](){this['_updateBackdrop'](),this['_updateFrame'](),this['_updateMask']();}['toggleThumbs'](_0x2b39fd){if(this['_frameThumbs'])for(const _0x473c58 of Object['values'](this['_frameThumbs'])){if(!_0x473c58)continue;const {groupNode:_0x2434c7}=_0x473c58;_0x2434c7['setAttribute']('class',classNames('uc-thumb',{'uc-thumb--hidden':!_0x2b39fd,'uc-thumb--visible':_0x2b39fd}));}}['initCallback'](){super['initCallback'](),this['_createBackdrop'](),this['_createFrame'](),this['sub']('*imageBox',()=>{this['_resizeBackdrop'](),window['requestAnimationFrame'](()=>{this['_render']();});}),this['sub']('*cropBox',_0x4fdc0b=>{_0x4fdc0b&&(this['_guidesHidden']=_0x4fdc0b['height']<=MIN_CROP_SIZE||_0x4fdc0b['width']<=MIN_CROP_SIZE,window['requestAnimationFrame'](()=>{this['_render']();}));}),this['subConfigValue']('cloudImageEditorMaskHref',_0x13f85c=>{_0x13f85c&&this['_createMask'](_0x13f85c);}),this['sub']('dragging',_0x104ffa=>{this['_frameGuides']&&this['_frameGuides']['setAttribute']('class',classNames({'uc-guides--hidden':this['_guidesHidden'],'uc-guides--visible':!this['_guidesHidden']&&_0x104ffa,'uc-guides--semi-hidden':!this['_guidesHidden']&&!_0x104ffa}));}),(this['ref']['svg-el']['addEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['addEventListener']('pointermove',this['_handlePointerMove'],!0x0),document['addEventListener']('pointerup',this['_handlePointerUp'],!0x0));}['destroyCallback'](){super['destroyCallback'](),(this['ref']['svg-el']['removeEventListener']('pointermove',this['_handleSvgPointerMove'],!0x0),document['removeEventListener']('pointermove',this['_handlePointerMove']),document['removeEventListener']('pointerup',this['_handlePointerUp']));}};CropFrame['template']='\x20<svg\x20class=\x22uc-svg\x22\x20ref=\x22svg-el\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22></svg>\x20';var EditorButtonControl=class extends Block{['_titleEl'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','on.click':null,'title-prop':''};}['initCallback'](){super['initCallback'](),this['_titleEl']=this['ref']['title-el'],this['sub']('title',_0x19055e=>{const _0x2817ce=this['_titleEl'];_0x2817ce&&(_0x2817ce['style']['display']=_0x19055e?'block':'none');}),this['sub']('active',_0x2045b0=>{this['className']=classNames({'uc-active':_0x2045b0,'uc-not_active':!_0x2045b0});}),this['sub']('on.click',_0x1b5e67=>{this['onclick']=_0x1b5e67??null;});}};EditorButtonControl['template']='\x0a\x20\x20<button\x20role=\x22option\x22\x20type=\x22button\x22\x20set=\x22@aria-label:title-prop;\x22\x20l10n=\x22@title:title-prop;\x22>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20</button>\x0a';var SIZE_RECT_FIXED=0xc,SIZE_SVG_WRAPPER=0x10,getAdjustResolutions=_0x1f8b28=>{let _0x3a9a9a=0xc,_0x4af564=0xc;return _0x1f8b28['width']/_0x1f8b28['height']>=0x1?(_0x3a9a9a=SIZE_RECT_FIXED,_0x4af564=Math['round'](SIZE_RECT_FIXED*_0x1f8b28['height']/_0x1f8b28['width'])):(_0x4af564=SIZE_RECT_FIXED,_0x3a9a9a=Math['round'](SIZE_RECT_FIXED*_0x1f8b28['width']/_0x1f8b28['height'])),{'width':_0x3a9a9a,'height':_0x4af564};},EditorFreeformButtonControl=class extends EditorButtonControl{['initCallback'](){super['initCallback'](),this['$']['icon']='arrow-dropdown',this['$']['on.click']=this['handleClick']['bind'](this),this['sub']('*currentAspectRatio',_0x212ea1=>{this['$']['title']=_0x212ea1['hasFreeform']?this['l10n']('freeform-crop'):this['l10n']('crop-to-shape',{'value':_0x212ea1['width']+':'+_0x212ea1['height']}),this['bindL10n']('title-prop',()=>this['$']['title']);});}['handleClick'](){this['$']['*showListAspectRatio']=!0x0;}};EditorFreeformButtonControl['template']='\x20\x0a\x20\x20<button\x20role=\x22option\x22\x20type=\x22button\x22\x20set=\x22@aria-label:title-prop;\x22\x20l10n=\x22@title:title-prop;\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-title\x22\x20ref=\x22title-el\x22>{{title}}</div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x22></uc-icon>\x0a\x20\x20</button>\x20\x0a';var EditorAspectRatioButtonControl=class extends EditorButtonControl{constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'once':!0x1};}['initCallback'](){super['initCallback'](),this['defineAccessor']('aspectRatio',_0x4ecdf5=>{if(!_0x4ecdf5)return;const _0x4b5be2=!!_0x4ecdf5['hasFreeform'];this['$']['title']=_0x4b5be2?this['l10n']('custom'):_0x4ecdf5['width']+':'+_0x4ecdf5['height'],_0x4b5be2||this['_renderRectBasedOnAspectRatio'](_0x4ecdf5),_0x4b5be2&&this['setAttribute']('uc-aspect-ratio-freeform',''),this['_aspectRatio']=_0x4ecdf5,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-aspect-ratio',{'name':_0x4b5be2?this['l10n']('custom')['toLowerCase']():this['l10n']('crop-to-shape',{'value':_0x4ecdf5['width']+':'+_0x4ecdf5['height']})['toLowerCase'](),'value':''}));}),this['sub']('*currentAspectRatio',_0x11c62e=>{this['$']['active']=_0x11c62e&&_0x11c62e['id']===this['_aspectRatio']?.['id']||_0x11c62e?.['width']===this['_aspectRatio']?.['width']&&_0x11c62e?.['height']===this['_aspectRatio']?.['height'];}),this['$']['on.click']=this['handleClick']['bind'](this);}['handleClick'](){const _0x295b3f=this['$']['*currentAspectRatio'];_0x295b3f?.['id']!==this['_aspectRatio']?.['id']&&(this['$']['*currentAspectRatio']=this['_aspectRatio']);}['_renderRectBasedOnAspectRatio'](_0x445e26){const {width:_0x1b92ac,height:_0x1972d4}=getAdjustResolutions(_0x445e26),_0x511341=createSvgNode('rect',{'stroke-linejoin':'round','fill':'none','stroke':'currentColor','stroke-width':1.2,'fill-rule':'evenodd','x':(SIZE_SVG_WRAPPER-_0x1b92ac)/0x2,'y':(SIZE_SVG_WRAPPER-_0x1972d4)/0x2,'rx':0x2,'width':_0x1b92ac,'height':_0x1972d4}),_0x485c31=this['ref']['icon-el']?.['ref']?.['svg'];_0x485c31&&(_0x485c31['innerHTML']='',_0x485c31['appendChild'](_0x511341));}['_aspectRatio'];};function nextAngle(_0x2404ea){let _0x110247=_0x2404ea+0x5a;return _0x110247=_0x110247>=0x168?0x0:_0x110247,_0x110247;}function nextValue(_0x48db0d,_0x4ad871){if('rotate'===_0x48db0d)return nextAngle('number'==typeof _0x4ad871?_0x4ad871:0x0);if('mirror'===_0x48db0d||'flip'===_0x48db0d)return!_0x4ad871;throw new Error('Unsupported\x20operation:\x20'+_0x48db0d);}var EditorCropButtonControl=class extends EditorButtonControl{['_operation']=void 0x0;['initCallback'](){super['initCallback'](),this['defineAccessor']('operation',_0x211788=>{_0x211788&&(this['_operation']=_0x211788,this['$']['icon']=_0x211788,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-crop',{'name':this['l10n'](_0x211788)['toLowerCase']()})));}),this['$']['on.click']=_0x2e2969=>{if(!this['_operation'])return;const _0x1b56d4=this['$']['*cropperEl'],_0x1c77f6=_0x1b56d4['getValue'](this['_operation']),_0x10a2e5=nextValue(this['_operation'],_0x1c77f6);this['telemetryManager']['sendEventCloudImageEditor'](_0x2e2969,this['$']['*tabId'],{'operation':this['_operation'],'next':_0x10a2e5,'prev':_0x1c77f6}),_0x1b56d4['setValue'](this['_operation'],_0x10a2e5);};}};function preloadImage(_0x358016){const _0x37c2df=new Image();return{'promise':new Promise((_0x5a329d,_0x1e6937)=>{_0x37c2df['src']=_0x358016,_0x37c2df['onload']=()=>_0x5a329d(),_0x37c2df['onerror']=_0x3cb308=>_0x1e6937(_0x3cb308);}),'image':_0x37c2df,'cancel':()=>{0x0===_0x37c2df['naturalWidth']&&(_0x37c2df['src']=TRANSPARENT_PIXEL_SRC);}};}function batchPreloadImages(_0x5628cb){const _0x5665c0=[];for(const _0x2ec521 of _0x5628cb){const _0xa228=preloadImage(_0x2ec521);_0x5665c0['push'](_0xa228);}const _0x46d1c9=_0x5665c0['map'](_0x3c5251=>_0x3c5251['image']);return{'promise':Promise['allSettled'](_0x5665c0['map'](_0x54da71=>_0x54da71['promise'])),'images':_0x46d1c9,'cancel':()=>{_0x5665c0['forEach'](_0x3c4ce3=>{_0x3c4ce3['cancel']();});}};}var FAKE_ORIGINAL_FILTER='original',EditorSlider=class extends Block{['_operation']='filter';['_filter'];['_originalUrl']='';constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'value':0x0,'defaultValue':0x0,'zero':0x0,'on.input':_0x24da31=>{const _0x5211b1=this['$']['*faderEl'];_0x5211b1?.['set'](_0x24da31),this['$']['value']=_0x24da31;}};}['setOperation'](_0x50cd0a,_0x480dbe){this['_operation']=_0x50cd0a,this['_filter']=_0x480dbe,this['_initializeValues']();const _0x5abcd0=this['$']['*faderEl'],_0x45c2f2=this['_originalUrl']||this['$']['*originalUrl'];_0x5abcd0&&_0x45c2f2&&_0x5abcd0['activate']({'url':_0x45c2f2,'operation':this['_operation'],'value':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['$']['value'],'filter':this['_filter']===FAKE_ORIGINAL_FILTER?void 0x0:this['_filter'],'fromViewer':!0x1});}['_initializeValues'](){const _0x13be4f=this['_operation'],{range:_0x4ffd42,zero:_0x4fdbf1}=COLOR_OPERATIONS_CONFIG[_0x13be4f],[_0x128a65,_0x44b025]=_0x4ffd42;this['$']['min']=_0x128a65,this['$']['max']=_0x44b025,this['$']['zero']=_0x4fdbf1;const _0x10eebd=this['$']['*editorTransformations'][_0x13be4f];if('filter'===_0x13be4f){let _0x506952=Number(_0x44b025);const _0x50158d=_0x10eebd;if(_0x50158d){const {name:_0x3b2f7c,amount:_0x80230f}=_0x50158d;_0x506952=_0x3b2f7c===this['_filter']?_0x80230f:_0x44b025;}return this['$']['value']=_0x506952,void(this['$']['defaultValue']=_0x506952);}const _0x553cd4=void 0x0!==_0x10eebd?_0x10eebd:_0x4fdbf1;this['$']['value']=_0x553cd4,this['$']['defaultValue']=_0x553cd4;}['apply'](){const _0x2af94f={...this['$']['*editorTransformations']};'filter'===this['_operation']?this['_filter']&&this['_filter']!==FAKE_ORIGINAL_FILTER?_0x2af94f['filter']={'name':this['_filter'],'amount':this['$']['value']}:delete _0x2af94f['filter']:_0x2af94f[this['_operation']]=this['$']['value'],this['$']['*editorTransformations']=_0x2af94f;}['cancel'](){const _0x2409bb=this['$']['*faderEl'];_0x2409bb?.['deactivate']({'hide':!0x1});}['initCallback'](){super['initCallback'](),this['sub']('*originalUrl',_0x33b4fd=>{this['_originalUrl']=_0x33b4fd;}),this['sub']('value',_0x4f4994=>{const _0x503bd9=(this['_filter']??this['_operation'])+'\x20'+_0x4f4994;this['$']['*operationTooltip']=_0x503bd9;});}};function parseFilterValue(_0x380b75){const _0x358d70=_0x380b75['match'](/^([A-Za-z]+)\s+(\d+)$/);if(!_0x358d70)return null;const [,_0x5d028a,_0x434141]=_0x358d70;return _0x5d028a&&void 0x0!==_0x434141?{'filter':_0x5d028a,'value':Number(_0x434141)}:null;}EditorSlider['template']='\x0a\x20\x20<uc-slider-ui\x0a\x20\x20\x20\x20ref=\x22slider-el\x22\x0a\x20\x20\x20\x20set=\x22disabled:\x20disabled;\x20min:\x20min;\x20max:\x20max;\x20defaultValue:\x20defaultValue;\x20zero:\x20zero;\x20onInput:\x20on.input;\x22\x0a\x20\x20></uc-slider-ui>\x0a';var EditorFilterControl=class extends EditorButtonControl{['_operation']='';['_filter']='';['_originalUrl']='';['_observer'];['_cancelPreload'];constructor(){super(),this['init$']={...this['init$'],'active':!0x1,'title':'','icon':'','isOriginal':!0x1,'iconSize':'20','on.click':null};}['_previewSrc'](){const _0x4aa859=parseInt(window['getComputedStyle'](this)['getPropertyValue']('--l-base-min-width'),0xa),_0x4b912c=window['devicePixelRatio'],_0x104408=Math['ceil'](_0x4b912c*_0x4aa859),_0x241060=_0x4b912c>=0x2?'lightest':'normal',_0x2e9a81={...this['$']['*editorTransformations']};return _0x2e9a81[this['_operation']]=this['_filter']!==FAKE_ORIGINAL_FILTER?{'name':this['_filter'],'amount':0x64}:void 0x0,createCdnUrl(this['_originalUrl'],createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x2e9a81),'quality/'+_0x241060,'scale_crop/'+_0x104408+'x'+_0x104408+'/center'));}async['_observerCallback'](_0x3f9c83,_0x17a6b7){const _0x28cd5c=_0x3f9c83[0x0];if(_0x28cd5c?.['isIntersecting']){const _0x1e6495=await this['proxyUrl'](this['_previewSrc']()),_0x21b74f=this['ref']['preview-el'],{promise:_0x4c28ce,cancel:_0x9191dc}=preloadImage(_0x1e6495);this['_cancelPreload']=_0x9191dc,_0x4c28ce['catch'](_0xeafdfa=>{this['$']['*networkProblems']=!0x0,console['error']('Failed\x20to\x20load\x20image',{'error':_0xeafdfa});})['finally'](()=>{_0x21b74f['style']['backgroundImage']='url('+_0x1e6495+')',_0x21b74f['setAttribute']('loaded',''),_0x17a6b7['unobserve'](this);});}else this['_cancelPreload']?.();}['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x8d2b19=>{if(this['$']['active'])!this['$']['isOriginal']&&(this['$']['*sliderEl']['setOperation'](this['_operation'],this['_filter']),this['$']['*showSlider']=!0x0);else{const _0x4b3c68=this['$']['*sliderEl'];_0x4b3c68['setOperation'](this['_operation'],this['_filter']),_0x4b3c68['apply']();}this['telemetryManager']['sendEventCloudImageEditor'](_0x8d2b19,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])}),this['$']['*currentFilter']=this['_filter'];},this['defineAccessor']('filter',_0xa2fefc=>{this['_operation']='filter',this['_filter']=_0xa2fefc,this['$']['isOriginal']=_0xa2fefc===FAKE_ORIGINAL_FILTER,this['$']['icon']=this['$']['isOriginal']?'original':'slider',this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-filter',{'name':_0xa2fefc['toLowerCase']()}));}),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]});const _0x558fe4=this['$']['*originalUrl'];if(this['_originalUrl']=_0x558fe4,this['$']['isOriginal'])this['ref']['icon-el']['classList']['add']('uc-original-icon');else this['_observer']['observe'](this);this['sub']('*currentFilter',_0x42cada=>{this['$']['active']=_0x42cada&&_0x42cada===this['_filter'];}),this['sub']('isOriginal',_0x2a266f=>{this['$']['iconSize']=_0x2a266f?0x28:0x14;}),this['sub']('active',_0x3ccb2e=>{if(this['$']['isOriginal'])return;this['ref']['icon-el']['style']['opacity']=_0x3ccb2e?'1':'0';const _0x26aff0=this['ref']['preview-el'];_0x3ccb2e?_0x26aff0['style']['opacity']='0':_0x26aff0['style']['backgroundImage']&&(_0x26aff0['style']['opacity']='1');}),this['sub']('*networkProblems',async _0x44c8e8=>{if(!_0x44c8e8){const _0x3095f6=await this['proxyUrl'](this['_previewSrc']()),_0x4287d4=this['ref']['preview-el'];_0x4287d4['style']['backgroundImage']&&(_0x4287d4['style']['backgroundImage']='none',_0x4287d4['style']['backgroundImage']='url('+_0x3095f6+')');}});}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect'](),this['_cancelPreload']?.();}};EditorFilterControl['template']='\x0a\x20\x20<button\x20type=\x22button\x22\x20role=\x22option\x22\x20l10n=\x22@title:title-prop;@aria-label:title-prop\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-preview\x22\x20ref=\x22preview-el\x22></div>\x0a\x20\x20\x20\x20<uc-icon\x20ref=\x22icon-el\x22\x20set=\x22@name:\x20icon;\x20@size:\x20iconSize;\x22></uc-icon>\x0a\x20\x20</button>\x0a';var throttle=(_0x39a473,_0xaf80a7)=>{let _0x55c262,_0xf74680=!0x1,_0xb78247=0x0;const _0x16fe0c=(..._0x586b57)=>{_0xf74680?(_0x55c262&&clearTimeout(_0x55c262),_0x55c262=setTimeout(()=>{Date['now']()-_0xb78247>=_0xaf80a7&&(_0x39a473(..._0x586b57),_0xb78247=Date['now']());},Math['max'](_0xaf80a7-(Date['now']()-_0xb78247),0x0))):(_0x39a473(..._0x586b57),_0xb78247=Date['now'](),_0xf74680=!0x0);};return Object['defineProperty'](_0x16fe0c,'cancel',{'configurable':!0x1,'writable':!0x1,'enumerable':!0x1,'value':()=>{_0x55c262&&clearTimeout(_0x55c262);}}),_0x16fe0c;};function pick(_0x3d14a4,_0x465ed2){const _0x22544e={};for(const _0x4e7b8b of _0x465ed2){const _0x1fb797=_0x3d14a4[_0x4e7b8b];(Object['hasOwn'](_0x3d14a4,_0x4e7b8b)||void 0x0!==_0x1fb797)&&(_0x22544e[_0x4e7b8b]=_0x1fb797);}return _0x22544e;}function viewerImageSrc(_0x137d13,_0x3d3a1f,_0x3d748c){const _0x276133=window['devicePixelRatio'],_0x4990ad=Math['min'](Math['ceil'](_0x3d3a1f*_0x276133),0xbb8),_0x43b15a=_0x276133>=0x2?'lightest':'normal';return createCdnUrl(_0x137d13,createCdnUrlModifiers(COMMON_OPERATIONS,transformationsToOperations(_0x3d748c),'quality/'+_0x43b15a,'stretch/off/-/resize/'+_0x4990ad+'x','@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-cloud-image-editor/'));}function validateCrop(_0x2762aa){if(!_0x2762aa)return!0x0;const _0x4a00ae=[({dimensions:_0x5d7b68,coords:_0x21c103})=>[..._0x5d7b68,..._0x21c103]['every'](_0x476c37=>Number['isInteger'](_0x476c37)&&Number['isFinite'](_0x476c37)),({dimensions:_0xa8ba39,coords:_0x3e0495})=>_0xa8ba39['every'](_0x40b7fc=>_0x40b7fc>0x0)&&_0x3e0495['every'](_0x59dc87=>_0x59dc87>=0x0)];return _0x4a00ae['every'](_0x579a21=>_0x579a21(_0x2762aa));}var EditorImageCropper=class extends Block{['ctxOwner']=!0x0;['_commitDebounced'];['_handleResizeThrottled'];['_imageSize']={'width':0x0,'height':0x0};['_canvas'];['_ctx']=null;['_isActive']=!0x1;['_observer'];['_cancelPreload'];constructor(){super(),this['init$']={...this['init$'],'image':null,'*padding':CROP_PADDING,'*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['_commitDebounced']=debounce(this['_commit']['bind'](this),0x12c),this['_handleResizeThrottled']=throttle(this['_handleResize']['bind'](this),0x64);}['_handleResize'](){this['isConnected']&&this['_isActive']&&(this['_initCanvas'](),this['_syncTransformations'](),this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['_syncTransformations'](){const _0x33c3a4=pick(this['$']['*editorTransformations'],Object['keys'](this['$']['*operations'])),_0x3921cd={...this['$']['*operations'],..._0x33c3a4};this['$']['*operations']=_0x3921cd;}['_initCanvas'](){const _0x3cb64c=this['ref']['canvas-el'],_0x3ec43a=_0x3cb64c['getContext']('2d'),_0x56bb4e=this['offsetWidth'],_0x3582be=this['offsetHeight'],_0x31ea64=window['devicePixelRatio'];_0x3cb64c['style']['width']=_0x56bb4e+'px',_0x3cb64c['style']['height']=_0x3582be+'px',_0x3cb64c['width']=_0x56bb4e*_0x31ea64,_0x3cb64c['height']=_0x3582be*_0x31ea64,_0x3ec43a?.['scale'](_0x31ea64,_0x31ea64),this['_canvas']=_0x3cb64c,this['_ctx']=_0x3ec43a;}['_alignImage'](){if(!this['_isActive']||!this['$']['image'])return;const _0x9567f7=this['$']['image'],_0x21236e=this['$']['*padding'],_0x207d06=this['$']['*operations'],{rotate:_0x11a99f}=_0x207d06,_0x4dc817=this['offsetWidth'],_0x4c177b=this['offsetHeight'],_0x591cd1=rotateSize({'width':_0x9567f7['naturalWidth'],'height':_0x9567f7['naturalHeight']},_0x11a99f);let _0x1cf95e;if(_0x591cd1['width']>_0x4dc817-0x2*_0x21236e||_0x591cd1['height']>_0x4c177b-0x2*_0x21236e){const _0x4f54f3=_0x591cd1['width']/_0x591cd1['height'];if(_0x4f54f3>_0x4dc817/_0x4c177b){const _0x2a6fa8=_0x4dc817-0x2*_0x21236e,_0x149a25=_0x2a6fa8/_0x4f54f3;_0x1cf95e={'x':0x0+_0x21236e,'y':_0x21236e+(_0x4c177b-0x2*_0x21236e)/0x2-_0x149a25/0x2,'width':_0x2a6fa8,'height':_0x149a25};}else{const _0x5dc87c=_0x4c177b-0x2*_0x21236e,_0x46025b=_0x5dc87c*_0x4f54f3;_0x1cf95e={'x':_0x21236e+(_0x4dc817-0x2*_0x21236e)/0x2-_0x46025b/0x2,'y':0x0+_0x21236e,'width':_0x46025b,'height':_0x5dc87c};}}else{const {width:_0x491f47,height:_0x435183}=_0x591cd1;_0x1cf95e={'x':_0x21236e+(_0x4dc817-0x2*_0x21236e)/0x2-_0x491f47/0x2,'y':_0x21236e+(_0x4c177b-0x2*_0x21236e)/0x2-_0x435183/0x2,'width':_0x491f47,'height':_0x435183};}this['$']['*imageBox']=roundRect(_0x1cf95e);}['_alignCrop'](){let _0x4ec6db=this['$']['*cropBox'];const _0xcc405e=this['$']['*imageBox'],_0x4836ad=this['$']['*operations'],{rotate:_0x8e1903}=_0x4836ad,_0x536cfa=this['$']['*editorTransformations']['crop'],{width:_0x194b5e,x:_0x46e21c,y:_0x1008a7}=_0xcc405e;if(_0x536cfa){const {dimensions:[_0x571653,_0x438b1e],coords:[_0x5dcdba,_0xf8de4c]}=_0x536cfa,{width:_0x160863}=rotateSize(this['_imageSize'],_0x8e1903),_0x223b92=_0x194b5e/_0x160863;_0x4ec6db=constraintRect(roundRect({'x':_0x46e21c+_0x5dcdba*_0x223b92,'y':_0x1008a7+_0xf8de4c*_0x223b92,'width':_0x571653*_0x223b92,'height':_0x438b1e*_0x223b92}),_0xcc405e);}const _0x2ad165=this['$']['*currentAspectRatio'],_0x2c02e5=_0x2ad165?_0x2ad165['width']/_0x2ad165['height']:void 0x0;if(!isRectInsideRect(_0x4ec6db,_0xcc405e)||_0x2c02e5&&!isRectMatchesAspectRatio(_0x4ec6db,_0x2c02e5)){const _0x1e22f0=_0xcc405e['width']/_0xcc405e['height'];let _0x1ff813=_0xcc405e['width'],_0x3c4ab4=_0xcc405e['height'];_0x2c02e5&&(_0x1e22f0>_0x2c02e5?_0x1ff813=Math['min'](_0xcc405e['height']*_0x2c02e5,_0xcc405e['width']):_0x3c4ab4=Math['min'](_0xcc405e['width']/_0x2c02e5,_0xcc405e['height'])),_0x4ec6db={'x':_0xcc405e['x']+_0xcc405e['width']/0x2-_0x1ff813/0x2,'y':_0xcc405e['y']+_0xcc405e['height']/0x2-_0x3c4ab4/0x2,'width':_0x1ff813,'height':_0x3c4ab4};}this['$']['*cropBox']=constraintRect(roundRect(_0x4ec6db),_0xcc405e);}['_drawImage'](){const _0x5c3d11=this['_ctx'];if(!_0x5c3d11)return;const _0x196ad1=this['$']['image'],_0x54fef8=this['$']['*imageBox'],_0x53b87d=this['$']['*operations'],{mirror:_0x2a4c2a,flip:_0x180a0d,rotate:_0x3b4304}=_0x53b87d,_0xfb7442=rotateSize({'width':_0x54fef8['width'],'height':_0x54fef8['height']},_0x3b4304);_0x5c3d11['save'](),_0x5c3d11['translate'](_0x54fef8['x']+_0x54fef8['width']/0x2,_0x54fef8['y']+_0x54fef8['height']/0x2),_0x5c3d11['rotate'](_0x3b4304*Math['PI']*-0x1/0xb4),_0x5c3d11['scale'](_0x2a4c2a?-0x1:0x1,_0x180a0d?-0x1:0x1),_0x5c3d11['drawImage'](_0x196ad1,-_0xfb7442['width']/0x2,-_0xfb7442['height']/0x2,_0xfb7442['width'],_0xfb7442['height']),_0x5c3d11['restore']();}['_draw'](){if(!(this['_isActive']&&this['$']['image']&&this['_canvas']&&this['_ctx']))return;const _0x570015=this['_canvas'];this['_ctx']['clearRect'](0x0,0x0,_0x570015['width'],_0x570015['height']),this['_drawImage']();}['_animateIn']({fromViewer:_0x412f6f}){this['$']['image']&&(this['ref']['frame-el']['toggleThumbs'](!0x0),this['_transitionToImage'](),setTimeout(()=>{this['className']=classNames({'uc-active_from_viewer':_0x412f6f,'uc-active_from_editor':!_0x412f6f,'uc-inactive_to_editor':!0x1});}));}['_getCropDimensions'](){const _0x512cdc=this['$']['*cropBox'],_0x5bd01a=this['$']['*imageBox'],_0x3f5cb7=this['$']['*operations'],{rotate:_0x45737a}=_0x3f5cb7,{width:_0x2d7174,height:_0x3bb37d}=_0x5bd01a,{width:_0x154a42,height:_0x56eee6}=rotateSize(this['_imageSize'],_0x45737a),{width:_0x401463,height:_0x4fef65}=_0x512cdc,_0x4e9dd9=_0x2d7174/_0x154a42,_0x58adfc=_0x3bb37d/_0x56eee6;return[clamp(Math['round'](_0x401463/_0x4e9dd9),0x1,_0x154a42),clamp(Math['round'](_0x4fef65/_0x58adfc),0x1,_0x56eee6)];}['_getCropTransformation'](){const _0x55c779=this['$']['*cropBox'],_0x5e437b=this['$']['*imageBox'],_0x43d2eb=this['$']['*operations'],{rotate:_0xc39a13}=_0x43d2eb,{width:_0x1444ab,height:_0x256463,x:_0x3d089e,y:_0x3a2973}=_0x5e437b,{width:_0x12d4ee,height:_0x730365}=rotateSize(this['_imageSize'],_0xc39a13),{x:_0x208e42,y:_0x47a3a5}=_0x55c779,_0xaed69c=_0x1444ab/_0x12d4ee,_0x46c8a4=_0x256463/_0x730365,_0x59847c=this['_getCropDimensions'](),_0x4d74ce={'dimensions':_0x59847c,'coords':[clamp(Math['round']((_0x208e42-_0x3d089e)/_0xaed69c),0x0,_0x12d4ee-_0x59847c[0x0]),clamp(Math['round']((_0x47a3a5-_0x3a2973)/_0x46c8a4),0x0,_0x730365-_0x59847c[0x1])]};if(validateCrop(_0x4d74ce)){if(_0x59847c[0x0]!==_0x12d4ee||_0x59847c[0x1]!==_0x730365)return _0x4d74ce;}else console['error']('Cropper\x20is\x20trying\x20to\x20create\x20invalid\x20crop\x20object',{'payload':_0x4d74ce});}['_commit'](){if(!this['isConnected']||!this['_imageSize'])return;const _0x3d6f57=this['$']['*operations'],{rotate:_0x9e62d0,mirror:_0xce42a8,flip:_0x1ace4d}=_0x3d6f57,_0x45023e=this['_getCropTransformation'](),_0x22de2e={...this['$']['*editorTransformations'],'crop':_0x45023e,'rotate':_0x9e62d0,'mirror':_0xce42a8,'flip':_0x1ace4d};this['$']['*editorTransformations']=_0x22de2e;}['setValue'](_0x3c2f3f,_0x2ccaa8){this['$']['*operations']={...this['$']['*operations'],[_0x3c2f3f]:_0x2ccaa8},this['_isActive']&&(this['_alignImage'](),this['_alignCrop'](),this['_draw']());}['getValue'](_0x4dd0fe){return this['$']['*operations'][_0x4dd0fe];}async['activate'](_0x18e3b9,{fromViewer:_0x17eeba}={}){if(!this['_isActive']){this['_isActive']=!0x0,this['_imageSize']=_0x18e3b9,this['removeEventListener']('transitionend',this['_reset']);try{const _0x21ac97=this['$']['*originalUrl'],_0xc9e377=this['$']['*editorTransformations'];this['$']['image']=await this['_waitForImage'](_0x21ac97,_0xc9e377),this['_syncTransformations'](),this['_animateIn']({'fromViewer':_0x17eeba});}catch(_0x5bddb0){console['error']('Failed\x20to\x20activate\x20cropper',{'error':_0x5bddb0}),this['telemetryManager']['sendEventError'](_0x5bddb0,'cloud\x20editor\x20image.\x20Failed\x20to\x20activate\x20cropper');}this['_observer']=new ResizeObserver(_0x75715d=>{const [_0x15926c]=_0x75715d;if(!_0x15926c)return;_0x15926c['contentRect']['width']>0x0&&_0x15926c['contentRect']['height']>0x0&&this['_isActive']&&this['$']['image']&&this['_handleResizeThrottled']();}),this['_observer']['observe'](this);}}['deactivate']({reset:_0x48e732=!0x1}={}){this['_isActive']&&(!_0x48e732&&this['_commit'](),this['_isActive']=!0x1,this['_transitionToCrop'](),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_editor':!0x1,'uc-inactive_to_editor':!0x0}),this['ref']['frame-el']['toggleThumbs'](!0x1),this['addEventListener']('transitionend',this['_reset'],{'once':!0x0}),this['_observer']?.['disconnect']());}['_transitionToCrop'](){const _0x50448e=this['_getCropDimensions'](),_0x363246=this['$']['*cropBox'],_0x3e1424=Math['min'](this['offsetWidth'],_0x50448e[0x0])/_0x363246['width'],_0x3be3e3=Math['min'](this['offsetHeight'],_0x50448e[0x1])/_0x363246['height'],_0x47f01b=Math['min'](_0x3e1424,_0x3be3e3),_0xa45b9=_0x363246['x']+_0x363246['width']/0x2,_0x5e39b2=_0x363246['y']+_0x363246['height']/0x2;this['style']['transform']='scale('+_0x47f01b+')\x20translate('+(this['offsetWidth']/0x2-_0xa45b9)/_0x47f01b+'px,\x20'+(this['offsetHeight']/0x2-_0x5e39b2)/_0x47f01b+'px)',this['style']['transformOrigin']=_0xa45b9+'px\x20'+_0x5e39b2+'px';}['_transitionToImage'](){const _0x7aaf21=this['$']['*cropBox'],_0x54a9f1=_0x7aaf21['x']+_0x7aaf21['width']/0x2,_0x32c17b=_0x7aaf21['y']+_0x7aaf21['height']/0x2;this['style']['transform']='scale(1)',this['style']['transformOrigin']=_0x54a9f1+'px\x20'+_0x32c17b+'px';}['_reset'](){this['_isActive']||(this['$']['image']=null);}async['_waitForImage'](_0x174413,_0x1629f8){const _0x337972=this['offsetWidth'];_0x1629f8={..._0x1629f8,'crop':void 0x0,'rotate':void 0x0,'flip':void 0x0,'mirror':void 0x0};const _0x3b5eb4=await this['proxyUrl'](viewerImageSrc(_0x174413,_0x337972,_0x1629f8)),{promise:_0x5c2379,cancel:_0x49685d,image:_0x1b27cd}=preloadImage(_0x3b5eb4),_0x51893d=this['_handleImageLoading'](_0x3b5eb4);return _0x1b27cd['addEventListener']('load',_0x51893d,{'once':!0x0}),_0x1b27cd['addEventListener']('error',_0x51893d,{'once':!0x0}),this['_cancelPreload']?.(),this['_cancelPreload']=_0x49685d,_0x5c2379['then'](()=>_0x1b27cd)['catch'](_0x13405e=>(console['error']('Failed\x20to\x20load\x20image',{'error':_0x13405e}),this['$']['*networkProblems']=!0x0,_0x1b27cd));}['_handleImageLoading'](_0x14e3e9){const _0x4fd831='crop',_0x52f330=this['$']['*loadingOperations'];let _0x374e88=_0x52f330['get'](_0x4fd831);return _0x374e88||(_0x374e88=new Map(),_0x52f330['set'](_0x4fd831,_0x374e88)),_0x374e88['get'](_0x14e3e9)||(_0x374e88['set'](_0x14e3e9,!0x0),this['$']['*loadingOperations']=_0x52f330),()=>{const _0x1935cb=_0x52f330['get'](_0x4fd831);_0x1935cb?.['has'](_0x14e3e9)&&(_0x1935cb['delete'](_0x14e3e9),this['$']['*loadingOperations']=_0x52f330);};}['initCallback'](){super['initCallback'](),this['sub']('*imageBox',()=>{this['_draw']();}),this['sub']('*cropBox',()=>{this['$']['image']&&this['_commitDebounced']();}),this['sub']('*currentAspectRatio',()=>{this['_alignCrop']();}),setTimeout(()=>{this['sub']('*networkProblems',_0x4a524=>{_0x4a524||this['_isActive']&&this['activate'](this['_imageSize'],{'fromViewer':!0x1});});},0x0);}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};function linspace(_0x2e7e89,_0x563116,_0x575748){const _0x293e5a=_0x575748-0x1,_0x26d0d3=new Array(_0x575748);for(let _0x456c08=_0x293e5a;_0x456c08>=0x0;_0x456c08-=0x1)_0x26d0d3[_0x456c08]=Math['ceil']((_0x456c08*_0x563116+(_0x293e5a-_0x456c08)*_0x2e7e89)/_0x293e5a);return _0x26d0d3;}function isOperationKey(_0x5e04aa){return'string'==typeof _0x5e04aa&&_0x5e04aa in COLOR_OPERATIONS_CONFIG;}function splitBySections(_0x4b5f24){const _0x381d93=[];for(let _0x5d5e88=0x0;_0x5d5e88<_0x4b5f24['length']-0x1;_0x5d5e88+=0x1){const _0x2c0897=_0x4b5f24[_0x5d5e88],_0x4e5d7c=_0x4b5f24[_0x5d5e88+0x1];'number'==typeof _0x2c0897&&'number'==typeof _0x4e5d7c&&_0x381d93['push']([_0x2c0897,_0x4e5d7c]);}return _0x381d93;}function calculateOpacities(_0x3b329c,_0x1eab10,_0x5bbdba){const _0x57428a=splitBySections(_0x3b329c)['find'](([_0x90bdd3,_0x213001])=>_0x90bdd3<=_0x1eab10&&_0x1eab10<=_0x213001);if(!_0x57428a)return _0x3b329c['map'](()=>0x0);const [_0x73cdf7,_0x3155fd]=_0x57428a;return _0x3b329c['map'](_0x1c8ef0=>{const _0x3fc776=Math['abs'](_0x73cdf7-_0x3155fd)||0x1,_0x5cefc8=Math['abs'](_0x1eab10-_0x73cdf7)/_0x3fc776;return _0x73cdf7===_0x1c8ef0?_0x1eab10>_0x5bbdba?0x1:0x1-_0x5cefc8:_0x3155fd===_0x1c8ef0?_0x1eab10>=_0x5bbdba?_0x5cefc8:0x1:0x0;});}function calculateZIndices(_0x5147a2,_0x3502ad){return _0x5147a2['map']((_0x3b70c7,_0x128d04)=>_0x3b70c7<_0x3502ad?_0x5147a2['length']-_0x128d04:_0x128d04);}function keypointsRange(_0x279ae3,_0x2ba097){const _0x1e5f64=COLOR_OPERATIONS_CONFIG[_0x279ae3]['keypointsNumber'],{range:_0x500a98,zero:_0x1f4ea9}=COLOR_OPERATIONS_CONFIG[_0x279ae3];return[...new Set([...linspace(_0x500a98[0x0],_0x1f4ea9,_0x1e5f64+0x1),...linspace(_0x1f4ea9,_0x500a98[0x1],_0x1e5f64+0x1),_0x1f4ea9,_0x2ba097])]['sort']((_0x59e75b,_0x145d83)=>_0x59e75b-_0x145d83);}EditorImageCropper['template']='\x0a\x20\x20<canvas\x20class=\x22uc-canvas\x22\x20ref=\x22canvas-el\x22></canvas>\x0a\x20\x20<uc-crop-frame\x20ref=\x22frame-el\x22></uc-crop-frame>\x0a';var EditorImageFader=class extends Block{['_isActive']=!0x1;['_hidden']=!0x0;['_operation']='initial';['_filter'];['_value'];['_transformations']={};['_keypoints']=[];['_container'];['_previewImage'];['_cancelLastImages'];['_cancelBatchPreload'];['_url'];['_fromViewer'];['_raf']=0x0;['_addKeypointDebounced']=debounce(this['_addKeypoint']['bind'](this),0x258);constructor(){super(),this['classList']['add']('uc-inactive_to_cropper');}['_handleImageLoading'](_0xe86824){const _0x1df732=this['_operation'],_0x4223ea=this['$']['*loadingOperations'];_0x4223ea['has'](_0x1df732)||_0x4223ea['set'](_0x1df732,new Map());const _0x3ad45a=_0x4223ea['get'](_0x1df732);return _0x3ad45a&&!_0x3ad45a['get'](_0xe86824)&&(_0x3ad45a['set'](_0xe86824,!0x0),this['$']['*loadingOperations']=_0x4223ea),()=>{const _0x154e13=_0x4223ea['get'](_0x1df732);_0x154e13?.['has'](_0xe86824)&&(_0x154e13['delete'](_0xe86824),this['$']['*loadingOperations']=_0x4223ea);};}['_flush'](){window['cancelAnimationFrame'](this['_raf']),this['_raf']=window['requestAnimationFrame'](()=>{for(const _0x704d8c of this['_keypoints']){const {image:_0x31b7c0}=_0x704d8c;_0x31b7c0&&(_0x31b7c0['style']['opacity']=_0x704d8c['opacity']['toString'](),_0x31b7c0['style']['zIndex']=_0x704d8c['zIndex']['toString']());}});}['_imageSrc']({url:_0x1177ec=this['_url'],filter:_0x5546b4=this['_filter']??void 0x0,operation:_0x58e3b2,value:_0x4419e9}={}){if(!_0x1177ec)throw new Error('URL\x20is\x20not\x20defined');const _0x2bb3eb={...this['_transformations']};_0x58e3b2&&('filter'===_0x58e3b2?_0x5546b4&&'number'==typeof _0x4419e9&&(_0x2bb3eb['filter']={'name':_0x5546b4,'amount':_0x4419e9}):'number'==typeof _0x4419e9&&(_0x2bb3eb[_0x58e3b2]=_0x4419e9));const _0x4901e3=this['offsetWidth'];return this['proxyUrl'](viewerImageSrc(_0x1177ec,_0x4901e3,_0x2bb3eb));}async['_constructKeypoint'](_0x28a197,_0xc119d1){return{'src':await this['_imageSrc']({'operation':_0x28a197,'value':_0xc119d1}),'image':void 0x0,'opacity':0x0,'zIndex':0x0,'value':_0xc119d1};}['_isSame'](_0x5e73d7,_0x96a5a8){return this['_operation']===_0x5e73d7&&this['_filter']===_0x96a5a8;}async['_addKeypoint'](_0x4ee282,_0x275bc6,_0x592f98){const _0x458353=()=>!this['_isSame'](_0x4ee282,_0x275bc6)||this['_value']!==_0x592f98||!!this['_keypoints']['find'](_0x4bb16c=>_0x4bb16c['value']===_0x592f98);if(_0x458353())return;const _0xb49809=await this['_constructKeypoint'](_0x4ee282,_0x592f98),_0x210a67=new Image();_0x210a67['src']=_0xb49809['src'];const _0x532e49=this['_handleImageLoading'](_0xb49809['src']);_0x210a67['addEventListener']('load',_0x532e49,{'once':!0x0}),_0x210a67['addEventListener']('error',_0x532e49,{'once':!0x0}),_0xb49809['image']=_0x210a67,_0x210a67['classList']['add']('uc-fader-image'),_0x210a67['addEventListener']('load',()=>{if(_0x458353())return;const _0x3cdb9a=this['_keypoints'];let _0x3e9373=_0x3cdb9a['findIndex'](_0x4cd46f=>_0x4cd46f['value']>_0x592f98);-0x1===_0x3e9373&&(_0x3e9373=_0x3cdb9a['length']);const _0x439ddd=_0x3cdb9a[_0x3e9373],_0x427ab2=_0x439ddd?.['image'],_0x3773cd=this['_container'];!_0x3773cd||_0x427ab2&&!_0x3773cd['contains'](_0x427ab2)||(_0x3cdb9a['splice'](_0x3e9373,0x0,_0xb49809),_0x427ab2&&_0x3773cd['insertBefore'](_0x210a67,_0x427ab2),this['_update'](_0x4ee282,_0x592f98));},{'once':!0x0}),_0x210a67['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}['set'](_0x27cdd3){const _0x1cecba='string'==typeof _0x27cdd3?parseInt(_0x27cdd3,0xa):_0x27cdd3;isOperationKey(this['_operation'])&&Number['isFinite'](_0x1cecba)&&(this['_update'](this['_operation'],_0x1cecba),this['_addKeypointDebounced'](this['_operation'],this['_filter'],_0x1cecba));}['_update'](_0x386fb8,_0x33562a){this['_operation']=_0x386fb8,this['_value']=_0x33562a;const {zero:_0x171259}=COLOR_OPERATIONS_CONFIG[_0x386fb8],_0x579fbf=this['_keypoints']['map'](_0x98501b=>_0x98501b['value']),_0xa0d2fc=calculateOpacities(_0x579fbf,_0x33562a,_0x171259),_0x57ff02=calculateZIndices(_0x579fbf,_0x171259);this['_keypoints']['forEach']((_0x1dd750,_0xea1163)=>{const _0x19a03f=_0xa0d2fc[_0xea1163],_0x1555e0=_0x57ff02[_0xea1163];'number'==typeof _0x19a03f&&(_0x1dd750['opacity']=_0x19a03f),'number'==typeof _0x1555e0&&(_0x1dd750['zIndex']=_0x1555e0);}),this['_flush']();}['_createPreviewImage'](){const _0x1ed8f1=new Image();return _0x1ed8f1['classList']['add']('uc-fader-image','uc-fader-image--preview'),_0x1ed8f1['style']['opacity']='0',_0x1ed8f1;}async['_initNodes'](){const _0x5ed83b=document['createDocumentFragment']();this['_previewImage']=this['_previewImage']||this['_createPreviewImage']();const _0x2a7b04=this['_previewImage'];this['contains'](_0x2a7b04)||_0x5ed83b['appendChild'](_0x2a7b04);const _0x1ca70a=document['createElement']('div');_0x5ed83b['appendChild'](_0x1ca70a);const _0x4891b4=this['_keypoints']['map'](_0x12edb9=>_0x12edb9['src']),{images:_0xe569e8,promise:_0x39a109,cancel:_0x112f82}=batchPreloadImages(_0x4891b4);_0xe569e8['forEach'](_0x50e8a1=>{const _0x5c0324=this['_handleImageLoading'](_0x50e8a1['src']);_0x50e8a1['addEventListener']('load',_0x5c0324),_0x50e8a1['addEventListener']('error',_0x5c0324);}),this['_cancelLastImages']=()=>{_0x112f82(),this['_cancelLastImages']=void 0x0;};const _0x266571=this['_operation'],_0x4005f3=this['_filter'];await _0x39a109,this['_isActive']&&this['_isSame'](_0x266571,_0x4005f3)&&(this['_container']?.['remove'](),this['_container']=_0x1ca70a,this['_keypoints']['forEach']((_0x1148db,_0x16ff6e)=>{const _0x1bcf13=_0xe569e8[_0x16ff6e];_0x1bcf13&&(_0x1bcf13['classList']['add']('uc-fader-image'),_0x1148db['image']=_0x1bcf13,this['_container']?.['appendChild'](_0x1bcf13));}),this['appendChild'](_0x5ed83b),this['_flush']());}async['setTransformations'](_0x25dee1){if(this['_transformations']=_0x25dee1,this['_previewImage']){const _0x334eea=await this['_imageSrc'](),_0x250538=this['_handleImageLoading'](_0x334eea);this['_previewImage']['src']=_0x334eea,this['_previewImage']['addEventListener']('load',_0x250538,{'once':!0x0}),this['_previewImage']['addEventListener']('error',_0x250538,{'once':!0x0}),this['_previewImage']['style']['opacity']='1',this['_previewImage']['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}}async['preload']({url:_0x137a85,filter:_0x33aa8a,operation:_0x5c3ad7,value:_0x5608fd}){if(!_0x5c3ad7||'number'!=typeof _0x5608fd)return;this['_cancelBatchPreload']?.();const _0x3e42ca=keypointsRange(_0x5c3ad7,_0x5608fd),_0xcdfe8e=await Promise['all'](_0x3e42ca['map'](_0x552193=>this['_imageSrc']({'url':_0x137a85,'filter':_0x33aa8a,'operation':_0x5c3ad7,'value':_0x552193}))),{cancel:_0x58a828}=batchPreloadImages(_0xcdfe8e);this['_cancelBatchPreload']=_0x58a828;}['_setOriginalSrc'](_0x147125){const _0x129a8d=this['_previewImage']||this['_createPreviewImage']();if(this['contains'](_0x129a8d)||this['appendChild'](_0x129a8d),this['_previewImage']=_0x129a8d,_0x129a8d['src']===_0x147125)return _0x129a8d['style']['opacity']='1',_0x129a8d['style']['transform']='scale(1)',void(this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));_0x129a8d['style']['opacity']='0';const _0x1d3655=this['_handleImageLoading'](_0x147125);_0x129a8d['addEventListener']('error',_0x1d3655,{'once':!0x0}),_0x129a8d['src']=_0x147125,_0x129a8d['addEventListener']('load',()=>{_0x1d3655(),_0x129a8d&&(_0x129a8d['style']['opacity']='1',_0x129a8d['style']['transform']='scale(1)',this['className']=classNames({'uc-active_from_viewer':this['_fromViewer'],'uc-active_from_cropper':!this['_fromViewer'],'uc-inactive_to_cropper':!0x1}));},{'once':!0x0}),_0x129a8d['addEventListener']('error',()=>{this['$']['*networkProblems']=!0x0;},{'once':!0x0});}async['activate']({url:_0x34e7ba,operation:_0x4c8b93,value:_0x3e7056,filter:_0x501523,fromViewer:_0x475476}){this['_isActive']=!0x0,this['_hidden']=!0x1,this['_url']=_0x34e7ba,this['_operation']=_0x4c8b93??'initial',this['_value']=_0x3e7056,this['_filter']=_0x501523,this['_fromViewer']=_0x475476;if('number'!=typeof _0x3e7056&&!_0x501523){const _0x20442c=await this['_imageSrc']({'operation':_0x4c8b93,'value':_0x3e7056});return this['_setOriginalSrc'](_0x20442c),void this['_container']?.['remove']();}_0x4c8b93&&'number'==typeof _0x3e7056&&(this['_keypoints']=await Promise['all'](keypointsRange(_0x4c8b93,_0x3e7056)['map'](_0x401dd2=>this['_constructKeypoint'](_0x4c8b93,_0x401dd2))),this['_update'](_0x4c8b93,_0x3e7056),this['_initNodes']());}['deactivate']({hide:_0xb1d19c=!0x0}={}){this['_isActive']=!0x1,this['_cancelLastImages']?.(),this['_cancelBatchPreload']?.(),_0xb1d19c&&!this['_hidden']?(this['_hidden']=!0x0,this['_previewImage']&&(this['_previewImage']['style']['transform']='scale(1)'),this['className']=classNames({'uc-active_from_viewer':!0x1,'uc-active_from_cropper':!0x1,'uc-inactive_to_cropper':!0x0}),this['addEventListener']('transitionend',()=>{this['_container']?.['remove']();},{'once':!0x0})):this['_container']?.['remove']();}},EditorOperationControl=class extends EditorButtonControl{['_operation']='';['initCallback'](){super['initCallback'](),this['$']['on.click']=_0x4ae88f=>{this['$']['*sliderEl']['setOperation'](this['_operation']),this['$']['*showSlider']=!0x0,this['$']['*currentOperation']=this['_operation'],this['telemetryManager']['sendEventCloudImageEditor'](_0x4ae88f,this['$']['*tabId'],{'operation':parseFilterValue(this['$']['*operationTooltip'])});},this['defineAccessor']('operation',_0x27b6a9=>{_0x27b6a9&&(this['_operation']=_0x27b6a9,this['$']['icon']=_0x27b6a9,this['bindL10n']('title-prop',()=>this['l10n']('a11y-cloud-editor-apply-tuning',{'name':this['l10n'](_0x27b6a9)['toLowerCase']()})),this['bindL10n']('title',()=>this['l10n'](_0x27b6a9)));}),this['sub']('*editorTransformations',_0x4ffa77=>{if(!this['_operation'])return;const {zero:_0x4541a7}=COLOR_OPERATIONS_CONFIG[this['_operation']],_0x18bd79=_0x4ffa77[this['_operation']],_0xc0cb18=void 0x0!==_0x18bd79&&_0x18bd79!==_0x4541a7;this['$']['active']=_0xc0cb18;});}},X_THRESHOLD=0x1,EditorScroller=class extends Block{['initCallback'](){super['initCallback'](),this['addEventListener']('wheel',_0x4cb999=>{_0x4cb999['preventDefault']();const {deltaY:_0x5f1ee2,deltaX:_0xd62df9}=_0x4cb999;Math['abs'](_0xd62df9)>X_THRESHOLD?this['scrollLeft']+=_0xd62df9:this['scrollLeft']+=_0x5f1ee2;},{'passive':!0x1}),this['addEventListener']('scroll',()=>{},{'passive':!0x0});}};function renderTabToggle(_0x382d28){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggle\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggle.'+_0x382d28+';\x20styles:\x20presence.tabToggleStyles;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-btn-ui\x0a\x20\x20\x20\x20\x20\x20\x20\x20theme=\x22tab\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22tab-toggle-'+_0x382d28+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20data-id=\x22'+_0x382d28+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+_0x382d28+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20on.clickTab;\x20aria-role:tab_role;\x20aria-controls:tab_'+_0x382d28+';\x20title-prop:\x20a11y-editor-tab-'+_0x382d28+'\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}function renderTabContent(_0x1423b5){return'\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20id=\x22tab_'+_0x1423b5+'\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-tab-content\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabContent.'+_0x1423b5+';\x20styles:\x20presence.tabContentStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-editor-scroller\x20hidden-scrollbar>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-list_align\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20role=\x22listbox\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20aria-orientation=\x22horizontal\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-controls-list_inner\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ref=\x22controls-list-'+_0x1423b5+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</uc-editor-scroller>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20';}EditorScroller['template']='\x20<slot></slot>\x20';var EditorToolbar=class extends Block{['_debouncedShowLoader'];['_cancelPreload'];['_updateInfoTooltip'];constructor(){super(),this['init$']={...this['init$'],'*sliderEl':null,'*listAspectRatioEl':null,'*loadingOperations':new Map(),'*showSlider':!0x1,'*showListAspectRatio':!0x1,'hideSliderOrList':!0x1,'*currentFilter':FAKE_ORIGINAL_FILTER,'*currentOperation':null,'showLoader':!0x1,'filters':ALL_FILTERS,'colorOperations':ALL_COLOR_OPERATIONS,'cropOperations':ALL_CROP_OPERATIONS,'*operationTooltip':null,'presence.mainToolbar':!0x0,'presence.subToolbar':!0x1,'presence.tabToggles':!0x0,'presence.tabContent.crop':!0x1,'presence.tabContent.tuning':!0x1,'presence.tabContent.filters':!0x1,'presence.tabToggle.crop':!0x0,'presence.tabToggle.tuning':!0x0,'presence.tabToggle.filters':!0x0,'presence.subTopToolbarStyles':{'hidden':'uc-sub-toolbar--top-hidden','visible':'uc-sub-toolbar--visible'},'presence.subBottomToolbarStyles':{'hidden':'uc-sub-toolbar--bottom-hidden','visible':'uc-sub-toolbar--visible'},'presence.tabContentStyles':{'hidden':'uc-tab-content--hidden','visible':'uc-tab-content--visible'},'presence.tabToggleStyles':{'hidden':'uc-tab-toggle--hidden','visible':'uc-tab-toggle--visible'},'presence.tabTogglesStyles':{'hidden':'uc-tab-toggles--hidden','visible':'uc-tab-toggles--visible'},'on.cancel':_0xcba351=>{this['telemetryManager']['sendEventCloudImageEditor'](_0xcba351,this['$']['*tabId'],{'action':'cancel'}),this['_cancelPreload']?.(),(0x0,this['$']['*on.cancel'])();},'on.apply':_0x3b05a4=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x3b05a4,this['$']['*tabId'],{'action':'apply'}),(0x0,this['$']['*on.apply'])(this['$']['*editorTransformations']);},'on.applySlider':_0x5deef8=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x5deef8,this['$']['*tabId'],{'action':'apply-slider','operation':parseFilterValue(this['$']['*operationTooltip'])}),(this['ref']['slider-el']['apply'](),this['_onSliderClose']());},'on.cancelSlider':_0x42825a=>{this['telemetryManager']['sendEventCloudImageEditor'](_0x42825a,this['$']['*tabId'],{'action':'cancel-slider'}),(this['ref']['slider-el']['cancel'](),this['_onSliderClose']());},'on.clickTab':_0x44a456=>{const _0x27f78b=_0x44a456['currentTarget'],_0x5dd98c=_0x27f78b?.['getAttribute']('data-id');_0x5dd98c&&(this['telemetryManager']['sendEventCloudImageEditor'](_0x44a456,_0x5dd98c),this['_activateTab'](_0x5dd98c,{'fromViewer':!0x1}));},'tab_role':'tab',['tab_'+TabId['TUNING']]:'tab_'+TabId['TUNING'],['tab_'+TabId['CROP']]:'tab_'+TabId['CROP'],['tab_'+TabId['FILTERS']]:'tab_'+TabId['FILTERS'],'cancel':'cancel','apply':'apply','a11y-editor-tab-filters':'a11y-editor-tab-filters','a11y-editor-tab-tuning':'a11y-editor-tab-tuning','a11y-editor-tab-crop':'a11y-editor-tab-crop'},this['_debouncedShowLoader']=debounce(this['_showLoader']['bind'](this),0x1f4),this['_updateInfoTooltip']=debounce(this['_updateInfoTooltipHandler']['bind'](this),0x0);}['_onSliderClose'](){(this['$']['*showSlider']=!0x1,this['$']['*tabId']===TabId['CROP']&&(this['$']['*showListAspectRatio']=!0x1),this['$']['*tabId']===TabId['TUNING'])&&this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',!0x1);}['_createOperationControl'](_0x5ee92d){const _0x3723a0=new EditorOperationControl();return _0x3723a0['operation']=_0x5ee92d,_0x3723a0;}['_createFilterControl'](_0x42f126){const _0x29e1ae=new EditorFilterControl();return _0x29e1ae['filter']=_0x42f126,_0x29e1ae;}['_createToggleControl'](_0xf1713a){const _0x1e980b=new EditorCropButtonControl();return _0x1e980b['operation']=_0xf1713a,_0x1e980b;}['_createAspectRatioControl'](_0x1a30d0){const _0x2c4216=new EditorAspectRatioButtonControl();return _0x2c4216['aspectRatio']=_0x1a30d0,_0x2c4216;}['_createFreeformControl'](){return new EditorFreeformButtonControl();}['_clearListAspectRatio'](){const _0x3b1a50=this['$']['*listAspectRatioEl'];_0x3b1a50&&(_0x3b1a50['innerHTML']='');}['_renderControlsList'](_0x17d5f3){const _0x49db33=this['ref']['controls-list-'+_0x17d5f3],_0x13d9bc=document['createDocumentFragment']();if(this['_clearListAspectRatio'](),_0x17d5f3===TabId['CROP']){const _0x5d2aec=this['$']['*cropPresetList'],_0x28b50d=_0x5d2aec['length']>=0x3;if(_0x28b50d){const _0xd2232f=this['_createFreeformControl']();_0x13d9bc['appendChild'](_0xd2232f);}for(const _0x4b6865 of _0x5d2aec){const _0x190e03=this['_createAspectRatioControl'](_0x4b6865);if(_0x13d9bc['appendChild'](_0x190e03),_0x28b50d){const _0x2f14f6=this['$']['*listAspectRatioEl'];_0x2f14f6?.['appendChild'](_0x190e03);}}for(const _0x1d6b73 of this['$']['cropOperations']){const _0xd72522=this['_createToggleControl'](_0x1d6b73);_0x13d9bc['appendChild'](_0xd72522);}}else{if(_0x17d5f3===TabId['FILTERS']){const _0x5892e5=this['$']['filters'];[FAKE_ORIGINAL_FILTER,..._0x5892e5]['forEach'](_0x31e758=>{const _0xa620e4=this['_createFilterControl'](_0x31e758);_0x13d9bc['appendChild'](_0xa620e4);});}else{if(_0x17d5f3===TabId['TUNING'])for(const _0x4862c6 of this['$']['colorOperations']){const _0x12ae06=this['_createOperationControl'](_0x4862c6);_0x13d9bc['appendChild'](_0x12ae06);}}}[..._0x13d9bc['children']]['forEach']((_0x36a499,_0x35b332)=>{_0x35b332===_0x13d9bc['childNodes']['length']-0x1&&_0x36a499['classList']['add']('uc-controls-list_last-item');}),_0x49db33['innerHTML']='',_0x49db33['appendChild'](_0x13d9bc);}['_activateTab'](_0x8baa42,{fromViewer:_0x420c7b}={}){this['$']['*tabId']=_0x8baa42;const _0x2e6df0=this['$']['*faderEl'],_0x27a496=this['$']['*cropperEl'];_0x8baa42===TabId['CROP']?(_0x2e6df0?.['deactivate'](),_0x27a496?.['activate'](this['$']['*imageSize'],{'fromViewer':_0x420c7b})):(_0x2e6df0?.['activate']({'url':this['$']['*originalUrl'],'fromViewer':_0x420c7b}),_0x27a496?.['deactivate']());for(const _0x4a6024 of ALL_TABS){const _0x9dde0c=_0x4a6024===_0x8baa42;this['ref']['tab-toggle-'+_0x4a6024]['active']=_0x9dde0c,_0x9dde0c?(this['_renderControlsList'](_0x8baa42),this['_syncTabIndicator']()):this['_unmountTabControls'](_0x4a6024),this['$']['presence.tabContent.'+_0x4a6024]=_0x9dde0c;}}['_unmountTabControls'](_0x3a8136){const _0x19b201=this['ref']['controls-list-'+_0x3a8136];_0x19b201&&(_0x19b201['innerHTML']='');}['_syncTabIndicator'](){const _0x2f0910=this['ref']['tab-toggle-'+this['$']['*tabId']];this['ref']['tabs-indicator']['style']['transform']='translateX('+_0x2f0910['offsetLeft']+'px)';}async['_preloadEditedImage'](){if(this['$']['*imgContainerEl']&&this['$']['*originalUrl']){const _0x3d8f8e=this['$']['*imgContainerEl']['offsetWidth'],_0x4e9df5=await this['proxyUrl'](viewerImageSrc(this['$']['*originalUrl'],_0x3d8f8e,this['$']['*editorTransformations']));this['_cancelPreload']?.();const {cancel:_0x159911}=batchPreloadImages([_0x4e9df5]);this['_cancelPreload']=()=>{_0x159911(),this['_cancelPreload']=void 0x0;};}}['_showLoader'](_0x48e756){this['$']['showLoader']=_0x48e756;}['_updateInfoTooltipHandler'](){const _0x2a1918=this['$']['*editorTransformations'],_0x21d32e=this['$']['*currentOperation'];let _0x1aab9='',_0x23ef78=!0x1;if(this['$']['*tabId']===TabId['FILTERS']){if(_0x23ef78=!0x0,this['$']['*currentFilter']&&_0x2a1918?.['filter']?.['name']===this['$']['*currentFilter']){const _0x222204=_0x2a1918?.['filter']?.['amount']||0x64;_0x1aab9=this['$']['*currentFilter']+'\x20'+_0x222204;}else _0x1aab9=this['l10n'](FAKE_ORIGINAL_FILTER);}else{if(this['$']['*tabId']===TabId['TUNING']&&_0x21d32e){_0x23ef78=!0x0;const _0x31202b=_0x2a1918?.[_0x21d32e]||COLOR_OPERATIONS_CONFIG[_0x21d32e]['zero'];_0x1aab9=this['l10n'](_0x21d32e)+'\x20'+_0x31202b;}}_0x23ef78&&(this['$']['*operationTooltip']=_0x1aab9),this['ref']['tooltip-el']['classList']['toggle']('uc-info-tooltip_visible',_0x23ef78);}['initCallback'](){super['initCallback'](),this['$']['*sliderEl']=this['ref']['slider-el'],this['$']['*listAspectRatioEl']=this['ref']['list-el'],this['sub']('*imageSize',_0x422131=>{_0x422131&&setTimeout(()=>{this['_activateTab'](this['$']['*tabId'],{'fromViewer':!0x0});},0x0);}),this['sub']('*editorTransformations',_0x4fe297=>{const _0x287d79=_0x4fe297?.['filter']?.['name'];this['$']['*currentFilter']!==_0x287d79&&(this['$']['*currentFilter']=_0x287d79);}),this['sub']('*currentFilter',()=>{this['_updateInfoTooltip']();}),this['sub']('*currentOperation',()=>{this['_updateInfoTooltip']();}),this['sub']('*tabId',()=>{this['_updateInfoTooltip']();}),this['sub']('*originalUrl',()=>{this['$']['*faderEl']?.['deactivate']();}),this['sub']('*editorTransformations',_0x3d65e1=>{this['_preloadEditedImage'](),this['$']['*faderEl']?.['setTransformations'](_0x3d65e1);}),this['sub']('*loadingOperations',_0x1ce1e4=>{let _0x2892dd=!0x1;for(const [,_0x34005f]of _0x1ce1e4['entries']()){if(_0x2892dd)break;for(const [,_0x2ca606]of _0x34005f['entries']())if(_0x2ca606){_0x2892dd=!0x0;break;}}this['_debouncedShowLoader'](_0x2892dd);}),this['sub']('*showSlider',_0x428b83=>{this['$']['presence.subToolbar']=_0x428b83,this['$']['presence.mainToolbar']=!_0x428b83,this['$']['hideSliderOrList']=!0x0;}),this['sub']('*showListAspectRatio',_0x385784=>{this['$']['presence.subToolbar']=_0x385784,this['$']['presence.mainToolbar']=!_0x385784,this['$']['hideSliderOrList']=!0x1;}),this['sub']('*tabList',_0x5a3988=>{this['$']['presence.tabToggles']=_0x5a3988['length']>0x1;for(const _0xc9b03d of ALL_TABS){this['$']['presence.tabToggle.'+_0xc9b03d]=_0x5a3988['includes'](_0xc9b03d),this['ref']['tab-toggle-'+_0xc9b03d]['style']['gridColumn']=''+(_0x5a3988['indexOf'](_0xc9b03d)+0x1);}if(!_0x5a3988['includes'](this['$']['*tabId'])&&_0x5a3988['length']>0x0){const [_0x1b0441]=_0x5a3988;_0x1b0441&&this['_activateTab'](_0x1b0441,{'fromViewer':!0x1});}}),this['_updateInfoTooltip']();}['destroyCallback'](){this['$']['*showSlider']=!0x1,this['$']['*showListAspectRatio']=!0x1;}};EditorToolbar['template']='\x0a\x20\x20<uc-line-loader-ui\x20set=\x22active:\x20showLoader\x22></uc-line-loader-ui>\x0a\x20\x20<div\x20class=\x22uc-info-tooltip_container\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-info-tooltip_wrapper\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tooltip-el\x22\x20class=\x22uc-info-tooltip\x20uc-info-tooltip_hidden\x22>{{*operationTooltip}}</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x20\x20<div\x20class=\x22uc-toolbar-container\x22>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20role=\x22tablist\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.mainToolbar;\x20styles:\x20presence.subTopToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-tab-content-row\x22>'+ALL_TABS['map'](renderTabContent)['join']('')+'</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-tab-toggles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.tabToggles;\x20styles:\x20presence.tabTogglesStyles\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20ref=\x22tabs-indicator\x22\x20class=\x22uc-tab-toggles_indicator\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+ALL_TABS['map'](renderTabToggle)['join']('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20style=\x22order:\x20-1\x22\x20theme=\x22secondary-icon\x22\x20icon=\x22closeMax\x22\x20set=\x22onclick:\x20on.cancel;\x20title-prop:cancel\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary-icon\x22\x20icon=\x22done\x22\x20set=\x22onclick:\x20on.apply;\x20title-prop:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20\x20\x20<uc-presence-toggle\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-sub-toolbar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22visible:\x20presence.subToolbar;\x20styles:\x20presence.subBottomToolbarStyles\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-slider\x22\x20set=\x22@hidden:!hideSliderOrList\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-editor-slider\x20ref=\x22slider-el\x22></uc-editor-slider>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:hideSliderOrList\x22\x20class=\x22uc-list-aspect-ratio-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-list-aspect-ratio\x22\x20ref=\x22list-el\x22></div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-controls-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22secondary\x22\x20set=\x22onclick:\x20on.cancelSlider\x22\x20l10n=\x22@text:cancel\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-btn-ui\x20theme=\x22primary\x22\x20set=\x22onclick:\x20on.applySlider\x22\x20l10n=\x22@text:apply\x22>\x20</uc-btn-ui>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</uc-presence-toggle>\x0a\x20\x20</div>\x0a';var BtnUi=class extends Block{['_iconReversed']=!0x1;['_iconSingle']=!0x1;['_iconHidden']=!0x1;constructor(){super(),this['init$']={...this['init$'],'text':'','icon':'','iconCss':this['_iconCss'](),'theme':null,'aria-role':'','aria-controls':'','title-prop':''},this['defineAccessor']('active',_0x57efb7=>{_0x57efb7?this['setAttribute']('active',''):this['removeAttribute']('active');});}['_iconCss'](){return classNames('uc-icon',{'uc-icon_left':!this['_iconReversed'],'uc-icon_right':this['_iconReversed'],'uc-icon_hidden':this['_iconHidden'],'uc-icon_single':this['_iconSingle']});}['initCallback'](){super['initCallback'](),this['sub']('icon',_0x1fa6fa=>{this['_iconSingle']=!this['$']['text'],this['_iconHidden']=!_0x1fa6fa,this['$']['iconCss']=this['_iconCss']();}),this['sub']('theme',_0x89b3bb=>{_0x89b3bb&&'custom'!==_0x89b3bb&&(this['className']='uc-'+_0x89b3bb);}),this['sub']('text',()=>{this['_iconSingle']=!0x1;}),this['hasAttribute']('theme')||this['setAttribute']('theme','default'),this['defineAccessor']('aria-role',_0x3345e7=>{this['$']['aria-role']=_0x3345e7||'';}),this['defineAccessor']('aria-controls',_0x476efb=>{this['$']['aria-controls']=_0x476efb||'';}),this['defineAccessor']('title-prop',_0x50462a=>{this['$']['title-prop']=_0x50462a||'';});}set['reverse'](_0x4e04ce){this['hasAttribute']('reverse')?(this['style']['flexDirection']='row-reverse',this['_iconReversed']=!0x0):(this['_iconReversed']=!0x1,this['style']['flexDirection']='');}};BtnUi['bindAttributes']({'text':'text','icon':'icon','reverse':'reverse','theme':'theme'}),BtnUi['template']='\x0a\x20\x20<button\x0a\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20set=\x22@role:aria-role;\x20@aria-controls:\x20aria-controls;\x20@aria-label:title-prop\x22\x0a\x20\x20\x20\x20l10n=\x22@title:title-prop;\x22\x0a\x20\x20>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22className:\x20iconCss;\x20@name:\x20icon;\x20@hidden:\x20!icon\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-text\x22>{{text}}</div>\x0a\x20\x20</button>\x0a';var LineLoaderUi=class extends Block{['_active']=!0x1;['_handleTransitionEndRight']=()=>{const _0x407fed=this['ref']['line-el'];_0x407fed['style']['transition']='initial',_0x407fed['style']['opacity']='0',_0x407fed['style']['transform']='translateX(-101%)',this['_active']&&this['_start']();};['initCallback'](){super['initCallback'](),this['defineAccessor']('active',_0x3547c2=>{'boolean'==typeof _0x3547c2&&(_0x3547c2?this['_start']():this['_stop']());});}['_start'](){this['_active']=!0x0;const {width:_0x1fa797}=this['getBoundingClientRect'](),_0x23735e=this['ref']['line-el'];_0x23735e['style']['transition']='transform\x201s',_0x23735e['style']['opacity']='1',_0x23735e['style']['transform']='translateX('+_0x1fa797+'px)',_0x23735e['addEventListener']('transitionend',this['_handleTransitionEndRight'],{'once':!0x0});}['_stop'](){this['_active']=!0x1;}};LineLoaderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-line\x22\x20ref=\x22line-el\x22></div>\x0a\x20\x20</div>\x0a';var DEFAULT_STYLE={'transition':'uc-transition','visible':'uc-visible','hidden':'uc-hidden'},PresenceToggle=class extends Block{['_visible']=!0x1;['_visibleStyle']=DEFAULT_STYLE['visible'];['_hiddenStyle']=DEFAULT_STYLE['hidden'];['_externalTransitions']=!0x1;constructor(){super(),this['defineAccessor']('styles',_0xcb1299=>{_0xcb1299&&(this['_externalTransitions']=!0x0,this['_visibleStyle']=_0xcb1299['visible']??DEFAULT_STYLE['visible'],this['_hiddenStyle']=_0xcb1299['hidden']??DEFAULT_STYLE['hidden']);}),this['defineAccessor']('visible',_0x43d695=>{'boolean'==typeof _0x43d695&&(this['_visible']=_0x43d695,this['_handleVisible']());});}['_handleVisible'](){this['style']['visibility']=this['_visible']?'inherit':'hidden',applyClassNames(this,{[DEFAULT_STYLE['transition']]:!this['_externalTransitions'],[this['_visibleStyle']]:this['_visible'],[this['_hiddenStyle']]:!this['_visible']}),this['setAttribute']('aria-hidden',this['_visible']?'false':'true');}['initCallback'](){super['initCallback'](),this['classList']['toggle']('uc-initial',!0x0),this['_externalTransitions']||this['classList']['add'](DEFAULT_STYLE['transition']),this['_handleVisible'](),setTimeout(()=>{this['classList']['toggle']('uc-initial',!0x1);},0x0);}};PresenceToggle['template']='<slot></slot>\x20';var SliderUi=class extends Block{['_observer'];['_thumbSize']=0x0;['_zero']=0x0;['_zeroDotEl'];['_stepsCount'];constructor(){super(),this['init$']={...this['init$'],'disabled':!0x1,'min':0x0,'max':0x64,'onInput':null,'onChange':null,'defaultValue':0x0,'on.sliderInput':()=>{const _0x491928=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x491928),this['$']['onInput']?.(_0x491928);},'on.sliderChange':()=>{const _0xa3e15f=Number['parseInt'](this['_inputEl']()['value'],0xa);this['$']['onChange']?.(_0xa3e15f);}},this['setAttribute']('with-effects','');}['initCallback'](){super['initCallback'](),this['defineAccessor']('disabled',_0x24c022=>{this['$']['disabled']=_0x24c022;}),this['defineAccessor']('min',_0x39d354=>{this['$']['min']=_0x39d354;}),this['defineAccessor']('max',_0x2d0b2e=>{this['$']['max']=_0x2d0b2e;}),this['defineAccessor']('defaultValue',_0x42b128=>{this['$']['defaultValue']=_0x42b128,(this['_inputEl']()['value']=String(_0x42b128),this['_updateValue'](_0x42b128));}),this['defineAccessor']('zero',_0xd235b0=>{this['_zero']=_0xd235b0;}),this['defineAccessor']('onInput',_0x459aa2=>{_0x459aa2&&(this['$']['onInput']=_0x459aa2);}),this['defineAccessor']('onChange',_0x3bf268=>{_0x3bf268&&(this['$']['onChange']=_0x3bf268);}),this['_updateSteps'](),this['_observer']=new ResizeObserver(()=>{this['_updateSteps']();const _0x575b8a=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x575b8a);}),this['_observer']['observe'](this),this['_thumbSize']=Number['parseInt'](window['getComputedStyle'](this)['getPropertyValue']('--l-thumb-size'),0xa),setTimeout(()=>{const _0x113fc4=Number['parseInt'](this['_inputEl']()['value'],0xa);this['_updateValue'](_0x113fc4);},0x0),this['sub']('disabled',_0x9eeabd=>{const _0xdb56e6=this['_inputEl']();_0x9eeabd?_0xdb56e6['setAttribute']('disabled','disabled'):_0xdb56e6['removeAttribute']('disabled');});const _0x4f4075=this['_inputEl']();_0x4f4075['addEventListener']('focus',()=>{this['style']['setProperty']('--color-effect','var(--hover-color-rgb)');}),_0x4f4075['addEventListener']('blur',()=>{this['style']['setProperty']('--color-effect','var(--idle-color-rgb)');});}['_inputEl'](){return this['ref']['input-el'];}['_thumbEl'](){return this['ref']['thumb-el'];}['_stepsEl'](){return this['ref']['steps-el'];}['_updateValue'](_0x4fe1f4){this['_updateZeroDot'](_0x4fe1f4);const {width:_0x2f1285}=this['getBoundingClientRect'](),_0x5ee7de=0x64/(this['$']['max']-this['$']['min'])*(_0x4fe1f4-this['$']['min'])*(_0x2f1285-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_thumbEl']()['style']['transform']='translateX('+_0x5ee7de+'px)';});}['_updateZeroDot'](_0x3dc758){if(!this['_zeroDotEl'])return;this['_zeroDotEl']['style']['opacity']=_0x3dc758===this['_zero']?'0':'1';const {width:_0x13b4fb}=this['getBoundingClientRect'](),_0xd1970a=0x64/(this['$']['max']-this['$']['min'])*(this['_zero']-this['$']['min'])*(_0x13b4fb-this['_thumbSize'])/0x64;window['requestAnimationFrame'](()=>{this['_zeroDotEl']&&(this['_zeroDotEl']['style']['transform']='translateX('+_0xd1970a+'px)');});}['_updateSteps'](){const _0x38d223=this['_stepsEl'](),{width:_0x2a74a0}=_0x38d223['getBoundingClientRect'](),_0x2ed8fc=Math['ceil'](_0x2a74a0/0x2),_0x5b6c33=Math['ceil'](_0x2ed8fc/0xf)-0x2;if(this['_stepsCount']===_0x5b6c33)return;const _0x302e27=document['createDocumentFragment'](),_0x2a96c1=document['createElement']('div'),_0x30b3b0=document['createElement']('div');_0x2a96c1['className']='uc-minor-step',_0x30b3b0['className']='uc-border-step',_0x302e27['appendChild'](_0x30b3b0);for(let _0x291475=0x0;_0x291475<_0x5b6c33;_0x291475+=0x1)_0x302e27['appendChild'](_0x2a96c1['cloneNode']());_0x302e27['appendChild'](_0x30b3b0['cloneNode']());for(let _0x36542e=0x0;_0x36542e<_0x5b6c33;_0x36542e+=0x1)_0x302e27['appendChild'](_0x2a96c1['cloneNode']());_0x302e27['appendChild'](_0x30b3b0['cloneNode']());const _0x260336=document['createElement']('div');_0x260336['className']='uc-zero-dot',_0x302e27['appendChild'](_0x260336),this['_zeroDotEl']=_0x260336,_0x38d223['innerHTML']='',_0x38d223['appendChild'](_0x302e27),this['_stepsCount']=_0x5b6c33;}['destroyCallback'](){super['destroyCallback'](),this['_observer']?.['disconnect']();}};SliderUi['template']='\x0a\x20\x20<div\x20class=\x22uc-steps\x22\x20ref=\x22steps-el\x22></div>\x0a\x20\x20<div\x20ref=\x22thumb-el\x22\x20class=\x22uc-thumb\x22></div>\x0a\x20\x20<input\x0a\x20\x20\x20\x20class=\x22uc-input\x22\x0a\x20\x20\x20\x20type=\x22range\x22\x0a\x20\x20\x20\x20ref=\x22input-el\x22\x0a\x20\x20\x20\x20set=\x22oninput:\x20on.sliderInput;\x20onchange:\x20on.sliderChange;\x20@min:\x20min;\x20@max:\x20max;\x20@value:\x20defaultValue;\x22\x0a\x20\x20/>\x0a';var CloudImageEditorActivity=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];['_entry'];['_instance'];get['activityParams'](){const _0x1c9555=super['activityParams'];if('internalId'in _0x1c9555)return _0x1c9555;throw new Error('Cloud\x20Image\x20Editor\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>this['mountEditor'](),'onDeactivate':()=>this['unmountEditor']()}),this['subConfigValue']('cropPreset',_0x57f78f=>{this['_instance']&&this['_instance']['getAttribute']('crop-preset')!==_0x57f78f&&this['_instance']['setAttribute']('crop-preset',_0x57f78f);}),this['subConfigValue']('cloudImageEditorTabs',_0x1c0f9c=>{this['_instance']&&this['_instance']['getAttribute']('tabs')!==_0x1c0f9c&&this['_instance']['setAttribute']('tabs',_0x1c0f9c);});}['handleApply'](_0x542a6f){if(!this['_entry'])return;const _0x507bcb=_0x542a6f['detail'];this['_entry']['setMultipleValues']({'cdnUrl':_0x507bcb['cdnUrl'],'cdnUrlModifiers':_0x507bcb['cdnUrlModifiers']}),this['modalManager']?.['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['handleCancel'](){this['modalManager']?.['close'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['historyBack']();}['mountEditor'](){const {internalId:_0x1592ce}=this['activityParams'],_0xe7a005=this['uploadCollection']['read'](_0x1592ce);if(!_0xe7a005)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x1592ce+'\x22\x20not\x20found');this['_entry']=_0xe7a005;const _0x387c24=this['_entry']['getValue']('cdnUrl');if(!_0x387c24)throw new Error('Entry\x20with\x20internalId\x20\x22'+_0x1592ce+'\x22\x20hasn\x27t\x20uploaded\x20yet');const _0x154915=new CloudImageEditorBlock(),_0x519e77=this['cfg']['cropPreset'],_0x36529c=this['cfg']['cloudImageEditorTabs'];_0x154915['setAttribute']('ctx-name',this['ctxName']),_0x154915['setAttribute']('cdn-url',_0x387c24),_0x519e77&&_0x154915['setAttribute']('crop-preset',_0x519e77),_0x36529c&&_0x154915['setAttribute']('tabs',_0x36529c),_0x154915['addEventListener']('apply',_0x4cd42f=>{const _0x2afa6f=_0x4cd42f;this['handleApply'](_0x2afa6f),this['debugPrint']('editor\x20event\x20\x22apply\x22',_0x2afa6f['detail']);}),_0x154915['addEventListener']('cancel',_0x5bdbb0=>{const _0x3160e1=_0x5bdbb0;this['handleCancel'](),this['debugPrint']('editor\x20event\x20\x22cancel\x22',_0x3160e1['detail']);}),_0x154915['addEventListener']('change',_0x41cc92=>{const _0x548406=_0x41cc92;this['debugPrint']('editor\x20event\x20\x22change\x22',_0x548406['detail']);}),this['innerHTML']='',this['appendChild'](_0x154915),this['_instance']=_0x154915;}['unmountEditor'](){this['_instance']=void 0x0,this['_entry']=void 0x0,this['innerHTML']='';}},toKebabCase=_0x1ab8cd=>_0x1ab8cd['match'](/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.['map'](_0x426571=>_0x426571['toLowerCase']())['join']('-'),ASSERTIONS=[{'test':_0x1b1976=>!!_0x1b1976['accept']&&!!_0x1b1976['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':_0x2fe906=>null!==_0x2fe906['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':_0xcd7830=>null!==_0xcd7830['defaultCameraMode'],'message':'The\x20`defaultCameraMode`\x20parameter\x20is\x20deprecated\x20and\x20will\x20be\x20removed\x20in\x20the\x20next\x20major\x20release.\x0aPlease\x20use\x20the\x20`cameraModes`\x20parameter\x20instead.'}],runAssertions=debounce(_0x2bc0d9=>{for(const {test:_0xb3ae73,message:_0xb1545f}of ASSERTIONS)_0xb3ae73(_0x2bc0d9)&&warnOnce(_0xb1545f);},0x0),isPromiseLike=_0x5668c5=>_0x5668c5 instanceof Promise||Boolean(_0x5668c5&&'object'==typeof _0x5668c5&&'then'in _0x5668c5&&'function'==typeof _0x5668c5['then']),defineComputedProperty=_0x5d4371=>_0x5d4371,COMPUTED_PROPERTIES=[defineComputedProperty({'key':'cameraModes','deps':['enableVideoRecording'],'fn':({cameraModes:_0x54de96,enableVideoRecording:_0x11eaf4})=>{if(null===_0x11eaf4)return _0x54de96;let _0x42386d=deserializeCsv(_0x54de96);return _0x11eaf4&&!_0x42386d['includes']('video')?_0x42386d=_0x42386d['concat']('video'):_0x11eaf4||(_0x42386d=_0x42386d['filter'](_0xa9af68=>'video'!==_0xa9af68)),serializeCsv(_0x42386d);}}),defineComputedProperty({'key':'cameraModes','deps':['defaultCameraMode'],'fn':({cameraModes:_0x126031,defaultCameraMode:_0x58f8fe})=>{if(null===_0x58f8fe)return _0x126031;let _0x3663d2=deserializeCsv(_0x126031);return _0x3663d2=_0x3663d2['sort']((_0x2ffee2,_0x1ff3e7)=>_0x2ffee2===_0x58f8fe?-0x1:_0x1ff3e7===_0x58f8fe?0x1:0x0),serializeCsv(_0x3663d2);}}),defineComputedProperty({'key':'cdnCname','deps':['pubkey','cdnCnamePrefixed'],'fn':({pubkey:_0xf5eb60,cdnCname:_0x24c128,cdnCnamePrefixed:_0x42ae2f})=>_0xf5eb60&&(_0x24c128===DEFAULT_CDN_CNAME||c$1(_0x24c128,_0x42ae2f))?f(_0xf5eb60,_0x42ae2f):_0x24c128})],computeProperty=({key:_0x5907f4,setValue:_0x91292d,getValue:_0x509080,computationControllers:_0x3de195})=>{for(const _0xfbafc0 of COMPUTED_PROPERTIES)if(_0xfbafc0['deps']['includes'](_0x5907f4)){const _0x1e0f70={[_0xfbafc0['key']]:_0x509080(_0xfbafc0['key'])};for(const _0x44cc3c of _0xfbafc0['deps'])_0x1e0f70[_0x44cc3c]=_0x509080(_0x44cc3c);const _0x913a2=new AbortController();let _0x21e3ef;_0x3de195['get'](_0xfbafc0['key'])?.['abort'](),_0x3de195['set'](_0xfbafc0['key'],_0x913a2);try{_0x21e3ef=_0xfbafc0['fn'](_0x1e0f70,{'signal':_0x913a2['signal']});}catch(_0x170386){return _0x3de195['get'](_0xfbafc0['key'])===_0x913a2&&_0x3de195['delete'](_0xfbafc0['key']),void console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0xfbafc0['key']+'\x22',_0x170386);}isPromiseLike(_0x21e3ef)?_0x21e3ef['then'](_0x46069d=>{_0x913a2['signal']['aborted']||_0x91292d(_0xfbafc0['key'],_0x46069d);})['catch'](_0x56af2a=>{_0x913a2['signal']['aborted']||console['error']('Failed\x20to\x20compute\x20value\x20for\x20\x22'+_0xfbafc0['key']+'\x22',_0x56af2a);})['finally'](()=>{_0x3de195['get'](_0xfbafc0['key'])===_0x913a2&&_0x3de195['delete'](_0xfbafc0['key']);}):_0x91292d(_0xfbafc0['key'],_0x21e3ef);}},asString=_0x24d489=>String(_0x24d489),asNumber2=_0x392685=>{const _0x497083=Number(_0x392685);if(Number['isNaN'](_0x497083))throw new Error('Invalid\x20number:\x20\x22'+_0x392685+'\x22');return _0x497083;},asBoolean2=_0x17a778=>{if(null==_0x17a778)return!0x1;if('boolean'==typeof _0x17a778)return _0x17a778;if('true'===_0x17a778)return!0x0;if(''===_0x17a778)return!0x0;if('false'===_0x17a778)return!0x1;throw new Error('Invalid\x20boolean:\x20\x22'+_0x17a778+'\x22');},asStore=_0x1437af=>'auto'===_0x1437af?_0x1437af:asBoolean2(_0x1437af),asCameraCapture=_0x2d843f=>{const _0x5b65eb=asString(_0x2d843f);if('user'!==_0x5b65eb&&'environment'!==_0x5b65eb&&''!==_0x5b65eb)throw new Error('Invalid\x20value:\x20\x22'+_0x5b65eb+'\x22');return _0x5b65eb;},asCameraMode=_0x2cc84b=>{const _0x32e220=asString(_0x2cc84b);if(!Object['values'](CameraSourceTypes)['includes'](_0x32e220))throw new Error('Invalid\x20value:\x20\x22'+_0x32e220+'\x22');return _0x32e220;},asCameraModes=_0x55fe89=>{const _0x584e0f=asString(_0x55fe89),_0x1c9071=deserializeCsv(_0x584e0f);if(_0x1c9071['some'](_0x57daf5=>!Object['values'](CameraSourceTypes)['includes'](_0x57daf5)))throw new Error('Invalid\x20value:\x20\x22'+JSON['stringify'](_0x1c9071)+'\x22');return _0x584e0f;},asMetadata=_0xa7f760=>{if('object'==typeof _0xa7f760&&!Array['isArray'](_0xa7f760))return _0xa7f760;if('function'==typeof _0xa7f760)return _0xa7f760;throw new Error('Invalid\x20metadata\x20value.\x20Must\x20be\x20an\x20object\x20or\x20function.');},asObject=_0x245393=>{if('object'==typeof _0x245393)return _0x245393;throw new Error('Invalid\x20value.\x20Must\x20be\x20an\x20object.');},asFunction=_0x40f86e=>{if('function'==typeof _0x40f86e)return _0x40f86e;throw new Error('Invalid\x20value.\x20Must\x20be\x20a\x20function.');},asArray=_0x415103=>{if(Array['isArray'](_0x415103))return _0x415103;throw new Error('Must\x20be\x20an\x20array.');},asFilesViewMode=_0x4f321f=>{const _0x4c231b=asString(_0x4f321f);if(['grid','list']['includes'](_0x4c231b))return _0x4c231b;throw new Error('Invalid\x20value:\x20\x22'+_0x4c231b+'\x22');},mapping={'pubkey':asString,'multiple':asBoolean2,'multipleMin':asNumber2,'multipleMax':asNumber2,'confirmUpload':asBoolean2,'imgOnly':asBoolean2,'accept':asString,'externalSourcesPreferredTypes':asString,'externalSourcesEmbedCss':asString,'store':asStore,'cameraMirror':asBoolean2,'cameraCapture':asCameraCapture,'sourceList':asString,'topLevelOrigin':asString,'maxLocalFileSizeBytes':asNumber2,'thumbSize':asNumber2,'showEmptyList':asBoolean2,'useLocalImageEditor':asBoolean2,'useCloudImageEditor':asBoolean2,'cloudImageEditorTabs':asString,'removeCopyright':asBoolean2,'cropPreset':asString,'imageShrink':asString,'modalScrollLock':asBoolean2,'modalBackdropStrokes':asBoolean2,'sourceListWrap':asBoolean2,'remoteTabSessionKey':asString,'cdnCname':asString,'cdnCnamePrefixed':asString,'baseUrl':asString,'socialBaseUrl':asString,'secureSignature':asString,'secureExpire':asString,'secureDeliveryProxy':asString,'retryThrottledRequestMaxTimes':asNumber2,'retryNetworkErrorMaxTimes':asNumber2,'multipartMinFileSize':asNumber2,'multipartChunkSize':asNumber2,'maxConcurrentRequests':asNumber2,'multipartMaxConcurrentRequests':asNumber2,'multipartMaxAttempts':asNumber2,'checkForUrlDuplicates':asBoolean2,'saveUrlForRecurrentUploads':asBoolean2,'groupOutput':asBoolean2,'userAgentIntegration':asString,'debug':asBoolean2,'localeName':asString,'metadata':asMetadata,'secureUploadsExpireThreshold':asNumber2,'localeDefinitionOverride':_0x394228=>asObject(_0x394228),'secureUploadsSignatureResolver':_0x556c95=>asFunction(_0x556c95),'secureDeliveryProxyUrlResolver':_0x486a91=>asFunction(_0x486a91),'iconHrefResolver':_0x4d3d9e=>asFunction(_0x4d3d9e),'fileValidators':asArray,'collectionValidators':asArray,'validationTimeout':asNumber2,'validationConcurrency':asNumber2,'cameraModes':asCameraModes,'defaultCameraMode':asCameraMode,'enableAudioRecording':asBoolean2,'enableVideoRecording':asBoolean2,'mediaRecorderOptions':asObject,'maxVideoRecordingDuration':asNumber2,'filesViewMode':asFilesViewMode,'gridShowFileNames':asBoolean2,'cloudImageEditorAutoOpen':asBoolean2,'cloudImageEditorMaskHref':asString,'testMode':asBoolean2,'qualityInsights':asBoolean2},normalizeConfigValue=(_0x4a7a8b,_0x3cedca)=>{if(null!=_0x3cedca)try{return mapping[_0x4a7a8b](_0x3cedca);}catch(_0x260f9e){return console['error']('Invalid\x20value\x20for\x20config\x20key\x20\x22'+_0x4a7a8b+'\x22.',_0x260f9e),initialConfig[_0x4a7a8b];}},allConfigKeys=[...new Set(['debug',...Object['keys'](initialConfig)])],complexConfigKeys=['metadata','localeDefinitionOverride','secureUploadsSignatureResolver','secureDeliveryProxyUrlResolver','iconHrefResolver','fileValidators','collectionValidators','mediaRecorderOptions'],isComplexKey=_0x5137e6=>complexConfigKeys['includes'](_0x5137e6),plainConfigKeys=allConfigKeys['filter'](_0x117ad3=>!isComplexKey(_0x117ad3)),attrKeyMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x5b472f=>[toKebabCase(_0x5b472f),_0x5b472f])),...Object['fromEntries'](plainConfigKeys['map'](_0x5b7ebd=>[_0x5b7ebd['toLowerCase'](),_0x5b7ebd]))},attrStateMapping={...Object['fromEntries'](plainConfigKeys['map'](_0x507d97=>[toKebabCase(_0x507d97),sharedConfigKey(_0x507d97)])),...Object['fromEntries'](plainConfigKeys['map'](_0x26a887=>[_0x26a887['toLowerCase'](),sharedConfigKey(_0x26a887)]))},getLocalPropName=_0x19a869=>'__'+_0x19a869,Config=class extends Block{['requireCtxName']=!0x0;constructor(){super(),this['init$']={...this['init$'],...Object['fromEntries'](Object['entries'](initialConfig)['map'](([_0x3c4d83,_0x4b284e])=>[sharedConfigKey(_0x3c4d83),_0x4b284e])),'computationControllers':new Map()};}['_flushValueToAttribute'](_0x525580,_0x296c6e){if(!isComplexKey(_0x525580)){const _0x4e2dcf=[...new Set([toKebabCase(_0x525580),_0x525580['toLowerCase']()])];for(const _0x584efc of _0x4e2dcf)null==_0x296c6e?this['removeAttribute'](_0x584efc):this['getAttribute'](_0x584efc)!==_0x296c6e['toString']()&&this['setAttribute'](_0x584efc,_0x296c6e['toString']());}}['_flushValueToState'](_0xd11213,_0x1fa766){this['$'][sharedConfigKey(_0xd11213)]!==_0x1fa766&&(this['$'][sharedConfigKey(_0xd11213)]=null==_0x1fa766?initialConfig[_0xd11213]:_0x1fa766);}['_setValue'](_0x3faa41,_0x33fe75){const _0x3c4dae=this,_0x68767c=normalizeConfigValue(_0x3faa41,_0x33fe75),_0x54ae15=getLocalPropName(_0x3faa41);_0x3c4dae[_0x54ae15]!==_0x68767c&&(this['_assertSameValueDifferentReference'](_0x3faa41,_0x3c4dae[_0x54ae15],_0x68767c),_0x3c4dae[_0x54ae15]=_0x68767c,this['_flushValueToAttribute'](_0x3faa41,_0x68767c),this['_flushValueToState'](_0x3faa41,_0x68767c),this['debugPrint']('[uc-config]\x20\x22'+_0x3faa41+'\x22',_0x68767c),runAssertions(this['cfg']));}['_getValue'](_0x2249df){return this[getLocalPropName(_0x2249df)]??this['$'][sharedConfigKey(_0x2249df)];}['_assertSameValueDifferentReference'](_0x2ac5ad,_0x3f5c61,_0x25aeea){this['cfg']['debug']&&_0x25aeea!==_0x3f5c61&&'object'==typeof _0x25aeea&&'object'==typeof _0x3f5c61&&JSON['stringify'](_0x25aeea)===JSON['stringify'](_0x3f5c61)&&(console['warn']('[uc-config]\x20Option\x20\x22'+_0x2ac5ad+'\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'+_0x2ac5ad+'\x22\x20previous\x20value:',_0x3f5c61),console['warn']('[uc-config]\x20\x22'+_0x2ac5ad+'\x22\x20new\x20value:',_0x25aeea));}['initCallback'](){super['initCallback']();const _0x1a4a51=this;for(const _0x1d0c14 of plainConfigKeys)this['sub'](sharedConfigKey(_0x1d0c14),_0x3b86d8=>{this['_setValue'](_0x1d0c14,_0x3b86d8);},!0x1);for(const _0x1f6ce4 of allConfigKeys){const _0x1b2a23=_0x1a4a51[_0x1f6ce4]??this['$'][sharedConfigKey(_0x1f6ce4)];_0x1b2a23!==initialConfig[_0x1f6ce4]&&this['_setValue'](_0x1f6ce4,_0x1b2a23),Object['defineProperty'](this,_0x1f6ce4,{'set':_0x2dfae7=>{this['_setValue'](_0x1f6ce4,_0x2dfae7);},'get':()=>this['_getValue'](_0x1f6ce4)});}for(const _0xebaa48 of allConfigKeys)this['sub'](sharedConfigKey(_0xebaa48),()=>{computeProperty({'key':_0xebaa48,'setValue':this['_setValue']['bind'](this),'getValue':this['_getValue']['bind'](this),'computationControllers':this['computationControllers']});});}['attributeChangedCallback'](_0x5ed784,_0x98891a,_0x1ec933){if(_0x98891a===_0x1ec933)return;const _0x4d8d8b=this,_0x570471=attrKeyMapping[_0x5ed784];_0x570471&&(_0x4d8d8b[_0x570471]=_0x1ec933);}get['computationControllers'](){return this['$']['computationControllers'];}};Config['bindAttributes'](attrStateMapping);for(const e of allConfigKeys)Config['prototype'][e]=void 0x0;var Copyright=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('removeCopyright',_0xf49061=>{this['toggleAttribute']('hidden',!!_0xf49061);});}static ['template']='\x0a\x20\x20\x20\x20<a\x0a\x20\x20\x20\x20\x20\x20href=\x22https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4\x22\x0a\x20\x20\x20\x20\x20\x20target=\x22_blank\x20noopener\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-credits\x22\x0a\x20\x20\x20\x20\x20\x20>Powered\x20by\x20Uploadcare</a\x0a\x20\x20\x20\x20>\x0a\x20\x20';};function checkIsDirectory(_0x19380a){return new Promise(_0x444936=>{'function'!=typeof window['FileReader']&&_0x444936(!0x1);try{const _0x323a8d=new FileReader();_0x323a8d['onerror']=()=>{_0x444936(!0x0);};const _0x5b54df=_0xc540da=>{'loadend'!==_0xc540da['type']&&_0x323a8d['abort'](),_0x444936(!0x1);};_0x323a8d['onloadend']=_0x5b54df,_0x323a8d['onprogress']=_0x5b54df,_0x323a8d['readAsDataURL'](_0x19380a);}catch{_0x444936(!0x1);}});}function readEntryContentAsync(_0x5e4a3b,_0x58079e){return new Promise(_0x395146=>{let _0xb6ddd2=0x0;const _0x517720=[],_0x52ecf4=_0x2c9103=>{if(!_0x2c9103)return console['warn']('Unexpectedly\x20received\x20empty\x20content\x20entry',{'scope':'drag-and-drop'}),void _0x395146(null);_0x2c9103['isFile']?(_0xb6ddd2++,_0x2c9103['file'](_0x567d5e=>{_0xb6ddd2--;const _0x58926d=new File([_0x567d5e],_0x567d5e['name'],{'type':_0x567d5e['type']||_0x58079e});_0x517720['push']({'type':'file','file':_0x58926d,'fullPath':_0x2c9103['fullPath']}),0x0===_0xb6ddd2&&_0x395146(_0x517720);})):_0x2c9103['isDirectory']&&_0x46f5f4(_0x2c9103['createReader']());},_0x46f5f4=_0x6f8baf=>{_0xb6ddd2++,_0x6f8baf['readEntries'](_0x4d3c40=>{_0xb6ddd2--;for(const _0x20b400 of _0x4d3c40)_0x52ecf4(_0x20b400);0x0===_0xb6ddd2&&_0x395146(_0x517720);});};_0x52ecf4(_0x5e4a3b);});}function getDropItems(_0x149c92){const _0x49cb64=[],_0x497919=[];for(let _0x36694a=0x0;_0x36694a<_0x149c92['items']['length'];_0x36694a++){const _0x1ca6bf=_0x149c92['items'][_0x36694a];if(_0x1ca6bf){if('file'===_0x1ca6bf['kind']){const _0x173704=_0x1ca6bf['type'],_0x4801fa=_0x1ca6bf;if('function'==typeof _0x4801fa['webkitGetAsEntry']||'function'==typeof _0x4801fa['getAsEntry']){const _0x2d4085='function'==typeof _0x4801fa['webkitGetAsEntry']?_0x4801fa['webkitGetAsEntry']():_0x4801fa['getAsEntry']?.();_0x2d4085&&_0x497919['push'](readEntryContentAsync(_0x2d4085,_0x173704)['then'](_0x1337a5=>{_0x1337a5&&_0x49cb64['push'](..._0x1337a5);}));continue;}const _0x4b76a5=_0x1ca6bf['getAsFile']();_0x4b76a5&&_0x497919['push'](checkIsDirectory(_0x4b76a5)['then'](_0x42a879=>{_0x42a879||_0x49cb64['push']({'type':'file','file':_0x4b76a5});}));}else'string'===_0x1ca6bf['kind']&&/^text\/uri-list/['test'](_0x1ca6bf['type'])&&_0x497919['push'](new Promise(_0x31559d=>{_0x1ca6bf['getAsString'](_0x444bf5=>{_0x49cb64['push']({'type':'url','url':_0x444bf5}),_0x31559d();});}));}}return Promise['all'](_0x497919)['then'](()=>_0x49cb64);}var DropzoneState=Object['freeze']({'ACTIVE':0x0,'INACTIVE':0x1,'NEAR':0x2,'OVER':0x3}),RESET_EVENTS=['focus'],NEAR_OFFSET=0x64,nearnessRegistry=new Map();function distance(_0x3fea28,_0x9deb86){const _0x45d03d=Math['max'](Math['min'](_0x3fea28[0x0],_0x9deb86['x']+_0x9deb86['width']),_0x9deb86['x']),_0x2e597a=Math['max'](Math['min'](_0x3fea28[0x1],_0x9deb86['y']+_0x9deb86['height']),_0x9deb86['y']);return Math['sqrt']((_0x3fea28[0x0]-_0x45d03d)*(_0x3fea28[0x0]-_0x45d03d)+(_0x3fea28[0x1]-_0x2e597a)*(_0x3fea28[0x1]-_0x2e597a));}function addDropzone(_0x3abce8){let _0x2963c4=0x0;const _0x26834e=document['body'],_0x3f44f7=new Set();let _0x14aade=DropzoneState['INACTIVE'];const _0x574b92=_0x2d82f2=>{_0x3abce8['shouldIgnore']()&&_0x2d82f2!==DropzoneState['INACTIVE']||(_0x14aade!==_0x2d82f2&&_0x3f44f7['forEach'](_0xb464dc=>{_0xb464dc(_0x2d82f2);}),_0x14aade=_0x2d82f2);},_0x161cbe=()=>_0x2963c4>0x0;var _0x254bf0;_0x254bf0=_0x5af549=>_0x3abce8['onChange'](_0x5af549),_0x3f44f7['add'](_0x254bf0);const _0x38d813=()=>{_0x2963c4=0x0,_0x574b92(DropzoneState['INACTIVE']);},_0x444409=()=>{_0x2963c4+=0x1,_0x14aade===DropzoneState['INACTIVE']&&_0x574b92(DropzoneState['ACTIVE']);},_0x49b797=()=>{_0x2963c4-=0x1,_0x161cbe()||_0x574b92(DropzoneState['INACTIVE']);},_0x4476a3=_0x7f2b5f=>{_0x7f2b5f['preventDefault'](),_0x2963c4=0x0,_0x574b92(DropzoneState['INACTIVE']);},_0x127561=_0x2aaaf6=>{if(_0x3abce8['shouldIgnore']())return;_0x161cbe()||(_0x2963c4+=0x1);const _0x121ad4=[_0x2aaaf6['x'],_0x2aaaf6['y']],_0x8e9c2f=_0x3abce8['element']['getBoundingClientRect'](),_0x2c8c2b=Math['floor'](distance(_0x121ad4,_0x8e9c2f)),_0x57a333=_0x2c8c2b<NEAR_OFFSET,_0x11b855=_0x2aaaf6['composedPath']()['includes'](_0x3abce8['element']);nearnessRegistry['set'](_0x3abce8['element'],_0x2c8c2b);const _0x455b19=Math['min'](...nearnessRegistry['values']())===_0x2c8c2b;_0x11b855&&_0x455b19?(_0x2aaaf6['preventDefault'](),_0x574b92(DropzoneState['OVER'])):_0x574b92(_0x57a333&&_0x455b19?DropzoneState['NEAR']:DropzoneState['ACTIVE']);},_0x4c9b74=async _0x2cdf55=>{if(_0x3abce8['shouldIgnore']())return;_0x2cdf55['preventDefault']();const {dataTransfer:_0xb18b93}=_0x2cdf55;if(!_0xb18b93)return;const _0x1cfd9f=await getDropItems(_0xb18b93);_0x3abce8['onItems'](_0x1cfd9f),_0x574b92(DropzoneState['INACTIVE']);};return _0x26834e['addEventListener']('drop',_0x4476a3),_0x26834e['addEventListener']('dragleave',_0x49b797),_0x26834e['addEventListener']('dragenter',_0x444409),_0x26834e['addEventListener']('dragover',_0x127561),_0x3abce8['element']['addEventListener']('drop',_0x4c9b74),RESET_EVENTS['forEach'](_0x14e4d3=>{window['addEventListener'](_0x14e4d3,_0x38d813);}),()=>{nearnessRegistry['delete'](_0x3abce8['element']),_0x26834e['removeEventListener']('drop',_0x4476a3),_0x26834e['removeEventListener']('dragleave',_0x49b797),_0x26834e['removeEventListener']('dragenter',_0x444409),_0x26834e['removeEventListener']('dragover',_0x127561),_0x3abce8['element']['removeEventListener']('drop',_0x4c9b74),RESET_EVENTS['forEach'](_0xcd640e=>{window['removeEventListener'](_0xcd640e,_0x38d813);});};}var GLOBAL_CTX_NAME='uc-drop-area',REGISTRY_KEY=GLOBAL_CTX_NAME+'/registry',DropArea=class extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-drop-area'];['_destroyDropzone']=null;['_destroyContentWrapperDropzone']=null;['_onAreaClicked']=null;constructor(){super(),this['init$']={...this['init$'],'state':DropzoneState['INACTIVE'],'withIcon':!0x1,'isClickable':!0x1,'isFullscreen':!0x1,'isEnabled':!0x0,'isVisible':!0x0,'isInitFlow':!0x1,'text':'',[REGISTRY_KEY]:new Set()};}['isActive'](){if(!this['$']['isEnabled'])return!0x1;const _0x100997=this['getBoundingClientRect'](),_0x573e21=_0x100997['width']>0x0&&_0x100997['height']>0x0,_0x394fa8=_0x100997['top']>=0x0&&_0x100997['left']>=0x0&&_0x100997['bottom']<=(window['innerHeight']||document['documentElement']['clientHeight'])&&_0x100997['right']<=(window['innerWidth']||document['documentElement']['clientWidth']),_0x3f743f=window['getComputedStyle'](this),_0x503b99='hidden'!==_0x3f743f['visibility']&&'none'!==_0x3f743f['display'];return _0x573e21&&_0x503b99&&_0x394fa8;}['initCallback'](){super['initCallback'](),this['bindL10n']('text',()=>this['l10n']('drop-files-here')),(this['$'][REGISTRY_KEY]['add'](this),this['defineAccessor']('disabled',_0x138c48=>{this['set$']({'isEnabled':!asBoolean2(_0x138c48)});}),this['defineAccessor']('clickable',_0x3b99cd=>{this['set$']({'isClickable':asBoolean2(_0x3b99cd)});}),this['defineAccessor']('initflow',_0x5d278b=>{this['set$']({'isInitFlow':asBoolean2(_0x5d278b)});}),this['defineAccessor']('with-icon',_0x48e78c=>{this['set$']({'withIcon':asBoolean2(_0x48e78c)});}),this['defineAccessor']('fullscreen',_0x31cfc6=>{this['set$']({'isFullscreen':asBoolean2(_0x31cfc6)});}),this['defineAccessor']('text',_0x2d5bd1=>{'string'==typeof _0x2d5bd1?this['bindL10n']('text',()=>this['l10n'](_0x2d5bd1)||_0x2d5bd1):this['bindL10n']('text',()=>this['l10n']('drop-files-here'));}),this['_destroyDropzone']=addDropzone({'element':this,'shouldIgnore':()=>this['_shouldIgnore'](),'onChange':_0x27a42b=>{this['$']['state']=_0x27a42b;},'onItems':_0x3c2e3e=>{_0x3c2e3e['length']&&(_0x3c2e3e['forEach'](_0x5affaf=>{'url'===_0x5affaf['type']?this['api']['addFileFromUrl'](_0x5affaf['url'],{'source':UploadSource['DROP_AREA']}):'file'===_0x5affaf['type']&&this['api']['addFileFromObject'](_0x5affaf['file'],{'source':UploadSource['DROP_AREA'],'fullPath':_0x5affaf['fullPath']});}),this['uploadCollection']['size']&&(this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['set$']({'*currentActivity':ActivityBlock['activities']['UPLOAD_LIST']})));}}));const _0x2f1c4b=this['ref']['content-wrapper'];if(_0x2f1c4b&&(this['_destroyContentWrapperDropzone']=addDropzone({'element':_0x2f1c4b,'onChange':_0x2bb401=>{const _0x273d5c=Object['entries'](DropzoneState)['find'](([,_0x31df6b])=>_0x31df6b===_0x2bb401)?.[0x0]['toLowerCase']();_0x273d5c&&_0x2f1c4b['setAttribute']('drag-state',_0x273d5c);},'onItems':()=>{},'shouldIgnore':()=>this['_shouldIgnore']()})),this['sub']('state',_0x41d879=>{const _0x592ef2=Object['entries'](DropzoneState)['find'](([,_0x577fe2])=>_0x577fe2===_0x41d879)?.[0x0]['toLowerCase']();_0x592ef2&&this['setAttribute']('drag-state',_0x592ef2);}),this['subConfigValue']('sourceList',_0x2e4043=>{const _0x4878d7=stringToArray(_0x2e4043);this['$']['isEnabled']=_0x4878d7['includes'](UploadSource['LOCAL']),this['$']['isVisible']=this['$']['isEnabled']||!this['querySelector']('[data-default-slot]');}),this['sub']('isVisible',_0x4f3107=>{this['toggleAttribute']('hidden',!_0x4f3107);}),this['sub']('isClickable',_0x2ccdd0=>{this['toggleAttribute']('clickable',_0x2ccdd0);}),this['$']['isClickable']){const _0x596b3c=_0x848fc6=>{if(_0x848fc6 instanceof KeyboardEvent){if('Space'===_0x848fc6['code']||'Enter'===_0x848fc6['code']){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}else{if(_0x848fc6 instanceof MouseEvent){if(this['$']['isInitFlow'])return void this['api']['initFlow']();this['api']['openSystemDialog']();}}};this['_onAreaClicked']=_0x596b3c,this['addEventListener']('keydown',_0x596b3c),this['addEventListener']('click',_0x596b3c);}}['_shouldIgnore'](){if(!this['$']['isEnabled'])return!0x0;if(!this['_couldHandleFiles']())return!0x0;if(!this['$']['isFullscreen'])return!0x1;const _0x20731a=this['$'][REGISTRY_KEY];if(0x0===_0x20731a['size'])return!0x1;return[..._0x20731a]['filter'](_0x3ee61d=>_0x3ee61d!==this)['filter'](_0x314407=>_0x314407['isActive']())['length']>0x0;}['_couldHandleFiles'](){const _0xa62869=this['cfg']['multiple'],_0x4f901a=this['cfg']['multipleMax'],_0x75613e=this['uploadCollection']['size'];return!(_0xa62869&&_0x4f901a&&_0x75613e>=_0x4f901a)&&!(!_0xa62869&&_0x75613e>0x0);}['destroyCallback'](){super['destroyCallback']();const _0x248df9=this['$'][REGISTRY_KEY];_0x248df9['delete'](this),0x0===_0x248df9['size']&&Data['deleteCtx'](GLOBAL_CTX_NAME),this['_destroyDropzone']?.(),this['_destroyContentWrapperDropzone']?.(),this['_onAreaClicked']&&(this['removeEventListener']('keydown',this['_onAreaClicked']),this['removeEventListener']('click',this['_onAreaClicked']),this['_onAreaClicked']=null);}};DropArea['template']='\x0a\x20\x20<slot>\x0a\x20\x20\x20\x20<div\x20data-default-slot\x20hidden></div>\x0a\x20\x20\x20\x20<div\x20ref=\x22content-wrapper\x22\x20class=\x22uc-content-wrapper\x22\x20set=\x22@hidden:\x20!isVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-icon-container\x22\x20set=\x22@hidden:\x20!withIcon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22default\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22arrow-down\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-text\x22>{{text}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</slot>\x0a',DropArea['bindAttributes']({'with-icon':null,'clickable':null,'text':null,'fullscreen':null,'disabled':null,'initflow':null});var getTopLevelOrigin=()=>{const _0x534bac=globalThis['top']??globalThis['parent']??globalThis['self'];try{return _0x534bac['location']['origin'];}catch(_0x43c4f0){return console['warn']('Unable\x20to\x20access\x20top-level\x20window\x20location:',_0x43c4f0),globalThis['location']['origin'];}},escapeRegExp=_0x1f0d62=>_0x1f0d62['replace'](/[\\-\\[]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\x5c$&'),wildcardRegexp=(_0x402a98,_0xb2f16e='i')=>{const _0x2000fe=_0x402a98['split']('*')['map'](escapeRegExp);return new RegExp('^'+_0x2000fe['join']('.+')+'$',_0xb2f16e);},ucCustomProperties=['--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'],getCssValue=(_0x491d92,_0x3b19d0)=>window['getComputedStyle'](_0x491d92)['getPropertyValue'](_0x3b19d0)['trim'](),buildThemeDefinition=_0x5aff6d=>{const _0x238393={};for(const _0x46b772 of ucCustomProperties){const _0x55e19a=getCssValue(_0x5aff6d,_0x46b772);_0x55e19a&&(_0x238393[_0x46b772]=_0x55e19a);}return _0x238393;},MESSAGE_TYPE_WHITELIST=['selected-files-change','toolbar-state-change'],isWhitelistedMessage=_0x52cb9c=>{if(!_0x52cb9c)return!0x1;if('object'!=typeof _0x52cb9c)return!0x1;if(!('type'in _0x52cb9c))return!0x1;const _0x5e1a40=_0x52cb9c['type'];return'string'==typeof _0x5e1a40&&!!MESSAGE_TYPE_WHITELIST['includes'](_0x5e1a40);},MessageBridge=class{['_handlerMap']=new Map();['_context'];['_getTargetOrigin'];constructor(_0x12e4ed,_0x518038){this['_context']=_0x12e4ed,this['_getTargetOrigin']=_0x518038,window['addEventListener']('message',this['_handleMessage']);}['_handleMessage']=_0x828264=>{if(_0x828264['source']!==this['_context'])return;const _0x32c6cb=_0x828264['data'];if(!isWhitelistedMessage(_0x32c6cb))return;const _0x20f3ac=this['_handlerMap']['get'](_0x32c6cb['type']);if(_0x20f3ac){for(const _0x93e160 of _0x20f3ac)_0x93e160(_0x32c6cb);}};['on'](_0x2dc7f1,_0x30f076){const _0x1fcd3a=this['_handlerMap']['get'](_0x2dc7f1)??new Set();this['_handlerMap']['has'](_0x2dc7f1)||this['_handlerMap']['set'](_0x2dc7f1,_0x1fcd3a),_0x1fcd3a['add'](_0x30f076);}['send'](_0x107c4f){const _0x2f4940=this['_getTargetOrigin']();this['_context']['postMessage'](_0x107c4f,_0x2f4940);}['destroy'](){window['removeEventListener']('message',this['_handleMessage']);}};function queryString(_0x4d059c){const _0x1422e1=[];for(const [_0x3b533b,_0x18d803]of Object['entries'](_0x4d059c))null==_0x18d803||'string'==typeof _0x18d803&&0x0===_0x18d803['length']||_0x1422e1['push'](_0x3b533b+'='+encodeURIComponent(_0x18d803));return _0x1422e1['join']('&');}var SOCIAL_SOURCE_MAPPING={[ExternalUploadSource['GDRIVE']]:'ngdrive'},ExternalSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['EXTERNAL'];['_messageBridge'];constructor(){super(),this['init$']={...this['init$'],'activityIcon':'','activityCaption':'','selectedList':[],'total':0x0,'isSelectionReady':!0x1,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'showDoneBtn':!0x1,'counterText':'','doneBtnTextClass':'uc-hidden','toolbarVisible':!0x0,'onDone':()=>{for(const _0x4a075a of this['$']['selectedList']){const _0x3a1960=this['extractUrlFromSelectedFile'](_0x4a075a),{filename:_0x4adf9f}=_0x4a075a,{externalSourceType:_0x29a98f}=this['activityParams'];this['api']['addFileFromUrl'](_0x3a1960,{'fileName':_0x4adf9f,'source':_0x29a98f});}this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']);},'onCancel':()=>{this['historyBack']();},'onSelectAll':()=>{this['_messageBridge']?.['send']({'type':'select-all'});},'onDeselectAll':()=>{this['_messageBridge']?.['send']({'type':'deselect-all'});}};}get['activityParams'](){const _0x2b8078=super['activityParams'];if('externalSourceType'in _0x2b8078)return _0x2b8078;throw new Error('External\x20Source\x20activity\x20params\x20not\x20found');}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType'],{'onActivate':()=>{const {externalSourceType:_0xdfd813}=this['activityParams'];if(!_0xdfd813)return this['modalManager']?.['close'](this['$']['*currentActivity']),this['$']['*currentActivity']=null,void console['error']('Param\x20\x22externalSourceType\x22\x20is\x20required\x20for\x20activity\x20\x22'+this['activityType']+'\x22');this['set$']({'activityCaption':''+_0xdfd813[0x0]?.['toUpperCase']()+_0xdfd813?.['slice'](0x1),'activityIcon':_0xdfd813}),this['mountIframe']();}}),this['sub']('*currentActivityParams',_0x3abd1e=>{this['isActivityActive']&&(this['unmountIframe'](),this['mountIframe']());}),this['sub']('*currentActivity',_0x42aa5e=>{_0x42aa5e!==this['activityType']&&this['unmountIframe']();}),this['subConfigValue']('multiple',_0x1fec4e=>{this['$']['showSelectionStatus']=_0x1fec4e;}),this['subConfigValue']('localeName',_0x2db286=>{this['setupL10n']();}),this['subConfigValue']('externalSourcesEmbedCss',_0x287229=>{this['applyEmbedCss'](_0x287229);});}['extractUrlFromSelectedFile'](_0xab4fc6){if(_0xab4fc6['alternatives']){const _0x472e7d=stringToArray(this['cfg']['externalSourcesPreferredTypes']);for(const _0x5112c3 of _0x472e7d){const _0x4a40a5=wildcardRegexp(_0x5112c3);for(const [_0x6839cb,_0x631b84]of Object['entries'](_0xab4fc6['alternatives']))if(_0x4a40a5['test'](_0x6839cb))return _0x631b84;}}return _0xab4fc6['url'];}['handleToolbarStateChange'](_0x130222){this['set$']({'toolbarVisible':_0x130222['isVisible']});}async['handleSelectedFilesChange'](_0x3df95a){this['cfg']['multiple']===_0x3df95a['isMultipleMode']?(this['bindL10n']('counterText',()=>this['l10n']('selected-count',{'count':_0x3df95a['selectedCount'],'total':_0x3df95a['total']})),this['set$']({'doneBtnTextClass':_0x3df95a['isReady']?'':'uc-hidden','isSelectionReady':_0x3df95a['isReady'],'isDoneBtnEnabled':_0x3df95a['isReady']&&_0x3df95a['selectedFiles']['length']>0x0,'showSelectionStatus':_0x3df95a['isMultipleMode']&&_0x3df95a['total']>0x0,'couldSelectAll':_0x3df95a['selectedCount']<_0x3df95a['total'],'couldDeselectAll':_0x3df95a['selectedCount']===_0x3df95a['total'],'selectedList':_0x3df95a['selectedFiles'],'showDoneBtn':_0x3df95a['total']>0x0})):console['error']('Multiple\x20mode\x20mismatch');}['handleIframeLoad'](){this['applyEmbedCss'](this['cfg']['externalSourcesEmbedCss']),this['applyTheme'](),this['setupL10n']();}['applyTheme'](){this['_messageBridge']?.['send']({'type':'set-theme-definition','theme':buildThemeDefinition(this)});}['applyEmbedCss'](_0x5e56c0){this['_messageBridge']?.['send']({'type':'set-embed-css','css':_0x5e56c0});}['setupL10n'](){this['_messageBridge']?.['send']({'type':'set-locale-definition','localeDefinition':this['cfg']['localeName']});}['remoteUrl'](){const {pubkey:_0x5f2cfc,remoteTabSessionKey:_0x17fee8,socialBaseUrl:_0x3bfcc4,multiple:_0x3206a6}=this['cfg'],{externalSourceType:_0x4a9146}=this['activityParams'],_0x3ea74e=SOCIAL_SOURCE_MAPPING[_0x4a9146]??_0x4a9146,_0x28389d={'lang':this['l10n']('social-source-lang')?.['split']('-')?.[0x0]||'en','public_key':_0x5f2cfc,'images_only':(!0x1)['toString'](),'session_key':_0x17fee8,'wait_for_theme':!0x0,'multiple':_0x3206a6['toString'](),'origin':this['cfg']['topLevelOrigin']||getTopLevelOrigin(),'debug':this['cfg']['debug']},_0x3e4fa2=new URL('/window4/'+_0x3ea74e,_0x3bfcc4);return _0x3e4fa2['search']=queryString(_0x28389d),_0x3e4fa2['toString']();}['mountIframe'](){const _0x41b6b2=create({'tag':'iframe','attributes':{'src':this['remoteUrl'](),'marginheight':0x0,'marginwidth':0x0,'frameborder':0x0,'allowTransparency':!0x0}});_0x41b6b2['addEventListener']('load',this['handleIframeLoad']['bind'](this)),this['ref']['iframeWrapper']['innerHTML']='',this['ref']['iframeWrapper']['appendChild'](_0x41b6b2),_0x41b6b2['contentWindow']&&(this['_messageBridge']?.['destroy'](),this['_messageBridge']=new MessageBridge(_0x41b6b2['contentWindow'],()=>this['cfg']['socialBaseUrl']),this['_messageBridge']['on']('selected-files-change',this['handleSelectedFilesChange']['bind'](this)),this['_messageBridge']['on']('toolbar-state-change',this['handleToolbarStateChange']['bind'](this)),this['resetSelectionStatus']());}['unmountIframe'](){this['_messageBridge']?.['destroy'](),this['_messageBridge']=void 0x0,this['ref']['iframeWrapper']['innerHTML']='',this['resetSelectionStatus']();}['resetSelectionStatus'](){this['set$']({'selectedList':[],'total':0x0,'isDoneBtnEnabled':!0x1,'couldSelectAll':!0x1,'couldDeselectAll':!0x1,'showSelectionStatus':!0x1,'showDoneBtn':!0x1});}};ExternalSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*historyBack\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<div\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<div\x20ref=\x22iframeWrapper\x22\x20class=\x22uc-iframe-wrapper\x22></div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar\x22\x20set=\x22@hidden:\x20!toolbarVisible\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel\x22\x20l10n=\x22cancel\x22></button>\x0a\x20\x20\x20\x20\x20\x20<div\x20set=\x22@hidden:\x20!showSelectionStatus\x22\x20class=\x22uc-selection-status-box\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>{{counterText}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onSelectAll;\x20@hidden:\x20!couldSelectAll\x22\x20l10n=\x22select-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onDeselectAll;\x20@hidden:\x20!couldDeselectAll\x22\x20l10n=\x22deselect-all\x22></button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onDone;\x20@disabled:\x20!isDoneBtnEnabled;\x20@hidden:\x20!showDoneBtn\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-spinner\x20set=\x22@hidden:\x20isSelectionReady\x22></uc-spinner>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22done\x22\x20set=\x22@class:\x20doneBtnTextClass\x22></span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a';var MAX_SQUARE_SIDE=0x4000,regExpShrink=/^([0-9]+)x([0-9]+)(?:\s+(\d{1,2}|100)%)?$/i,parseShrink=_0x479296=>{if('string'!=typeof _0x479296)return!0x1;const _0x474e00=regExpShrink['exec'](_0x479296['toLocaleLowerCase']())??[];if(0x0===_0x474e00['length'])return!0x1;const _0x36a684=Number(_0x474e00[0x1])*Number(_0x474e00[0x2]),_0x5dacee=MAX_SQUARE_SIDE*MAX_SQUARE_SIDE;return _0x36a684>_0x5dacee?(console['warn']('Shrinked\x20size\x20can\x20not\x20be\x20larger\x20than\x20'+Math['floor'](_0x5dacee/0x3e8/0x3e8)+'MP.\x20You\x20have\x20set\x20'+_0x474e00[0x1]+'x'+_0x474e00[0x2]+'\x20('+Math['ceil'](_0x36a684/0x3e8/0x64)/0xa+'MP).'),!0x1):{'quality':_0x474e00[0x3]?Number(_0x474e00[0x3])/0x64:void 0x0,'size':_0x36a684};},FileItemConfig=class extends UploaderBlock{['_entrySubs']=new Set();['_entry']=null;['_withEntry'](_0x6fdf41){return(..._0x436f51)=>{const _0x443ae9=this['_entry'];if(_0x443ae9)return _0x6fdf41(_0x443ae9,..._0x436f51);console['warn']('No\x20entry\x20found');};}['_subEntry'](_0x6d8cc9,_0x17ed1f){this['_withEntry']((_0x363d94,_0x49a073,_0x3c842d)=>{const _0x57cae1=_0x363d94['subscribe'](_0x49a073,_0x59b617=>{this['isConnected']&&_0x3c842d(_0x59b617);});this['_entrySubs']['add'](_0x57cae1);})(_0x6d8cc9,_0x17ed1f);}['_reset'](){for(const _0x1cdf7a of this['_entrySubs'])_0x1cdf7a['remove']();this['_entrySubs']=new Set(),this['_entry']=null;}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set();}},FileItemState=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')}),FileItem=class e extends FileItemConfig{['couldBeCtxOwner']=!0x0;['pauseRender']=!0x0;['_renderedOnce']=!0x1;['_observer'];['_isIntersecting']=!0x1;['_thumbRect'];constructor(){super(),this['init$']={...this['init$'],'uid':'','itemName':'','errorText':'','hint':'','thumbUrl':'','progressValue':0x0,'progressVisible':!0x1,'badgeIcon':'','isFinished':!0x1,'isFailed':!0x1,'isUploading':!0x1,'isFocused':!0x1,'isEditable':!0x1,'showFileNames':!0x1,'state':FileItemState['IDLE'],'ariaLabelStatusFile':'','onEdit':this['_withEntry'](_0x1bb99b=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'edit-file','node':this['tagName']}}}),this['$']['*currentActivityParams']={'internalId':_0x1bb99b['uid']},this['modalManager']?.['open'](ActivityBlock['activities']['CLOUD_IMG_EDIT']),this['$']['*currentActivity']=ActivityBlock['activities']['CLOUD_IMG_EDIT'];}),'onRemove':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'remove-file','node':this['tagName']}}}),this['uploadCollection']['remove'](this['$']['uid']);},'onUpload':()=>{this['upload']();}};}['_calculateState']=this['_withEntry'](e=>{let i=FileItemState['IDLE'];e['getValue']('errors')['length']>0x0?i=FileItemState['FAILED']:e['getValue']('isQueuedForUploading')?i=FileItemState['QUEUED_UPLOADING']:e['getValue']('isQueuedForValidation')?i=FileItemState['QUEUED_VALIDATION']:e['getValue']('isValidationPending')?i=FileItemState['VALIDATION']:e['getValue']('isUploading')?i=FileItemState['UPLOADING']:e['getValue']('fileInfo')&&(i=FileItemState['FINISHED']),this['$']['state']=i;});['_debouncedCalculateState']=debounce(this['_calculateState']['bind'](this),0x64);['_updateHintAndProgress']=this['_withEntry'](throttle((e,i)=>{const n=e['getValue']('errors')?.[0x0]?.['message'],s=e['getValue']('source'),r=e['getValue']('externalUrl'),o=i===FileItemState['FINISHED'],a=i===FileItemState['UPLOADING'],l=i===FileItemState['QUEUED_UPLOADING'],c=i===FileItemState['QUEUED_VALIDATION'],u=i===FileItemState['VALIDATION'],h=e['getValue']('fileName');let d='';n?d='':!o&&r&&s&&Object['values'](ExternalUploadSource)['includes'](s)&&(d=this['l10n']('waiting-for',{'source':this['l10n']('src-type-'+s)})),this['set$']({'hint':d,'errorText':n,'progressVisible':a||l||c||u,'progressValue':c||u?0x0:e['getValue']('uploadProgress'),'ariaLabelStatusFile':h&&this['l10n']('a11y-file-item-status',{'fileName':h,'status':this['l10n'](i?.['description']?.['toLocaleLowerCase']()??'')['toLocaleLowerCase']()})});},0x64));['_handleState']=this['_withEntry']((e,i)=>{i===FileItemState['FAILED']?this['$']['badgeIcon']='badge-error':i===FileItemState['FINISHED']&&(this['$']['badgeIcon']='badge-success'),i===FileItemState['UPLOADING']&&(this['$']['isFocused']=!0x1),this['set$']({'isFailed':i===FileItemState['FAILED'],'isUploading':i===FileItemState['UPLOADING'],'isFinished':i===FileItemState['FINISHED'],'isEditable':this['cfg']['useCloudImageEditor']&&e['getValue']('isImage')&&e['getValue']('cdnUrl')}),this['_updateHintAndProgress'](i);});['_reset'](){super['_reset'](),this['_debouncedCalculateState']['cancel']();}['_observerCallback'](_0x40d8f4){const [_0x404bf3]=_0x40d8f4;_0x404bf3&&(this['_isIntersecting']=_0x404bf3['isIntersecting'],this['_thumbRect']=_0x404bf3['boundingClientRect'],_0x404bf3['isIntersecting']&&!this['_renderedOnce']&&(this['render'](),this['_renderedOnce']=!0x0));}['_handleEntryId'](_0x1e3fb6){this['_reset']();const _0x3c1266=this['uploadCollection']?.['read'](_0x1e3fb6);this['_entry']=_0x3c1266,_0x3c1266&&(this['_subEntry']('isQueuedForValidation',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isValidationPending',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('uploadProgress',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('isQueuedForUploading',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('fileName',_0x41dd97=>{this['$']['itemName']=_0x41dd97||_0x3c1266['getValue']('externalUrl')||this['l10n']('file-no-name'),this['_debouncedCalculateState']();}),this['_subEntry']('externalUrl',_0x5b8c45=>{this['$']['itemName']=_0x3c1266['getValue']('fileName')||_0x5b8c45||this['l10n']('file-no-name');}),this['_subEntry']('fileInfo',()=>{this['_debouncedCalculateState']();}),this['_subEntry']('errors',()=>this['_debouncedCalculateState']()),this['_subEntry']('isUploading',()=>this['_debouncedCalculateState']()),this['_subEntry']('fileSize',()=>this['_debouncedCalculateState']()),this['_subEntry']('mimeType',()=>this['_debouncedCalculateState']()),this['_subEntry']('isImage',()=>this['_debouncedCalculateState']()));}['_updateShowFileNames'](_0x3b07de){'list'===this['cfg']['filesViewMode']?this['$']['showFileNames']=!0x0:this['$']['showFileNames']=_0x3b07de;}['initCallback'](){super['initCallback'](),this['sub']('uid',_0xc64d9a=>{this['_handleEntryId'](_0xc64d9a);}),this['sub']('state',_0x423c97=>{this['_handleState'](_0x423c97);}),this['subConfigValue']('useCloudImageEditor',()=>this['_debouncedCalculateState']()),this['subConfigValue']('filesViewMode',_0xb37000=>{this['_updateShowFileNames'](this['cfg']['gridShowFileNames']),this['setAttribute']('mode',_0xb37000);}),this['subConfigValue']('gridShowFileNames',_0x132a27=>{this['_updateShowFileNames'](_0x132a27);}),this['onclick']=()=>{e['activeInstances']['forEach'](_0x39ae39=>{_0x39ae39===this?_0x39ae39['setAttribute']('focused',''):_0x39ae39['removeAttribute']('focused');});},this['sub']('*uploadTrigger',_0xe65d7b=>{this['_entry']&&!_0xe65d7b['has'](this['_entry']['uid'])||setTimeout(()=>this['isConnected']&&this['upload']());}),e['activeInstances']['add'](this);}['destroyCallback'](){super['destroyCallback'](),e['activeInstances']['delete'](this),this['_reset']();}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':[0x0,0x1]}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_observer']?.['disconnect']();}['_settingsOfShrink'](){return parseShrink(this['cfg']['imageShrink']);}async['_processShrink'](_0x2a4ec7){const _0x5423c7=this['_settingsOfShrink']();return _0x5423c7?await shrinkFile(_0x2a4ec7,_0x5423c7):(console['warn']('Image\x20shrink\x20settings\x20are\x20invalid,\x20skipping\x20shrinking'),_0x2a4ec7);}['upload']=this['_withEntry'](async e=>{if(!this['uploadCollection']['read'](e['uid']))return;if(e['getValue']('fileInfo')||e['getValue']('isUploading')||e['getValue']('errors')['length']>0x0||e['getValue']('isValidationPending'))return;const i=this['cfg']['multiple']?this['cfg']['multipleMax']:0x1;if(!(i&&this['uploadCollection']['size']>i)){e['setMultipleValues']({'isUploading':!0x0,'errors':[],'isQueuedForUploading':!0x0}),this['_debouncedCalculateState']();try{const i=new AbortController();e['setValue']('abortController',i);const n=async()=>{e['setValue']('isQueuedForUploading',!0x1);let n=e['getValue']('file');if(n instanceof File&&this['cfg']['imageShrink'])try{n=await this['_processShrink'](n);}catch{}const s=n||e['getValue']('externalUrl')||e['getValue']('uuid');if(!s)throw new Error('No\x20file\x20input');const r={...await this['getUploadClientOptions'](),'fileName':e['getValue']('fileName')??void 0x0,'source':e['getValue']('source')??void 0x0,'onProgress':i=>{if(i['isComputable']){const n=0x64*i['value'];e['setValue']('uploadProgress',n);}},'signal':i['signal'],'metadata':await this['getMetadataFor'](e['uid'])};return this['debugPrint']('upload\x20options',s,r),uploadFile(s,r);},s=await this['$']['*uploadQueue']['add'](n);e['setMultipleValues']({'fileInfo':s,'isQueuedForUploading':!0x1,'isUploading':!0x1,'fileName':s['originalFilename'],'fileSize':s['size'],'isImage':s['isImage']??!0x1,'mimeType':s['contentInfo']?.['mime']?.['mime']??s['mimeType'],'uuid':s['uuid'],'cdnUrl':e['getValue']('cdnUrl')??s['cdnUrl'],'cdnUrlModifiers':e['getValue']('cdnUrlModifiers')??'','uploadProgress':0x64,'source':e['getValue']('source')??null}),e===this['_entry']&&this['_debouncedCalculateState']();}catch(i){this['telemetryManager']['sendEventError'](i,'file\x20upload.\x20Failed\x20to\x20upload\x20file'),i instanceof CancelError&&i['isCancel']?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0}):i instanceof UploadcareError?e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':i}):(console['error']('Unknown\x20upload\x20error',i),e['setMultipleValues']({'isUploading':!0x1,'uploadProgress':0x0,'uploadError':new Error('Something\x20went\x20wrong',{'cause':i})})),e===this['_entry']&&this['_debouncedCalculateState']();}}});static ['template']='\x0a\x20\x20<div\x20class=\x22uc-inner\x22\x20set=\x22@finished:\x20isFinished;\x20@uploading:\x20isUploading;\x20@failed:\x20isFailed;\x20@focused:\x20isFocused\x22>\x0a\x20\x20\x20\x20<uc-thumb\x20set=\x22uid:uid;badgeIcon:badgeIcon\x22></uc-thumb>\x0a\x0a\x20\x20\x20\x20<div\x20aria-atomic=\x22true\x22\x20aria-live=\x22polite\x22\x20class=\x22uc-file-name-wrapper\x22\x20set=\x22@aria-label:ariaLabelStatusFile;\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-name\x22\x20set=\x22@hidden:\x20!showFileNames\x22>{{itemName}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-error\x22\x20set=\x22@hidden:\x20!errorText;\x22>{{errorText}}</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22uc-file-hint\x22\x20set=\x22@hidden:\x20!hint\x22>{{hint}}</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-file-actions\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-edit-button;@aria-label:file-item-edit-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-edit-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onEdit;\x20@hidden:\x20!isEditable\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22edit-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20l10n=\x22@title:file-item-remove-button;@aria-label:file-item-remove-button\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20class=\x22uc-remove-btn\x20uc-mini-btn\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onRemove;\x22\x0a\x20\x20\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22remove-file\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-upload-btn\x20uc-mini-btn\x22\x20set=\x22onclick:\x20onUpload;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<uc-progress-bar\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-progress-bar\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22value:\x20progressValue;\x20visible:\x20progressVisible;\x20@hasFileName:\x20showFileNames;\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20</uc-progress-bar>\x0a\x20\x20</div>\x0a';static ['activeInstances']=new Set();},FormInput=class extends UploaderBlock{['requireCtxName']=!0x0;['_validationInputElement']=null;['_dynamicInputsContainer']=null;['_createValidationInput'](){const _0x51752b=document['createElement']('input');return _0x51752b['type']='text',_0x51752b['name']=this['ctxName'],_0x51752b['required']=this['cfg']['multipleMin']>0x0,_0x51752b['tabIndex']=-0x1,applyStyles(_0x51752b,{'opacity':0x0,'height':0x0,'width':0x0}),_0x51752b;}['initCallback'](){super['initCallback'](),this['_validationInputElement']=this['_createValidationInput'](),this['appendChild'](this['_validationInputElement']),this['sub']('*collectionState',_0x22065a=>{{if(!this['_dynamicInputsContainer']){const _0x157d0a=document['createElement']('div');this['appendChild'](_0x157d0a),this['_dynamicInputsContainer']=_0x157d0a;}if(!this['_validationInputElement']){const _0x1d6efd=this['_createValidationInput']();this['appendChild'](_0x1d6efd),this['_validationInputElement']=_0x1d6efd;}if(this['_dynamicInputsContainer']['innerHTML']='','uploading'===_0x22065a['status']||'idle'===_0x22065a['status'])return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity']('');if('failed'===_0x22065a['status']){const _0x51a7f8=_0x22065a['errors'][0x0]?.['message'];return this['_validationInputElement']['value']='',void this['_validationInputElement']['setCustomValidity'](_0x51a7f8??'');}const _0x2a40f7=_0x22065a['group']?_0x22065a['group']:null;if(_0x2a40f7)return this['_validationInputElement']['value']=_0x2a40f7['cdnUrl']??'',void this['_validationInputElement']['setCustomValidity']('');const _0x133a03=_0x22065a['allEntries']['map'](_0x5bec69=>_0x5bec69['cdnUrl'])['filter'](_0x15079e=>'string'==typeof _0x15079e);if(!this['cfg']['multiple']&&0x1===_0x133a03['length']&&_0x133a03[0x0])return this['_validationInputElement']['value']=_0x133a03[0x0],void this['_validationInputElement']['setCustomValidity']('');this['_validationInputElement']['remove'](),this['_validationInputElement']=null;const _0x3bf0c3=new DocumentFragment();for(const _0x515854 of _0x133a03){const _0x330688=document['createElement']('input');_0x330688['type']='hidden',_0x330688['name']=this['ctxName']+'[]',_0x330688['value']=_0x515854,_0x3bf0c3['appendChild'](_0x330688);}this['_dynamicInputsContainer']['replaceChildren'](_0x3bf0c3);}},!0x1);}},Icon=class extends Block{constructor(){super(),this['init$']={...this['init$'],'name':'','href':''};}['initCallback'](){super['initCallback'](),this['sub']('name',_0x31a44b=>{if(!_0x31a44b)return;let _0x577b4a='#uc-icon-'+_0x31a44b;this['subConfigValue']('iconHrefResolver',_0x4da25a=>{if(_0x4da25a){const _0x36f177=_0x4da25a(_0x31a44b);_0x577b4a=_0x36f177??_0x577b4a;}this['$']['href']=_0x577b4a;});}),this['setAttribute']('aria-hidden','true');}};Icon['template']='\x0a\x20\x20<svg\x20ref=\x22svg\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<use\x20set=\x22@href:\x20href;\x22></use>\x0a\x20\x20</svg>\x0a',Icon['bindAttributes']({'name':'name'});var uniqueArray=_0x281569=>[...new Set(_0x281569)],CSS_PREF='--uc-img-',UNRESOLVED_ATTR='unresolved',HI_RES_K=0x2,ULTRA_RES_K=0x3,DEV_MODE=!window['location']['host']['trim']()||window['location']['host']['includes'](':')||window['location']['hostname']['includes']('localhost'),MAX_WIDTH=0xbb8,MAX_WIDTH_JPG=0x1388,ImgTypeEnum=Object['freeze']({'PREVIEW':'PREVIEW','MAIN':'MAIN'}),DEFAULT_CDN_BASE='https://ucarecdn.com',PROPS_MAP=Object['freeze']({'dev-mode':{},'pubkey':{},'uuid':{},'src':{},'lazy':{'default':0x1},'intersection':{},'breakpoints':{},'cdn-cname':{'default':DEFAULT_CDN_BASE},'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}}),CSS_PROPS=Object['create'](null);for(const e in PROPS_MAP)CSS_PROPS[CSS_PREF+e]=PROPS_MAP[e]?.['default']||'';var ImgConfig=class extends BaseComponent{['cssInit$']=CSS_PROPS;['$$'](_0x323fdb){return this['$'][CSS_PREF+_0x323fdb];}['set$$'](_0x441c52){for(const _0x1ea65c in _0x441c52)this['$'][CSS_PREF+_0x1ea65c]=_0x441c52[_0x1ea65c];}['sub$$'](_0x4aee9c,_0x5006c5){this['sub'](CSS_PREF+_0x4aee9c,_0x12065c=>{null!==_0x12065c&&''!==_0x12065c&&_0x5006c5(_0x12065c);});}['analyticsParams'](){return'-/@clib/'+PACKAGE_NAME+'/'+PACKAGE_VERSION+'/uc-img/';}['initAttributes'](_0x16787d){[...this['attributes']]['forEach'](_0x891e54=>{PROPS_MAP[_0x891e54['name']]||_0x16787d['setAttribute'](_0x891e54['name'],_0x891e54['value']);});}['initIntersection'](_0x5b6ecd,_0x50fd11){this['_isnObserver']=new IntersectionObserver(_0x895f97=>{_0x895f97['forEach'](_0x51f08b=>{_0x51f08b['isIntersecting']&&(_0x50fd11(),this['_isnObserver']['unobserve'](_0x5b6ecd));});},{'root':null,'rootMargin':'0px'}),this['_isnObserver']['observe'](_0x5b6ecd),this['_observed']||(this['_observed']=new Set()),this['_observed']['add'](_0x5b6ecd);}['destroyCallback'](){super['destroyCallback'](),this['_isnObserver']&&(this['_observed']['forEach'](_0xc90598=>{this['_isnObserver']['unobserve'](_0xc90598);}),this['_isnObserver']=null),Data['deleteCtx'](this);}static get['observedAttributes'](){return Object['keys'](PROPS_MAP);}['attributeChangedCallback'](_0x4f23fd,_0x218234,_0x4e3ecc){window['setTimeout'](()=>{this['$'][CSS_PREF+_0x4f23fd]=_0x4e3ecc;});}},parseObjectToString=_0xa1fda8=>Object['entries'](_0xa1fda8)['filter'](([_0x43f21f,_0x1e9106])=>void 0x0!==_0x1e9106&&''!==_0x1e9106)['map'](([_0x227062,_0x285466])=>'cdn-operations'===_0x227062||'analytics'===_0x227062?_0x285466:_0x227062+'/'+_0x285466),ImgBase=class extends ImgConfig{['_img']=new Image();['_imgPreview']=new Image();['_fmtAbs'](_0x4cb443){return!_0x4cb443['includes']('//')&&!DEV_MODE&&(_0x4cb443=new URL(_0x4cb443,document['baseURI'])['href']),_0x4cb443;}['_validateSize'](_0x280ea2){if(''!==_0x280ea2?.['trim']()){const _0x18f359=_0x280ea2['match'](/\d+/)[0x0],_0x3c69ce=_0x280ea2['match'](/[a-zA-Z]+/)[0x0],_0x2d7031=parseInt(_0x18f359,0xa);if(Number(_0x2d7031)>MAX_WIDTH_JPG&&this['hasFormatJPG'])return MAX_WIDTH_JPG+_0x3c69ce;if(Number(_0x2d7031)>MAX_WIDTH&&!this['hasFormatJPG'])return MAX_WIDTH+_0x3c69ce;}return _0x280ea2;}['_getCdnModifiers'](_0x5f5db4,_0x528d0b){const _0x2e787b={'format':this['$$']('format'),'quality':this['$$']('quality'),'resize':this['_validateSize'](_0x5f5db4),'blur':_0x528d0b,'cdn-operations':this['$$']('cdn-operations'),'analytics':this['analyticsParams']()};return createCdnUrlModifiers(...parseObjectToString(_0x2e787b));}['_getUrlBase'](_0x1fe30e='',_0x4ac553=''){if(this['$$']('src')['startsWith']('data:')||this['$$']('src')['startsWith']('blob:'))return this['$$']('src');if(DEV_MODE&&this['$$']('src')&&!this['$$']('src')['includes']('//'))return this['_proxyUrl'](this['$$']('src'));const _0x36b94c=this['_getCdnModifiers'](_0x1fe30e,_0x4ac553);return this['$$']('src')['startsWith'](this['$$']('cdn-cname'))?createCdnUrl(this['$$']('src'),_0x36b94c):this['$$']('cdn-cname')&&this['$$']('uuid')||this['$$']('uuid')?this['_proxyUrl'](createCdnUrl(createOriginalUrl(this['$$']('cdn-cname'),this['$$']('uuid')),_0x36b94c)):this['$$']('proxy-cname')?this['_proxyUrl'](createCdnUrl(this['$$']('proxy-cname'),_0x36b94c,this['_fmtAbs'](this['$$']('src')))):this['$$']('pubkey')?this['_proxyUrl'](createCdnUrl('https://'+this['$$']('pubkey')+'.ucr.io/',_0x36b94c,this['_fmtAbs'](this['$$']('src')))):void 0x0;}['_proxyUrl'](_0x1aa5c8){return this['$$']('secure-delivery-proxy')?applyTemplateData(this['$$']('secure-delivery-proxy'),{'previewUrl':_0x1aa5c8},{'transform':_0x5f3d2c=>window['encodeURIComponent'](_0x5f3d2c)}):_0x1aa5c8;}['_getElSize'](_0x13cc2c,_0x2a05cf=0x1,_0x5c831b=!0x0){const _0xb6c2d1=_0x13cc2c['getBoundingClientRect'](),_0x21e172=_0x2a05cf*Math['round'](_0xb6c2d1['width']),_0x4fc0da=_0x5c831b?'':_0x2a05cf*Math['round'](_0xb6c2d1['height']);return _0x21e172||_0x4fc0da?(_0x21e172||'')+'x'+(_0x4fc0da||''):null;}['_setupEventProxy'](_0x4d0b15){const _0x10715d=_0x5ed2ef=>{_0x5ed2ef['stopPropagation']();const _0x11994f=new Event(_0x5ed2ef['type'],_0x5ed2ef);this['dispatchEvent'](_0x11994f);},_0x4ae13c=['load','error'];for(const _0x3c51c4 of _0x4ae13c)_0x4d0b15['addEventListener'](_0x3c51c4,_0x10715d);}get['img'](){return this['hasPreviewImage']||(this['_setupConfigForImage']({'elNode':this['_img']}),this['appendChild'](this['_img'])),this['_img'];}get['currentImg'](){return this['hasPreviewImage']?{'type':ImgTypeEnum['PREVIEW'],'img':this['_imgPreview']}:{'type':ImgTypeEnum['MAIN'],'img':this['img']};}get['hasPreviewImage'](){return this['$$']('is-preview-blur');}get['bgSelector'](){return this['$$']('is-background-for');}get['breakpoints'](){if(this['$$']('breakpoints')){const _0x1bea45=stringToArray(this['$$']('breakpoints'));return uniqueArray(_0x1bea45['map'](_0x144ab6=>parseInt(_0x144ab6,0xa)));}return null;}get['hasFormatJPG'](){return'jpeg'===this['$$']('format')['toLowerCase']();}['renderBg'](_0x575082){const _0xfb322a=new Set();_0xfb322a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x575082))+'\x22)\x201x'),this['$$']('hi-res-support')&&_0xfb322a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x575082,HI_RES_K))+'\x22)\x20'+HI_RES_K+'x'),this['$$']('ultra-res-support')&&_0xfb322a['add']('url(\x22'+this['_getUrlBase'](this['_getElSize'](_0x575082,ULTRA_RES_K))+'\x22)\x20'+ULTRA_RES_K+'x');const _0x40ca94='image-set('+[..._0xfb322a]['join'](',\x20')+')';_0x575082['style']['setProperty']('background-image',_0x40ca94),_0x575082['style']['setProperty']('background-image','-webkit-'+_0x40ca94);}['getSrcset'](){const _0x5aadd8=new Set();return this['breakpoints']?this['breakpoints']['forEach'](_0x3c7ec2=>{_0x5aadd8['add'](this['_getUrlBase'](_0x3c7ec2+'x')+('\x20'+this['_validateSize'](_0x3c7ec2+'w'))),this['$$']('hi-res-support')&&_0x5aadd8['add'](this['_getUrlBase'](_0x3c7ec2*HI_RES_K+'x')+('\x20'+this['_validateSize'](_0x3c7ec2*HI_RES_K+'w'))),this['$$']('ultra-res-support')&&_0x5aadd8['add'](this['_getUrlBase'](_0x3c7ec2*ULTRA_RES_K+'x')+('\x20'+this['_validateSize'](_0x3c7ec2*ULTRA_RES_K+'w')));}):(_0x5aadd8['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img']))+'\x201x'),this['$$']('hi-res-support')&&_0x5aadd8['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x2))+'\x202x'),this['$$']('ultra-res-support')&&_0x5aadd8['add'](this['_getUrlBase'](this['_getElSize'](this['currentImg']['img'],0x3))+'\x203x')),[..._0x5aadd8]['join']();}['getSrc'](){return this['_getUrlBase']();}get['srcUrlPreview'](){return this['_getUrlBase']('100x','100');}['renderBackground'](){[...document['querySelectorAll'](this['bgSelector'])]['forEach'](_0xb63e26=>{this['$$']('intersection')?this['initIntersection'](_0xb63e26,()=>{this['renderBg'](_0xb63e26);}):this['renderBg'](_0xb63e26);});}['_appendURL']({elNode:_0x1fbf3b,src:_0x18b29f,srcset:_0x264e14}){_0x18b29f&&(_0x1fbf3b['src']=_0x18b29f),_0x264e14&&(_0x1fbf3b['srcset']=_0x264e14);}['_setupConfigForImage']({elNode:_0x9e2414}){this['_setupEventProxy'](_0x9e2414),this['initAttributes'](_0x9e2414);}['loaderImage']({src:_0x393d74,srcset:_0x304006,elNode:_0x200b8c}){return new Promise((_0x6871b3,_0x15a17b)=>{this['_setupConfigForImage']({'elNode':_0x200b8c}),_0x200b8c['setAttribute'](UNRESOLVED_ATTR,''),_0x200b8c['addEventListener']('load',()=>{_0x200b8c['removeAttribute'](UNRESOLVED_ATTR),_0x6871b3(_0x200b8c);}),_0x200b8c['addEventListener']('error',()=>{_0x15a17b(!0x1);}),this['_appendURL']({'elNode':_0x200b8c,'src':_0x393d74,'srcset':_0x304006});});}async['renderImage'](){if(this['$$']('intersection'))return this['hasPreviewImage']&&(this['_setupConfigForImage']({'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),void this['initIntersection'](this['currentImg']['img'],async()=>{this['hasPreviewImage']&&(this['_imgPreview']['src']=this['srcUrlPreview']);try{await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']['remove'](),this['appendChild'](this['_img']);}catch(_0x5e0a9f){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}});try{this['hasPreviewImage']&&(await this['loaderImage']({'src':this['srcUrlPreview'],'elNode':this['_imgPreview']}),this['appendChild'](this['_imgPreview'])),await this['loaderImage']({'src':this['getSrc'](),'srcset':this['getSrcset'](),'elNode':this['_img']}),this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}catch(_0x2113e9){this['hasPreviewImage']&&await this['_imgPreview']?.['remove'](),this['appendChild'](this['_img']);}}['init'](){this['bgSelector']?this['renderBackground']():this['renderImage']();}},Img=class extends ImgBase{['initCallback'](){super['initCallback'](),this['sub$$']('src',()=>{this['init']();}),this['sub$$']('uuid',()=>{this['init']();}),this['sub$$']('lazy',_0x3379bb=>{this['$$']('is-background-for')||this['$$']('is-preview-blur')||(this['img']['loading']=_0x3379bb?'lazy':'eager');});}},LAST_ACTIVE_MODAL_ID=null,Modal=class extends Block{static ['styleAttrs']=[...super['styleAttrs'],'uc-modal'];static ['StateConsumerScope']='modal';['_mouseDownTarget'];['handleModalOpen'];['handleModalClose'];['handleModalCloseAll'];constructor(){super(),this['init$']={...this['init$'],'closeClicked':this['_handleDialogClose']};}['_handleBackdropClick']=()=>{this['_closeDialog']();};['_closeDialog']=()=>{this['modalManager']?.['close'](this['id']),this['modalManager']?.['hasActiveModals']||(document['body']['style']['overflow']='');};['_handleDialogClose']=()=>{this['_closeDialog']();};['_handleDialogMouseDown']=_0x3a8b8d=>{this['_mouseDownTarget']=_0x3a8b8d['target'];};['_handleDialogMouseUp']=_0x4212cf=>{const _0x5ca06b=_0x4212cf['target'];_0x5ca06b===this['ref']['dialog']&&_0x5ca06b===this['_mouseDownTarget']&&this['_closeDialog']();};['show'](){const _0x3aee41=this['ref']['dialog'];'function'==typeof _0x3aee41['showModal']?(this['setAttribute']('aria-modal','true'),_0x3aee41['showModal']()):_0x3aee41['setAttribute']('open',''),this['cfg']['modalScrollLock']&&(document['body']['style']['overflow']='hidden');}['hide'](){const _0x36fab4=this['ref']['dialog'];'function'==typeof _0x36fab4['close']?(this['setAttribute']('aria-modal','false'),_0x36fab4['close']()):_0x36fab4['removeAttribute']('open');}['_handleModalOpen']({id:_0x5d0c96}){_0x5d0c96===this['id']?(LAST_ACTIVE_MODAL_ID=_0x5d0c96,this['show'](),this['emit'](EventType['MODAL_OPEN'],{'modalId':_0x5d0c96},{'debounce':!0x0})):this['hide']();}['_handleModalClose']({id:_0x25677a}){_0x25677a===this['id']&&(this['hide'](),this['emit'](EventType['MODAL_CLOSE'],{'modalId':_0x25677a,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0}));}['_handleModalCloseAll'](_0x205d0a){this['hide'](),LAST_ACTIVE_MODAL_ID===this['id']&&this['emit'](EventType['MODAL_CLOSE'],{'modalId':LAST_ACTIVE_MODAL_ID,'hasActiveModals':this['modalManager']?.['hasActiveModals']},{'debounce':!0x0});}['initCallback'](){super['initCallback'](),this['modalManager']?.['registerModal'](this['id'],this);const _0x43a82c=this['ref']['dialog'];_0x43a82c['addEventListener']('close',this['_handleDialogClose']),_0x43a82c['addEventListener']('mousedown',this['_handleDialogMouseDown']),_0x43a82c['addEventListener']('mouseup',this['_handleDialogMouseUp']),this['subConfigValue']('modalBackdropStrokes',_0x45cd9f=>{_0x45cd9f?this['setAttribute']('strokes',''):this['removeAttribute']('strokes');}),this['handleModalOpen']=this['_handleModalOpen']['bind'](this),this['handleModalClose']=this['_handleModalClose']['bind'](this),this['handleModalCloseAll']=this['_handleModalCloseAll']['bind'](this),this['modalManager']?.['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}['destroyCallback'](){super['destroyCallback'](),document['body']['style']['overflow']='',this['_mouseDownTarget']=void 0x0;const _0x45c661=this['ref']['dialog'];_0x45c661['removeEventListener']('close',this['_handleDialogClose']),_0x45c661['removeEventListener']('mousedown',this['_handleDialogMouseDown']),_0x45c661['removeEventListener']('mouseup',this['_handleDialogMouseUp']),this['modalManager']?.['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE_ALL'],this['handleModalCloseAll']);}};Modal['template']='\x0a\x20\x20<dialog\x20ref=\x22dialog\x22>\x0a\x20\x20\x20\x20<slot></slot>\x0a\x20\x20</dialog>\x0a';var ProgressBar=class extends Block{['_value']=0x0;['_visible']=!0x0;constructor(){super(),this['init$']={...this['init$'],'width':0x0,'opacity':0x0};}['initCallback'](){super['initCallback'](),(this['ref']['fakeProgressLine']['addEventListener']('animationiteration',()=>{const _0x432a1e=this['ref']['fakeProgressLine'];this['_visible']?this['_value']>0x0&&_0x432a1e['classList']['add']('uc-fake-progress--hidden'):_0x432a1e['classList']['add']('uc-fake-progress--hidden');}),this['defineAccessor']('value',_0x3cac33=>{null!=_0x3cac33&&(this['_value']=_0x3cac33,this['_visible']&&this['style']['setProperty']('--l-progress-value',this['_value']['toString']()));}),this['defineAccessor']('visible',_0x315240=>{this['_visible']=_0x315240,this['classList']['toggle']('uc-progress-bar--hidden',!_0x315240);}));}};ProgressBar['template']='\x0a\x20\x20<div\x20ref=\x22fakeProgressLine\x22\x20class=\x22uc-fake-progress\x22></div>\x0a\x20\x20<div\x20ref=\x22realProgressLine\x22\x20class=\x22uc-progress\x22></div>\x0a';var ProgressBarCommon=class extends UploaderBlock{['_unobserveCollectionCb'];constructor(){super(),this['init$']={...this['init$'],'visible':!0x1,'value':0x0,'*commonProgress':0x0};}['initCallback'](){super['initCallback'](),this['_unobserveCollectionCb']=this['uploadCollection']['observeProperties'](()=>{const _0xd0efbb=this['uploadCollection']['items']()['some'](_0x4ca726=>{const _0x2fb746=this['uploadCollection']['read'](_0x4ca726);return _0x2fb746?.['getValue']('isUploading')??!0x1;});this['$']['visible']=_0xd0efbb;}),this['sub']('visible',_0x3ed7cd=>{_0x3ed7cd?this['setAttribute']('active',''):this['removeAttribute']('active');}),this['sub']('*commonProgress',_0xb0ec54=>{this['$']['value']=_0xb0ec54;});}['destroyCallback'](){super['destroyCallback'](),this['_unobserveCollectionCb']?.(),this['_unobserveCollectionCb']=void 0x0;}};ProgressBarCommon['template']='\x20<uc-progress-bar\x20set=\x22visible:\x20visible;\x20value:\x20value\x22></uc-progress-bar>\x20';var Select=class extends Block{constructor(){super(),this['init$']={...this['init$'],'currentText':'','options':[],'selectHtml':'','onSelect':_0x19eaf4=>{_0x19eaf4['preventDefault'](),_0x19eaf4['stopPropagation']();const _0x4387bf=this['ref']['select'];this['value']=_0x4387bf['value'],this['$']['currentText']=this['$']['options']['find'](_0xcff8dd=>_0xcff8dd['value']===this['value'])?.['text']||'',this['dispatchEvent'](new Event('change'));}};}['initCallback'](){super['initCallback'](),this['sub']('options',_0x4c213e=>{this['$']['currentText']=_0x4c213e?.[0x0]?.['text']||'';let _0x519ed3='';_0x4c213e?.['forEach'](_0x593931=>{_0x519ed3+='<option\x20value=\x22'+_0x593931['value']+'\x22>'+_0x593931['text']+'</option>';}),this['$']['selectHtml']=_0x519ed3;});}};Select['template']='\x20<select\x20ref=\x22select\x22\x20set=\x22innerHTML:\x20selectHtml;\x20onchange:\x20onSelect\x22></select>\x20';var SimpleBtn=class extends UploaderBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-simple-btn'];['couldBeCtxOwner']=!0x0;constructor(){super(),this['init$']={...this['init$'],'withDropZone':!0x0,'onClick':()=>{this['api']['initFlow']();},'button-text':''};}['initCallback'](){super['initCallback'](),this['defineAccessor']('dropzone',_0x207c67=>{void 0x0!==_0x207c67&&(this['$']['withDropZone']=asBoolean2(_0x207c67));}),this['subConfigValue']('multiple',_0x87ff00=>{this['$']['button-text']=_0x87ff00?'upload-files':'upload-file';});}};SimpleBtn['template']='\x0a\x20\x20<uc-drop-area\x20set=\x22@disabled:\x20!withDropZone\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20set=\x22onclick:\x20onClick\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22upload\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22button-text\x22></span>\x0a\x20\x20\x20\x20\x20\x20<slot></slot>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22uc-visual-drop-area\x22\x20l10n=\x22drop-files-here\x22></div>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-drop-area>\x0a',SimpleBtn['bindAttributes']({'dropzone':null});var L10N_PREFIX='src-type-',SourceBtn=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['type']=void 0x0;['_registeredTypes']={};constructor(){super(),this['init$']={...this['init$'],'iconName':'default','src-type':''};}['initTypes'](){this['registerType']({'type':UploadSource['LOCAL'],'activate':()=>(this['api']['openSystemDialog'](),!0x1)}),this['registerType']({'type':UploadSource['URL'],'activity':ActivityBlock['activities']['URL'],'textKey':'from-url'}),this['registerType']({'type':UploadSource['CAMERA'],'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x377694=browserFeatures['htmlMediaCapture'];return _0x377694&&this['api']['openSystemDialog']({'captureCamera':!0x0}),!_0x377694;}}),this['registerType']({'type':'draw','activity':ActivityBlock['activities']['DRAW'],'icon':'edit-draw'});for(const _0x550d16 of Object['values'](UploadSourceMobile))this['registerType']({'type':_0x550d16,'activity':ActivityBlock['activities']['CAMERA'],'activate':()=>{const _0x20b9ae=browserFeatures['htmlMediaCapture'];return _0x20b9ae&&this['api']['openSystemDialog']({'captureCamera':!0x0,'modeCamera':'mobile-photo-camera'===_0x550d16?CameraSourceTypes['PHOTO']:CameraSourceTypes['VIDEO']}),!_0x20b9ae;}});for(const _0x3d190b of Object['values'](ExternalUploadSource))this['registerType']({'type':_0x3d190b,'activity':ActivityBlock['activities']['EXTERNAL'],'activityParams':{'externalSourceType':_0x3d190b}});}['initCallback'](){super['initCallback'](),this['initTypes'](),this['defineAccessor']('type',_0x5e75a7=>{_0x5e75a7&&this['applyType'](_0x5e75a7);});}['registerType'](_0x249cd1){this['_registeredTypes'][_0x249cd1['type']]=_0x249cd1;}['getType'](_0x42ea37){return this['_registeredTypes'][_0x42ea37];}['activate'](){if(!this['type'])return;const _0x3444be=this['_registeredTypes'][this['type']];if(!_0x3444be)return;const {activity:_0x23fe9a,activate:_0x37f002,activityParams:_0x946a44={}}=_0x3444be;(_0x37f002?_0x37f002():!!_0x23fe9a)&&_0x23fe9a&&(this['modalManager']?.['open'](_0x23fe9a),this['set$']({'*currentActivityParams':_0x946a44,'*currentActivity':_0x23fe9a}));}['applyType'](_0x4b77d0){const _0x114bde=this['_registeredTypes'][_0x4b77d0];if(!_0x114bde)return void console['warn']('Unsupported\x20source\x20type:\x20'+_0x4b77d0);const {textKey:_0x84a331=_0x4b77d0,icon:_0x7fe854=_0x4b77d0}=_0x114bde;this['$']['src-type']=''+L10N_PREFIX+_0x84a331,this['$']['iconName']=_0x7fe854,this['onclick']=()=>{this['activate']();};}};SourceBtn['template']='\x0a\x20\x20<button\x20type=\x22button\x22>\x0a\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20iconName\x22></uc-icon>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-txt\x22\x20l10n=\x22src-type\x22></div>\x0a\x20\x20</button>\x0a',SourceBtn['bindAttributes']({'type':null});var SourceList=class extends Block{['initCallback'](){super['initCallback'](),this['subConfigValue']('sourceList',_0x801694=>{const _0x3fa4fc=stringToArray(_0x801694);let _0x449679='';_0x3fa4fc['forEach'](_0x4f3002=>{'instagram'!==_0x4f3002?'camera'===_0x4f3002&&browserFeatures['htmlMediaCapture']?this['subConfigValue']('cameraModes',_0x3aa110=>{const _0x488529=deserializeCsv(_0x3aa110);_0x488529['forEach'](_0x1e6e22=>{_0x449679+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-'+_0x1e6e22+'-camera\x22></uc-source-btn>';}),0x0===_0x488529['length']&&(_0x449679+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22mobile-photo-camera\x22></uc-source-btn>');}):_0x449679+='<uc-source-btn\x20role=\x22listitem\x22\x20type=\x22'+_0x4f3002+'\x22></uc-source-btn>':console['error']('Instagram\x20source\x20was\x20removed\x20because\x20the\x20Instagram\x20Basic\x20Display\x20API\x20hasn\x27t\x20been\x20available\x20since\x20December\x204,\x202024.\x20Official\x20statement,\x20see\x20here:https://developers.facebook.com/blog/post/2024/09/04/update-on-instagram-basic-display-api/?locale=en_US');}),this['cfg']['sourceListWrap']?this['innerHTML']=_0x449679:this['outerHTML']=_0x449679;});}},Spinner=class extends BaseComponent{};Spinner['template']='\x20<div\x20class=\x22uc-spinner\x22></div>\x20';var StartFrom=class extends ActivityBlock{['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['START_FROM'];['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'');}};function generateThumb(_0x1f226f,_0x1546da=0x28){if('image/svg+xml'===_0x1f226f['type'])return URL['createObjectURL'](_0x1f226f);const _0x7b32e2=document['createElement']('canvas'),_0x73317c=_0x7b32e2['getContext']('2d');if(!_0x73317c)return Promise['reject'](new Error('Canvas\x20context\x20not\x20supported'));const _0x24b842=new Image(),_0x2561f5=new Promise((_0x441d33,_0x175ff6)=>{_0x24b842['onload']=()=>{const _0x53968d=_0x24b842['height']/_0x24b842['width'];_0x53968d>0x1?(_0x7b32e2['width']=_0x1546da,_0x7b32e2['height']=_0x1546da*_0x53968d):(_0x7b32e2['height']=_0x1546da,_0x7b32e2['width']=_0x1546da/_0x53968d),_0x73317c['fillStyle']='rgb(240,\x20240,\x20240)',_0x73317c['fillRect'](0x0,0x0,_0x7b32e2['width'],_0x7b32e2['height']),_0x73317c['drawImage'](_0x24b842,0x0,0x0,_0x7b32e2['width'],_0x7b32e2['height']),_0x7b32e2['toBlob'](_0x233949=>{if(!_0x233949)return void _0x175ff6();const _0x20fe58=URL['createObjectURL'](_0x233949);_0x441d33(_0x20fe58);});},_0x24b842['onerror']=_0x2a7825=>{_0x175ff6(_0x2a7825);};});return _0x24b842['src']=URL['createObjectURL'](_0x1f226f),_0x2561f5;}function createSvgBlobUrl(_0x33810b){const _0x2551eb=new Blob([_0x33810b],{'type':'image/svg+xml'});return URL['createObjectURL'](_0x2551eb);}function fileCssBg(_0x1729cc='hsl(209,\x2021%,\x2065%)',_0x4cc58b=0x20,_0x4206cb=0x20){return createSvgBlobUrl('\x0a\x20\x20<svg\x20width=\x22'+_0x4cc58b+'\x22\x20height=\x22'+_0x4206cb+'\x22\x20viewBox=\x220\x200\x2030\x2030\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20<path\x20fill-rule=\x22evenodd\x22\x20fill=\x22'+_0x1729cc+'\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/>\x0a\x20\x20</svg>\x0a\x20\x20');}StartFrom['template']='\x20<div\x20class=\x22uc-content\x22><slot></slot></div>\x20';var CDN_MAX_OUTPUT_DIMENSION=0xbb8,Thumb=class extends FileItemConfig{['_renderedGridOnce']=!0x1;['_thumbRect']=null;['_isIntersecting']=!0x1;['_firstViewMode']=this['cfg']['filesViewMode'];['_observer'];constructor(){super(),this['init$']={...this['init$'],'thumbUrl':'','badgeIcon':'','uid':''};}['_calculateThumbSize'](_0x4a504c=!0x1){_0x4a504c&&(this['_thumbRect']=this['getBoundingClientRect']());let _0x5e245c=Math['max'](parseInt(String(this?.['_thumbRect']?.['height']||0x0),0xa),parseInt(String(this?.['_thumbRect']?.['width']||0x0),0xa),this['cfg']['thumbSize']);return window['devicePixelRatio']>0x1&&(_0x5e245c*=window['devicePixelRatio']),Math['min'](_0x5e245c,CDN_MAX_OUTPUT_DIMENSION);}['_generateThumbnail']=this['_withEntry'](async(e,i=!0x1)=>{const n=e['getValue']('fileInfo'),s=e['getValue']('isImage'),r=e['getValue']('uuid'),o=e['getValue']('thumbUrl'),a=this['_calculateThumbSize'](i);if(n&&s&&r){const i=await this['proxyUrl'](createCdnUrl(createOriginalUrl(this['cfg']['cdnCname'],r),createCdnUrlModifiers(e['getValue']('cdnUrlModifiers'),'stretch/off','scale_crop/'+a+'x'+a+'/center')));if(o===i)return;const {promise:n}=preloadImage(i);return void n['then'](()=>{e['setValue']('thumbUrl',i),o?.['startsWith']('blob:')&&URL['revokeObjectURL'](o);})['catch'](async()=>{if(!o?.['startsWith']('blob:'))try{const i=e['getValue']('file');if(!i)return;const n=await generateThumb(i,a);e['setValue']('thumbUrl',n);}catch(i){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}});}if(e['getValue']('thumbUrl'))return;const l=e['getValue']('file');if(l?.['type']['includes']('image'))try{const i=await generateThumb(l,a);e['setValue']('thumbUrl',i);}catch(i){this['telemetryManager']['sendEventError'](i,'thumbnail\x20generation.\x20Failed\x20to\x20generate\x20thumb\x20from\x20file');const n=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(n));}else{const i=window['getComputedStyle'](this)['getPropertyValue']('--uc-muted-foreground');e['setValue']('thumbUrl',fileCssBg(i));}});['_debouncedGenerateThumb']=debounce(this['_generateThumbnail']['bind'](this),0x64);['_observerCallback'](_0x189858){const [_0x16d921]=_0x189858;_0x16d921&&(this['_isIntersecting']=_0x16d921['isIntersecting'],_0x16d921['isIntersecting']&&(this['_thumbRect']=_0x16d921['boundingClientRect'],this['_debouncedGenerateThumb'](),this['_observer']?.['disconnect']()),0x0===_0x16d921['intersectionRatio']&&this['_debouncedGenerateThumb']['cancel']());}['_reset'](){super['_reset'](),this['_debouncedGenerateThumb']['cancel']();}['_handleEntryId'](_0x3e2a30){this['_reset']();const _0x10b988=this['uploadCollection']?.['read'](_0x3e2a30);this['_entry']=_0x10b988,_0x10b988&&(this['_subEntry']('fileInfo',_0x4e945a=>{_0x4e945a?.['isImage']&&this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_subEntry']('thumbUrl',_0x4514d3=>{this['$']['thumbUrl']=_0x4514d3?'url('+_0x4514d3+')':'';}),this['_subEntry']('cdnUrlModifiers',()=>{this['_isIntersecting']&&this['_debouncedGenerateThumb']();}),this['_isIntersecting']&&this['_debouncedGenerateThumb']());}['initCallback'](){super['initCallback'](),this['defineAccessor']('badgeIcon',_0x54e3a8=>{this['$']['badgeIcon']=_0x54e3a8;}),this['defineAccessor']('uid',_0x2c45a2=>{this['set$']({'uid':_0x2c45a2});}),this['sub']('uid',_0x369f15=>{this['_handleEntryId'](_0x369f15);}),this['subConfigValue']('filesViewMode',_0x57ac59=>{'grid'!==_0x57ac59||this['_renderedGridOnce']||('list'===this['_firstViewMode']&&this['_debouncedGenerateThumb'](!0x0),this['_renderedGridOnce']=!0x0);}),this['setAttribute']('role','img');}['connectedCallback'](){super['connectedCallback'](),this['_observer']=new window['IntersectionObserver'](this['_observerCallback']['bind'](this),{'threshold':0.1}),this['_observer']['observe'](this);}['disconnectedCallback'](){super['disconnectedCallback'](),this['_entrySubs']=new Set(),this['_debouncedGenerateThumb']['cancel'](),this['_observer']?.['disconnect']();}};Thumb['template']='\x0a\x20\x20<div\x20class=\x22uc-thumb\x22\x20set=\x22style.backgroundImage:\x20thumbUrl\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-badge\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20set=\x22@name:\x20badgeIcon\x22></uc-icon>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a',Thumb['bindAttributes']({'badgeIcon':null,'uid':null});var UploadCtxProvider=class extends UploaderBlock{static ['styleAttrs']=['uc-wgt-common'];static ['EventType']=EventType;['requireCtxName']=!0x0;['initCallback'](){super['initCallback'](),this['$']['*eventEmitter']['bindTarget'](this);}['destroyCallback'](){super['destroyCallback'](),this['$']['*eventEmitter']['unbindTarget'](this);}},UploadList=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['historyTracked']=!0x0;['activityType']=ActivityBlock['activities']['UPLOAD_LIST'];constructor(){super(),this['init$']={...this['init$'],'doneBtnVisible':!0x1,'doneBtnEnabled':!0x1,'uploadBtnVisible':!0x1,'addMoreBtnVisible':!0x1,'addMoreBtnEnabled':!0x1,'headerText':'','commonErrorMessage':'','hasFiles':!0x1,'onAdd':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'add-more','node':this['tagName']}}}),this['api']['initFlow'](!0x0);},'onUpload':()=>{this['emit'](EventType['UPLOAD_CLICK']),this['api']['uploadAll'](),this['_throttledHandleCollectionUpdate']();},'onDone':()=>{this['emit'](EventType['DONE_CLICK'],this['api']['getOutputCollectionState']()),this['api']['doneFlow']();},'onCancel':()=>{this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'clear-all','node':this['tagName']}}}),this['uploadCollection']['clearAll']();}};}['_throttledHandleCollectionUpdate']=throttle(()=>{this['isConnected']&&(this['_updateUploadsState'](),this['couldOpenActivity']||this['$']['*currentActivity']!==this['activityType']||this['historyBack'](),this['cfg']['confirmUpload']||this['api']['uploadAll']());},0x12c);['_updateUploadsState'](){const _0x281678=this['api']['getOutputCollectionState'](),_0x38837b={'total':_0x281678['totalCount'],'succeed':_0x281678['successCount'],'uploading':_0x281678['uploadingCount'],'failed':_0x281678['failedCount'],'validatingBeforeUploading':_0x281678['idleEntries']['filter'](_0x3c539=>_0x3c539['isValidationPending'])['length']},_0x4c94eb=!_0x281678['errors']['some'](_0x14f720=>'TOO_MANY_FILES'===_0x14f720['type']||'TOO_FEW_FILES'===_0x14f720['type']),_0x48c779=_0x281678['errors']['some'](_0x311cb0=>'TOO_MANY_FILES'===_0x311cb0['type']),_0x1b2b55=_0x281678['totalCount']===(this['cfg']['multiple']?this['cfg']['multipleMax']:0x1),_0x575009=_0x281678['allEntries']['some'](_0xeaed07=>_0xeaed07['isValidationPending']),_0x5291e8=0x0===_0x38837b['failed']&&0x0===_0x281678['errors']['length']&&!_0x575009;let _0x26ef88=!0x1,_0x3c3c40=!0x1,_0x5c0e9c=!0x1;if(_0x38837b['total']-_0x38837b['succeed']-_0x38837b['uploading']-_0x38837b['failed']>0x0&&_0x4c94eb&&_0x5291e8)_0x26ef88=!0x0;else{_0x3c3c40=!0x0;const _0x1d70ca=!this['cfg']['groupOutput']||!!_0x281678['group'];_0x5c0e9c=_0x38837b['total']===_0x38837b['succeed']&&_0x4c94eb&&_0x5291e8&&_0x1d70ca;}this['set$']({'doneBtnVisible':_0x3c3c40,'doneBtnEnabled':_0x5c0e9c,'uploadBtnVisible':_0x26ef88,'addMoreBtnEnabled':0x0===_0x38837b['total']||!_0x48c779&&!_0x1b2b55,'addMoreBtnVisible':!_0x1b2b55||this['cfg']['multiple'],'hasFiles':_0x38837b['total']>0x0}),this['bindL10n']('headerText',()=>this['_getHeaderText'](_0x38837b));}['_getHeaderText'](_0x111958){const _0x5abc3c=_0x2afff8=>{let _0x4a2bbc=_0x111958[_0x2afff8];return'uploading'===_0x2afff8&&(_0x4a2bbc+=_0x111958['validatingBeforeUploading']),this['l10n']('header-'+_0x2afff8,{'count':_0x4a2bbc});};return _0x111958['uploading']>0x0||_0x111958['validatingBeforeUploading']>0x0?_0x5abc3c('uploading'):_0x111958['failed']>0x0?_0x5abc3c('failed'):_0x111958['succeed']>0x0?_0x5abc3c('succeed'):_0x5abc3c('total');}get['couldOpenActivity'](){return this['cfg']['showEmptyList']||this['uploadCollection']['size']>0x0;}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']),this['subConfigValue']('multiple',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMin',this['_throttledHandleCollectionUpdate']),this['subConfigValue']('multipleMax',this['_throttledHandleCollectionUpdate']),this['sub']('*groupInfo',_0x2890d8=>{_0x2890d8&&this['_throttledHandleCollectionUpdate']();}),this['subConfigValue']('filesViewMode',_0x3d1311=>{this['setAttribute']('mode',_0x3d1311);}),this['sub']('*currentActivity',_0x24f633=>{this['couldOpenActivity']||_0x24f633!==this['activityType']||(this['$']['*currentActivity']=this['initActivity']);}),this['uploadCollection']['observeProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['observeCollection'](this['_throttledHandleCollectionUpdate']),this['sub']('*collectionErrors',_0x44427c=>{const _0x356fcb=_0x44427c['filter'](_0x3e451e=>'SOME_FILES_HAS_ERRORS'!==_0x3e451e['type'])[0x0];_0x356fcb?this['set$']({'commonErrorMessage':_0x356fcb['message']}):this['set$']({'commonErrorMessage':null});});}['destroyCallback'](){super['destroyCallback'](),this['uploadCollection']['unobserveProperties'](this['_throttledHandleCollectionUpdate']),this['uploadCollection']['unobserveCollection'](this['_throttledHandleCollectionUpdate']);}};UploadList['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<span\x20aria-live=\x22polite\x22\x20class=\x22uc-header-text\x22>{{headerText}}</span>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x0a\x20\x20<div\x20class=\x22uc-no-files\x22\x20set=\x22@hidden:\x20hasFiles\x22>\x0a\x20\x20\x20\x20<slot\x20name=\x22empty\x22><span\x20l10n=\x22no-files\x22></span></slot>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-files\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-files-wrapper\x22\x20repeat=\x22*uploadList\x22\x20repeat-item-tag=\x22uc-file-item\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20class=\x22uc-common-error\x22\x20set=\x22@hidden:\x20!commonErrorMessage;\x20textContent:\x20commonErrorMessage;\x22></div>\x0a\x0a\x20\x20<div\x20class=\x22uc-toolbar\x22>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x20set=\x22onclick:\x20onCancel;\x22\x20l10n=\x22clear\x22></button>\x0a\x20\x20\x20\x20<div\x20class=\x22uc-toolbar-spacer\x22></div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-add-more-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onAdd;\x20@disabled:\x20!addMoreBtnEnabled;\x20@hidden:\x20!addMoreBtnVisible\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22add\x22></uc-icon><span\x20l10n=\x22add-more\x22></span>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!uploadBtnVisible;\x20onclick:\x20onUpload;\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-done-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22@hidden:\x20!doneBtnVisible;\x20onclick:\x20onDone;\x20\x20@disabled:\x20!doneBtnEnabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22done\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<uc-drop-area\x20ghost></uc-drop-area>\x0a';var UrlSource=class extends UploaderBlock{['couldBeCtxOwner']=!0x0;['activityType']=ActivityBlock['activities']['URL'];constructor(){super(),this['init$']={...this['init$'],'importDisabled':!0x0,'onUpload':_0x536607=>{_0x536607['preventDefault'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['ACTION_EVENT'],'payload':{'metadata':{'event':'upload-from-url','node':this['tagName']}}});const _0x19103f=this['ref']['input']['value'];this['api']['addFileFromUrl'](_0x19103f,{'source':UploadSource['URL']}),this['modalManager']?.['open'](ActivityBlock['activities']['UPLOAD_LIST']),this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'];},'onCancel':()=>{this['historyBack']();},'onInput':_0x33c3c7=>{const _0x1771b3=_0x33c3c7['target']?.['value']??'';this['set$']({'importDisabled':!_0x1771b3});}};}['initCallback'](){super['initCallback'](),this['registerActivity'](this['activityType']??'',{'onActivate':()=>{const _0x59bdb9=this['ref']['input'];_0x59bdb9['value']='',_0x59bdb9['focus']();}});}};UrlSource['template']='\x0a\x20\x20<uc-activity-header>\x0a\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22uc-mini-btn\x22\x20set=\x22onclick:\x20*historyBack\x22\x20l10n=\x22@title:back;@aria-label:back\x22>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22back\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22url\x22></uc-icon>\x0a\x20\x20\x20\x20\x20\x20<span\x20l10n=\x22caption-from-url\x22></span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-mini-btn\x20uc-close-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20*closeModal\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close\x22\x0a\x20\x20\x20\x20>\x0a\x20\x20\x20\x20\x20\x20<uc-icon\x20name=\x22close\x22></uc-icon>\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</uc-activity-header>\x0a\x20\x20<form\x20class=\x22uc-content\x22>\x0a\x20\x20\x20\x20<label>\x0a\x20\x20\x20\x20\x20\x20<input\x20placeholder=\x22https://\x22\x20class=\x22uc-url-input\x22\x20type=\x22text\x22\x20ref=\x22input\x22\x20set=\x22oninput:\x20onInput\x22\x20/>\x0a\x20\x20\x20\x20</label>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22submit\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-url-upload-btn\x20uc-primary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20onUpload;\x20@disabled:\x20importDisabled\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22upload-url\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20</form>\x0a';var CloudImageEditor=class extends CloudImageEditorBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-wgt-common'];constructor(){super(),this['init$']={...this['init$'],'*solution':this['tagName']};}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['a11y']?.['registerBlock'](this);}},FileUploaderInline=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-inline'];constructor(){super(),this['init$']={...this['init$'],'couldCancel':!0x1,'*solution':this['tagName'],'cancel':()=>{if(this['couldHistoryBack']){const _0x175443=this['$']['*historyBack'];return void _0x175443?.();}this['couldShowList']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}};}get['couldHistoryBack'](){const _0x41faa8=this['$']['*history'];return!(!_0x41faa8||_0x41faa8['length']<=0x1)&&_0x41faa8[_0x41faa8['length']-0x1]!==ActivityBlock['activities']['START_FROM'];}get['couldShowList'](){const _0x405e45=this['$']['*uploadList'];return this['cfg']['showEmptyList']||Array['isArray'](_0x405e45)&&_0x405e45['length']>0x0;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x5765de=this['ref']['uBlock'];_0x5765de&&(this['sub']('*currentActivity',_0x424be9=>{_0x424be9||(this['$']['*currentActivity']=_0x5765de['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x1680ae=>{Array['isArray'](_0x1680ae)&&_0x1680ae['length']>0x0&&this['$']['*currentActivity']===(_0x5765de['initActivity']||ActivityBlock['activities']['START_FROM'])&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}),this['sub']('*history',()=>{this['$']['couldCancel']=this['couldHistoryBack']||this['couldShowList'];}));}};FileUploaderInline['template']='\x0a\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20type=\x22button\x22\x0a\x20\x20\x20\x20\x20\x20l10n=\x22start-from-cancel\x22\x0a\x20\x20\x20\x20\x20\x20class=\x22uc-cancel-btn\x20uc-secondary-btn\x22\x0a\x20\x20\x20\x20\x20\x20set=\x22onclick:\x20cancel;\x20@hidden:\x20!couldCancel\x22\x0a\x20\x20\x20\x20></button>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a';var ACTIVE_CLASS='active',EMPTY_CLASS='',FileUploaderMinimal=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-minimal'];['handleModalOpen'];['handleModalClose'];constructor(){super(),this['init$']={...this['init$'],'singleUpload':!0x1,'isHiddenStartFrom':!0x1,'classUploadList':EMPTY_CLASS,'classStartFrom':EMPTY_CLASS,'*solution':this['tagName']};}['_handleModalOpen'](_0x23d194){_0x23d194['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&this['set$']({'classUploadList':ACTIVE_CLASS}),this['$']['*currentActivity']===ActivityBlock['activities']['UPLOAD_LIST']&&this['set$']({'classUploadList':ACTIVE_CLASS,'isHiddenStartFrom':!0x0});const _0x50b6e3=this['$']['*uploadList'];(!_0x50b6e3||_0x50b6e3['length']<=0x0)&&this['set$']({'classStartFrom':ACTIVE_CLASS});}['_handleModalClose'](_0x3f652a){_0x3f652a['id']===this['$']['*currentActivity']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'isHiddenStartFrom':!0x1})),_0x3f652a['id']===ActivityBlock['activities']['CLOUD_IMG_EDIT']&&(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST']);}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']});const _0x316fc9=this['ref']['uBlock'];_0x316fc9&&(this['sub']('*currentActivity',_0x3a21f4=>{_0x3a21f4===ActivityBlock['activities']['UPLOAD_LIST']&&this['modalManager']?.['closeAll'](),_0x3a21f4||(this['$']['*currentActivity']=_0x316fc9['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['sub']('*uploadList',_0x4cf624=>{Array['isArray'](_0x4cf624)&&_0x4cf624['length']>0x0?(this['$']['*currentActivity']=ActivityBlock['activities']['UPLOAD_LIST'],this['set$']({'classStartFrom':EMPTY_CLASS})):(this['set$']({'classUploadList':EMPTY_CLASS,'isHiddenStartFrom':!0x1}),this['$']['*currentActivity']=_0x316fc9['initActivity']||ActivityBlock['activities']['START_FROM']);}),this['subConfigValue']('confirmUpload',_0x57796=>{!0x1!==_0x57796&&(this['cfg']['confirmUpload']=!0x1);}),this['subConfigValue']('filesViewMode',_0x18f6f6=>{this['setAttribute']('mode',_0x18f6f6),this['subConfigValue']('multiple',_0x155747=>{'grid'===_0x18f6f6?(_0x155747?this['style']['removeProperty']('--uc-grid-col'):this['style']['setProperty']('--uc-grid-col','1'),this['$']['singleUpload']=!_0x155747):(this['style']['removeProperty']('--uc-grid-col'),this['$']['singleUpload']=!0x1);});}),this['handleModalOpen']=_0x3d9017=>{this['_handleModalOpen'](_0x3d9017);},this['handleModalClose']=_0x3ff524=>{this['_handleModalClose'](_0x3ff524);},this['modalManager']?.['subscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['subscribe'](ModalEvents['CLOSE'],this['handleModalClose']));}['destroyCallback'](){super['destroyCallback'](),this['modalManager']?.['unsubscribe'](ModalEvents['OPEN'],this['handleModalOpen']),this['modalManager']?.['unsubscribe'](ModalEvents['CLOSE'],this['handleModalClose']);}};FileUploaderMinimal['template']='\x0a\x20\x20<uc-start-from\x20set=\x22@hidden:\x20isHiddenStartFrom;\x20@class:classStartFrom\x22>\x0a\x20\x20\x20\x20<uc-drop-area\x20set=\x22@single:singleUpload;\x22\x20initflow\x20clickable\x20tabindex=\x220\x22\x20l10n=\x22choose-file\x22></uc-drop-area>\x0a\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20</uc-start-from>\x0a\x20\x20<uc-upload-list\x20set=\x22@class:classUploadList\x22\x20ref=\x22uBlock\x22></uc-upload-list>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a';var FileUploaderRegular=class extends SolutionBlock{static ['styleAttrs']=[...super['styleAttrs'],'uc-file-uploader-regular'];constructor(){super();const _0xc0decc={...this['init$'],'isHidden':!0x1,'*solution':this['tagName']};this['init$']=_0xc0decc;}['initCallback'](){super['initCallback'](),this['telemetryManager']['sendEvent']({'eventType':InternalEventType['INIT_SOLUTION']}),this['defineAccessor']('headless',_0x55e0e5=>{this['set$']({'isHidden':asBoolean2(_0x55e0e5)});});}};FileUploaderRegular['template']='\x0a\x20\x20<uc-simple-btn\x20set=\x22@hidden:\x20isHidden\x22></uc-simple-btn>\x0a\x0a\x20\x20<uc-modal\x20id=\x22start-from\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-start-from>\x0a\x20\x20\x20\x20\x20\x20<uc-drop-area\x20with-icon\x20clickable></uc-drop-area>\x0a\x20\x20\x20\x20\x20\x20<uc-source-list\x20role=\x22list\x22\x20wrap></uc-source-list>\x0a\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20l10n=\x22start-from-cancel\x22\x20class=\x22uc-secondary-btn\x22\x20set=\x22onclick:\x20*historyBack\x22></button>\x0a\x20\x20\x20\x20\x20\x20<uc-copyright></uc-copyright>\x0a\x20\x20\x20\x20</uc-start-from>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22upload-list\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-upload-list></uc-upload-list>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22camera\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-camera-source></uc-camera-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22url\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-url-source></uc-url-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22external\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-external-source></uc-external-source>\x0a\x20\x20</uc-modal>\x0a\x0a\x20\x20<uc-modal\x20id=\x22cloud-image-edit\x22\x20strokes\x20block-body-scrolling>\x0a\x20\x20\x20\x20<uc-cloud-image-editor-activity></uc-cloud-image-editor-activity>\x0a\x20\x20</uc-modal>\x0a',FileUploaderRegular['bindAttributes']({'headless':null});var UC=Object['freeze']({'__proto__':null,'ActivityBlock':ActivityBlock,'ActivityHeader':ActivityHeader,'BaseComponent':BaseComponent,'Block':Block,'BtnUi':BtnUi,'CameraSource':CameraSource,'CloudImageEditor':CloudImageEditor,'CloudImageEditorActivity':CloudImageEditorActivity,'CloudImageEditorBlock':CloudImageEditorBlock,'Config':Config,'Copyright':Copyright,'CropFrame':CropFrame,'Data':Data,'DropArea':DropArea,'EditorAspectRatioButtonControl':EditorAspectRatioButtonControl,'EditorCropButtonControl':EditorCropButtonControl,'EditorFilterControl':EditorFilterControl,'EditorFreeformButtonControl':EditorFreeformButtonControl,'EditorImageCropper':EditorImageCropper,'EditorImageFader':EditorImageFader,'EditorOperationControl':EditorOperationControl,'EditorScroller':EditorScroller,'EditorSlider':EditorSlider,'EditorToolbar':EditorToolbar,'ExternalSource':ExternalSource,'ExternalUploadSource':ExternalUploadSource,'FileItem':FileItem,'FileUploaderInline':FileUploaderInline,'FileUploaderMinimal':FileUploaderMinimal,'FileUploaderRegular':FileUploaderRegular,'FormInput':FormInput,'Icon':Icon,'Img':Img,'LineLoaderUi':LineLoaderUi,'Modal':Modal,'ModalEvents':ModalEvents,'PACKAGE_NAME':PACKAGE_NAME,'PACKAGE_VERSION':PACKAGE_VERSION,'PresenceToggle':PresenceToggle,'ProgressBar':ProgressBar,'ProgressBarCommon':ProgressBarCommon,'Select':Select,'SimpleBtn':SimpleBtn,'SliderUi':SliderUi,'SolutionBlock':SolutionBlock,'SourceBtn':SourceBtn,'SourceList':SourceList,'Spinner':Spinner,'StartFrom':StartFrom,'Thumb':Thumb,'UID':UID,'UploadCtxProvider':UploadCtxProvider,'UploadList':UploadList,'UploadSource':UploadSource,'UploaderBlock':UploaderBlock,'UrlSource':UrlSource,'defineComponents':defineComponents,'defineLocale':defineLocale,'loadFileUploaderFrom':loadFileUploaderFrom,'toKebabCase':toKebabCase});class Uploadcare extends Plugin{static get['requires'](){return[UploadcareEditing,UploadcareUI];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48eb2a){super(_0x48eb2a),_0x48eb2a['config']['define']('uploadcare.uploader.sourceList',[UploadcareSource['Local'],UploadcareSource['URL']]),defineComponents(UC),this['_defineLocale']();}['_defineLocale'](){const _0x120fad=this['editor']['config']['get']('uploadcare.locale'),_0x343215=this['editor']['locale']['contentLanguage'];_0x120fad&&defineLocale(_0x343215,_0x120fad);}}class UploadcareImageEditFormLoadingView extends View{constructor(_0x243a24){super(_0x243a24);const t=_0x243a24['t'],_0x49960b=this['bindTemplate'],_0x2e9669=new SpinnerView();_0x2e9669['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':[_0x2e9669,{'text':_0x49960b['to']('imageUploadProgress',_0xae79bc=>t('Loading\x20image...')+'\x20('+(_0xae79bc||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'}]}]}]});}}class UploadcareImageEditFormErrorView extends View{constructor(_0x368eee){super(_0x368eee);const t=_0x368eee['t'];this['set']('errorType',null);const _0x259633=new ButtonView(_0x368eee);_0x259633['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x259633['withText']=!0x0,_0x259633['class']='ck-button-action',_0x259633['on']('execute',()=>{this['fire']('retry');}),_0x259633['bind']('isVisible')['to'](this,'errorType',_0x5ae871=>'NotFound'!==_0x5ae871);const _0x9cfea2=new IconView();_0x9cfea2['content']=IconError,_0x9cfea2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x17ce36=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':[_0x9cfea2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x17ce36['to']('errorType',_0x54db2d=>t('NotFound'!==_0x54db2d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x259633]},{'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'}]}]}]});}}class UploadcareImageEditFormEditingView extends View{constructor(_0x4281d5,_0x437bb8){super(_0x4281d5);const _0x40026a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x437bb8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x40026a['to']('imageSrc')}});}}class UploadcareImageEditFormView extends DialogFocusManagerView{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x518043,_0x40b8c5,_0x3e404b){super(_0x518043),this['_items']=this['createCollection'](),this['_loadingView']=new UploadcareImageEditFormLoadingView(_0x518043),this['_errorView']=new UploadcareImageEditFormErrorView(_0x518043),this['_editingView']=new UploadcareImageEditFormEditingView(_0x518043,_0x3e404b),this['_focusableView']=new View(_0x518043),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x40b8c5),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'],_0x300f5d=>{this['_addUploadcareImageEditorListeners'](_0x300f5d);});}),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'](_0x26f9bd,_0xc1d9f4){const _0x31b074='uc-cloud-image-editor',_0x4030b7=_0x26f9bd['querySelector'](_0x31b074);if(_0x4030b7)return _0xc1d9f4(_0x4030b7);const _0x28fe81=new MutationObserver(_0x18f4be=>{const _0x283bcf=_0x18f4be['filter'](_0x59a3d6=>_0x59a3d6['target']===_0x26f9bd&&_0x59a3d6['addedNodes']['length']>0x0&&_0x59a3d6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x31b074);_0x283bcf['length']&&(_0x28fe81['disconnect'](),_0xc1d9f4(_0x283bcf[0x0]['addedNodes'][0x0]));});_0x28fe81['observe'](_0x26f9bd,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xd08384){_0xd08384['addEventListener']('apply',_0x35d272=>{this['fire']('apply',{'imageSrc':_0x35d272['detail']['cdnUrl']});}),_0xd08384['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
ObservableMixin(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xac1af1,_0x3ddbf0,_0x415d5d){super(),this['_editor']=_0xac1af1,this['_dialog']=_0x3ddbf0,this['_imageElement']=_0x415d5d,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 _0x4240a5=this['_imageElement'],_0x30e7a6=_0x4240a5['getAttribute']('uploadcareImageId'),_0x17fc95=_0x4240a5['getAttribute']('src');if(_0x30e7a6)await this['_loadImageInfo'](_0x30e7a6,_0x17fc95);else{if(this['_imageCache']['has'](_0x17fc95)){const _0x3c8630=this['_imageCache']['get'](_0x17fc95);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c8630['url'],this['imageDimension']=_0x3c8630['dimension'],this['imageId']=_0x3c8630['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x477e5d}=this['_editor'],t=_0x477e5d['t'],_0x1ef0c0=new UploadcareImageEditFormView(_0x477e5d,this['imageStatus'],this['_attributes']);_0x1ef0c0['bind']('status')['to'](this,'imageStatus'),_0x1ef0c0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1ef0c0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1ef0c0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1ef0c0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':IconUploadcareImageEdit,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1ef0c0,'position':DialogViewPosition['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1ef0c0['focus']();},'onHide':()=>{_0x1ef0c0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5e7031=>!isAncestor(_0x5e7031,_0x1ef0c0['element'])}});}['_loadImageInfo'](_0x85a8e2,_0x493bf2){return UploadUtils['getInfo'](_0x85a8e2,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x161264=>{const {width:_0xd49ce3,height:_0x95c2c3}=_0x161264['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x493bf2,this['imageDimension']={'width':_0xd49ce3,'height':_0x95c2c3},this['imageId']=_0x85a8e2;})['catch'](_0x4e2ce0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4e2ce0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x6bfea4,_0x12b9f2){return this['_getImageAsFile'](_0x6bfea4)['then'](_0xbae5b8=>UploadUtils['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':_0x12b9f2['signal'],'file':_0xbae5b8,'onProgress':_0x5c69bc=>{_0x5c69bc&&_0x5c69bc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5c69bc['value']));}}))['then'](_0x5e8f6a=>{const {width:_0x20342a,height:_0x123048}=_0x5e8f6a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e8f6a['cdnUrl'],this['imageDimension']={'width':_0x20342a,'height':_0x123048},this['imageId']=_0x5e8f6a['uuid'],this['imageUploadProgress']=null;const _0x5a2035=_0x6bfea4['getAttribute']('src');this['_imageCache']['set'](_0x5a2035,{'id':_0x5e8f6a['uuid'],'url':_0x5e8f6a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x53d990=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x53d990['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4cd881,_0x98f1fc){_0x4cd881['on']('apply',(_0x546307,_0x53f850)=>{this['_replaceImage'](_0x98f1fc,_0x53f850['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4cd881['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4cd881['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3754f2,_0x32be79,_0x31e022){const _0x6641f2=this['_editor'],{width:_0x720ea2,height:_0x3f916a}=getImageDimension(_0x32be79,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41eee8,imageSources:_0x24b242}=getImageUrls(_0x32be79,_0x720ea2);_0x6641f2['model']['change'](_0x1b9b13=>{if('$graveyard'===_0x3754f2['root']['rootName']){_0x6641f2['execute']('insertImage',{'imageType':_0x3754f2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3754f2['getAttributes']()),'uploadcareImageId':_0x31e022,'src':_0x41eee8,'sources':_0x24b242,'width':_0x720ea2,'height':_0x3f916a}});const _0x5e061b=_0x3754f2['getChildren']();_0x3754f2=_0x6641f2['model']['document']['selection']['getSelectedElement']();for(const _0x5bacba of _0x5e061b)_0x1b9b13['append'](_0x1b9b13['cloneElement'](_0x5bacba),_0x3754f2);}else _0x1b9b13['setSelection'](_0x3754f2,'on'),_0x6641f2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3754f2['getAttributes']()),'uploadcareImageId':_0x31e022,'src':_0x41eee8,'sources':_0x24b242,'width':_0x720ea2,'height':_0x3f916a},_0x3754f2);_0x1b9b13['setSelection'](_0x3754f2,'on');});}async['_getImageAsFile'](_0x3c32d2){const _0x45bff0=_0x59f9c1['window'],_0x2be1cf=_0x59f9c1['document']['location']['href'],_0x40a8a1=new _0x45bff0['URL'](_0x3c32d2['getAttribute']('src'),_0x2be1cf);if('data:'===_0x40a8a1['protocol']){const _0x85557c=_0x40a8a1['href']['split'](','),_0x196abd=_0x85557c[0x0]['match'](/:(.*?);/)[0x1],_0x5bfad5=_0x196abd['split']('/')[0x1],_0xa5099b=_0x45bff0['atob'](_0x85557c[_0x85557c['length']-0x1]);let _0x228d5b=_0xa5099b['length'];const _0xdcda62=new _0x45bff0['Uint8Array'](_0x228d5b);for(;_0x228d5b--;)_0xdcda62[_0x228d5b]=_0xa5099b['charCodeAt'](_0x228d5b);return new _0x45bff0['File']([_0xdcda62],'image.'+_0x5bfad5,{'type':_0x196abd});}const _0x1f48f4=_0x40a8a1['href']['split']('/'),_0x1a4190=_0x1f48f4[_0x1f48f4['length']-0x1],_0x3a4653=_0x1a4190['split']('.')[0x1];return _0x45bff0['fetch'](_0x40a8a1['href'])['then'](_0x1f8f20=>_0x1f8f20['clone']()['blob']())['then'](_0x383bd9=>new _0x45bff0['File']([_0x383bd9],_0x1a4190,{'type':'image/'+_0x3a4653}));}}class UploadcareImageEditCommand extends Command{['imageEditController'];static get['requires'](){return[Dialog];}['_isEditable'];constructor(_0xf1e4e0){super(_0xf1e4e0),this['imageEditController']=void 0x0,this['_isEditable']=createEditabilityChecker(_0xf1e4e0['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x55503d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x55503d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2cf252=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2cf252&&(_0x2cf252['is']('element','imageBlock')||_0x2cf252['is']('element','imageInline'))&&(this['imageEditController']=new UploadcareImageEditController(this['editor'],this['editor']['plugins']['get'](Dialog),_0x2cf252),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class UploadcareImageReplaceCommand extends Command{['refresh'](){const _0x1603b2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1603b2&&(_0x1603b2['is']('element','imageBlock')||_0x1603b2['is']('element','imageInline')));}['execute'](_0x187b88){const _0x4ae734=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x56d1e9=>{_0x56d1e9['setAttributes'](_0x187b88,_0x4ae734),_0x56d1e9['removeAttribute']('srcset',_0x4ae734),_0x56d1e9['removeAttribute']('sizes',_0x4ae734);});}}class UploadcareImageEditEditing extends Plugin{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[UploadcareEditing,Notification,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3a3140}=this;_0x3a3140['commands']['add']('uploadcareImageEdit',new UploadcareImageEditCommand(_0x3a3140)),_0x3a3140['commands']['add']('uploadcareImageReplace',new UploadcareImageReplaceCommand(_0x3a3140));}}class UploadcareImageEditUI extends Plugin{['_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 _0x44ef7f=this['editor'];_0x44ef7f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x57de3c=>{const _0xbcec1=_0x44ef7f['commands']['get']('uploadcareImageEdit'),_0x14fd23=new ButtonView(_0x57de3c),t=_0x57de3c['t'];return _0x14fd23['set']({'icon':IconUploadcareImageEdit,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14fd23['bind']('isEnabled')['to'](_0xbcec1),_0x14fd23['bind']('isOn')['to'](_0xbcec1,'isActive'),this['listenTo'](_0x14fd23,'execute',()=>{_0x44ef7f['execute']('uploadcareImageEdit'),_0x44ef7f['editing']['view']['focus']();}),_0x14fd23;}),this['_initConfig']();}['_initConfig'](){const _0x1a6761=createElement(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1a6761),this['listenTo'](this['editor'],'destroy',()=>{_0x1a6761['remove']();});}}class UploadcareImageEdit extends Plugin{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[UploadcareImageEditEditing,UploadcareImageEditUI];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{AIActions,AIAdapter,AIAssistant,AIAssistantUI,AIBalloon,AIChat,AIChatController,AIChatHistory,AIChatHistoryController,AIChatHistoryUI,AIChatShortcuts,AIChatUI,AIConnector,AIEditing,AIEditorIntegration,AIQuickActionType,AIQuickActions,AIQuickActionsUI,AIRequestError,AIReviewCheck,AIReviewCheckResult,AIReviewCheckRun,AIReviewMode,AIReviewCoreController as AIReviewModeController,AIReviewCoreEditing as AIReviewModeEditing,AIReviewModeUI,AITabs,AITextAdapter,AIToggleButtonUI,AITranslate,AITranslateController,AITranslateUI,AWSTextAdapter,AcceptSuggestionCommand,AddCommentThreadCommand,Annotation$1 as Annotation,AnnotationCollection,AnnotationCounterButtonView,AnnotationView,Annotations,AnnotationsSidebarItemView,AnnotationsSidebarView,AnnotationsUIs,AriaDescriptionView,BaseCommentThreadView,BaseCommentView,BaseSuggestionThreadView,CaseChange,CaseChangeCommand,CaseChangeEditing,CaseChangeUI,CloudServicesCommentsAdapter,CloudServicesRevisionHistoryAdapter,CloudServicesTrackChangesAdapter,Comment,CommentThread,CommentThreadController,CommentThreadInputView,CommentThreadView,CommentView,Comments,CommentsArchive,CommentsArchiveUI,CommentsEditing,CommentsListView,CommentsOnly,CommentsRepository,CommentsUI,ConfirmMixin,CopyFormatCommand,DATA_ID_MODEL_ATTRIBUTE,DATA_ID_VIEW_ATTRIBUTE,DiscardSuggestionCommand,DocumentCompare,DocumentOutline,DocumentOutlineUI,DocumentOutlineUtils,EditSourceCommand,EditorAnnotations,EmailConfigurationHelper,EmailConfigurationLogger,EmptyBlockEmailIntegration,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,ExportInlineStylesEmailIntegration,ExportPdf,ExportPdfCommand,ExportWord,ExportWordCommand,FOCUS_ANNOTATION_KEYSTROKE,FontEmailIntegration,Footnotes,FootnotesClipboard,FootnotesEditing,FootnotesProperties,FootnotesPropertiesEditing,FootnotesPropertiesUI,FootnotesStartCommand,FootnotesStyleCommand,FootnotesTracker,FootnotesUI,FormatPainter,FormatPainterEditing,FormatPainterUI,GeneralHtmlIntegrationSupport,HeadingId,HighlightEmailIntegration,ImageEmailIntegration,ImportWord,ImportWordCommand,ImportWordEditing,ImportWordUI,InlineAnnotations,InsertFootnoteCommand,InsertMergeFieldBlockCommand,InsertMergeFieldCommand,InsertMergeFieldImageCommand,LateFocusButtonView,LateFocusDropdownButtonView,LineHeight,LineHeightCommand,LineHeightEditing,LineHeightTodoListIntegration,LineHeightUI,LinkEmailIntegration,ListEmailIntegration,MarkdownEmailIntegration,MathTypeEmailIntegration,MediaEmbedEmailIntegration,MergeFields,MergeFieldsEditing,MergeFieldsEmailIntegration,MergeFieldsUI,MultiLevelList,MultiLevelListCommand,MultiLevelListEditing,MultiLevelListEmailIntegration,MultiLevelListUI,NarrowSidebar,OpenAITextAdapter,Pagination,PaginationRenderer,PasteFormatCommand,PasteFromOfficeEnhanced,Permissions,PresenceList,PresenceListUI,PreviewFinalContentCommand,PreviewMergeFieldsCommand,RealTimeCollaborationClient,RealTimeCollaborativeComments,RealTimeCollaborativeEditing,RealTimeCollaborativeRevisionHistory,RealTimeCollaborativeTrackChanges,ReplaceSourceCommand,RestoreRevisionCommand,Revision,RevisionHistory,RevisionHistoryUI,RevisionHistoryUtils,RevisionTracker,RevisionViewer,RevisionViewerEditor,RevisionViewerIntegration,RevisionViewerLoadingOverlay,RevisionViewerUI,RevisionsRepository,RevisionsSidebar,Sessions,ShowAIAssistantCommand,ShowChangeCommand,Sidebar,SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI,SourceEditingEmailIntegration,SourceEditingEnhanced,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,SuggestionsConversion,TableEmailIntegration,TableOfContents,TableOfContentsCommand,TableOfContentsEditing,TableOfContentsUI,Template,TemplateCommand,TemplateEditing,TemplateEmailIntegration,TemplateUI,TodoListEmailIntegration,ToggleAICommand,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI,UploadEmailIntegration,Uploadcare,UploadcareCommand,UploadcareEditing,UploadcareImageEdit,UploadcareImageEditCommand,UploadcareImageEditEditing,UploadcareImageEditUI,UploadcareUI,UploadcareUploadAdapter,UserView,Users,WebSocketGateway,WideSidebar,bindAnnotationCollections,createResizeButton,dropImportantStyleSuffix,fixElementSuggestionRange,getAllMarkersDomElementsSorted,getDateTimeFormatter,getDefaultAICommands,getEmailInlineStylesTransformations,getMarkerDomElement,hashObject,isUnsupportedEmailColorFormat,isUnsupportedEmailColorValue,sanitizeEditorConfig,setupThreadKeyboardNavigation,splitSuggestionMarkerName,surroundingMarkersDetector,transformEmailFigcaptionToDiv,transformEmailFigureToTable,transformEmailFloatToAlign,transformEmailImageWidthAttributes,transformEmailMarginToAlign,trimHtml};